add --with-libdir and --with-mandir (patch from Guenther Deschner)
authorGerald Carter <jerry@samba.org>
Fri, 19 Mar 2004 16:58:16 +0000 (16:58 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 19 Mar 2004 16:58:16 +0000 (16:58 +0000)
(This used to be commit a1d6200cd5488ce328c7238b11c54785d64ca447)

source3/configure.in

index 5bebfa148418fc9e2c32b27d9ec5684b246edbdb..f92ea2d080682e4f182378505d22e5670900f28a 100644 (file)
@@ -105,7 +105,7 @@ AC_ARG_WITH(swatdir,
 #################################################
 # set configuration directory location
 AC_ARG_WITH(configdir,
-[  --with-configdir=DIR    Where to put configuration files (\$libdir)],
+[  --with-configdir=DIR    Where to put configuration files ($libdir)],
 [ case "$withval" in
   yes|no)
   #
@@ -121,7 +121,7 @@ AC_ARG_WITH(configdir,
 #################################################
 # set log directory location
 AC_ARG_WITH(logfilebase,
-[  --with-logfilebase=DIR  Where to put log files (\$(VARDIR))],
+[  --with-logfilebase=DIR  Where to put log files ($VARDIR)],
 [ case "$withval" in
   yes|no)
   #
@@ -134,6 +134,38 @@ AC_ARG_WITH(logfilebase,
     ;;
   esac])
 
+#################################################
+# set lib directory location
+AC_ARG_WITH(libdir,
+[  --with-libdir=DIR       Where to put libdir ($libdir)],
+[ case "$withval" in
+  yes|no)
+  #
+  # Just in case anybody does it
+  #
+    AC_MSG_WARN([--with-libdir without argument - will use default])
+  ;;
+  * )
+    libdir="$withval"
+    ;;
+  esac])
+
+#################################################
+# set lib directory location
+AC_ARG_WITH(mandir,
+[  --with-mandir=DIR       Where to put man pages ($mandir)],
+[ case "$withval" in
+  yes|no)
+  #
+  # Just in case anybody does it
+  #
+    AC_MSG_WARN([--with-mandir without argument - will use default])
+  ;;
+  * )
+    mandir="$withval"
+    ;;
+  esac])
+
 AC_ARG_WITH(cfenc,
 [  --with-cfenc=HEADERDIR  Use internal CoreFoundation encoding API
                          for optimization (Mac OS X/Darwin only)],