6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(libukcprog, 1.0, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(libukcprog, 1.0) |
9 |
> |
AC_INIT(libukcprog, 1.0.2, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(libukcprog, 1.0.2) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
26 |
|
# Checks for typedefs, structures, and compiler characteristics |
27 |
|
AC_C_CONST |
28 |
|
|
29 |
– |
# Figure out details about the host - we need the OS |
30 |
– |
AC_CANONICAL_HOST |
31 |
– |
|
29 |
|
# On Slaris add some LIBS to make linking against libukcprog easier |
30 |
|
case $host_os in |
31 |
|
solaris2.*) |
33 |
|
;; |
34 |
|
esac |
35 |
|
|
36 |
+ |
# User specified pkgconfig dir |
37 |
+ |
AC_ARG_WITH([pkgconfig-dir], |
38 |
+ |
[ --with-pkgconfig-dir=PATH pkgconfig lib directory (PREFIX/lib/pkgconfig)], |
39 |
+ |
[ PKGCONFIG_DIR=$withval ], |
40 |
+ |
[ PKGCONFIG_DIR="\$(libdir)/pkgconfig" ] |
41 |
+ |
) |
42 |
+ |
AC_SUBST(PKGCONFIG_DIR) |
43 |
+ |
|
44 |
|
# And finish by changing these files |
45 |
< |
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile]) |
45 |
> |
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile libukcprog.pc]) |
46 |
|
|
47 |
|
AC_OUTPUT |