diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.ac | 25 |
2 files changed, 30 insertions, 3 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20060918 | ||
2 | - (dtucker) [configure.ac] On AIX, check to see if the compiler will allow | ||
3 | macro redefinitions, and if not, remove "-qlanglvl=ansi" from the flags. | ||
4 | Allows build out of the box with older VAC and XLC compilers. Found by | ||
5 | David Bronder and Bernhard Simon. | ||
6 | |||
1 | 20060916 | 7 | 20060916 |
2 | - OpenBSD CVS Sync | 8 | - OpenBSD CVS Sync |
3 | - djm@cvs.openbsd.org 2006/09/16 19:53:37 | 9 | - djm@cvs.openbsd.org 2006/09/16 19:53:37 |
@@ -5449,4 +5455,4 @@ | |||
5449 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5455 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5450 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5456 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5451 | 5457 | ||
5452 | $Id: ChangeLog,v 1.4550 2006/09/17 12:55:52 dtucker Exp $ | 5458 | $Id: ChangeLog,v 1.4551 2006/09/18 13:17:40 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index cfc5d594a..f790f9a51 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.364 2006/09/12 11:54:11 djm Exp $ | 1 | # $Id: configure.ac,v 1.365 2006/09/18 13:17:41 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.364 $) | 18 | AC_REVISION($Revision: 1.365 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -134,6 +134,27 @@ SPC_MSG="no" | |||
134 | # Check for some target-specific stuff | 134 | # Check for some target-specific stuff |
135 | case "$host" in | 135 | case "$host" in |
136 | *-*-aix*) | 136 | *-*-aix*) |
137 | # Some versions of VAC won't allow macro redefinitions at | ||
138 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
139 | # particularly with older versions of vac or xlc. | ||
140 | # It also throws errors about null macro argments, but these are | ||
141 | # not fatal. | ||
142 | AC_MSG_CHECKING(if compiler allows macro redefinitions) | ||
143 | AC_COMPILE_IFELSE( | ||
144 | [AC_LANG_SOURCE([[ | ||
145 | #define testmacro foo | ||
146 | #define testmacro bar | ||
147 | int main(void) { exit(0); } | ||
148 | ]])], | ||
149 | [ AC_MSG_RESULT(yes) ], | ||
150 | [ AC_MSG_RESULT(no) | ||
151 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
152 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
153 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
154 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
155 | ] | ||
156 | ) | ||
157 | |||
137 | AC_MSG_CHECKING([how to specify blibpath for linker ($LD)]) | 158 | AC_MSG_CHECKING([how to specify blibpath for linker ($LD)]) |
138 | if (test -z "$blibpath"); then | 159 | if (test -z "$blibpath"); then |
139 | blibpath="/usr/lib:/lib" | 160 | blibpath="/usr/lib:/lib" |