trawick 01/11/28 18:08:12
Modified: build apr_hints.m4
Log:
simplify the setting of some magic symbols on AIX
(it would be nice to autodetect the need for _USE_IRS)
Revision Changes Path
1.30 +11 -33 apr/build/apr_hints.m4
Index: apr_hints.m4
===================================================================
RCS file: /home/cvs/apr/build/apr_hints.m4,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- apr_hints.m4 2001/11/29 00:34:28 1.29
+++ apr_hints.m4 2001/11/29 02:08:11 1.30
@@ -44,40 +44,18 @@
APR_SETVAR(SHELL, [/bin/ksh])
;;
*-ibm-aix*)
+ APR_ADDTO(CPPFLAGS, [-U__STR__])
+ dnl _USR_IRS gets us the hstrerror() proto in netdb.h
case $host in
- i386-ibm-aix*)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix[1-2].*)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix3.*)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix4.1)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix4.1.*)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix4.2)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix4.2.*)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
- *-ibm-aix4.3)
- APR_ADDTO(CPPFLAGS, [-D_USE_IRS -U__STR__])
- ;;
- *-ibm-aix5*)
- APR_ADDTO(CPPFLAGS, [-D_USE_IRS -U__STR__])
- ;;
- *-ibm-aix4.3.*)
- APR_ADDTO(CPPFLAGS, [-D_USE_IRS -U__STR__])
- ;;
- *-ibm-aix*)
- APR_ADDTO(CPPFLAGS, [-U__STR__])
- ;;
+ *-ibm-aix4.3)
+ APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
+ ;;
+ *-ibm-aix5*)
+ APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
+ ;;
+ *-ibm-aix4.3.*)
+ APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
+ ;;
esac
dnl Must do a check for gcc or egcs here, to get the right options
dnl to the compiler.