ossp-pkg/snmpdx/configure.ac 1.5 -> 1.6
--- configure.ac 2003/09/10 14:17:05 1.5
+++ configure.ac 2004/07/30 09:30:04 1.6
@@ -32,9 +32,41 @@
dnl # standard OSSP style header
V=`./shtool version -ltxt -dlong VERSION`
./shtool echo -e "Configuring %BOSSP snmpdx%b, Version %B${V}%b"
-echo "Copyright (c) 2003 Ralf S. Engelschall <rse@engelschall.com>"
-echo "Copyright (c) 2003 The OSSP Project <http://www.ossp.org/>"
-echo "Copyright (c) 2003 Cable & Wireless <http://www.cw.com/>"
+echo "Copyright (c) 2003-2004 Ralf S. Engelschall <rse@engelschall.com>"
+echo "Copyright (c) 2003-2004 The OSSP Project <http://www.ossp.org/>"
+echo "Copyright (c) 2003-2004 Cable & Wireless <http://www.cw.com/>"
+
+dnl # check for OpenPKG
+AC_MSG_CHECKING(for openpkg instance)
+AC_ARG_WITH(openpkg,dnl
+[ --with-openpkg=PATH force the use of a particular OpenPKG instance],
+with_openpkg="$withval",
+dnl # find any OpenPKG 2.x
+if test ".$with_openpkg" = .; then
+ for i in `cat </etc/openpkg` /openpkg; do
+ if test -x $i/bin/openpkg -a -x $i/libexec/openpkg/rpm; then
+ with_openpkg="$i"
+ break;
+ fi
+ done
+fi
+dnl # find any OpenPKG 1.x
+if test ".$with_openpkg" = .; then
+ for i in `cat </etc/openpkg` /cw; do
+ if test -x $i/bin/rpm -a ! -x $i/libexec/openpkg/rpm; then
+ with_openpkg="$i"
+ break;
+ fi
+ done
+fi
+dnl # take first configured
+if test ".$with_openpkg" = .; then
+ with_openpkg="`sed </etc/openpkg -n -e 1p`"
+fi
+)dnl
+openpkg="$with_openpkg"
+AC_SUBST(openpkg)
+AC_MSG_RESULT($openpkg)
dnl # check for Perl
AC_MSG_CHECKING(for perl program)
|
|