From: Tobias Oetiker Date: Fri, 2 Mar 2001 22:48:39 +0000 (+0000) Subject: added test for hpux. if matched, compile zlib with -fpic instead of -fPIC X-Git-Tag: 1.2rc1~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ff68b94361c3a1311f36f05a753b5dd403e44a4;p=thirdparty%2Frrdtool-1.x.git added test for hpux. if matched, compile zlib with -fpic instead of -fPIC git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@18 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/configure.in b/configure.in index 3466c45b..d8a27e75 100644 --- a/configure.in +++ b/configure.in @@ -148,12 +148,14 @@ fi dnl add pic flag in any case this makes sure all our code is relocatable CFLAGS="$CFLAGS "`grep pic_flag= libtool | sed -e 's/.*pic_flag=//' -e 's/"//g'` +ZLIB_CFLAGS=$CFLAGS dnl it seems that hpux chockes on -fPIC for some reason case $target_os in *hpux*) - CLFAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'` + ZLIB_CFLAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'` ;; esac +AC_SUBST(ZLIB_CFLAGS) dnl Checks for library functions. AC_FUNC_STRFTIME diff --git a/libraries/zlib-1.1.3/Makefile.am b/libraries/zlib-1.1.3/Makefile.am index 457db90e..6eda278d 100644 --- a/libraries/zlib-1.1.3/Makefile.am +++ b/libraries/zlib-1.1.3/Makefile.am @@ -8,6 +8,8 @@ EXTRA_DIST= ChangeLog FAQ INDEX README README.rrdtool algorithm.txt zlib.dsp zlib.dsw zlib.3 +CFLAGS = $(ZLIB_CFLAGS) + noinst_LTLIBRARIES = librrd_z.la librrd_z_la_SOURCES = \