/[radius]/radius/configure.ac
ViewVC logotype

Diff of /radius/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41 by gray, Thu Jun 12 09:32:23 2003 UTC revision 1.42 by gray, Sat Jun 14 14:44:16 2003 UTC
# Line 18  Line 18 
18  AC_PREREQ(2.57)  AC_PREREQ(2.57)
19    
20  AC_REVISION($Revision$)  AC_REVISION($Revision$)
21  AC_INIT(GNU Radius, 0.99.102, bug-gnu-radius@gnu.org)  AC_INIT(GNU Radius, 0.99.103, bug-gnu-radius@gnu.org)
22  AC_CONFIG_SRCDIR(radiusd/radiusd.c)  AC_CONFIG_SRCDIR(radiusd/radiusd.c)
23  AC_CONFIG_AUX_DIR([scripts])  AC_CONFIG_AUX_DIR([scripts])
24  AC_CANONICAL_SYSTEM  AC_CANONICAL_SYSTEM
# Line 67  RA_MAINTAINER_MODE([build_POFILTER=pofil Line 67  RA_MAINTAINER_MODE([build_POFILTER=pofil
67    
68  ### Make sure Guile is installed.  ### Make sure Guile is installed.
69  AC_ARG_WITH(guile,  AC_ARG_WITH(guile,
70          [  --without-guile                do not compile Guile support],          AC_HELP_STRING([--without-guile],
71          [USE_GUILE=$withval],          [do not compile Guile support]),
72          [USE_GUILE=yes])          [USE_GUILE=$withval],
73            [USE_GUILE=yes])
74    
75  AC_ARG_WITH(server-guile,  AC_ARG_WITH(server-guile,
76          [  --with-server-guile            compile server Guile support (WARNING: see README for details)],          AC_HELP_STRING([--with-server-guile], [compile server Guile support]),
77          [USE_SERVER_GUILE=$withval],          [USE_SERVER_GUILE=$withval],
78          [USE_SERVER_GUILE=yes])          [USE_SERVER_GUILE=yes])
79    
80  if test $USE_GUILE = yes; then  if test $USE_GUILE = yes; then
81          RA_CHECK_GUILE(,          RA_CHECK_GUILE(,
# Line 125  dnl ** AM_DISABLE_SHARED Line 126  dnl ** AM_DISABLE_SHARED
126  ## *************************************  ## *************************************
127  AC_MSG_CHECKING(for additional includes)  AC_MSG_CHECKING(for additional includes)
128  AC_ARG_WITH(include-path,  AC_ARG_WITH(include-path,
129          [  --with-include-path=PATH      specify additional include paths.          AC_HELP_STRING([--with-include-path=PATH],
130                                           PATH is a ':' separated list of additional          [specify additional include paths. PATH is a ':' separated list of additional include paths.]),
                                          include paths.  ],  
131          [ for path in `echo $withval | sed 's/:/ /g'`          [ for path in `echo $withval | sed 's/:/ /g'`
132            do            do
133              INCLUDEPATH="$INCLUDEPATH -I$path"              INCLUDEPATH="$INCLUDEPATH -I$path"
# Line 136  AC_MSG_RESULT($INCLUDEPATH) Line 136  AC_MSG_RESULT($INCLUDEPATH)
136    
137  AC_MSG_CHECKING(for additional libraries)  AC_MSG_CHECKING(for additional libraries)
138  AC_ARG_WITH(lib-path,      AC_ARG_WITH(lib-path,    
139          [  --with-lib-path=PATH          specify additional library paths.],          AC_HELP_STRING([--with-lib-path=PATH],
140            [specify additional library paths.]),
141          [ for path in `echo $withval | sed 's/:/ /g'`          [ for path in `echo $withval | sed 's/:/ /g'`
142            do            do
143              LIBS="$LIBS -L$path"              LIBS="$LIBS -L$path"
# Line 259  AC_CHECK_DECLS([strncasecmp, strtok_r, l Line 260  AC_CHECK_DECLS([strncasecmp, strtok_r, l
260  CPPFLAGS=$save_CPPFLAGS  CPPFLAGS=$save_CPPFLAGS
261    
262  AC_ARG_WITH(included-argp,  AC_ARG_WITH(included-argp,
263          [  --with-included-argp           Use included argp library],          AC_HELP_STRING([--with-included-argp],
264          [USE_INCLUDED_ARGP=$withval],          [use included argp library.]),
265          [USE_INCLUDED_ARGP=no])          [USE_INCLUDED_ARGP=$withval],
266            [USE_INCLUDED_ARGP=no])
267    
268  AC_CHECK_FUNCS(argp_parse, :, USE_INCLUDED_ARGP=yes)  AC_CHECK_FUNCS(argp_parse, :, USE_INCLUDED_ARGP=yes)
269  if test "$ac_cv_header_argp_h" = "no"; then  if test "$ac_cv_header_argp_h" = "no"; then
# Line 312  main() { char *s = sys_errlist[[0]]; ret Line 314  main() { char *s = sys_errlist[[0]]; ret
314  ## **************  ## **************
315  RADIUS_DEBUG=1  RADIUS_DEBUG=1
316  AC_ARG_ENABLE(debug,                      AC_ARG_ENABLE(debug,                    
317          [  --disable-debug               disable debugging functions],          AC_HELP_STRING([--disable-debug],
318            [disable debugging functions]),
319          [case $enableval in          [case $enableval in
320                  yes)    RADIUS_DEBUG=1;;                  yes)    RADIUS_DEBUG=1;;
321                  no)     RADIUS_DEBUG=0;;                  no)     RADIUS_DEBUG=0;;
# Line 332  esac Line 335  esac
335    
336  AC_MSG_CHECKING(for log directory path)  AC_MSG_CHECKING(for log directory path)
337  AC_ARG_WITH(log-dir,  AC_ARG_WITH(log-dir,
338  [  --with-log-dir=PATH     Use PATH instead of default log directory pah],          AC_HELP_STRING([--with-log-dir=PATH],
339            [Use PATH instead of default log directory path]),
340          [case "x$withval" in          [case "x$withval" in
341           x/*) RADLOG_DIR=$withval;;           x/*) RADLOG_DIR=$withval;;
342           *)  AC_MSG_ERROR(Argument must be an absolute pathname);;           *)  AC_MSG_ERROR(Argument must be an absolute pathname);;
# Line 341  AC_MSG_RESULT($RADLOG_DIR) Line 345  AC_MSG_RESULT($RADLOG_DIR)
345    
346  AC_MSG_CHECKING(for pidfile directory path)  AC_MSG_CHECKING(for pidfile directory path)
347  AC_ARG_WITH(pid-dir,  AC_ARG_WITH(pid-dir,
348  [  --with-pid-dir=PATH     Use PATH instead of default podfile location],          AC_HELP_STRING([--with-pid-dir=PATH],
349            [Use PATH instead of default podfile location]),
350          [case "x$withval" in          [case "x$withval" in
351           x/*) RADPID_DIR=$withval;;           x/*) RADPID_DIR=$withval;;
352           *)  AC_MSG_ERROR(Argument must be an absolute pathname);;           *)  AC_MSG_ERROR(Argument must be an absolute pathname);;
# Line 361  AC_DEFINE_UNQUOTED(BUILD_TARGET, Line 366  AC_DEFINE_UNQUOTED(BUILD_TARGET,
366  ## ***************  ## ***************
367  AC_MSG_CHECKING(whether to build client programs)  AC_MSG_CHECKING(whether to build client programs)
368  AC_ARG_WITH(client,  AC_ARG_WITH(client,
369          [  --with-client                 compile client programs],          AC_HELP_STRING([--with-client],
370            [compile client programs]),
371          [BUILD_CLIENT=$withval],          [BUILD_CLIENT=$withval],
372          [BUILD_CLIENT=no])          [BUILD_CLIENT=no])
373  AC_MSG_RESULT($BUILD_CLIENT)  AC_MSG_RESULT($BUILD_CLIENT)
# Line 371  AC_MSG_RESULT($BUILD_CLIENT) Line 377  AC_MSG_RESULT($BUILD_CLIENT)
377  ## **************  ## **************
378  AC_MSG_CHECKING(authentication port number)  AC_MSG_CHECKING(authentication port number)
379  AC_ARG_WITH(auth-port,  AC_ARG_WITH(auth-port,
380          [  --with-auth-port=NUMBER       specify port number to use for authentication],          AC_HELP_STRING([--with-auth-port=NUMBER],
381            [specify port number to use for authentication]),
382          [case $withval in          [case $withval in
383                  [[0-9]][[0-9]]*)        AUTH_PORT=$withval                  [[0-9]][[0-9]]*)        AUTH_PORT=$withval
384                                  ;;                                  ;;
# Line 396  AC_DEFINE_UNQUOTED(DEF_ACCT_PORT, $ACCT_ Line 403  AC_DEFINE_UNQUOTED(DEF_ACCT_PORT, $ACCT_
403  ## **************  ## **************
404  AC_MSG_CHECKING(whether to enable shadow support)  AC_MSG_CHECKING(whether to enable shadow support)
405  AC_ARG_ENABLE(shadow,  AC_ARG_ENABLE(shadow,
406          [  --enable-shadow               enable shadow support],          AC_HELP_STRING([--enable-shadow],
407            [enable shadow support]),
408          [case $enableval in          [case $enableval in
409                  yes)    SHADOW_SUPPORT=yes;;                  yes)    SHADOW_SUPPORT=yes;;
410                  *)      SHADOW_SUPPORT=no;;                  *)      SHADOW_SUPPORT=no;;
# Line 412  fi Line 420  fi
420  ## PAM support  ## PAM support
421  ## **************  ## **************
422  AC_ARG_ENABLE(pam,  AC_ARG_ENABLE(pam,
423          [  --enable-pam                  enable pam support],          AC_HELP_STRING([--enable-pam],
424            [enable pam support]),
425          [case $enableval in          [case $enableval in
426                  yes)            USE_PAM=yes                  yes)            USE_PAM=yes
427                                  AC_DEFINE(USE_PAM,1,                                  AC_DEFINE(USE_PAM,1,
# Line 461  rad_lib_ndbm() { Line 470  rad_lib_ndbm() {
470    
471  AH_TEMPLATE(USE_DBM,[Define this to enable DBM support])  AH_TEMPLATE(USE_DBM,[Define this to enable DBM support])
472  AC_ARG_ENABLE(dbm,  AC_ARG_ENABLE(dbm,
473          [  --enable-dbm][[={dbm|ndbm}]][      include dbm support],          AC_HELP_STRING([--enable-dbm[={dbm|ndbm}]],
474            [include dbm support]),
475          [case $enableval in          [case $enableval in
476                  yes)        rad_lib_ndbm                  yes)        rad_lib_ndbm
477                              AC_DEFINE_UNQUOTED(USE_DBM,DBM_NDBM);;                              AC_DEFINE_UNQUOTED(USE_DBM,DBM_NDBM);;
# Line 494  AH_TEMPLATE(USE_SQL,[Enables SQL support Line 504  AH_TEMPLATE(USE_SQL,[Enables SQL support
504    
505  USE_SQL=0  USE_SQL=0
506  AC_ARG_WITH(mysql,  AC_ARG_WITH(mysql,
507          [  --with-mysql          Configure to work with MySQL],          AC_HELP_STRING([--with-mysql],
508            [Configure to work with MySQL]),
509          [case $withval in          [case $withval in
510           yes)   RA_CHECK_LIB(mysqlclient, mysql_real_connect, "-lm",           yes)   RA_CHECK_LIB(mysqlclient, mysql_real_connect, "-lm",
511                              [ USE_SQL=1                              [ USE_SQL=1
# Line 509  AC_ARG_WITH(mysql, Line 520  AC_ARG_WITH(mysql,
520          esac])          esac])
521    
522  AC_ARG_WITH(postgres,  AC_ARG_WITH(postgres,
523          [  --with-postgres       Configure to work with Postgres],          AC_HELP_STRING([--with-postgres],
524            [Configure to work with Postgres]),
525          [case $withval in          [case $withval in
526           yes)   RA_CHECK_LIB(pq, PQconnectStart, [],           yes)   RA_CHECK_LIB(pq, PQconnectStart, [],
527                              [ USE_SQL=1                              [ USE_SQL=1
# Line 544  RA_CHECK_LIB(iodbc, SQLAllocHandle, [], Line 556  RA_CHECK_LIB(iodbc, SQLAllocHandle, [],
556    
557    
558  AC_ARG_WITH(odbc,  AC_ARG_WITH(odbc,
559          [  --with-odbc][[={odbc|iodbc}]][      Configure to work with ODBC (EXPERIMENTAL)],          AC_HELP_STRING([--with-odbc[={odbc|iodbc}]],
560            [Configure to work with ODBC]),
561          [case $withval in          [case $withval in
562           yes)                   rad_lib_odbc           yes)                   rad_lib_odbc
563                  ;;                  ;;
# Line 572  AC_SUBST(SQLLIB) Line 585  AC_SUBST(SQLLIB)
585    
586  AH_TEMPLATE(USE_SNMP, [Define this to enable SNMP support])  AH_TEMPLATE(USE_SNMP, [Define this to enable SNMP support])
587  AC_ARG_ENABLE(snmp,  AC_ARG_ENABLE(snmp,
588  [  --enable-snmp][[={yes|no|compat}]][                  enable SNMP support],          AC_HELP_STRING([--enable-snmp[={yes|no|compat}]],
589            [enable SNMP support]),
590          [case $enableval in          [case $enableval in
591                  compat)         USE_SNMP=yes                  compat)         USE_SNMP=yes
592                                  AC_DEFINE(USE_SNMP)                                  AC_DEFINE(USE_SNMP)
# Line 597  AH_BOTTOM([ Line 611  AH_BOTTOM([
611  ## **************  ## **************
612  PAMDIR='$(prefix)/lib/security'  PAMDIR='$(prefix)/lib/security'
613  AC_ARG_WITH(pamdir,  AC_ARG_WITH(pamdir,
614          [  --with-pamdir=DIR             install PAM modiles in DIR [PREFIX/lib/security]],          AC_HELP_STRING([--with-pamdir=DIR],
615            [install PAM modules in DIR [[PREFIX/lib/security)]]]),
616          [PAMDIR=$withval])          [PAMDIR=$withval])
617  AC_SUBST(PAMDIR)  AC_SUBST(PAMDIR)
618    
# Line 606  AC_SUBST(PAMDIR) Line 621  AC_SUBST(PAMDIR)
621  ## ***********************************************************************  ## ***********************************************************************
622    
623  AC_ARG_ENABLE(livingston-menus,  AC_ARG_ENABLE(livingston-menus,
624          [  --enable-livingston-menus     enable Livingston-compatible menus],          AC_HELP_STRING([--enable-livingston-menus],
625            [enable Livingston-compatible menus]),
626          [case $enableval in          [case $enableval in
627                  yes)    AC_DEFINE(USE_LIVINGSTON_MENUS,1,                  yes)    AC_DEFINE(USE_LIVINGSTON_MENUS,1,
628                                    [Enable support for Livingstone menus]);;                                    [Enable support for Livingstone menus]);;
# Line 617  AH_TEMPLATE(DENY_SHELL, Line 633  AH_TEMPLATE(DENY_SHELL,
633              [When defined, users with the given shell will be always denied              [When defined, users with the given shell will be always denied
634               access])               access])
635  AC_ARG_ENABLE(deny_shell,  AC_ARG_ENABLE(deny_shell,
636          [  --enable-deny-shell=STRING    always reject users with given shell],          AC_HELP_STRING([--enable-deny-shell=STRING],
637            [always reject users with given shell]),
638          [case $enableval in          [case $enableval in
639                  yes|no)         AC_MSG_ERROR(--enable-deny-shell requires an argument)                  yes|no)         AC_MSG_ERROR(--enable-deny-shell requires an argument)
640                                  exit 1;;                                  exit 1;;
# Line 626  AC_ARG_ENABLE(deny_shell, Line 643  AC_ARG_ENABLE(deny_shell,
643          esac])          esac])
644    
645  AC_ARG_ENABLE(osfc2,  AC_ARG_ENABLE(osfc2,
646          [  --enable-osfc2                enable OSFC2 support],          AC_HELP_STRING([--enable-osfc2],
647            [enable OSFC2 support]),
648          [case $enableval in          [case $enableval in
649                  yes)            AC_DEFINE(OSFC2,1,                  yes)            AC_DEFINE(OSFC2,1,
650                                            [Define this to enable OSFC2 support<]);;                                            [Define this to enable OSFC2 support<]);;

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26