From 65aa3dbf6c22aee1dbe45e94bb37b4e48a92c711 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 29 Nov 2007 17:41:57 +0000 Subject: [PATCH] Thu Nov 29 17:38:00 GMT 2007 Richard W.M. Jones * configure.in: Check for C compiler first before checking for external programs. Add AC_LIBTOOL_WIN32_DLL. Add AM_PROG_CC_STDC. Add AC_C_CONST. --- ChangeLog | 8 ++++++++ configure.in | 47 +++++++++++++++++++++++++++-------------------- 2 files changed, 35 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 034befd8db..79b1ab4e73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Nov 29 17:38:00 GMT 2007 Richard W.M. Jones + + * configure.in: Check for C compiler first before checking for + external programs. + Add AC_LIBTOOL_WIN32_DLL. + Add AM_PROG_CC_STDC. + Add AC_C_CONST. + Thu Nov 29 16:19:00 GMT 2007 Richard W.M. Jones * docs/libvir.html, docs/windows.html: Updated Windows diff --git a/configure.in b/configure.in index 6dc98adba9..eab69b308b 100644 --- a/configure.in +++ b/configure.in @@ -26,34 +26,20 @@ LIBXML_REQUIRED="2.5.0" GNUTLS_REQUIRED="1.0.25" AVAHI_REQUIRED="0.6.0" -dnl Checks for programs. +dnl Checks for C compiler. AC_PROG_CC +AM_PROG_CC_STDC +AC_C_CONST AC_PROG_INSTALL AC_PROG_CPP -AC_PATH_PROG(RM, rm, /bin/rm) -AC_PATH_PROG(MV, mv, /bin/mv) -AC_PATH_PROG(TAR, tar, /bin/tar) -AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint) -AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc) - -dnl External programs that we can use if they are available. -dnl We will hard-code paths to these programs unless we cannot -dnl detect them, in which case we'll search for the program -dnl along the $PATH at runtime and fail if it's not there. -AC_PATH_PROG(DNSMASQ, dnsmasq, dnsmasq, - [/sbin:/usr/sbin:/usr/local/sbin:$PATH]) -AC_PATH_PROG(BRCTL, brctl, brctl, - [/sbin:/usr/sbin:/usr/local/sbin:$PATH]) - -AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"], - [Location or name of the dnsmasq program]) -AC_DEFINE_UNQUOTED([BRCTL],["$BRCTL"], - [Location or name of the brctl program (see bridge-utils)]) dnl Make sure we have an ANSI compiler AM_C_PROTOTYPES test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant) +dnl Support building Win32 DLLs (must appear *before* AM_PROG_LIBTOOL) +AC_LIBTOOL_WIN32_DLL + AM_PROG_LIBTOOL AM_PROG_CC_C_O @@ -78,6 +64,27 @@ if test "x$ac_cv_path_RPCGEN" != "xno"; then [$ac_cv_path_RPCGEN -t /dev/null 2>&1]) fi +dnl Miscellaneous external programs. +AC_PATH_PROG(RM, rm, /bin/rm) +AC_PATH_PROG(MV, mv, /bin/mv) +AC_PATH_PROG(TAR, tar, /bin/tar) +AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint) +AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc) + +dnl External programs that we can use if they are available. +dnl We will hard-code paths to these programs unless we cannot +dnl detect them, in which case we'll search for the program +dnl along the $PATH at runtime and fail if it's not there. +AC_PATH_PROG(DNSMASQ, dnsmasq, dnsmasq, + [/sbin:/usr/sbin:/usr/local/sbin:$PATH]) +AC_PATH_PROG(BRCTL, brctl, brctl, + [/sbin:/usr/sbin:/usr/local/sbin:$PATH]) + +AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"], + [Location or name of the dnsmasq program]) +AC_DEFINE_UNQUOTED([BRCTL],["$BRCTL"], + [Location or name of the brctl program (see bridge-utils)]) + dnl Specific dir for HTML output ? AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path], [path to base html directory, default $datadir/doc/html]),