[goffice] Configure: Require C99



commit 3e97a819ac77c8ccd8e0c9a9e74bde3a55dd6f71
Author: Morten Welinder <terra gnome org>
Date:   Mon Feb 8 08:59:51 2016 -0500

    Configure: Require C99

 ChangeLog    |    5 +++++
 NEWS         |    3 +++
 configure.ac |    9 ++++++---
 3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 52d167f..b936ae4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-02-08  Morten Welinder  <terra gnome org>
+
+       * configure.ac: Require C99.  Fix handling of $CC that includes
+       options.  Don't check for yacc and lex.
+
 2016-02-06  Morten Welinder <terra gnome org>
 
        * configure.ac: Post-release bump.
diff --git a/NEWS b/NEWS
index ac4f82e..a99cdae 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 goffice 0.10.28:
 
+Morten:
+       * Configuration fixes.
+
 --------------------------------------------------------------------------
 goffice 0.10.27:
 
diff --git a/configure.ac b/configure.ac
index 3590550..a823ab5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,8 +84,10 @@ AC_CANONICAL_HOST
 
 AC_ISC_POSIX
 AC_PROG_CC
-AC_PROG_YACC
-AM_PROG_LEX
+AC_PROG_CC_C99
+if test "$ac_cv_prog_cc_c99" = no; then
+       AC_MSG_ERROR([*** c99 is required])
+fi
 AC_PROG_LN_S
 AC_HEADER_STDC
 AC_SYS_LARGEFILE
@@ -590,7 +592,8 @@ if test "x$with_long_double" = "xyes"; then
   if test $ac_cv_type_long_double = yes; then
     have_mandatory_funcs=yes
     need_sunmath=0
-    ss_cc=`which $CC`
+    ss_ccprog=`echo $CC | sed -e 's/ .*//'`
+    ss_cc=`which $ss_ccprog`
     ss_dir=`dirname "$ss_cc"`"/.."
     if test ! -f "$ss_dir/lib/libsunmath.so"; then
         ss_dir="/opt/SUNWspro"


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