]> granicus.if.org Git - php/commitdiff
Avoid including dlfcn.h, if we are compiling as an Apache module.
authorSascha Schumann <sas@php.net>
Wed, 12 Jan 2000 19:44:35 +0000 (19:44 +0000)
committerSascha Schumann <sas@php.net>
Wed, 12 Jan 2000 19:44:35 +0000 (19:44 +0000)
configure.in

index fee52bf8b8d3651000d849b66b7963df43e16460..760f9794b105a0edec3bbe9df43cb7d73baa7b17 100644 (file)
@@ -95,6 +95,7 @@ fi
 dnl ## there has to be a better way...
 dnl## OLDLIBS=$LIBS; LIBS=""
 AC_PROG_CC
+AC_AIX
 dnl## LIBS=$OLDLIBS
 
 AM_PROG_CC_STDC
@@ -782,8 +783,20 @@ if test ! -f $srcdir/ext/bcmath/number.c; then
        echo "/* Dummy File */" > $srcdir/ext/bcmath/number.h
 fi
 
-test -d TSRM && echo '#include "../php_config.h"' > TSRM/tsrm_config.h
-echo '#include "../php_config.h"' > Zend/zend_config.h
+################################################################
+# Create configuration headers
+#
+
+if test -d TSRM; then
+  echo '#include "../php_config.h"' > TSRM/tsrm-config.h
+fi
+
+cat >Zend/zend_config.h <<FEO
+#include "../php_config.h"
+#ifdef APACHE
+#undef HAVE_DLFCN_H
+#endif
+FEO
 
 # run this only when generating all the files?
 if true; then