X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=3ba1ec3497419409045a7afc4b4cb4c37f0677e1;hp=ea8a1ad5d996cecff184d449318c46ea9a01feea;hb=b739761629071896f23012995493873570bf5a6b;hpb=c158201ee217740cb1b64858df8c7d39cf7793d0 diff --git a/configure b/configure index ea8a1ad5..3ba1ec34 100755 --- a/configure +++ b/configure @@ -43,6 +43,7 @@ fi CC=${CC:-gcc} CXX=${CXX:-g++} CFLAGS=${CFLAGS:--O2} +CPPFLAGS=${CPPFLAGS:-} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} LDFLAGS=${LDFLAGS:-} XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config} @@ -91,6 +92,7 @@ First, some common variables can specified via environment variables: CC The C compiler to use CFLAGS Flags to pass to the C compiler + CPPFLAGS Flags to pass to the C preprocessor CXX The C++ compiler to use CXXFLAGS Flags to pass to the C compiler LDFLAGS Flags to pass when linking @@ -236,7 +238,12 @@ done # Makefile.config file later like most values), because we need to # actually investigate this value compared to the ldconfig_paths value # below. -libdir_expanded=${LIBDIR:-${PREFIX}/lib} +if [ -z "$LIBDIR" ] ; then + libdir_expanded="${PREFIX}/lib" +else + # very non-general variable expansion + libdir_expanded=`echo "$LIBDIR" | sed "s|\\${prefix}|${PREFIX}|g; s|\\$prefix/|${PREFIX}/|; s|//*|/|g"` +fi cat <