Revision 18224,
1.2 KB
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18223,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | |
---|
2 | AC_INIT(pkg-config.1) |
---|
3 | |
---|
4 | AM_INIT_AUTOMAKE(pkgconfig, 0.14.0) |
---|
5 | AM_MAINTAINER_MODE |
---|
6 | |
---|
7 | AM_CONFIG_HEADER(config.h) |
---|
8 | |
---|
9 | AC_MSG_CHECKING([for Win32]) |
---|
10 | case "$host" in |
---|
11 | *-*-mingw*) |
---|
12 | native_win32=yes |
---|
13 | AC_DEFINE(USE_INSTALLED_GLIB, 1, [We are using an installed GLib]) |
---|
14 | ;; |
---|
15 | *) |
---|
16 | native_win32=no |
---|
17 | ;; |
---|
18 | esac |
---|
19 | AC_MSG_RESULT([$native_win32]) |
---|
20 | |
---|
21 | AM_CONDITIONAL(USE_INSTALLED_GLIB, test x$native_win32 = xyes) |
---|
22 | |
---|
23 | if test x$native_win32 = xyes; then |
---|
24 | # On Win32, use the normal installed GLib. Yes, this is a circular |
---|
25 | # dependency. But then, only experienced hackers that presumably can |
---|
26 | # work around that will be building pkg-config and GLib on Win32 |
---|
27 | # anyway (especially using the auto*/configure/libtool |
---|
28 | # mechanism). Others use prebuilt versions. |
---|
29 | # |
---|
30 | # These are correct for GLib 2.x |
---|
31 | GLIB_CFLAGS="-I$includedir/glib-2.0 -I$libdir/glib-2.0/include" |
---|
32 | GLIB_LIBS="-L$libdir -lglib-2.0 -liconv -lintl" |
---|
33 | |
---|
34 | AC_SUBST(GLIB_LIBS) |
---|
35 | AC_SUBST(GLIB_CFLAGS) |
---|
36 | |
---|
37 | AC_CONFIG_AUX_DIR(.) |
---|
38 | else |
---|
39 | AC_CONFIG_SUBDIRS(glib-1.2.8) |
---|
40 | fi # !native_win32 |
---|
41 | |
---|
42 | AM_PROG_LIBTOOL |
---|
43 | |
---|
44 | AC_PROG_CC |
---|
45 | |
---|
46 | AC_FUNC_ALLOCA |
---|
47 | |
---|
48 | AC_CHECK_FUNCS(setresuid setreuid,break) |
---|
49 | AC_CHECK_HEADERS([dirent.h unistd.h sys/wait.h]) |
---|
50 | |
---|
51 | AC_OUTPUT([Makefile]) |
---|
Note: See
TracBrowser
for help on using the repository browser.