]>
Commit | Line | Data |
---|---|---|
bbe45369 | 1 | # |
2 | # | |
3 | AC_PREREQ(2.59) | |
4 | AC_INIT([udis86], [1.7], [vivek@sig9.com]) | |
5 | AC_CONFIG_AUX_DIR(build) | |
6 | AC_CONFIG_MACRO_DIR([build/m4]) | |
7 | AM_MAINTAINER_MODE | |
8 | ||
9 | # Determine the build host; we notify automake of Windows builds, so it can | |
10 | # pass proper parameters for building DLLs to the linker. | |
11 | AC_CANONICAL_HOST | |
12 | case "$host_os" in | |
13 | mingw32*) | |
14 | TARGET_OS=windows | |
15 | AC_LIBTOOL_WIN32_DLL | |
16 | ;; | |
17 | esac | |
18 | ||
19 | # Initialize the automake subsystem. | |
20 | # In case we have a Windows build, we pass a TARGET_WINDOWS conditional to | |
21 | # automake. | |
22 | AM_INIT_AUTOMAKE([-Wall -Werror foreign]) | |
23 | AM_CONDITIONAL(TARGET_WINDOWS, test "$TARGET_OS" = windows) | |
24 | ||
25 | AC_PROG_CC | |
26 | AC_DISABLE_SHARED | |
27 | AC_PROG_LIBTOOL | |
28 | AM_PROG_CC_C_O | |
29 | ||
30 | # If this is a gnu compiler, pass -Wall | |
31 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
32 | CFLAGS="$CFLAGS -Wall" | |
33 | fi | |
34 | ||
35 | AC_CONFIG_HEADERS(config.h) | |
36 | AC_CONFIG_FILES([ | |
37 | Makefile | |
38 | libudis86/Makefile | |
39 | udcli/Makefile | |
40 | tests/Makefile | |
41 | docs/Makefile | |
d2623857 | 42 | docs/manual/Makefile |
bbe45369 | 43 | ]) |
44 | ||
45 | AC_OUTPUT |