[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem in Tru64 with autoconf choosen cc flags [PATCH]

From: Nicolás Lichtmaier
Subject: Problem in Tru64 with autoconf choosen cc flags [PATCH]
Date: Tue, 13 Jan 2004 15:23:09 -0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3

In Tru64 autoconf likes to select "-std1" as the flag to get an ANSI
compiler. The problem is that this is similar to the "-ansi" switch in
GCC, and it turns off useful extensions. The normal and recommended
switch would be just "-std". ¿Could this be fixed?

I'm attaching a patch that I think it fixes the problem by testing -std
before -std1. I haven't tested it though.


Nicolás Lichtmaier.-
Synapsis Argentina
+54(11)4314-3000 (int. 231)

--- c.m4.orig   2004-01-13 12:32:55.000000000 -0300
+++ c.m4        2004-01-13 12:34:15.000000000 -0300
@@ -840,11 +840,12 @@
 # Don't try gcc -ansi; that turns off useful extensions and
 # breaks some systems' header files.
 # AIX                  -qlanglvl=ansi
+# Tru64                        -std
 # Ultrix and OSF/1     -std1
 # HP-UX 10.20 and later        -Ae
 # HP-UX older versions -Aa -D_HPUX_SOURCE
 # SVR4                 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc 
+for ac_arg in "" -qlanglvl=ansi -std -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc 
   CC="$ac_save_CC $ac_arg"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]