summaryrefslogtreecommitdiffhomepage
path: root/auto/func
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-25 20:44:56 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-25 20:44:56 +0000
commita8fa0a6a37b6e90324e0dcbf4733324199623841 (patch)
tree1a7edec9aa04946afc22299bf587823488fb492f /auto/func
parentd9d0ca12688034d481e2f1f5cf13a098338ec31d (diff)
downloadnginx-a8fa0a6a37b6e90324e0dcbf4733324199623841.tar.gz
nginx-a8fa0a6a37b6e90324e0dcbf4733324199623841.tar.bz2
nginx-0.0.1-2003-11-25-23:44:56 import
Diffstat (limited to 'auto/func')
-rw-r--r--auto/func21
1 files changed, 21 insertions, 0 deletions
diff --git a/auto/func b/auto/func
new file mode 100644
index 000000000..77216f936
--- /dev/null
+++ b/auto/func
@@ -0,0 +1,21 @@
+
+echo "checking for $NGX_FUNC"
+
+echo "$NGX_UNISTD_H" > autotest.c
+echo "$NGX_FUNC_INC" >> autotest.c
+echo "int main() { $NGX_FUNC_TEST; return 0; }" >> autotest.c
+
+eval "${CC} -o autotest autotest.c > /dev/null 2>&1"
+
+if [ -x autotest ]; then
+ echo " + $NGX_FUNC found"
+
+ echo "#ifndef $NGX_HAVE" >> $NGX_AUTO_CONFIG_H
+ echo "#define $NGX_HAVE 1" >> $NGX_AUTO_CONFIG_H
+ echo "#endif" >> $NGX_AUTO_CONFIG_H
+ echo >> $NGX_AUTO_CONFIG_H
+else
+ echo " + $NGX_FUNC not found"
+fi
+
+rm autotest*