httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <rede...@raleigh.ibm.com>
Subject [Patch] Enable native build on IBM's IA64 version of AIX.
Date Tue, 12 Sep 2000 15:49:58 GMT
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>

Mime
View raw message