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

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2011-09-04 21:00:00 UTC
  • mfrom: (14.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20110904210000-pe3u91iga88vtr16
Tags: 0.8.4
* Upload to unstable
* switch to using the member attribute by default instead of
  uniqueMember (backwards incompatible change)
* only return "x" as a password hash when the object has the shadowAccount
  objectClass and nsswitch.conf is configured to do shadow lookups using
  LDAP (this avoids some problems with pam_unix)
* fix problem with partial attribute name matches in DN (thanks Timothy
  White)
* fix a problem with objectSid mappings with recent versions of OpenLDAP
  (patch by Wesley Mason)
* set the socket timeout in a connection callback to avoid timeout
  issues during the SSL handshake (patch by Stefan Völkel)
* check for unknown variables in pam_authz_search
* only check password expiration when authenticating, only check account
  expiration when doing authorisation
* make buffer sizes consistent and grow all buffers holding string
  representations of numbers to be able to hold 64-bit numbers
* update AX_PTHREAD from autoconf-archive
* support querying DNS SRV records from a different domain than the current
  one (based on a patch by James M. Leddy)
* fix a problem with uninitialised memory while parsing the tls_ciphers
  option (closes: #638872) (but doesn't work yet due to #640384)
* implement bounds checking of numeric values read from LDAP (patch by
  Jakub Hrozek)
* correctly support large uid and gid values from LDAP (patch by Jakub
  Hrozek)
* improvements to the configure script (patch by Jakub Hrozek)
* switch to dh for debian/rules and bump debhelper compatibility to 8
* build Debian packages with multiarch support
* ship shlibs (but still no symbol files) for libnss-ldapd since that was
  the easiest way to support multiarch
* fix output in init script when restarting nslcd (closes: #637132)
* correctly handle leading and trailing spaces in preseeded debconf uri
  option (patch by Andreas B. Mundt) (closes: #637863)
* support spaces around database names in /etc/nsswitch.conf while
  configuring package (closes: #640185)
* updated Russian debconf translation by Yuri Kozlov (closes: #637751)
* updated French debconf translation by Christian Perrier (closes: #637756)
* added Slovak debconf translation by Slavko (closes: #637759)
* updated Danish debconf translation by Joe Hansen (closes :#637763)
* updated Brazilian Portuguese debconf translation by Denis Doria
* updated Portuguese debconf translation by Américo Monteiro
* updated Japanese debconf translation by Kenshi Muto (closes: #638195)
* updated Czech debconf translation by Miroslav Kure (closes: #639026)
* updated German debconf translation by Chris Leick (closes: #639107)
* updated Spanish debconf translation by Francisco Javier Cuadrado
  (closes: #639236)
* updated Dutch debconf translation by Arthur de Jong with help from Paul
  Gevers and Jeroen Schot

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.67 for nss-pam-ldapd 0.7.13.
 
3
# Generated by GNU Autoconf 2.68 for nss-pam-ldapd 0.8.4.
4
4
#
5
5
# Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
6
6
#
7
7
# Copyright (C) 2006 Luke Howard
8
8
# Copyright (C) 2006 West Consulting
9
 
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Arthur de Jong
 
9
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Arthur de Jong
10
10
#
11
11
# This configure script is derived from configure.ac which is free software;
12
12
# you can redistribute it and/or modify it under the terms of the GNU Lesser
101
101
IFS=" ""        $as_nl"
102
102
 
103
103
# Find who we are.  Look in the path if we contain no directory separator.
 
104
as_myself=
104
105
case $0 in #((
105
106
  *[\\/]* ) as_myself=$0 ;;
106
107
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226
227
  # We cannot yet assume a decent shell, so we have to provide a
227
228
        # neutralization value for shells without unset; and this also
228
229
        # works around shells that cannot unset nonexistent variables.
 
230
        # Preserve -v and -x to the replacement shell.
229
231
        BASH_ENV=/dev/null
230
232
        ENV=/dev/null
231
233
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
234
        export CONFIG_SHELL
233
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
235
        case $- in # ((((
 
236
          *v*x* | *x*v* ) as_opts=-vx ;;
 
237
          *v* ) as_opts=-v ;;
 
238
          *x* ) as_opts=-x ;;
 
239
          * ) as_opts= ;;
 
240
        esac
 
241
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234
242
fi
235
243
 
236
244
    if test x$as_have_required = xno; then :
562
570
# Identity of this package.
563
571
PACKAGE_NAME='nss-pam-ldapd'
564
572
PACKAGE_TARNAME='nss-pam-ldapd'
565
 
PACKAGE_VERSION='0.7.13'
566
 
PACKAGE_STRING='nss-pam-ldapd 0.7.13'
 
573
PACKAGE_VERSION='0.8.4'
 
574
PACKAGE_STRING='nss-pam-ldapd 0.8.4'
567
575
PACKAGE_BUGREPORT='nss-pam-ldapd-users@lists.arthurdejong.org'
568
 
PACKAGE_URL=''
 
576
PACKAGE_URL='http://arthurdejong.org/nss-pam-ldapd/'
569
577
 
570
578
ac_unique_file="nslcd.h"
571
579
ac_default_prefix=
609
617
ac_subst_vars='am__EXEEXT_FALSE
610
618
am__EXEEXT_TRUE
611
619
LTLIBOBJS
 
620
NSS_FLAVOUR_FREEBSD_FALSE
 
621
NSS_FLAVOUR_FREEBSD_TRUE
 
622
NSS_FLAVOUR_SOLARIS_FALSE
 
623
NSS_FLAVOUR_SOLARIS_TRUE
 
624
NSS_FLAVOUR_GLIBC_FALSE
 
625
NSS_FLAVOUR_GLIBC_TRUE
 
626
pkgpyexecdir
 
627
pyexecdir
 
628
pkgpythondir
 
629
pythondir
 
630
PYTHON_PLATFORM
 
631
PYTHON_EXEC_PREFIX
 
632
PYTHON_PREFIX
 
633
PYTHON_VERSION
 
634
PYTHON
612
635
nslcd_LIBS
613
636
PTHREAD_CFLAGS
614
637
PTHREAD_LIBS
615
638
PTHREAD_CC
616
639
ax_pthread_config
 
640
pam_ldap_so_LINK
 
641
pam_ldap_so_LDFLAGS
617
642
LIBOBJS
618
 
HAVE_VERSION_SCRIPT_FLAG_FALSE
619
 
HAVE_VERSION_SCRIPT_FLAG_TRUE
620
 
VERSION_SCRIPT_FLAG
 
643
nss_ldap_so_LINK
 
644
nss_ldap_so_LDFLAGS
 
645
NSS_MODULE_OBJS
 
646
PAM_LDAP_SONAME
621
647
NSS_LDAP_SONAME
 
648
PAM_SECLIB_DIR
622
649
NSLCD_SOCKET
623
650
NSLCD_PIDFILE
624
651
NSLCD_BINDPW_PATH
625
652
NSLCD_CONF_PATH
 
653
ENABLE_CONFIGFILE_CHECKING
 
654
ENABLE_PYNSLCD_FALSE
 
655
ENABLE_PYNSLCD_TRUE
626
656
ENABLE_NSLCD_FALSE
627
657
ENABLE_NSLCD_TRUE
628
658
ENABLE_PAM_FALSE
635
665
GENMAN_FALSE
636
666
GENMAN_TRUE
637
667
DOCBOOK2X_MAN
 
668
LN_S
638
669
EGREP
639
670
GREP
640
671
RANLIB
739
770
enable_nss
740
771
enable_pam
741
772
enable_nslcd
 
773
enable_pynslcd
742
774
enable_sasl
743
775
enable_kerberos
744
776
enable_configfile_checking
746
778
with_bindpw_file
747
779
with_nslcd_pidfile
748
780
with_nslcd_socket
 
781
with_pam_seclib_dir
749
782
with_nss_ldap_soname
 
783
with_pam_ldap_soname
 
784
with_nss_maps
 
785
with_nss_flavour
750
786
with_ldap_lib
751
787
'
752
788
      ac_precious_vars='build_alias
1162
1198
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163
1199
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164
1200
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1201
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166
1202
    ;;
1167
1203
 
1168
1204
  esac
1300
1336
  # Omit some internal or obsolete options to make the list less imposing.
1301
1337
  # This message is too long to be a string in the A/UX 3.1 sh.
1302
1338
  cat <<_ACEOF
1303
 
\`configure' configures nss-pam-ldapd 0.7.13 to adapt to many kinds of systems.
 
1339
\`configure' configures nss-pam-ldapd 0.8.4 to adapt to many kinds of systems.
1304
1340
 
1305
1341
Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1342
 
1371
1407
 
1372
1408
if test -n "$ac_init_help"; then
1373
1409
  case $ac_init_help in
1374
 
     short | recursive ) echo "Configuration of nss-pam-ldapd 0.7.13:";;
 
1410
     short | recursive ) echo "Configuration of nss-pam-ldapd 0.8.4:";;
1375
1411
   esac
1376
1412
  cat <<\_ACEOF
1377
1413
 
1387
1423
                          (and sometimes confusing) to the casual installer
1388
1424
  --disable-nss           build the NSS module [[default=enabled]]
1389
1425
  --disable-pam           build the PAM module [[default=enabled]]
1390
 
  --disable-nslcd         build the nslcd server [[default=enabled]]
 
1426
  --disable-nslcd         build the nslcd daemon [[default=enabled]]
 
1427
  --enable-pynslcd        build the pynslcd daemon [[default=disabled]]
1391
1428
  --disable-sasl          disable SASL support [[default=enabled]]
1392
1429
  --disable-kerberos      disable Kerberos support [[default=enabled]]
1393
1430
  --disable-configfile-checking
1403
1440
                          path to pidfile [/var/run/nslcd/nslcd.pid]
1404
1441
  --with-nslcd-socket=PATH
1405
1442
                          path to socket [/var/run/nslcd/socket]
 
1443
  --with-pam-seclib-dir=PAM_SECLIB_DIR
 
1444
                          path to PAM security library [/lib/security]
1406
1445
  --with-nss-ldap-soname=SONAME
1407
 
                          name of NSS module [libnss_ldap.so.2]
 
1446
                          name of NSS module [auto]
 
1447
  --with-pam-ldap-soname=SONAME
 
1448
                          name of PAM module [auto]
 
1449
  --with-nss-maps=MAP LIST
 
1450
                          comma separated list of NSS maps to build [all]
 
1451
  --with-nss-flavour=auto|glibc|solaris|freebsd
 
1452
                          the libc flavour to build our NSS module for [auto]
1408
1453
  --with-ldap-lib=TYPE    select ldap library
1409
1454
                          (auto|netscape5|netscape4|netscape3|umich|openldap)
1410
1455
                          [auto]
1423
1468
it to find libraries and programs with nonstandard names/locations.
1424
1469
 
1425
1470
Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
 
1471
nss-pam-ldapd home page: <http://arthurdejong.org/nss-pam-ldapd/>.
1426
1472
_ACEOF
1427
1473
ac_status=$?
1428
1474
fi
1485
1531
test -n "$ac_init_help" && exit $ac_status
1486
1532
if $ac_init_version; then
1487
1533
  cat <<\_ACEOF
1488
 
nss-pam-ldapd configure 0.7.13
1489
 
generated by GNU Autoconf 2.67
 
1534
nss-pam-ldapd configure 0.8.4
 
1535
generated by GNU Autoconf 2.68
1490
1536
 
1491
1537
Copyright (C) 2010 Free Software Foundation, Inc.
1492
1538
This configure script is free software; the Free Software Foundation
1494
1540
 
1495
1541
Copyright (C) 2006 Luke Howard
1496
1542
Copyright (C) 2006 West Consulting
1497
 
Copyright (C) 2006, 2007, 2008, 2009, 2010 Arthur de Jong
 
1543
Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Arthur de Jong
1498
1544
 
1499
1545
This configure script is derived from configure.ac which is free software;
1500
1546
you can redistribute it and/or modify it under the terms of the GNU Lesser
1542
1588
 
1543
1589
        ac_retval=1
1544
1590
fi
1545
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1591
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546
1592
  as_fn_set_status $ac_retval
1547
1593
 
1548
1594
} # ac_fn_c_try_compile
1579
1625
 
1580
1626
    ac_retval=1
1581
1627
fi
1582
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1628
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583
1629
  as_fn_set_status $ac_retval
1584
1630
 
1585
1631
} # ac_fn_c_try_cpp
1592
1638
ac_fn_c_check_header_mongrel ()
1593
1639
{
1594
1640
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595
 
  if eval "test \"\${$3+set}\"" = set; then :
 
1641
  if eval \${$3+:} false; then :
1596
1642
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597
1643
$as_echo_n "checking for $2... " >&6; }
1598
 
if eval "test \"\${$3+set}\"" = set; then :
 
1644
if eval \${$3+:} false; then :
1599
1645
  $as_echo_n "(cached) " >&6
1600
1646
fi
1601
1647
eval ac_res=\$$3
1662
1708
esac
1663
1709
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664
1710
$as_echo_n "checking for $2... " >&6; }
1665
 
if eval "test \"\${$3+set}\"" = set; then :
 
1711
if eval \${$3+:} false; then :
1666
1712
  $as_echo_n "(cached) " >&6
1667
1713
else
1668
1714
  eval "$3=\$ac_header_compiler"
1671
1717
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672
1718
$as_echo "$ac_res" >&6; }
1673
1719
fi
1674
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1720
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1721
 
1676
1722
} # ac_fn_c_check_header_mongrel
1677
1723
 
1712
1758
       ac_retval=$ac_status
1713
1759
fi
1714
1760
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1761
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1762
  as_fn_set_status $ac_retval
1717
1763
 
1718
1764
} # ac_fn_c_try_run
1726
1772
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727
1773
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728
1774
$as_echo_n "checking for $2... " >&6; }
1729
 
if eval "test \"\${$3+set}\"" = set; then :
 
1775
if eval \${$3+:} false; then :
1730
1776
  $as_echo_n "(cached) " >&6
1731
1777
else
1732
1778
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744
1790
eval ac_res=\$$3
1745
1791
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746
1792
$as_echo "$ac_res" >&6; }
1747
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1793
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1794
 
1749
1795
} # ac_fn_c_check_header_compile
1750
1796
 
1789
1835
  # interfere with the next link command; also delete a directory that is
1790
1836
  # left behind by Apple's compiler.  We do this before executing the actions.
1791
1837
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1838
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1839
  as_fn_set_status $ac_retval
1794
1840
 
1795
1841
} # ac_fn_c_try_link
1802
1848
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
1849
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804
1850
$as_echo_n "checking for $2... " >&6; }
1805
 
if eval "test \"\${$3+set}\"" = set; then :
 
1851
if eval \${$3+:} false; then :
1806
1852
  $as_echo_n "(cached) " >&6
1807
1853
else
1808
1854
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857
1903
eval ac_res=\$$3
1858
1904
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859
1905
$as_echo "$ac_res" >&6; }
1860
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1906
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1907
 
1862
1908
} # ac_fn_c_check_func
1863
1909
 
1870
1916
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871
1917
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872
1918
$as_echo_n "checking for $2... " >&6; }
1873
 
if eval "test \"\${$3+set}\"" = set; then :
 
1919
if eval \${$3+:} false; then :
1874
1920
  $as_echo_n "(cached) " >&6
1875
1921
else
1876
1922
  eval "$3=no"
1911
1957
eval ac_res=\$$3
1912
1958
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913
1959
$as_echo "$ac_res" >&6; }
1914
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1960
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1961
 
1916
1962
} # ac_fn_c_check_type
1917
1963
 
1924
1970
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925
1971
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1926
1972
$as_echo_n "checking for int$2_t... " >&6; }
1927
 
if eval "test \"\${$3+set}\"" = set; then :
 
1973
if eval \${$3+:} false; then :
1928
1974
  $as_echo_n "(cached) " >&6
1929
1975
else
1930
1976
  eval "$3=no"
1985
2031
eval ac_res=\$$3
1986
2032
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987
2033
$as_echo "$ac_res" >&6; }
1988
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2034
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
2035
 
1990
2036
} # ac_fn_c_find_intX_t
1991
2037
 
1998
2044
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999
2045
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2000
2046
$as_echo_n "checking for uint$2_t... " >&6; }
2001
 
if eval "test \"\${$3+set}\"" = set; then :
 
2047
if eval \${$3+:} false; then :
2002
2048
  $as_echo_n "(cached) " >&6
2003
2049
else
2004
2050
  eval "$3=no"
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
2042
2088
 
2043
2089
} # ac_fn_c_find_uintX_t
 
2090
 
 
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
 
2095
# computed
 
2096
ac_fn_c_compute_int ()
 
2097
{
 
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.  */
 
2103
$4
 
2104
int
 
2105
main ()
 
2106
{
 
2107
static int test_array [1 - 2 * !(($2) >= 0)];
 
2108
test_array [0] = 0
 
2109
 
 
2110
  ;
 
2111
  return 0;
 
2112
}
 
2113
_ACEOF
 
2114
if ac_fn_c_try_compile "$LINENO"; then :
 
2115
  ac_lo=0 ac_mid=0
 
2116
  while :; do
 
2117
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2118
/* end confdefs.h.  */
 
2119
$4
 
2120
int
 
2121
main ()
 
2122
{
 
2123
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2124
test_array [0] = 0
 
2125
 
 
2126
  ;
 
2127
  return 0;
 
2128
}
 
2129
_ACEOF
 
2130
if ac_fn_c_try_compile "$LINENO"; then :
 
2131
  ac_hi=$ac_mid; break
 
2132
else
 
2133
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2134
                        if test $ac_lo -le $ac_mid; then
 
2135
                          ac_lo= ac_hi=
 
2136
                          break
 
2137
                        fi
 
2138
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2139
fi
 
2140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2141
  done
 
2142
else
 
2143
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2144
/* end confdefs.h.  */
 
2145
$4
 
2146
int
 
2147
main ()
 
2148
{
 
2149
static int test_array [1 - 2 * !(($2) < 0)];
 
2150
test_array [0] = 0
 
2151
 
 
2152
  ;
 
2153
  return 0;
 
2154
}
 
2155
_ACEOF
 
2156
if ac_fn_c_try_compile "$LINENO"; then :
 
2157
  ac_hi=-1 ac_mid=-1
 
2158
  while :; do
 
2159
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2160
/* end confdefs.h.  */
 
2161
$4
 
2162
int
 
2163
main ()
 
2164
{
 
2165
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2166
test_array [0] = 0
 
2167
 
 
2168
  ;
 
2169
  return 0;
 
2170
}
 
2171
_ACEOF
 
2172
if ac_fn_c_try_compile "$LINENO"; then :
 
2173
  ac_lo=$ac_mid; break
 
2174
else
 
2175
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2176
                        if test $ac_mid -le $ac_hi; then
 
2177
                          ac_lo= ac_hi=
 
2178
                          break
 
2179
                        fi
 
2180
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2181
fi
 
2182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2183
  done
 
2184
else
 
2185
  ac_lo= ac_hi=
 
2186
fi
 
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2188
fi
 
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.  */
 
2195
$4
 
2196
int
 
2197
main ()
 
2198
{
 
2199
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2200
test_array [0] = 0
 
2201
 
 
2202
  ;
 
2203
  return 0;
 
2204
}
 
2205
_ACEOF
 
2206
if ac_fn_c_try_compile "$LINENO"; then :
 
2207
  ac_hi=$ac_mid
 
2208
else
 
2209
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2210
fi
 
2211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2212
done
 
2213
case $ac_lo in #((
 
2214
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2215
'') ac_retval=1 ;;
 
2216
esac
 
2217
  else
 
2218
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2219
/* end confdefs.h.  */
 
2220
$4
 
2221
static long int longval () { return $2; }
 
2222
static unsigned long int ulongval () { return $2; }
 
2223
#include <stdio.h>
 
2224
#include <stdlib.h>
 
2225
int
 
2226
main ()
 
2227
{
 
2228
 
 
2229
  FILE *f = fopen ("conftest.val", "w");
 
2230
  if (! f)
 
2231
    return 1;
 
2232
  if (($2) < 0)
 
2233
    {
 
2234
      long int i = longval ();
 
2235
      if (i != ($2))
 
2236
        return 1;
 
2237
      fprintf (f, "%ld", i);
 
2238
    }
 
2239
  else
 
2240
    {
 
2241
      unsigned long int i = ulongval ();
 
2242
      if (i != ($2))
 
2243
        return 1;
 
2244
      fprintf (f, "%lu", i);
 
2245
    }
 
2246
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2247
     on some platforms.  */
 
2248
  return ferror (f) || fclose (f) != 0;
 
2249
 
 
2250
  ;
 
2251
  return 0;
 
2252
}
 
2253
_ACEOF
 
2254
if ac_fn_c_try_run "$LINENO"; then :
 
2255
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2256
else
 
2257
  ac_retval=1
 
2258
fi
 
2259
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2260
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2261
rm -f conftest.val
 
2262
 
 
2263
  fi
 
2264
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2265
  as_fn_set_status $ac_retval
 
2266
 
 
2267
} # ac_fn_c_compute_int
 
2268
 
 
2269
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
2270
# ---------------------------------------------
 
2271
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
2272
# accordingly.
 
2273
ac_fn_c_check_decl ()
 
2274
{
 
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
 
2282
else
 
2283
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2284
/* end confdefs.h.  */
 
2285
$4
 
2286
int
 
2287
main ()
 
2288
{
 
2289
#ifndef $as_decl_name
 
2290
#ifdef __cplusplus
 
2291
  (void) $as_decl_use;
 
2292
#else
 
2293
  (void) $as_decl_name;
 
2294
#endif
 
2295
#endif
 
2296
 
 
2297
  ;
 
2298
  return 0;
 
2299
}
 
2300
_ACEOF
 
2301
if ac_fn_c_try_compile "$LINENO"; then :
 
2302
  eval "$3=yes"
 
2303
else
 
2304
  eval "$3=no"
 
2305
fi
 
2306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2307
fi
 
2308
eval ac_res=\$$3
 
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
 
2312
 
 
2313
} # ac_fn_c_check_decl
 
2314
 
 
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 ()
 
2320
{
 
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
 
2326
else
 
2327
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2328
/* end confdefs.h.  */
 
2329
$5
 
2330
int
 
2331
main ()
 
2332
{
 
2333
static $2 ac_aggr;
 
2334
if (ac_aggr.$3)
 
2335
return 0;
 
2336
  ;
 
2337
  return 0;
 
2338
}
 
2339
_ACEOF
 
2340
if ac_fn_c_try_compile "$LINENO"; then :
 
2341
  eval "$4=yes"
 
2342
else
 
2343
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2344
/* end confdefs.h.  */
 
2345
$5
 
2346
int
 
2347
main ()
 
2348
{
 
2349
static $2 ac_aggr;
 
2350
if (sizeof ac_aggr.$3)
 
2351
return 0;
 
2352
  ;
 
2353
  return 0;
 
2354
}
 
2355
_ACEOF
 
2356
if ac_fn_c_try_compile "$LINENO"; then :
 
2357
  eval "$4=yes"
 
2358
else
 
2359
  eval "$4=no"
 
2360
fi
 
2361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2362
fi
 
2363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2364
fi
 
2365
eval ac_res=\$$4
 
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
 
2369
 
 
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.
2047
2374
 
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
2050
2377
 
2051
2378
  $ $0 $@
2052
2379
 
2304
2631
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305
2632
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306
2633
as_fn_error $? "failed to load site script $ac_site_file
2307
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
2634
See \`config.log' for more details" "$LINENO" 5; }
2308
2635
  fi
2309
2636
done
2310
2637
 
2393
2720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2721
 
2395
2722
 
2396
 
RELEASE_MONTH="Dec 2010"
2397
 
 
 
2723
RELEASE_MONTH="Sep 2011"
 
2724
 
 
2725
 
 
2726
 
 
2727
# define package URL (remove when switching to 2.64)
2398
2728
 
2399
2729
 
2400
2730
# some initialisation
2433
2763
 
2434
2764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2435
2765
$as_echo_n "checking build system type... " >&6; }
2436
 
if test "${ac_cv_build+set}" = set; then :
 
2766
if ${ac_cv_build+:} false; then :
2437
2767
  $as_echo_n "(cached) " >&6
2438
2768
else
2439
2769
  ac_build_alias=$build_alias
2449
2779
$as_echo "$ac_cv_build" >&6; }
2450
2780
case $ac_cv_build in
2451
2781
*-*-*) ;;
2452
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
2782
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2453
2783
esac
2454
2784
build=$ac_cv_build
2455
2785
ac_save_IFS=$IFS; IFS='-'
2467
2797
 
2468
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2469
2799
$as_echo_n "checking host system type... " >&6; }
2470
 
if test "${ac_cv_host+set}" = set; then :
 
2800
if ${ac_cv_host+:} false; then :
2471
2801
  $as_echo_n "(cached) " >&6
2472
2802
else
2473
2803
  if test "x$host_alias" = x; then
2482
2812
$as_echo "$ac_cv_host" >&6; }
2483
2813
case $ac_cv_host in
2484
2814
*-*-*) ;;
2485
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
2815
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2486
2816
esac
2487
2817
host=$ac_cv_host
2488
2818
ac_save_IFS=$IFS; IFS='-'
2500
2830
 
2501
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2502
2832
$as_echo_n "checking target system type... " >&6; }
2503
 
if test "${ac_cv_target+set}" = set; then :
 
2833
if ${ac_cv_target+:} false; then :
2504
2834
  $as_echo_n "(cached) " >&6
2505
2835
else
2506
2836
  if test "x$target_alias" = x; then
2515
2845
$as_echo "$ac_cv_target" >&6; }
2516
2846
case $ac_cv_target in
2517
2847
*-*-*) ;;
2518
 
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
 
2848
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2519
2849
esac
2520
2850
target=$ac_cv_target
2521
2851
ac_save_IFS=$IFS; IFS='-'
2541
2871
 
2542
2872
 
2543
2873
# display notice and initialize automake
2544
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.7.13" >&5
2545
 
$as_echo "$as_me: configuring nss-pam-ldapd 0.7.13" >&6;}
 
2874
{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.8.4" >&5
 
2875
$as_echo "$as_me: configuring nss-pam-ldapd 0.8.4" >&6;}
2546
2876
am__api_version='1.11'
2547
2877
 
2548
2878
# Find a good install program.  We prefer a C program (faster),
2562
2892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2563
2893
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2564
2894
if test -z "$INSTALL"; then
2565
 
if test "${ac_cv_path_install+set}" = set; then :
 
2895
if ${ac_cv_path_install+:} false; then :
2566
2896
  $as_echo_n "(cached) " >&6
2567
2897
else
2568
2898
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649
2979
'
2650
2980
case `pwd` in
2651
2981
  *[\\\"\#\$\&\'\`$am_lf]*)
2652
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
2982
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2653
2983
esac
2654
2984
case $srcdir in
2655
2985
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2656
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
2986
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2657
2987
esac
2658
2988
 
2659
2989
# Do `set' in a subshell so we don't clobber the current shell's
2739
3069
set dummy ${ac_tool_prefix}strip; ac_word=$2
2740
3070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741
3071
$as_echo_n "checking for $ac_word... " >&6; }
2742
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
3072
if ${ac_cv_prog_STRIP+:} false; then :
2743
3073
  $as_echo_n "(cached) " >&6
2744
3074
else
2745
3075
  if test -n "$STRIP"; then
2779
3109
set dummy strip; ac_word=$2
2780
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781
3111
$as_echo_n "checking for $ac_word... " >&6; }
2782
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
3112
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2783
3113
  $as_echo_n "(cached) " >&6
2784
3114
else
2785
3115
  if test -n "$ac_ct_STRIP"; then
2832
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2833
3163
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2834
3164
if test -z "$MKDIR_P"; then
2835
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
3165
  if ${ac_cv_path_mkdir+:} false; then :
2836
3166
  $as_echo_n "(cached) " >&6
2837
3167
else
2838
3168
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883
3213
set dummy $ac_prog; ac_word=$2
2884
3214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885
3215
$as_echo_n "checking for $ac_word... " >&6; }
2886
 
if test "${ac_cv_prog_AWK+set}" = set; then :
 
3216
if ${ac_cv_prog_AWK+:} false; then :
2887
3217
  $as_echo_n "(cached) " >&6
2888
3218
else
2889
3219
  if test -n "$AWK"; then
2923
3253
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2924
3254
set x ${MAKE-make}
2925
3255
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2926
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
3256
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2927
3257
  $as_echo_n "(cached) " >&6
2928
3258
else
2929
3259
  cat >conftest.make <<\_ACEOF
2981
3311
 
2982
3312
# Define the identity of the package.
2983
3313
 PACKAGE=nss-pam-ldapd
2984
 
 VERSION=0.7.13
 
3314
 VERSION=0.8.4
2985
3315
 
2986
3316
 
2987
3317
cat >>confdefs.h <<_ACEOF
3037
3367
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039
3369
$as_echo_n "checking for $ac_word... " >&6; }
3040
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3370
if ${ac_cv_prog_CC+:} false; then :
3041
3371
  $as_echo_n "(cached) " >&6
3042
3372
else
3043
3373
  if test -n "$CC"; then
3077
3407
set dummy gcc; ac_word=$2
3078
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079
3409
$as_echo_n "checking for $ac_word... " >&6; }
3080
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3410
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081
3411
  $as_echo_n "(cached) " >&6
3082
3412
else
3083
3413
  if test -n "$ac_ct_CC"; then
3130
3460
set dummy ${ac_tool_prefix}cc; ac_word=$2
3131
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132
3462
$as_echo_n "checking for $ac_word... " >&6; }
3133
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3463
if ${ac_cv_prog_CC+:} false; then :
3134
3464
  $as_echo_n "(cached) " >&6
3135
3465
else
3136
3466
  if test -n "$CC"; then
3170
3500
set dummy cc; ac_word=$2
3171
3501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172
3502
$as_echo_n "checking for $ac_word... " >&6; }
3173
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3503
if ${ac_cv_prog_CC+:} false; then :
3174
3504
  $as_echo_n "(cached) " >&6
3175
3505
else
3176
3506
  if test -n "$CC"; then
3229
3559
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231
3561
$as_echo_n "checking for $ac_word... " >&6; }
3232
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3562
if ${ac_cv_prog_CC+:} false; then :
3233
3563
  $as_echo_n "(cached) " >&6
3234
3564
else
3235
3565
  if test -n "$CC"; then
3273
3603
set dummy $ac_prog; ac_word=$2
3274
3604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275
3605
$as_echo_n "checking for $ac_word... " >&6; }
3276
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3606
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3277
3607
  $as_echo_n "(cached) " >&6
3278
3608
else
3279
3609
  if test -n "$ac_ct_CC"; then
3328
3658
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329
3659
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330
3660
as_fn_error $? "no acceptable C compiler found in \$PATH
3331
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
3661
See \`config.log' for more details" "$LINENO" 5; }
3332
3662
 
3333
3663
# Provide some information about the compiler.
3334
3664
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443
3773
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444
3774
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445
3775
as_fn_error 77 "C compiler cannot create executables
3446
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
3776
See \`config.log' for more details" "$LINENO" 5; }
3447
3777
else
3448
3778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449
3779
$as_echo "yes" >&6; }
3486
3816
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487
3817
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488
3818
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3489
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
3819
See \`config.log' for more details" "$LINENO" 5; }
3490
3820
fi
3491
3821
rm -f conftest conftest$ac_cv_exeext
3492
3822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3545
3875
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546
3876
as_fn_error $? "cannot run C compiled programs.
3547
3877
If you meant to cross compile, use \`--host'.
3548
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
3878
See \`config.log' for more details" "$LINENO" 5; }
3549
3879
    fi
3550
3880
  fi
3551
3881
fi
3556
3886
ac_clean_files=$ac_clean_files_save
3557
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3558
3888
$as_echo_n "checking for suffix of object files... " >&6; }
3559
 
if test "${ac_cv_objext+set}" = set; then :
 
3889
if ${ac_cv_objext+:} false; then :
3560
3890
  $as_echo_n "(cached) " >&6
3561
3891
else
3562
3892
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597
3927
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598
3928
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599
3929
as_fn_error $? "cannot compute suffix of object files: cannot compile
3600
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
3930
See \`config.log' for more details" "$LINENO" 5; }
3601
3931
fi
3602
3932
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603
3933
fi
3607
3937
ac_objext=$OBJEXT
3608
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609
3939
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3940
if ${ac_cv_c_compiler_gnu+:} false; then :
3611
3941
  $as_echo_n "(cached) " >&6
3612
3942
else
3613
3943
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644
3974
ac_save_CFLAGS=$CFLAGS
3645
3975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3646
3976
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3647
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3977
if ${ac_cv_prog_cc_g+:} false; then :
3648
3978
  $as_echo_n "(cached) " >&6
3649
3979
else
3650
3980
  ac_save_c_werror_flag=$ac_c_werror_flag
3722
4052
fi
3723
4053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3724
4054
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3725
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4055
if ${ac_cv_prog_cc_c89+:} false; then :
3726
4056
  $as_echo_n "(cached) " >&6
3727
4057
else
3728
4058
  ac_cv_prog_cc_c89=no
3883
4213
 
3884
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3885
4215
$as_echo_n "checking dependency style of $depcc... " >&6; }
3886
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4216
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3887
4217
  $as_echo_n "(cached) " >&6
3888
4218
else
3889
4219
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4018
4348
  CPP=
4019
4349
fi
4020
4350
if test -z "$CPP"; then
4021
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4351
  if ${ac_cv_prog_CPP+:} false; then :
4022
4352
  $as_echo_n "(cached) " >&6
4023
4353
else
4024
4354
      # Double quotes because CPP needs to be expanded
4134
4464
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135
4465
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136
4466
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4137
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
4467
See \`config.log' for more details" "$LINENO" 5; }
4138
4468
fi
4139
4469
 
4140
4470
ac_ext=c
4149
4479
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4150
4480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151
4481
$as_echo_n "checking for $ac_word... " >&6; }
4152
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
4482
if ${ac_cv_prog_RANLIB+:} false; then :
4153
4483
  $as_echo_n "(cached) " >&6
4154
4484
else
4155
4485
  if test -n "$RANLIB"; then
4189
4519
set dummy ranlib; ac_word=$2
4190
4520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191
4521
$as_echo_n "checking for $ac_word... " >&6; }
4192
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
4522
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4193
4523
  $as_echo_n "(cached) " >&6
4194
4524
else
4195
4525
  if test -n "$ac_ct_RANLIB"; then
4245
4575
fi
4246
4576
set dummy $CC; ac_cc=`$as_echo "$2" |
4247
4577
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4248
 
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
 
4578
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4249
4579
  $as_echo_n "(cached) " >&6
4250
4580
else
4251
4581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366
4696
 
4367
4697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4368
4698
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4369
 
if test "${ac_cv_path_GREP+set}" = set; then :
 
4699
if ${ac_cv_path_GREP+:} false; then :
4370
4700
  $as_echo_n "(cached) " >&6
4371
4701
else
4372
4702
  if test -z "$GREP"; then
4429
4759
 
4430
4760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4431
4761
$as_echo_n "checking for egrep... " >&6; }
4432
 
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4762
if ${ac_cv_path_EGREP+:} false; then :
4433
4763
  $as_echo_n "(cached) " >&6
4434
4764
else
4435
4765
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4496
4826
 
4497
4827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4498
4828
$as_echo_n "checking for ANSI C header files... " >&6; }
4499
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
4829
if ${ac_cv_header_stdc+:} false; then :
4500
4830
  $as_echo_n "(cached) " >&6
4501
4831
else
4502
4832
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625
4955
 
4626
4956
 
4627
4957
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4628
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
4958
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4629
4959
  MINIX=yes
4630
4960
else
4631
4961
  MINIX=
4647
4977
 
4648
4978
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4649
4979
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4650
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
4980
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4651
4981
  $as_echo_n "(cached) " >&6
4652
4982
else
4653
4983
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684
5014
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4685
5015
 
4686
5016
 
 
5017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5018
$as_echo_n "checking whether ln -s works... " >&6; }
 
5019
LN_S=$as_ln_s
 
5020
if test "$LN_S" = "ln -s"; then
 
5021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5022
$as_echo "yes" >&6; }
 
5023
else
 
5024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5025
$as_echo "no, using $LN_S" >&6; }
 
5026
fi
 
5027
 
4687
5028
 
4688
5029
# checks for tool to convert docbook to man
4689
5030
for ac_prog in docbook2x-man
4692
5033
set dummy $ac_prog; ac_word=$2
4693
5034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694
5035
$as_echo_n "checking for $ac_word... " >&6; }
4695
 
if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then :
 
5036
if ${ac_cv_path_DOCBOOK2X_MAN+:} false; then :
4696
5037
  $as_echo_n "(cached) " >&6
4697
5038
else
4698
5039
  case $DOCBOOK2X_MAN in
4768
5109
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769
5110
/* end confdefs.h.  */
4770
5111
int main() {}
 
5112
int
 
5113
main ()
 
5114
{
 
5115
 
 
5116
  ;
 
5117
  return 0;
 
5118
}
4771
5119
_ACEOF
4772
5120
  $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
4773
5121
  ret=$?
4857
5205
 
4858
5206
 
4859
5207
# check whether the nslcd daemon should be built
4860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the nslcd server" >&5
4861
 
$as_echo_n "checking whether to build the nslcd server... " >&6; }
 
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the nslcd daemon" >&5
 
5209
$as_echo_n "checking whether to build the nslcd daemon... " >&6; }
4862
5210
# Check whether --enable-nslcd was given.
4863
5211
if test "${enable_nslcd+set}" = set; then :
4864
5212
  enableval=$enable_nslcd;
4877
5225
fi
4878
5226
 
4879
5227
 
 
5228
# check whether the Python version of the nslcd daemon should be built
 
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the pynslcd daemon" >&5
 
5230
$as_echo_n "checking whether to build the pynslcd daemon... " >&6; }
 
5231
# Check whether --enable-pynslcd was given.
 
5232
if test "${enable_pynslcd+set}" = set; then :
 
5233
  enableval=$enable_pynslcd;
 
5234
else
 
5235
  enable_pynslcd="no"
 
5236
fi
 
5237
 
 
5238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pynslcd" >&5
 
5239
$as_echo "$enable_pynslcd" >&6; }
 
5240
 if test "x$enable_pynslcd" = "xyes"; then
 
5241
  ENABLE_PYNSLCD_TRUE=
 
5242
  ENABLE_PYNSLCD_FALSE='#'
 
5243
else
 
5244
  ENABLE_PYNSLCD_TRUE='#'
 
5245
  ENABLE_PYNSLCD_FALSE=
 
5246
fi
 
5247
 
 
5248
if test "x$enable_pynslcd" = "xyes"
 
5249
then
 
5250
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the pynslcd daemon is experimental" >&5
 
5251
$as_echo "$as_me: WARNING: the pynslcd daemon is experimental" >&2;}
 
5252
fi
 
5253
 
4880
5254
# check whether SASL support should be enabled
4881
5255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SASL support" >&5
4882
5256
$as_echo_n "checking whether to enable SASL support... " >&6; }
4920
5294
 
4921
5295
$as_echo "#define ENABLE_CONFIGFILE_CHECKING 1" >>confdefs.h
4922
5296
 
 
5297
  ENABLE_CONFIGFILE_CHECKING=1
 
5298
 
4923
5299
fi
4924
5300
 
4925
5301
# check the name of the configuration file
4985
5361
 
4986
5362
 
4987
5363
 
 
5364
# the directory PAM librabries are expected to be placed into
 
5365
 
 
5366
# Check whether --with-pam-seclib-dir was given.
 
5367
if test "${with_pam_seclib_dir+set}" = set; then :
 
5368
  withval=$with_pam_seclib_dir;  PAM_SECLIB_DIR="$with_pam_seclib_dir"
 
5369
else
 
5370
   PAM_SECLIB_DIR="/lib/security"
 
5371
fi
 
5372
 
 
5373
 
 
5374
cat >>confdefs.h <<_ACEOF
 
5375
#define PAM_SECLIB_DIR "$PAM_SECLIB_DIR"
 
5376
_ACEOF
 
5377
 
 
5378
 
 
5379
 
4988
5380
# the SONAME to use for the NSS module
 
5381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking name of NSS module" >&5
 
5382
$as_echo_n "checking name of NSS module... " >&6; }
4989
5383
 
4990
5384
# Check whether --with-nss-ldap-soname was given.
4991
5385
if test "${with_nss_ldap_soname+set}" = set; then :
4992
5386
  withval=$with_nss_ldap_soname;  NSS_LDAP_SONAME="$with_nss_ldap_soname"
4993
5387
else
4994
 
   NSS_LDAP_SONAME="libnss_ldap.so.2"
 
5388
   NSS_LDAP_SONAME="auto"
4995
5389
fi
4996
5390
 
 
5391
if test "x$NSS_LDAP_SONAME" = "xauto"
 
5392
then
 
5393
  case "$target_os" in
 
5394
    solaris*) NSS_LDAP_SONAME="nss_ldap.so.1" ;;
 
5395
    freebsd*) NSS_LDAP_SONAME="nss_ldap.so.1" ;;
 
5396
    *)        NSS_LDAP_SONAME="libnss_ldap.so.2" ;;
 
5397
  esac
 
5398
fi
 
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSS_LDAP_SONAME" >&5
 
5400
$as_echo "$NSS_LDAP_SONAME" >&6; }
4997
5401
 
4998
5402
cat >>confdefs.h <<_ACEOF
4999
5403
#define NSS_LDAP_SONAME "$NSS_LDAP_SONAME"
5001
5405
 
5002
5406
 
5003
5407
 
 
5408
# the SONAME to use for the PAM module
 
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking name of PAM module" >&5
 
5410
$as_echo_n "checking name of PAM module... " >&6; }
 
5411
 
 
5412
# Check whether --with-pam-ldap-soname was given.
 
5413
if test "${with_pam_ldap_soname+set}" = set; then :
 
5414
  withval=$with_pam_ldap_soname;  PAM_LDAP_SONAME="$with_pam_ldap_soname"
 
5415
else
 
5416
   PAM_LDAP_SONAME="auto"
 
5417
fi
 
5418
 
 
5419
if test "x$PAM_LDAP_SONAME" = "xauto"
 
5420
then
 
5421
  case "$target_os" in
 
5422
    solaris*) PAM_LDAP_SONAME="pam_ldap.so.1" ;;
 
5423
    *)        PAM_LDAP_SONAME="pam_ldap.so" ;;
 
5424
  esac
 
5425
fi
 
5426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAM_LDAP_SONAME" >&5
 
5427
$as_echo "$PAM_LDAP_SONAME" >&6; }
 
5428
 
 
5429
 
 
5430
# check which modules should be build
 
5431
 
 
5432
# Check whether --with-nss-maps was given.
 
5433
if test "${with_nss_maps+set}" = set; then :
 
5434
  withval=$with_nss_maps;
 
5435
else
 
5436
   with_nss_maps="all"
 
5437
fi
 
5438
 
 
5439
 
5004
5440
# checks for availability of header files
5005
5441
for ac_header in ctype.h strings.h pthread.h fcntl.h limits.h
5006
5442
do :
5041
5477
 
5042
5478
done
5043
5479
 
 
5480
for ac_header in nsswitch.h nss_dbdefs.h
 
5481
do :
 
5482
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5483
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5484
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5485
  cat >>confdefs.h <<_ACEOF
 
5486
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5487
_ACEOF
 
5488
 
 
5489
fi
 
5490
 
 
5491
done
 
5492
 
5044
5493
for ac_header in sys/socket.h sys/un.h sys/ucred.h ucred.h sys/param.h sys/time.h
5045
5494
do :
5046
5495
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5071
5520
# other general checks
5072
5521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5073
5522
$as_echo_n "checking for inline... " >&6; }
5074
 
if test "${ac_cv_c_inline+set}" = set; then :
 
5523
if ${ac_cv_c_inline+:} false; then :
5075
5524
  $as_echo_n "(cached) " >&6
5076
5525
else
5077
5526
  ac_cv_c_inline=no
5113
5562
 
5114
5563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5115
5564
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5116
 
if test "${ac_cv_c_const+set}" = set; then :
 
5565
if ${ac_cv_c_const+:} false; then :
5117
5566
  $as_echo_n "(cached) " >&6
5118
5567
else
5119
5568
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208
5657
for ac_func in gethostbyname
5209
5658
do :
5210
5659
  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5211
 
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
 
5660
if test "x$ac_cv_func_gethostbyname" = xyes; then :
5212
5661
  cat >>confdefs.h <<_ACEOF
5213
5662
#define HAVE_GETHOSTBYNAME 1
5214
5663
_ACEOF
5218
5667
 
5219
5668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5220
5669
$as_echo_n "checking for library containing socket... " >&6; }
5221
 
if test "${ac_cv_search_socket+set}" = set; then :
 
5670
if ${ac_cv_search_socket+:} false; then :
5222
5671
  $as_echo_n "(cached) " >&6
5223
5672
else
5224
5673
  ac_func_search_save_LIBS=$LIBS
5252
5701
fi
5253
5702
rm -f core conftest.err conftest.$ac_objext \
5254
5703
    conftest$ac_exeext
5255
 
  if test "${ac_cv_search_socket+set}" = set; then :
 
5704
  if ${ac_cv_search_socket+:} false; then :
5256
5705
  break
5257
5706
fi
5258
5707
done
5259
 
if test "${ac_cv_search_socket+set}" = set; then :
 
5708
if ${ac_cv_search_socket+:} false; then :
5260
5709
 
5261
5710
else
5262
5711
  ac_cv_search_socket=no
5272
5721
 
5273
5722
fi
5274
5723
 
5275
 
for ac_func in strcasecmp strncasecmp strchr strcspn strspn strtol
 
5724
for ac_func in strcasecmp strncasecmp strchr strcspn strspn strtol strtoul strtoull
5276
5725
do :
5277
5726
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5278
5727
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5297
5746
done
5298
5747
 
5299
5748
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5300
 
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
5749
if test "x$ac_cv_type_pid_t" = xyes; then :
5301
5750
 
5302
5751
else
5303
5752
 
5310
5759
for ac_header in vfork.h
5311
5760
do :
5312
5761
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5313
 
if test "x$ac_cv_header_vfork_h" = x""yes; then :
 
5762
if test "x$ac_cv_header_vfork_h" = xyes; then :
5314
5763
  cat >>confdefs.h <<_ACEOF
5315
5764
#define HAVE_VFORK_H 1
5316
5765
_ACEOF
5334
5783
if test "x$ac_cv_func_fork" = xyes; then
5335
5784
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5336
5785
$as_echo_n "checking for working fork... " >&6; }
5337
 
if test "${ac_cv_func_fork_works+set}" = set; then :
 
5786
if ${ac_cv_func_fork_works+:} false; then :
5338
5787
  $as_echo_n "(cached) " >&6
5339
5788
else
5340
5789
  if test "$cross_compiling" = yes; then :
5387
5836
if test "x$ac_cv_func_vfork" = xyes; then
5388
5837
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5389
5838
$as_echo_n "checking for working vfork... " >&6; }
5390
 
if test "${ac_cv_func_vfork_works+set}" = set; then :
 
5839
if ${ac_cv_func_vfork_works+:} false; then :
5391
5840
  $as_echo_n "(cached) " >&6
5392
5841
else
5393
5842
  if test "$cross_compiling" = yes; then :
5520
5969
 
5521
5970
fi
5522
5971
 
 
5972
for ac_func in __assert_fail
 
5973
do :
 
5974
  ac_fn_c_check_func "$LINENO" "__assert_fail" "ac_cv_func___assert_fail"
 
5975
if test "x$ac_cv_func___assert_fail" = xyes; then :
 
5976
  cat >>confdefs.h <<_ACEOF
 
5977
#define HAVE___ASSERT_FAIL 1
 
5978
_ACEOF
 
5979
 
 
5980
fi
 
5981
done
 
5982
 
5523
5983
 
5524
5984
# checks for types
5525
5985
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5526
 
if test "x$ac_cv_type_mode_t" = x""yes; then :
 
5986
if test "x$ac_cv_type_mode_t" = xyes; then :
5527
5987
 
5528
5988
else
5529
5989
 
5534
5994
fi
5535
5995
 
5536
5996
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5537
 
if test "x$ac_cv_type_size_t" = x""yes; then :
 
5997
if test "x$ac_cv_type_size_t" = xyes; then :
5538
5998
 
5539
5999
else
5540
6000
 
5546
6006
 
5547
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5548
6008
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5549
 
if test "${ac_cv_type_uid_t+set}" = set; then :
 
6009
if ${ac_cv_type_uid_t+:} false; then :
5550
6010
  $as_echo_n "(cached) " >&6
5551
6011
else
5552
6012
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575
6035
fi
5576
6036
 
5577
6037
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5578
 
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
6038
if test "x$ac_cv_type_pid_t" = xyes; then :
5579
6039
 
5580
6040
else
5581
6041
 
5636
6096
;;
5637
6097
  esac
5638
6098
 
 
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
 
6107
else
 
6108
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
 
6109
 
 
6110
else
 
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; }
 
6116
   else
 
6117
     ac_cv_sizeof_unsigned_int=0
 
6118
   fi
 
6119
fi
 
6120
 
 
6121
fi
 
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
 
6123
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
 
6124
 
 
6125
 
 
6126
 
 
6127
cat >>confdefs.h <<_ACEOF
 
6128
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
 
6129
_ACEOF
 
6130
 
 
6131
 
 
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
 
6140
else
 
6141
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
 
6142
 
 
6143
else
 
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; }
 
6149
   else
 
6150
     ac_cv_sizeof_unsigned_long_int=0
 
6151
   fi
 
6152
fi
 
6153
 
 
6154
fi
 
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; }
 
6157
 
 
6158
 
 
6159
 
 
6160
cat >>confdefs.h <<_ACEOF
 
6161
#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
 
6162
_ACEOF
 
6163
 
 
6164
 
 
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
 
6173
else
 
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 :
 
6175
 
 
6176
else
 
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; }
 
6182
   else
 
6183
     ac_cv_sizeof_unsigned_long_long_int=0
 
6184
   fi
 
6185
fi
 
6186
 
 
6187
fi
 
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; }
 
6190
 
 
6191
 
 
6192
 
 
6193
cat >>confdefs.h <<_ACEOF
 
6194
#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
 
6195
_ACEOF
 
6196
 
 
6197
 
 
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
 
6206
else
 
6207
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t"        "$ac_includes_default"; then :
 
6208
 
 
6209
else
 
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; }
 
6215
   else
 
6216
     ac_cv_sizeof_uid_t=0
 
6217
   fi
 
6218
fi
 
6219
 
 
6220
fi
 
6221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
 
6222
$as_echo "$ac_cv_sizeof_uid_t" >&6; }
 
6223
 
 
6224
 
 
6225
 
 
6226
cat >>confdefs.h <<_ACEOF
 
6227
#define SIZEOF_UID_T $ac_cv_sizeof_uid_t
 
6228
_ACEOF
 
6229
 
 
6230
 
 
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
 
6239
else
 
6240
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t"        "$ac_includes_default"; then :
 
6241
 
 
6242
else
 
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; }
 
6248
   else
 
6249
     ac_cv_sizeof_gid_t=0
 
6250
   fi
 
6251
fi
 
6252
 
 
6253
fi
 
6254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
 
6255
$as_echo "$ac_cv_sizeof_gid_t" >&6; }
 
6256
 
 
6257
 
 
6258
 
 
6259
cat >>confdefs.h <<_ACEOF
 
6260
#define SIZEOF_GID_T $ac_cv_sizeof_gid_t
 
6261
_ACEOF
 
6262
 
 
6263
 
5639
6264
 
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
5645
6270
else
5646
6271
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672
6297
 
5673
6298
fi
5674
6299
 
5675
 
# check how to pass a symbol map to the linker
5676
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how linker wants the symbol map" >&5
5677
 
$as_echo_n "checking how linker wants the symbol map... " >&6; }
5678
 
if $CC -Wl,--help 2>&1 | grep -- --version-script >/dev/null
5679
 
then
5680
 
  VERSION_SCRIPT_FLAG="-Wl,--version-script,"
5681
 
 
5682
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --version-script" >&5
5683
 
$as_echo "--version-script" >&6; }
5684
 
elif $CC -Wl,--help 2>&1 | grep -- '-M mapfile' >/dev/null
5685
 
then
5686
 
  VERSION_SCRIPT_FLAG="-Wl,-M,"
5687
 
 
5688
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
5689
 
$as_echo "-M" >&6; }
5690
 
else
5691
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown, not passing symbol map" >&5
5692
 
$as_echo "unknown, not passing symbol map" >&6; }
5693
 
fi
5694
 
 if test "x${VERSION_SCRIPT_FLAG}" != x; then
5695
 
  HAVE_VERSION_SCRIPT_FLAG_TRUE=
5696
 
  HAVE_VERSION_SCRIPT_FLAG_FALSE='#'
5697
 
else
5698
 
  HAVE_VERSION_SCRIPT_FLAG_TRUE='#'
5699
 
  HAVE_VERSION_SCRIPT_FLAG_FALSE=
5700
 
fi
5701
 
 
5702
 
 
5703
6300
# check for support for the struct ether_addr structure
5704
6301
ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
 
6302
    #include <sys/types.h>
5705
6303
    #include <sys/socket.h>
5706
6304
    #include <net/if.h>
5707
6305
    #include <netinet/in.h>
5710
6308
    #include <netinet/ether.h>
5711
6309
    #endif
5712
6310
"
5713
 
if test "x$ac_cv_type_struct_ether_addr" = x""yes; then :
 
6311
if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5714
6312
 
5715
6313
cat >>confdefs.h <<_ACEOF
5716
6314
#define HAVE_STRUCT_ETHER_ADDR 1
5720
6318
fi
5721
6319
 
5722
6320
 
 
6321
# check for ether_aton and ether_ntoa functions
 
6322
for ac_func in ether_aton ether_ntoa ether_aton_r ether_ntoa_r
 
6323
do :
 
6324
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6325
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6326
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
6327
  cat >>confdefs.h <<_ACEOF
 
6328
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6329
_ACEOF
 
6330
 
 
6331
fi
 
6332
done
 
6333
 
 
6334
ac_fn_c_check_decl "$LINENO" "ether_aton" "ac_cv_have_decl_ether_aton" "
 
6335
    #include <sys/types.h>
 
6336
    #include <sys/socket.h>
 
6337
    #include <net/if.h>
 
6338
    #include <netinet/in.h>
 
6339
    #include <netinet/if_ether.h>
 
6340
    #ifdef HAVE_NETINET_ETHER_H
 
6341
    #include <netinet/ether.h>
 
6342
    #endif
 
6343
"
 
6344
if test "x$ac_cv_have_decl_ether_aton" = xyes; then :
 
6345
  ac_have_decl=1
 
6346
else
 
6347
  ac_have_decl=0
 
6348
fi
 
6349
 
 
6350
cat >>confdefs.h <<_ACEOF
 
6351
#define HAVE_DECL_ETHER_ATON $ac_have_decl
 
6352
_ACEOF
 
6353
ac_fn_c_check_decl "$LINENO" "ether_ntoa" "ac_cv_have_decl_ether_ntoa" "
 
6354
    #include <sys/types.h>
 
6355
    #include <sys/socket.h>
 
6356
    #include <net/if.h>
 
6357
    #include <netinet/in.h>
 
6358
    #include <netinet/if_ether.h>
 
6359
    #ifdef HAVE_NETINET_ETHER_H
 
6360
    #include <netinet/ether.h>
 
6361
    #endif
 
6362
"
 
6363
if test "x$ac_cv_have_decl_ether_ntoa" = xyes; then :
 
6364
  ac_have_decl=1
 
6365
else
 
6366
  ac_have_decl=0
 
6367
fi
 
6368
 
 
6369
cat >>confdefs.h <<_ACEOF
 
6370
#define HAVE_DECL_ETHER_NTOA $ac_have_decl
 
6371
_ACEOF
 
6372
 
 
6373
 
5723
6374
# check to see if socklen_t is defined
5724
6375
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5725
6376
    #include <sys/types.h>
5726
6377
    #include <sys/socket.h>
5727
6378
"
5728
 
if test "x$ac_cv_type_socklen_t" = x""yes; then :
 
6379
if test "x$ac_cv_type_socklen_t" = xyes; then :
5729
6380
 
5730
6381
else
5731
6382
 
5747
6398
      #include <aliases.h>
5748
6399
      #endif
5749
6400
"
5750
 
if test "x$ac_cv_type_struct_aliasent" = x""yes; then :
 
6401
if test "x$ac_cv_type_struct_aliasent" = xyes; then :
5751
6402
 
5752
6403
cat >>confdefs.h <<_ACEOF
5753
6404
#define HAVE_STRUCT_ALIASENT 1
5767
6418
    #include <netinet/ether.h>
5768
6419
    #endif
5769
6420
"
5770
 
if test "x$ac_cv_type_struct_etherent" = x""yes; then :
 
6421
if test "x$ac_cv_type_struct_etherent" = xyes; then :
5771
6422
 
5772
6423
cat >>confdefs.h <<_ACEOF
5773
6424
#define HAVE_STRUCT_ETHERENT 1
5784
6435
      #include <rpc/rpcent.h>
5785
6436
      #endif
5786
6437
"
5787
 
if test "x$ac_cv_type_struct_rpcent" = x""yes; then :
 
6438
if test "x$ac_cv_type_struct_rpcent" = xyes; then :
5788
6439
 
5789
6440
cat >>confdefs.h <<_ACEOF
5790
6441
#define HAVE_STRUCT_RPCENT 1
5794
6445
fi
5795
6446
 
5796
6447
 
5797
 
  # check for a definition of enum nss_status
 
6448
  # check for a definition of enum nss_status and nss_backend_t
5798
6449
  ac_fn_c_check_type "$LINENO" "enum nss_status" "ac_cv_type_enum_nss_status" "
5799
6450
      #ifdef HAVE_NSS_H
5800
6451
      #include <nss.h>
5802
6453
      #ifdef HAVE_NSS_COMMON_H
5803
6454
      #include <nss_common.h>
5804
6455
      #endif
 
6456
      #ifdef HAVE_NSS_DBDEFS_H
 
6457
      #include <nss_dbdefs.h>
 
6458
      #endif
 
6459
      #ifdef HAVE_NSSWITCH_H
 
6460
      #include <nsswitch.h>
 
6461
      #endif
 
6462
      #ifdef HAVE_IRS_NSS_H
 
6463
      #include \"irs-nss.h\"
 
6464
      #endif
5805
6465
"
5806
 
if test "x$ac_cv_type_enum_nss_status" = x""yes; then :
 
6466
if test "x$ac_cv_type_enum_nss_status" = xyes; then :
5807
6467
 
5808
6468
cat >>confdefs.h <<_ACEOF
5809
6469
#define HAVE_ENUM_NSS_STATUS 1
5811
6471
 
5812
6472
 
5813
6473
fi
 
6474
ac_fn_c_check_type "$LINENO" "nss_backend_t" "ac_cv_type_nss_backend_t" "
 
6475
      #ifdef HAVE_NSS_H
 
6476
      #include <nss.h>
 
6477
      #endif
 
6478
      #ifdef HAVE_NSS_COMMON_H
 
6479
      #include <nss_common.h>
 
6480
      #endif
 
6481
      #ifdef HAVE_NSS_DBDEFS_H
 
6482
      #include <nss_dbdefs.h>
 
6483
      #endif
 
6484
      #ifdef HAVE_NSSWITCH_H
 
6485
      #include <nsswitch.h>
 
6486
      #endif
 
6487
      #ifdef HAVE_IRS_NSS_H
 
6488
      #include \"irs-nss.h\"
 
6489
      #endif
 
6490
"
 
6491
if test "x$ac_cv_type_nss_backend_t" = xyes; then :
 
6492
 
 
6493
cat >>confdefs.h <<_ACEOF
 
6494
#define HAVE_NSS_BACKEND_T 1
 
6495
_ACEOF
 
6496
 
 
6497
 
 
6498
fi
 
6499
 
 
6500
 
 
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" "
 
6503
      #ifdef HAVE_NSS_H
 
6504
      #include <nss.h>
 
6505
      #endif
 
6506
      #ifdef HAVE_NSS_COMMON_H
 
6507
      #include <nss_common.h>
 
6508
      #endif
 
6509
      #ifdef HAVE_NSS_DBDEFS_H
 
6510
      #include <nss_dbdefs.h>
 
6511
      #endif
 
6512
      #ifdef HAVE_NSSWITCH_H
 
6513
      #include <nsswitch.h>
 
6514
      #endif
 
6515
      #ifdef HAVE_IRS_NSS_H
 
6516
      #include \"irs-nss.h\"
 
6517
      #endif
 
6518
"
 
6519
if test "x$ac_cv_member_struct_nss_XbyY_args_returnlen" = xyes; then :
 
6520
 
 
6521
cat >>confdefs.h <<_ACEOF
 
6522
#define HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN 1
 
6523
_ACEOF
 
6524
 
 
6525
 
 
6526
fi
 
6527
 
 
6528
 
 
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; }
 
6532
 
 
6533
# Check whether --with-nss-flavour was given.
 
6534
if test "${with_nss_flavour+set}" = set; then :
 
6535
  withval=$with_nss_flavour;
 
6536
else
 
6537
  with_nss_flavour=auto
 
6538
fi
 
6539
 
 
6540
  if test "x$with_nss_flavour" = "xauto"
 
6541
  then
 
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 ;;
 
6547
    esac
 
6548
  fi
 
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
 
6552
    glibc)
 
6553
$as_echo "#define NSS_FLAVOUR_GLIBC 1" >>confdefs.h
 
6554
 ;;
 
6555
    solaris)
 
6556
$as_echo "#define NSS_FLAVOUR_SOLARIS 1" >>confdefs.h
 
6557
 ;;
 
6558
    freebsd)
 
6559
$as_echo "#define NSS_FLAVOUR_FREEBSD 1" >>confdefs.h
 
6560
 ;;
 
6561
  esac
 
6562
 
 
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"
 
6567
  then
 
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" ;;
 
6572
    esac
 
6573
  fi
 
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')"
 
6577
 
 
6578
 
 
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
 
6582
  solaris*)
 
6583
    if test "x$GCC" = xyes
 
6584
    then
 
6585
      nss_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M \$(srcdir)/exports.solaris -G -o \$@"
 
6586
    else
 
6587
      nss_ldap_so_LDFLAGS="-Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,\$(srcdir)/exports.solaris -Wl,-G"
 
6588
    fi
 
6589
    ;;
 
6590
  *)
 
6591
    nss_ldap_so_LDFLAGS="-shared -Wl,-h,\$(NSS_LDAP_SONAME) -Wl,--version-script,\$(srcdir)/exports.$with_nss_flavour"
 
6592
    ;;
 
6593
  esac
 
6594
 
5814
6595
 
5815
6596
 
5816
6597
  # restore CFLAGS and LIBS
5829
6610
  for ac_header in security/pam_appl.h
5830
6611
do :
5831
6612
  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
5832
 
if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
 
6613
if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
5833
6614
  cat >>confdefs.h <<_ACEOF
5834
6615
#define HAVE_SECURITY_PAM_APPL_H 1
5835
6616
_ACEOF
5846
6627
      #endif
5847
6628
 
5848
6629
"
5849
 
if test "x$ac_cv_header_security_pam_modules_h" = x""yes; then :
 
6630
if test "x$ac_cv_header_security_pam_modules_h" = xyes; then :
5850
6631
  cat >>confdefs.h <<_ACEOF
5851
6632
#define HAVE_SECURITY_PAM_MODULES_H 1
5852
6633
_ACEOF
5858
6639
  for ac_header in pam/pam_modules.h
5859
6640
do :
5860
6641
  ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "$ac_includes_default"
5861
 
if test "x$ac_cv_header_pam_pam_modules_h" = x""yes; then :
 
6642
if test "x$ac_cv_header_pam_pam_modules_h" = xyes; then :
5862
6643
  cat >>confdefs.h <<_ACEOF
5863
6644
#define HAVE_PAM_PAM_MODULES_H 1
5864
6645
_ACEOF
5870
6651
  for ac_header in security/pam_ext.h
5871
6652
do :
5872
6653
  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_ext.h" "ac_cv_header_security_pam_ext_h" "$ac_includes_default"
5873
 
if test "x$ac_cv_header_security_pam_ext_h" = x""yes; then :
 
6654
if test "x$ac_cv_header_security_pam_ext_h" = xyes; then :
5874
6655
  cat >>confdefs.h <<_ACEOF
5875
6656
#define HAVE_SECURITY_PAM_EXT_H 1
5876
6657
_ACEOF
5882
6663
  for ac_header in security/pam_modutil.h
5883
6664
do :
5884
6665
  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_modutil.h" "ac_cv_header_security_pam_modutil_h" "$ac_includes_default"
5885
 
if test "x$ac_cv_header_security_pam_modutil_h" = x""yes; then :
 
6666
if test "x$ac_cv_header_security_pam_modutil_h" = xyes; then :
5886
6667
  cat >>confdefs.h <<_ACEOF
5887
6668
#define HAVE_SECURITY_PAM_MODUTIL_H 1
5888
6669
_ACEOF
5902
6683
  # find pam library
5903
6684
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_get_data" >&5
5904
6685
$as_echo_n "checking for library containing pam_get_data... " >&6; }
5905
 
if test "${ac_cv_search_pam_get_data+set}" = set; then :
 
6686
if ${ac_cv_search_pam_get_data+:} false; then :
5906
6687
  $as_echo_n "(cached) " >&6
5907
6688
else
5908
6689
  ac_func_search_save_LIBS=$LIBS
5936
6717
fi
5937
6718
rm -f core conftest.err conftest.$ac_objext \
5938
6719
    conftest$ac_exeext
5939
 
  if test "${ac_cv_search_pam_get_data+set}" = set; then :
 
6720
  if ${ac_cv_search_pam_get_data+:} false; then :
5940
6721
  break
5941
6722
fi
5942
6723
done
5943
 
if test "${ac_cv_search_pam_get_data+set}" = set; then :
 
6724
if ${ac_cv_search_pam_get_data+:} false; then :
5944
6725
 
5945
6726
else
5946
6727
  ac_cv_search_pam_get_data=no
5961
6742
 
5962
6743
  # replace some PAM functions if they are unavailable
5963
6744
  ac_fn_c_check_func "$LINENO" "pam_get_authtok" "ac_cv_func_pam_get_authtok"
5964
 
if test "x$ac_cv_func_pam_get_authtok" = x""yes; then :
 
6745
if test "x$ac_cv_func_pam_get_authtok" = xyes; then :
5965
6746
  $as_echo "#define HAVE_PAM_GET_AUTHTOK 1" >>confdefs.h
5966
6747
 
5967
6748
else
5974
6755
fi
5975
6756
 
5976
6757
ac_fn_c_check_func "$LINENO" "pam_prompt" "ac_cv_func_pam_prompt"
5977
 
if test "x$ac_cv_func_pam_prompt" = x""yes; then :
 
6758
if test "x$ac_cv_func_pam_prompt" = xyes; then :
5978
6759
  $as_echo "#define HAVE_PAM_PROMPT 1" >>confdefs.h
5979
6760
 
5980
6761
else
6000
6781
done
6001
6782
 
6002
6783
 
 
6784
  # find out how to link the library
 
6785
  pam_ldap_so_LINK="\$(CCLD) \$(AM_CFLAGS) \$(CFLAGS) \$(pam_ldap_so_LDFLAGS) \$(LDFLAGS) -o \$@"
 
6786
  case "$target_os" in
 
6787
  solaris*)
 
6788
    if test "x$GCC" = xyes
 
6789
    then
 
6790
      pam_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M \$(srcdir)/pam_ldap.map -G -o \$@"
 
6791
    else
 
6792
      pam_ldap_so_LDFLAGS="-shared -Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,\$(srcdir)/pam_ldap.map -Wl,-G"
 
6793
    fi
 
6794
    ;;
 
6795
  *)
 
6796
    pam_ldap_so_LDFLAGS="-shared -Wl,--version-script,\$(srcdir)/pam_ldap.map"
 
6797
    ;;
 
6798
  esac
 
6799
 
 
6800
 
 
6801
 
6003
6802
  # restore CFLAGS and LIBS
6004
6803
  CFLAGS="$pam_save_CFLAGS"
6005
6804
  LIBS="$pam_save_LIBS"
6016
6815
  for ac_header in lber.h
6017
6816
do :
6018
6817
  ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
6019
 
if test "x$ac_cv_header_lber_h" = x""yes; then :
 
6818
if test "x$ac_cv_header_lber_h" = xyes; then :
6020
6819
  cat >>confdefs.h <<_ACEOF
6021
6820
#define HAVE_LBER_H 1
6022
6821
_ACEOF
6033
6832
      #endif
6034
6833
 
6035
6834
"
6036
 
if test "x$ac_cv_header_ldap_h" = x""yes; then :
 
6835
if test "x$ac_cv_header_ldap_h" = xyes; then :
6037
6836
  cat >>confdefs.h <<_ACEOF
6038
6837
#define HAVE_LDAP_H 1
6039
6838
_ACEOF
6047
6846
  for ac_header in ldap_ssl.h
6048
6847
do :
6049
6848
  ac_fn_c_check_header_mongrel "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default"
6050
 
if test "x$ac_cv_header_ldap_ssl_h" = x""yes; then :
 
6849
if test "x$ac_cv_header_ldap_ssl_h" = xyes; then :
6051
6850
  cat >>confdefs.h <<_ACEOF
6052
6851
#define HAVE_LDAP_SSL_H 1
6053
6852
_ACEOF
6059
6858
  for ac_header in gssldap.h
6060
6859
do :
6061
6860
  ac_fn_c_check_header_mongrel "$LINENO" "gssldap.h" "ac_cv_header_gssldap_h" "$ac_includes_default"
6062
 
if test "x$ac_cv_header_gssldap_h" = x""yes; then :
 
6861
if test "x$ac_cv_header_gssldap_h" = xyes; then :
6063
6862
  cat >>confdefs.h <<_ACEOF
6064
6863
#define HAVE_GSSLDAP_H 1
6065
6864
_ACEOF
6086
6885
    for ac_header in gsssasl.h
6087
6886
do :
6088
6887
  ac_fn_c_check_header_mongrel "$LINENO" "gsssasl.h" "ac_cv_header_gsssasl_h" "$ac_includes_default"
6089
 
if test "x$ac_cv_header_gsssasl_h" = x""yes; then :
 
6888
if test "x$ac_cv_header_gsssasl_h" = xyes; then :
6090
6889
  cat >>confdefs.h <<_ACEOF
6091
6890
#define HAVE_GSSSASL_H 1
6092
6891
_ACEOF
6112
6911
done
6113
6912
 
6114
6913
  fi
 
6914
  for ac_header in regex.h
 
6915
do :
 
6916
  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
 
6917
if test "x$ac_cv_header_regex_h" = xyes; then :
 
6918
  cat >>confdefs.h <<_ACEOF
 
6919
#define HAVE_REGEX_H 1
 
6920
_ACEOF
 
6921
 
 
6922
fi
 
6923
 
 
6924
done
 
6925
 
6115
6926
 
6116
6927
  # checks for availability of system libraries for nslcd
6117
6928
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6118
6929
$as_echo_n "checking for library containing gethostbyname... " >&6; }
6119
 
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
6930
if ${ac_cv_search_gethostbyname+:} false; then :
6120
6931
  $as_echo_n "(cached) " >&6
6121
6932
else
6122
6933
  ac_func_search_save_LIBS=$LIBS
6150
6961
fi
6151
6962
rm -f core conftest.err conftest.$ac_objext \
6152
6963
    conftest$ac_exeext
6153
 
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
6964
  if ${ac_cv_search_gethostbyname+:} false; then :
6154
6965
  break
6155
6966
fi
6156
6967
done
6157
 
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
6968
if ${ac_cv_search_gethostbyname+:} false; then :
6158
6969
 
6159
6970
else
6160
6971
  ac_cv_search_gethostbyname=no
6170
6981
 
6171
6982
fi
6172
6983
 
 
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
 
6988
else
 
6989
  ac_func_search_save_LIBS=$LIBS
 
6990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6991
/* end confdefs.h.  */
 
6992
 
 
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.  */
 
6996
#ifdef __cplusplus
 
6997
extern "C"
 
6998
#endif
 
6999
char hstrerror ();
 
7000
int
 
7001
main ()
 
7002
{
 
7003
return hstrerror ();
 
7004
  ;
 
7005
  return 0;
 
7006
}
 
7007
_ACEOF
 
7008
for ac_lib in '' resolv; do
 
7009
  if test -z "$ac_lib"; then
 
7010
    ac_res="none required"
 
7011
  else
 
7012
    ac_res=-l$ac_lib
 
7013
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7014
  fi
 
7015
  if ac_fn_c_try_link "$LINENO"; then :
 
7016
  ac_cv_search_hstrerror=$ac_res
 
7017
fi
 
7018
rm -f core conftest.err conftest.$ac_objext \
 
7019
    conftest$ac_exeext
 
7020
  if ${ac_cv_search_hstrerror+:} false; then :
 
7021
  break
 
7022
fi
 
7023
done
 
7024
if ${ac_cv_search_hstrerror+:} false; then :
 
7025
 
 
7026
else
 
7027
  ac_cv_search_hstrerror=no
 
7028
fi
 
7029
rm conftest.$ac_ext
 
7030
LIBS=$ac_func_search_save_LIBS
 
7031
fi
 
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"
 
7037
 
 
7038
fi
 
7039
 
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
6177
7044
else
6178
7045
  ac_func_search_save_LIBS=$LIBS
6206
7073
fi
6207
7074
rm -f core conftest.err conftest.$ac_objext \
6208
7075
    conftest$ac_exeext
6209
 
  if test "${ac_cv_search_socket+set}" = set; then :
 
7076
  if ${ac_cv_search_socket+:} false; then :
6210
7077
  break
6211
7078
fi
6212
7079
done
6213
 
if test "${ac_cv_search_socket+set}" = set; then :
 
7080
if ${ac_cv_search_socket+:} false; then :
6214
7081
 
6215
7082
else
6216
7083
  ac_cv_search_socket=no
6228
7095
 
6229
7096
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6230
7097
$as_echo_n "checking for library containing dlopen... " >&6; }
6231
 
if test "${ac_cv_search_dlopen+set}" = set; then :
 
7098
if ${ac_cv_search_dlopen+:} false; then :
6232
7099
  $as_echo_n "(cached) " >&6
6233
7100
else
6234
7101
  ac_func_search_save_LIBS=$LIBS
6262
7129
fi
6263
7130
rm -f core conftest.err conftest.$ac_objext \
6264
7131
    conftest$ac_exeext
6265
 
  if test "${ac_cv_search_dlopen+set}" = set; then :
 
7132
  if ${ac_cv_search_dlopen+:} false; then :
6266
7133
  break
6267
7134
fi
6268
7135
done
6269
 
if test "${ac_cv_search_dlopen+set}" = set; then :
 
7136
if ${ac_cv_search_dlopen+:} false; then :
6270
7137
 
6271
7138
else
6272
7139
  ac_cv_search_dlopen=no
6287
7154
  for ac_func in setgroups
6288
7155
do :
6289
7156
  ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
6290
 
if test "x$ac_cv_func_setgroups" = x""yes; then :
 
7157
if test "x$ac_cv_func_setgroups" = xyes; then :
6291
7158
  cat >>confdefs.h <<_ACEOF
6292
7159
#define HAVE_SETGROUPS 1
6293
7160
_ACEOF
6298
7165
  for ac_func in getpeereid
6299
7166
do :
6300
7167
  ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
6301
 
if test "x$ac_cv_func_getpeereid" = x""yes; then :
 
7168
if test "x$ac_cv_func_getpeereid" = xyes; then :
6302
7169
  cat >>confdefs.h <<_ACEOF
6303
7170
#define HAVE_GETPEEREID 1
6304
7171
_ACEOF
6309
7176
  for ac_func in getpeerucred
6310
7177
do :
6311
7178
  ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
6312
 
if test "x$ac_cv_func_getpeerucred" = x""yes; then :
 
7179
if test "x$ac_cv_func_getpeerucred" = xyes; then :
6313
7180
  cat >>confdefs.h <<_ACEOF
6314
7181
#define HAVE_GETPEERUCRED 1
6315
7182
_ACEOF
6320
7187
  for ac_func in __nss_configure_lookup
6321
7188
do :
6322
7189
  ac_fn_c_check_func "$LINENO" "__nss_configure_lookup" "ac_cv_func___nss_configure_lookup"
6323
 
if test "x$ac_cv_func___nss_configure_lookup" = x""yes; then :
 
7190
if test "x$ac_cv_func___nss_configure_lookup" = xyes; then :
6324
7191
  cat >>confdefs.h <<_ACEOF
6325
7192
#define HAVE___NSS_CONFIGURE_LOOKUP 1
6326
7193
_ACEOF
6352
7219
fi
6353
7220
done
6354
7221
 
6355
 
 
6356
 
  # replace getopt_long() function if it is not on the system
 
7222
  for ac_func in regcomp regexec regerror
 
7223
do :
 
7224
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7225
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
7226
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
7227
  cat >>confdefs.h <<_ACEOF
 
7228
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7229
_ACEOF
 
7230
 
 
7231
fi
 
7232
done
 
7233
 
 
7234
 
 
7235
  # replace some functions if they are not on the system
6357
7236
  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6358
 
if test "x$ac_cv_func_getopt_long" = x""yes; then :
 
7237
if test "x$ac_cv_func_getopt_long" = xyes; then :
6359
7238
  $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6360
7239
 
6361
7240
else
6368
7247
fi
6369
7248
 
6370
7249
 
 
7250
  ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
 
7251
if test "x$ac_cv_func_strndup" = xyes; then :
 
7252
  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
 
7253
 
 
7254
else
 
7255
  case " $LIBOBJS " in
 
7256
  *" strndup.$ac_objext "* ) ;;
 
7257
  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
 
7258
 ;;
 
7259
esac
 
7260
 
 
7261
fi
 
7262
 
 
7263
 
6371
7264
 
6372
7265
  # replace daemon() function if it is not on the system
6373
7266
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
6374
7267
$as_echo_n "checking for library containing daemon... " >&6; }
6375
 
if test "${ac_cv_search_daemon+set}" = set; then :
 
7268
if ${ac_cv_search_daemon+:} false; then :
6376
7269
  $as_echo_n "(cached) " >&6
6377
7270
else
6378
7271
  ac_func_search_save_LIBS=$LIBS
6406
7299
fi
6407
7300
rm -f core conftest.err conftest.$ac_objext \
6408
7301
    conftest$ac_exeext
6409
 
  if test "${ac_cv_search_daemon+set}" = set; then :
 
7302
  if ${ac_cv_search_daemon+:} false; then :
6410
7303
  break
6411
7304
fi
6412
7305
done
6413
 
if test "${ac_cv_search_daemon+set}" = set; then :
 
7306
if ${ac_cv_search_daemon+:} false; then :
6414
7307
 
6415
7308
else
6416
7309
  ac_cv_search_daemon=no
6427
7320
fi
6428
7321
 
6429
7322
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
6430
 
if test "x$ac_cv_func_daemon" = x""yes; then :
 
7323
if test "x$ac_cv_func_daemon" = xyes; then :
6431
7324
  $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
6432
7325
 
6433
7326
else
6440
7333
fi
6441
7334
 
6442
7335
 
6443
 
 
6444
 
  # replace ether_ntoa_r() and ether_aton_r() if they are not found
 
7336
  ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "#include <unistd.h>
 
7337
"
 
7338
if test "x$ac_cv_have_decl_daemon" = xyes; then :
 
7339
  ac_have_decl=1
 
7340
else
 
7341
  ac_have_decl=0
 
7342
fi
 
7343
 
 
7344
cat >>confdefs.h <<_ACEOF
 
7345
#define HAVE_DECL_DAEMON $ac_have_decl
 
7346
_ACEOF
 
7347
 
 
7348
 
 
7349
  # replace ether_aton_r() and ether_ntoa_r() if they are not found
6445
7350
  for ac_func in ether_aton_r ether_ntoa_r
6446
7351
do :
6447
7352
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6452
7357
_ACEOF
6453
7358
 
6454
7359
else
6455
 
  for ac_func in ether_aton ether_ntoa
6456
 
do :
6457
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6458
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6459
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6460
 
  cat >>confdefs.h <<_ACEOF
6461
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6462
 
_ACEOF
6463
 
 
6464
 
fi
6465
 
done
6466
 
 
6467
 
                                             case " $LIBOBJS " in
 
7360
  case " $LIBOBJS " in
6468
7361
  *" ether.$ac_objext "* ) ;;
6469
7362
  *) LIBOBJS="$LIBOBJS ether.$ac_objext"
6470
7363
 ;;
6479
7372
      #include <sys/types.h>
6480
7373
      #include <sys/socket.h>
6481
7374
"
6482
 
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
 
7375
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
6483
7376
 
6484
7377
else
6485
7378
 
6494
7387
      #include <sys/un.h>
6495
7388
      #include <sys/types.h>
6496
7389
"
6497
 
if test "x$ac_cv_type_struct_ucred" = x""yes; then :
 
7390
if test "x$ac_cv_type_struct_ucred" = xyes; then :
6498
7391
 
6499
7392
$as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
6500
7393
 
6504
7397
  # check threading stuff
6505
7398
 
6506
7399
 
6507
 
 
6508
7400
ac_ext=c
6509
7401
ac_cpp='$CPP $CPPFLAGS'
6510
7402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605
7497
 
6606
7498
        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
6607
7499
        ;;
 
7500
 
 
7501
        *-darwin*)
 
7502
        ax_pthread_flags="-pthread $ax_pthread_flags"
 
7503
        ;;
6608
7504
esac
6609
7505
 
6610
7506
if test x"$ax_pthread_ok" = xno; then
6622
7518
                PTHREAD_CFLAGS="$flag"
6623
7519
                ;;
6624
7520
 
6625
 
                pthread-config)
6626
 
                # Extract the first word of "pthread-config", so it can be a program name with args.
 
7521
                pthread-config)
 
7522
                # Extract the first word of "pthread-config", so it can be a program name with args.
6627
7523
set dummy pthread-config; ac_word=$2
6628
7524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629
7525
$as_echo_n "checking for $ac_word... " >&6; }
6630
 
if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
 
7526
if ${ac_cv_prog_ax_pthread_config+:} false; then :
6631
7527
  $as_echo_n "(cached) " >&6
6632
7528
else
6633
7529
  if test -n "$ax_pthread_config"; then
6661
7557
fi
6662
7558
 
6663
7559
 
6664
 
                if test x"$ax_pthread_config" = xno; then continue; fi
6665
 
                PTHREAD_CFLAGS="`pthread-config --cflags`"
6666
 
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6667
 
                ;;
 
7560
                if test x"$ax_pthread_config" = xno; then continue; fi
 
7561
                PTHREAD_CFLAGS="`pthread-config --cflags`"
 
7562
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
 
7563
                ;;
6668
7564
 
6669
7565
                *)
6670
7566
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
6690
7586
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691
7587
/* end confdefs.h.  */
6692
7588
#include <pthread.h>
6693
 
                     static void routine(void* a) {a=0;}
6694
 
                     static void* start_routine(void* a) {return a;}
 
7589
                        static void routine(void *a) { a = 0; }
 
7590
                        static void *start_routine(void *a) { return a; }
6695
7591
int
6696
7592
main ()
6697
7593
{
6698
7594
pthread_t th; pthread_attr_t attr;
6699
 
                     pthread_join(th, 0);
6700
 
                     pthread_attr_init(&attr);
6701
 
                     pthread_cleanup_push(routine, 0);
6702
 
                     pthread_create(&th,0,start_routine,0);
6703
 
                     pthread_cleanup_pop(0);
 
7595
                        pthread_create(&th, 0, start_routine, 0);
 
7596
                        pthread_join(th, 0);
 
7597
                        pthread_attr_init(&attr);
 
7598
                        pthread_cleanup_push(routine, 0);
 
7599
                        pthread_cleanup_pop(0) /* ; */
6704
7600
  ;
6705
7601
  return 0;
6706
7602
}
6733
7629
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6734
7630
 
6735
7631
        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6736
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
 
7632
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6737
7633
$as_echo_n "checking for joinable pthread attribute... " >&6; }
6738
 
        attr_name=unknown
6739
 
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6740
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7634
        attr_name=unknown
 
7635
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
 
7636
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741
7637
/* end confdefs.h.  */
6742
7638
#include <pthread.h>
6743
7639
int
6744
7640
main ()
6745
7641
{
6746
 
int attr=$attr; return attr;
 
7642
int attr = $attr; return attr /* ; */
6747
7643
  ;
6748
7644
  return 0;
6749
7645
}
6753
7649
fi
6754
7650
rm -f core conftest.err conftest.$ac_objext \
6755
7651
    conftest$ac_exeext conftest.$ac_ext
6756
 
        done
 
7652
        done
6757
7653
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
6758
7654
$as_echo "$attr_name" >&6; }
6759
7655
        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6777
7673
            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6778
7674
        fi
6779
7675
 
 
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
 
7680
else
 
7681
 
 
7682
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7683
/* end confdefs.h.  */
 
7684
 
 
7685
                    #include <pthread.h>
 
7686
int
 
7687
main ()
 
7688
{
 
7689
int i = PTHREAD_PRIO_INHERIT;
 
7690
  ;
 
7691
  return 0;
 
7692
}
 
7693
_ACEOF
 
7694
if ac_fn_c_try_link "$LINENO"; then :
 
7695
  ax_cv_PTHREAD_PRIO_INHERIT=yes
 
7696
else
 
7697
  ax_cv_PTHREAD_PRIO_INHERIT=no
 
7698
fi
 
7699
rm -f core conftest.err conftest.$ac_objext \
 
7700
    conftest$ac_exeext conftest.$ac_ext
 
7701
 
 
7702
fi
 
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 :
 
7706
 
 
7707
$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
 
7708
 
 
7709
fi
 
7710
 
6780
7711
        LIBS="$save_LIBS"
6781
7712
        CFLAGS="$save_CFLAGS"
6782
7713
 
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
6786
7717
do
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
6793
7724
else
6794
7725
  if test -n "$PTHREAD_CC"; then
6827
7758
 
6828
7759
        else
6829
7760
          PTHREAD_CC=$CC
6830
 
        fi
 
7761
        fi
6831
7762
else
6832
7763
        PTHREAD_CC="$CC"
6833
7764
fi
6853
7784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854
7785
 
6855
7786
 
6856
 
  for ac_func in pthread_mutex_lock
 
7787
  pthread_save_CFLAGS="$CFLAGS"
 
7788
  pthread_save_LIBS="$LIBS"
 
7789
  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
7790
  LIBS="$LIBS $PTHREAD_LIBS"
 
7791
  for ac_func in pthread_mutex_lock pthread_join pthread_timedjoin_np
6857
7792
do :
6858
 
  ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
6859
 
if test "x$ac_cv_func_pthread_mutex_lock" = x""yes; then :
 
7793
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7794
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
7795
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6860
7796
  cat >>confdefs.h <<_ACEOF
6861
 
#define HAVE_PTHREAD_MUTEX_LOCK 1
 
7797
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6862
7798
_ACEOF
6863
7799
 
6864
7800
fi
6865
7801
done
6866
7802
 
 
7803
  CFLAGS="$pthread_save_CFLAGS"
 
7804
  LIBS="$pthread_save_LIBS"
 
7805
 
 
7806
  # also use deprecated LDAP functions
 
7807
 
 
7808
$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
 
7809
 
 
7810
  # for compatibility on Solaris
 
7811
 
 
7812
$as_echo "#define LDAP_REFERRALS 1" >>confdefs.h
 
7813
 
6867
7814
 
6868
7815
  # search for an LDAP library (only OpenLDAP is tested)
6869
7816
 
6880
7827
  then
6881
7828
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_search_ext" >&5
6882
7829
$as_echo_n "checking for library containing ldap_search_ext... " >&6; }
6883
 
if test "${ac_cv_search_ldap_search_ext+set}" = set; then :
 
7830
if ${ac_cv_search_ldap_search_ext+:} false; then :
6884
7831
  $as_echo_n "(cached) " >&6
6885
7832
else
6886
7833
  ac_func_search_save_LIBS=$LIBS
6914
7861
fi
6915
7862
rm -f core conftest.err conftest.$ac_objext \
6916
7863
    conftest$ac_exeext
6917
 
  if test "${ac_cv_search_ldap_search_ext+set}" = set; then :
 
7864
  if ${ac_cv_search_ldap_search_ext+:} false; then :
6918
7865
  break
6919
7866
fi
6920
7867
done
6921
 
if test "${ac_cv_search_ldap_search_ext+set}" = set; then :
 
7868
if ${ac_cv_search_ldap_search_ext+:} false; then :
6922
7869
 
6923
7870
else
6924
7871
  ac_cv_search_ldap_search_ext=no
6939
7886
  then
6940
7887
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap50" >&5
6941
7888
$as_echo_n "checking for main in -lldap50... " >&6; }
6942
 
if test "${ac_cv_lib_ldap50_main+set}" = set; then :
 
7889
if ${ac_cv_lib_ldap50_main+:} false; then :
6943
7890
  $as_echo_n "(cached) " >&6
6944
7891
else
6945
7892
  ac_check_lib_save_LIBS=$LIBS
6967
7914
fi
6968
7915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap50_main" >&5
6969
7916
$as_echo "$ac_cv_lib_ldap50_main" >&6; }
6970
 
if test "x$ac_cv_lib_ldap50_main" = x""yes; then :
 
7917
if test "x$ac_cv_lib_ldap50_main" = xyes; then :
6971
7918
  LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4 $LIBS" found_ldap_lib=yes
6972
7919
fi
6973
7920
 
6976
7923
  then
6977
7924
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl41" >&5
6978
7925
$as_echo_n "checking for main in -lldapssl41... " >&6; }
6979
 
if test "${ac_cv_lib_ldapssl41_main+set}" = set; then :
 
7926
if ${ac_cv_lib_ldapssl41_main+:} false; then :
6980
7927
  $as_echo_n "(cached) " >&6
6981
7928
else
6982
7929
  ac_check_lib_save_LIBS=$LIBS
7004
7951
fi
7005
7952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl41_main" >&5
7006
7953
$as_echo "$ac_cv_lib_ldapssl41_main" >&6; }
7007
 
if test "x$ac_cv_lib_ldapssl41_main" = x""yes; then :
 
7954
if test "x$ac_cv_lib_ldapssl41_main" = xyes; then :
7008
7955
  LIBS="-lldapssl41 -lplc3 -lplds3 -lnspr3 $LIBS" found_ldap_lib=yes
7009
7956
fi
7010
7957
 
7012
7959
    then
7013
7960
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl40" >&5
7014
7961
$as_echo_n "checking for main in -lldapssl40... " >&6; }
7015
 
if test "${ac_cv_lib_ldapssl40_main+set}" = set; then :
 
7962
if ${ac_cv_lib_ldapssl40_main+:} false; then :
7016
7963
  $as_echo_n "(cached) " >&6
7017
7964
else
7018
7965
  ac_check_lib_save_LIBS=$LIBS
7040
7987
fi
7041
7988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl40_main" >&5
7042
7989
$as_echo "$ac_cv_lib_ldapssl40_main" >&6; }
7043
 
if test "x$ac_cv_lib_ldapssl40_main" = x""yes; then :
 
7990
if test "x$ac_cv_lib_ldapssl40_main" = xyes; then :
7044
7991
  LIBS="-lldapssl40 $LIBS" found_ldap_lib=yes
7045
7992
fi
7046
7993
 
7049
7996
    then
7050
7997
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap41" >&5
7051
7998
$as_echo_n "checking for main in -lldap41... " >&6; }
7052
 
if test "${ac_cv_lib_ldap41_main+set}" = set; then :
 
7999
if ${ac_cv_lib_ldap41_main+:} false; then :
7053
8000
  $as_echo_n "(cached) " >&6
7054
8001
else
7055
8002
  ac_check_lib_save_LIBS=$LIBS
7077
8024
fi
7078
8025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap41_main" >&5
7079
8026
$as_echo "$ac_cv_lib_ldap41_main" >&6; }
7080
 
if test "x$ac_cv_lib_ldap41_main" = x""yes; then :
 
8027
if test "x$ac_cv_lib_ldap41_main" = xyes; then :
7081
8028
  LIBS="-lldap41 $LIBS" found_ldap_lib=yes
7082
8029
fi
7083
8030
 
7086
8033
    then
7087
8034
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap40" >&5
7088
8035
$as_echo_n "checking for main in -lldap40... " >&6; }
7089
 
if test "${ac_cv_lib_ldap40_main+set}" = set; then :
 
8036
if ${ac_cv_lib_ldap40_main+:} false; then :
7090
8037
  $as_echo_n "(cached) " >&6
7091
8038
else
7092
8039
  ac_check_lib_save_LIBS=$LIBS
7114
8061
fi
7115
8062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap40_main" >&5
7116
8063
$as_echo "$ac_cv_lib_ldap40_main" >&6; }
7117
 
if test "x$ac_cv_lib_ldap40_main" = x""yes; then :
 
8064
if test "x$ac_cv_lib_ldap40_main" = xyes; then :
7118
8065
  LIBS="-lldap40 $LIBS" found_ldap_lib=yes
7119
8066
fi
7120
8067
 
7124
8071
  then
7125
8072
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl30" >&5
7126
8073
$as_echo_n "checking for main in -lldapssl30... " >&6; }
7127
 
if test "${ac_cv_lib_ldapssl30_main+set}" = set; then :
 
8074
if ${ac_cv_lib_ldapssl30_main+:} false; then :
7128
8075
  $as_echo_n "(cached) " >&6
7129
8076
else
7130
8077
  ac_check_lib_save_LIBS=$LIBS
7152
8099
fi
7153
8100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl30_main" >&5
7154
8101
$as_echo "$ac_cv_lib_ldapssl30_main" >&6; }
7155
 
if test "x$ac_cv_lib_ldapssl30_main" = x""yes; then :
 
8102
if test "x$ac_cv_lib_ldapssl30_main" = xyes; then :
7156
8103
  LIBS="-lldapssl30 $LIBS" found_ldap_lib=yes
7157
8104
fi
7158
8105
 
7160
8107
  for ac_func in ldap_search_ext
7161
8108
do :
7162
8109
  ac_fn_c_check_func "$LINENO" "ldap_search_ext" "ac_cv_func_ldap_search_ext"
7163
 
if test "x$ac_cv_func_ldap_search_ext" = x""yes; then :
 
8110
if test "x$ac_cv_func_ldap_search_ext" = xyes; then :
7164
8111
  cat >>confdefs.h <<_ACEOF
7165
8112
#define HAVE_LDAP_SEARCH_EXT 1
7166
8113
_ACEOF
7174
8121
  # see if we need a BER library
7175
8122
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_bvfree" >&5
7176
8123
$as_echo_n "checking for library containing ber_bvfree... " >&6; }
7177
 
if test "${ac_cv_search_ber_bvfree+set}" = set; then :
 
8124
if ${ac_cv_search_ber_bvfree+:} false; then :
7178
8125
  $as_echo_n "(cached) " >&6
7179
8126
else
7180
8127
  ac_func_search_save_LIBS=$LIBS
7208
8155
fi
7209
8156
rm -f core conftest.err conftest.$ac_objext \
7210
8157
    conftest$ac_exeext
7211
 
  if test "${ac_cv_search_ber_bvfree+set}" = set; then :
 
8158
  if ${ac_cv_search_ber_bvfree+:} false; then :
7212
8159
  break
7213
8160
fi
7214
8161
done
7215
 
if test "${ac_cv_search_ber_bvfree+set}" = set; then :
 
8162
if ${ac_cv_search_ber_bvfree+:} false; then :
7216
8163
 
7217
8164
else
7218
8165
  ac_cv_search_ber_bvfree=no
7239
8186
        #include <sasl.h>
7240
8187
        #endif
7241
8188
"
7242
 
if test "x$ac_cv_type_sasl_interact_t" = x""yes; then :
 
8189
if test "x$ac_cv_type_sasl_interact_t" = xyes; then :
7243
8190
 
7244
8191
$as_echo "#define HAVE_SASL_INTERACT_T 1" >>confdefs.h
7245
8192
 
7246
8193
fi
7247
8194
 
7248
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sasl_client_init" >&5
7249
 
$as_echo_n "checking for library containing sasl_client_init... " >&6; }
7250
 
if test "${ac_cv_search_sasl_client_init+set}" = set; then :
 
8195
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_sasl_interactive_bind_s" >&5
 
8196
$as_echo_n "checking for library containing ldap_sasl_interactive_bind_s... " >&6; }
 
8197
if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
7251
8198
  $as_echo_n "(cached) " >&6
7252
8199
else
7253
8200
  ac_func_search_save_LIBS=$LIBS
7260
8207
#ifdef __cplusplus
7261
8208
extern "C"
7262
8209
#endif
7263
 
char sasl_client_init ();
 
8210
char ldap_sasl_interactive_bind_s ();
7264
8211
int
7265
8212
main ()
7266
8213
{
7267
 
return sasl_client_init ();
 
8214
return ldap_sasl_interactive_bind_s ();
7268
8215
  ;
7269
8216
  return 0;
7270
8217
}
7277
8224
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7278
8225
  fi
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
7281
8228
fi
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 :
7285
8232
  break
7286
8233
fi
7287
8234
done
7288
 
if test "${ac_cv_search_sasl_client_init+set}" = set; then :
 
8235
if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
7289
8236
 
7290
8237
else
7291
 
  ac_cv_search_sasl_client_init=no
 
8238
  ac_cv_search_ldap_sasl_interactive_bind_s=no
7292
8239
fi
7293
8240
rm conftest.$ac_ext
7294
8241
LIBS=$ac_func_search_save_LIBS
7295
8242
fi
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"
7301
8248
 
7302
8249
fi
7303
8250
 
7304
 
    for ac_func in sasl_auxprop_request ldap_sasl_interactive_bind_s
 
8251
    for ac_func in ldap_sasl_interactive_bind_s
7305
8252
do :
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
7311
8257
_ACEOF
7312
8258
 
7313
8259
fi
7320
8266
  then
7321
8267
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_krb5_ccache_name" >&5
7322
8268
$as_echo_n "checking for library containing gss_krb5_ccache_name... " >&6; }
7323
 
if test "${ac_cv_search_gss_krb5_ccache_name+set}" = set; then :
 
8269
if ${ac_cv_search_gss_krb5_ccache_name+:} false; then :
7324
8270
  $as_echo_n "(cached) " >&6
7325
8271
else
7326
8272
  ac_func_search_save_LIBS=$LIBS
7354
8300
fi
7355
8301
rm -f core conftest.err conftest.$ac_objext \
7356
8302
    conftest$ac_exeext
7357
 
  if test "${ac_cv_search_gss_krb5_ccache_name+set}" = set; then :
 
8303
  if ${ac_cv_search_gss_krb5_ccache_name+:} false; then :
7358
8304
  break
7359
8305
fi
7360
8306
done
7361
 
if test "${ac_cv_search_gss_krb5_ccache_name+set}" = set; then :
 
8307
if ${ac_cv_search_gss_krb5_ccache_name+:} false; then :
7362
8308
 
7363
8309
else
7364
8310
  ac_cv_search_gss_krb5_ccache_name=no
7374
8320
 
7375
8321
fi
7376
8322
 
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
7381
 
else
7382
 
  ac_func_search_save_LIBS=$LIBS
7383
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384
 
/* end confdefs.h.  */
7385
 
 
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.  */
7389
 
#ifdef __cplusplus
7390
 
extern "C"
7391
 
#endif
7392
 
char ldap_gss_bind ();
7393
 
int
7394
 
main ()
7395
 
{
7396
 
return ldap_gss_bind ();
7397
 
  ;
7398
 
  return 0;
7399
 
}
7400
 
_ACEOF
7401
 
for ac_lib in '' gssldap; do
7402
 
  if test -z "$ac_lib"; then
7403
 
    ac_res="none required"
7404
 
  else
7405
 
    ac_res=-l$ac_lib
7406
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7407
 
  fi
7408
 
  if ac_fn_c_try_link "$LINENO"; then :
7409
 
  ac_cv_search_ldap_gss_bind=$ac_res
7410
 
fi
7411
 
rm -f core conftest.err conftest.$ac_objext \
7412
 
    conftest$ac_exeext
7413
 
  if test "${ac_cv_search_ldap_gss_bind+set}" = set; then :
7414
 
  break
7415
 
fi
7416
 
done
7417
 
if test "${ac_cv_search_ldap_gss_bind+set}" = set; then :
7418
 
 
7419
 
else
7420
 
  ac_cv_search_ldap_gss_bind=no
7421
 
fi
7422
 
rm conftest.$ac_ext
7423
 
LIBS=$ac_func_search_save_LIBS
7424
 
fi
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"
7430
 
 
7431
 
fi
7432
 
 
7433
8323
    for ac_func in gss_krb5_ccache_name
7434
8324
do :
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
7439
8329
_ACEOF
7573
8463
fi
7574
8464
done
7575
8465
 
 
8466
  ac_fn_c_check_decl "$LINENO" "ldap_extended_operation_s" "ac_cv_have_decl_ldap_extended_operation_s" "
 
8467
      #if HAVE_LBER_H
 
8468
      #include <lber.h>
 
8469
      #endif
 
8470
      #include <ldap.h>
 
8471
"
 
8472
if test "x$ac_cv_have_decl_ldap_extended_operation_s" = xyes; then :
 
8473
  ac_have_decl=1
 
8474
else
 
8475
  ac_have_decl=0
 
8476
fi
 
8477
 
 
8478
cat >>confdefs.h <<_ACEOF
 
8479
#define HAVE_DECL_LDAP_EXTENDED_OPERATION_S $ac_have_decl
 
8480
_ACEOF
 
8481
 
7576
8482
 
7577
8483
  # replace other ldap functions
7578
8484
  ac_fn_c_check_func "$LINENO" "ldap_passwd_s" "ac_cv_func_ldap_passwd_s"
7579
 
if test "x$ac_cv_func_ldap_passwd_s" = x""yes; then :
 
8485
if test "x$ac_cv_func_ldap_passwd_s" = xyes; then :
7580
8486
  $as_echo "#define HAVE_LDAP_PASSWD_S 1" >>confdefs.h
7581
8487
 
7582
8488
else
7590
8496
 
7591
8497
 
7592
8498
  ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
7593
 
if test "x$ac_cv_func_ldap_initialize" = x""yes; then :
 
8499
if test "x$ac_cv_func_ldap_initialize" = xyes; then :
7594
8500
  $as_echo "#define HAVE_LDAP_INITIALIZE 1" >>confdefs.h
7595
8501
 
7596
8502
else
7607
8513
  # check the number of arguments that ldap_set_rebind_proc() uses
7608
8514
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ldap_set_rebind_proc" >&5
7609
8515
$as_echo_n "checking number of arguments to ldap_set_rebind_proc... " >&6; }
7610
 
if test "${nss_ldapd_cv_ldap_set_rebind_proc_args+set}" = set; then :
 
8516
if ${nss_ldapd_cv_ldap_set_rebind_proc_args+:} false; then :
7611
8517
  $as_echo_n "(cached) " >&6
7612
8518
else
7613
8519
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644
8550
  # check the return type of ldap_set_rebind_proc()
7645
8551
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ldap_set_rebind_proc" >&5
7646
8552
$as_echo_n "checking return type of ldap_set_rebind_proc... " >&6; }
7647
 
if test "${nss_ldapd_cv_ldap_set_rebind_proc_type+set}" = set; then :
 
8553
if ${nss_ldapd_cv_ldap_set_rebind_proc_type+:} false; then :
7648
8554
  $as_echo_n "(cached) " >&6
7649
8555
else
7650
8556
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692
8598
 
7693
8599
fi
7694
8600
 
 
8601
# pynslcd daemon-specific tests
 
8602
if test "x$enable_pynslcd" = "xyes"
 
8603
then
 
8604
  # check Python interpreter
 
8605
 
 
8606
 
 
8607
 
 
8608
 
 
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; }
 
8613
      prog="import sys
 
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]
 
8618
minverhex = 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
 
8624
   ac_status=$?
 
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; }
 
8629
else
 
8630
  as_fn_error $? "too old" "$LINENO" 5
 
8631
fi
 
8632
      am_display_PYTHON=$PYTHON
 
8633
    else
 
8634
      # Otherwise, try each interpreter until we find one that satisfies
 
8635
      # VERSION.
 
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
 
8640
else
 
8641
 
 
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
 
8644
          prog="import sys
 
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]
 
8649
minverhex = 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
 
8655
   ac_status=$?
 
8656
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8657
   (exit $ac_status); }; then :
 
8658
  break
 
8659
fi
 
8660
        done
 
8661
fi
 
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
 
8666
        PYTHON=:
 
8667
      else
 
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
 
8674
else
 
8675
  case $PYTHON in
 
8676
  [\\/]* | ?:[\\/]*)
 
8677
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
8678
  ;;
 
8679
  *)
 
8680
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8681
for as_dir in $PATH
 
8682
do
 
8683
  IFS=$as_save_IFS
 
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
 
8689
    break 2
 
8690
  fi
 
8691
done
 
8692
  done
 
8693
IFS=$as_save_IFS
 
8694
 
 
8695
  ;;
 
8696
esac
 
8697
fi
 
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; }
 
8702
else
 
8703
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8704
$as_echo "no" >&6; }
 
8705
fi
 
8706
 
 
8707
 
 
8708
      fi
 
8709
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
8710
    fi
 
8711
 
 
8712
 
 
8713
  if test "$PYTHON" = :; then
 
8714
      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
 
8715
  else
 
8716
 
 
8717
 
 
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
 
8722
else
 
8723
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
8724
fi
 
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
 
8728
 
 
8729
 
 
8730
 
 
8731
  PYTHON_PREFIX='${prefix}'
 
8732
 
 
8733
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
8734
 
 
8735
 
 
8736
 
 
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
 
8741
else
 
8742
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
8743
fi
 
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
 
8747
 
 
8748
 
 
8749
 
 
8750
 
 
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
 
8755
else
 
8756
  if test "x$prefix" = xNONE
 
8757
     then
 
8758
       am_py_prefix=$ac_default_prefix
 
8759
     else
 
8760
       am_py_prefix=$prefix
 
8761
     fi
 
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
 
8765
     $am_py_prefix*)
 
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,"`
 
8768
       ;;
 
8769
     *)
 
8770
       case $am_py_prefix in
 
8771
         /usr|/System*) ;;
 
8772
         *)
 
8773
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
8774
          ;;
 
8775
       esac
 
8776
       ;;
 
8777
     esac
 
8778
 
 
8779
fi
 
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
 
8783
 
 
8784
 
 
8785
 
 
8786
  pkgpythondir=\${pythondir}/$PACKAGE
 
8787
 
 
8788
 
 
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
 
8793
else
 
8794
  if test "x$exec_prefix" = xNONE
 
8795
     then
 
8796
       am_py_exec_prefix=$am_py_prefix
 
8797
     else
 
8798
       am_py_exec_prefix=$exec_prefix
 
8799
     fi
 
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,"`
 
8806
       ;;
 
8807
     *)
 
8808
       case $am_py_exec_prefix in
 
8809
         /usr|/System*) ;;
 
8810
         *)
 
8811
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
8812
           ;;
 
8813
       esac
 
8814
       ;;
 
8815
     esac
 
8816
 
 
8817
fi
 
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
 
8821
 
 
8822
 
 
8823
 
 
8824
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
8825
 
 
8826
 
 
8827
 
 
8828
  fi
 
8829
 
 
8830
 
 
8831
fi
 
8832
 
 
8833
 if test "x${with_nss_flavour}" = xglibc; then
 
8834
  NSS_FLAVOUR_GLIBC_TRUE=
 
8835
  NSS_FLAVOUR_GLIBC_FALSE='#'
 
8836
else
 
8837
  NSS_FLAVOUR_GLIBC_TRUE='#'
 
8838
  NSS_FLAVOUR_GLIBC_FALSE=
 
8839
fi
 
8840
 
 
8841
 if test "x${with_nss_flavour}" = xsolaris; then
 
8842
  NSS_FLAVOUR_SOLARIS_TRUE=
 
8843
  NSS_FLAVOUR_SOLARIS_FALSE='#'
 
8844
else
 
8845
  NSS_FLAVOUR_SOLARIS_TRUE='#'
 
8846
  NSS_FLAVOUR_SOLARIS_FALSE=
 
8847
fi
 
8848
 
 
8849
 if test "x${with_nss_flavour}" = xfreebsd; then
 
8850
  NSS_FLAVOUR_FREEBSD_TRUE=
 
8851
  NSS_FLAVOUR_FREEBSD_FALSE='#'
 
8852
else
 
8853
  NSS_FLAVOUR_FREEBSD_TRUE='#'
 
8854
  NSS_FLAVOUR_FREEBSD_FALSE=
 
8855
fi
 
8856
 
 
8857
 
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"
7697
8860
 
7698
8861
cat >confcache <<\_ACEOF
7699
8862
# This file is a shell script that caches the results of configure
7759
8922
     :end' >>confcache
7760
8923
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7761
8924
  if test -w "$cache_file"; then
7762
 
    test "x$cache_file" != "x/dev/null" &&
 
8925
    if test "x$cache_file" != "x/dev/null"; then
7763
8926
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7764
8927
$as_echo "$as_me: updating cache $cache_file" >&6;}
7765
 
    cat confcache >$cache_file
 
8928
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
8929
        cat confcache >"$cache_file"
 
8930
      else
 
8931
        case $cache_file in #(
 
8932
        */* | ?:*)
 
8933
          mv -f confcache "$cache_file"$$ &&
 
8934
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
8935
        *)
 
8936
          mv -f confcache "$cache_file" ;;
 
8937
        esac
 
8938
      fi
 
8939
    fi
7766
8940
  else
7767
8941
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7768
8942
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7829
9003
  as_fn_error $? "conditional \"ENABLE_NSLCD\" was never defined.
7830
9004
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7831
9005
fi
7832
 
if test -z "${HAVE_VERSION_SCRIPT_FLAG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_FLAG_FALSE}"; then
7833
 
  as_fn_error $? "conditional \"HAVE_VERSION_SCRIPT_FLAG\" was never defined.
 
9006
if test -z "${ENABLE_PYNSLCD_TRUE}" && test -z "${ENABLE_PYNSLCD_FALSE}"; then
 
9007
  as_fn_error $? "conditional \"ENABLE_PYNSLCD\" was never defined.
 
9008
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
9009
fi
 
9010
if test -z "${NSS_FLAVOUR_GLIBC_TRUE}" && test -z "${NSS_FLAVOUR_GLIBC_FALSE}"; then
 
9011
  as_fn_error $? "conditional \"NSS_FLAVOUR_GLIBC\" was never defined.
 
9012
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
9013
fi
 
9014
if test -z "${NSS_FLAVOUR_SOLARIS_TRUE}" && test -z "${NSS_FLAVOUR_SOLARIS_FALSE}"; then
 
9015
  as_fn_error $? "conditional \"NSS_FLAVOUR_SOLARIS\" was never defined.
 
9016
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
9017
fi
 
9018
if test -z "${NSS_FLAVOUR_FREEBSD_TRUE}" && test -z "${NSS_FLAVOUR_FREEBSD_FALSE}"; then
 
9019
  as_fn_error $? "conditional \"NSS_FLAVOUR_FREEBSD\" was never defined.
7834
9020
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7835
9021
fi
7836
9022
 
7837
 
: ${CONFIG_STATUS=./config.status}
 
9023
: "${CONFIG_STATUS=./config.status}"
7838
9024
ac_write_fail=0
7839
9025
ac_clean_files_save=$ac_clean_files
7840
9026
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7935
9121
IFS=" ""        $as_nl"
7936
9122
 
7937
9123
# Find who we are.  Look in the path if we contain no directory separator.
 
9124
as_myself=
7938
9125
case $0 in #((
7939
9126
  *[\\/]* ) as_myself=$0 ;;
7940
9127
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241
9428
# report actual input values of CONFIG_FILES etc. instead of their
8242
9429
# values after options handling.
8243
9430
ac_log="
8244
 
This file was extended by nss-pam-ldapd $as_me 0.7.13, which was
8245
 
generated by GNU Autoconf 2.67.  Invocation command line was
 
9431
This file was extended by nss-pam-ldapd $as_me 0.8.4, which was
 
9432
generated by GNU Autoconf 2.68.  Invocation command line was
8246
9433
 
8247
9434
  CONFIG_FILES    = $CONFIG_FILES
8248
9435
  CONFIG_HEADERS  = $CONFIG_HEADERS
8301
9488
Configuration commands:
8302
9489
$config_commands
8303
9490
 
8304
 
Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>."
 
9491
Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
 
9492
nss-pam-ldapd home page: <http://arthurdejong.org/nss-pam-ldapd/>."
8305
9493
 
8306
9494
_ACEOF
8307
9495
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8308
9496
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8309
9497
ac_cs_version="\\
8310
 
nss-pam-ldapd config.status 0.7.13
8311
 
configured by $0, generated by GNU Autoconf 2.67,
 
9498
nss-pam-ldapd config.status 0.8.4
 
9499
configured by $0, generated by GNU Autoconf 2.68,
8312
9500
  with options \\"\$ac_cs_config\\"
8313
9501
 
8314
9502
Copyright (C) 2010 Free Software Foundation, Inc.
8444
9632
    "nss/Makefile") CONFIG_FILES="$CONFIG_FILES nss/Makefile" ;;
8445
9633
    "pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;;
8446
9634
    "nslcd/Makefile") CONFIG_FILES="$CONFIG_FILES nslcd/Makefile" ;;
 
9635
    "pynslcd/Makefile") CONFIG_FILES="$CONFIG_FILES pynslcd/Makefile" ;;
 
9636
    "pynslcd/config.py") CONFIG_FILES="$CONFIG_FILES pynslcd/config.py" ;;
8447
9637
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8448
9638
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8449
9639
 
8450
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
9640
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8451
9641
  esac
8452
9642
done
8453
9643
 
8470
9660
# after its creation but before its name has been assigned to `$tmp'.
8471
9661
$debug ||
8472
9662
{
8473
 
  tmp=
 
9663
  tmp= ac_tmp=
8474
9664
  trap 'exit_status=$?
8475
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
9665
  : "${ac_tmp:=$tmp}"
 
9666
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8476
9667
' 0
8477
9668
  trap 'as_fn_exit 1' 1 2 13 15
8478
9669
}
8480
9671
 
8481
9672
{
8482
9673
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8483
 
  test -n "$tmp" && test -d "$tmp"
 
9674
  test -d "$tmp"
8484
9675
}  ||
8485
9676
{
8486
9677
  tmp=./conf$$-$RANDOM
8487
9678
  (umask 077 && mkdir "$tmp")
8488
9679
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
9680
ac_tmp=$tmp
8489
9681
 
8490
9682
# Set up the scripts for CONFIG_FILES section.
8491
9683
# No need to generate them if there are no CONFIG_FILES.
8507
9699
  ac_cs_awk_cr=$ac_cr
8508
9700
fi
8509
9701
 
8510
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
9702
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8511
9703
_ACEOF
8512
9704
 
8513
9705
 
8535
9727
rm -f conf$$subs.sh
8536
9728
 
8537
9729
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8538
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
9730
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8539
9731
_ACEOF
8540
9732
sed -n '
8541
9733
h
8583
9775
rm -f conf$$subs.awk
8584
9776
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8585
9777
_ACAWK
8586
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
9778
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8587
9779
  for (key in S) S_is_set[key] = 1
8588
9780
  FS = ""
8589
9781
 
8615
9807
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8616
9808
else
8617
9809
  cat
8618
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
9810
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8619
9811
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8620
9812
_ACEOF
8621
9813
 
8649
9841
# No need to generate them if there are no CONFIG_HEADERS.
8650
9842
# This happens for instance with `./config.status Makefile'.
8651
9843
if test -n "$CONFIG_HEADERS"; then
8652
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
9844
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8653
9845
BEGIN {
8654
9846
_ACEOF
8655
9847
 
8661
9853
# handling of long lines.
8662
9854
ac_delim='%!_!# '
8663
9855
for ac_last_try in false false :; do
8664
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8665
 
  if test -z "$ac_t"; then
 
9856
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
9857
  if test -z "$ac_tt"; then
8666
9858
    break
8667
9859
  elif $ac_last_try; then
8668
9860
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8763
9955
  esac
8764
9956
  case $ac_mode$ac_tag in
8765
9957
  :[FHL]*:*);;
8766
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
9958
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8767
9959
  :[FH]-) ac_tag=-:-;;
8768
9960
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8769
9961
  esac
8782
9974
    for ac_f
8783
9975
    do
8784
9976
      case $ac_f in
8785
 
      -) ac_f="$tmp/stdin";;
 
9977
      -) ac_f="$ac_tmp/stdin";;
8786
9978
      *) # Look for the file first in the build tree, then in the source tree
8787
9979
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8788
9980
         # because $ac_f cannot contain `:'.
8791
9983
           [\\/$]*) false;;
8792
9984
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8793
9985
           esac ||
8794
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
9986
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8795
9987
      esac
8796
9988
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8797
9989
      as_fn_append ac_file_inputs " '$ac_f'"
8817
10009
    esac
8818
10010
 
8819
10011
    case $ac_tag in
8820
 
    *:-:* | *:-) cat >"$tmp/stdin" \
8821
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
10012
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
10013
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8822
10014
    esac
8823
10015
    ;;
8824
10016
  esac
8954
10146
s&@MKDIR_P@&$ac_MKDIR_P&;t t
8955
10147
$ac_datarootdir_hack
8956
10148
"
8957
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8958
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
10149
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
10150
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8959
10151
 
8960
10152
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8961
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8962
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
10153
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
10154
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
10155
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8963
10156
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8964
10157
which seems to be undefined.  Please make sure it is defined" >&5
8965
10158
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8966
10159
which seems to be undefined.  Please make sure it is defined" >&2;}
8967
10160
 
8968
 
  rm -f "$tmp/stdin"
 
10161
  rm -f "$ac_tmp/stdin"
8969
10162
  case $ac_file in
8970
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
8971
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
10163
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
10164
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8972
10165
  esac \
8973
10166
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8974
10167
 ;;
8979
10172
  if test x"$ac_file" != x-; then
8980
10173
    {
8981
10174
      $as_echo "/* $configure_input  */" \
8982
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8983
 
    } >"$tmp/config.h" \
 
10175
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
10176
    } >"$ac_tmp/config.h" \
8984
10177
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8985
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
10178
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8986
10179
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8987
10180
$as_echo "$as_me: $ac_file is unchanged" >&6;}
8988
10181
    else
8989
10182
      rm -f "$ac_file"
8990
 
      mv "$tmp/config.h" "$ac_file" \
 
10183
      mv "$ac_tmp/config.h" "$ac_file" \
8991
10184
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8992
10185
    fi
8993
10186
  else
8994
10187
    $as_echo "/* $configure_input  */" \
8995
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
10188
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8996
10189
      || as_fn_error $? "could not create -" "$LINENO" 5
8997
10190
  fi
8998
10191
# Compute "$ac_file"'s index in $config_headers.