Changes in configure.ac [4097723:c08a725]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r4097723 rc08a725 1 1 dnl $Id$ 2 2 dnl Process this file with autoconf to produce a configure script. 3 AC_INIT(owl.c) 3 AC_INIT([BarnOwl],[1.1.2],[bug-barnowl@mit.edu]) 4 AM_INIT_AUTOMAKE([-Wall foreign]) 4 5 5 AC_CONFIG_HEADER( config.h)6 AC_CONFIG_HEADER([config.h]) 6 7 7 8 AC_PROG_CC 8 9 dnl If we're using GCC, enable all warnings10 if test "$GCC" = yes; then11 CFLAGS="$CFLAGS -Wall -g";12 fi13 9 14 10 dnl Check for Athena … … 46 42 AC_MSG_RESULT(no) 47 43 fi 44 PROTECT_CFLAGS=${PROTECT_CFLAGS-"-fstack-protector"} 45 SAVE_CFLAGS=$CFLAGS 46 CFLAGS="$CFLAGS $PROTECT_CFLAGS" 47 AC_MSG_CHECKING(whether protection cflags work) 48 AC_COMPILE_IFELSE(int i;, 49 [AC_MSG_RESULT(yes)], 50 [AC_MSG_RESULT(no) 51 CFLAGS=$SAVE_CFLAGS]) 48 52 49 AC_ARG_WITH([stack-protector],50 [AS_HELP_STRING([--with-stack-protector],51 [Enable gcc -fstack-protector])],52 [],53 [with_stack_protector=check])54 53 55 AS_IF([test "x$with_stack_protector" != xno], 56 [ 57 SAVE_CFLAGS=$CFLAGS 58 CFLAGS="$CFLAGS -fstack-protector" 59 AC_MSG_CHECKING(whether protection cflags work) 60 AC_COMPILE_IFELSE(int i;, 61 [AC_MSG_RESULT(yes)], 62 [AC_MSG_RESULT(no) 63 CFLAGS=$SAVE_CFLAGS 64 if test "x$with_stack_protector" != xcheck; then 65 AC_MSG_FAILURE([--with-stack-protector selected, but gcc does support it.]) 66 fi]) 67 AC_CHECK_LIB(ssp, __stack_chk_guard) 68 ]) 69 54 AC_CHECK_LIB(ssp, __stack_chk_guard) 70 55 AC_CHECK_LIB(ncursesw, initscr,, AC_MSG_ERROR(No libncursesw found.)) 71 56 AC_CHECK_LIB(com_err, com_err) … … 75 60 AC_CHECK_LIB(des425, des_cbc_encrypt,,AC_CHECK_LIB(crypto,DES_cbc_encrypt)) 76 61 AC_CHECK_LIB(resolv, res_search) 77 78 AC_ARG_WITH([zephyr], 79 [AS_HELP_STRING([--with-libzephyr], 80 [Disable Zephyr support])], 81 [], 82 [with_zephyr=check]) 83 84 AS_IF([test "x$with_zephyr" != xno], 85 [AC_CHECK_LIB([zephyr], [ZGetSender], 86 [LIBS="$LIBS -lzephyr" 87 AC_DEFINE([HAVE_LIBZEPHYR], [1], 88 [Define if you have libzephyr]) 89 AC_CHECK_LIB([zephyr], [ZInitLocationInfo], 90 AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [1], 91 [Have ZInitLocationInfo]),) 92 ], 93 [if test "x$with_zephyr" != xcheck; then 94 AC_MSG_FAILURE( 95 [--with-libzephyr was given, but libzephyr does not seem to be available.]) 96 fi 97 ])]) 98 99 AC_ARG_ENABLE([athstatic], AS_HELP_STRING([--enable-athstatic], 100 [Statically link libraries in /usr/athena/lib]), 101 [ATHSTATIC=./athstatic], 102 [ATHSTATIC=]) 62 dnl AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.)) 63 AC_CHECK_LIB(zephyr, ZGetSender) 64 AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),) 103 65 104 66 AC_CHECK_FUNCS(use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt) … … 143 105 dnl Add LDFLAGS for embedded perl 144 106 FOO=`perl -MExtUtils::Embed -e ldopts` 145 AC_MSG_NOTICE([Adding perl L DFLAGS ${FOO}])146 L DFLAGS=${LDFLAGS}\ ${FOO}107 AC_MSG_NOTICE([Adding perl LIBS ${FOO}]) 108 LIBS=${LIBS}\ ${FOO} 147 109 148 110 dnl Add CFLAGS and LDFLAGS for glib-2.0 … … 154 116 LDFLAGS="${GLIB_LIBS} ${LDFLAGS}" 155 117 118 if test "x${prefix}" = "xNONE"; then 119 prefix="${ac_default_prefix}" 120 fi 121 122 AC_DEFINE_UNQUOTED([DATADIR],["${prefix}/share/${PACKAGE}"], 123 [Package data directory]) 124 156 125 dnl Checks for typedefs, structures, and compiler characteristics. 157 158 dnl Support --program-{prefix,suffix,transform}159 AC_ARG_PROGRAM160 126 161 127 AC_SUBST(XSUBPPDIR) 162 128 AC_SUBST(XSUBPPFLAGS) 163 AC_SUBST(ATHSTATIC)164 129 165 130 AC_PROG_INSTALL 131 AC_PROG_RANLIB 166 132 167 AC_CONFIG_SUBDIRS(libfaim) 168 169 AC_OUTPUT(Makefile) 133 AC_CONFIG_FILES([Makefile libfaim/Makefile]) 134 AC_OUTPUT([perl/modules/Makefile])
Note: See TracChangeset
for help on using the changeset viewer.