#! /bin/sh
-# From configure.in Id: configure.in 1631 2006-06-27 04:45:28Z sirvulcan .
+# From configure.in Id: configure.in 1718 2006-08-01 05:30:41Z sirvulcan .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for X3 1.5.
#
--with-malloc=type Enables use of a special malloc library; one of:
system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
--with-protocol=name Choose IRC dialect to support; one of:
- p10 (the default), bahamut
+ p10 (the default)
--without-getopt Disables building of the GNU getopt library
--with-tre=PATH Base path to where libtre is installed, such that PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
fi
+echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
+echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
+if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lGeoIP $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char GeoIP_open ();
+int
+main ()
+{
+GeoIP_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_GeoIP_GeoIP_open=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_GeoIP_GeoIP_open=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
+echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
+if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBGEOIP 1
+_ACEOF
+
+ LIBS="-lGeoIP $LIBS"
+
+fi
+
+
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
-for ac_header in fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
+
+
+for ac_header in GeoIP.h GeoIPCity.h fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
fi
+
for ac_func in gettimeofday
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
PROTO_FILES=proto-p10.c
x3_ircd="P10"
-elif test "x$withval" = "xbahamut" ; then
- echo "$as_me:$LINENO: result: Bahamut" >&5
-echo "${ECHO_T}Bahamut" >&6
-
-cat >>confdefs.h <<\_ACEOF
-#define WITH_PROTOCOL_BAHAMUT 1
-_ACEOF
-
- MODULE_OBJS="$MODULE_OBJS proto-bahamut.\$(OBJEXT)"
- x3_ircd="Bahamut"
else
{ { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
echo "${ECHO_T}Using include dir $withval to find libtre" >&6
CPPFLAGS="-I$withval/include -L$withval/lib"
+ LIBS="$LIBS -L$withval/lib"
else
- echo "$as_me:$LINENO: result: Looking for tre in system and home dir (${HOME}) for libtre.." >&5
-echo "${ECHO_T}Looking for tre in system and home dir (${HOME}) for libtre.." >&6
+ echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
+echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6
CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
+ LIBS="$LIBS -L${HOME}/lib"
fi
if test "${ac_cv_header_tre_regex_h+set}" = set; then
echo "$as_me:$LINENO: checking for tre/regex.h" >&5