summaryrefslogtreecommitdiff
path: root/Build/source/libs/libpng/configure
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-14 17:25:27 +0000
committerKarl Berry <karl@freefriends.org>2018-01-14 17:25:27 +0000
commitfad0f391008f796a1b9bd3d367d96d4694ad11f0 (patch)
tree4ae3aaeafea79fa734fd8ca9c977d7c79ae4a1cb /Build/source/libs/libpng/configure
parentcf3c1bae51c0c688df7c54e717c64976df5ceb9f (diff)
reinstate -stdc=c89 check
git-svn-id: svn://tug.org/texlive/trunk@46308 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/libpng/configure')
-rwxr-xr-xBuild/source/libs/libpng/configure24
1 files changed, 12 insertions, 12 deletions
diff --git a/Build/source/libs/libpng/configure b/Build/source/libs/libpng/configure
index 3a48f580932..ee9bc6a9747 100755
--- a/Build/source/libs/libpng/configure
+++ b/Build/source/libs/libpng/configure
@@ -4025,6 +4025,9 @@ WARNING_CFLAGS=$kpse_cv_warning_cflags
+ac_config_headers="$ac_config_headers config.h"
+
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -5039,19 +5042,17 @@ esac
-ac_config_headers="$ac_config_headers config.h"
-
-
-if false; then
# For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
# In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
# This is incompatible with the new default mode, so we test for that and force the
+# "-std=c89" compiler option:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
$as_echo_n "checking if we need to force back C standard to C89... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#define _POSIX_SOURCE 1
-#include <stdio.h>
+
+ #define _POSIX_SOURCE 1
+ #include <stdio.h>
int
main ()
@@ -5066,16 +5067,15 @@ if ac_fn_c_try_compile "$LINENO"; then :
$as_echo "no" >&6; }
else
-if test "x$GCC" != "xyes"; then
- as_fn_error $? "Forcing back to C89 is required but the flags are unknown for other compilers than GCC" "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ if test "x$GCC" != "xyes"; then
+ as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
-CFLAGS="$CFLAGS -std=c89"
+ CFLAGS="$CFLAGS -std=c89"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
# Checks for header files.
ac_ext=c