Don't use -ansi for Solaris. On some Solaris installations

compilation breaks with -ansi.
DEVEL_2_0_BRANCH-1
Henning Geinitz 2001-05-02 19:56:11 +00:00
rodzic df0742d5e5
commit a7fef568e8
2 zmienionych plików z 165 dodań i 150 usunięć

303
configure vendored

Plik diff jest za duży Load Diff

Wyświetl plik

@ -56,8 +56,15 @@ if test "${ac_cv_prog_gcc}" = "yes"; then
-Wstrict-prototypes \
-pedantic"
dnl OS/2 doesn't include some headers with -ansi enabled
AC_CHECK_HEADER(os2.h,,[WARN_CFLAGS="${WARN_CFLAGS} -ansi"])
dnl OS/2 and others don't include some headers with -ansi enabled
ANSI_FLAG=-ansi
AC_CHECK_HEADER(os2.h,[ANSI_FLAG=],)
case "${host_os}" in
solaris*)
ANSI_FLAG=
;;
esac
WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}"
# Warnings enabled by default (development)
AC_ARG_ENABLE(warnings,
@ -86,6 +93,7 @@ if test "${ac_cv_prog_gcc}" = "yes"; then
done
fi])
fi # ac_cv_prog_gcc
echo using CFLAGS=${CFLAGS}
dnl Checks for header files.
AC_HEADER_STDC