From: Karel Zak Date: Wed, 8 Jun 2016 11:38:48 +0000 (+0200) Subject: build-sys: workaround for autoconf "present but cannot be compiled" X-Git-Tag: v2.29-rc1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db4e264574dd1b123476918979abcc739fa9d67a;p=thirdparty%2Futil-linux.git build-sys: workaround for autoconf "present but cannot be compiled" See also: https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Present-But-Cannot-Be-Compiled.html Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 30940ba2b9..2dbf592a00 100644 --- a/configure.ac +++ b/configure.ac @@ -216,7 +216,6 @@ AC_CHECK_HEADERS([ \ linux/fd.h \ linux/raw.h \ linux/tiocl.h \ - linux/gsmmux.h \ linux/version.h \ linux/securebits.h \ locale.h \ @@ -262,6 +261,12 @@ AC_CHECK_HEADERS([ \ utmp.h \ ]) +AC_CHECK_HEADERS([linux/gsmmux.h ], [], [], + [#ifdef LINUX_GSMMUX_H + # include + #endif +]) + AC_CHECK_HEADERS([security/pam_misc.h], [AM_CONDITIONAL([HAVE_LINUXPAM], [true])], [AM_CONDITIONAL([HAVE_LINUXPAM], [false])], [