Changeset 203 for trunk/configure.ac
- Timestamp:
- Dec 7, 2008, 7:26:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r202 r203 35 35 AC_SUBST(BUILD_CC) 36 36 37 if test "x$GCC" = "xyes"; then38 GCC_STACK_PROTECT_LIB39 GCC_STACK_PROTECT_CC40 GCC_PIE_CC41 fi42 43 37 AC_HEADER_STDC 44 38 dnl … … 49 43 50 44 51 AC_MSG_CHECKING([for host-specific issues])45 AC_MSG_CHECKING([for OS specific issues]) 52 46 mydebugflag=no 53 47 myneedg3=no … … 57 51 sh_use_lcaps="undef" 58 52 dnmalloc_ok=yes 53 sh_use_pie=yes 59 54 60 55 case "$host_os" in … … 64 59 AC_DEFINE(HOST_IS_LINUX) 65 60 AC_DEFINE(HAVE_EXT2_IOCTLS) 66 AC_MSG_RESULT( LINUXuse ioctl to get e2fs flags)61 AC_MSG_RESULT(use ioctl to get e2fs flags) 67 62 case "$host_cpu" in 68 63 i*86*) … … 80 75 CFLAGS="$CFLAGS -O2 -assume noaligned_objects" 81 76 myneedg3=yes 82 AC_MSG_RESULT( OSF1compiler needs assume noaligned_objects)77 AC_MSG_RESULT(compiler needs assume noaligned_objects) 83 78 else 84 79 AC_MSG_RESULT(none) … … 89 84 AC_DEFINE(HOST_IS_CYGWIN) 90 85 dnmalloc_ok=no 91 AC_MSG_RESULT( CYGWINno trusted paths and no dnmalloc)86 AC_MSG_RESULT(no trusted paths and no dnmalloc) 92 87 ;; 93 88 94 89 *darwin*) 95 90 AC_DEFINE(HOST_IS_DARWIN) 96 AC_MSG_RESULT( DARWINcheck resource forks)91 AC_MSG_RESULT(check resource forks) 97 92 ;; 98 93 94 *freebsd7*) 95 AC_DEFINE(HOST_IS_FREEBSD) 96 selectconfig=freebsd 97 case "$host_cpu" in 98 amd64) 99 sh_use_pie=no 100 dnmalloc_ok=no 101 AC_MSG_RESULT([no dnmalloc and broken compiler toolchain]) 102 ;; 103 *) 104 AC_MSG_RESULT(none) 105 ;; 106 esac 107 ;; 108 99 109 *freebsd*) 100 110 AC_DEFINE(HOST_IS_FREEBSD) … … 107 117 selectconfig=freebsd 108 118 dnmalloc_ok=no 109 AC_MSG_RESULT( OpenBSDdnmalloc does not work with pthreads)119 AC_MSG_RESULT(dnmalloc does not work with pthreads) 110 120 ;; 111 121 … … 113 123 mynetbsd=yes 114 124 selectconfig=netbsd 115 AC_MSG_RESULT( NETBSDbug with libresolve)125 AC_MSG_RESULT(bug with libresolve) 116 126 ;; 117 127 … … 122 132 i*86) 123 133 AC_DEFINE(HOST_IS_I86SOLARIS) 124 AC_MSG_RESULT( SOLARIS I86vsnprintf prototype)134 AC_MSG_RESULT(vsnprintf prototype) 125 135 ;; 126 136 *) … … 195 205 AC_DEFINE_UNQUOTED(UID_CAST, ${uid_cast}) 196 206 197 dnl Test whether gcc supports -Wno-empty-body198 dnl Suppresses warnings from glibc pthread_cleanup_pop199 dnl200 GCC_WEMPTY_BODY201 207 202 208 … … 316 322 AC_HEADER_EGREP(comp_t, sys/acct.h, AC_DEFINE(HAVE_COMP_T, , 317 323 [Define if <sys/acct.h> uses the COMP_T type.])) 324 AC_HEADER_EGREP([struct acct_v3], sys/acct.h, AC_DEFINE(HAVE_ACCT_V3, , 325 [Define if <sys/acct.h> has struct acct_v3.])) 318 326 ) 319 327 … … 624 632 625 633 AM_SA_SIGACTION_WORKS 634 635 if test "x$GCC" = "xyes"; then 636 GCC_STACK_PROTECT_LIB 637 GCC_STACK_PROTECT_CC 638 GCC_PIE_CC 639 fi 626 640 627 641 dnl ***************************************** … … 975 989 ) 976 990 977 if test x$enable_static = xyes; then978 :979 else980 LDFLAGS="$LDFLAGS $PIE_LDFLAGS"981 CFLAGS="$CFLAGS $PIE_CFLAGS"982 fi983 984 991 if test x"${mytclient}" = x-DSH_STANDALONE -o x"${mytclient}" = x-DSH_WITH_CLIENT; 985 992 then … … 993 1000 CHECK_ZLIB() 994 1001 fi 1002 1003 if test x$enable_static = xyes; then 1004 : 1005 else 1006 if test x$sh_use_pie = xyes; then 1007 LDFLAGS="$LDFLAGS $PIE_LDFLAGS" 1008 CFLAGS="$CFLAGS $PIE_CFLAGS" 1009 fi 1010 fi 1011 995 1012 996 1013 # … … 1440 1457 LIBS="-lpcre $LIBS" 1441 1458 ], 1442 AC_MSG_ERROR([The --enable-logfile-monitor option requires libpcre. For compiling the pcre development package is needed.]) 1459 [ 1460 AC_CHECK_HEADER(pcre/pcre.h, 1461 [ 1462 AC_DEFINE(USE_LOGFILE_MONITOR, 1, [Define if you want the logfile monitor module.]) 1463 AC_DEFINE(HAVE_PCRE_PCRE_H, 1, [Define if you have pcre/pcre.h.]) 1464 LIBS="-lpcre $LIBS" 1465 ], 1466 AC_MSG_ERROR([The --enable-logfile-monitor option requires libpcre. For compiling the pcre development package is needed.]) 1467 ) 1468 ] 1443 1469 ) 1444 1470 fi … … 1584 1610 1585 1611 fi 1612 1613 dnl Test whether gcc supports -Wno-empty-body 1614 dnl Suppresses warnings from glibc pthread_cleanup_pop 1615 dnl 1616 GCC_WEMPTY_BODY 1586 1617 1587 1618 AC_MSG_CHECKING([which random module to use])
Note:
See TracChangeset
for help on using the changeset viewer.