Use darwin/device.c when compiling on MacOS/X.
[tinc] / configure.in
index 390b3d0..715b401 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl $Id: configure.in,v 1.13.2.48 2002/06/09 15:26:10 zarq Exp $
+dnl $Id: configure.in,v 1.13.2.50 2002/06/10 14:35:18 guus Exp $
 
 AC_INIT(src/tincd.c)
 AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
@@ -43,8 +43,8 @@ case $host_os in
     [ rm -f src/device.c; ln -sf freebsd/device.c src/device.c ]
   ;;
   *darwin*)
-    AC_DEFINE(HAVE_FREEBSD)
-    [ rm -f src/device.c; ln -sf freebsd/device.c src/device.c ]
+    AC_DEFINE(HAVE_DARWIN)
+    [ rm -f src/device.c; ln -sf darwin/device.c src/device.c ]
   ;;
   *solaris*)
     AC_DEFINE(HAVE_SOLARIS)
@@ -65,6 +65,13 @@ esac
 
 AC_CACHE_SAVE
 
+if test -d /sw/include ; then
+  CPPFLAGS="$CPPFLAGS -I/sw/include"
+fi
+if test -d /sw/lib ; then
+  LIBS="$LIBS -L/sw/lib"
+fi
+
 dnl Checks for libraries.
 
 dnl Checks for header files.