diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-12-22 10:26:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-12-22 10:26:53 +0000 |
commit | 3b1e6264745e822c6dc6bfe379354c330072da19 (patch) | |
tree | d95f950776d0299ce0c764db94407c8fe47207b1 /opcodes/aclocal.m4 | |
parent | 372b296c81f82ba9d64e26d477363258951549de (diff) | |
download | gdb-3b1e6264745e822c6dc6bfe379354c330072da19.zip gdb-3b1e6264745e822c6dc6bfe379354c330072da19.tar.gz gdb-3b1e6264745e822c6dc6bfe379354c330072da19.tar.bz2 |
rebuild with devo tools
Diffstat (limited to 'opcodes/aclocal.m4')
-rw-r--r-- | opcodes/aclocal.m4 | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/opcodes/aclocal.m4 b/opcodes/aclocal.m4 index 4b24a04..6ca14a1 100644 --- a/opcodes/aclocal.m4 +++ b/opcodes/aclocal.m4 @@ -108,11 +108,12 @@ AC_SUBST(LIBTOOL) dnl Allow the --disable-shared flag to stop us from building shared libs. AC_ARG_ENABLE(shared, [ --enable-shared build shared libraries [default=yes]], -[if test "$enableval" = no; then - enable_shared=no -else - enable_shared=yes -fi]) +[case "$enableval" in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *opcodes*) enable_shared=yes ;; + *) shared=no ;; +esac]) libtool_shared= test "$enable_shared" = no && libtool_shared=" --disable-shared" @@ -173,10 +174,7 @@ else fi AC_CACHE_VAL(ac_cv_path_LD, [case "$LD" in - /*) - ac_cv_path_LD="$LD" # Let the user override the test with a path. - ;; - *) + "") IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. @@ -194,6 +192,9 @@ AC_CACHE_VAL(ac_cv_path_LD, done IFS="$ac_save_ifs" ;; + *) + ac_cv_path_LD="$LD" # Let the user override the test with a path. + ;; esac]) LD="$ac_cv_path_LD" if test -n "$LD"; then @@ -267,11 +268,9 @@ AC_DEFUN(AM_MAINTAINER_MODE, # Otherwise set it to "no". dnl AM_CYGWIN32() -dnl You might think we can do this by checking for a cygwin32-specific -dnl cpp define. AC_DEFUN(AM_CYGWIN32, [AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }], +[AC_TRY_COMPILE(,[return __CYGWIN32__;], am_cv_cygwin32=yes, am_cv_cygwin32=no) rm -f conftest*]) CYGWIN32= @@ -286,10 +285,11 @@ 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_REQUIRE([AM_CYGWIN32]) +AC_REQUIRE([AM_MINGW32]) AC_MSG_CHECKING([for executable suffix]) -[AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes; then +AC_CACHE_VAL(am_cv_exeext,[ +if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then am_cv_exeext=.exe else cat > am_c_test.c << 'EOF' @@ -298,7 +298,7 @@ int main() { } 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//` +am_cv_exeext=`echo 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 @@ -307,3 +307,16 @@ test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} AC_MSG_RESULT(${am_cv_exeext}) AC_SUBST(EXEEXT)]) +# Check to see if we're running under Mingw, without using +# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". +# Otherwise set it to "no". + +dnl AM_MINGW32() +AC_DEFUN(AM_MINGW32, +[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, +[AC_TRY_COMPILE(,[return __MINGW32__;], +am_cv_mingw32=yes, am_cv_mingw32=no) +rm -f conftest*]) +MINGW32= +test "$am_cv_mingw32" = yes && MINGW32=yes]) + |