[svn-upgrade] new version iodine (0.6.0~rc1)
[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                         [ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
21                 ;;
22         esac
23         ;;
24 cflags)
25         case $1 in
26                 BeOS)
27                         echo '-Dsocklen_t=int';
28                 ;;
29                 Linux)
30                         [ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
31                 ;;
32         esac
33 ;;
34 *)
35 ;;
36 esac