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

Diff of /radius/configure.ac

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

revision 1.33 by gray, Wed Jan 8 15:22:29 2003 UTC revision 1.34 by gray, Fri Apr 18 05:27:09 2003 UTC
# Line 143  AC_CHECK_LIB(socket, socket) Line 143  AC_CHECK_LIB(socket, socket)
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
# Line 272  AC_ARG_WITH(included-argp, Line 258  AC_ARG_WITH(included-argp,
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    
# Line 502  USE_SQL=0 Line 488  USE_SQL=0
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])
# Line 670  if test "$EMACS" != "no"; then Line 644  if test "$EMACS" != "no"; then
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
# Line 680  AC_OUTPUT(Makefile m4/Makefile intl/Make Line 675  AC_OUTPUT(Makefile m4/Makefile intl/Make
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

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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