Changeset 3159 for trunk/essentials/sys-devel/autoconf-2.13/acgeneral.m4
- Timestamp:
- Apr 22, 2007, 2:29:09 AM (19 years ago)
- File:
-
- 1 edited
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" ;;
Note:
See TracChangeset
for help on using the changeset viewer.
