2038
2084
eval ac_res=\$$3
2039
2085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040
2086
$as_echo "$ac_res" >&6; }
2041
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2089
} # ac_fn_c_find_uintX_t
2091
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2092
# --------------------------------------------
2093
# Tries to find the compile-time value of EXPR in a program that includes
2094
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2096
ac_fn_c_compute_int ()
2098
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099
if test "$cross_compiling" = yes; then
2100
# Depending upon the size, compute the lo and hi bounds.
2101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102
/* end confdefs.h. */
2107
static int test_array [1 - 2 * !(($2) >= 0)];
2114
if ac_fn_c_try_compile "$LINENO"; then :
2117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118
/* end confdefs.h. */
2123
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130
if ac_fn_c_try_compile "$LINENO"; then :
2131
ac_hi=$ac_mid; break
2133
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2134
if test $ac_lo -le $ac_mid; then
2138
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144
/* end confdefs.h. */
2149
static int test_array [1 - 2 * !(($2) < 0)];
2156
if ac_fn_c_try_compile "$LINENO"; then :
2159
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160
/* end confdefs.h. */
2165
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172
if ac_fn_c_try_compile "$LINENO"; then :
2173
ac_lo=$ac_mid; break
2175
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2176
if test $ac_mid -le $ac_hi; then
2180
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190
# Binary search between lo and hi bounds.
2191
while test "x$ac_lo" != "x$ac_hi"; do
2192
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2193
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194
/* end confdefs.h. */
2199
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206
if ac_fn_c_try_compile "$LINENO"; then :
2209
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2218
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219
/* end confdefs.h. */
2221
static long int longval () { return $2; }
2222
static unsigned long int ulongval () { return $2; }
2229
FILE *f = fopen ("conftest.val", "w");
2234
long int i = longval ();
2237
fprintf (f, "%ld", i);
2241
unsigned long int i = ulongval ();
2244
fprintf (f, "%lu", i);
2246
/* Do not output a trailing newline, as this causes \r\n confusion
2247
on some platforms. */
2248
return ferror (f) || fclose (f) != 0;
2254
if ac_fn_c_try_run "$LINENO"; then :
2255
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2259
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2260
conftest.$ac_objext conftest.beam conftest.$ac_ext
2264
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
as_fn_set_status $ac_retval
2267
} # ac_fn_c_compute_int
2269
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2270
# ---------------------------------------------
2271
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2273
ac_fn_c_check_decl ()
2275
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276
as_decl_name=`echo $2|sed 's/ *(.*//'`
2277
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280
if eval \${$3+:} false; then :
2281
$as_echo_n "(cached) " >&6
2283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284
/* end confdefs.h. */
2289
#ifndef $as_decl_name
2291
(void) $as_decl_use;
2293
(void) $as_decl_name;
2301
if ac_fn_c_try_compile "$LINENO"; then :
2306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310
$as_echo "$ac_res" >&6; }
2311
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313
} # ac_fn_c_check_decl
2315
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2316
# ----------------------------------------------------
2317
# Tries to find if the field MEMBER exists in type AGGR, after including
2318
# INCLUDES, setting cache variable VAR accordingly.
2319
ac_fn_c_check_member ()
2321
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2323
$as_echo_n "checking for $2.$3... " >&6; }
2324
if eval \${$4+:} false; then :
2325
$as_echo_n "(cached) " >&6
2327
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328
/* end confdefs.h. */
2340
if ac_fn_c_try_compile "$LINENO"; then :
2343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344
/* end confdefs.h. */
2350
if (sizeof ac_aggr.$3)
2356
if ac_fn_c_try_compile "$LINENO"; then :
2361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367
$as_echo "$ac_res" >&6; }
2368
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370
} # ac_fn_c_check_member
2044
2371
cat >config.log <<_ACEOF
2045
2372
This file contains any messages produced by compilers while
2046
2373
running configure, to aid debugging if configure makes a mistake.
2048
It was created by nss-pam-ldapd $as_me 0.7.13, which was
2049
generated by GNU Autoconf 2.67. Invocation command line was
2375
It was created by nss-pam-ldapd $as_me 0.8.4, which was
2376
generated by GNU Autoconf 2.68. Invocation command line was
6099
# The cast to long int works around a bug in the HP C Compiler
6100
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102
# This bug is HP SR number 8606223364.
6103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
6104
$as_echo_n "checking size of unsigned int... " >&6; }
6105
if ${ac_cv_sizeof_unsigned_int+:} false; then :
6106
$as_echo_n "(cached) " >&6
6108
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
6111
if test "$ac_cv_type_unsigned_int" = yes; then
6112
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114
as_fn_error 77 "cannot compute sizeof (unsigned int)
6115
See \`config.log' for more details" "$LINENO" 5; }
6117
ac_cv_sizeof_unsigned_int=0
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
6123
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
6127
cat >>confdefs.h <<_ACEOF
6128
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
6132
# The cast to long int works around a bug in the HP C Compiler
6133
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135
# This bug is HP SR number 8606223364.
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
6137
$as_echo_n "checking size of unsigned long int... " >&6; }
6138
if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
6139
$as_echo_n "(cached) " >&6
6141
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
6144
if test "$ac_cv_type_unsigned_long_int" = yes; then
6145
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147
as_fn_error 77 "cannot compute sizeof (unsigned long int)
6148
See \`config.log' for more details" "$LINENO" 5; }
6150
ac_cv_sizeof_unsigned_long_int=0
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
6156
$as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
6160
cat >>confdefs.h <<_ACEOF
6161
#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
6165
# The cast to long int works around a bug in the HP C Compiler
6166
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6167
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6168
# This bug is HP SR number 8606223364.
6169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
6170
$as_echo_n "checking size of unsigned long long int... " >&6; }
6171
if ${ac_cv_sizeof_unsigned_long_long_int+:} false; then :
6172
$as_echo_n "(cached) " >&6
6174
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int" "$ac_includes_default"; then :
6177
if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6178
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6179
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6180
as_fn_error 77 "cannot compute sizeof (unsigned long long int)
6181
See \`config.log' for more details" "$LINENO" 5; }
6183
ac_cv_sizeof_unsigned_long_long_int=0
6188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
6189
$as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
6193
cat >>confdefs.h <<_ACEOF
6194
#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
6198
# The cast to long int works around a bug in the HP C Compiler
6199
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6200
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6201
# This bug is HP SR number 8606223364.
6202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
6203
$as_echo_n "checking size of uid_t... " >&6; }
6204
if ${ac_cv_sizeof_uid_t+:} false; then :
6205
$as_echo_n "(cached) " >&6
6207
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t" "$ac_includes_default"; then :
6210
if test "$ac_cv_type_uid_t" = yes; then
6211
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6212
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6213
as_fn_error 77 "cannot compute sizeof (uid_t)
6214
See \`config.log' for more details" "$LINENO" 5; }
6216
ac_cv_sizeof_uid_t=0
6221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
6222
$as_echo "$ac_cv_sizeof_uid_t" >&6; }
6226
cat >>confdefs.h <<_ACEOF
6227
#define SIZEOF_UID_T $ac_cv_sizeof_uid_t
6231
# The cast to long int works around a bug in the HP C Compiler
6232
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6233
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6234
# This bug is HP SR number 8606223364.
6235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5
6236
$as_echo_n "checking size of gid_t... " >&6; }
6237
if ${ac_cv_sizeof_gid_t+:} false; then :
6238
$as_echo_n "(cached) " >&6
6240
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t" "$ac_includes_default"; then :
6243
if test "$ac_cv_type_gid_t" = yes; then
6244
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6245
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6246
as_fn_error 77 "cannot compute sizeof (gid_t)
6247
See \`config.log' for more details" "$LINENO" 5; }
6249
ac_cv_sizeof_gid_t=0
6254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
6255
$as_echo "$ac_cv_sizeof_gid_t" >&6; }
6259
cat >>confdefs.h <<_ACEOF
6260
#define SIZEOF_GID_T $ac_cv_sizeof_gid_t
5640
6265
# check for support for the __thread keyword
5641
6266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports '__thread'" >&5
5642
6267
$as_echo_n "checking whether $CC supports '__thread'... " >&6; }
5643
if test "${mn_cv_c___thread_supported+set}" = set; then :
6268
if ${mn_cv_c___thread_supported+:} false; then :
5644
6269
$as_echo_n "(cached) " >&6
5646
6271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474
ac_fn_c_check_type "$LINENO" "nss_backend_t" "ac_cv_type_nss_backend_t" "
6478
#ifdef HAVE_NSS_COMMON_H
6479
#include <nss_common.h>
6481
#ifdef HAVE_NSS_DBDEFS_H
6482
#include <nss_dbdefs.h>
6484
#ifdef HAVE_NSSWITCH_H
6485
#include <nsswitch.h>
6487
#ifdef HAVE_IRS_NSS_H
6488
#include \"irs-nss.h\"
6491
if test "x$ac_cv_type_nss_backend_t" = xyes; then :
6493
cat >>confdefs.h <<_ACEOF
6494
#define HAVE_NSS_BACKEND_T 1
6501
# check if struct nss_XbyY_args has a returnlen attribute
6502
ac_fn_c_check_member "$LINENO" "struct nss_XbyY_args" "returnlen" "ac_cv_member_struct_nss_XbyY_args_returnlen" "
6506
#ifdef HAVE_NSS_COMMON_H
6507
#include <nss_common.h>
6509
#ifdef HAVE_NSS_DBDEFS_H
6510
#include <nss_dbdefs.h>
6512
#ifdef HAVE_NSSWITCH_H
6513
#include <nsswitch.h>
6515
#ifdef HAVE_IRS_NSS_H
6516
#include \"irs-nss.h\"
6519
if test "x$ac_cv_member_struct_nss_XbyY_args_returnlen" = xyes; then :
6521
cat >>confdefs.h <<_ACEOF
6522
#define HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN 1
6529
# check which NSS flavour to build
6530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which NSS flavour to build" >&5
6531
$as_echo_n "checking which NSS flavour to build... " >&6; }
6533
# Check whether --with-nss-flavour was given.
6534
if test "${with_nss_flavour+set}" = set; then :
6535
withval=$with_nss_flavour;
6537
with_nss_flavour=auto
6540
if test "x$with_nss_flavour" = "xauto"
6542
# do the guessing game
6543
case "$target_os" in
6544
solaris*) with_nss_flavour=solaris ;;
6545
freebsd*) with_nss_flavour=freebsd ;;
6546
*) with_nss_flavour=glibc ;;
6549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_flavour" >&5
6550
$as_echo "$with_nss_flavour" >&6; }
6551
case "$with_nss_flavour" in
6553
$as_echo "#define NSS_FLAVOUR_GLIBC 1" >>confdefs.h
6556
$as_echo "#define NSS_FLAVOUR_SOLARIS 1" >>confdefs.h
6559
$as_echo "#define NSS_FLAVOUR_FREEBSD 1" >>confdefs.h
6563
# check which module source files to use
6564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which NSS maps to build" >&5
6565
$as_echo_n "checking which NSS maps to build... " >&6; }
6566
if test "x$with_nss_maps" = "xall"
6568
case "$with_nss_flavour" in
6569
glibc) with_nss_maps="aliases,ethers,group,hosts,netgroup,networks,passwd,protocols,rpc,services,shadow" ;;
6570
solaris) with_nss_maps="ethers,group,hosts,netgroup,networks,passwd,protocols,rpc,services,shadow" ;;
6571
freebsd) with_nss_maps="group,hosts,passwd" ;;
6574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_maps" >&5
6575
$as_echo "$with_nss_maps" >&6; }
6576
NSS_MODULE_OBJS="$(echo "$with_nss_maps " | sed 's/,/ /g;s/ */.$(OBJEXT) /g')"
6579
# find out how to link the library
6580
nss_ldap_so_LINK="\$(CCLD) \$(AM_CFLAGS) \$(CFLAGS) \$(nss_ldap_so_LDFLAGS) \$(LDFLAGS) -o \$@"
6581
case "$target_os" in
6583
if test "x$GCC" = xyes
6585
nss_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M \$(srcdir)/exports.solaris -G -o \$@"
6587
nss_ldap_so_LDFLAGS="-Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,\$(srcdir)/exports.solaris -Wl,-G"
6591
nss_ldap_so_LDFLAGS="-shared -Wl,-h,\$(NSS_LDAP_SONAME) -Wl,--version-script,\$(srcdir)/exports.$with_nss_flavour"
5816
6597
# restore CFLAGS and LIBS
6984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
6985
$as_echo_n "checking for library containing hstrerror... " >&6; }
6986
if ${ac_cv_search_hstrerror+:} false; then :
6987
$as_echo_n "(cached) " >&6
6989
ac_func_search_save_LIBS=$LIBS
6990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991
/* end confdefs.h. */
6993
/* Override any GCC internal prototype to avoid an error.
6994
Use char because int might match the return type of a GCC
6995
builtin and then its argument prototype would still apply. */
7003
return hstrerror ();
7008
for ac_lib in '' resolv; do
7009
if test -z "$ac_lib"; then
7010
ac_res="none required"
7013
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7015
if ac_fn_c_try_link "$LINENO"; then :
7016
ac_cv_search_hstrerror=$ac_res
7018
rm -f core conftest.err conftest.$ac_objext \
7020
if ${ac_cv_search_hstrerror+:} false; then :
7024
if ${ac_cv_search_hstrerror+:} false; then :
7027
ac_cv_search_hstrerror=no
7030
LIBS=$ac_func_search_save_LIBS
7032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7033
$as_echo "$ac_cv_search_hstrerror" >&6; }
7034
ac_res=$ac_cv_search_hstrerror
7035
if test "$ac_res" != no; then :
7036
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6173
7040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6174
7041
$as_echo_n "checking for library containing socket... " >&6; }
6175
if test "${ac_cv_search_socket+set}" = set; then :
7042
if ${ac_cv_search_socket+:} false; then :
6176
7043
$as_echo_n "(cached) " >&6
6178
7045
ac_func_search_save_LIBS=$LIBS
6777
7673
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7677
$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7678
if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
7679
$as_echo_n "(cached) " >&6
7682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683
/* end confdefs.h. */
7685
#include <pthread.h>
7689
int i = PTHREAD_PRIO_INHERIT;
7694
if ac_fn_c_try_link "$LINENO"; then :
7695
ax_cv_PTHREAD_PRIO_INHERIT=yes
7697
ax_cv_PTHREAD_PRIO_INHERIT=no
7699
rm -f core conftest.err conftest.$ac_objext \
7700
conftest$ac_exeext conftest.$ac_ext
7703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7704
$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7705
if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
7707
$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6780
7711
LIBS="$save_LIBS"
6781
7712
CFLAGS="$save_CFLAGS"
6783
7714
# More AIX lossage: must compile with xlc_r or cc_r
6784
if test x"$GCC" != xyes; then
7715
if test x"$GCC" != xyes; then
6785
7716
for ac_prog in xlc_r cc_r
6787
7718
# Extract the first word of "$ac_prog", so it can be a program name with args.
6788
7719
set dummy $ac_prog; ac_word=$2
6789
7720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790
7721
$as_echo_n "checking for $ac_word... " >&6; }
6791
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
7722
if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6792
7723
$as_echo_n "(cached) " >&6
6794
7725
if test -n "$PTHREAD_CC"; then
7277
8224
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7279
8226
if ac_fn_c_try_link "$LINENO"; then :
7280
ac_cv_search_sasl_client_init=$ac_res
8227
ac_cv_search_ldap_sasl_interactive_bind_s=$ac_res
7282
8229
rm -f core conftest.err conftest.$ac_objext \
7283
8230
conftest$ac_exeext
7284
if test "${ac_cv_search_sasl_client_init+set}" = set; then :
8231
if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
7288
if test "${ac_cv_search_sasl_client_init+set}" = set; then :
8235
if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
7291
ac_cv_search_sasl_client_init=no
8238
ac_cv_search_ldap_sasl_interactive_bind_s=no
7293
8240
rm conftest.$ac_ext
7294
8241
LIBS=$ac_func_search_save_LIBS
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sasl_client_init" >&5
7297
$as_echo "$ac_cv_search_sasl_client_init" >&6; }
7298
ac_res=$ac_cv_search_sasl_client_init
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_sasl_interactive_bind_s" >&5
8244
$as_echo "$ac_cv_search_ldap_sasl_interactive_bind_s" >&6; }
8245
ac_res=$ac_cv_search_ldap_sasl_interactive_bind_s
7299
8246
if test "$ac_res" != no; then :
7300
8247
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7304
for ac_func in sasl_auxprop_request ldap_sasl_interactive_bind_s
8251
for ac_func in ldap_sasl_interactive_bind_s
7306
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7308
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8253
ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
8254
if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
7309
8255
cat >>confdefs.h <<_ACEOF
7310
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8256
#define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_gss_bind" >&5
7378
$as_echo_n "checking for library containing ldap_gss_bind... " >&6; }
7379
if test "${ac_cv_search_ldap_gss_bind+set}" = set; then :
7380
$as_echo_n "(cached) " >&6
7382
ac_func_search_save_LIBS=$LIBS
7383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384
/* end confdefs.h. */
7386
/* Override any GCC internal prototype to avoid an error.
7387
Use char because int might match the return type of a GCC
7388
builtin and then its argument prototype would still apply. */
7392
char ldap_gss_bind ();
7396
return ldap_gss_bind ();
7401
for ac_lib in '' gssldap; do
7402
if test -z "$ac_lib"; then
7403
ac_res="none required"
7406
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7408
if ac_fn_c_try_link "$LINENO"; then :
7409
ac_cv_search_ldap_gss_bind=$ac_res
7411
rm -f core conftest.err conftest.$ac_objext \
7413
if test "${ac_cv_search_ldap_gss_bind+set}" = set; then :
7417
if test "${ac_cv_search_ldap_gss_bind+set}" = set; then :
7420
ac_cv_search_ldap_gss_bind=no
7423
LIBS=$ac_func_search_save_LIBS
7425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_gss_bind" >&5
7426
$as_echo "$ac_cv_search_ldap_gss_bind" >&6; }
7427
ac_res=$ac_cv_search_ldap_gss_bind
7428
if test "$ac_res" != no; then :
7429
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7433
8323
for ac_func in gss_krb5_ccache_name
7435
8325
ac_fn_c_check_func "$LINENO" "gss_krb5_ccache_name" "ac_cv_func_gss_krb5_ccache_name"
7436
if test "x$ac_cv_func_gss_krb5_ccache_name" = x""yes; then :
8326
if test "x$ac_cv_func_gss_krb5_ccache_name" = xyes; then :
7437
8327
cat >>confdefs.h <<_ACEOF
7438
8328
#define HAVE_GSS_KRB5_CCACHE_NAME 1
8601
# pynslcd daemon-specific tests
8602
if test "x$enable_pynslcd" = "xyes"
8604
# check Python interpreter
8609
if test -n "$PYTHON"; then
8610
# If the user set $PYTHON, use it and don't search something else.
8611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
8612
$as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
8614
# split strings by '.' and convert to numeric. Append some zeros
8615
# because we need at least 4 digits for the hex conversion.
8616
# map returns an iterator in Python 3.0 and a list in 2.x
8617
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
8619
# xrange is not present in Python 3.0 and range returns an iterator
8620
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8621
sys.exit(sys.hexversion < minverhex)"
8622
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8623
($PYTHON -c "$prog") >&5 2>&5
8625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626
(exit $ac_status); }; then :
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8628
$as_echo "yes" >&6; }
8630
as_fn_error $? "too old" "$LINENO" 5
8632
am_display_PYTHON=$PYTHON
8634
# Otherwise, try each interpreter until we find one that satisfies
8636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
8637
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
8638
if ${am_cv_pathless_PYTHON+:} false; then :
8639
$as_echo_n "(cached) " >&6
8642
for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
8643
test "$am_cv_pathless_PYTHON" = none && break
8645
# split strings by '.' and convert to numeric. Append some zeros
8646
# because we need at least 4 digits for the hex conversion.
8647
# map returns an iterator in Python 3.0 and a list in 2.x
8648
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
8650
# xrange is not present in Python 3.0 and range returns an iterator
8651
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8652
sys.exit(sys.hexversion < minverhex)"
8653
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8654
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657
(exit $ac_status); }; then :
8662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8663
$as_echo "$am_cv_pathless_PYTHON" >&6; }
8664
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8665
if test "$am_cv_pathless_PYTHON" = none; then
8668
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8669
set dummy $am_cv_pathless_PYTHON; ac_word=$2
8670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671
$as_echo_n "checking for $ac_word... " >&6; }
8672
if ${ac_cv_path_PYTHON+:} false; then :
8673
$as_echo_n "(cached) " >&6
8677
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684
test -z "$as_dir" && as_dir=.
8685
for ac_exec_ext in '' $ac_executable_extensions; do
8686
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8688
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698
PYTHON=$ac_cv_path_PYTHON
8699
if test -n "$PYTHON"; then
8700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8701
$as_echo "$PYTHON" >&6; }
8703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704
$as_echo "no" >&6; }
8709
am_display_PYTHON=$am_cv_pathless_PYTHON
8713
if test "$PYTHON" = :; then
8714
as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
8718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
8719
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
8720
if ${am_cv_python_version+:} false; then :
8721
$as_echo_n "(cached) " >&6
8723
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
8725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
8726
$as_echo "$am_cv_python_version" >&6; }
8727
PYTHON_VERSION=$am_cv_python_version
8731
PYTHON_PREFIX='${prefix}'
8733
PYTHON_EXEC_PREFIX='${exec_prefix}'
8737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
8738
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
8739
if ${am_cv_python_platform+:} false; then :
8740
$as_echo_n "(cached) " >&6
8742
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
8744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
8745
$as_echo "$am_cv_python_platform" >&6; }
8746
PYTHON_PLATFORM=$am_cv_python_platform
8751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
8752
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
8753
if ${am_cv_python_pythondir+:} false; then :
8754
$as_echo_n "(cached) " >&6
8756
if test "x$prefix" = xNONE
8758
am_py_prefix=$ac_default_prefix
8760
am_py_prefix=$prefix
8762
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
8763
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
8764
case $am_cv_python_pythondir in
8766
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
8767
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
8770
case $am_py_prefix in
8773
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
8780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
8781
$as_echo "$am_cv_python_pythondir" >&6; }
8782
pythondir=$am_cv_python_pythondir
8786
pkgpythondir=\${pythondir}/$PACKAGE
8789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
8790
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
8791
if ${am_cv_python_pyexecdir+:} false; then :
8792
$as_echo_n "(cached) " >&6
8794
if test "x$exec_prefix" = xNONE
8796
am_py_exec_prefix=$am_py_prefix
8798
am_py_exec_prefix=$exec_prefix
8800
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
8801
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
8802
case $am_cv_python_pyexecdir in
8803
$am_py_exec_prefix*)
8804
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
8805
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
8808
case $am_py_exec_prefix in
8811
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
8818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
8819
$as_echo "$am_cv_python_pyexecdir" >&6; }
8820
pyexecdir=$am_cv_python_pyexecdir
8824
pkgpyexecdir=\${pyexecdir}/$PACKAGE
8833
if test "x${with_nss_flavour}" = xglibc; then
8834
NSS_FLAVOUR_GLIBC_TRUE=
8835
NSS_FLAVOUR_GLIBC_FALSE='#'
8837
NSS_FLAVOUR_GLIBC_TRUE='#'
8838
NSS_FLAVOUR_GLIBC_FALSE=
8841
if test "x${with_nss_flavour}" = xsolaris; then
8842
NSS_FLAVOUR_SOLARIS_TRUE=
8843
NSS_FLAVOUR_SOLARIS_FALSE='#'
8845
NSS_FLAVOUR_SOLARIS_TRUE='#'
8846
NSS_FLAVOUR_SOLARIS_FALSE=
8849
if test "x${with_nss_flavour}" = xfreebsd; then
8850
NSS_FLAVOUR_FREEBSD_TRUE=
8851
NSS_FLAVOUR_FREEBSD_FALSE='#'
8853
NSS_FLAVOUR_FREEBSD_TRUE='#'
8854
NSS_FLAVOUR_FREEBSD_FALSE=
7695
8858
# generate files
7696
ac_config_files="$ac_config_files Makefile compat/Makefile common/Makefile nss/Makefile pam/Makefile nslcd/Makefile man/Makefile tests/Makefile"
8859
ac_config_files="$ac_config_files Makefile compat/Makefile common/Makefile nss/Makefile pam/Makefile nslcd/Makefile pynslcd/Makefile pynslcd/config.py man/Makefile tests/Makefile"
7698
8861
cat >confcache <<\_ACEOF
7699
8862
# This file is a shell script that caches the results of configure