Remove trailing whitespace from debian/*.
[debian/iodine.git] / src / osflags
1 #!/bin/sh
2
3 case $2 in
4 link)
5
6         case $1 in
7                 SunOS | solaris)
8                         echo '-lsocket -lnsl';
9                 ;;
10                 BeOS)
11                         echo '-lsocket -lbind -lbsd';
12                 ;;
13                 Haiku)
14                         echo '-lnetwork';
15                 ;;
16                 windows32)
17                         echo '-lws2_32 -liphlpapi';
18                 ;;
19                 Linux)
20                         FLAGS="";
21                         [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
22                         [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon";
23                         echo $FLAGS;
24                 ;;
25         esac
26         ;;
27 cflags)
28         case $1 in
29                 windows32)
30                         echo '-DWINVER=0x0501';
31                 ;;
32                 BeOS)
33                         echo '-Dsocklen_t=int';
34                 ;;
35                 Linux)
36                         FLAGS="-D_GNU_SOURCE"
37                         [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";
38                         [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD";
39                         echo $FLAGS;
40                 ;;
41         esac
42 ;;
43 *)
44 ;;
45 esac