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 |
|
|
6 | dnl $Id: configure.in,v 1.4.2.5 2004/04/18 19:55:46 root Exp $ |
|
|
7 | dnl |
5 | |
8 | |
6 | AC_INIT(uulib.c) |
9 | AC_INIT(uulib.c) |
7 | AC_PREREQ(2.9) |
10 | AC_PREREQ(2.9) |
8 | AC_CONFIG_HEADER(config.h) |
11 | AC_CONFIG_HEADER(config.h) |
9 | |
12 | |
10 | # |
13 | # |
11 | # package revision |
14 | # package revision |
12 | # |
15 | # |
13 | VERSION=0.5 |
16 | VERSION=0.5 |
14 | PATCH=15 |
17 | PATCH=20 |
15 | |
|
|
16 | AC_ARG_WITH(cc,,CC=$with_cc) |
|
|
17 | AC_ARG_WITH(cflags,,CFLAGS=$with_cflags) |
|
|
18 | |
18 | |
19 | AC_PROG_CC |
19 | AC_PROG_CC |
20 | AC_PROG_CPP |
20 | AC_PROG_CPP |
21 | wi_CFLAGS |
|
|
22 | wi_PROTOTYPES |
21 | wi_PROTOTYPES |
23 | AC_PROG_MAKE_SET |
22 | AC_PROG_MAKE_SET |
24 | AC_PROG_RANLIB |
23 | AC_PROG_RANLIB |
25 | |
24 | |
26 | if test "$wi_cv_prototypes" = no ; then |
25 | if test "$wi_cv_prototypes" = no ; then |
… | |
… | |
39 | AC_HEADER_TIME |
38 | AC_HEADER_TIME |
40 | AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h) |
39 | AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h) |
41 | AC_CHECK_HEADERS(io.h sys/time.h) |
40 | AC_CHECK_HEADERS(io.h sys/time.h) |
42 | AC_CHECK_FUNCS(gettimeofday) |
41 | AC_CHECK_FUNCS(gettimeofday) |
43 | |
42 | |
44 | AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,FP_tempnam)) |
43 | AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,_FP_tempnam)) |
45 | |
|
|
46 | AC_CHECK_FUNC(chmod,AC_DEFINE(HAVE_CHMOD)) |
|
|
47 | AC_CHECK_FUNC(umask,AC_DEFINE(HAVE_UMASK)) |
|
|
48 | AC_CHECK_FUNC(mkstemp,AC_DEFINE(HAVE_MKSTEMP)) |
|
|
49 | |
44 | |
50 | # |
45 | # |
51 | # strerror might be internally defined. this would cause a |
46 | # strerror might be internally defined. this would cause a |
52 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
47 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
53 | # zero arguments. So use our own code. |
48 | # zero arguments. So use our own code. |
… | |
… | |
55 | AC_MSG_CHECKING([for strerror]) |
50 | AC_MSG_CHECKING([for strerror]) |
56 | AC_TRY_LINK([ |
51 | AC_TRY_LINK([ |
57 | char *blubb() { return (char *) strerror (42); } |
52 | char *blubb() { return (char *) strerror (42); } |
58 | ],[ |
53 | ],[ |
59 | (void) blubb(); |
54 | (void) blubb(); |
60 | ],have_strerror=yes,AC_DEFINE(strerror,FP_strerror) |
55 | ],have_strerror=yes,AC_DEFINE(strerror,_FP_strerror) |
61 | have_strerror=no) |
56 | have_strerror=no) |
62 | AC_MSG_RESULT($have_strerror) |
57 | AC_MSG_RESULT($have_strerror) |
63 | |
58 | |
64 | AC_MSG_CHECKING([for stdin]) |
59 | AC_MSG_CHECKING([for stdin]) |
65 | AC_TRY_LINK([ |
60 | AC_TRY_LINK([ |
… | |
… | |
115 | # |
110 | # |
116 | # done |
111 | # done |
117 | # |
112 | # |
118 | |
113 | |
119 | AC_OUTPUT(Makefile) |
114 | AC_OUTPUT(Makefile) |
120 | |
|
|