Changeset 3159 for trunk/essentials


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

Applied OS/2 patches.

Location:
trunk/essentials/sys-devel/autoconf-2.13
Files:
7 edited

Legend:

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

    r3157 r3159  
    588588AC_INIT_PARSE_ARGS
    589589AC_INIT_PREPARE($1)dnl
     590
     591
     592
     593
    590594AC_DIVERT_POP()dnl to NORMAL
    591595])
     
    13221326  ac_cv_prog_$1="[$]$1" # Let the user override the test.
    13231327else
    1324   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1328  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=""
    13251329ifelse([$6], , , [  ac_prog_rejected=no
    13261330])dnl
     
    13281332dnl POSIX.2 word splitting is done only on the output of word expansions,
    13291333dnl not every word.  This closes a longstanding sh security hole.
    1330   ac_dummy="ifelse([$5], , $PATH, [$5])"
     1334  ac_dummy="ifelse([$5], , $PATH, )"
    13311335  for ac_dir in $ac_dummy; do
    13321336    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
    13341339ifelse([$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
    13361342        ac_prog_rejected=yes
    13371343        continue
     
    13591365    # Default is a loser.
    13601366    AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl
    1361 ifelse([$5], , [\$]PATH, [$5])])
     1367ifelse([$5], , [\$]PATH, )])
    13621368])dnl
    13631369  fi
     
    13851391AC_CACHE_VAL(ac_cv_path_$1,
    13861392[case "[$]$1" in
    1387   /*)
     1393changequote(, )dnl
     1394  [/\\]* | [a-zA-Z]:*)
     1395changequote([, ])dnl
    13881396  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
    13891397  ;;
     
    13921400  ;;
    13931401  *)
    1394   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1402  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=""
    13951403dnl $ac_dummy forces splitting on constant user-supplied paths.
    13961404dnl POSIX.2 word splitting is done only on the output of word expansions,
    13971405dnl not every word.  This closes a longstanding sh security hole.
    1398   ac_dummy="ifelse([$4], , $PATH, [$4])"
     1406  ac_dummy="ifelse([$4], , $PATH, )"
    13991407  for ac_dir in $ac_dummy; do
    14001408    test -z "$ac_dir" && ac_dir=.
    14011409    if test -f $ac_dir/$ac_word; then
    14021410      ac_cv_path_$1="$ac_dir/$ac_word"
     1411
     1412
     1413
     1414
    14031415      break
    14041416    fi
     
    16601672[AC_REQUIRE_CPP()dnl
    16611673cat > conftest.$ac_ext <<EOF
     1674
    16621675[#]line __oline__ "configure"
    16631676#include "confdefs.h"
     
    20962109# Run this file to recreate the current configuration.
    20972110# This directory was configured as follows,
     2111
     2112
     2113
    20982114dnl hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    20992115dnl so uname gets run too.
     
    21262142ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL"
    21272143])dnl
     2144
    21282145
    21292146changequote(<<, >>)dnl
     
    21732190changequote([, ])dnl
    21742191EOF
    2175 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
     2192DEFS=`sed -f conftest.defs confdefs.h | tr '\012 '`
    21762193rm -f conftest.defs
    21772194])
     
    21922209$ac_vpsub
    21932210dnl Shell code in configure.in might set extrasub.
     2211
     2212
     2213
     2214
     2215
     2216
     2217
     2218
     2219
     2220
    21942221$extrasub
     2222
    21952223dnl Insert the sed substitutions of variables.
    21962224undivert(AC_DIVERSION_SED)
     
    22682296      if test -z "$ac_dots"; then top_srcdir=.
    22692297      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    2270   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     2298changequote(, )dnl
     2299  [/\\]* | [a-zA-Z]:*)
     2300changequote([, ])dnl
     2301    srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    22712302  *) # Relative path.
    22722303    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     
    22772308[  case "$ac_given_INSTALL" in
    22782309changequote(, )dnl
    2279   [/$]*) INSTALL="$ac_given_INSTALL" ;;
     2310  [/$*) INSTALL="$ac_given_INSTALL" ;;
    22802311changequote([, ])dnl
    22812312  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     
    22922323  esac
    22932324
    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"`
    22952326  sed -e "$ac_comsub
    22962327s%@configure_input@%$configure_input%g
     
    23602391
    23612392  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/%" `
    23632396  cat $ac_file_inputs > conftest.in
    23642397
     
    24842517  case "$srcdir" in
    24852518changequote(, )dnl
    2486   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
     2519  [/$*) ac_rel_source="$srcdir/$ac_source" ;;
    24872520changequote([, ])dnl
    24882521  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
     
    24912524  # Make a symlink if possible; otherwise try a hard link.
    24922525  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 :
    24942528  else
    24952529    AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source)
     
    25592593    .) # No --srcdir option.  We are building in place.
    25602594      ac_sub_srcdir=$srcdir ;;
    2561     /*) # Absolute path.
     2595changequote(, )dnl
     2596    [/\\]* | [a-zA-Z]:*) # Absolute path.
     2597changequote([, ])dnl
    25622598      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    25632599    *) # Relative path.
     
    25692605      ac_sub_configure=$ac_sub_srcdir/configure
    25702606    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
    25722612    else
    25732613      AC_MSG_WARN(no configuration information is in $ac_config_dir)
     
    25802620      # Make the cache file name correct relative to the subdirectory.
    25812621      case "$cache_file" in
    2582       /*) ac_sub_cache_file=$cache_file ;;
     2622changequote(, )dnl
     2623      [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;;
     2624changequote([, ])dnl
    25832625      *) # Relative path.
    25842626        ac_sub_cache_file="$ac_dots$cache_file" ;;
     
    25872629      [  case "$ac_given_INSTALL" in
    25882630changequote(, )dnl
    2589         [/$]*) INSTALL="$ac_given_INSTALL" ;;
     2631        [/$*) INSTALL="$ac_given_INSTALL" ;;
    25902632changequote([, ])dnl
    25912633        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  • 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=""
    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
     614
    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; 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 -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=
    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        @'
    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/X11.$ac_extension &&
     2368        test -f $ac_im_libdir/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/${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
    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
     2603
     2604
     2605
    25932606  fi
    25942607
     
    26422655test "$ac_cv_mingw32" = yes && MINGW32=yes])
    26432656
     2657
     2658
     2659
     2660
     2661
     2662
     2663
     2664
     2665
     2666
     2667
     2668
     2669
     2670
     2671
     2672
     2673
     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])
     2682
    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; then
    26542686  ac_cv_exeext=.exe
    26552687else
     
    26782710
    26792711
     2712
     2713
     2714
     2715
     2716
     2717
     2718
     2719
     2720
     2721
     2722
     2723
     2724
     2725
     2726
     2727
     2728
     2729
     2730
     2731
     2732
    26802733dnl ### Checks for UNIX variants
    26812734dnl These are kludges which should be replaced by a single POSIX check.
  • trunk/essentials/sys-devel/autoconf-2.13/autoconf.sh

    r3157 r3159  
    3636if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    3737
    38 : ${AC_MACRODIR=@datadir@}
     38if 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       
     44fi
    3945: ${M4=@M4@}
    4046: ${AWK=@AWK@}
    4147case "${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.
    4349    # It may have been found originally in a build directory.
    4450    test -f "${M4}" || M4=m4 ;;
     
    122128esac
    123129
    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 ||
    125131  { rm -f $tmpin $tmpout; exit 2; }
    126132
     
    142148
    143149if test $# -eq 0; then
    144   exec 4> configure; chmod +x configure
     150  exec 4> configure; chmod +x configure
    145151else
    146152  exec 4>&1
     
    153159' $tmpout | sed '
    154160/__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/
    155 ' >&4
     161' >&4
    156162
    157163rm -f $tmpout
  • trunk/essentials/sys-devel/autoconf-2.13/autoheader.sh

    r3157 r3159  
    3838if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    3939
    40 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@
     40if 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
     46fi
    4147test -z "${M4}" && M4=@M4@
    4248case "${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.
    4450    # It may have been found originally in a build directory.
    4551    test -f "${M4}" || M4=m4 ;;
     
    266272
    267273if test $# -eq 0; then
     274
     275
    268276  if test $status -eq 0; then
    269277    if test -f ${config_h_in} && cmp -s $tmpout ${config_h_in}; then
    270278      rm -f $tmpout # File didn't change, so don't update its mod time.
    271279    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
    273283    fi
    274284  else
  • trunk/essentials/sys-devel/autoconf-2.13/autoreconf.sh

    r3157 r3159  
    3030automake_deps=
    3131
    32 test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
     32if 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       
     38fi
    3339
    3440while test $# -gt 0; do
     
    100106
    101107  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 ;;
    104110  *)   autoconf=$top_autoconf; autoheader=$top_autoheader ;;
    105111  esac
    106112
    107113  case "$AC_MACRODIR" in
    108   /*)  macrodir_opt="--macrodir=$AC_MACRODIR" ;;
     114  *)  macrodir_opt="--macrodir=$AC_MACRODIR" ;;
    109115  *)   macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
    110116  esac
     
    113119  "")  localdir_opt=
    114120       aclocal=aclocal.m4 ;;
    115   /*)  localdir_opt="--localdir=$localdir"
     121  *)  localdir_opt="--localdir=$localdir"
    116122       aclocal=$localdir/aclocal.m4 ;;
    117123  *)   localdir_opt="--localdir=$dots$localdir"
  • trunk/essentials/sys-devel/autoconf-2.13/autoupdate.sh

    r3157 r3159  
    3131#sedtmp=/tmp/acups
    3232show_version=no
    33 test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@
     33if 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       
     39fi
    3440
    3541while test $# -gt 0 ; do
  • trunk/essentials/sys-devel/autoconf-2.13/ifnames.sh

    r3157 r3159  
    2828show_version=no
    2929
    30 : ${AC_MACRODIR=@datadir@}
     30# OS/2 additions
     31if 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       
     37fi
    3138
    3239while test $# -gt 0; do
Note: See TracChangeset for help on using the changeset viewer.