| 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 |
dnl |
| 6 |
|
| 7 |
AC_INIT(uulib.c) |
| 8 |
AC_PREREQ(2.9) |
| 9 |
AC_CONFIG_HEADER(config.h) |
| 10 |
|
| 11 |
# |
| 12 |
# package revision |
| 13 |
# |
| 14 |
VERSION=0.5 |
| 15 |
PATCH=20 |
| 16 |
|
| 17 |
AC_ARG_WITH(cc,,CC=$with_cc) |
| 18 |
AC_ARG_WITH(cflags,,CFLAGS=$with_cflags) |
| 19 |
|
| 20 |
AC_PROG_CC |
| 21 |
AC_PROG_CPP |
| 22 |
AC_PROG_MAKE_SET |
| 23 |
AC_PROG_RANLIB |
| 24 |
|
| 25 |
# |
| 26 |
# Checks for header files and library functions |
| 27 |
# |
| 28 |
|
| 29 |
AC_TYPE_SIZE_T |
| 30 |
AC_CHECK_HEADERS(fcntl.h unistd.h) |
| 31 |
AC_CHECK_HEADERS(io.h sys/time.h) |
| 32 |
|
| 33 |
CFLAGS="$CFLAGS -D_GNU_SOURCE" |
| 34 |
AC_CHECK_FUNCS(tempnam gettimeofday flockfile getc_unlocked feof_unlocked ferror_unlocked) |
| 35 |
dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr) |
| 36 |
|
| 37 |
AC_CHECK_FUNCS(chmod umask mkstemp) |
| 38 |
|
| 39 |
# |
| 40 |
# On some systems (so far, OS2 and WINDOWS), functions that are exported |
| 41 |
# from a DLL must be declared specifically. |
| 42 |
# |
| 43 |
|
| 44 |
AC_DEFINE_UNQUOTED(UUEXPORT,) |
| 45 |
AC_DEFINE_UNQUOTED(TOOLEXPORT,) |
| 46 |
|
| 47 |
# |
| 48 |
# set version number |
| 49 |
# |
| 50 |
AC_MSG_CHECKING([version number]) |
| 51 |
version_number="$VERSION"pl"$PATCH" |
| 52 |
AC_MSG_RESULT($version_number) |
| 53 |
AC_SUBST(VERSION) |
| 54 |
AC_SUBST(PATCH) |
| 55 |
|
| 56 |
# |
| 57 |
# done |
| 58 |
# |
| 59 |
|
| 60 |
AC_OUTPUT(Makefile) |
| 61 |
|