-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
59 lines (51 loc) · 1.54 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Process this file with autoconf 2.63 or better to produce a configure script.
AC_PREREQ(2.63)
AC_INIT([mingw-utils],[0.4],[http://www.mingw.org/bugs.shtml])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([1.11 silent-rules no-define no-dist-gzip dist-lzma])
AM_MAINTAINER_MODE
# Subpackages
AC_CONFIG_SUBDIRS([msys-here])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_AWK
AC_PROG_RANLIB
AC_PROG_LEX
AC_PROG_YACC
# Checks for header files.
AC_HEADER_STDC
where_toGet_utime_h='not found!'
# this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
# AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
AC_CHECK_HEADER(utime.h,
[AC_DEFINE(HAVE_UTIME_H,1, ["utime.h" is present instead of "sys/utime.h"])]
where_toGet_utime_h='utime.h',
[AC_CHECK_HEADER(sys/utime.h,
[AC_DEFINE(HAVE_SYS_UTIME_H,1, ["sys/utime.h" is present instead of "utime.h"])]
where_toGet_utime_h='sys/utime.h',
[AC_MSG_WARN(Could find neither "utime.h" nor "sys/utime.h")]
)]
)
# AC_MSG_RESULT($where_toGet_utime_h)
# Checks for library functions.
AC_CHECK_FUNCS(mkstemp mktemp, break)
AC_CHECK_FUNCS(utime)
CFLAGS_copy=${CFLAGS}
AC_SUBST([CFLAGS_copy])
AC_CONFIG_FILES([
Makefile
redir/Makefile
reimp/Makefile
res2coff/Makefile
scripts/Makefile
])
AC_CONFIG_FILES([scripts/a2dll], [chmod +x scripts/a2dll])
AC_CONFIG_FILES([scripts/dsw2mak], [chmod +x scripts/dsw2mak])
AC_OUTPUT