Ignore:
Timestamp:
Apr 22, 2007, 2:29:09 AM (18 years ago)
Author:
bird
Message:

Applied OS/2 patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-devel/autoconf-2.13/acspecific.m4

    r3157 r3159  
    606606if test -z "$INSTALL"; then
    607607AC_CACHE_VAL(ac_cv_path_install,
    608 [  IFS="${IFS=  }"; ac_save_IFS="$IFS"; IFS=":"
     608[  IFS="${IFS=  }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
    609609  for ac_dir in $PATH; do
    610610    # Account for people who put trailing slashes in PATH elements.
    611611    case "$ac_dir/" in
    612612    /|./|.//|/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/*) ;;
    613615    *)
    614616      # OSF1 and SCO ODT 3.0 have their own names for install.
     
    616618      # by default.
    617619      for ac_prog in ginstall scoinst install; do
    618         if test -f $ac_dir/$ac_prog; then
     620        if test -f $ac_dir/$ac_prog$ac_exeext; then
    619621          if test $ac_prog = install &&
    620622            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     
    622624            :
    623625          else
    624             ac_cv_path_install="$ac_dir/$ac_prog -c"
     626            ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
    625627            break 2
    626628          fi
     
    667669  ac_cv_prog_LN_S="ln -s"
    668670else
    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
     677fi
     678rm -f conftestdata*])dnl
    671679LN_S="$ac_cv_prog_LN_S"
    672680if test "$ac_cv_prog_LN_S" = "ln -s"; then
     
    21812189      arg=`echo $arg | sed -e 's%^P,%%'`
    21822190      SAVE_IFS=$IFS
    2183       IFS=:
     2191      IFS="$PATH_IFS"
    21842192      list=
    21852193      for elt in $arg; do
     
    23502358  cat > Imakefile <<'EOF'
    23512359acfindx:
    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}"\''
    23532361EOF
    23542362  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
     
    23572365    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    23582366    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; then
     2367      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
    23612369        ac_im_usrlibdir=$ac_im_libdir; break
    23622370      fi
     
    24912499dnl Don't even attempt the hair of trying to link an X program!
    24922500  for ac_extension in a so sl; do
    2493     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
     2501    if test -r $ac_dir/${ac_cv_libpre}${x_direct_test_library}.$ac_extension; then
    24942502      ac_x_libraries=$ac_dir
    24952503      break 2
     
    25112519    X_CFLAGS="$X_CFLAGS -I$x_includes"
    25122520  fi
     2521  test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
    25132522
    25142523  # It would also be nice to do this for all -L options, not just this one.
     
    25912600      AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc")
    25922601    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
    25932606  fi
    25942607
     
    26422655test "$ac_cv_mingw32" = yes && MINGW32=yes])
    26432656
     2657dnl Check for EMX/OS2.  This is another way to set the right value for
     2658dnl EXEEXT.
     2659AC_DEFUN(AC_EMXOS2,
     2660[AC_CACHE_CHECK(for EMX/OS2 environment, ac_cv_emxos2,
     2661[: ${CC=gcc.exe}
     2662AC_TRY_COMPILE(,[return __EMX__;],
     2663ac_cv_emxos2=yes, ac_cv_emxos2=no)
     2664rm -f conftest*])
     2665AC_CACHE_VAL(ac_cv_libpre,
     2666if test "$ac_cv_emxos2" = yes ; then
     2667  ac_cv_libpre=
     2668else
     2669  ac_cv_libpre=lib
     2670fi
     2671)
     2672EMXOS2=
     2673test "$ac_cv_emxos2" = yes && EMXOS2=yes])
     2674
    26442675dnl Check for the extension used for executables.  This knows that we
    26452676dnl add .exe for Cygwin or mingw32.  Otherwise, it compiles a test
     
    26492680[AC_REQUIRE([AC_CYGWIN])
    26502681AC_REQUIRE([AC_MINGW32])
     2682AC_REQUIRE([AC_EMXOS2])
    26512683AC_MSG_CHECKING([for executable suffix])
    26522684AC_CACHE_VAL(ac_cv_exeext,
    2653 [if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
     2685[if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
    26542686  ac_cv_exeext=.exe
    26552687else
     
    26782710
    26792711
     2712dnl set PATH_IFS
     2713AC_DEFUN(AC_PATHIFS,
     2714[AC_MSG_CHECKING([for path separator])
     2715# Filter path to get backslahes into forwardslashes
     2716case "`uname -s 2> /dev/null`" in
     2717OS/2)
     2718  PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
     2719  PATH_IFS=';'
     2720  ;;
     2721*)
     2722  PATH_IFS=':'
     2723  ;;
     2724esac
     2725AC_MSG_RESULT(${PATH_IFS})
     2726AC_SUBST(PATH_IFS)])
     2727
     2728dnl Reformat a explicit path, so that it only shows '/'
     2729dnl Care is needed: it cannot be used in a '...' expression.
     2730define([AC_FORMAT_PATH],[`echo -E "$1" | sed 's+\\\\+/+g'`])
     2731
     2732
    26802733dnl ### Checks for UNIX variants
    26812734dnl These are kludges which should be replaced by a single POSIX check.
Note: See TracChangeset for help on using the changeset viewer.