configure: s/#if/#ifdef/ so it still works if HAVE_XXX is not defined.
This commit is contained in:
parent
f5ea0fd2e4
commit
9e67edfc16
|
@ -7309,7 +7309,7 @@ cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_SYS_PARAM_H
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7378,13 +7378,13 @@ cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_SOCKETVAR_H
|
#ifdef HAVE_SYS_SOCKETVAR_H
|
||||||
# include <sys/socketvar.h>
|
# include <sys/socketvar.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7446,13 +7446,13 @@ cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_SOCKETVAR_H
|
#ifdef HAVE_SYS_SOCKETVAR_H
|
||||||
# include <sys/socketvar.h>
|
# include <sys/socketvar.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_NETINET_TCP_H
|
#ifdef HAVE_NETINET_TCP_H
|
||||||
|
@ -7520,7 +7520,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
||||||
#ifdef HAVE_ASM_TYPES_H
|
#ifdef HAVE_ASM_TYPES_H
|
||||||
# include <asm/types.h>
|
# include <asm/types.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7582,13 +7582,13 @@ cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_ARPA_NAMESER_H
|
#ifdef HAVE_ARPA_NAMESER_H
|
||||||
# include <arpa/nameser.h>
|
# include <arpa/nameser.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7709,7 +7709,7 @@ cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_UCONTEXT_H
|
#ifdef HAVE_UCONTEXT_H
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -13644,8 +13644,8 @@ _ACEOF
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#if HAVE_FT2BUILD_H
|
#ifdef HAVE_FT2BUILD_H
|
||||||
#include <ft2build.h>
|
# include <ft2build.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <$ac_header>
|
#include <$ac_header>
|
||||||
|
|
28
configure.ac
28
configure.ac
|
@ -329,31 +329,31 @@ dnl **** Checks for headers that depend on other ones ****
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
|
AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
|
||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#if HAVE_SYS_PARAM_H
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h],,,
|
AC_CHECK_HEADERS([netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h],,,
|
||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_SOCKETVAR_H
|
#ifdef HAVE_SYS_SOCKETVAR_H
|
||||||
# include <sys/socketvar.h>
|
# include <sys/socketvar.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([netinet/tcp_var.h],,,
|
AC_CHECK_HEADERS([netinet/tcp_var.h],,,
|
||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_SOCKETVAR_H
|
#ifdef HAVE_SYS_SOCKETVAR_H
|
||||||
# include <sys/socketvar.h>
|
# include <sys/socketvar.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_NETINET_TCP_H
|
#ifdef HAVE_NETINET_TCP_H
|
||||||
|
@ -365,19 +365,19 @@ AC_CHECK_HEADERS([linux/ipx.h],,,
|
||||||
#ifdef HAVE_ASM_TYPES_H
|
#ifdef HAVE_ASM_TYPES_H
|
||||||
# include <asm/types.h>
|
# include <asm/types.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([resolv.h],,,
|
AC_CHECK_HEADERS([resolv.h],,,
|
||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#if HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_ARPA_NAMESER_H
|
#ifdef HAVE_ARPA_NAMESER_H
|
||||||
# include <arpa/nameser.h>
|
# include <arpa/nameser.h>
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ AC_CHECK_HEADERS(ucontext.h,,,[#include <signal.h>])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/thr.h],,,
|
AC_CHECK_HEADERS([sys/thr.h],,,
|
||||||
[#include <sys/types.h>
|
[#include <sys/types.h>
|
||||||
#if HAVE_UCONTEXT_H
|
#ifdef HAVE_UCONTEXT_H
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
|
@ -969,8 +969,8 @@ then
|
||||||
freetype/ftwinfnt.h \
|
freetype/ftwinfnt.h \
|
||||||
freetype/ftmodapi.h \
|
freetype/ftmodapi.h \
|
||||||
freetype/internal/sfnt.h,,,
|
freetype/internal/sfnt.h,,,
|
||||||
[#if HAVE_FT2BUILD_H
|
[#ifdef HAVE_FT2BUILD_H
|
||||||
#include <ft2build.h>
|
# include <ft2build.h>
|
||||||
#endif])
|
#endif])
|
||||||
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <ft2build.h>
|
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <ft2build.h>
|
||||||
#include <freetype/fttrigon.h>]])],[AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1,
|
#include <freetype/fttrigon.h>]])],[AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1,
|
||||||
|
|
Loading…
Reference in New Issue