mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
configure.in: added -std1 check for ANSI compliance (from gtk)
-Yosh
This commit is contained in:
parent
bb8d9aba23
commit
affa6a0677
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Sep 6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -std1 check for ANSI compliance (from gtk)
|
||||
|
||||
Sun Sep 6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
|
||||
|
19
configure.in
19
configure.in
@ -109,6 +109,25 @@ if eval "test x$GCC = xyes"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
|
||||
glib_save_LDFLAGS=$LDFLAGS
|
||||
LIBS="$LIBS -lm"
|
||||
AC_TRY_RUN([#include <math.h>
|
||||
int main (void) { return (log(1) != log(1.)); }],
|
||||
AC_MSG_RESULT(none needed),
|
||||
glib_save_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -std1"
|
||||
AC_TRY_RUN([#include <math.h>
|
||||
int main (void) { return (log(1) != log(1.)); }],
|
||||
AC_MSG_RESULT(-std1),
|
||||
AC_MSG_RESULT()
|
||||
CFLAGS=$glib_save_CFLAGS
|
||||
AC_MSG_WARN(
|
||||
[No ANSI prototypes found in library. (-std1 didn't work.)])
|
||||
)
|
||||
)
|
||||
LIBS=$glib_save_LIBS
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user