OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/configure.in versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/configure.in 1.4 -> 1.5

--- configure.in 2000/12/16 13:18:18     1.4
+++ configure.in 2001/01/06 14:12:21     1.5
@@ -1,12 +1,12 @@
 dnl
 dnl configure.in -- Process this file with autoconf to produce a configure script.
 dnl
-dnl $Header: /v/ossp/cvs/ossp-pkg/petidomo/configure.in,v 1.4 2000/12/16 13:18:18 simons Exp $
+dnl $Header: /v/ossp/cvs/ossp-pkg/petidomo/configure.in,v 1.5 2001/01/06 14:12:21 simons Exp $
 dnl
 
 AC_INIT(petidomo.h)
 AC_CONFIG_AUX_DIR(../etc)
-AC_REVISION($Revision: 1.4 $)dnl
+AC_REVISION($Revision: 1.5 $)dnl
 
 dnl Checks for paths and programs.
 dnl
@@ -39,6 +39,29 @@
 dnl
 CFLAGS=`echo $CFLAGS | sed -e "s/-O2/-O3/"`
 
+dnl Where is the /etc directory?
+dnl
+AC_MSG_CHECKING(etcdir)
+AC_ARG_WITH(etcdir,
+[  --with-etcdir=PATH      Directory containing petidomo.conf (default /etc).],
+[ case "$withval" in
+  no)
+    AC_MSG_ERROR(Need ETCDIR.)
+    ;;
+  yes)
+    ETCDIR="/etc"
+    AC_MSG_RESULT(/etc)
+    ;;
+  *)
+    ETCDIR="$withval"
+    AC_MSG_RESULT($withval)
+    ;;
+  esac ],
+  ETCDIR="/etc"
+  AC_MSG_RESULT(/etc)
+)
+AC_SUBST(ETCDIR)
+
 dnl Write results.
 dnl
 AC_OUTPUT(Makefile)

CVSTrac 2.0.1