]> arthur.barton.de Git - netatalk.git/commitdiff
GNU/kFreeBSD build fix, from Patrick Coulthard
authorFrank Lahm <franklahm@googlemail.com>
Mon, 5 Sep 2011 08:25:28 +0000 (10:25 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 5 Sep 2011 08:25:28 +0000 (10:25 +0200)
configure.in

index d8ca34c94da3e2c42424c10f478f8a55b6b57be8..e64a0e6f3f707f1bf13eaecd3de7c7243dc8a251 100644 (file)
@@ -541,6 +541,7 @@ dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
 dnl --------------------- determine operating system from "target"
 case "$host_os" in
        *aix*)                          this_os=aix ;;
+       *kfreebsd*-gnu)                 this_os=kfreebsd-gnu ;;
        *freebsd*)                      this_os=freebsd ;;
        *hpux11*)                       this_os=hpux11 ;;
        *irix*)                         this_os=irix ;;
@@ -564,7 +565,7 @@ dnl --------------------- GNU source
 case "$this_os" in
        linux)  AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
         ;;
-     *kfreebsd-gnu*) AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
+     kfreebsd-gnu) AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
         ;;
 esac
 
@@ -590,6 +591,15 @@ if test x"$this_os" = "xfreebsd"; then
     AC_DEFINE(OPEN_NOFOLLOW_ERRNO, EMLINK, errno returned by open with O_NOFOLLOW)
 fi
 
+dnl ----- GNU/kFreeBSD specific -----
+if test x"$this_os" = "xkfreebsd-gnu"; then 
+       AC_MSG_RESULT([ * GNU/kFreeBSD specific configuration])
+       AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
+       AC_DEFINE(FREEBSD, 1, [Define if OS is FreeBSD])
+       AC_DEFINE(SENDFILE_FLAVOR_BSD, 1, [Define if the sendfile() function uses BSD semantics])
+    AC_DEFINE(OPEN_NOFOLLOW_ERRNO, EMLINK, errno returned by open with O_NOFOLLOW)
+fi
+
 dnl ----- HP-UX 11 specific -----
 if test x"$this_os" = "xhpux11"; then
        AC_MSG_RESULT([ * HP-UX 11 specific configuration])