dnl Digital Unix has an odd way to build for pthreads, and we can't
dnl build pthreads programs with gcc due to header problems.
alpha*-dec-osf*)
+ test -z "$CC" && CC=cc
PTHREAD_LIBS="-lpthread -lexc"
check_pthread=no
;;
esac
dnl Checks for programs.
-case "$host" in
- alpha*-dec-osf*)
- AC_PROG_CC(cc gcc /usr/ucb/cc c89)
- ;;
- *)
- AC_PROG_CC
- ;;
-esac
+AC_PROG_CC
dnl Set up system-dependent compiler flags.
if test "$GCC" = yes; then
case "$host" in
- *-*-solaris*)
- CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
+ *-*-solaris*|alpha*-dec-osf*)
+ CFLAGS="$CFLAGS -Wall -Wcast-align -Wno-char-subscripts"
;;
*)
- CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
+ CFLAGS="$CFLAGS -Wall -Wcast-align -Wstrict-prototypes"
;;
esac
fi