]> granicus.if.org Git - icu/commitdiff
ICU-9790 Update configure script
authorMichael Ow <mow@svn.icu-project.org>
Sat, 14 Sep 2013 03:16:37 +0000 (03:16 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Sat, 14 Sep 2013 03:16:37 +0000 (03:16 +0000)
X-SVN-Rev: 34322

icu4c/source/configure

index a0f4f9e74c246c86969771d163e5e28b4a655e57..654de7d042c08c7b9d3e25c9af505ca9882f836a 100755 (executable)
@@ -4082,9 +4082,18 @@ $as_echo "$ac_use_strict_options" >&6; }
     then
         if test "$GCC" = yes
         then
-            # Do not use -ansi. It limits us to C90, and it breaks some platforms.
-            # We use -std=c99 to disable the gnu99 defaults and its associated warnings
-            CFLAGS="$CFLAGS -Wall -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
+            case "${host}" in
+            *-*-solaris*)
+                # Don't use -std=c99 option on Solaris/GCC
+                ;;
+            *)
+                # Do not use -ansi. It limits us to C90, and it breaks some platforms.
+                # We use -std=c99 to disable the gnu99 defaults and its associated warnings
+                CFLAGS="$CFLAGS -std=c99"
+                ;;
+            esac
+
+            CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
         else
             case "${host}" in
             *-*-cygwin)