Changeset 3159 for trunk/essentials
- Timestamp:
- Apr 22, 2007, 2:29:09 AM (19 years ago)
- Location:
- trunk/essentials/sys-devel/autoconf-2.13
- Files:
-
- 7 edited
-
acgeneral.m4 (modified) (21 diffs)
-
acspecific.m4 (modified) (13 diffs)
-
autoconf.sh (modified) (4 diffs)
-
autoheader.sh (modified) (2 diffs)
-
autoreconf.sh (modified) (3 diffs)
-
autoupdate.sh (modified) (1 diff)
-
ifnames.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/sys-devel/autoconf-2.13/acgeneral.m4
r3157 r3159 588 588 AC_INIT_PARSE_ARGS 589 589 AC_INIT_PREPARE($1)dnl 590 591 592 593 590 594 AC_DIVERT_POP()dnl to NORMAL 591 595 ]) … … 1322 1326 ac_cv_prog_$1="[$]$1" # Let the user override the test. 1323 1327 else 1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" :"1328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="" 1325 1329 ifelse([$6], , , [ ac_prog_rejected=no 1326 1330 ])dnl … … 1328 1332 dnl POSIX.2 word splitting is done only on the output of word expansions, 1329 1333 dnl not every word. This closes a longstanding sh security hole. 1330 ac_dummy="ifelse([$5], , $PATH, [$5])"1334 ac_dummy="ifelse([$5], , $PATH, )" 1331 1335 for ac_dir in $ac_dummy; do 1332 1336 test -z "$ac_dir" && ac_dir=. 1333 if test -f $ac_dir/$ac_word; then 1337 if test -f $ac_dir/$ac_word -o \ 1338 -f $ac_dir/$ac_word$ac_exeext ; then 1334 1339 ifelse([$6], , , dnl 1335 [ if test "[$ac_dir/$ac_word]" = "$6"; then 1340 [ if test "[$ac_dir/$ac_word]" = "$6" -o \ 1341 "[$ac_dir/$ac_word$ac_exeext]" = "$6" ; then 1336 1342 ac_prog_rejected=yes 1337 1343 continue … … 1359 1365 # Default is a loser. 1360 1366 AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl 1361 ifelse([$5], , [\$]PATH, [$5])])1367 ifelse([$5], , [\$]PATH, )]) 1362 1368 ])dnl 1363 1369 fi … … 1385 1391 AC_CACHE_VAL(ac_cv_path_$1, 1386 1392 [case "[$]$1" in 1387 /*) 1393 changequote(, )dnl 1394 [/\\]* | [a-zA-Z]:*) 1395 changequote([, ])dnl 1388 1396 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 1389 1397 ;; … … 1392 1400 ;; 1393 1401 *) 1394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" :"1402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="" 1395 1403 dnl $ac_dummy forces splitting on constant user-supplied paths. 1396 1404 dnl POSIX.2 word splitting is done only on the output of word expansions, 1397 1405 dnl not every word. This closes a longstanding sh security hole. 1398 ac_dummy="ifelse([$4], , $PATH, [$4])"1406 ac_dummy="ifelse([$4], , $PATH, )" 1399 1407 for ac_dir in $ac_dummy; do 1400 1408 test -z "$ac_dir" && ac_dir=. 1401 1409 if test -f $ac_dir/$ac_word; then 1402 1410 ac_cv_path_$1="$ac_dir/$ac_word" 1411 1412 1413 1414 1403 1415 break 1404 1416 fi … … 1660 1672 [AC_REQUIRE_CPP()dnl 1661 1673 cat > conftest.$ac_ext <<EOF 1674 1662 1675 [#]line __oline__ "configure" 1663 1676 #include "confdefs.h" … … 2096 2109 # Run this file to recreate the current configuration. 2097 2110 # This directory was configured as follows, 2111 2112 2113 2098 2114 dnl hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 2099 2115 dnl so uname gets run too. … … 2126 2142 ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL" 2127 2143 ])dnl 2144 2128 2145 2129 2146 changequote(<<, >>)dnl … … 2173 2190 changequote([, ])dnl 2174 2191 EOF 2175 DEFS=`sed -f conftest.defs confdefs.h | tr '\012 ' ''`2192 DEFS=`sed -f conftest.defs confdefs.h | tr '\012 '` 2176 2193 rm -f conftest.defs 2177 2194 ]) … … 2192 2209 $ac_vpsub 2193 2210 dnl Shell code in configure.in might set extrasub. 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2194 2221 $extrasub 2222 2195 2223 dnl Insert the sed substitutions of variables. 2196 2224 undivert(AC_DIVERSION_SED) … … 2268 2296 if test -z "$ac_dots"; then top_srcdir=. 2269 2297 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2270 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2298 changequote(, )dnl 2299 [/\\]* | [a-zA-Z]:*) 2300 changequote([, ])dnl 2301 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2271 2302 *) # Relative path. 2272 2303 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" … … 2277 2308 [ case "$ac_given_INSTALL" in 2278 2309 changequote(, )dnl 2279 [/$ ]*) INSTALL="$ac_given_INSTALL" ;;2310 [/$*) INSTALL="$ac_given_INSTALL" ;; 2280 2311 changequote([, ])dnl 2281 2312 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; … … 2292 2323 esac 2293 2324 2294 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s% :% $ac_given_srcdir/%g"`2325 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%% $ac_given_srcdir/%g"` 2295 2326 sed -e "$ac_comsub 2296 2327 s%@configure_input@%$configure_input%g … … 2360 2391 2361 2392 rm -f conftest.frag conftest.in conftest.out 2362 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2393 # kso the other way around might work better with drive letters and such. 2394 # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2395 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" ` 2363 2396 cat $ac_file_inputs > conftest.in 2364 2397 … … 2484 2517 case "$srcdir" in 2485 2518 changequote(, )dnl 2486 [/$ ]*) ac_rel_source="$srcdir/$ac_source" ;;2519 [/$*) ac_rel_source="$srcdir/$ac_source" ;; 2487 2520 changequote([, ])dnl 2488 2521 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; … … 2491 2524 # Make a symlink if possible; otherwise try a hard link. 2492 2525 if ln -s $ac_rel_source $ac_dest 2>/dev/null || 2493 ln $srcdir/$ac_source $ac_dest; then : 2526 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 2527 cp $srcdir/$ac_source $ac_dest; then : 2494 2528 else 2495 2529 AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source) … … 2559 2593 .) # No --srcdir option. We are building in place. 2560 2594 ac_sub_srcdir=$srcdir ;; 2561 /*) # Absolute path. 2595 changequote(, )dnl 2596 [/\\]* | [a-zA-Z]:*) # Absolute path. 2597 changequote([, ])dnl 2562 2598 ac_sub_srcdir=$srcdir/$ac_config_dir ;; 2563 2599 *) # Relative path. … … 2569 2605 ac_sub_configure=$ac_sub_srcdir/configure 2570 2606 elif test -f $ac_sub_srcdir/configure.in; then 2571 ac_sub_configure=$ac_configure 2607 ac_current_dir=`pwd` 2608 cd $ac_sub_srcdir 2609 autoconf 2610 cd $ac_current_dir 2611 ac_sub_configure=$ac_sub_srcdir/configure 2572 2612 else 2573 2613 AC_MSG_WARN(no configuration information is in $ac_config_dir) … … 2580 2620 # Make the cache file name correct relative to the subdirectory. 2581 2621 case "$cache_file" in 2582 /*) ac_sub_cache_file=$cache_file ;; 2622 changequote(, )dnl 2623 [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;; 2624 changequote([, ])dnl 2583 2625 *) # Relative path. 2584 2626 ac_sub_cache_file="$ac_dots$cache_file" ;; … … 2587 2629 [ case "$ac_given_INSTALL" in 2588 2630 changequote(, )dnl 2589 [/$ ]*) INSTALL="$ac_given_INSTALL" ;;2631 [/$*) INSTALL="$ac_given_INSTALL" ;; 2590 2632 changequote([, ])dnl 2591 2633 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; -
trunk/essentials/sys-devel/autoconf-2.13/acspecific.m4
r3157 r3159 606 606 if test -z "$INSTALL"; then 607 607 AC_CACHE_VAL(ac_cv_path_install, 608 [ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=" :"608 [ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="" 609 609 for ac_dir in $PATH; do 610 610 # Account for people who put trailing slashes in PATH elements. 611 611 case "$ac_dir/" in 612 612 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 613 614 613 615 *) 614 616 # OSF1 and SCO ODT 3.0 have their own names for install. … … 616 618 # by default. 617 619 for ac_prog in ginstall scoinst install; do 618 if test -f $ac_dir/$ac_prog ; then620 if test -f $ac_dir/$ac_prog; then 619 621 if test $ac_prog = install && 620 622 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then … … 622 624 : 623 625 else 624 ac_cv_path_install="$ac_dir/$ac_prog -c"626 ac_cv_path_install="$ac_dir/$ac_prog -c" 625 627 break 2 626 628 fi … … 667 669 ac_cv_prog_LN_S="ln -s" 668 670 else 669 ac_cv_prog_LN_S=ln 670 fi])dnl 671 echo A > conftestdata; 672 if ln conftestdata conftestdata2 2>/dev/null; then 673 ac_cv_prog_LN_S=ln 674 else 675 ac_cv_prog_LN_S=cp 676 fi 677 fi 678 rm -f conftestdata*])dnl 671 679 LN_S="$ac_cv_prog_LN_S" 672 680 if test "$ac_cv_prog_LN_S" = "ln -s"; then … … 2181 2189 arg=`echo $arg | sed -e 's%^P,%%'` 2182 2190 SAVE_IFS=$IFS 2183 IFS= :2191 IFS= 2184 2192 list= 2185 2193 for elt in $arg; do … … 2350 2358 cat > Imakefile <<'EOF' 2351 2359 acfindx: 2352 @ echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'2360 @' 2353 2361 EOF 2354 2362 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then … … 2357 2365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 2358 2366 for ac_extension in a so sl; do 2359 if test ! -f $ac_im_usrlibdir/ libX11.$ac_extension &&2360 test -f $ac_im_libdir/ libX11.$ac_extension; then2367 if test ! -f $ac_im_usrlibdir/X11.$ac_extension && 2368 test -f $ac_im_libdir/X11.$ac_extension; then 2361 2369 ac_im_usrlibdir=$ac_im_libdir; break 2362 2370 fi … … 2491 2499 dnl Don't even attempt the hair of trying to link an X program! 2492 2500 for ac_extension in a so sl; do 2493 if test -r $ac_dir/ lib${x_direct_test_library}.$ac_extension; then2501 if test -r $ac_dir/${x_direct_test_library}.$ac_extension; then 2494 2502 ac_x_libraries=$ac_dir 2495 2503 break 2 … … 2511 2519 X_CFLAGS="$X_CFLAGS -I$x_includes" 2512 2520 fi 2521 2513 2522 2514 2523 # It would also be nice to do this for all -L options, not just this one. … … 2591 2600 AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") 2592 2601 fi 2602 2603 2604 2605 2593 2606 fi 2594 2607 … … 2642 2655 test "$ac_cv_mingw32" = yes && MINGW32=yes]) 2643 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2644 2675 dnl Check for the extension used for executables. This knows that we 2645 2676 dnl add .exe for Cygwin or mingw32. Otherwise, it compiles a test … … 2649 2680 [AC_REQUIRE([AC_CYGWIN]) 2650 2681 AC_REQUIRE([AC_MINGW32]) 2682 2651 2683 AC_MSG_CHECKING([for executable suffix]) 2652 2684 AC_CACHE_VAL(ac_cv_exeext, 2653 [if test "$CYGWIN" = yes || test "$MINGW32" = yes ; then2685 [if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 2654 2686 ac_cv_exeext=.exe 2655 2687 else … … 2678 2710 2679 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2680 2733 dnl ### Checks for UNIX variants 2681 2734 dnl These are kludges which should be replaced by a single POSIX check. -
trunk/essentials/sys-devel/autoconf-2.13/autoconf.sh
r3157 r3159 36 36 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 37 37 38 : ${AC_MACRODIR=@datadir@} 38 if test -z "${AC_MACRODIR}"; then 39 if test -d "${UNIXROOT}@datadir@"; then 40 AC_MACRODIR=${UNIXROOT}@datadir@ 41 else 42 AC_MACRODIR=@datadir@ 43 fi 44 fi 39 45 : ${M4=@M4@} 40 46 : ${AWK=@AWK@} 41 47 case "${M4}" in 42 /*) # Handle the case that m4 has moved since we were configured.48 *) # Handle the case that m4 has moved since we were configured. 43 49 # It may have been found originally in a build directory. 44 50 test -f "${M4}" || M4=m4 ;; … … 122 128 esac 123 129 124 $M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout ||130 $M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout || 125 131 { rm -f $tmpin $tmpout; exit 2; } 126 132 … … 142 148 143 149 if test $# -eq 0; then 144 exec 4> configure; chmod +x configure 150 exec 4> configure; chmod +x configure 145 151 else 146 152 exec 4>&1 … … 153 159 ' $tmpout | sed ' 154 160 /__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/ 155 ' >&4161 ' >&4 156 162 157 163 rm -f $tmpout -
trunk/essentials/sys-devel/autoconf-2.13/autoheader.sh
r3157 r3159 38 38 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 39 39 40 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ 40 if test -z "${AC_MACRODIR}"; then 41 if test -d "${UNIXROOT}@datadir@"; then 42 AC_MACRODIR=${UNIXROOT}@datadir@ 43 else 44 AC_MACRODIR=@datadir@ 45 fi 46 fi 41 47 test -z "${M4}" && M4=@M4@ 42 48 case "${M4}" in 43 /*) # Handle the case that m4 has moved since we were configured.49 *) # Handle the case that m4 has moved since we were configured. 44 50 # It may have been found originally in a build directory. 45 51 test -f "${M4}" || M4=m4 ;; … … 266 272 267 273 if test $# -eq 0; then 274 275 268 276 if test $status -eq 0; then 269 277 if test -f ${config_h_in} && cmp -s $tmpout ${config_h_in}; then 270 278 rm -f $tmpout # File didn't change, so don't update its mod time. 271 279 else 272 mv -f $tmpout ${config_h_in} 280 # bird: Do a copy just to be on the safe side. 281 cp -f $tmpout ${config_h_in} 282 rm -f $tmpout 273 283 fi 274 284 else -
trunk/essentials/sys-devel/autoconf-2.13/autoreconf.sh
r3157 r3159 30 30 automake_deps= 31 31 32 test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@ 32 if test -z "${AC_MACRODIR}"; then 33 if test -d "${UNIXROOT}@datadir@"; then 34 AC_MACRODIR=${UNIXROOT}@datadir@ 35 else 36 AC_MACRODIR=@datadir@ 37 fi 38 fi 33 39 34 40 while test $# -gt 0; do … … 100 106 101 107 case "$0" in 102 /*) autoconf=$top_autoconf; autoheader=$top_autoheader ;;103 * /*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;108 *) autoconf=$top_autoconf; autoheader=$top_autoheader ;; 109 **) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;; 104 110 *) autoconf=$top_autoconf; autoheader=$top_autoheader ;; 105 111 esac 106 112 107 113 case "$AC_MACRODIR" in 108 /*) macrodir_opt="--macrodir=$AC_MACRODIR" ;;114 *) macrodir_opt="--macrodir=$AC_MACRODIR" ;; 109 115 *) macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;; 110 116 esac … … 113 119 "") localdir_opt= 114 120 aclocal=aclocal.m4 ;; 115 /*) localdir_opt="--localdir=$localdir"121 *) localdir_opt="--localdir=$localdir" 116 122 aclocal=$localdir/aclocal.m4 ;; 117 123 *) localdir_opt="--localdir=$dots$localdir" -
trunk/essentials/sys-devel/autoconf-2.13/autoupdate.sh
r3157 r3159 31 31 #sedtmp=/tmp/acups 32 32 show_version=no 33 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ 33 if test -z "${AC_MACRODIR}"; then 34 if test -d "${UNIXROOT}@datadir@"; then 35 AC_MACRODIR=${UNIXROOT}@datadir@ 36 else 37 AC_MACRODIR=@datadir@ 38 fi 39 fi 34 40 35 41 while test $# -gt 0 ; do -
trunk/essentials/sys-devel/autoconf-2.13/ifnames.sh
r3157 r3159 28 28 show_version=no 29 29 30 : ${AC_MACRODIR=@datadir@} 30 # OS/2 additions 31 if test -z "${AC_MACRODIR}"; then 32 if test -d "${UNIXROOT}@datadir@"; then 33 AC_MACRODIR=${UNIXROOT}@datadir@ 34 else 35 AC_MACRODIR=@datadir@ 36 fi 37 fi 31 38 32 39 while test $# -gt 0; do
Note:
See TracChangeset
for help on using the changeset viewer.
