summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorVladimir Volovich <vvv@vsu.ru>2008-04-20 06:29:52 +0000
committerVladimir Volovich <vvv@vsu.ru>2008-04-20 06:29:52 +0000
commit4c79eaf0668faea8261457ba1a655dc6ed104e28 (patch)
treea90490d5b9276e9748eb71ea2afc3ae80a75cbfb /Build/source
parent6857cc20bd4eaa86ee45e28b173e05de9442249e (diff)
configure.ac: check (also) for regex.h; fail if one of the required headers is not found
git-svn-id: svn://tug.org/texlive/trunk@7540 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-xBuild/source/utils/xindy/configure7
-rw-r--r--Build/source/utils/xindy/configure.ac2
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/utils/xindy/configure b/Build/source/utils/xindy/configure
index fbd0e2184d2..86c66d5cfd4 100755
--- a/Build/source/utils/xindy/configure
+++ b/Build/source/utils/xindy/configure
@@ -4632,7 +4632,8 @@ done
-for ac_header in stdlib.h string.h
+
+for ac_header in stdlib.h string.h regex.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -4772,6 +4773,10 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
+else
+ { { echo "$as_me:$LINENO: error: required C header file is missing" >&5
+echo "$as_me: error: required C header file is missing" >&2;}
+ { (exit 1); exit 1; }; }
fi
done
diff --git a/Build/source/utils/xindy/configure.ac b/Build/source/utils/xindy/configure.ac
index 530a6397448..d9b23d6a692 100644
--- a/Build/source/utils/xindy/configure.ac
+++ b/Build/source/utils/xindy/configure.ac
@@ -111,7 +111,7 @@ AC_SUBST(LISP_RUN)
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([stdlib.h string.h])
+AC_CHECK_HEADERS([stdlib.h string.h regex.h],[],[AC_MSG_ERROR([required C header file is missing])])
dnl check system type
AC_CANONICAL_HOST