summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorTom Lane1998-10-29 18:15:28 +0000
committerTom Lane1998-10-29 18:15:28 +0000
commita91c019c06c59a570137c005fc13453800de4a06 (patch)
treeeee3c54969f0cea1e06051dc706bd03441a516ac /src/configure.in
parent485a71a4ce52f732485452957f36391fb792f27d (diff)
Drat. Should test a few more cases before committing.
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/configure.in b/src/configure.in
index eb7a23bab88..a0fb152aa19 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -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)