| 1 |
root |
1.1 |
dnl This file is an input file used by the GNU "autoconf" program to |
| 2 |
|
|
dnl generate the file "configure", which tries to guess your system |
| 3 |
|
|
dnl configuration so that no manual editing of the Makefile should be |
| 4 |
|
|
dnl necessary |
| 5 |
root |
1.5 |
dnl |
| 6 |
root |
1.7 |
dnl $Id$ |
| 7 |
root |
1.5 |
dnl |
| 8 |
root |
1.1 |
|
| 9 |
|
|
AC_INIT(uulib.c) |
| 10 |
|
|
AC_PREREQ(2.9) |
| 11 |
|
|
AC_CONFIG_HEADER(config.h) |
| 12 |
|
|
|
| 13 |
|
|
# |
| 14 |
|
|
# package revision |
| 15 |
|
|
# |
| 16 |
|
|
VERSION=0.5 |
| 17 |
root |
1.8 |
PATCH=20 |
| 18 |
root |
1.1 |
|
| 19 |
|
|
AC_ARG_WITH(cc,,CC=$with_cc) |
| 20 |
|
|
AC_ARG_WITH(cflags,,CFLAGS=$with_cflags) |
| 21 |
|
|
|
| 22 |
|
|
AC_PROG_CC |
| 23 |
|
|
AC_PROG_CPP |
| 24 |
|
|
AC_PROG_MAKE_SET |
| 25 |
|
|
AC_PROG_RANLIB |
| 26 |
|
|
|
| 27 |
|
|
# |
| 28 |
|
|
# Checks for header files and library functions |
| 29 |
|
|
# |
| 30 |
|
|
|
| 31 |
|
|
AC_HEADER_STDC |
| 32 |
|
|
AC_TYPE_SIZE_T |
| 33 |
|
|
AC_HEADER_TIME |
| 34 |
root |
1.14 |
AC_CHECK_HEADERS(fcntl.h unistd.h) |
| 35 |
root |
1.1 |
AC_CHECK_HEADERS(io.h sys/time.h) |
| 36 |
root |
1.10 |
|
| 37 |
|
|
CFLAGS="$CFLAGS -D_GNU_SOURCE" |
| 38 |
root |
1.13 |
AC_CHECK_FUNCS(tempnam gettimeofday flockfile getc_unlocked feof_unlocked ferror_unlocked) |
| 39 |
root |
1.11 |
dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr) |
| 40 |
root |
1.1 |
|
| 41 |
root |
1.13 |
AC_CHECK_FUNCS(chmod umask mkstemp) |
| 42 |
root |
1.1 |
|
| 43 |
|
|
# |
| 44 |
|
|
# On some systems (so far, OS2 and WINDOWS), functions that are exported |
| 45 |
|
|
# from a DLL must be declared specifically. |
| 46 |
|
|
# |
| 47 |
|
|
|
| 48 |
|
|
AC_DEFINE_UNQUOTED(UUEXPORT,) |
| 49 |
|
|
AC_DEFINE_UNQUOTED(TOOLEXPORT,) |
| 50 |
|
|
|
| 51 |
|
|
# |
| 52 |
|
|
# set version number |
| 53 |
|
|
# |
| 54 |
|
|
AC_MSG_CHECKING([version number]) |
| 55 |
|
|
version_number="$VERSION"pl"$PATCH" |
| 56 |
|
|
AC_MSG_RESULT($version_number) |
| 57 |
|
|
AC_SUBST(VERSION) |
| 58 |
|
|
AC_SUBST(PATCH) |
| 59 |
|
|
|
| 60 |
|
|
# |
| 61 |
|
|
# done |
| 62 |
|
|
# |
| 63 |
|
|
|
| 64 |
|
|
AC_OUTPUT(Makefile) |
| 65 |
|
|
|