mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-27 23:33:32 +02:00
36 lines
467 B
Bash
Executable file
36 lines
467 B
Bash
Executable file
#!/bin/sh
|
|
|
|
case $2 in
|
|
link)
|
|
|
|
case $1 in
|
|
SunOS | solaris)
|
|
echo '-lsocket -lnsl';
|
|
;;
|
|
BeOS)
|
|
echo '-lsocket -lbind -lbsd';
|
|
;;
|
|
Haiku)
|
|
echo '-lnetwork';
|
|
;;
|
|
windows32)
|
|
echo '-lws2_32 -liphlpapi';
|
|
;;
|
|
Linux)
|
|
[ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
|
|
;;
|
|
esac
|
|
;;
|
|
cflags)
|
|
case $1 in
|
|
BeOS)
|
|
echo '-Dsocklen_t=int';
|
|
;;
|
|
Linux)
|
|
[ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|