Permalink
Browse files

Fixed liblognorm linking issue

  • Loading branch information...
1 parent 6cc368c commit d036f131a991091bfb190642e0e1d68b138828c2 @beave committed Mar 21, 2012
Showing with 111 additions and 1 deletion.
  1. +6 −0 config.h
  2. +6 −0 config.h.in
  3. +3 −1 config.status
  4. +88 −0 configure
  5. +8 −0 configure.in
View
@@ -46,9 +46,15 @@
/* Define to 1 if you have the `dnet' library (-ldnet). */
#define HAVE_LIBDNET 1
+/* Define to 1 if you have the `ee' library (-lee). */
+#define HAVE_LIBEE 1
+
/* Define to 1 if you have the `esmtp' library (-lesmtp). */
#define HAVE_LIBESMTP 1
+/* Define to 1 if you have the `estr' library (-lestr). */
+#define HAVE_LIBESTR 1
+
/* Define to 1 if you have the `lognorm' library (-llognorm). */
#define HAVE_LIBLOGNORM 1
View
@@ -45,9 +45,15 @@
/* Define to 1 if you have the `dnet' library (-ldnet). */
#undef HAVE_LIBDNET
+/* Define to 1 if you have the `ee' library (-lee). */
+#undef HAVE_LIBEE
+
/* Define to 1 if you have the `esmtp' library (-lesmtp). */
#undef HAVE_LIBESMTP
+/* Define to 1 if you have the `estr' library (-lestr). */
+#undef HAVE_LIBESTR
+
/* Define to 1 if you have the `lognorm' library (-llognorm). */
#undef HAVE_LIBLOGNORM
View
@@ -680,7 +680,7 @@ S["build"]="i686-pc-linux-gnu"
S["target_alias"]=""
S["host_alias"]=""
S["build_alias"]=""
-S["LIBS"]="-ldnet -lpcap -llognorm -lprelude -lesmtp -lpq -lmysqlclient_r -lm -lpthread -lpcre "
+S["LIBS"]="-ldnet -lpcap -llognorm -lee -lestr -lprelude -lesmtp -lpq -lmysqlclient_r -lm -lpthread -lpcre "
S["ECHO_T"]=""
S["ECHO_N"]="-n"
S["ECHO_C"]=""
@@ -839,6 +839,8 @@ D["HAVE_LIBMYSQLCLIENT_R"]=" 1"
D["HAVE_LIBPQ"]=" 1"
D["HAVE_LIBESMTP"]=" 1"
D["HAVE_LIBPRELUDE"]=" 1"
+D["HAVE_LIBESTR"]=" 1"
+D["HAVE_LIBEE"]=" 1"
D["HAVE_LIBLOGNORM"]=" 1"
D["HAVE_LIBPCAP"]=" 1"
D["HAVE_LIBDNET"]=" 1"
View
@@ -6668,6 +6668,94 @@ fi
#AC_CHECK_HEADER([ptree.h])
#AC_CHECK_HEADER([lognorm.h])
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lestr" >&5
+$as_echo_n "checking for main in -lestr... " >&6; }
+if test "${ac_cv_lib_estr_main+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lestr $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_estr_main=yes
+else
+ ac_cv_lib_estr_main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_estr_main" >&5
+$as_echo "$ac_cv_lib_estr_main" >&6; }
+if test "x$ac_cv_lib_estr_main" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBESTR 1
+_ACEOF
+
+ LIBS="-lestr $LIBS"
+
+else
+ as_fn_error "The libestr library cannot be found.
+This library is important for the correlation aspects of Sagan! Please see
+https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature
+use the --disable-lognorm flag. " "$LINENO" 5
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lee" >&5
+$as_echo_n "checking for main in -lee... " >&6; }
+if test "${ac_cv_lib_ee_main+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lee $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ee_main=yes
+else
+ ac_cv_lib_ee_main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ee_main" >&5
+$as_echo "$ac_cv_lib_ee_main" >&6; }
+if test "x$ac_cv_lib_ee_main" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBEE 1
+_ACEOF
+
+ LIBS="-lee $LIBS"
+
+else
+ as_fn_error "The libee library cannot be found.
+This library is important for the correlation aspects of Sagan! Please see
+https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature
+use the --disable-lognorm flag. " "$LINENO" 5
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llognorm" >&5
$as_echo_n "checking for main in -llognorm... " >&6; }
if test "${ac_cv_lib_lognorm_main+set}" = set; then :
View
@@ -252,6 +252,14 @@ if test "$LOGNORM" = "yes"; then
AC_CHECK_HEADER([liblognorm.h])
#AC_CHECK_HEADER([ptree.h])
#AC_CHECK_HEADER([lognorm.h])
+ AC_CHECK_LIB(estr, main,,AC_MSG_ERROR(The libestr library cannot be found.
+This library is important for the correlation aspects of Sagan! Please see
+https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature
+use the --disable-lognorm flag. ))
+ AC_CHECK_LIB(ee, main,,AC_MSG_ERROR(The libee library cannot be found.
+This library is important for the correlation aspects of Sagan! Please see
+https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature
+use the --disable-lognorm flag. ))
AC_CHECK_LIB(lognorm, main,,AC_MSG_ERROR(The liblognorm library cannot be found.
This library is important for the correlation aspects of Sagan! Please see
https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature

0 comments on commit d036f13

Please sign in to comment.