blob: 420c58385dfe23b1e88fea08d16d16b2122d0cce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# -*- tab-width: 4; -*-
# Configure paths for SVRCORE
# Public domain - Nathan Kinder <nkinder@redhat.com> 2006-06-26
AC_MSG_CHECKING(for --with-svrcore)
AC_ARG_WITH(svrcore,
[[ --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore]],
dnl = Look in the standard system locations
[
if test "$withval" = "yes"; then
AC_MSG_RESULT(yes)
dnl = Check for svrcore.h in the normal locations
if test -f /usr/include/svrcore.h; then
svrcore_inc="-I/usr/include"
else
AC_MSG_ERROR(svrcore.h not found)
fi
dnl = Check the user provided location
elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
AC_MSG_RESULT([using $withval])
if test -f "$withval/include/svrcore.h"; then
svrcore_inc="-I$withval/include"
else
AC_MSG_ERROR(svrcore.h not found)
fi
svrcore_lib="-L$withval/lib"
else
AC_MSG_RESULT(yes)
AC_MSG_ERROR([svrcore not found in $withval])
fi
],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-svrcore-inc)
AC_ARG_WITH(svrcore-inc,
[[ --with-svrcore-inc=PATH SVRCORE include file directory]],
[
if test -f "$withval"/svrcore.h; then
AC_MSG_RESULT([using $withval])
svrcore_inc="-I$withval"
else
echo
AC_MSG_ERROR([$withval/svrcore.h not found])
fi
],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-svrcore-lib)
AC_ARG_WITH(svrcore-lib,
[[ --with-svrcore-lib=PATH SVRCORE library directory]],
[
if test -d "$withval"; then
AC_MSG_RESULT([using $withval])
svrcore_lib="-L$withval"
else
echo
AC_MSG_ERROR([$withval not found])
fi
],
AC_MSG_RESULT(no))
if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
AC_MSG_ERROR([svrcore not found, specify with --with-svrcore.])
fi
|