Use bundled GNU regex on OS X

pull/2/head
Stelios Bounanos 2009-08-15 10:39:02 +01:00
rodzic cdf46da237
commit c0d08efd1f
3 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -8,6 +8,13 @@ case "$target_os" in
;;
esac
if test "$target_darwin" = "yes"; then
AC_MSG_NOTICE([using bundled GNU regex on $target_os])
# pretend that the regex.h check failed so that we use the bundled regex code
ac_cv_header_regex_h=no
AC_DEFINE([HAVE_REGEX_H], 0, [Define to 1 if you have the <regex.h> header file.])
fi
AC_ARG_ENABLE([mac-universal], AC_HELP_STRING([--enable-mac-universal],
[build a universal binary on Mac OS X @<:@no@:>@]),
[case "${enableval}" in

Wyświetl plik

@ -23,7 +23,7 @@
#ifndef RE_H_
#define RE_H_
#ifdef HAVE_REGEX_H
#if HAVE_REGEX_H
# include <regex.h>
#else
# include "compat/regex.h"

Wyświetl plik

@ -23,7 +23,7 @@
#ifndef SPOT_H_
#define SPOT_H_
#ifdef HAVE_REGEX_H
#if HAVE_REGEX_H
# include <regex.h>
#else
# include "compat/regex.h"