Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-extra-fascism Add extra gcc3-specific warning flags
+ --with-extra-fascism add extra gcc3-specific warning flags
+ --with-faldo make some use of Nick Faldo
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-pic try to use only PIC/non-PIC objects default=use both
CFLAGS="$CFLAGS -g -ggdb -O2 -W -Wfloat-equal -Wbad-function-cast -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
fi;
+
+# Check whether --with-faldo or --without-faldo was given.
+if test "${with_faldo+set}" = set; then
+ withval="$with_faldo"
+
+fi;
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 4208 "configure"' > conftest.$ac_ext
+ echo '#line 4216 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:4744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:4752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if test -s out/conftest.err; then
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6537 "configure"
+#line 6545 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6635 "configure"
+#line 6643 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
fi
-
-
-
-for ac_func in inet_aton socket strdup strstr
+for ac_func in inet_aton
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
fi
+if test "$with_faldo" != "no"; then
+ echo $ECHO_N "checking for Nick Faldo $ECHO_C"
+ for bleh in 1 2 3; do
+ echo $ECHO_N ".\a"
+ sleep 1
+ done
+ echo "$as_me:$LINENO: result: http://blitzed.org/advocacy/enjoy.jpg" >&5
+echo "${ECHO_T} http://blitzed.org/advocacy/enjoy.jpg" >&6
+fi
+
ac_config_files="$ac_config_files Makefile src/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
AC_ARG_WITH(extra-fascism,
AC_HELP_STRING([--with-extra-fascism],
- [Add extra gcc3-specific warning flags]),
+ [add extra gcc3-specific warning flags]),
[CFLAGS="$CFLAGS -g -ggdb -O2 -W -Wfloat-equal -Wbad-function-cast -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"])
+AC_ARG_WITH(faldo,
+ AC_HELP_STRING([--with-faldo],
+ [make some use of Nick Faldo]))
+
dnl Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
fi
fi
-AC_CHECK_FUNCS(inet_aton socket strdup strstr)
+AC_CHECK_FUNCS(inet_aton)
dnl Check if we can use gethostbyname2 for ipv6
AC_CHECK_FUNCS(gethostbyname gethostbyname2)
AC_CHECK_LIB(socket, socket, AC_SUBST(LSOCKET, [-lsocket]))
AC_CHECK_LIB(nsl, gethostbyname, AC_SUBST(LNSL, [-lnsl]))
+dnl teehee - taken from MRTG / Tobias Oetiker
+if test "$with_faldo" != "no"; then
+ echo $ECHO_N "checking for Nick Faldo $ECHO_C"
+ for bleh in 1 2 3; do
+ echo $ECHO_N ".\a"
+ sleep 1
+ done
+ AC_MSG_RESULT([ http://blitzed.org/advocacy/enjoy.jpg])
+fi
+
AC_OUTPUT(Makefile src/Makefile)
echo "##############################################################################"
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
-/* Define to 1 if you have the `socket' function. */
-#undef HAVE_SOCKET
-
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
-/* Define to 1 if you have the `strdup' function. */
-#undef HAVE_STRDUP
-
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
-/* Define to 1 if you have the `strstr' function. */
-#undef HAVE_STRSTR
-
/* Define to 1 if you have the <sys/poll.h> header file. */
#undef HAVE_SYS_POLL_H