Skip to content
Snippets Groups Projects
Commit 57c0fc16 authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

Also define _DARWIN_C_SOUCE if compiling on Darwin.

parent b337be36
No related branches found
No related tags found
No related merge requests found
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([alberta], [3.0-rc3], [Claus.Heine@Mathematik.Uni-Freiburg.DE])
AC_INIT([alberta], [devel], [Claus.Heine@Mathematik.Uni-Freiburg.DE])
AC_CONFIG_SRCDIR([alberta/src/Common/alberta.h])
AC_CONFIG_MACRO_DIR([m4])
......@@ -469,8 +469,19 @@ AC_CHECK_HEADERS([malloc.h])
# try to pull in some special features (but make sure to supply
# replacements if they are not available)
#
AC_DEFINE([_XOPEN_SOURCE], 600, [Define to get POSIX and XPG stuff])
DARWIN_C_SOURCE=0
XOPEN_SOURCE=0
if test "x$target_os" = "xdarwin"; then
DARWIN_C_SOURCE=1
fi
if test "x$target_os" = "xlinux-gnu"; then
XOPEN_SOURCE=600
fi
AC_DEFINE([_SVID_SOURCE], 1, [Define to get SVID stuff, e.g. strdup])
AC_DEFINE_UNQUOTED([_XOPEN_SOURCE], [$XOPEN_SOURCE],
[Define to get POSIX and XPG stuff])
AC_DEFINE_UNQUOTED([_DARWIN_C_SOURCE], [$DARWIN_C_SOURCE],
[Define to 1 if compiling for MAC OS/X (Darwin)])
#
# check for some functions we need ... add more as needed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment