]> granicus.if.org Git - graphviz/commitdiff
remove -D_POSIX_C_SOURCE=200112L as it breaks ./configure test for php.h untagged-d177ed11e0540b07902a
authorJohn Ellson <ellson@research.att.com>
Tue, 16 Aug 2016 16:03:03 +0000 (12:03 -0400)
committerJohn Ellson <ellson@research.att.com>
Tue, 16 Aug 2016 16:03:03 +0000 (12:03 -0400)
configure.ac
graphviz.spec.in

index 04013fd4e90cc5e2a0f37ba4808faa1bc12599fe..72833ba31ae87339328053316bcbd19aedc32421 100644 (file)
@@ -330,14 +330,16 @@ then
   CFLAGS="${CFLAGS} -Wmissing-include-dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
 
  # if C99, then enable additional warnings
- if [test "${ac_cv_prog_cc_c99}" != "no"]
- then
+# if [test "${ac_cv_prog_cc_c99}" != "no"]
+# then
     # When enabling c99 on this codebase, this POSIX version should be defined
-    CFLAGS="${CFLAGS} -D_POSIX_C_SOURCE=200112L"
+
+    # FIXME - enabling this flag breaks configure test for php.h
+    # CFLAGS="${CFLAGS} -D_POSIX_C_SOURCE=200112L"
 
     # FIXME - not available on centos[56]: gcc-4.1.2, gcc-4.4.7
-    # -Wdouble-promotion -Wtrampolines -Wlogical-op
-  fi
+    # CFLAGS="${CFLAGS} -Wdouble-promotion -Wtrampolines -Wlogical-op"
+#  fi
 fi
 # Workaround for native compilers
 #  HP  : http://bugs.gnome.org/db/31/3163.html
index 8a5d371a18c15efd514c3028b26eecf176526755..c3735818c6f0fc9224984917561ac9d134454263 100644 (file)
@@ -166,10 +166,9 @@ BuildRequires: libwebp-devel
 %define _GO 1
 BuildRequires: golang >= 1.2 gcc-go swig >= 3.0.2
 %endif
-%if %fedora <= 23
+%if %fedora <= 24
 %define PHP 1
 BuildRequires: php-devel
-# disable PHP5 in fc24 until we can figure out what broke
 # disable PHP7 in fc25 until swig supports it
 %endif
 %endif