From: nbk Date: Sat, 15 Jul 2006 17:04:59 +0000 (+0000) Subject: Add an option --with-docdir, so we can chose the directory where X-Git-Tag: release_1_1_3~33 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=c3b5439617651a8ef6adb401e8d4bb23c5fcc7da Add an option --with-docdir, so we can chose the directory where the documentation files will be installed. --- diff --git a/configure.in b/configure.in index 4f106dc..3a16667 100644 --- a/configure.in +++ b/configure.in @@ -108,6 +108,28 @@ dnl awk '{print " "$0}'])) AC_ARG_ENABLE(strict-dependencies, [ --enable-strict-dependencies Fail configure on lack of module dependancy.]) +dnl extra argument: --with-docdir +docdir='${datadir}/doc/freeradius' +AC_MSG_CHECKING(docdir) +AC_ARG_WITH(docdir, +[ --with-docdir=DIR Directory for documentation [DATADIR/doc/freeradius] ], +[ case "$withval" in + no) + AC_MSG_ERROR(Need docdir) + ;; + yes) + ;; + [[\\/$]]* | ?:[[\\/]]* ) + docdir="$withval" + ;; + *) + AC_MSG_ERROR([expected an absolute directory name for --with-docdir: $withval]) + ;; + esac ] +) +AC_SUBST(docdir) +AC_MSG_RESULT($docdir) + dnl extra argument: --with-logdir logdir='${localstatedir}/log/radius' AC_MSG_CHECKING(logdir) @@ -119,9 +141,12 @@ AC_ARG_WITH(logdir, ;; yes) ;; - *) + [[\\/$]]* | ?:[[\\/]]* ) logdir="$withval" ;; + *) + AC_MSG_ERROR([expected an absolute directory name for --with-logdir: $withval]) + ;; esac ] ) AC_SUBST(logdir) @@ -131,16 +156,19 @@ dnl extra argument: --with-radacctdir radacctdir='${logdir}/radacct' AC_MSG_CHECKING(radacctdir) AC_ARG_WITH(radacctdir, -[ --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] ], +[ --with-radacctdir=DIR Directory for detail files [LOGDIR/radacct] ], [ case "$withval" in no) AC_MSG_ERROR(Need radacctdir) ;; yes) ;; - *) + [[\\/$]]* | ?:[[\\/]]* ) radacctdir="$withval" ;; + *) + AC_MSG_ERROR([expected an absolute directory name for --with-radacctdir: $withval]) + ;; esac ] ) AC_SUBST(radacctdir) @@ -157,9 +185,12 @@ AC_ARG_WITH(raddbdir, ;; yes) ;; - *) + [[\\/$]]* | ?:[[\\/]]* ) raddbdir="$withval" ;; + *) + AC_MSG_ERROR([expected an absolute directory name for --with-raddbdir: $withval]) + ;; esac ] ) AC_SUBST(raddbdir)