~ubuntu-branches/ubuntu/vivid/nss-pam-ldapd/vivid-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2014-06-08 14:00:00 UTC
  • mfrom: (16.1.8) (14.1.12 experimental)
  • Revision ID: package-import@ubuntu.com-20140608140000-rt6fspljmk9252zd
Tags: 0.9.4-1
* upload to unstable
* new upstream release:
  - also handle password policy information on BIND failure (this makes it
    possible to distinguish between a wrong password and an expired
    password)
  - fix mapping the member attribute to an empty string
  - any buffers that may have held passwords are cleared before the memory
    is released
  - increase buffer size for passwords to support extremely long passwords
    (thanks ushi)
  - increase buffer size for DN to support very long names or names with
    non-ASCII characters
  - log an error in almost all places where a defined buffer is not large
    enough to hold the provided data instead of just (sometimes silently)
    failing
  - logging improvements (start-up problems, login failures)
* add signature checking option to watch file
* add a debian/upstream/metadata file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.69 for nss-pam-ldapd 0.8.14.
 
3
# Generated by GNU Autoconf 2.69 for nss-pam-ldapd 0.9.4.
4
4
#
5
5
# Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
6
6
#
590
590
# Identity of this package.
591
591
PACKAGE_NAME='nss-pam-ldapd'
592
592
PACKAGE_TARNAME='nss-pam-ldapd'
593
 
PACKAGE_VERSION='0.8.14'
594
 
PACKAGE_STRING='nss-pam-ldapd 0.8.14'
 
593
PACKAGE_VERSION='0.9.4'
 
594
PACKAGE_STRING='nss-pam-ldapd 0.9.4'
595
595
PACKAGE_BUGREPORT='nss-pam-ldapd-users@lists.arthurdejong.org'
596
596
PACKAGE_URL='http://arthurdejong.org/nss-pam-ldapd/'
597
597
 
643
643
NSS_FLAVOUR_SOLARIS_TRUE
644
644
NSS_FLAVOUR_GLIBC_FALSE
645
645
NSS_FLAVOUR_GLIBC_TRUE
646
 
pkgpyexecdir
647
 
pyexecdir
648
 
pkgpythondir
649
 
pythondir
650
 
PYTHON_PLATFORM
651
 
PYTHON_EXEC_PREFIX
652
 
PYTHON_PREFIX
653
 
PYTHON_VERSION
654
 
PYTHON
655
646
nslcd_LIBS
656
647
PTHREAD_CFLAGS
657
648
PTHREAD_LIBS
674
665
ENABLE_PYNSLCD_TRUE
675
666
ENABLE_NSLCD_FALSE
676
667
ENABLE_NSLCD_TRUE
 
668
ENABLE_UTILS_FALSE
 
669
ENABLE_UTILS_TRUE
677
670
ENABLE_PAM_FALSE
678
671
ENABLE_PAM_TRUE
679
672
ENABLE_NSS_FALSE
681
674
MAINT
682
675
MAINTAINER_MODE_FALSE
683
676
MAINTAINER_MODE_TRUE
 
677
HAVE_PYTHON_FALSE
 
678
HAVE_PYTHON_TRUE
 
679
pkgpyexecdir
 
680
pyexecdir
 
681
pkgpythondir
 
682
pythondir
 
683
PYTHON_PLATFORM
 
684
PYTHON_EXEC_PREFIX
 
685
PYTHON_PREFIX
 
686
PYTHON_VERSION
 
687
PYTHON
 
688
INSTMAN_FALSE
 
689
INSTMAN_TRUE
684
690
GENMAN_FALSE
685
691
GENMAN_TRUE
686
692
DOCBOOK2X_MAN
796
802
enable_maintainer_mode
797
803
enable_nss
798
804
enable_pam
 
805
enable_utils
799
806
enable_nslcd
800
807
enable_pynslcd
801
808
enable_sasl
1362
1369
  # Omit some internal or obsolete options to make the list less imposing.
1363
1370
  # This message is too long to be a string in the A/UX 3.1 sh.
1364
1371
  cat <<_ACEOF
1365
 
\`configure' configures nss-pam-ldapd 0.8.14 to adapt to many kinds of systems.
 
1372
\`configure' configures nss-pam-ldapd 0.9.4 to adapt to many kinds of systems.
1366
1373
 
1367
1374
Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1375
 
1433
1440
 
1434
1441
if test -n "$ac_init_help"; then
1435
1442
  case $ac_init_help in
1436
 
     short | recursive ) echo "Configuration of nss-pam-ldapd 0.8.14:";;
 
1443
     short | recursive ) echo "Configuration of nss-pam-ldapd 0.9.4:";;
1437
1444
   esac
1438
1445
  cat <<\_ACEOF
1439
1446
 
1452
1459
  --disable-maintainer-mode
1453
1460
                          disable make rules and dependencies not useful (and
1454
1461
                          sometimes confusing) to the casual installer
1455
 
  --disable-nss           build the NSS module [[default=enabled]]
1456
 
  --disable-pam           build the PAM module [[default=enabled]]
1457
 
  --disable-nslcd         build the nslcd daemon [[default=enabled]]
1458
 
  --enable-pynslcd        build the pynslcd daemon [[default=disabled]]
1459
 
  --disable-sasl          disable SASL support [[default=enabled]]
1460
 
  --disable-kerberos      disable Kerberos support [[default=enabled]]
 
1462
  --disable-nss           build the NSS module [enabled]
 
1463
  --disable-pam           build the PAM module [enabled]
 
1464
  --disable-utils         build the the command-line utilities [auto]
 
1465
  --disable-nslcd         build the nslcd daemon [enabled]
 
1466
  --enable-pynslcd        build the pynslcd daemon [disabled]
 
1467
  --disable-sasl          disable SASL support [enabled]
 
1468
  --disable-kerberos      disable Kerberos support [enabled]
1461
1469
  --disable-configfile-checking
1462
 
                          check configfile options [[default=enabled]]
 
1470
                          check configfile options [enabled]
1463
1471
 
1464
1472
Optional Packages:
1465
1473
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563
1571
test -n "$ac_init_help" && exit $ac_status
1564
1572
if $ac_init_version; then
1565
1573
  cat <<\_ACEOF
1566
 
nss-pam-ldapd configure 0.8.14
 
1574
nss-pam-ldapd configure 0.9.4
1567
1575
generated by GNU Autoconf 2.69
1568
1576
 
1569
1577
Copyright (C) 2012 Free Software Foundation, Inc.
1993
2001
 
1994
2002
} # ac_fn_c_check_type
1995
2003
 
 
2004
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
2005
# ---------------------------------------------
 
2006
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
2007
# accordingly.
 
2008
ac_fn_c_check_decl ()
 
2009
{
 
2010
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2011
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
2012
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
2013
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
2014
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
2015
if eval \${$3+:} false; then :
 
2016
  $as_echo_n "(cached) " >&6
 
2017
else
 
2018
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2019
/* end confdefs.h.  */
 
2020
$4
 
2021
int
 
2022
main ()
 
2023
{
 
2024
#ifndef $as_decl_name
 
2025
#ifdef __cplusplus
 
2026
  (void) $as_decl_use;
 
2027
#else
 
2028
  (void) $as_decl_name;
 
2029
#endif
 
2030
#endif
 
2031
 
 
2032
  ;
 
2033
  return 0;
 
2034
}
 
2035
_ACEOF
 
2036
if ac_fn_c_try_compile "$LINENO"; then :
 
2037
  eval "$3=yes"
 
2038
else
 
2039
  eval "$3=no"
 
2040
fi
 
2041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2042
fi
 
2043
eval ac_res=\$$3
 
2044
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2045
$as_echo "$ac_res" >&6; }
 
2046
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2047
 
 
2048
} # ac_fn_c_check_decl
 
2049
 
1996
2050
# ac_fn_c_find_intX_t LINENO BITS VAR
1997
2051
# -----------------------------------
1998
2052
# Finds a signed integer type with width BITS, setting cache variable VAR
2306
2360
 
2307
2361
} # ac_fn_c_compute_int
2308
2362
 
2309
 
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2310
 
# ---------------------------------------------
2311
 
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2312
 
# accordingly.
2313
 
ac_fn_c_check_decl ()
2314
 
{
2315
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316
 
  as_decl_name=`echo $2|sed 's/ *(.*//'`
2317
 
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2318
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2319
 
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2320
 
if eval \${$3+:} false; then :
2321
 
  $as_echo_n "(cached) " >&6
2322
 
else
2323
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324
 
/* end confdefs.h.  */
2325
 
$4
2326
 
int
2327
 
main ()
2328
 
{
2329
 
#ifndef $as_decl_name
2330
 
#ifdef __cplusplus
2331
 
  (void) $as_decl_use;
2332
 
#else
2333
 
  (void) $as_decl_name;
2334
 
#endif
2335
 
#endif
2336
 
 
2337
 
  ;
2338
 
  return 0;
2339
 
}
2340
 
_ACEOF
2341
 
if ac_fn_c_try_compile "$LINENO"; then :
2342
 
  eval "$3=yes"
2343
 
else
2344
 
  eval "$3=no"
2345
 
fi
2346
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347
 
fi
2348
 
eval ac_res=\$$3
2349
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350
 
$as_echo "$ac_res" >&6; }
2351
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
 
 
2353
 
} # ac_fn_c_check_decl
2354
 
 
2355
2363
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2356
2364
# ----------------------------------------------------
2357
2365
# Tries to find if the field MEMBER exists in type AGGR, after including
2412
2420
This file contains any messages produced by compilers while
2413
2421
running configure, to aid debugging if configure makes a mistake.
2414
2422
 
2415
 
It was created by nss-pam-ldapd $as_me 0.8.14, which was
 
2423
It was created by nss-pam-ldapd $as_me 0.9.4, which was
2416
2424
generated by GNU Autoconf 2.69.  Invocation command line was
2417
2425
 
2418
2426
  $ $0 $@
2760
2768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2769
 
2762
2770
 
2763
 
RELEASE_MONTH="Mar 2014"
 
2771
RELEASE_MONTH="Jun 2014"
2764
2772
 
2765
2773
 
2766
2774
 
2909
2917
 
2910
2918
 
2911
2919
# display notice and initialize automake
2912
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.8.14" >&5
2913
 
$as_echo "$as_me: configuring nss-pam-ldapd 0.8.14" >&6;}
 
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.9.4" >&5
 
2921
$as_echo "$as_me: configuring nss-pam-ldapd 0.9.4" >&6;}
2914
2922
am__api_version='1.14'
2915
2923
 
2916
2924
# Find a good install program.  We prefer a C program (faster),
3397
3405
 
3398
3406
# Define the identity of the package.
3399
3407
 PACKAGE='nss-pam-ldapd'
3400
 
 VERSION='0.8.14'
 
3408
 VERSION='0.9.4'
3401
3409
 
3402
3410
 
3403
3411
cat >>confdefs.h <<_ACEOF
5272
5280
 
5273
5281
 
5274
5282
# checks for tool to convert docbook to man
 
5283
genman="no"
5275
5284
for ac_prog in docbook2x-man
5276
5285
do
5277
5286
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5317
5326
  test -n "$DOCBOOK2X_MAN" && break
5318
5327
done
5319
5328
 
5320
 
if test "x${DOCBOOK2X_MAN}" = x
 
5329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tool to (re)generate man pages" >&5
 
5330
$as_echo_n "checking for tool to (re)generate man pages... " >&6; }
 
5331
if test "x${DOCBOOK2X_MAN}" != x
5321
5332
then
5322
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: docbook2x-man not found: not generating man pages" >&5
5323
 
$as_echo "$as_me: WARNING: docbook2x-man not found: not generating man pages" >&2;}
 
5333
  genman="${DOCBOOK2X_MAN}"
5324
5334
fi
5325
 
 if test "x${DOCBOOK2X_MAN}" != x; then
 
5335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $genman" >&5
 
5336
$as_echo "$genman" >&6; }
 
5337
 if test "x${genman}" != "xno"; then
5326
5338
  GENMAN_TRUE=
5327
5339
  GENMAN_FALSE='#'
5328
5340
else
5330
5342
  GENMAN_FALSE=
5331
5343
fi
5332
5344
 
 
5345
if test "x${genman}" = "xno"
 
5346
then
 
5347
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: docbook2x-man not found: not (re)generating man pages" >&5
 
5348
$as_echo "$as_me: WARNING: docbook2x-man not found: not (re)generating man pages" >&2;}
 
5349
fi
 
5350
 
 
5351
# check whether to install manual pages
 
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install man pages" >&5
 
5353
$as_echo_n "checking whether to install man pages... " >&6; }
 
5354
instman="no"
 
5355
if test "x${genman}" != "xno" || ls  "${srcdir}/man/"*.? > /dev/null 2>&1
 
5356
then
 
5357
  instman="yes"
 
5358
fi
 
5359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $instman" >&5
 
5360
$as_echo "$instman" >&6; }
 
5361
 if test "x${instman}" != "xno"; then
 
5362
  INSTMAN_TRUE=
 
5363
  INSTMAN_FALSE='#'
 
5364
else
 
5365
  INSTMAN_TRUE='#'
 
5366
  INSTMAN_FALSE=
 
5367
fi
 
5368
 
 
5369
if test "x${instman}" = "xno"
 
5370
then
 
5371
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not installing man pages (no generator and not pre-generated)" >&5
 
5372
$as_echo "$as_me: WARNING: not installing man pages (no generator and not pre-generated)" >&2;}
 
5373
fi
 
5374
 
 
5375
# check for Python and modules
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
 
 
5381
 
 
5382
        if test -n "$PYTHON"; then
 
5383
      # If the user set $PYTHON, use it and don't search something else.
 
5384
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
 
5385
$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
 
5386
      prog="import sys
 
5387
# split strings by '.' and convert to numeric.  Append some zeros
 
5388
# because we need at least 4 digits for the hex conversion.
 
5389
# map returns an iterator in Python 3.0 and a list in 2.x
 
5390
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
 
5391
minverhex = 0
 
5392
# xrange is not present in Python 3.0 and range returns an iterator
 
5393
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
5394
sys.exit(sys.hexversion < minverhex)"
 
5395
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
5396
   ($PYTHON -c "$prog") >&5 2>&5
 
5397
   ac_status=$?
 
5398
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5399
   (exit $ac_status); }; then :
 
5400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5401
$as_echo "yes" >&6; }
 
5402
else
 
5403
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5404
$as_echo "no" >&6; }
 
5405
                               as_fn_error $? "Python interpreter is too old" "$LINENO" 5
 
5406
fi
 
5407
      am_display_PYTHON=$PYTHON
 
5408
    else
 
5409
      # Otherwise, try each interpreter until we find one that satisfies
 
5410
      # VERSION.
 
5411
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
 
5412
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
 
5413
if ${am_cv_pathless_PYTHON+:} false; then :
 
5414
  $as_echo_n "(cached) " >&6
 
5415
else
 
5416
 
 
5417
        for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
 
5418
          test "$am_cv_pathless_PYTHON" = none && break
 
5419
          prog="import sys
 
5420
# split strings by '.' and convert to numeric.  Append some zeros
 
5421
# because we need at least 4 digits for the hex conversion.
 
5422
# map returns an iterator in Python 3.0 and a list in 2.x
 
5423
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
 
5424
minverhex = 0
 
5425
# xrange is not present in Python 3.0 and range returns an iterator
 
5426
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
5427
sys.exit(sys.hexversion < minverhex)"
 
5428
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
5429
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
5430
   ac_status=$?
 
5431
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5432
   (exit $ac_status); }; then :
 
5433
  break
 
5434
fi
 
5435
        done
 
5436
fi
 
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
 
5438
$as_echo "$am_cv_pathless_PYTHON" >&6; }
 
5439
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
5440
      if test "$am_cv_pathless_PYTHON" = none; then
 
5441
        PYTHON=:
 
5442
      else
 
5443
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
5444
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
5445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5446
$as_echo_n "checking for $ac_word... " >&6; }
 
5447
if ${ac_cv_path_PYTHON+:} false; then :
 
5448
  $as_echo_n "(cached) " >&6
 
5449
else
 
5450
  case $PYTHON in
 
5451
  [\\/]* | ?:[\\/]*)
 
5452
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
5453
  ;;
 
5454
  *)
 
5455
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5456
for as_dir in $PATH
 
5457
do
 
5458
  IFS=$as_save_IFS
 
5459
  test -z "$as_dir" && as_dir=.
 
5460
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5461
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5462
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
5463
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5464
    break 2
 
5465
  fi
 
5466
done
 
5467
  done
 
5468
IFS=$as_save_IFS
 
5469
 
 
5470
  ;;
 
5471
esac
 
5472
fi
 
5473
PYTHON=$ac_cv_path_PYTHON
 
5474
if test -n "$PYTHON"; then
 
5475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
5476
$as_echo "$PYTHON" >&6; }
 
5477
else
 
5478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5479
$as_echo "no" >&6; }
 
5480
fi
 
5481
 
 
5482
 
 
5483
      fi
 
5484
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
5485
    fi
 
5486
 
 
5487
 
 
5488
  if test "$PYTHON" = :; then
 
5489
      :
 
5490
  else
 
5491
 
 
5492
 
 
5493
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
 
5494
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
5495
if ${am_cv_python_version+:} false; then :
 
5496
  $as_echo_n "(cached) " >&6
 
5497
else
 
5498
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
5499
fi
 
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
 
5501
$as_echo "$am_cv_python_version" >&6; }
 
5502
  PYTHON_VERSION=$am_cv_python_version
 
5503
 
 
5504
 
 
5505
 
 
5506
  PYTHON_PREFIX='${prefix}'
 
5507
 
 
5508
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
5509
 
 
5510
 
 
5511
 
 
5512
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
 
5513
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
5514
if ${am_cv_python_platform+:} false; then :
 
5515
  $as_echo_n "(cached) " >&6
 
5516
else
 
5517
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
5518
fi
 
5519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
 
5520
$as_echo "$am_cv_python_platform" >&6; }
 
5521
  PYTHON_PLATFORM=$am_cv_python_platform
 
5522
 
 
5523
 
 
5524
  # Just factor out some code duplication.
 
5525
  am_python_setup_sysconfig="\
 
5526
import sys
 
5527
# Prefer sysconfig over distutils.sysconfig, for better compatibility
 
5528
# with python 3.x.  See automake bug#10227.
 
5529
try:
 
5530
    import sysconfig
 
5531
except ImportError:
 
5532
    can_use_sysconfig = 0
 
5533
else:
 
5534
    can_use_sysconfig = 1
 
5535
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
 
5536
# <https://github.com/pypa/virtualenv/issues/118>
 
5537
try:
 
5538
    from platform import python_implementation
 
5539
    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
 
5540
        can_use_sysconfig = 0
 
5541
except ImportError:
 
5542
    pass"
 
5543
 
 
5544
 
 
5545
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
 
5546
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
5547
if ${am_cv_python_pythondir+:} false; then :
 
5548
  $as_echo_n "(cached) " >&6
 
5549
else
 
5550
  if test "x$prefix" = xNONE
 
5551
     then
 
5552
       am_py_prefix=$ac_default_prefix
 
5553
     else
 
5554
       am_py_prefix=$prefix
 
5555
     fi
 
5556
     am_cv_python_pythondir=`$PYTHON -c "
 
5557
$am_python_setup_sysconfig
 
5558
if can_use_sysconfig:
 
5559
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
 
5560
else:
 
5561
    from distutils import sysconfig
 
5562
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
 
5563
sys.stdout.write(sitedir)"`
 
5564
     case $am_cv_python_pythondir in
 
5565
     $am_py_prefix*)
 
5566
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
5567
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
5568
       ;;
 
5569
     *)
 
5570
       case $am_py_prefix in
 
5571
         /usr|/System*) ;;
 
5572
         *)
 
5573
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
5574
          ;;
 
5575
       esac
 
5576
       ;;
 
5577
     esac
 
5578
 
 
5579
fi
 
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 
5581
$as_echo "$am_cv_python_pythondir" >&6; }
 
5582
  pythondir=$am_cv_python_pythondir
 
5583
 
 
5584
 
 
5585
 
 
5586
  pkgpythondir=\${pythondir}/$PACKAGE
 
5587
 
 
5588
 
 
5589
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
 
5590
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
5591
if ${am_cv_python_pyexecdir+:} false; then :
 
5592
  $as_echo_n "(cached) " >&6
 
5593
else
 
5594
  if test "x$exec_prefix" = xNONE
 
5595
     then
 
5596
       am_py_exec_prefix=$am_py_prefix
 
5597
     else
 
5598
       am_py_exec_prefix=$exec_prefix
 
5599
     fi
 
5600
     am_cv_python_pyexecdir=`$PYTHON -c "
 
5601
$am_python_setup_sysconfig
 
5602
if can_use_sysconfig:
 
5603
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
 
5604
else:
 
5605
    from distutils import sysconfig
 
5606
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
 
5607
sys.stdout.write(sitedir)"`
 
5608
     case $am_cv_python_pyexecdir in
 
5609
     $am_py_exec_prefix*)
 
5610
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
5611
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
5612
       ;;
 
5613
     *)
 
5614
       case $am_py_exec_prefix in
 
5615
         /usr|/System*) ;;
 
5616
         *)
 
5617
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
5618
           ;;
 
5619
       esac
 
5620
       ;;
 
5621
     esac
 
5622
 
 
5623
fi
 
5624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
 
5625
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
5626
  pyexecdir=$am_cv_python_pyexecdir
 
5627
 
 
5628
 
 
5629
 
 
5630
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
5631
 
 
5632
 
 
5633
 
 
5634
  fi
 
5635
 
 
5636
 
 
5637
 if test "$PYTHON" != ":"; then
 
5638
  HAVE_PYTHON_TRUE=
 
5639
  HAVE_PYTHON_FALSE='#'
 
5640
else
 
5641
  HAVE_PYTHON_TRUE='#'
 
5642
  HAVE_PYTHON_FALSE=
 
5643
fi
 
5644
 
 
5645
if test "x$PYTHON" != "x:"
 
5646
then
 
5647
 
 
5648
    if test -z $PYTHON;
 
5649
    then
 
5650
        PYTHON="python"
 
5651
    fi
 
5652
    PYTHON_NAME=`basename $PYTHON`
 
5653
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5
 
5654
$as_echo_n "checking $PYTHON_NAME module: argparse... " >&6; }
 
5655
        $PYTHON -c "import argparse" 2>/dev/null
 
5656
        if test $? -eq 0;
 
5657
        then
 
5658
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5659
$as_echo "yes" >&6; }
 
5660
                eval HAVE_PYMOD_ARGPARSE=yes
 
5661
        else
 
5662
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5663
$as_echo "no" >&6; }
 
5664
                eval HAVE_PYMOD_ARGPARSE=no
 
5665
                #
 
5666
                if test -n ""
 
5667
                then
 
5668
                        as_fn_error $? "failed to find required module argparse" "$LINENO" 5
 
5669
                        exit 1
 
5670
                fi
 
5671
        fi
 
5672
 
 
5673
fi
5333
5674
 
5334
5675
# check for debugging options
5335
5676
# Check whether --enable-debug was given.
5346
5687
  enableval=$enable_warnings; if test "x$enableval" != "no"
5347
5688
               then
5348
5689
                 CFLAGS="$CFLAGS -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations -Wunused -Wformat=2 -Wswitch-default -Wswitch-enum -Wfloat-equal -Wbad-function-cast -Wredundant-decls"
5349
 
                 DESIRED_CFLAGS="$DESIRED_CFLAGS -Wextra -Wdeclaration-after-statement -Werror-implicit-function-declaration"
 
5690
                 DESIRED_CFLAGS="$DESIRED_CFLAGS -Wextra -Wdeclaration-after-statement -Werror-implicit-function-declaration -Werror=implicit"
5350
5691
               fi
5351
5692
fi
5352
5693
 
5449
5790
fi
5450
5791
 
5451
5792
 
 
5793
# check whether command-line utilities should be built
 
5794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the command-line utilities" >&5
 
5795
$as_echo_n "checking whether to build the command-line utilities... " >&6; }
 
5796
# Check whether --enable-utils was given.
 
5797
if test "${enable_utils+set}" = set; then :
 
5798
  enableval=$enable_utils;
 
5799
else
 
5800
  enable_utils="auto"
 
5801
fi
 
5802
 
 
5803
if test "x$enable_utils" = "xauto"
 
5804
then
 
5805
  if test "x$PYTHON" != "x:" && test "$HAVE_PYMOD_ARGPARSE" = "yes"
 
5806
  then
 
5807
    enable_utils="yes"
 
5808
  else
 
5809
    enable_utils="no"
 
5810
  fi
 
5811
fi
 
5812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_utils" >&5
 
5813
$as_echo "$enable_utils" >&6; }
 
5814
 if test "x$enable_utils" = "xyes"; then
 
5815
  ENABLE_UTILS_TRUE=
 
5816
  ENABLE_UTILS_FALSE='#'
 
5817
else
 
5818
  ENABLE_UTILS_TRUE='#'
 
5819
  ENABLE_UTILS_FALSE=
 
5820
fi
 
5821
 
 
5822
 
5452
5823
# check whether the nslcd daemon should be built
5453
5824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the nslcd daemon" >&5
5454
5825
$as_echo_n "checking whether to build the nslcd daemon... " >&6; }
5537
5908
if test "x$configfile_checking" = "xyes"
5538
5909
then
5539
5910
 
5540
 
$as_echo "#define ENABLE_CONFIGFILE_CHECKING 1" >>confdefs.h
 
5911
$as_echo "#define ENABLE_CONFIGFILE_CHECKING 1 " >>confdefs.h
5541
5912
 
5542
5913
fi
5543
5914
 
5619
5990
then
5620
5991
  case "$target_os" in
5621
5992
    solaris*) PAM_SECLIB_DIR="/usr/lib/security" ;;
5622
 
    freebsd*) PAM_SECLIB_DIR="/usr/lib" ;;
 
5993
    freebsd*|dragonfly*) PAM_SECLIB_DIR="/usr/lib" ;;
5623
5994
    *)        PAM_SECLIB_DIR="/lib/security" ;;
5624
5995
  esac
5625
5996
fi
5647
6018
then
5648
6019
  case "$target_os" in
5649
6020
    solaris*) NSS_LDAP_SONAME="nss_ldap.so.1" ;;
5650
 
    freebsd*) NSS_LDAP_SONAME="nss_ldap.so.1" ;;
 
6021
    freebsd*|dragonfly*) NSS_LDAP_SONAME="nss_ldap.so.1" ;;
5651
6022
    *)        NSS_LDAP_SONAME="libnss_ldap.so.2" ;;
5652
6023
  esac
5653
6024
fi
6225
6596
fi
6226
6597
done
6227
6598
 
 
6599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
 
6600
$as_echo_n "checking for library containing clock_gettime... " >&6; }
 
6601
if ${ac_cv_search_clock_gettime+:} false; then :
 
6602
  $as_echo_n "(cached) " >&6
 
6603
else
 
6604
  ac_func_search_save_LIBS=$LIBS
 
6605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6606
/* end confdefs.h.  */
 
6607
 
 
6608
/* Override any GCC internal prototype to avoid an error.
 
6609
   Use char because int might match the return type of a GCC
 
6610
   builtin and then its argument prototype would still apply.  */
 
6611
#ifdef __cplusplus
 
6612
extern "C"
 
6613
#endif
 
6614
char clock_gettime ();
 
6615
int
 
6616
main ()
 
6617
{
 
6618
return clock_gettime ();
 
6619
  ;
 
6620
  return 0;
 
6621
}
 
6622
_ACEOF
 
6623
for ac_lib in '' rt; do
 
6624
  if test -z "$ac_lib"; then
 
6625
    ac_res="none required"
 
6626
  else
 
6627
    ac_res=-l$ac_lib
 
6628
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6629
  fi
 
6630
  if ac_fn_c_try_link "$LINENO"; then :
 
6631
  ac_cv_search_clock_gettime=$ac_res
 
6632
fi
 
6633
rm -f core conftest.err conftest.$ac_objext \
 
6634
    conftest$ac_exeext
 
6635
  if ${ac_cv_search_clock_gettime+:} false; then :
 
6636
  break
 
6637
fi
 
6638
done
 
6639
if ${ac_cv_search_clock_gettime+:} false; then :
 
6640
 
 
6641
else
 
6642
  ac_cv_search_clock_gettime=no
 
6643
fi
 
6644
rm conftest.$ac_ext
 
6645
LIBS=$ac_func_search_save_LIBS
 
6646
fi
 
6647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
 
6648
$as_echo "$ac_cv_search_clock_gettime" >&6; }
 
6649
ac_res=$ac_cv_search_clock_gettime
 
6650
if test "$ac_res" != no; then :
 
6651
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
6652
 
 
6653
fi
 
6654
 
 
6655
for ac_func in setusershell getusershell endusershell getgrouplist
 
6656
do :
 
6657
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6658
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6659
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
6660
  cat >>confdefs.h <<_ACEOF
 
6661
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6662
_ACEOF
 
6663
 
 
6664
fi
 
6665
done
 
6666
 
 
6667
ac_fn_c_check_decl "$LINENO" "setusershell" "ac_cv_have_decl_setusershell" "$ac_includes_default"
 
6668
if test "x$ac_cv_have_decl_setusershell" = xyes; then :
 
6669
  ac_have_decl=1
 
6670
else
 
6671
  ac_have_decl=0
 
6672
fi
 
6673
 
 
6674
cat >>confdefs.h <<_ACEOF
 
6675
#define HAVE_DECL_SETUSERSHELL $ac_have_decl
 
6676
_ACEOF
 
6677
ac_fn_c_check_decl "$LINENO" "getusershell" "ac_cv_have_decl_getusershell" "$ac_includes_default"
 
6678
if test "x$ac_cv_have_decl_getusershell" = xyes; then :
 
6679
  ac_have_decl=1
 
6680
else
 
6681
  ac_have_decl=0
 
6682
fi
 
6683
 
 
6684
cat >>confdefs.h <<_ACEOF
 
6685
#define HAVE_DECL_GETUSERSHELL $ac_have_decl
 
6686
_ACEOF
 
6687
ac_fn_c_check_decl "$LINENO" "endusershell" "ac_cv_have_decl_endusershell" "$ac_includes_default"
 
6688
if test "x$ac_cv_have_decl_endusershell" = xyes; then :
 
6689
  ac_have_decl=1
 
6690
else
 
6691
  ac_have_decl=0
 
6692
fi
 
6693
 
 
6694
cat >>confdefs.h <<_ACEOF
 
6695
#define HAVE_DECL_ENDUSERSHELL $ac_have_decl
 
6696
_ACEOF
 
6697
 
6228
6698
 
6229
6699
# checks for types
6230
6700
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6507
6977
 
6508
6978
 
6509
6979
 
6510
 
# check for support for the __thread keyword
6511
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports '__thread'" >&5
6512
 
$as_echo_n "checking whether $CC supports '__thread'... " >&6; }
6513
 
if ${mn_cv_c___thread_supported+:} false; then :
 
6980
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
 
6981
$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
 
6982
  if ${ac_cv_tls+:} false; then :
6514
6983
  $as_echo_n "(cached) " >&6
6515
6984
else
6516
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6985
 
 
6986
    ax_tls_keywords="__thread __declspec(thread) none"
 
6987
    for ax_tls_keyword in $ax_tls_keywords; do
 
6988
       case $ax_tls_keyword in #(
 
6989
  none) :
 
6990
    ac_cv_tls=none ; break ;; #(
 
6991
  *) :
 
6992
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517
6993
/* end confdefs.h.  */
6518
 
static __thread i;
 
6994
#include <stdlib.h>
 
6995
               static void
 
6996
               foo(void) {
 
6997
               static  $ax_tls_keyword  int bar;
 
6998
               exit(1);
 
6999
               }
6519
7000
int
6520
7001
main ()
6521
7002
{
6525
7006
}
6526
7007
_ACEOF
6527
7008
if ac_fn_c_try_compile "$LINENO"; then :
6528
 
  mn_cv_c___thread_supported=yes
 
7009
  ac_cv_tls=$ax_tls_keyword ; break
6529
7010
else
6530
 
  mn_cv_c___thread_supported=no
6531
 
fi
6532
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533
 
fi
6534
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mn_cv_c___thread_supported" >&5
6535
 
$as_echo "$mn_cv_c___thread_supported" >&6; }
6536
 
if test $mn_cv_c___thread_supported != yes
6537
 
then
6538
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $CC does not support '__thread' keyword" >&5
6539
 
$as_echo "$as_me: WARNING: $CC does not support '__thread' keyword" >&2;}
6540
 
 
6541
 
$as_echo "#define __thread /**/" >>confdefs.h
6542
 
 
6543
 
fi
 
7011
  ac_cv_tls=none
 
7012
 
 
7013
fi
 
7014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
 
7015
esac
 
7016
    done
 
7017
 
 
7018
fi
 
7019
 
 
7020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
 
7021
$as_echo "$ac_cv_tls" >&6; }
 
7022
 
 
7023
  if test "$ac_cv_tls" != "none"; then :
 
7024
 
 
7025
cat >>confdefs.h <<_ACEOF
 
7026
#define TLS $ac_cv_tls
 
7027
_ACEOF
 
7028
 
 
7029
 
 
7030
fi
 
7031
 
6544
7032
 
6545
7033
# check for support for the struct ether_addr structure
6546
7034
ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
6630
7118
fi
6631
7119
 
6632
7120
 
 
7121
# check the return type of setnetgrent()
 
7122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of setnetgrent" >&5
 
7123
$as_echo_n "checking return type of setnetgrent... " >&6; }
 
7124
if ${nss_pam_ldapd_cv_setnetgrent_type+:} false; then :
 
7125
  $as_echo_n "(cached) " >&6
 
7126
else
 
7127
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7128
/* end confdefs.h.  */
 
7129
 
 
7130
            #include <netdb.h>
 
7131
 
 
7132
int
 
7133
main ()
 
7134
{
 
7135
 
 
7136
            return setnetgrent(0);
 
7137
 
 
7138
  ;
 
7139
  return 0;
 
7140
}
 
7141
_ACEOF
 
7142
if ac_fn_c_try_compile "$LINENO"; then :
 
7143
  nss_pam_ldapd_cv_setnetgrent_type=int
 
7144
else
 
7145
  nss_pam_ldapd_cv_setnetgrent_type=void
 
7146
fi
 
7147
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7148
fi
 
7149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_setnetgrent_type" >&5
 
7150
$as_echo "$nss_pam_ldapd_cv_setnetgrent_type" >&6; }
 
7151
if test "x$nss_pam_ldapd_cv_setnetgrent_type" = "xvoid"
 
7152
then
 
7153
 
 
7154
$as_echo "#define SETNETGRENT_RETURNS_VOID 1" >>confdefs.h
 
7155
 
 
7156
fi
 
7157
 
6633
7158
# NSS module-specific tests
6634
7159
if test "x$enable_nss" = "xyes"
6635
7160
then
6824
7349
    # do the guessing game
6825
7350
    case "$target_os" in
6826
7351
      solaris*) with_nss_flavour=solaris ;;
6827
 
      freebsd*) with_nss_flavour=freebsd ;;
 
7352
      freebsd*|dragonfly*) with_nss_flavour=freebsd ;;
6828
7353
      *)        with_nss_flavour=glibc ;;
6829
7354
    esac
6830
7355
  fi
7081
7606
 
7082
7607
 
7083
7608
 
 
7609
  # check argument type of pam_get_item()
 
7610
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument type of pam_get_item" >&5
 
7611
$as_echo_n "checking argument type of pam_get_item... " >&6; }
 
7612
if ${nss_pam_ldapd_cv_pam_get_item_arg3_type+:} false; then :
 
7613
  $as_echo_n "(cached) " >&6
 
7614
else
 
7615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7616
/* end confdefs.h.  */
 
7617
 
 
7618
              #ifdef HAVE_SECURITY_PAM_APPL_H
 
7619
              #include <security/pam_appl.h>
 
7620
              #endif
 
7621
              #ifndef HAVE_PAM_PAM_MODULES_H
 
7622
              #include <security/pam_modules.h>
 
7623
              #ifdef HAVE_SECURITY_PAM_EXT_H
 
7624
              #include <security/pam_ext.h>
 
7625
              #endif
 
7626
              #else
 
7627
              #include <pam/pam_modules.h>
 
7628
              #endif
 
7629
              #ifdef HAVE_SECURITY_PAM_MODUTIL_H
 
7630
              #include <security/pam_modutil.h>
 
7631
              #endif
 
7632
              extern int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item);
 
7633
 
 
7634
int
 
7635
main ()
 
7636
{
 
7637
 
 
7638
  ;
 
7639
  return 0;
 
7640
}
 
7641
_ACEOF
 
7642
if ac_fn_c_try_compile "$LINENO"; then :
 
7643
  nss_pam_ldapd_cv_pam_get_item_arg3_type="const void **"
 
7644
else
 
7645
  nss_pam_ldapd_cv_pam_get_item_arg3_type="void **"
 
7646
fi
 
7647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7648
fi
 
7649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_pam_get_item_arg3_type" >&5
 
7650
$as_echo "$nss_pam_ldapd_cv_pam_get_item_arg3_type" >&6; }
 
7651
  PAM_ITEM_CONST=""
 
7652
  if test "$nss_pam_ldapd_cv_pam_get_item_arg3_type" = "const void **"
 
7653
  then
 
7654
    PAM_ITEM_CONST="const"
 
7655
  fi
 
7656
 
 
7657
cat >>confdefs.h <<_ACEOF
 
7658
#define PAM_ITEM_CONST $PAM_ITEM_CONST
 
7659
_ACEOF
 
7660
 
 
7661
 
7084
7662
  # restore CFLAGS and LIBS
7085
7663
  CFLAGS="$pam_save_CFLAGS"
7086
7664
  LIBS="$pam_save_LIBS"
7087
7665
fi
7088
7666
 
 
7667
# utils-specific tests
 
7668
if test "x$enable_utils" = "xyes"
 
7669
then
 
7670
  # check Python interpreter
 
7671
 
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
        if test -n "$PYTHON"; then
 
7678
      # If the user set $PYTHON, use it and don't search something else.
 
7679
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
 
7680
$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
 
7681
      prog="import sys
 
7682
# split strings by '.' and convert to numeric.  Append some zeros
 
7683
# because we need at least 4 digits for the hex conversion.
 
7684
# map returns an iterator in Python 3.0 and a list in 2.x
 
7685
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
 
7686
minverhex = 0
 
7687
# xrange is not present in Python 3.0 and range returns an iterator
 
7688
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
7689
sys.exit(sys.hexversion < minverhex)"
 
7690
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
7691
   ($PYTHON -c "$prog") >&5 2>&5
 
7692
   ac_status=$?
 
7693
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7694
   (exit $ac_status); }; then :
 
7695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7696
$as_echo "yes" >&6; }
 
7697
else
 
7698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7699
$as_echo "no" >&6; }
 
7700
                               as_fn_error $? "Python interpreter is too old" "$LINENO" 5
 
7701
fi
 
7702
      am_display_PYTHON=$PYTHON
 
7703
    else
 
7704
      # Otherwise, try each interpreter until we find one that satisfies
 
7705
      # VERSION.
 
7706
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
 
7707
$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
 
7708
if ${am_cv_pathless_PYTHON+:} false; then :
 
7709
  $as_echo_n "(cached) " >&6
 
7710
else
 
7711
 
 
7712
        for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
 
7713
          test "$am_cv_pathless_PYTHON" = none && break
 
7714
          prog="import sys
 
7715
# split strings by '.' and convert to numeric.  Append some zeros
 
7716
# because we need at least 4 digits for the hex conversion.
 
7717
# map returns an iterator in Python 3.0 and a list in 2.x
 
7718
minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
 
7719
minverhex = 0
 
7720
# xrange is not present in Python 3.0 and range returns an iterator
 
7721
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
7722
sys.exit(sys.hexversion < minverhex)"
 
7723
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
7724
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
7725
   ac_status=$?
 
7726
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7727
   (exit $ac_status); }; then :
 
7728
  break
 
7729
fi
 
7730
        done
 
7731
fi
 
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
 
7733
$as_echo "$am_cv_pathless_PYTHON" >&6; }
 
7734
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
7735
      if test "$am_cv_pathless_PYTHON" = none; then
 
7736
        PYTHON=:
 
7737
      else
 
7738
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
7739
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
7740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7741
$as_echo_n "checking for $ac_word... " >&6; }
 
7742
if ${ac_cv_path_PYTHON+:} false; then :
 
7743
  $as_echo_n "(cached) " >&6
 
7744
else
 
7745
  case $PYTHON in
 
7746
  [\\/]* | ?:[\\/]*)
 
7747
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
7748
  ;;
 
7749
  *)
 
7750
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7751
for as_dir in $PATH
 
7752
do
 
7753
  IFS=$as_save_IFS
 
7754
  test -z "$as_dir" && as_dir=.
 
7755
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7756
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7757
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
7758
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7759
    break 2
 
7760
  fi
 
7761
done
 
7762
  done
 
7763
IFS=$as_save_IFS
 
7764
 
 
7765
  ;;
 
7766
esac
 
7767
fi
 
7768
PYTHON=$ac_cv_path_PYTHON
 
7769
if test -n "$PYTHON"; then
 
7770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
7771
$as_echo "$PYTHON" >&6; }
 
7772
else
 
7773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7774
$as_echo "no" >&6; }
 
7775
fi
 
7776
 
 
7777
 
 
7778
      fi
 
7779
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
7780
    fi
 
7781
 
 
7782
 
 
7783
  if test "$PYTHON" = :; then
 
7784
      as_fn_error $? "Python is required" "$LINENO" 5
 
7785
  else
 
7786
 
 
7787
 
 
7788
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
 
7789
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
7790
if ${am_cv_python_version+:} false; then :
 
7791
  $as_echo_n "(cached) " >&6
 
7792
else
 
7793
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
7794
fi
 
7795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
 
7796
$as_echo "$am_cv_python_version" >&6; }
 
7797
  PYTHON_VERSION=$am_cv_python_version
 
7798
 
 
7799
 
 
7800
 
 
7801
  PYTHON_PREFIX='${prefix}'
 
7802
 
 
7803
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
7804
 
 
7805
 
 
7806
 
 
7807
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
 
7808
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
7809
if ${am_cv_python_platform+:} false; then :
 
7810
  $as_echo_n "(cached) " >&6
 
7811
else
 
7812
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
7813
fi
 
7814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
 
7815
$as_echo "$am_cv_python_platform" >&6; }
 
7816
  PYTHON_PLATFORM=$am_cv_python_platform
 
7817
 
 
7818
 
 
7819
  # Just factor out some code duplication.
 
7820
  am_python_setup_sysconfig="\
 
7821
import sys
 
7822
# Prefer sysconfig over distutils.sysconfig, for better compatibility
 
7823
# with python 3.x.  See automake bug#10227.
 
7824
try:
 
7825
    import sysconfig
 
7826
except ImportError:
 
7827
    can_use_sysconfig = 0
 
7828
else:
 
7829
    can_use_sysconfig = 1
 
7830
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
 
7831
# <https://github.com/pypa/virtualenv/issues/118>
 
7832
try:
 
7833
    from platform import python_implementation
 
7834
    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
 
7835
        can_use_sysconfig = 0
 
7836
except ImportError:
 
7837
    pass"
 
7838
 
 
7839
 
 
7840
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
 
7841
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
7842
if ${am_cv_python_pythondir+:} false; then :
 
7843
  $as_echo_n "(cached) " >&6
 
7844
else
 
7845
  if test "x$prefix" = xNONE
 
7846
     then
 
7847
       am_py_prefix=$ac_default_prefix
 
7848
     else
 
7849
       am_py_prefix=$prefix
 
7850
     fi
 
7851
     am_cv_python_pythondir=`$PYTHON -c "
 
7852
$am_python_setup_sysconfig
 
7853
if can_use_sysconfig:
 
7854
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
 
7855
else:
 
7856
    from distutils import sysconfig
 
7857
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
 
7858
sys.stdout.write(sitedir)"`
 
7859
     case $am_cv_python_pythondir in
 
7860
     $am_py_prefix*)
 
7861
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
7862
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
7863
       ;;
 
7864
     *)
 
7865
       case $am_py_prefix in
 
7866
         /usr|/System*) ;;
 
7867
         *)
 
7868
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
7869
          ;;
 
7870
       esac
 
7871
       ;;
 
7872
     esac
 
7873
 
 
7874
fi
 
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 
7876
$as_echo "$am_cv_python_pythondir" >&6; }
 
7877
  pythondir=$am_cv_python_pythondir
 
7878
 
 
7879
 
 
7880
 
 
7881
  pkgpythondir=\${pythondir}/$PACKAGE
 
7882
 
 
7883
 
 
7884
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
 
7885
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
7886
if ${am_cv_python_pyexecdir+:} false; then :
 
7887
  $as_echo_n "(cached) " >&6
 
7888
else
 
7889
  if test "x$exec_prefix" = xNONE
 
7890
     then
 
7891
       am_py_exec_prefix=$am_py_prefix
 
7892
     else
 
7893
       am_py_exec_prefix=$exec_prefix
 
7894
     fi
 
7895
     am_cv_python_pyexecdir=`$PYTHON -c "
 
7896
$am_python_setup_sysconfig
 
7897
if can_use_sysconfig:
 
7898
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
 
7899
else:
 
7900
    from distutils import sysconfig
 
7901
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
 
7902
sys.stdout.write(sitedir)"`
 
7903
     case $am_cv_python_pyexecdir in
 
7904
     $am_py_exec_prefix*)
 
7905
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
7906
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
7907
       ;;
 
7908
     *)
 
7909
       case $am_py_exec_prefix in
 
7910
         /usr|/System*) ;;
 
7911
         *)
 
7912
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
7913
           ;;
 
7914
       esac
 
7915
       ;;
 
7916
     esac
 
7917
 
 
7918
fi
 
7919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
 
7920
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
7921
  pyexecdir=$am_cv_python_pyexecdir
 
7922
 
 
7923
 
 
7924
 
 
7925
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
7926
 
 
7927
 
 
7928
 
 
7929
  fi
 
7930
 
 
7931
 
 
7932
 
 
7933
    if test -z $PYTHON;
 
7934
    then
 
7935
        PYTHON="python"
 
7936
    fi
 
7937
    PYTHON_NAME=`basename $PYTHON`
 
7938
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5
 
7939
$as_echo_n "checking $PYTHON_NAME module: argparse... " >&6; }
 
7940
        $PYTHON -c "import argparse" 2>/dev/null
 
7941
        if test $? -eq 0;
 
7942
        then
 
7943
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7944
$as_echo "yes" >&6; }
 
7945
                eval HAVE_PYMOD_ARGPARSE=yes
 
7946
        else
 
7947
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7948
$as_echo "no" >&6; }
 
7949
                eval HAVE_PYMOD_ARGPARSE=no
 
7950
                #
 
7951
                if test -n ""
 
7952
                then
 
7953
                        as_fn_error $? "failed to find required module argparse" "$LINENO" 5
 
7954
                        exit 1
 
7955
                fi
 
7956
        fi
 
7957
 
 
7958
  if test "x$HAVE_PYMOD_ARGPARSE" != "xyes"
 
7959
  then
 
7960
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5
 
7961
$as_echo "$as_me: WARNING: Required Python modules missing" >&2;}
 
7962
  fi
 
7963
fi
 
7964
 
7089
7965
# nslcd daemon-specific tests
7090
7966
if test "x$enable_nslcd" = "xyes"
7091
7967
then
7179
8055
  fi
7180
8056
  if test "x$enable_kerberos" = "xyes"
7181
8057
  then
7182
 
    for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h gssapi.h
 
8058
    for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h gssapi.h krb5.h
7183
8059
do :
7184
8060
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7185
8061
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7377
8253
 
7378
8254
 
7379
8255
  # check for availability of functions
7380
 
  for ac_func in initgroups setgroups
 
8256
  for ac_func in initgroups setgroups execvp execvpe
7381
8257
do :
7382
8258
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7383
8259
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7489
8365
 
7490
8366
 
7491
8367
 
7492
 
  # replace daemon() function if it is not on the system
7493
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
7494
 
$as_echo_n "checking for library containing daemon... " >&6; }
7495
 
if ${ac_cv_search_daemon+:} false; then :
7496
 
  $as_echo_n "(cached) " >&6
7497
 
else
7498
 
  ac_func_search_save_LIBS=$LIBS
7499
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500
 
/* end confdefs.h.  */
7501
 
 
7502
 
/* Override any GCC internal prototype to avoid an error.
7503
 
   Use char because int might match the return type of a GCC
7504
 
   builtin and then its argument prototype would still apply.  */
7505
 
#ifdef __cplusplus
7506
 
extern "C"
7507
 
#endif
7508
 
char daemon ();
7509
 
int
7510
 
main ()
7511
 
{
7512
 
return daemon ();
7513
 
  ;
7514
 
  return 0;
7515
 
}
7516
 
_ACEOF
7517
 
for ac_lib in '' bsd; do
7518
 
  if test -z "$ac_lib"; then
7519
 
    ac_res="none required"
7520
 
  else
7521
 
    ac_res=-l$ac_lib
7522
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7523
 
  fi
7524
 
  if ac_fn_c_try_link "$LINENO"; then :
7525
 
  ac_cv_search_daemon=$ac_res
7526
 
fi
7527
 
rm -f core conftest.err conftest.$ac_objext \
7528
 
    conftest$ac_exeext
7529
 
  if ${ac_cv_search_daemon+:} false; then :
7530
 
  break
7531
 
fi
7532
 
done
7533
 
if ${ac_cv_search_daemon+:} false; then :
7534
 
 
7535
 
else
7536
 
  ac_cv_search_daemon=no
7537
 
fi
7538
 
rm conftest.$ac_ext
7539
 
LIBS=$ac_func_search_save_LIBS
7540
 
fi
7541
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
7542
 
$as_echo "$ac_cv_search_daemon" >&6; }
7543
 
ac_res=$ac_cv_search_daemon
7544
 
if test "$ac_res" != no; then :
7545
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7546
 
 
7547
 
fi
7548
 
 
7549
 
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
7550
 
if test "x$ac_cv_func_daemon" = xyes; then :
7551
 
  $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
7552
 
 
7553
 
else
7554
 
  case " $LIBOBJS " in
7555
 
  *" daemon.$ac_objext "* ) ;;
7556
 
  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
7557
 
 ;;
7558
 
esac
7559
 
 
7560
 
fi
7561
 
 
7562
 
 
7563
 
  ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "
7564
 
      #include <unistd.h>
7565
 
      #include <stdlib.h>
7566
 
"
7567
 
if test "x$ac_cv_have_decl_daemon" = xyes; then :
7568
 
  ac_have_decl=1
7569
 
else
7570
 
  ac_have_decl=0
7571
 
fi
7572
 
 
7573
 
cat >>confdefs.h <<_ACEOF
7574
 
#define HAVE_DECL_DAEMON $ac_have_decl
7575
 
_ACEOF
7576
 
 
7577
 
 
7578
8368
  # replace ether_aton_r() and ether_ntoa_r() if they are not found
7579
8369
  for ac_func in ether_aton_r ether_ntoa_r
7580
8370
do :
8024
8814
  pthread_save_LIBS="$LIBS"
8025
8815
  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8026
8816
  LIBS="$LIBS $PTHREAD_LIBS"
8027
 
  for ac_func in pthread_mutex_lock pthread_join pthread_timedjoin_np
 
8817
  for ac_func in pthread_mutex_lock pthread_join pthread_timedjoin_np pthread_atfork
8028
8818
do :
8029
8819
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8030
8820
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8567
9357
fi
8568
9358
done
8569
9359
 
 
9360
 
 
9361
    # save CFLAGS and LIBS to restore later
 
9362
    krb5_save_CFLAGS="$CFLAGS"
 
9363
    krb5_save_LIBS="$LIBS"
 
9364
 
 
9365
    # find library that contains krb5_is_thread_safe
 
9366
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
 
9367
$as_echo_n "checking for library containing krb5_sendauth... " >&6; }
 
9368
if ${ac_cv_search_krb5_sendauth+:} false; then :
 
9369
  $as_echo_n "(cached) " >&6
 
9370
else
 
9371
  ac_func_search_save_LIBS=$LIBS
 
9372
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9373
/* end confdefs.h.  */
 
9374
 
 
9375
/* Override any GCC internal prototype to avoid an error.
 
9376
   Use char because int might match the return type of a GCC
 
9377
   builtin and then its argument prototype would still apply.  */
 
9378
#ifdef __cplusplus
 
9379
extern "C"
 
9380
#endif
 
9381
char krb5_sendauth ();
 
9382
int
 
9383
main ()
 
9384
{
 
9385
return krb5_sendauth ();
 
9386
  ;
 
9387
  return 0;
 
9388
}
 
9389
_ACEOF
 
9390
for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
 
9391
  if test -z "$ac_lib"; then
 
9392
    ac_res="none required"
 
9393
  else
 
9394
    ac_res=-l$ac_lib
 
9395
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9396
  fi
 
9397
  if ac_fn_c_try_link "$LINENO"; then :
 
9398
  ac_cv_search_krb5_sendauth=$ac_res
 
9399
fi
 
9400
rm -f core conftest.err conftest.$ac_objext \
 
9401
    conftest$ac_exeext
 
9402
  if ${ac_cv_search_krb5_sendauth+:} false; then :
 
9403
  break
 
9404
fi
 
9405
done
 
9406
if ${ac_cv_search_krb5_sendauth+:} false; then :
 
9407
 
 
9408
else
 
9409
  ac_cv_search_krb5_sendauth=no
 
9410
fi
 
9411
rm conftest.$ac_ext
 
9412
LIBS=$ac_func_search_save_LIBS
 
9413
fi
 
9414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
 
9415
$as_echo "$ac_cv_search_krb5_sendauth" >&6; }
 
9416
ac_res=$ac_cv_search_krb5_sendauth
 
9417
if test "$ac_res" != no; then :
 
9418
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9419
 
 
9420
fi
 
9421
 
 
9422
    for ac_func in krb5_is_thread_safe
 
9423
do :
 
9424
  ac_fn_c_check_func "$LINENO" "krb5_is_thread_safe" "ac_cv_func_krb5_is_thread_safe"
 
9425
if test "x$ac_cv_func_krb5_is_thread_safe" = xyes; then :
 
9426
  cat >>confdefs.h <<_ACEOF
 
9427
#define HAVE_KRB5_IS_THREAD_SAFE 1
 
9428
_ACEOF
 
9429
 
 
9430
fi
 
9431
done
 
9432
 
 
9433
 
 
9434
    # see if krb5 is thread safe
 
9435
    if test "x$ac_cv_func_krb5_is_thread_safe" == "xyes"
 
9436
    then
 
9437
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5 thread safety" >&5
 
9438
$as_echo_n "checking krb5 thread safety... " >&6; }
 
9439
if ${nslcd_cv_krb5_is_thread_safe+:} false; then :
 
9440
  $as_echo_n "(cached) " >&6
 
9441
else
 
9442
  if test "$cross_compiling" = yes; then :
 
9443
  nslcd_cv_krb5_is_thread_safe=unknown
 
9444
else
 
9445
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9446
/* end confdefs.h.  */
 
9447
 
 
9448
                      #include <krb5.h>
 
9449
 
 
9450
int
 
9451
main ()
 
9452
{
 
9453
 
 
9454
                      if (!krb5_is_thread_safe())
 
9455
                        return 1;
 
9456
 
 
9457
  ;
 
9458
  return 0;
 
9459
}
 
9460
_ACEOF
 
9461
if ac_fn_c_try_run "$LINENO"; then :
 
9462
  nslcd_cv_krb5_is_thread_safe=yes
 
9463
else
 
9464
  nslcd_cv_krb5_is_thread_safe=no
 
9465
fi
 
9466
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9467
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9468
fi
 
9469
 
 
9470
fi
 
9471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_krb5_is_thread_safe" >&5
 
9472
$as_echo "$nslcd_cv_krb5_is_thread_safe" >&6; }
 
9473
      if test "x$nslcd_cv_krb5_is_thread_safe" == "xno"
 
9474
      then
 
9475
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: krb5 is NOT thread safe" >&5
 
9476
$as_echo "$as_me: WARNING: krb5 is NOT thread safe" >&2;}
 
9477
      fi
 
9478
    fi
 
9479
 
 
9480
    # restore CFLAGS and LIBS because we don't directly use krb5
 
9481
    CFLAGS="$krb5_save_CFLAGS"
 
9482
    LIBS="$krb5_save_LIBS"
 
9483
 
8570
9484
  fi
8571
9485
 
8572
9486
  # check for ldap function availability
8573
 
  for ac_func in ldap_parse_result ldap_memfree ldap_controls_free ldap_control_free
8574
 
do :
8575
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8576
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8577
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8578
 
  cat >>confdefs.h <<_ACEOF
8579
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8580
 
_ACEOF
8581
 
 
8582
 
fi
8583
 
done
8584
 
 
8585
 
  for ac_func in ldap_explode_dn ldap_explode_rdn ldap_set_option ldap_get_option
8586
 
do :
8587
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8588
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8589
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8590
 
  cat >>confdefs.h <<_ACEOF
8591
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8592
 
_ACEOF
8593
 
 
8594
 
fi
8595
 
done
8596
 
 
8597
 
  for ac_func in ldap_abandon ldap_simple_bind_s ldap_unbind ldap_set_rebind_proc
8598
 
do :
8599
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8600
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8601
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8602
 
  cat >>confdefs.h <<_ACEOF
8603
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8604
 
_ACEOF
8605
 
 
8606
 
fi
8607
 
done
8608
 
 
8609
 
  for ac_func in ldap_initialize ldap_search_ext ldap_start_tls_s
8610
 
do :
8611
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8612
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8613
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8614
 
  cat >>confdefs.h <<_ACEOF
8615
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8616
 
_ACEOF
8617
 
 
8618
 
fi
8619
 
done
8620
 
 
8621
 
  for ac_func in ldap_create_control ldap_extended_operation_s
 
9487
  for ac_func in ber_bvfree ber_free ber_set_option ber_get_enum
 
9488
do :
 
9489
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9490
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9491
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9492
  cat >>confdefs.h <<_ACEOF
 
9493
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9494
_ACEOF
 
9495
 
 
9496
fi
 
9497
done
 
9498
 
 
9499
  for ac_func in ldap_initialize ldap_start_tls_s
 
9500
do :
 
9501
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9502
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9503
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9504
  cat >>confdefs.h <<_ACEOF
 
9505
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9506
_ACEOF
 
9507
 
 
9508
fi
 
9509
done
 
9510
 
 
9511
  for ac_func in ldap_get_option ldap_set_option ldap_set_rebind_proc
 
9512
do :
 
9513
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9514
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9515
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9516
  cat >>confdefs.h <<_ACEOF
 
9517
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9518
_ACEOF
 
9519
 
 
9520
fi
 
9521
done
 
9522
 
 
9523
  for ac_func in ldap_simple_bind_s ldap_sasl_bind ldap_sasl_bind_s ldap_unbind
 
9524
do :
 
9525
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9526
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9527
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9528
  cat >>confdefs.h <<_ACEOF
 
9529
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9530
_ACEOF
 
9531
 
 
9532
fi
 
9533
done
 
9534
 
 
9535
  for ac_func in ldap_search_ext ldap_modify_ext_s ldap_extended_operation_s
 
9536
do :
 
9537
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9538
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9539
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9540
  cat >>confdefs.h <<_ACEOF
 
9541
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9542
_ACEOF
 
9543
 
 
9544
fi
 
9545
done
 
9546
 
 
9547
  for ac_func in ldap_explode_dn ldap_explode_rdn
8622
9548
do :
8623
9549
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8624
9550
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8642
9568
fi
8643
9569
done
8644
9570
 
8645
 
  for ac_func in ldap_get_values ldap_get_values_len ldap_value_free ldap_value_free_len
8646
 
do :
8647
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8648
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8649
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8650
 
  cat >>confdefs.h <<_ACEOF
8651
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8652
 
_ACEOF
8653
 
 
8654
 
fi
8655
 
done
8656
 
 
8657
 
  for ac_func in ldap_get_dn ldap_explode_dn ldap_count_values_len
8658
 
do :
8659
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8660
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8661
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8662
 
  cat >>confdefs.h <<_ACEOF
8663
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8664
 
_ACEOF
8665
 
 
8666
 
fi
8667
 
done
8668
 
 
8669
 
  for ac_func in ldap_err2string ldap_msgfree ldap_result
8670
 
do :
8671
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8672
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8673
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8674
 
  cat >>confdefs.h <<_ACEOF
8675
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8676
 
_ACEOF
8677
 
 
8678
 
fi
8679
 
done
8680
 
 
8681
 
  for ac_func in ber_bvfree ber_free ber_set_option ldap_modify_ext_s
8682
 
do :
8683
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8684
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8685
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8686
 
  cat >>confdefs.h <<_ACEOF
8687
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8688
 
_ACEOF
8689
 
 
8690
 
fi
8691
 
done
8692
 
 
8693
 
  for ac_func in ldap_first_attribute ldap_next_attribute
 
9571
  for ac_func in ldap_result ldap_parse_result ldap_msgfree ldap_memfree
 
9572
do :
 
9573
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9574
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9575
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9576
  cat >>confdefs.h <<_ACEOF
 
9577
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9578
_ACEOF
 
9579
 
 
9580
fi
 
9581
done
 
9582
 
 
9583
  for ac_func in ldap_get_dn ldap_first_attribute ldap_next_attribute
 
9584
do :
 
9585
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9586
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9587
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9588
  cat >>confdefs.h <<_ACEOF
 
9589
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9590
_ACEOF
 
9591
 
 
9592
fi
 
9593
done
 
9594
 
 
9595
  for ac_func in ldap_get_values ldap_value_free
 
9596
do :
 
9597
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9598
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9599
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9600
  cat >>confdefs.h <<_ACEOF
 
9601
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9602
_ACEOF
 
9603
 
 
9604
fi
 
9605
done
 
9606
 
 
9607
  for ac_func in ldap_get_values_len ldap_count_values_len ldap_value_free_len
 
9608
do :
 
9609
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9610
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9611
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9612
  cat >>confdefs.h <<_ACEOF
 
9613
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9614
_ACEOF
 
9615
 
 
9616
fi
 
9617
done
 
9618
 
 
9619
  for ac_func in ldap_err2string ldap_abandon
 
9620
do :
 
9621
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9622
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9623
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9624
  cat >>confdefs.h <<_ACEOF
 
9625
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9626
_ACEOF
 
9627
 
 
9628
fi
 
9629
done
 
9630
 
 
9631
  for ac_func in ldap_control_create ldap_create_control ldap_control_find
 
9632
do :
 
9633
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9634
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9635
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9636
  cat >>confdefs.h <<_ACEOF
 
9637
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9638
_ACEOF
 
9639
 
 
9640
fi
 
9641
done
 
9642
 
 
9643
  for ac_func in ldap_controls_free ldap_control_free ldap_get_entry_controls
 
9644
do :
 
9645
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9646
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9647
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9648
  cat >>confdefs.h <<_ACEOF
 
9649
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9650
_ACEOF
 
9651
 
 
9652
fi
 
9653
done
 
9654
 
 
9655
  for ac_func in ldap_parse_passwordpolicy_control ldap_passwordpolicy_err2txt
 
9656
do :
 
9657
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9658
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9659
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9660
  cat >>confdefs.h <<_ACEOF
 
9661
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9662
_ACEOF
 
9663
 
 
9664
fi
 
9665
done
 
9666
 
 
9667
  for ac_func in ldap_create_deref_control ldap_create_deref_control_value
 
9668
do :
 
9669
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9670
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9671
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9672
  cat >>confdefs.h <<_ACEOF
 
9673
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9674
_ACEOF
 
9675
 
 
9676
fi
 
9677
done
 
9678
 
 
9679
  for ac_func in ldap_parse_deref_control ldap_derefresponse_free
8694
9680
do :
8695
9681
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8696
9682
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8769
9755
fi
8770
9756
 
8771
9757
 
 
9758
  ac_fn_c_check_func "$LINENO" "ldap_parse_passwordpolicy_control" "ac_cv_func_ldap_parse_passwordpolicy_control"
 
9759
if test "x$ac_cv_func_ldap_parse_passwordpolicy_control" = xyes; then :
 
9760
  $as_echo "#define HAVE_LDAP_PARSE_PASSWORDPOLICY_CONTROL 1" >>confdefs.h
 
9761
 
 
9762
else
 
9763
  case " $LIBOBJS " in
 
9764
  *" ldap_parse_passwordpolicy_control.$ac_objext "* ) ;;
 
9765
  *) LIBOBJS="$LIBOBJS ldap_parse_passwordpolicy_control.$ac_objext"
 
9766
 ;;
 
9767
esac
 
9768
 
 
9769
fi
 
9770
 
 
9771
 
 
9772
  ac_fn_c_check_func "$LINENO" "ldap_passwordpolicy_err2txt" "ac_cv_func_ldap_passwordpolicy_err2txt"
 
9773
if test "x$ac_cv_func_ldap_passwordpolicy_err2txt" = xyes; then :
 
9774
  $as_echo "#define HAVE_LDAP_PASSWORDPOLICY_ERR2TXT 1" >>confdefs.h
 
9775
 
 
9776
else
 
9777
  case " $LIBOBJS " in
 
9778
  *" ldap_passwordpolicy_err2txt.$ac_objext "* ) ;;
 
9779
  *) LIBOBJS="$LIBOBJS ldap_passwordpolicy_err2txt.$ac_objext"
 
9780
 ;;
 
9781
esac
 
9782
 
 
9783
fi
 
9784
 
 
9785
 
8772
9786
 
8773
9787
  # check the number of arguments that ldap_set_rebind_proc() uses
8774
9788
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ldap_set_rebind_proc" >&5
8786
9800
main ()
8787
9801
{
8788
9802
 
8789
 
              ldap_set_rebind_proc(0,0,0);
 
9803
              ldap_set_rebind_proc(0, 0, 0);
8790
9804
 
8791
9805
  ;
8792
9806
  return 0;
8824
9838
{
8825
9839
 
8826
9840
              #if LDAP_SET_REBIND_PROC_ARGS == 3
8827
 
              return ldap_set_rebind_proc(0,0,0);
 
9841
              return ldap_set_rebind_proc(0, 0, 0);
8828
9842
              #else
8829
 
              return ldap_set_rebind_proc(0,0);
 
9843
              return ldap_set_rebind_proc(0, 0);
8830
9844
              #endif
8831
9845
 
8832
9846
  ;
8849
9863
 
8850
9864
  fi
8851
9865
 
 
9866
  # check for broken implementations of ldap_create_deref_control()
 
9867
  if test "x$ac_cv_func_ldap_create_deref_control" = "xyes"
 
9868
  then
 
9869
    # this bug cannot be determined on compile time so we run a
 
9870
    # small test program
 
9871
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ldap_create_deref_control() implementation" >&5
 
9872
$as_echo_n "checking ldap_create_deref_control() implementation... " >&6; }
 
9873
if ${nslcd_cv_ldap_create_deref_control_working+:} false; then :
 
9874
  $as_echo_n "(cached) " >&6
 
9875
else
 
9876
  if test "$cross_compiling" = yes; then :
 
9877
  nslcd_cv_ldap_create_deref_control_working=cross
 
9878
else
 
9879
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9880
/* end confdefs.h.  */
 
9881
 
 
9882
                    #include <stdio.h>
 
9883
                    #include <lber.h>
 
9884
                    #include <ldap.h>
 
9885
 
 
9886
int
 
9887
main ()
 
9888
{
 
9889
 
 
9890
                    int rc;
 
9891
                    LDAP *ld;
 
9892
                    LDAPControl *ctrls[2] = {NULL, NULL};
 
9893
                    struct LDAPDerefSpec ds[2];
 
9894
                    char *attrs[2] = {"uid", NULL};
 
9895
                    ld = ldap_init("localhost", LDAP_PORT);
 
9896
                    if (ld == NULL)
 
9897
                    {
 
9898
                      fprintf(stderr, "ldap_init() failed\n");
 
9899
                      return 2;
 
9900
                    }
 
9901
                    ds[0].derefAttr = "member";
 
9902
                    ds[0].attributes = attrs;
 
9903
                    ds[1].derefAttr = NULL;
 
9904
                    rc = ldap_create_deref_control(ld, ds, 0, &ctrls[0]);
 
9905
                    if (rc != LDAP_SUCCESS)
 
9906
                    {
 
9907
                      fprintf(stderr, "ldap_create_deref_control() failed: %s\n",
 
9908
                              ldap_err2string(rc));
 
9909
                      return 2;
 
9910
                    }
 
9911
                    if (ldap_control_find(LDAP_CONTROL_X_DEREF, ctrls, NULL) != NULL)
 
9912
                      return 0;
 
9913
                    if (ldap_control_find(LDAP_CONTROL_PAGEDRESULTS, ctrls, NULL) != NULL)
 
9914
                    {
 
9915
                      fprintf(stderr, "ldap_create_deref_control() created LDAP_CONTROL_PAGEDRESULTS control\n");
 
9916
                      return 3;
 
9917
                    }
 
9918
                    fprintf(stderr, "ldap_create_deref_control() created unknown control\n");
 
9919
                    return 2;
 
9920
 
 
9921
  ;
 
9922
  return 0;
 
9923
}
 
9924
_ACEOF
 
9925
if ac_fn_c_try_run "$LINENO"; then :
 
9926
  nslcd_cv_ldap_create_deref_control_working=ok
 
9927
else
 
9928
  if test "$?" -eq 3; then nslcd_cv_ldap_create_deref_control_working=broken
 
9929
                 else nslcd_cv_ldap_create_deref_control_working=unknown; fi
 
9930
fi
 
9931
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9932
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9933
fi
 
9934
 
 
9935
fi
 
9936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_ldap_create_deref_control_working" >&5
 
9937
$as_echo "$nslcd_cv_ldap_create_deref_control_working" >&6; }
 
9938
    if test "x$nslcd_cv_ldap_create_deref_control_working" != "xok"
 
9939
    then
 
9940
      { $as_echo "$as_me:${as_lineno-$LINENO}: using replacement ldap_create_deref_control()" >&5
 
9941
$as_echo "$as_me: using replacement ldap_create_deref_control()" >&6;}
 
9942
      case " $LIBOBJS " in
 
9943
  *" derefctrl.$ac_objext "* ) ;;
 
9944
  *) LIBOBJS="$LIBOBJS derefctrl.$ac_objext"
 
9945
 ;;
 
9946
esac
 
9947
 
 
9948
 
 
9949
$as_echo "#define REPLACE_LDAP_CREATE_DEREF_CONTROL 1" >>confdefs.h
 
9950
 
 
9951
    fi
 
9952
  fi
 
9953
 
8852
9954
  # save nslcd LIBS and CFLAGS and restore originals
8853
9955
  nslcd_CFLAGS="$CFLAGS"
8854
9956
  nslcd_LIBS="$LIBS"
8858
9960
 
8859
9961
fi
8860
9962
 
8861
 
# pynslcd daemon-specific tests
 
9963
# pynslcd-specific tests
8862
9964
if test "x$enable_pynslcd" = "xyes"
8863
9965
then
8864
9966
  # check Python interpreter
8975
10077
 
8976
10078
 
8977
10079
  if test "$PYTHON" = :; then
8978
 
      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
 
10080
      as_fn_error $? "Python is required" "$LINENO" 5
8979
10081
  else
8980
10082
 
8981
10083
 
9123
10225
  fi
9124
10226
 
9125
10227
 
 
10228
 
 
10229
    if test -z $PYTHON;
 
10230
    then
 
10231
        PYTHON="python"
 
10232
    fi
 
10233
    PYTHON_NAME=`basename $PYTHON`
 
10234
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: daemon" >&5
 
10235
$as_echo_n "checking $PYTHON_NAME module: daemon... " >&6; }
 
10236
        $PYTHON -c "import daemon" 2>/dev/null
 
10237
        if test $? -eq 0;
 
10238
        then
 
10239
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10240
$as_echo "yes" >&6; }
 
10241
                eval HAVE_PYMOD_DAEMON=yes
 
10242
        else
 
10243
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10244
$as_echo "no" >&6; }
 
10245
                eval HAVE_PYMOD_DAEMON=no
 
10246
                #
 
10247
                if test -n ""
 
10248
                then
 
10249
                        as_fn_error $? "failed to find required module daemon" "$LINENO" 5
 
10250
                        exit 1
 
10251
                fi
 
10252
        fi
 
10253
 
 
10254
 
 
10255
    if test -z $PYTHON;
 
10256
    then
 
10257
        PYTHON="python"
 
10258
    fi
 
10259
    PYTHON_NAME=`basename $PYTHON`
 
10260
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fcntl" >&5
 
10261
$as_echo_n "checking $PYTHON_NAME module: fcntl... " >&6; }
 
10262
        $PYTHON -c "import fcntl" 2>/dev/null
 
10263
        if test $? -eq 0;
 
10264
        then
 
10265
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10266
$as_echo "yes" >&6; }
 
10267
                eval HAVE_PYMOD_FCNTL=yes
 
10268
        else
 
10269
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10270
$as_echo "no" >&6; }
 
10271
                eval HAVE_PYMOD_FCNTL=no
 
10272
                #
 
10273
                if test -n ""
 
10274
                then
 
10275
                        as_fn_error $? "failed to find required module fcntl" "$LINENO" 5
 
10276
                        exit 1
 
10277
                fi
 
10278
        fi
 
10279
 
 
10280
 
 
10281
    if test -z $PYTHON;
 
10282
    then
 
10283
        PYTHON="python"
 
10284
    fi
 
10285
    PYTHON_NAME=`basename $PYTHON`
 
10286
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fnmatch" >&5
 
10287
$as_echo_n "checking $PYTHON_NAME module: fnmatch... " >&6; }
 
10288
        $PYTHON -c "import fnmatch" 2>/dev/null
 
10289
        if test $? -eq 0;
 
10290
        then
 
10291
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10292
$as_echo "yes" >&6; }
 
10293
                eval HAVE_PYMOD_FNMATCH=yes
 
10294
        else
 
10295
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10296
$as_echo "no" >&6; }
 
10297
                eval HAVE_PYMOD_FNMATCH=no
 
10298
                #
 
10299
                if test -n ""
 
10300
                then
 
10301
                        as_fn_error $? "failed to find required module fnmatch" "$LINENO" 5
 
10302
                        exit 1
 
10303
                fi
 
10304
        fi
 
10305
 
 
10306
 
 
10307
    if test -z $PYTHON;
 
10308
    then
 
10309
        PYTHON="python"
 
10310
    fi
 
10311
    PYTHON_NAME=`basename $PYTHON`
 
10312
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: ldap" >&5
 
10313
$as_echo_n "checking $PYTHON_NAME module: ldap... " >&6; }
 
10314
        $PYTHON -c "import ldap" 2>/dev/null
 
10315
        if test $? -eq 0;
 
10316
        then
 
10317
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10318
$as_echo "yes" >&6; }
 
10319
                eval HAVE_PYMOD_LDAP=yes
 
10320
        else
 
10321
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10322
$as_echo "no" >&6; }
 
10323
                eval HAVE_PYMOD_LDAP=no
 
10324
                #
 
10325
                if test -n ""
 
10326
                then
 
10327
                        as_fn_error $? "failed to find required module ldap" "$LINENO" 5
 
10328
                        exit 1
 
10329
                fi
 
10330
        fi
 
10331
 
 
10332
 
 
10333
    if test -z $PYTHON;
 
10334
    then
 
10335
        PYTHON="python"
 
10336
    fi
 
10337
    PYTHON_NAME=`basename $PYTHON`
 
10338
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: sqlite3" >&5
 
10339
$as_echo_n "checking $PYTHON_NAME module: sqlite3... " >&6; }
 
10340
        $PYTHON -c "import sqlite3" 2>/dev/null
 
10341
        if test $? -eq 0;
 
10342
        then
 
10343
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10344
$as_echo "yes" >&6; }
 
10345
                eval HAVE_PYMOD_SQLITE3=yes
 
10346
        else
 
10347
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10348
$as_echo "no" >&6; }
 
10349
                eval HAVE_PYMOD_SQLITE3=no
 
10350
                #
 
10351
                if test -n ""
 
10352
                then
 
10353
                        as_fn_error $? "failed to find required module sqlite3" "$LINENO" 5
 
10354
                        exit 1
 
10355
                fi
 
10356
        fi
 
10357
 
 
10358
  # required by ldap.controls.ppolicy:
 
10359
 
 
10360
    if test -z $PYTHON;
 
10361
    then
 
10362
        PYTHON="python"
 
10363
    fi
 
10364
    PYTHON_NAME=`basename $PYTHON`
 
10365
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1" >&5
 
10366
$as_echo_n "checking $PYTHON_NAME module: pyasn1... " >&6; }
 
10367
        $PYTHON -c "import pyasn1" 2>/dev/null
 
10368
        if test $? -eq 0;
 
10369
        then
 
10370
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10371
$as_echo "yes" >&6; }
 
10372
                eval HAVE_PYMOD_PYASN1=yes
 
10373
        else
 
10374
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10375
$as_echo "no" >&6; }
 
10376
                eval HAVE_PYMOD_PYASN1=no
 
10377
                #
 
10378
                if test -n ""
 
10379
                then
 
10380
                        as_fn_error $? "failed to find required module pyasn1" "$LINENO" 5
 
10381
                        exit 1
 
10382
                fi
 
10383
        fi
 
10384
 
 
10385
 
 
10386
    if test -z $PYTHON;
 
10387
    then
 
10388
        PYTHON="python"
 
10389
    fi
 
10390
    PYTHON_NAME=`basename $PYTHON`
 
10391
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1_modules" >&5
 
10392
$as_echo_n "checking $PYTHON_NAME module: pyasn1_modules... " >&6; }
 
10393
        $PYTHON -c "import pyasn1_modules" 2>/dev/null
 
10394
        if test $? -eq 0;
 
10395
        then
 
10396
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10397
$as_echo "yes" >&6; }
 
10398
                eval HAVE_PYMOD_PYASN1_MODULES=yes
 
10399
        else
 
10400
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10401
$as_echo "no" >&6; }
 
10402
                eval HAVE_PYMOD_PYASN1_MODULES=no
 
10403
                #
 
10404
                if test -n ""
 
10405
                then
 
10406
                        as_fn_error $? "failed to find required module pyasn1_modules" "$LINENO" 5
 
10407
                        exit 1
 
10408
                fi
 
10409
        fi
 
10410
 
 
10411
  if test "x$HAVE_PYMOD_DAEMON" != "xyes" || \
 
10412
     test "x$HAVE_PYMOD_FCNTL" != "xyes" || \
 
10413
     test "x$HAVE_PYMOD_FNMATCH" != "xyes" || \
 
10414
     test "x$HAVE_PYMOD_LDAP" != "xyes" || \
 
10415
     test "x$HAVE_PYMOD_SQLITE3" != "xyes" || \
 
10416
     test "x$HAVE_PYMOD_PYASN1" != "xyes" || \
 
10417
     test "x$HAVE_PYMOD_PYASN1_MODULES" != "xyes"
 
10418
  then
 
10419
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5
 
10420
$as_echo "$as_me: WARNING: Required Python modules missing" >&2;}
 
10421
  fi
 
10422
  # optional modules
 
10423
 
 
10424
    if test -z $PYTHON;
 
10425
    then
 
10426
        PYTHON="python"
 
10427
    fi
 
10428
    PYTHON_NAME=`basename $PYTHON`
 
10429
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: setproctitle" >&5
 
10430
$as_echo_n "checking $PYTHON_NAME module: setproctitle... " >&6; }
 
10431
        $PYTHON -c "import setproctitle" 2>/dev/null
 
10432
        if test $? -eq 0;
 
10433
        then
 
10434
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10435
$as_echo "yes" >&6; }
 
10436
                eval HAVE_PYMOD_SETPROCTITLE=yes
 
10437
        else
 
10438
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10439
$as_echo "no" >&6; }
 
10440
                eval HAVE_PYMOD_SETPROCTITLE=no
 
10441
                #
 
10442
                if test -n ""
 
10443
                then
 
10444
                        as_fn_error $? "failed to find required module setproctitle" "$LINENO" 5
 
10445
                        exit 1
 
10446
                fi
 
10447
        fi
 
10448
 
9126
10449
fi
9127
10450
 
9128
10451
 if test "x${with_nss_flavour}" = xglibc; then
9151
10474
 
9152
10475
 
9153
10476
# generate files
9154
 
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"
 
10477
ac_config_files="$ac_config_files Makefile compat/Makefile common/Makefile nss/Makefile pam/Makefile utils/Makefile nslcd/Makefile pynslcd/Makefile man/Makefile tests/Makefile"
 
10478
 
 
10479
ac_config_files="$ac_config_files pynslcd/constants.py"
9155
10480
 
9156
10481
cat >confcache <<\_ACEOF
9157
10482
# This file is a shell script that caches the results of configure
9290
10615
  as_fn_error $? "conditional \"GENMAN\" was never defined.
9291
10616
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9292
10617
fi
 
10618
if test -z "${INSTMAN_TRUE}" && test -z "${INSTMAN_FALSE}"; then
 
10619
  as_fn_error $? "conditional \"INSTMAN\" was never defined.
 
10620
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
10621
fi
 
10622
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
 
10623
  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
 
10624
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
10625
fi
9293
10626
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9294
10627
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9295
10628
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9302
10635
  as_fn_error $? "conditional \"ENABLE_PAM\" was never defined.
9303
10636
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9304
10637
fi
 
10638
if test -z "${ENABLE_UTILS_TRUE}" && test -z "${ENABLE_UTILS_FALSE}"; then
 
10639
  as_fn_error $? "conditional \"ENABLE_UTILS\" was never defined.
 
10640
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
10641
fi
9305
10642
if test -z "${ENABLE_NSLCD_TRUE}" && test -z "${ENABLE_NSLCD_FALSE}"; then
9306
10643
  as_fn_error $? "conditional \"ENABLE_NSLCD\" was never defined.
9307
10644
Usually this means the macro was only invoked conditionally." "$LINENO" 5
9719
11056
# report actual input values of CONFIG_FILES etc. instead of their
9720
11057
# values after options handling.
9721
11058
ac_log="
9722
 
This file was extended by nss-pam-ldapd $as_me 0.8.14, which was
 
11059
This file was extended by nss-pam-ldapd $as_me 0.9.4, which was
9723
11060
generated by GNU Autoconf 2.69.  Invocation command line was
9724
11061
 
9725
11062
  CONFIG_FILES    = $CONFIG_FILES
9786
11123
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9787
11124
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9788
11125
ac_cs_version="\\
9789
 
nss-pam-ldapd config.status 0.8.14
 
11126
nss-pam-ldapd config.status 0.9.4
9790
11127
configured by $0, generated by GNU Autoconf 2.69,
9791
11128
  with options \\"\$ac_cs_config\\"
9792
11129
 
9922
11259
    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
9923
11260
    "nss/Makefile") CONFIG_FILES="$CONFIG_FILES nss/Makefile" ;;
9924
11261
    "pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;;
 
11262
    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
9925
11263
    "nslcd/Makefile") CONFIG_FILES="$CONFIG_FILES nslcd/Makefile" ;;
9926
11264
    "pynslcd/Makefile") CONFIG_FILES="$CONFIG_FILES pynslcd/Makefile" ;;
9927
 
    "pynslcd/config.py") CONFIG_FILES="$CONFIG_FILES pynslcd/config.py" ;;
9928
11265
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9929
11266
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
11267
    "pynslcd/constants.py") CONFIG_FILES="$CONFIG_FILES pynslcd/constants.py" ;;
9930
11268
 
9931
11269
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9932
11270
  esac
10615
11953
  done
10616
11954
}
10617
11955
 ;;
 
11956
    "pynslcd/constants.py":F)
 
11957
(
 
11958
  echo ''
 
11959
  echo '# The following is automatically generated from nslcd.h.'
 
11960
  echo '# See that file for details.'
 
11961
  echo ''
 
11962
  sed -n 's| */\*.*\*/ *||;s/^.define  *\(NSLCD_[A-Z_]*\)  */\1 = /p' "$srcdir"/nslcd.h
 
11963
) >> pynslcd/constants.py ;;
10618
11964
 
10619
11965
  esac
10620
11966
done # for ac_tag