--- projects/libukcprog/configure.in 2003/03/29 16:30:31 1.1 +++ projects/libukcprog/configure.in 2003/10/09 19:17:27 1.8 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libukcprog -# $Id: configure.in,v 1.1 2003/03/29 16:30:31 tdb Exp $ +# $Id: configure.in,v 1.8 2003/10/09 19:17:27 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libukcprog, 1.0, dev@i-scream.org.uk) -AM_INIT_AUTOMAKE(libukcprog, 1.0) +AC_INIT(libukcprog, 1.0.2, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libukcprog, 1.0.2) # Revision number (automatically updated) -AC_REVISION($Revision: 1.1 $) +AC_REVISION($Revision: 1.8 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -26,7 +26,22 @@ AC_HEADER_STDC # Checks for typedefs, structures, and compiler characteristics AC_C_CONST +# On Slaris add some LIBS to make linking against libukcprog easier +case $host_os in +solaris2.*) + LIBS="$LIBS -lnsl -lsocket" + ;; +esac + +# User specified pkgconfig dir +AC_ARG_WITH([pkgconfig-dir], + [ --with-pkgconfig-dir=PATH pkgconfig lib directory (PREFIX/lib/pkgconfig)], + [ PKGCONFIG_DIR=$withval ], + [ PKGCONFIG_DIR="\$(libdir)/pkgconfig" ] +) +AC_SUBST(PKGCONFIG_DIR) + # And finish by changing these files -AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile libukcprog.pc]) AC_OUTPUT