aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-07 17:33:02 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-07 17:33:02 +0100
commitdaae10fbfe16bac26f74af91faf253d377f1b166 (patch)
treee7870e81be568ab10abcc1bf8639a9191dbbb9c1 /configure
parent289bd2d47ff58f42879ad50ebbc1b193831e4a78 (diff)
OpenSolaris (non-gcc) fixes, patches from Dagobert Michelsen <dam@opencsw.org>
with some changes.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index b1647acc..9b77604c 100755
--- a/configure
+++ b/configure
@@ -183,7 +183,7 @@ else
[ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing"
fi
-echo CFLAGS=$CFLAGS >> Makefile.settings
+echo CFLAGS=$CFLAGS $CPPFLAGS >> Makefile.settings
echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings
echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
@@ -200,6 +200,10 @@ else
fi
echo "CC=$CC" >> Makefile.settings;
+if echo $CC | grep -qw gcc; then
+ # Apparently -Wall is gcc-specific?
+ echo CFLAGS+=-Wall >> Makefile.settings
+fi
if [ -z "$LD" ]; then
if type ld > /dev/null 2> /dev/null; then