From: Manish Singh Date: Wed, 9 Sep 1998 09:52:31 +0000 (+0000) Subject: added -posix check for NeXTStep X-Git-Tag: GLIB_1_1_3a~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b2750bd902fb047dc519e2254f7cee61c9727d4;p=platform%2Fupstream%2Fglib.git added -posix check for NeXTStep -Yosh --- diff --git a/ChangeLog b/ChangeLog index 3d91963..2caee70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3d91963..2caee70 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Wed Sep 9 02:52:04 PDT 1998 Manish Singh + + * configure.in: added -posix check for NeXTStep + Tue Sep 8 05:04:06 1998 Tim Janik * glib.h: abandon the use of ATEXIT(), we keep the fallback diff --git a/configure.in b/configure.in index 20458ce..47461ce 100644 --- a/configure.in +++ b/configure.in @@ -129,6 +129,18 @@ AC_TRY_RUN([#include ) LIBS=$glib_save_LIBS +dnl NeXTStep cc seems to need this +AC_MSG_CHECKING([for extra flags for POSIX compliance]) +AC_TRY_COMPILE([#include ], [DIR *dir;], + AC_MSG_RESULT(none needed), + glib_save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -posix" + AC_TRY_COMPILE([#include ], [DIR *dir;], + AC_MSG_RESULT(-posix), + AC_MSG_RESULT() + CFLAGS=$glib_save_CFLAGS + AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)]))) + # Checks for header files. AC_HEADER_STDC