108 lines
3.6 KiB
Plaintext
108 lines
3.6 KiB
Plaintext
dnl aclocal.m4 generated automatically by aclocal 1.2
|
|
|
|
# Check to see if we're running under Cygwin32, without using
|
|
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
|
|
# Otherwise set it to "no".
|
|
|
|
dnl AM_CYGWIN32()
|
|
AC_DEFUN(AM_CYGWIN32,
|
|
[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
|
|
[AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }],
|
|
am_cv_cygwin32=yes, am_cv_cygwin32=no)
|
|
rm -f conftest*])
|
|
CYGWIN32=
|
|
test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
|
|
|
|
# Check to see if we're running under Win32, without using
|
|
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
|
|
# Otherwise set it to "".
|
|
|
|
dnl AM_EXEEXT()
|
|
dnl This knows we add .exe if we're building in the Cygwin32
|
|
dnl environment. But if we're not, then it compiles a test program
|
|
dnl to see if there is a suffix for executables.
|
|
AC_DEFUN(AM_EXEEXT,
|
|
dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32])
|
|
AC_MSG_CHECKING([for executable suffix])
|
|
[AC_CACHE_VAL(am_cv_exeext,
|
|
[if test "$CYGWIN32" = yes; then
|
|
am_cv_exeext=.exe
|
|
else
|
|
cat > am_c_test.c << 'EOF'
|
|
int main() {
|
|
/* Nothing needed here */
|
|
}
|
|
EOF
|
|
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
|
|
am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
|
|
rm -f am_c_test*])
|
|
test x"${am_cv_exeext}" = x && am_cv_exeext=no
|
|
fi
|
|
EXEEXT=""
|
|
test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
|
|
AC_MSG_RESULT(${am_cv_exeext})
|
|
AC_SUBST(EXEEXT)])
|
|
|
|
AC_DEFUN(EGCS_PROG_INSTALL,
|
|
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
|
# Find a good install program. We prefer a C program (faster),
|
|
# so one script is as good as another. But avoid the broken or
|
|
# incompatible versions:
|
|
# SysV /etc/install, /usr/sbin/install
|
|
# SunOS /usr/etc/install
|
|
# IRIX /sbin/install
|
|
# AIX /bin/install
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
|
AC_MSG_CHECKING(for a BSD compatible install)
|
|
if test -z "$INSTALL"; then
|
|
AC_CACHE_VAL(ac_cv_path_install,
|
|
[ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
|
|
for ac_dir in $PATH; do
|
|
# Account for people who put trailing slashes in PATH elements.
|
|
case "$ac_dir/" in
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
*)
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
|
for ac_prog in ginstall scoinst install; do
|
|
if test -f $ac_dir/$ac_prog; then
|
|
if test $ac_prog = install &&
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
# AIX install. It has an incompatible calling convention.
|
|
# OSF/1 installbsd also uses dspmsg, but is usable.
|
|
:
|
|
else
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
break 2
|
|
fi
|
|
fi
|
|
done
|
|
;;
|
|
esac
|
|
done
|
|
IFS="$ac_save_IFS"
|
|
])dnl
|
|
if test "${ac_cv_path_install+set}" = set; then
|
|
INSTALL="$ac_cv_path_install"
|
|
else
|
|
# As a last resort, use the slow shell script. We don't cache a
|
|
# path for INSTALL within a source directory, because that will
|
|
# break other packages using the cache if that directory is
|
|
# removed, or if the path is relative.
|
|
INSTALL="$ac_install_sh"
|
|
fi
|
|
fi
|
|
dnl We do special magic for INSTALL instead of AC_SUBST, to get
|
|
dnl relative paths right.
|
|
AC_MSG_RESULT($INSTALL)
|
|
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
# It thinks the first close brace ends the variable substitution.
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
AC_SUBST(INSTALL_PROGRAM)dnl
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
AC_SUBST(INSTALL_DATA)dnl
|
|
])
|