summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-01-23 19:19:02 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-01-23 19:19:02 (GMT)
commit355c902a73e7bc50f7a44b5b8064dc7ec0d191b0 (patch)
tree4926e50db2cb8144e244d644cebc61ca0b39a697 /configure
parentdaa26b6c11a7741302593d7b5931ad6eb873571c (diff)
downloadhdf5-355c902a73e7bc50f7a44b5b8064dc7ec0d191b0.zip
hdf5-355c902a73e7bc50f7a44b5b8064dc7ec0d191b0.tar.gz
hdf5-355c902a73e7bc50f7a44b5b8064dc7ec0d191b0.tar.bz2
[svn-r6317] Purpose:
Bug Fix Description: Some compilers were having problems if we included the -I/usr/include and -L/usr/lib flags which are completely redundant. This could occur if the user configured with something like: ./configure --with-zlib=/usr/include,/usr/lib Solution: Check if the --with-* command is specified with /usr/include and /usr/lib. If so, then don't place them in the compile macros. Platforms tested: Linux, Modi4
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure50
1 files changed, 47 insertions, 3 deletions
diff --git a/configure b/configure
index 9f5cbaf..c0de588 100755
--- a/configure
+++ b/configure
@@ -1609,7 +1609,7 @@ echo "${ECHO_T}found" >&6
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
done
-if test $host_config != "none"; then
+if test "X$host_config" != "Xnone"; then
CC_BASENAME="`echo $CC | cut -f1 -d' ' | xargs basename 2>/dev/null`"
. $host_config
fi
@@ -7288,7 +7288,7 @@ case $host_os in
if $CC -v 2>&1 | grep '^gcc' > /dev/null ; then
: using gcc
else
- echo 'fix $wl in' $ofile
+ echo 'fixing $wl in' $ofile
ed - $ofile <<EOF 2> /dev/null
/^wl=""/s//wl="-Wl,"/
w
@@ -22557,6 +22557,13 @@ echo "${ECHO_T}suppressed" >&6
;;
esac
+ if test "X$dmalloc_inc" = "X/usr/include"; then
+ dmalloc_inc=""
+ fi
+ if test "X$dmalloc_lib" = "X/usr/lib"; then
+ dmalloc_lib=""
+ fi
+
saved_CPPFLAGS="$CPPFLAGS"
saved_LDFLAGS="$LDFLAGS"
@@ -23051,6 +23058,13 @@ echo "${ECHO_T}suppressed" >&6
;;
esac
+ if test "X$zlib_inc" = "X/usr/include"; then
+ zlib_inc=""
+ fi
+ if test "X$zlib_lib" = "X/usr/lib"; then
+ zlib_lib=""
+ fi
+
saved_CPPFLAGS="$CPPFLAGS"
saved_LDFLAGS="$LDFLAGS"
@@ -23370,6 +23384,13 @@ echo "${ECHO_T}suppressed" >&6
;;
esac
+ if test "X$pablo_inc" = "X/usr/include"; then
+ pablo_inc=""
+ fi
+ if test "X$pablo_lib" = "X/usr/lib"; then
+ pablo_lib=""
+ fi
+
saved_CPPFLAGS="$CPPFLAGS"
saved_LDFLAGS="$LDFLAGS"
if test -n "$pablo_inc"; then
@@ -23561,7 +23582,9 @@ echo "${ECHO_T}suppressed" >&6
;;
*)
saved_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -L$with_ssl"
+ if test "X$with_ssl" != "X/usr/lib"; then
+ LDFLAGS="$LDFLAGS -L$with_ssl"
+ fi
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
@@ -24407,6 +24430,13 @@ echo "${ECHO_T}suppressed" >&6
;;
esac
+ if test "X$gass_inc" = "X/usr/include"; then
+ gass_inc=""
+ fi
+ if test "X$gass_lib" = "X/usr/lib"; then
+ gass_lib=""
+ fi
+
if test -n "$gass_inc"; then
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I$gass_inc"
@@ -26122,6 +26152,13 @@ echo "${ECHO_T}suppressed" >&6
;;
esac
+ if test "X$srb_inc" = "X/usr/include"; then
+ srb_inc=""
+ fi
+ if test "X$srb_lib" = "X/usr/lib"; then
+ srb_lib=""
+ fi
+
if test -n "$srb_inc"; then
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I$srb_inc"
@@ -27270,6 +27307,13 @@ echo "${ECHO_T}suppressed" >&6
;;
esac
+ if test "X$pthread_inc" = "X/usr/include"; then
+ pthread_inc=""
+ fi
+ if test "X$pthread_lib" = "X/usr/lib"; then
+ pthread_lib=""
+ fi
+
if test -n "$pthread_inc"; then
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I$pthread_inc"