Changeset 3159 for trunk/essentials/sys-devel/autoconf-2.13/acspecific.m4
- Timestamp:
- Apr 22, 2007, 2:29:09 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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="$PATH_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 # We reject the install program from OS/2 or W3.1 614 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;; 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$ac_exeext; 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$ac_exeext -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="$PATH_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 @sh -c 'echo \'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${DESTDIR}${USRLIBDIR}"; ac_im_libdir="${DESTDIR}${LIBDIR}"\'' 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/${ac_cv_libpre}X11.$ac_extension && 2368 test -f $ac_im_libdir/${ac_cv_libpre}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/${ac_cv_libpre}${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 test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes" 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 # XFree86/OS2 2603 if test $ac_cv_func_shmat = no; then 2604 AC_CHECK_LIB(shm, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm") 2605 fi 2593 2606 fi 2594 2607 … … 2642 2655 test "$ac_cv_mingw32" = yes && MINGW32=yes]) 2643 2656 2657 dnl Check for EMX/OS2. This is another way to set the right value for 2658 dnl EXEEXT. 2659 AC_DEFUN(AC_EMXOS2, 2660 [AC_CACHE_CHECK(for EMX/OS2 environment, ac_cv_emxos2, 2661 [: ${CC=gcc.exe} 2662 AC_TRY_COMPILE(,[return __EMX__;], 2663 ac_cv_emxos2=yes, ac_cv_emxos2=no) 2664 rm -f conftest*]) 2665 AC_CACHE_VAL(ac_cv_libpre, 2666 if test "$ac_cv_emxos2" = yes ; then 2667 ac_cv_libpre= 2668 else 2669 ac_cv_libpre=lib 2670 fi 2671 ) 2672 EMXOS2= 2673 test "$ac_cv_emxos2" = yes && EMXOS2=yes]) 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 AC_REQUIRE([AC_EMXOS2]) 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 || test "$EMXOS2" = yes; then 2654 2686 ac_cv_exeext=.exe 2655 2687 else … … 2678 2710 2679 2711 2712 dnl set PATH_IFS 2713 AC_DEFUN(AC_PATHIFS, 2714 [AC_MSG_CHECKING([for path separator]) 2715 # Filter path to get backslahes into forwardslashes 2716 case "`uname -s 2> /dev/null`" in 2717 OS/2) 2718 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'` 2719 PATH_IFS=';' 2720 ;; 2721 *) 2722 PATH_IFS=':' 2723 ;; 2724 esac 2725 AC_MSG_RESULT(${PATH_IFS}) 2726 AC_SUBST(PATH_IFS)]) 2727 2728 dnl Reformat a explicit path, so that it only shows '/' 2729 dnl Care is needed: it cannot be used in a '...' expression. 2730 define([AC_FORMAT_PATH],[`echo -E "$1" | sed 's+\\\\+/+g'`]) 2731 2732 2680 2733 dnl ### Checks for UNIX variants 2681 2734 dnl These are kludges which should be replaced by a single POSIX check.
Note:
See TracChangeset
for help on using the changeset viewer.