- Timestamp:
- Sep 10, 2007, 7:56:40 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r121 r124 13 13 dnl start 14 14 dnl 15 AM_INIT_AUTOMAKE(samhain, 2.3. 6)15 AM_INIT_AUTOMAKE(samhain, 2.3.7) 16 16 AC_CANONICAL_HOST 17 17 … … 747 747 748 748 749 AC_ARG_ENABLE(static, 750 [ --enable-static enable static linking (recommended) [[no]]], 751 [ 752 if test x$enable_static = xyes; then 753 if test x"$mynetbsd" = xyes 754 then 755 tmp_LIBS=`echo $LIBS | sed 's%\-lresolv%%' ` 756 LIBS="${tmp_LIBS}" 757 fi 758 AC_DEFINE(SH_COMPILE_STATIC, 1, [Define if compiling static]) 759 if test "x$GCC" = "xyes"; then 760 LDFLAGS="$LDFLAGS -static" 761 else 762 case "$host_os" in 763 764 *aix*) 765 LDFLAGS="$LDFLAGS -bnso -bI:/lib/syscalls.exp" 766 ;; 767 768 *hpux*) 769 LDFLAGS="$LDFLAGS -Wl,-a,archive" 770 ;; 771 772 *osf*) 773 LDFLAGS="$LDFLAGS -non_shared" 774 ;; 775 776 *irix*) 777 LDFLAGS="$LDFLAGS -non_shared" 778 ;; 779 780 *sco*) 781 LDFLAGS="$LDFLAGS -dn" 782 ;; 783 784 *sun*) 785 LDFLAGS="$LDFLAGS -Bstatic" 786 ;; 787 788 *solaris*) 789 LDFLAGS="$LDFLAGS -Bstatic" 790 ;; 791 792 *) 793 echo "***********************************************" 794 echo "*" 795 echo "* Don't know how to enable static linking" 796 echo "* with your compiler. Please set the environment" 797 echo "* variable LDFLAGS to:" 798 echo "* ${LDFLAGS} + the static linking flag" 799 echo "* and run configure again" 800 echo "*" 801 echo "***********************************************" 802 ;; 803 804 esac 805 fi 806 fi 807 ] 808 ) 809 749 810 # 750 811 # this is from the snort configure.in … … 810 871 ], 811 872 [ 812 AC_MSG_ERROR([Could not find libprelude .])873 AC_MSG_ERROR([Could not find libprelude (if you are using --enable-static, the static library libprelude.a might be missing).]) 813 874 ]) 814 875 ;; 815 876 esac 816 877 else 817 AC_MSG_ERROR([Could not find libprelude .])878 AC_MSG_ERROR([Could not find libprelude-config.]) 818 879 fi 819 880 fi … … 822 883 AC_MSG_RESULT(no) 823 884 ] 824 )825 826 dnl AC_MSG_CHECKING(whether to use prelude)827 dnl AC_ARG_WITH(prelude,828 dnl [ --with-prelude Prelude IDS support [[no]]],829 dnl [830 dnl if test "x${withval}" = "xno"; then831 dnl AC_MSG_RESULT(no)832 dnl else833 dnl AC_CHECK_PROG(HAVE_PRELUDE_CONFIG, libprelude-config, yes, no)834 dnl if test "$HAVE_PRELUDE_CONFIG" = "yes"; then835 dnl sh_prelude_libs=`libprelude-config --libs | sed 's,\(.*\)\( -L.* -lprelude$\),\2 \1,'`836 dnl sh_prelude_cflags=`libprelude-config --cflags`837 dnl LIBS="$LIBS ${sh_prelude_libs}"838 dnl CFLAGS="$CFLAGS ${sh_prelude_cflags}"839 dnl AC_DEFINE(HAVE_LIBPRELUDE,1,[Have libprelude])840 dnl else841 dnl AC_MSG_ERROR([Could not find libprelude-config. Did you specify a valid path?])842 dnl fi843 dnl fi844 dnl ],845 dnl AC_MSG_RESULT(no)846 dnl )847 848 AC_ARG_ENABLE(static,849 [ --enable-static enable static linking (recommended) [[no]]],850 [851 if test x$enable_static = xyes; then852 if test x"$mynetbsd" = xyes853 then854 tmp_LIBS=`echo $LIBS | sed 's%\-lresolv%%' `855 LIBS="${tmp_LIBS}"856 fi857 AC_DEFINE(SH_COMPILE_STATIC, 1, [Define if compiling static])858 if test "x$GCC" = "xyes"; then859 LDFLAGS="$LDFLAGS -static"860 else861 case "$host_os" in862 863 *aix*)864 LDFLAGS="$LDFLAGS -bnso -bI:/lib/syscalls.exp"865 ;;866 867 *hpux*)868 LDFLAGS="$LDFLAGS -Wl,-a,archive"869 ;;870 871 *osf*)872 LDFLAGS="$LDFLAGS -non_shared"873 ;;874 875 *irix*)876 LDFLAGS="$LDFLAGS -non_shared"877 ;;878 879 *sco*)880 LDFLAGS="$LDFLAGS -dn"881 ;;882 883 *sun*)884 LDFLAGS="$LDFLAGS -Bstatic"885 ;;886 887 *solaris*)888 LDFLAGS="$LDFLAGS -Bstatic"889 ;;890 891 *)892 echo "***********************************************"893 echo "*"894 echo "* Don't know how to enable static linking"895 echo "* with your compiler. Please set the environment"896 echo "* variable LDFLAGS to:"897 echo "* ${LDFLAGS} + the static linking flag"898 echo "* and run configure again"899 echo "*"900 echo "***********************************************"901 ;;902 903 esac904 fi905 fi906 ]907 885 ) 908 886 -
trunk/docs/Changelog
r123 r124 1 2.3.6: 1 2.3.7: 2 * configure.ac: fix incorrect order of with-prelude, enable-static 3 (libprelude test was always without -static) 4 5 2.3.6 (06-09-2007): 2 6 * added yuleadmin.pl script contributed by Riccardo Murri 3 7 * fix compile error with -f-stack-protector on some systems (reported … … 20 24 * sh_gpg.c, sh_userfiles.c: use sh_getpwnam et al. wrappers 21 25 22 2.3.5 :26 2.3.5 (20-06-2007): 23 27 * sh_portcheck.c: try to tear down connections more gracefully 24 28 (request by S. Petersen)
Note:
See TracChangeset
for help on using the changeset viewer.