aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-08 08:18:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-08 08:18:08 +0000
commit76637759713e97871d10da9c265a40410bdc672e (patch)
treee90eff43d37132035dd91cd665f20f6564ee9460 /configure.ac
parentfe46572f2b6c9380feabb3a22bff349f13456531 (diff)
if basename was found, check for a prototype and if none was found, provide
our own in the formdata.c file to prevent warnings on systems without it
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f7d18f807..30b882100 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1234,6 +1234,16 @@ if test "$ac_cv_func_sigsetjmp" != "yes"; then
)
fi
+AC_CHECK_DECL(basename, ,
+ AC_DEFINE(NEED_BASENAME_PROTO, 1, [If you lack a fine basename() prototype]),
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_LIBGEN_H
+#include <libgen.h>
+#endif
+)
+
dnl poll() might be badly emulated, as in Mac OS X 10.3 (and other BSDs?) and
dnl to find out we make an extra check here!
if test "$ac_cv_func_poll" = "yes"; then