| 34 |
|
AC_FUNC_REALLOC |
| 35 |
|
AC_CHECK_FUNCS(atoll) |
| 36 |
|
|
| 37 |
+ |
# Default needing setgid to false |
| 38 |
+ |
AM_CONDITIONAL(SETGIDBINS, false) |
| 39 |
+ |
|
| 40 |
|
# Set things up for different OS's |
| 41 |
|
# We define the name of the OS so the code can act accordingly |
| 42 |
|
# We also need to add the right LDFLAGS |
| 53 |
|
LINKFLAGS="-lkstat" |
| 54 |
|
;; |
| 55 |
|
freebsd4.*) |
| 56 |
< |
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
| 56 |
> |
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
| 57 |
> |
AM_CONDITIONAL(SETGIDBINS, true) |
| 58 |
|
LINKFLAGS="-lkvm -ldevstat" |
| 59 |
|
;; |
| 60 |
+ |
freebsd5.*) |
| 61 |
+ |
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
| 62 |
+ |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x]) |
| 63 |
+ |
AM_CONDITIONAL(SETGIDBINS, true) |
| 64 |
+ |
LINKFLAGS="-lkvm -ldevstat" |
| 65 |
+ |
;; |
| 66 |
|
linux-gnu) |
| 67 |
|
AC_DEFINE(LINUX, , [Building on GNU/Linux]) |
| 68 |
|
;; |
| 79 |
|
SAIDARLIBS="-L${withval}/lib ${SAIDARLIBS}" |
| 80 |
|
fi |
| 81 |
|
if test -d "$withval/include"; then |
| 82 |
< |
SAIDARCPPFLAGS="-I${withval}/include ${SAIRDARCPPFLAGS}" |
| 82 |
> |
SAIDARCPPFLAGS="-I${withval}/include -I${withval}/include/ncurses ${SAIRDARCPPFLAGS}" |
| 83 |
|
fi |
| 84 |
|
] |
| 85 |
|
) |
| 132 |
|
fi |
| 133 |
|
] |
| 134 |
|
) |
| 135 |
+ |
|
| 136 |
+ |
# Check if the user wants to turn off setgid binaries |
| 137 |
+ |
# (only really relevant on FreeBSD) |
| 138 |
+ |
AC_ARG_ENABLE(setgid-binaries, |
| 139 |
+ |
[ --disable-setgid-binaries disable binaries being setgid], |
| 140 |
+ |
[ |
| 141 |
+ |
if test "x$enableval" = "xno" ; then |
| 142 |
+ |
AM_CONDITIONAL(SETGIDBINS, false) |
| 143 |
+ |
fi |
| 144 |
+ |
] |
| 145 |
+ |
) |
| 146 |
+ |
|
| 147 |
+ |
# User specified pkgconfig dir |
| 148 |
+ |
AC_ARG_WITH([pkgconfig-dir], |
| 149 |
+ |
[ --with-pkgconfig-dir=PATH pkgconfig lib directory (PREFIX/lib/pkgconfig)], |
| 150 |
+ |
[ PKGCONFIG_DIR=$withval ], |
| 151 |
+ |
[ PKGCONFIG_DIR="\$(libdir)/pkgconfig" ] |
| 152 |
+ |
) |
| 153 |
+ |
AC_SUBST(PKGCONFIG_DIR) |
| 154 |
|
|
| 155 |
|
# The LIBS and CPPFLAGS that saidar needs |
| 156 |
|
AC_SUBST(SAIDARLIBS) |