diff options
| author | Tom Lane | 1998-10-29 18:15:28 +0000 |
|---|---|---|
| committer | Tom Lane | 1998-10-29 18:15:28 +0000 |
| commit | a91c019c06c59a570137c005fc13453800de4a06 (patch) | |
| tree | eee3c54969f0cea1e06051dc706bd03441a516ac /src/configure.in | |
| parent | 485a71a4ce52f732485452957f36391fb792f27d (diff) | |
Drat. Should test a few more cases before committing.
Diffstat (limited to 'src/configure.in')
| -rw-r--r-- | src/configure.in | 17 |
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) |
