aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-18 03:37:39 +0000
committerYang Tse <yangsita@gmail.com>2009-10-18 03:37:39 +0000
commit6d4e6cc8137ff2ebdbaf055e39ce1263ad634191 (patch)
tree8fa6c09f7defeaaf54e2beffed0210a67b7a1db6 /configure.ac
parent86cec97b2214cefdbc7cfa1c434c5823b28a47c3 (diff)
Check for basename() is now done the same as other function checks
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 2 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 56c763d93..095ec64de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2034,6 +2034,7 @@ CURL_CHECK_FUNC_SEND
CURL_CHECK_MSG_NOSIGNAL
CURL_CHECK_FUNC_ALARM
+CURL_CHECK_FUNC_BASENAME
CURL_CHECK_FUNC_CLOSESOCKET
CURL_CHECK_FUNC_CLOSESOCKET_CAMEL
CURL_CHECK_FUNC_CONNECT
@@ -2093,8 +2094,7 @@ case $host in
;;
esac
-AC_CHECK_FUNCS([basename \
- fork \
+AC_CHECK_FUNCS([fork \
geteuid \
getpass_r \
getppid \
@@ -2132,21 +2132,6 @@ AC_CHECK_FUNCS([basename \
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
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-)
-
-
dnl Check if the getnameinfo function is available
dnl and get the types of five of its arguments.
CURL_CHECK_FUNC_GETNAMEINFO