+if test -n "$GCC"; then
+ if test -n "$GCC"; then
+ echo $ac_n "checking whether gcc accepts -std""... $ac_c" 1>&6
+echo "configure:1140: checking whether gcc accepts -std" >&5
+if eval "test \"`echo '$''{'ac_cv_gcc_accepts_std'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if ( gcc -E -std=c89 - </dev/null 2>&1 >/dev/null | \
+ grep unrecognized >/dev/null ); then
+ ac_cv_gcc_accepts_std=no
+ else
+ ac_cv_gcc_accepts_std=yes
+ fi
+fi
+
+echo "$ac_t""$ac_cv_gcc_accepts_std" 1>&6
+ ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
+ fi
+
+ echo "$ac_t""Disabling C++ comments in ANSI C code." 1>&6
+ if test "$ac_gcc_accepts_std" = yes ; then
+ #
+ # -std=c89 defines __STRICT_ANSI__, which we don't want.
+ # (That appears to be the only additional preprocessor symbol
+ # it defines, in addition to the syntax changes it makes.)
+ #
+ # -std=gnu89 is no good, because // comments were a GNU
+ # extension before they were in the ANSI C 99 spec...
+ #
+ CC="$CC -std=c89 -U__STRICT_ANSI__"
+ else
+ # The old way:
+ CC="$CC -Wp,-lang-c89"
+ fi
+ fi
+