提交 a91c019c 编写于 作者: T Tom Lane

Drat. Should test a few more cases before committing.

上级 485a71a4
此差异已折叠。
......@@ -325,6 +325,7 @@ AC_ARG_ENABLE(
)
dnl Check for C support (allow override if needed)
dnl Note: actually, setting CC environment variable works just as well.
AC_ARG_WITH(CC,
[ --with-CC=compiler use specific C compiler],
[
......@@ -334,11 +335,14 @@ AC_ARG_WITH(CC,
;;
esac
CC="$withval"
],
[
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
])
])
dnl Find a compiler if CC is not already set.
AC_PROG_CC
dnl Find CPP, then check traditional.
dnl Caution: these macros must be called in this order...
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
if test "$CC" = "gcc"
then
......@@ -354,9 +358,6 @@ echo "- setting CPPFLAGS=$CPPFLAGS"
LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
echo "- setting LDFLAGS=$LDFLAGS"
dnl Checks for programs.
AC_PROG_CPP
AC_SUBST(PORTNAME)
AC_SUBST(SRCDIR)
AC_SUBST(LDFLAGS)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册