143 |
AC_CHECK_LIB(nsl, gethostbyaddr) |
AC_CHECK_LIB(nsl, gethostbyaddr) |
144 |
AC_CHECK_LIB(crypt, crypt) |
AC_CHECK_LIB(crypt, crypt) |
145 |
|
|
|
HAVE_PTHREAD=no |
|
|
AC_CHECK_LIB(pthread, pthread_self, |
|
|
[ HAVE_PTHREAD=yes |
|
|
LIBS="$LIBS -lpthread -lc" ], |
|
|
[ LIBS="$LIBS -pthread" |
|
|
AC_CHECK_FUNC(pthread_self, |
|
|
[HAVE_PTHREAD=yes]) ]) |
|
|
|
|
|
if test $HAVE_PTHREAD != yes; then |
|
|
AC_MSG_ERROR("POSIX threads library not found. Please install one and then reconfigure") |
|
|
fi |
|
|
|
|
|
AC_CHECK_FUNCS(pthread_atfork) |
|
|
|
|
146 |
## * Checks for header files. |
## * Checks for header files. |
147 |
|
|
148 |
# Override CPPFLAGS |
# Override CPPFLAGS |
258 |
[USE_INCLUDED_ARGP=no]) |
[USE_INCLUDED_ARGP=no]) |
259 |
|
|
260 |
AC_CHECK_FUNCS(argp_parse, :, USE_INCLUDED_ARGP=yes) |
AC_CHECK_FUNCS(argp_parse, :, USE_INCLUDED_ARGP=yes) |
261 |
if test "$ac_cv_header_argp_h" = "yes"; then |
if test "$ac_cv_header_argp_h" = "no"; then |
262 |
USE_INCLUDED_ARGP=yes |
USE_INCLUDED_ARGP=yes |
263 |
fi |
fi |
264 |
|
|
488 |
AC_ARG_WITH(mysql, |
AC_ARG_WITH(mysql, |
489 |
[ --with-mysql Configure to work with MySQL], |
[ --with-mysql Configure to work with MySQL], |
490 |
[case $withval in |
[case $withval in |
491 |
yes) RA_CHECK_LIB(mysqlclient_r, mysql_real_connect, "-lm", |
yes) RA_CHECK_LIB(mysqlclient, mysql_real_connect, "-lm", |
492 |
[ USE_SQL=1 |
[ USE_SQL=1 |
493 |
AC_DEFINE(USE_SQL_MYSQL) |
AC_DEFINE(USE_SQL_MYSQL) |
494 |
AC_DEFINE(HAVE_LIBMYSQL) |
AC_DEFINE(HAVE_LIBMYSQL) |
495 |
RA_RADIUSD_LDADD($ra_cv_lib_mysqlclient_r) |
RA_RADIUSD_LDADD($ra_cv_lib_mysqlclient) |
496 |
], |
], |
497 |
:, |
:, |
498 |
[/usr/local/lib/mysql /usr/lib/mysql]) |
[/usr/local/lib/mysql /usr/lib/mysql]) |
|
|
|
|
if test "$USE_SQL" != "1"; then |
|
|
RA_CHECK_LIB(mysqlclient, mysql_real_connect, "-lm", |
|
|
[ AC_MSG_WARN([libmysqlclient_r not found. Will use libmysqlclient. Consider upgrading your MySQL.]) |
|
|
USE_SQL=1 |
|
|
AC_DEFINE(USE_SQL_MYSQL) |
|
|
AC_DEFINE(HAVE_LIBMYSQL) |
|
|
RA_RADIUSD_LDADD($ra_cv_lib_mysqlclient) |
|
|
], |
|
|
[ AC_MSG_ERROR(-lmysqlclient not found)], |
|
|
[/usr/local/lib/mysql /usr/lib/mysql]) |
|
|
fi |
|
499 |
;; |
;; |
500 |
no) ;; |
no) ;; |
501 |
esac]) |
esac]) |
644 |
fi |
fi |
645 |
AC_SUBST(lisp_LISP) |
AC_SUBST(lisp_LISP) |
646 |
|
|
647 |
AC_OUTPUT(Makefile m4/Makefile intl/Makefile po/Makefile.in |
dnl Define ARG_UNUSED macro |
648 |
include/Makefile include/snmp/Makefile |
dnl |
649 |
|
AH_BOTTOM([ |
650 |
|
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) |
651 |
|
# define __attribute__(x) |
652 |
|
#endif |
653 |
|
|
654 |
|
#ifndef ARG_UNUSED |
655 |
|
# define ARG_UNUSED __attribute__ ((__unused__)) |
656 |
|
#endif |
657 |
|
|
658 |
|
#define LOCK_DECLARE(name) |
659 |
|
#define LOCK_SET(name) |
660 |
|
#define LOCK_RELEASE(name) |
661 |
|
]) |
662 |
|
|
663 |
|
|
664 |
|
AC_OUTPUT(Makefile |
665 |
|
m4/Makefile |
666 |
|
intl/Makefile |
667 |
|
po/Makefile.in |
668 |
|
include/Makefile |
669 |
|
include/snmp/Makefile |
670 |
lib/Makefile |
lib/Makefile |
671 |
sql/Makefile |
sql/Makefile |
672 |
snmplib/Makefile |
snmplib/Makefile |
675 |
radiusd/testsuite/Makefile |
radiusd/testsuite/Makefile |
676 |
radiusd/testsuite/raddb/Makefile |
radiusd/testsuite/raddb/Makefile |
677 |
radiusd/testsuite/proxy/Makefile |
radiusd/testsuite/proxy/Makefile |
678 |
radlast/Makefile radwho/Makefile |
radlast/Makefile |
679 |
raduse/Makefile radzap/Makefile |
radwho/Makefile |
680 |
radscripts/Makefile doc/Makefile |
radzap/Makefile |
681 |
doc/texinfo/Makefile doc/man/Makefile doc/man/config.so |
radscripts/Makefile |
682 |
|
doc/Makefile |
683 |
|
doc/texinfo/Makefile |
684 |
|
doc/man/Makefile |
685 |
|
doc/man/config.so |
686 |
doc/rfc/Makefile |
doc/rfc/Makefile |
687 |
mibs/Makefile |
mibs/Makefile |
688 |
elisp/Makefile |
elisp/Makefile |