Update sysutils/dateutils to version 0.4.1
[dports.git] / net-mgmt / seafile-client / files / patch-configure.ac
1 --- configure.ac.orig   2017-01-05 08:05:21 UTC
2 +++ configure.ac
3 @@ -51,8 +51,16 @@ else
4    AC_MSG_RESULT(no)
5  fi
6  
7 +AC_MSG_CHECKING(for BSD)
8 +if test `uname | grep -e BSD -e DragonFly | wc -l` = "1"; then
9 +  bbsd=true
10 +  AC_MSG_RESULT(compile in BSD)
11 +else
12 +  AC_MSG_RESULT(no)
13 +fi
14 +
15  AC_MSG_CHECKING(for Linux)
16 -if test "$bmac" != "true" -a "$bwin32" != "true"; then
17 +if test "$bmac" != "true" -a "$bwin32" != "true" -a "$bbsd" != "true"; then
18    blinux=true
19    AC_MSG_RESULT(compile in linux)
20  else
21 @@ -61,6 +69,7 @@ fi
22  
23  AM_CONDITIONAL([WIN32], [test "$bwin32" = "true"])
24  AM_CONDITIONAL([MACOS], [test "$bmac" = "true"])
25 +AM_CONDITIONAL([BSD], [test "$bbsd" = "true"])
26  AM_CONDITIONAL([LINUX], [test "$blinux" = "true"])
27  
28  
29 @@ -105,6 +114,8 @@ if test "$bwin32" = true; then
30    LIB_MAC=
31    MSVC_CFLAGS="-D__MSVCRT__ -D__MSVCRT_VERSION__=0x0601"
32    LIB_CRYPT32=-lcrypt32
33 +  LIB_INOTIFY=
34 +  LIB_KVM=
35  elif test "$bmac" = true ; then
36    LIB_WS32=
37    LIB_GDI32=
38 @@ -119,6 +130,24 @@ elif test "$bmac" = true ; then
39    LIB_MAC="-framework CoreServices"
40    LIB_CRYPT32=
41    LIB_ICONV=-liconv
42 +  LIB_INOTIFY=
43 +  LIB_KVM=
44 +elif test "$bbsd" = true ; then
45 +  LIB_WS32=
46 +  LIB_GDI32=
47 +  LIB_RT=
48 +  LIB_INTL=
49 +  LIB_RESOLV=
50 +  LIB_UUID=-luuid
51 +  LIB_IPHLPAPI=
52 +  LIB_SHELL32=
53 +  LIB_PSAPI=
54 +  LIB_MAC=
55 +  MSVC_CFLAGS=
56 +  LIB_CRYPT32=
57 +  LIB_ICONV=-liconv
58 +  LIB_INOTIFY=-linotify
59 +  LIB_KVM=-lkvm
60  else
61    LIB_WS32=
62    LIB_GDI32=
63 @@ -132,6 +161,8 @@ else
64    LIB_MAC=
65    MSVC_CFLAGS=
66    LIB_CRYPT32=
67 +  LIB_INOTIFY=-linotify
68 +  LIB_KVM=
69  fi
70  
71  AC_SUBST(LIB_WS32)
72 @@ -144,6 +175,8 @@ AC_SUBST(LIB_IPHLPAPI)
73  AC_SUBST(LIB_SHELL32)
74  AC_SUBST(LIB_PSAPI)
75  AC_SUBST(LIB_MAC)
76 +AC_SUBST(LIB_INOTIFY)
77 +AC_SUBST(LIB_KVM)
78  AC_SUBST(MSVC_CFLAGS)
79  AC_SUBST(LIB_CRYPT32)
80  AC_SUBST(LIB_ICONV)