aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index e16954361..f912ec4e2 100644
--- a/configure.in
+++ b/configure.in
@@ -90,9 +90,9 @@ dnl AC_CYGWIN32
MPI_OPT_FLAGS=""
if test "$GCC" = yes; then
- CFLAGS="$CFLAGS -Wall"
+ CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
dnl Always enable optimazation in MPI
- if echo "$CFLAGS" | grep "[-]O" >/dev/null ; then
+ if (echo "$CFLAGS" | grep '[-]O') >/dev/null ; then
:
else
MPI_OPT_FLAGS=-O2
@@ -129,6 +129,13 @@ case "${target}" in
CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
fi
;;
+ *-dec-osf4*)
+ if test -z "$GCC" ; then
+ # Suppress all warnings
+ # to get rid of the unsigned/signed char mismatch warnings.
+ CFLAGS="$CFLAGS -w"
+ fi
+ ;;
m68k-atari-mint)
;;
*)
@@ -188,6 +195,10 @@ if test "$try_gdbm" = yes; then
AC_CHECK_LIB(gdbm,gdbm_firstkey)
fi
+dnl Solaris needs -lsocket and -lnsl
+AC_CHECK_LIB(socket, socket)
+AC_CHECK_LIB(nsl, gethostbyname)
+
if test "$try_dynload" = yes ; then
AC_CHECK_LIB(dl,dlopen)