Last change
on this file was 745, checked in by Silvan Scherrer, 13 years ago |
Samba Server: updated trunk to 3.6.0
|
File size:
1.3 KB
|
Line | |
---|
1 | AC_ARG_WITH(included-iniparser,
|
---|
2 | [AS_HELP_STRING([--with-included-iniparser], [use bundled iniparser library, not from system])],
|
---|
3 | [
|
---|
4 | case "$withval" in
|
---|
5 | yes)
|
---|
6 | INCLUDED_INIPARSER=yes
|
---|
7 | ;;
|
---|
8 | no)
|
---|
9 | INCLUDED_INIPARSER=no
|
---|
10 | ;;
|
---|
11 | esac ],
|
---|
12 | )
|
---|
13 | if test x"$INCLUDED_INIPARSER" != x"yes"; then
|
---|
14 | AC_CHECK_LIB_EXT(iniparser, LIBINIPARSER_LIBS, iniparser_load)
|
---|
15 |
|
---|
16 | fi
|
---|
17 |
|
---|
18 | AC_MSG_CHECKING(whether to use included iniparser)
|
---|
19 | if test x"$ac_cv_lib_ext_iniparser" != x"yes"; then
|
---|
20 |
|
---|
21 | iniparserpaths="../iniparser ../lib/iniparser"
|
---|
22 | for d in $iniparserpaths; do
|
---|
23 | if test -f "$srcdir/$d/src/iniparser.c"; then
|
---|
24 | iniparserdir="$d"
|
---|
25 | break;
|
---|
26 | fi
|
---|
27 | done
|
---|
28 | if test x"$iniparserdir" = "x"; then
|
---|
29 | AC_MSG_ERROR([cannot find iniparser source in $iniparserpaths])
|
---|
30 | fi
|
---|
31 | INIPARSER_CFLAGS="-I$srcdir/$iniparserdir/src"
|
---|
32 | AC_MSG_RESULT(yes)
|
---|
33 |
|
---|
34 | INIPARSER_OBJS=""
|
---|
35 | INIPARSER_OBJS="$INIPARSER_OBJS $srcdir/$iniparserdir/../iniparser_build/iniparser.o"
|
---|
36 | INIPARSER_OBJS="$INIPARSER_OBJS $srcdir/$iniparserdir/../iniparser_build/dictionary.o"
|
---|
37 | INIPARSER_OBJS="$INIPARSER_OBJS $srcdir/$iniparserdir/../iniparser_build/strlib.o"
|
---|
38 |
|
---|
39 | SMB_SUBSYSTEM(LIBINIPARSER,[$INIPARSER_OBJS],[],[$INIPARSER_CFLAGS])
|
---|
40 | else
|
---|
41 | AC_MSG_RESULT(no)
|
---|
42 | SMB_EXT_LIB(LIBINIPARSER,,,,${LIBINIPARSER_LIBS})
|
---|
43 | SMB_ENABLE(LIBINIPARSER,YES)
|
---|
44 | fi
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.