You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Paul J. Reder" <re...@raleigh.ibm.com> on 2000/09/12 17:49:58 UTC
[Patch] Enable native build on IBM's IA64 version of AIX.
The attached patch provides Configure and build fixes to allow Apache to be
built natively on IBM's IA64 version of AIX. The diffs were taken from the
current 1.3.13-dev tree.
--
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it. Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein
Index: apache-1.3/src/Configure
===================================================================
RCS file: /home/cvspublic/apache-1.3/src/Configure,v
retrieving revision 1.401
diff -u -r1.401 Configure
--- apache-1.3/src/Configure 2000/07/28 08:40:18 1.401
+++ apache-1.3/src/Configure 2000/09/12 15:39:59
@@ -321,6 +321,13 @@
RULE_SHARED_CORE=no
DEF_SHARED_CORE=no
;;
+ ia64-ibm-aix*)
+ OS='IBM AIX IA64'
+ CFLAGS="$CFLAGS -DIA64 -U__STR__"
+ LDFLAGS="$LDFLAGS -lm"
+ RULE_SHARED_CORE=no
+ DEF_SHARED_CORE=no
+ ;;
*-ibm-aix*)
OS='IBM AIX'
CFLAGS="$CFLAGS -DAIX=1 -U__STR__"
@@ -1278,6 +1285,18 @@
LDFLAGS_SHLIB_EXPORT="-Wl,-E -Wl,-B,deferred -Wl,+s"
SHLIB_SUFFIX_NAME=sl
;;
+ ia64-ibm-aix*)
+ case $CC in
+ */gcc|gcc ) CFLAGS_SHLIB="-fpic" ;;
+ */cc|cc ) CFLAGS_SHLIB="" ;;
+ esac
+ LDFLAGS_SHLIB=" -L /usr/lib/ia64l32 -G "
+ LDFLAGS_MOD_SHLIB="$LDFLAGS_SHLIB -bI:@libexecdir@/httpd.exp -lc"
+ LDFLAGS_SHLIB="$LDFLAGS_SHLIB -Bexport:\`echo \$@|sed -e 's:\.so\$\$:.exp:'\`"
+ LDFLAGS_SHLIB="$LDFLAGS_SHLIB -lc"
+ LDFLAGS_SHLIB_EXPORT="-Wl,-Bexport:\$(SRCDIR)/support/httpd.exp"
+ SHLIB_EXPORT_FILES=yes
+ ;;
*-ibm-aix*)
case $CC in
*/gcc|gcc ) CFLAGS_SHLIB="-fpic" ;;
@@ -1458,6 +1477,13 @@
;;
esac
;;
+ 'IBM AIX IA64')
+ case $CC in
+ */cc|cc )
+ CFLAGS="$CFLAGS -qnogenpcomp -qnousepcomp"
+ ;;
+ esac
+ ;;
esac
####################################################################
@@ -2039,6 +2065,9 @@
if [ "x$using_shlib" = "x1" ] ; then
DL_LIB=""
case $PLAT in
+ ia64-ibm-aix* )
+ DL_LIB="-ldl"
+ ;;
*-ibm-aix* )
DL_LIB="-lld"
;;
Index: apache-1.3/src/modules/standard/mod_rewrite.h
===================================================================
RCS file: /home/cvspublic/apache-1.3/src/modules/standard/mod_rewrite.h,v
retrieving revision 1.66
diff -u -r1.66 mod_rewrite.h
--- apache-1.3/src/modules/standard/mod_rewrite.h 1999/10/21 20:45:38 1.66
+++ apache-1.3/src/modules/standard/mod_rewrite.h 2000/09/12 15:40:26
@@ -168,7 +168,7 @@
#include <fcntl.h>
#endif
#endif
-#ifdef AIX
+#if defined(AIX) || defined(IA64)
#undef USE_FLOCK
#define USE_FCNTL 1
#include <fcntl.h>
Re: [Patch] Enable native build on IBM's IA64 version of AIX.
Posted by "Paul J. Reder" <re...@raleigh.ibm.com>.
Bill,
Bill Stoddard wrote:
> > -#ifdef AIX
> > +#if defined(AIX) || defined(IA64)
> > #undef USE_FLOCK
> > #define USE_FCNTL 1
> > #include <fcntl.h>
>
> This doesn't look right. Shouldn't IA64 be something like AIXIA64 or AIX64 or
> ???
>
> Bill
Yeah, I forgot that there were other companies besides IBM there for a minute ;)
some of whom might want to write op/sys' for the IA64.
--
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it. Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein
Re: [Patch] Enable native build on IBM's IA64 version of AIX.
Posted by Bill Stoddard <st...@raleigh.ibm.com>.
> Index: apache-1.3/src/modules/standard/mod_rewrite.h
> ===================================================================
> RCS file: /home/cvspublic/apache-1.3/src/modules/standard/mod_rewrite.h,v
> retrieving revision 1.66
> diff -u -r1.66 mod_rewrite.h
> --- apache-1.3/src/modules/standard/mod_rewrite.h 1999/10/21 20:45:38
1.66
> +++ apache-1.3/src/modules/standard/mod_rewrite.h 2000/09/12 15:40:26
> @@ -168,7 +168,7 @@
> #include <fcntl.h>
> #endif
> #endif
> -#ifdef AIX
> +#if defined(AIX) || defined(IA64)
> #undef USE_FLOCK
> #define USE_FCNTL 1
> #include <fcntl.h>
This doesn't look right. Shouldn't IA64 be something like AIXIA64 or AIX64 or
???
Bill