From a7512c7bc693f5fd456bbe4652a51eecefe2d93b Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Thu, 22 Apr 1999 02:36:58 +0000 Subject: [PATCH] Oops. Well, that's why I didn't want to move the NSPR checks in the first place.... --- configure.in | 248 +++++++++++++++++++++++++-------------------------- 1 file changed, 124 insertions(+), 124 deletions(-) diff --git a/configure.in b/configure.in index 57104fca9f52..59da997864d0 100644 --- a/configure.in +++ b/configure.in @@ -561,6 +561,130 @@ AM_PATH_LIBIDL($LIBIDL_VERSION,BUILD_XPIDL=1, [echo See http://www.rpi.edu/~veliaa/libIDL/ for more information.] [AC_MSG_ERROR(libIDL not installed.)]) +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ======================================================== +AC_C_CONST +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_TYPE_UID_T +AC_STRUCT_ST_BLKSIZE +AC_STRUCT_ST_RDEV +AC_STRUCT_TM +AC_STRUCT_TIMEZONE + +dnl Check for int16_t, int32_t, and uint16_t. +dnl ======================================================== +AC_MSG_CHECKING(for int16_t) +AC_CACHE_VAL(ac_cv_int16_t, + [AC_TRY_COMPILE([#include + #include ], + [int16_t foo = 0;], + [ac_cv_int16_t=true], + [ac_cv_int16_t=false])]) +if test "$ac_cv_int16_t" = true ; then + AC_DEFINE(HAVE_INT16_T) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi +AC_MSG_CHECKING(for int32_t) +AC_CACHE_VAL(ac_cv_int32_t, + [AC_TRY_COMPILE([#include + #include ], + [int32_t foo = 0;], + [ac_cv_int32_t=true], + [ac_cv_int32_t=false])]) +if test "$ac_cv_int32_t" = true ; then + AC_DEFINE(HAVE_INT32_T) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi +AC_MSG_CHECKING(for uint16_t) +AC_CACHE_VAL(ac_cv_uint16_t, + [AC_TRY_COMPILE([#include + #include ], + [uint16_t foo = 0;], + [ac_cv_uint16_t=true], + [ac_cv_uint16_t=false])]) +if test "$ac_cv_uint16_t" = true ; then + AC_DEFINE(HAVE_UINT16_T) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Checks for header files. +dnl ======================================================== +AC_HEADER_DIRENT +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_HEADER_TIME +AC_CHECK_HEADERS(fcntl.h limits.h malloc.h paths.h strings.h unistd.h) +AC_CHECK_HEADERS(sys/bittypes.h sys/file.h sys/ioctl.h sys/time.h) +AC_CHECK_HEADERS(getopt.h ioctl.h filio.h systeminfo.h compat.h) + +dnl These are all the places some variant of statfs can be hiding. +AC_CHECK_HEADERS(sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h) + +case $target in +*-aix4.3*) + ;; +*) + AC_CHECK_HEADERS(sys/cdefs.h) + ;; +esac + +dnl Checks for libraries. +dnl ======================================================== +AC_CHECK_LIB(c_r, gethostbyname_r) +AC_CHECK_LIB(m, atan) +AC_CHECK_LIB(dl, dlopen) +if test ! "$GNU_CXX"; then + AC_CHECK_LIB(C, demangle) +fi +AC_CHECK_LIB(resolv, res_gethostbyaddr) +AC_CHECK_LIB(socket, getnetbyaddr) +AC_CHECK_LIB(util, login) +AC_CHECK_LIB(nsl, xdr_string) +AC_CHECK_LIB(elf, elf_rawdata) +AC_CHECK_LIB(intl, textdomain) +AC_CHECK_LIB(posix4, shm_open) +AC_CHECK_LIB(w, iswupper) +AC_CHECK_LIB(l, yywrap,, + AC_CHECK_LIB(fl, yywrap)) + +dnl Replace `main' with a function in -lC_r: +dnl AC_CHECK_LIB(C_r, main) +dnl Replace `main' with a function in -lSgm: +dnl AC_CHECK_LIB(Sgm, main) +dnl Replace `main' with a function in -laudio: +dnl AC_CHECK_LIB(audio, main) +dnl Replace `main' with a function in -ldld: +dnl AC_CHECK_LIB(dld, main) +dnl Replace `main' with a function in -ldnet_stub: +dnl AC_CHECK_LIB(dnet_stub, main) +dnl Replace `main' with a function in -lgen: +dnl AC_CHECK_LIB(gen, main) +dnl Replace `main' with a function in -lhash: +dnl AC_CHECK_LIB(hash, main) +dnl Replace `main' with a function in -lip6: +dnl AC_CHECK_LIB(ip6, main) +dnl Replace `main' with a function in -lipc: +dnl AC_CHECK_LIB(ipc, main) +dnl Replace `main' with a function in -lmalloc_cv: +dnl AC_CHECK_LIB(malloc_cv, main) +dnl Replace `main' with a function in -lPW: +dnl AC_CHECK_LIB(PW, main) +dnl Replace `main' with a function in -lots: +dnl AC_CHECK_LIB(ots, main) +dnl Replace `main' with a function in -lrt: +dnl AC_CHECK_LIB(rt, main) +dnl Replace `main' with a function in -lsvld: +dnl AC_CHECK_LIB(svld, main) + dnl ======================================================== dnl = dnl = pthread support @@ -753,130 +877,6 @@ else MOZ_NATIVE_NSPR=1 fi -dnl Checks for typedefs, structures, and compiler characteristics. -dnl ======================================================== -AC_C_CONST -AC_TYPE_MODE_T -AC_TYPE_OFF_T -AC_TYPE_PID_T -AC_TYPE_SIZE_T -AC_TYPE_UID_T -AC_STRUCT_ST_BLKSIZE -AC_STRUCT_ST_RDEV -AC_STRUCT_TM -AC_STRUCT_TIMEZONE - -dnl Check for int16_t, int32_t, and uint16_t. -dnl ======================================================== -AC_MSG_CHECKING(for int16_t) -AC_CACHE_VAL(ac_cv_int16_t, - [AC_TRY_COMPILE([#include - #include ], - [int16_t foo = 0;], - [ac_cv_int16_t=true], - [ac_cv_int16_t=false])]) -if test "$ac_cv_int16_t" = true ; then - AC_DEFINE(HAVE_INT16_T) - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi -AC_MSG_CHECKING(for int32_t) -AC_CACHE_VAL(ac_cv_int32_t, - [AC_TRY_COMPILE([#include - #include ], - [int32_t foo = 0;], - [ac_cv_int32_t=true], - [ac_cv_int32_t=false])]) -if test "$ac_cv_int32_t" = true ; then - AC_DEFINE(HAVE_INT32_T) - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi -AC_MSG_CHECKING(for uint16_t) -AC_CACHE_VAL(ac_cv_uint16_t, - [AC_TRY_COMPILE([#include - #include ], - [uint16_t foo = 0;], - [ac_cv_uint16_t=true], - [ac_cv_uint16_t=false])]) -if test "$ac_cv_uint16_t" = true ; then - AC_DEFINE(HAVE_UINT16_T) - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi - -dnl Checks for header files. -dnl ======================================================== -AC_HEADER_DIRENT -AC_HEADER_STDC -AC_HEADER_SYS_WAIT -AC_HEADER_TIME -AC_CHECK_HEADERS(fcntl.h limits.h malloc.h paths.h strings.h unistd.h) -AC_CHECK_HEADERS(sys/bittypes.h sys/file.h sys/ioctl.h sys/time.h) -AC_CHECK_HEADERS(getopt.h ioctl.h filio.h systeminfo.h compat.h) - -dnl These are all the places some variant of statfs can be hiding. -AC_CHECK_HEADERS(sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h) - -case $target in -*-aix4.3*) - ;; -*) - AC_CHECK_HEADERS(sys/cdefs.h) - ;; -esac - -dnl Checks for libraries. -dnl ======================================================== -AC_CHECK_LIB(c_r, gethostbyname_r) -AC_CHECK_LIB(m, atan) -AC_CHECK_LIB(dl, dlopen) -if test ! "$GNU_CXX"; then - AC_CHECK_LIB(C, demangle) -fi -AC_CHECK_LIB(resolv, res_gethostbyaddr) -AC_CHECK_LIB(socket, getnetbyaddr) -AC_CHECK_LIB(util, login) -AC_CHECK_LIB(nsl, xdr_string) -AC_CHECK_LIB(elf, elf_rawdata) -AC_CHECK_LIB(intl, textdomain) -AC_CHECK_LIB(posix4, shm_open) -AC_CHECK_LIB(w, iswupper) -AC_CHECK_LIB(l, yywrap,, - AC_CHECK_LIB(fl, yywrap)) - -dnl Replace `main' with a function in -lC_r: -dnl AC_CHECK_LIB(C_r, main) -dnl Replace `main' with a function in -lSgm: -dnl AC_CHECK_LIB(Sgm, main) -dnl Replace `main' with a function in -laudio: -dnl AC_CHECK_LIB(audio, main) -dnl Replace `main' with a function in -ldld: -dnl AC_CHECK_LIB(dld, main) -dnl Replace `main' with a function in -ldnet_stub: -dnl AC_CHECK_LIB(dnet_stub, main) -dnl Replace `main' with a function in -lgen: -dnl AC_CHECK_LIB(gen, main) -dnl Replace `main' with a function in -lhash: -dnl AC_CHECK_LIB(hash, main) -dnl Replace `main' with a function in -lip6: -dnl AC_CHECK_LIB(ip6, main) -dnl Replace `main' with a function in -lipc: -dnl AC_CHECK_LIB(ipc, main) -dnl Replace `main' with a function in -lmalloc_cv: -dnl AC_CHECK_LIB(malloc_cv, main) -dnl Replace `main' with a function in -lPW: -dnl AC_CHECK_LIB(PW, main) -dnl Replace `main' with a function in -lots: -dnl AC_CHECK_LIB(ots, main) -dnl Replace `main' with a function in -lrt: -dnl AC_CHECK_LIB(rt, main) -dnl Replace `main' with a function in -lsvld: -dnl AC_CHECK_LIB(svld, main) - dnl Checks for library functions. dnl ======================================================== AC_FUNC_ALLOCA