| 1 | dnl -*-m4-*- |
| 2 | dnl |
| 3 | dnl $Id: configure.in,v 1.36 2003/11/29 20:38:38 mdw Exp $ |
| 4 | dnl |
| 5 | dnl Configuration script for mLib |
| 6 | dnl |
| 7 | dnl (c) 1998 Straylight/Edgeware |
| 8 | dnl |
| 9 | |
| 10 | dnl ----- Licensing notice -------------------------------------------------- |
| 11 | dnl |
| 12 | dnl This file is part of the mLib utilities library. |
| 13 | dnl |
| 14 | dnl mLib is free software; you can redistribute it and/or modify |
| 15 | dnl it under the terms of the GNU Library General Public License as |
| 16 | dnl published by the Free Software Foundation; either version 2 of the |
| 17 | dnl License, or (at your option) any later version. |
| 18 | dnl |
| 19 | dnl mLib is distributed in the hope that it will be useful, |
| 20 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | dnl GNU Library General Public License for more details. |
| 23 | dnl |
| 24 | dnl You should have received a copy of the GNU Library General Public |
| 25 | dnl License along with mLib; if not, write to the Free |
| 26 | dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| 27 | dnl MA 02111-1307, USA. |
| 28 | |
| 29 | dnl ----- Revision history -------------------------------------------------- |
| 30 | dnl |
| 31 | dnl $Log: configure.in,v $ |
| 32 | dnl Revision 1.36 2003/11/29 20:38:38 mdw |
| 33 | dnl Debianization fixes. |
| 34 | dnl |
| 35 | dnl Revision 1.35 2003/11/29 11:59:17 mdw |
| 36 | dnl Various stuff. |
| 37 | dnl |
| 38 | dnl Revision 1.34 2003/10/12 14:54:18 mdw |
| 39 | dnl Version bump. |
| 40 | dnl |
| 41 | dnl Revision 1.33 2003/05/18 15:17:04 mdw |
| 42 | dnl Version bump. |
| 43 | dnl |
| 44 | dnl Revision 1.32 2003/05/16 00:26:22 mdw |
| 45 | dnl Version bump. |
| 46 | dnl |
| 47 | dnl Revision 1.30 2003/04/23 12:50:30 mdw |
| 48 | dnl New manpage installer. |
| 49 | dnl |
| 50 | dnl Revision 1.29 2001/06/22 19:34:07 mdw |
| 51 | dnl Find out whether @<float.h>@ exists (hack for uC-Linux). |
| 52 | dnl |
| 53 | dnl Revision 1.28 2000/10/08 11:07:55 mdw |
| 54 | dnl Define a constant to tell @mdwopt@ that @str_qword@ is available. |
| 55 | dnl Reinstate the `-pedantic' option to GCC. |
| 56 | dnl |
| 57 | dnl Revision 1.27 2000/08/15 21:39:13 mdw |
| 58 | dnl New library configuration stuff from `common'. |
| 59 | dnl |
| 60 | dnl Revision 1.25 2000/07/16 18:57:42 mdw |
| 61 | dnl Version bump. Change compiler flags. |
| 62 | dnl |
| 63 | dnl Revision 1.19 1999/11/11 18:47:33 mdw |
| 64 | dnl Use `libtool' to generate a shared library. |
| 65 | dnl |
| 66 | dnl Revision 1.18 1999/11/11 17:48:28 mdw |
| 67 | dnl New configuration system for library clients. |
| 68 | dnl |
| 69 | dnl Revision 1.17 1999/10/04 21:48:50 mdw |
| 70 | dnl Find libraries for standalone name resolver server. |
| 71 | dnl |
| 72 | dnl Revision 1.14 1999/07/06 19:18:47 mdw |
| 73 | dnl Handle new manual page directory. |
| 74 | dnl |
| 75 | dnl Revision 1.11 1999/05/21 22:11:20 mdw |
| 76 | dnl Omitted version number changes from change log. Changed version |
| 77 | dnl number. ;-) |
| 78 | dnl |
| 79 | dnl Revision 1.8 1999/05/14 21:08:56 mdw |
| 80 | dnl Bump version number to 1.3, to celebrate adding in the `select' |
| 81 | dnl routines. |
| 82 | dnl |
| 83 | dnl Revision 1.6 1999/05/06 19:51:35 mdw |
| 84 | dnl Reformatted the LGPL notice a little bit. |
| 85 | dnl |
| 86 | dnl Revision 1.5 1999/05/05 18:50:31 mdw |
| 87 | dnl Change licensing conditions to LGPL. |
| 88 | dnl |
| 89 | dnl Revision 1.4 1999/03/24 22:22:57 mdw |
| 90 | dnl Remove redundant call to AC_PROG_INSTALL. |
| 91 | dnl |
| 92 | dnl Revision 1.3 1998/12/15 23:52:42 mdw |
| 93 | dnl Reordered and tidied. |
| 94 | dnl |
| 95 | dnl Revision 1.1.1.1 1998/06/17 23:44:42 mdw |
| 96 | dnl Initial version of mLib |
| 97 | dnl |
| 98 | |
| 99 | AC_INIT(exc.c) |
| 100 | mdw_INIT_LIB(mLib, mLib, 2.0.3) |
| 101 | |
| 102 | AC_PROG_CC |
| 103 | AM_PROG_LIBTOOL |
| 104 | mdw_GCC_FLAGS |
| 105 | mdw_MANEXT |
| 106 | |
| 107 | AC_CHECK_HEADERS(float.h) |
| 108 | |
| 109 | mdw_CHECK_MANYLIBS(socket, socket) |
| 110 | mdw_CHECK_MANYLIBS(gethostbyname, nsl resolv) |
| 111 | |
| 112 | AC_CACHE_CHECK([for msg_control], [mdw_cv_msg_control], |
| 113 | [AC_TRY_COMPILE( |
| 114 | [#include <sys/types.h> |
| 115 | #include <sys/socket.h>], |
| 116 | [struct msghdr msg; |
| 117 | msg.msg_control = 0;], |
| 118 | [mdw_cv_msg_control=yes], |
| 119 | [mdw_cv_msg_control=no])]) |
| 120 | if test $mdw_cv_msg_control = no; then |
| 121 | AC_DEFINE([HAVE_MSG_ACCRIGHTS]) |
| 122 | fi |
| 123 | |
| 124 | AC_DEFINE(BUILDING_MLIB) |
| 125 | mdw_OPT_mLib_DEBUG(mLib) |
| 126 | |
| 127 | AC_OUTPUT(Makefile man/Makefile mLib-config:lib-config.in) |