source: trunk/third/pkgconfig/configure.in @ 18224

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
2AC_INIT(pkg-config.1)
3
4AM_INIT_AUTOMAKE(pkgconfig, 0.14.0)
5AM_MAINTAINER_MODE
6
7AM_CONFIG_HEADER(config.h)
8
9AC_MSG_CHECKING([for Win32])
10case "$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  ;;
18esac
19AC_MSG_RESULT([$native_win32])
20
21AM_CONDITIONAL(USE_INSTALLED_GLIB, test x$native_win32 = xyes)
22
23if 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(.)
38else
39  AC_CONFIG_SUBDIRS(glib-1.2.8)
40fi # !native_win32
41
42AM_PROG_LIBTOOL
43
44AC_PROG_CC
45
46AC_FUNC_ALLOCA
47
48AC_CHECK_FUNCS(setresuid setreuid,break)
49AC_CHECK_HEADERS([dirent.h unistd.h sys/wait.h])
50
51AC_OUTPUT([Makefile])
Note: See TracBrowser for help on using the repository browser.