bjh 99/04/08 22:37:01
Modified: apr configure.in
apr/include apr_config.h.in
Log:
Some tweaks to autoconf for building under OS/2
Revision Changes Path
1.3 +5 -0 apache-apr/apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apache-apr/apr/configure.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- configure.in 1999/03/25 20:12:21 1.2
+++ configure.in 1999/04/09 05:37:00 1.3
@@ -7,6 +7,7 @@
[OPTIM="$withval"])
dnl Checks for programs.
+AC_PROG_CC
AC_PROG_RANLIB
dnl Checks for libraries.
@@ -56,6 +57,10 @@
LDLIBS="$LDLIBS -lm"
;;
esac
+fi
+
+if (test "$SYS_SW" = "OS/2"); then
+ CFLAGS="$CFLAGS -DOS2"
fi
dnl Checks for header files.
1.2 +6 -4 apache-apr/apr/include/apr_config.h.in
Index: apr_config.h.in
===================================================================
RCS file: /home/cvs/apache-apr/apr/include/apr_config.h.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- apr_config.h.in 1999/03/24 18:39:09 1.1
+++ apr_config.h.in 1999/04/09 05:37:00 1.2
@@ -77,6 +77,10 @@
* We now know what we have, so make use of it.
*/
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
@@ -208,9 +212,11 @@
#include <unix.h>
#endif
+#ifndef OS2
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
+#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -246,10 +252,6 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
-#endif
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
#endif
#ifdef HAVE__SYS_WAIT_H