changeset 51117:deff9a0011bc

*** empty log message ***
author Dave Love <fx@gnu.org>
date Wed, 21 May 2003 12:59:28 +0000
parents cac5cb5d83ec
children f80e017c6464
files configure src/config.in
diffstat 2 files changed, 72 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed May 21 00:49:46 2003 +0000
+++ b/configure	Wed May 21 12:59:28 2003 +0000
@@ -2058,7 +2058,7 @@
   i370-ibm-aix*)
     machine=ibm370aix opsys=usg5-3
   ;;
-  s390-*-linux-gnu)
+  s390-*-linux-gnu* )
     machine=ibms390 opsys=gnu-linux
   ;;
   rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
@@ -2073,7 +2073,7 @@
   rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
     machine=ibmrs6000 opsys=aix4-2
   ;;
-  rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1*  )
+  rs6000-ibm-aix5* | powerpc-ibm-aix5*  )
     machine=ibmrs6000 opsys=aix4-2
   ;;
   rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
@@ -2518,6 +2518,8 @@
 				OVERRIDE_CPPFLAGS=" "
 				;;
       *-sysv4.2uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
+      *-sysv5uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
+      *-sysv5OpenUNIX* )  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
       *-386bsd* )	        opsys=386bsd ;;
       *-nextstep* )             opsys=nextstep ;;
       ## Otherwise, we'll fall through to the generic opsys code at the bottom.
@@ -2580,6 +2582,8 @@
     *-sysv2.2 | *-sysvr2.2 )		opsys=usg5-2-2 ;;
     *-sysv3* | *-sysvr3* )		opsys=usg5-3 ;;
     *-sysv4.2uw* )			opsys=unixware ;;
+    *-sysv5uw* )			opsys=unixware ;;
+    *-sysv5OpenUNIX* )			opsys=unixware ;;
     *-sysv4.1* | *-sysvr4.1* )
 	NON_GNU_CPP=/usr/lib/cpp
 	opsys=usg5-4 ;;
@@ -3393,12 +3397,12 @@
   (exit $ac_status); }; }; then
   for ac_declaration in \
    ''\
-   '#include <stdlib.h>' \
    'extern "C" void std::exit (int) throw (); using std::exit;' \
    'extern "C" void std::exit (int); using std::exit;' \
    'extern "C" void exit (int) throw ();' \
    'extern "C" void exit (int);' \
-   'void exit (int);'
+   'void exit (int);' \
+   '#include <stdlib.h>'
 do
   cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
@@ -7705,6 +7709,64 @@
 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
 echo "${ECHO_T}$HAVE_XFREE386" >&6
 
+
+case ${host_os} in
+aix*)
+  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
+echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
+if test "${gdb_cv_bigtoc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+    case $GCC in
+    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
+    *) gdb_cv_bigtoc=-bbigtoc ;;
+    esac
+
+    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+int i;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+gdb_cv_bigtoc=
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+
+fi
+echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
+echo "${ECHO_T}$gdb_cv_bigtoc" >&6
+  ;;
+esac
+
 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
 # used for the tests that follow.  We set them back to REAL_CFLAGS and
 # REAL_CPPFLAGS later on.
@@ -10737,7 +10799,8 @@
 fi
 
 
-# Check for mail-locking functions in a "mail" library
+# Check for mail-locking functions in a "mail" library.  Probably this should
+# have the same check as for liblockfile below.
 
 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
@@ -10915,13 +10978,8 @@
 This probably means that movemail could lose mail.
 There may be a \`development' package to install containing liblockfile." >&2;}
    { (exit 1); exit 1; }; }
-  else
-cat >>confdefs.h <<\_ACEOF
-#define LIBMAIL -llockfile
-_ACEOF
-
-  fi
   else :
+  fi
 fi
 
 for ac_func in touchlock
--- a/src/config.in	Wed May 21 00:49:46 2003 +0000
+++ b/src/config.in	Wed May 21 12:59:28 2003 +0000
@@ -643,9 +643,6 @@
    Solaris, for example). */
 #undef LD_SWITCH_X_SITE_AUX
 
-/* Define to -llockfile if it is usable. */
-#undef LIBMAIL
-
 /* Define to 1 if localtime caches TZ. */
 #undef LOCALTIME_CACHE
 
@@ -1013,20 +1010,17 @@
 #  endif
 #endif
 
-#ifndef MAC_OSX
-/* On Mac OS X, macros already defined in precompiled headers.  */
 /* avoid deprecated functions */
-#if HAVE_MEMCPY
+#ifdef HAVE_MEMCPY
 #  define bcopy(a,b,s) memcpy (b,a,s)
 #endif
-#if HAVE_MEMSET
+#ifdef HAVE_MEMSET
 #  define bzero(a,s) memset (a,0,s)
 #endif
-#if HAVE_MEMCMP
+#ifdef HAVE_MEMCMP
 #  define BCMP memcmp
 #  define bcmp memcmp
 #endif
-#endif /* MAC_OSX */
 
 #endif /* EMACS_CONFIG_H */