versioncmp: Fix for `~' characters.
[mLib] / configure.in
index f618c32..6e250ba 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-m4-*-
 dnl
-dnl $Id: configure.in,v 1.38 2004/04/08 01:36:11 mdw Exp $
+dnl $Id$
 dnl
 dnl Configuration script for mLib
 dnl
@@ -15,40 +15,40 @@ dnl mLib is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU Library General Public License as
 dnl published by the Free Software Foundation; either version 2 of the
 dnl License, or (at your option) any later version.
-dnl 
+dnl
 dnl mLib is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU Library General Public License for more details.
-dnl 
+dnl
 dnl You should have received a copy of the GNU Library General Public
 dnl License along with mLib; if not, write to the Free
 dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 dnl MA 02111-1307, USA.
 
 AC_INIT(exc.c)
-mdw_INIT_LIB(mLib, mLib, 2.0.3)
+AM_INIT_AUTOMAKE(mLib, 2.0.5)
 
 AC_PROG_CC
 AM_PROG_LIBTOOL
-mdw_GCC_FLAGS
+AX_CFLAGS_WARN_ALL
 mdw_MANEXT
 
 AC_CHECK_HEADERS(float.h)
 
-mdw_CHECK_MANYLIBS(socket, socket)
-mdw_CHECK_MANYLIBS(gethostbyname, nsl resolv)
+AC_SEARCH_LIBS(socket, socket)
+AC_SEARCH_LIBS(gethostbyname, nsl resolv)
 
 DEPLIBS=$LIBS AC_SUBST(DEPLIBS)
-BRES_LIBEXEC="bres" BRES_SOURCE="bres"
+BRES_LIBEXEC="bres\$(EXEEXT)" BRES_SOURCE="bres"
 AC_SUBST(BRES_LIBEXEC) AC_SUBST(BRES_SOURCE)
 AC_ARG_WITH(adns,
-[  --with-adns             use ADNS library for background name resolution],
+[  --with-adns            use ADNS library for background name resolution],
 [want_adns=$withval], [want_adns=auto])
 if test $want_adns != no; then
   save_LIBS=$LIBS
   LIBS=$DEPLIBS
-  mdw_CHECK_MANYLIBS(adns_init, adns, [have_adns=yes], [have_adns=no])
+  AC_SEARCH_LIBS(adns_init, adns, [have_adns=yes], [have_adns=no])
   DEPLIBS=$LIBS
   LIBS=$save_LIBS
   if test $have_adns = yes; then
@@ -73,6 +73,5 @@ if test $mdw_cv_msg_control = no; then
 fi
 
 AC_DEFINE(BUILDING_MLIB)
-mdw_OPT_mLib_DEBUG(mLib)
 
-AC_OUTPUT(Makefile man/Makefile mLib-config:lib-config.in)
+AC_OUTPUT(Makefile man/Makefile mLib.pc)