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/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[/\\]*|[a-zA-Z]:*) # 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  # bird: OS/2 hack here for missing link counting.
     275  exec 2>&1
    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
Note: See TracChangeset for help on using the changeset viewer.