1 | dnl This file is an input file used by the GNU "autoconf" program to |
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 |
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 |
3 | dnl configuration so that no manual editing of the Makefile should be |
4 | dnl necessary |
4 | dnl necessary |
5 | dnl |
5 | dnl |
6 | dnl $Id: configure.in,v 1.11 2009/09/15 17:03:36 root Exp $ |
6 | dnl $Id: configure.in,v 1.12 2020/12/11 20:09:23 root Exp $ |
7 | dnl |
7 | dnl |
8 | |
8 | |
9 | AC_INIT(uulib.c) |
9 | AC_INIT(uulib.c) |
10 | AC_PREREQ(2.9) |
10 | AC_PREREQ(2.9) |
11 | AC_CONFIG_HEADER(config.h) |
11 | AC_CONFIG_HEADER(config.h) |
… | |
… | |
40 | AC_TYPE_SIZE_T |
40 | AC_TYPE_SIZE_T |
41 | AC_HEADER_TIME |
41 | AC_HEADER_TIME |
42 | AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h) |
42 | AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h) |
43 | AC_CHECK_HEADERS(io.h sys/time.h) |
43 | AC_CHECK_HEADERS(io.h sys/time.h) |
44 | |
44 | |
|
|
45 | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
|
|
46 | #include <stdio.h> |
|
|
47 | |
|
|
48 | ]])], [OPTION_FOUND="yes"], [OPTION_FOUND="no"]) |
|
|
49 | |
45 | CFLAGS="$CFLAGS -D_GNU_SOURCE" |
50 | CFLAGS="$CFLAGS -D_GNU_SOURCE" |
46 | AC_CHECK_FUNCS(gettimeofday fgetc_unlocked) |
51 | AC_CHECK_FUNCS(gettimeofday getc_unlocked feof_unlocked ferror_unlocked) |
47 | dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr) |
52 | dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr) |
48 | |
53 | |
49 | AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,FP_tempnam)) |
54 | AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,FP_tempnam)) |
50 | |
55 | |
51 | AC_CHECK_FUNC(chmod,AC_DEFINE(HAVE_CHMOD)) |
56 | AC_CHECK_FUNC(chmod,AC_DEFINE(HAVE_CHMOD)) |