2 dnl Samba3 build environment path checks
4 dnl Copyright (C) Michael Adam 2008
6 dnl Released under the GNU General Public License
7 dnl http://www.gnu.org/licenses/
10 AC_LIBREPLACE_LOCATION_CHECKS
12 m4_include(../dynconfig/config.m4)
14 #################################################
15 # set prefix for 'make test'
16 selftest_prefix="./st"
17 AC_SUBST(selftest_prefix)
18 AC_ARG_WITH(selftest-prefix,
19 [AS_HELP_STRING([--with-selftest-prefix=DIR], [The prefix where make test will be run ($selftest_prefix)])],
22 AC_MSG_WARN([--with-selftest-prefix called without argument - will use default])
25 selftest_prefix="$withval"
30 ## check for --enable-debug first before checking CFLAGS before
31 ## so that we don't mix -O and -g
34 [AS_HELP_STRING([--enable-debug], [Turn on compiler debugging information (default=no)])],
35 [if eval "test x$enable_debug = xyes"; then
41 AC_ARG_ENABLE(developer, [AS_HELP_STRING([--enable-developer], [Turn on developer warnings and debugging (default=no)])],
42 [if eval "test x$enable_developer = xyes"; then
48 AC_ARG_ENABLE(krb5developer, [AS_HELP_STRING([--enable-krb5developer], [Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)])],
49 [if eval "test x$enable_krb5developer = xyes"; then
56 AC_ARG_ENABLE(picky-developer, [AS_HELP_STRING([--enable-picky-developer], [Halt compilation on warnings])],
57 [if eval "test x$enable_picky_developer = xyes"; then
64 [AS_HELP_STRING([--with-cfenc=HEADERDIR], [Use internal CoreFoundation encoding API for optimization (Mac OS X/Darwin only)])],
66 # May be in source $withval/CoreFoundation/StringEncodings.subproj.
67 # Should have been in framework $withval/CoreFoundation.framework/Headers.
69 $withval/CoreFoundation/StringEncodings.subproj \
70 $withval/StringEncodings.subproj \
71 $withval/CoreFoundation.framework/Headers \
75 if test -r $d/CFStringEncodingConverter.h; then
76 ln -sfh $d include/CoreFoundation