]> arthur.barton.de Git - netatalk.git/commitdiff
Use new SLP checking macro.
authorsrittau <srittau>
Sun, 16 Dec 2001 18:37:20 +0000 (18:37 +0000)
committersrittau <srittau>
Sun, 16 Dec 2001 18:37:20 +0000 (18:37 +0000)
configure.in

index 9136a3e61a8316d319c7e7d6b936d3567538ea9e..5bf13be17da223ce3995ac07ea6bcae884cf60dd 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.142 2001-12-14 23:01:47 srittau Exp $
+dnl $Id: configure.in,v 1.143 2001-12-16 18:37:20 srittau Exp $
 dnl configure.in for netatalk
 
 AC_INIT(bin/adv1tov2/adv1tov2.c)
@@ -251,28 +251,10 @@ AC_ARG_WITH(message-dir,
                AC_SUBST(SERVERTEXT)
 )
 
-AC_ARG_ENABLE(srvloc,
-       [  --enable-srvloc         turn on Server Location Protocol support (EXPERIMENTAL)],
-       srvloc=$enableval,
-       srvloc=no
-)
-
-dnl Conditional for optional server location protocol support (used by OS X)
-AM_CONDITIONAL(USE_SRVLOC, test "x$srvloc" != "xno")
-if test "x$srvloc" != "xno"; then
-    for slpdir in "" $srvloc /usr /usr/local ; do
-               if test -f "$slpdir/include/slp.h" ; then
-                       LIBS="$LIBS -L$slpdir/lib -lslp"
-                       CFLAGS="$CFLAGS -I$slpdir/include"
-               AC_CHECK_LIB(slp,SLPOpen)
-               AC_CHECK_FUNCS(SLPReg SLPDereg SLPClose)
-               AC_DEFINE(USE_SRVLOC, 1)
-                       break
-               fi
-       done
-fi
+dnl Check for optional server location protocol support (used by MacOS X)
+NETATALK_SRVLOC
 
-# Check for PAM libs
+dnl Check for PAM libs
 AC_PATH_PAM([
        PAPD_LIBS="$PAPD_LIBS $PAM_LIBS"
        AFPD_LIBS="$AFPD_LIBS $PAM_LIBS"