1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for nss-pam-ldapd 0.9.11.
4#
5# Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
6#
7# Copyright (C) 2006 Luke Howard
8# Copyright (C) 2006 West Consulting
9# Copyright (C) 2006-2019 Arthur de Jong
10#
11# This configure script is derived from configure.ac which is free software;
12# you can redistribute it and/or modify it under the terms of the GNU Lesser
13# General Public License as published by the Free Software Foundation; either
14# version 2.1 of the License, or (at your option) any later version. See the
15# configure.ac file for more details.
16#
17#
18# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
19#
20#
21# This configure script is free software; the Free Software Foundation
22# gives unlimited permission to copy, distribute and modify it.
23## -------------------- ##
24## M4sh Initialization. ##
25## -------------------- ##
26
27# Be more Bourne compatible
28DUALCASE=1; export DUALCASE # for MKS sh
29if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30  emulate sh
31  NULLCMD=:
32  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33  # is contrary to our usage.  Disable this feature.
34  alias -g '${1+"$@"}'='"$@"'
35  setopt NO_GLOB_SUBST
36else
37  case `(set -o) 2>/dev/null` in #(
38  *posix*) :
39    set -o posix ;; #(
40  *) :
41     ;;
42esac
43fi
44
45
46as_nl='
47'
48export as_nl
49# Printing a long string crashes Solaris 7 /usr/bin/printf.
50as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
52as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
53# Prefer a ksh shell builtin over an external printf program on Solaris,
54# but without wasting forks for bash or zsh.
55if test -z "$BASH_VERSION$ZSH_VERSION" \
56    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
57  as_echo='print -r --'
58  as_echo_n='print -rn --'
59elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
60  as_echo='printf %s\n'
61  as_echo_n='printf %s'
62else
63  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
64    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
65    as_echo_n='/usr/ucb/echo -n'
66  else
67    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68    as_echo_n_body='eval
69      arg=$1;
70      case $arg in #(
71      *"$as_nl"*)
72	expr "X$arg" : "X\\(.*\\)$as_nl";
73	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74      esac;
75      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
76    '
77    export as_echo_n_body
78    as_echo_n='sh -c $as_echo_n_body as_echo'
79  fi
80  export as_echo_body
81  as_echo='sh -c $as_echo_body as_echo'
82fi
83
84# The user is always right.
85if test "${PATH_SEPARATOR+set}" != set; then
86  PATH_SEPARATOR=:
87  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
88    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89      PATH_SEPARATOR=';'
90  }
91fi
92
93
94# IFS
95# We need space, tab and new line, in precisely that order.  Quoting is
96# there to prevent editors from complaining about space-tab.
97# (If _AS_PATH_WALK were called with IFS unset, it would disable word
98# splitting by setting IFS to empty value.)
99IFS=" ""	$as_nl"
100
101# Find who we are.  Look in the path if we contain no directory separator.
102as_myself=
103case $0 in #((
104  *[\\/]* ) as_myself=$0 ;;
105  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106for as_dir in $PATH
107do
108  IFS=$as_save_IFS
109  test -z "$as_dir" && as_dir=.
110    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111  done
112IFS=$as_save_IFS
113
114     ;;
115esac
116# We did not find ourselves, most probably we were run as `sh COMMAND'
117# in which case we are not to be found in the path.
118if test "x$as_myself" = x; then
119  as_myself=$0
120fi
121if test ! -f "$as_myself"; then
122  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
123  exit 1
124fi
125
126# Unset variables that we do not need and which cause bugs (e.g. in
127# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
128# suppresses any "Segmentation fault" message there.  '((' could
129# trigger a bug in pdksh 5.2.14.
130for as_var in BASH_ENV ENV MAIL MAILPATH
131do eval test x\${$as_var+set} = xset \
132  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133done
134PS1='$ '
135PS2='> '
136PS4='+ '
137
138# NLS nuisances.
139LC_ALL=C
140export LC_ALL
141LANGUAGE=C
142export LANGUAGE
143
144# CDPATH.
145(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
146
147# Use a proper internal environment variable to ensure we don't fall
148  # into an infinite loop, continuously re-executing ourselves.
149  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
150    _as_can_reexec=no; export _as_can_reexec;
151    # We cannot yet assume a decent shell, so we have to provide a
152# neutralization value for shells without unset; and this also
153# works around shells that cannot unset nonexistent variables.
154# Preserve -v and -x to the replacement shell.
155BASH_ENV=/dev/null
156ENV=/dev/null
157(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
158case $- in # ((((
159  *v*x* | *x*v* ) as_opts=-vx ;;
160  *v* ) as_opts=-v ;;
161  *x* ) as_opts=-x ;;
162  * ) as_opts= ;;
163esac
164exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
165# Admittedly, this is quite paranoid, since all the known shells bail
166# out after a failed `exec'.
167$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
168as_fn_exit 255
169  fi
170  # We don't want this to propagate to other subprocesses.
171          { _as_can_reexec=; unset _as_can_reexec;}
172if test "x$CONFIG_SHELL" = x; then
173  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
174  emulate sh
175  NULLCMD=:
176  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
177  # is contrary to our usage.  Disable this feature.
178  alias -g '\${1+\"\$@\"}'='\"\$@\"'
179  setopt NO_GLOB_SUBST
180else
181  case \`(set -o) 2>/dev/null\` in #(
182  *posix*) :
183    set -o posix ;; #(
184  *) :
185     ;;
186esac
187fi
188"
189  as_required="as_fn_return () { (exit \$1); }
190as_fn_success () { as_fn_return 0; }
191as_fn_failure () { as_fn_return 1; }
192as_fn_ret_success () { return 0; }
193as_fn_ret_failure () { return 1; }
194
195exitcode=0
196as_fn_success || { exitcode=1; echo as_fn_success failed.; }
197as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
198as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
199as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
200if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
201
202else
203  exitcode=1; echo positional parameters were not saved.
204fi
205test x\$exitcode = x0 || exit 1
206test -x / || exit 1"
207  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
208  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
209  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
210  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
211test \$(( 1 + 1 )) = 2 || exit 1"
212  if (eval "$as_required") 2>/dev/null; then :
213  as_have_required=yes
214else
215  as_have_required=no
216fi
217  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  as_found=:
227  case $as_dir in #(
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     # Try only shells that exist, to save several forks.
231	     as_shell=$as_dir/$as_base
232	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  CONFIG_SHELL=$as_shell as_have_required=yes
235		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236  break 2
237fi
238fi
239	   done;;
240       esac
241  as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245  CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250      if test "x$CONFIG_SHELL" != x; then :
251  export CONFIG_SHELL
252             # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260  *v*x* | *x*v* ) as_opts=-vx ;;
261  *v* ) as_opts=-v ;;
262  *x* ) as_opts=-x ;;
263  * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
270fi
271
272    if test x$as_have_required = xno; then :
273  $as_echo "$0: This script requires a shell more modern than all"
274  $as_echo "$0: the shells that I found on your system."
275  if test x${ZSH_VERSION+set} = xset ; then
276    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278  else
279    $as_echo "$0: Please tell bug-autoconf@gnu.org and
280$0: nss-pam-ldapd-users@lists.arthurdejong.org about your
281$0: system, including any error possibly output before this
282$0: message. Then install a modern shell, or manually run
283$0: the script under such a shell if you do have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331  case $as_dir in #(
332  -*) as_dir=./$as_dir;;
333  esac
334  test -d "$as_dir" || eval $as_mkdir_p || {
335    as_dirs=
336    while :; do
337      case $as_dir in #(
338      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339      *) as_qdir=$as_dir;;
340      esac
341      as_dirs="'$as_qdir' $as_dirs"
342      as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344	 X"$as_dir" : 'X\(//\)[^/]' \| \
345	 X"$as_dir" : 'X\(//\)$' \| \
346	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\/\)[^/].*/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\).*/{
361	    s//\1/
362	    q
363	  }
364	  s/.*/./; q'`
365      test -d "$as_dir" && break
366    done
367    test -z "$as_dirs" || eval "mkdir $as_dirs"
368  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371} # as_fn_mkdir_p
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378  test -f "$1" && test -x "$1"
379} # as_fn_executable_p
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387  eval 'as_fn_append ()
388  {
389    eval $1+=\$2
390  }'
391else
392  as_fn_append ()
393  {
394    eval $1=\$$1\$2
395  }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else
409  as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  }
413fi # as_fn_arith
414
415
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420# script with STATUS, using 1 if that was 0.
421as_fn_error ()
422{
423  as_status=$1; test $as_status -eq 0 && as_status=1
424  if test "$4"; then
425    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427  fi
428  $as_echo "$as_me: error: $2" >&2
429  as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433   test "X`expr 00001 : '.*\(...\)'`" = X001; then
434  as_expr=expr
435else
436  as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440  as_basename=basename
441else
442  as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446  as_dirname=dirname
447else
448  as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453	 X"$0" : 'X\(//\)$' \| \
454	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456    sed '/^.*\/\([^/][^/]*\)\/*$/{
457	    s//\1/
458	    q
459	  }
460	  /^X\/\(\/\/\)$/{
461	    s//\1/
462	    q
463	  }
464	  /^X\/\(\/\).*/{
465	    s//\1/
466	    q
467	  }
468	  s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478  as_lineno_1=$LINENO as_lineno_1a=$LINENO
479  as_lineno_2=$LINENO as_lineno_2a=$LINENO
480  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
483  sed -n '
484    p
485    /[$]LINENO/=
486  ' <$as_myself |
487    sed '
488      s/[$]LINENO.*/&-/
489      t lineno
490      b
491      :lineno
492      N
493      :loop
494      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495      t loop
496      s/-\n.*//
497    ' >$as_me.lineno &&
498  chmod +x "$as_me.lineno" ||
499    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502  # already done that, so ensure we don't try to do so again and fall
503  # in an infinite loop.  This has already happened in practice.
504  _as_can_reexec=no; export _as_can_reexec
505  # Don't try to exec as it changes $[0], causing all sort of problems
506  # (the dirname of $[0] is not the place where we might find the
507  # original and so on.  Autoconf is especially sensitive to this).
508  . "./$as_me.lineno"
509  # Exit status is that of the last command.
510  exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516  case `echo 'xy\c'` in
517  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
518  xy)  ECHO_C='\c';;
519  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
520       ECHO_T='	';;
521  esac;;
522*)
523  ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528  rm -f conf$$.dir/conf$$.file
529else
530  rm -f conf$$.dir
531  mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534  if ln -s conf$$.file conf$$ 2>/dev/null; then
535    as_ln_s='ln -s'
536    # ... but there are two gotchas:
537    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539    # In both cases, we have to default to `cp -pR'.
540    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541      as_ln_s='cp -pR'
542  elif ln conf$$.file conf$$ 2>/dev/null; then
543    as_ln_s=ln
544  else
545    as_ln_s='cp -pR'
546  fi
547else
548  as_ln_s='cp -pR'
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554  as_mkdir_p='mkdir -p "$as_dir"'
555else
556  test -d ./-p && rmdir ./-p
557  as_mkdir_p=false
558fi
559
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='nss-pam-ldapd'
592PACKAGE_TARNAME='nss-pam-ldapd'
593PACKAGE_VERSION='0.9.11'
594PACKAGE_STRING='nss-pam-ldapd 0.9.11'
595PACKAGE_BUGREPORT='nss-pam-ldapd-users@lists.arthurdejong.org'
596PACKAGE_URL='https://arthurdejong.org/nss-pam-ldapd/'
597
598ac_unique_file="nslcd.h"
599ac_default_prefix=
600ac_config_libobj_dir=compat
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640NSS_FLAVOUR_FREEBSD_FALSE
641NSS_FLAVOUR_FREEBSD_TRUE
642NSS_FLAVOUR_SOLARIS_FALSE
643NSS_FLAVOUR_SOLARIS_TRUE
644NSS_FLAVOUR_GLIBC_FALSE
645NSS_FLAVOUR_GLIBC_TRUE
646nslcd_LIBS
647PTHREAD_CFLAGS
648PTHREAD_LIBS
649PTHREAD_CC
650ax_pthread_config
651pam_ldap_so_LINK
652pam_ldap_so_LDFLAGS
653LIBOBJS
654nss_ldap_so_LINK
655nss_ldap_so_LDFLAGS
656NSS_MODULE_OBJS
657NSS_FLAVOUR
658PAM_LDAP_SONAME
659NSS_LDAP_SONAME
660MODULE_NAME
661PAM_SECLIB_DIR
662NSLCD_SOCKET
663NSLCD_PIDFILE
664NSLCD_BINDPW_PATH
665NSLCD_CONF_PATH
666ENABLE_PYNSLCD_FALSE
667ENABLE_PYNSLCD_TRUE
668ENABLE_NSLCD_FALSE
669ENABLE_NSLCD_TRUE
670ENABLE_UTILS_FALSE
671ENABLE_UTILS_TRUE
672ENABLE_PAM_FALSE
673ENABLE_PAM_TRUE
674ENABLE_NSS_FALSE
675ENABLE_NSS_TRUE
676MAINT
677MAINTAINER_MODE_FALSE
678MAINTAINER_MODE_TRUE
679PIC_CFLAGS
680HAVE_PYTHON_FALSE
681HAVE_PYTHON_TRUE
682pkgpyexecdir
683pyexecdir
684pkgpythondir
685pythondir
686PYTHON_PLATFORM
687PYTHON_EXEC_PREFIX
688PYTHON_PREFIX
689PYTHON_VERSION
690PYTHON
691INSTMAN_FALSE
692INSTMAN_TRUE
693GENMAN_FALSE
694GENMAN_TRUE
695DOCBOOK2X_MAN
696ac_ct_AR
697AR
698LN_S
699EGREP
700GREP
701RANLIB
702CPP
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_os
747target_vendor
748target_cpu
749target
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758RELEASE_MONTH
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778runstatedir
779localstatedir
780sharedstatedir
781sysconfdir
782datadir
783datarootdir
784libexecdir
785sbindir
786bindir
787program_transform_name
788prefix
789exec_prefix
790PACKAGE_URL
791PACKAGE_BUGREPORT
792PACKAGE_STRING
793PACKAGE_VERSION
794PACKAGE_TARNAME
795PACKAGE_NAME
796PATH_SEPARATOR
797SHELL
798am__quote'
799ac_subst_files=''
800ac_user_opts='
801enable_option_checking
802enable_silent_rules
803enable_dependency_tracking
804enable_debug
805enable_warnings
806enable_maintainer_mode
807enable_nss
808enable_pam
809enable_utils
810enable_nslcd
811enable_pynslcd
812enable_sasl
813enable_kerberos
814enable_configfile_checking
815with_ldap_conf_file
816with_bindpw_file
817with_nslcd_pidfile
818with_nslcd_socket
819with_pam_seclib_dir
820with_module_name
821with_nss_ldap_soname
822with_pam_ldap_soname
823with_nss_maps
824with_nss_flavour
825with_ldap_lib
826'
827      ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
835CPP
836PYTHON'
837
838
839# Initialize some variables set by options.
840ac_init_help=
841ac_init_version=false
842ac_unrecognized_opts=
843ac_unrecognized_sep=
844# The variables have the same names as the options, with
845# dashes changed to underlines.
846cache_file=/dev/null
847exec_prefix=NONE
848no_create=
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
857verbose=
858x_includes=NONE
859x_libraries=NONE
860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
866# (The list follows the same order as the GNU Coding Standards.)
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
875runstatedir='${localstatedir}/run'
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
887
888ac_prev=
889ac_dashdash=
890for ac_option
891do
892  # If the previous option needs an argument, assign it.
893  if test -n "$ac_prev"; then
894    eval $ac_prev=\$ac_option
895    ac_prev=
896    continue
897  fi
898
899  case $ac_option in
900  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901  *=)   ac_optarg= ;;
902  *)    ac_optarg=yes ;;
903  esac
904
905  # Accept the important Cygnus configure options, so we can diagnose typos.
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -runstatedir | --runstatedir | --runstatedi | --runstated \
1129  | --runstate | --runstat | --runsta | --runst | --runs \
1130  | --run | --ru | --r)
1131    ac_prev=runstatedir ;;
1132  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134  | --run=* | --ru=* | --r=*)
1135    runstatedir=$ac_optarg ;;
1136
1137  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138    ac_prev=sbindir ;;
1139  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140  | --sbi=* | --sb=*)
1141    sbindir=$ac_optarg ;;
1142
1143  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145  | --sharedst | --shareds | --shared | --share | --shar \
1146  | --sha | --sh)
1147    ac_prev=sharedstatedir ;;
1148  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151  | --sha=* | --sh=*)
1152    sharedstatedir=$ac_optarg ;;
1153
1154  -site | --site | --sit)
1155    ac_prev=site ;;
1156  -site=* | --site=* | --sit=*)
1157    site=$ac_optarg ;;
1158
1159  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160    ac_prev=srcdir ;;
1161  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162    srcdir=$ac_optarg ;;
1163
1164  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165  | --syscon | --sysco | --sysc | --sys | --sy)
1166    ac_prev=sysconfdir ;;
1167  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169    sysconfdir=$ac_optarg ;;
1170
1171  -target | --target | --targe | --targ | --tar | --ta | --t)
1172    ac_prev=target_alias ;;
1173  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174    target_alias=$ac_optarg ;;
1175
1176  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177    verbose=yes ;;
1178
1179  -version | --version | --versio | --versi | --vers | -V)
1180    ac_init_version=: ;;
1181
1182  -with-* | --with-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid package name: $ac_useropt"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"with_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval with_$ac_useropt=\$ac_optarg ;;
1197
1198  -without-* | --without-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: $ac_useropt"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=no ;;
1213
1214  --x)
1215    # Obsolete; use --with-x.
1216    with_x=yes ;;
1217
1218  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219  | --x-incl | --x-inc | --x-in | --x-i)
1220    ac_prev=x_includes ;;
1221  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223    x_includes=$ac_optarg ;;
1224
1225  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227    ac_prev=x_libraries ;;
1228  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230    x_libraries=$ac_optarg ;;
1231
1232  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233Try \`$0 --help' for more information"
1234    ;;
1235
1236  *=*)
1237    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238    # Reject names that are not valid shell variable names.
1239    case $ac_envvar in #(
1240      '' | [0-9]* | *[!_$as_cr_alnum]* )
1241      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242    esac
1243    eval $ac_envvar=\$ac_optarg
1244    export $ac_envvar ;;
1245
1246  *)
1247    # FIXME: should be removed in autoconf 3.0.
1248    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252    ;;
1253
1254  esac
1255done
1256
1257if test -n "$ac_prev"; then
1258  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259  as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if test -n "$ac_unrecognized_opts"; then
1263  case $enable_option_checking in
1264    no) ;;
1265    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267  esac
1268fi
1269
1270# Check all directory arguments for consistency.
1271for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272		datadir sysconfdir sharedstatedir localstatedir includedir \
1273		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274		libdir localedir mandir runstatedir
1275do
1276  eval ac_val=\$$ac_var
1277  # Remove trailing slashes.
1278  case $ac_val in
1279    */ )
1280      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281      eval $ac_var=\$ac_val;;
1282  esac
1283  # Be sure to have absolute directory names.
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300  if test "x$build_alias" = x; then
1301    cross_compiling=maybe
1302  elif test "x$build_alias" != "x$host_alias"; then
1303    cross_compiling=yes
1304  fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316  as_fn_error $? "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318  as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323  ac_srcdir_defaulted=yes
1324  # Try the directory containing this script, then the parent directory.
1325  ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327	 X"$as_myself" : 'X\(//\)[^/]' \| \
1328	 X"$as_myself" : 'X\(//\)$' \| \
1329	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
1331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)[^/].*/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\).*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  s/.*/./; q'`
1348  srcdir=$ac_confdir
1349  if test ! -r "$srcdir/$ac_unique_file"; then
1350    srcdir=..
1351  fi
1352else
1353  ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362	pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365  srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_env_${ac_var}_value=\$${ac_var}
1376  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384  # Omit some internal or obsolete options to make the list less imposing.
1385  # This message is too long to be a string in the A/UX 3.1 sh.
1386  cat <<_ACEOF
1387\`configure' configures nss-pam-ldapd 0.9.11 to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397  -h, --help              display this help and exit
1398      --help=short        display options specific to this package
1399      --help=recursive    display the short help of all the included packages
1400  -V, --version           display version information and exit
1401  -q, --quiet, --silent   do not print \`checking ...' messages
1402      --cache-file=FILE   cache test results in FILE [disabled]
1403  -C, --config-cache      alias for \`--cache-file=config.cache'
1404  -n, --no-create         do not create output files
1405      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408  --prefix=PREFIX         install architecture-independent files in PREFIX
1409                          [$ac_default_prefix]
1410  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                          [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421  --bindir=DIR            user executables [EPREFIX/bin]
1422  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423  --libexecdir=DIR        program executables [EPREFIX/libexec]
1424  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1428  --libdir=DIR            object code libraries [EPREFIX/lib]
1429  --includedir=DIR        C header files [PREFIX/include]
1430  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433  --infodir=DIR           info documentation [DATAROOTDIR/info]
1434  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435  --mandir=DIR            man documentation [DATAROOTDIR/man]
1436  --docdir=DIR            documentation root [DATAROOTDIR/doc/nss-pam-ldapd]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445Program names:
1446  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450System types:
1451  --build=BUILD     configure for building on BUILD [guessed]
1452  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453  --target=TARGET   configure for building compilers for TARGET [HOST]
1454_ACEOF
1455fi
1456
1457if test -n "$ac_init_help"; then
1458  case $ac_init_help in
1459     short | recursive ) echo "Configuration of nss-pam-ldapd 0.9.11:";;
1460   esac
1461  cat <<\_ACEOF
1462
1463Optional Features:
1464  --disable-option-checking  ignore unrecognized --enable/--with options
1465  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467  --enable-silent-rules   less verbose build output (undo: "make V=1")
1468  --disable-silent-rules  verbose build output (undo: "make V=0")
1469  --enable-dependency-tracking
1470                          do not reject slow dependency extractors
1471  --disable-dependency-tracking
1472                          speeds up one-time build
1473  --enable-debug          enable extensive debugging and logging
1474  --enable-warnings       enable extra compiler warnings (gcc)
1475  --disable-maintainer-mode
1476                          disable make rules and dependencies not useful (and
1477                          sometimes confusing) to the casual installer
1478  --disable-nss           build the NSS module [enabled]
1479  --disable-pam           build the PAM module [enabled]
1480  --disable-utils         build the the command-line utilities [auto]
1481  --disable-nslcd         build the nslcd daemon [enabled]
1482  --enable-pynslcd        build the pynslcd daemon [disabled]
1483  --disable-sasl          disable SASL support [enabled]
1484  --disable-kerberos      disable Kerberos support [enabled]
1485  --disable-configfile-checking
1486                          check configfile options [enabled]
1487
1488Optional Packages:
1489  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491  --with-ldap-conf-file=PATH
1492                          path to nslcd configuration file [/etc/nslcd.conf]
1493  --with-bindpw-file=PATH path to file with value for bindpw [disabled]
1494  --with-nslcd-pidfile=PATH
1495                          path to pidfile [/var/run/nslcd/nslcd.pid]
1496  --with-nslcd-socket=PATH
1497                          path to socket [/var/run/nslcd/socket]
1498  --with-pam-seclib-dir=PAM_SECLIB_DIR
1499                          path to PAM security library [auto]
1500  --with-module-name=NAME name of NSS and PAM modules [ldap]
1501  --with-nss-ldap-soname=SONAME
1502                          name of NSS module [auto]
1503  --with-pam-ldap-soname=SONAME
1504                          name of PAM module [auto]
1505  --with-nss-maps=MAP LIST
1506                          comma separated list of NSS maps to build [all]
1507  --with-nss-flavour=auto|glibc|solaris|freebsd
1508                          the libc flavour to build our NSS module for [auto]
1509  --with-ldap-lib=TYPE    select ldap library
1510                          (auto|netscape5|netscape4|netscape3|umich|openldap)
1511                          [auto]
1512
1513Some influential environment variables:
1514  CC          C compiler command
1515  CFLAGS      C compiler flags
1516  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517              nonstandard directory <lib dir>
1518  LIBS        libraries to pass to the linker, e.g. -l<library>
1519  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520              you have headers in a nonstandard directory <include dir>
1521  CPP         C preprocessor
1522  PYTHON      the Python interpreter
1523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
1527Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
1528nss-pam-ldapd home page: <https://arthurdejong.org/nss-pam-ldapd/>.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591nss-pam-ldapd configure 0.9.11
1592generated by GNU Autoconf 2.69
1593
1594Copyright (C) 2012 Free Software Foundation, Inc.
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597
1598Copyright (C) 2006 Luke Howard
1599Copyright (C) 2006 West Consulting
1600Copyright (C) 2006-2019 Arthur de Jong
1601
1602This configure script is derived from configure.ac which is free software;
1603you can redistribute it and/or modify it under the terms of the GNU Lesser
1604General Public License as published by the Free Software Foundation; either
1605version 2.1 of the License, or (at your option) any later version. See the
1606configure.ac file for more details.
1607_ACEOF
1608  exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_compile
1652
1653# ac_fn_c_try_cpp LINENO
1654# ----------------------
1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_cpp ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } > conftest.i && {
1675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683    ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_cpp
1689
1690# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1691# -------------------------------------------------------
1692# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1693# the include files in INCLUDES and setting the cache variable VAR
1694# accordingly.
1695ac_fn_c_check_header_mongrel ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  if eval \${$3+:} false; then :
1699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700$as_echo_n "checking for $2... " >&6; }
1701if eval \${$3+:} false; then :
1702  $as_echo_n "(cached) " >&6
1703fi
1704eval ac_res=\$$3
1705	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707else
1708  # Is the header compilable?
1709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1710$as_echo_n "checking $2 usability... " >&6; }
1711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714#include <$2>
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  ac_header_compiler=yes
1718else
1719  ac_header_compiler=no
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1723$as_echo "$ac_header_compiler" >&6; }
1724
1725# Is the header present?
1726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1727$as_echo_n "checking $2 presence... " >&6; }
1728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_cpp "$LINENO"; then :
1733  ac_header_preproc=yes
1734else
1735  ac_header_preproc=no
1736fi
1737rm -f conftest.err conftest.i conftest.$ac_ext
1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1739$as_echo "$ac_header_preproc" >&6; }
1740
1741# So?  What about this header?
1742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1743  yes:no: )
1744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1745$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1747$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748    ;;
1749  no:yes:* )
1750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1751$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1752    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1753$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1754    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1755$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1756    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1757$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1758    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760( $as_echo "## --------------------------------------------------------- ##
1761## Report this to nss-pam-ldapd-users@lists.arthurdejong.org ##
1762## --------------------------------------------------------- ##"
1763     ) | sed "s/^/$as_me: WARNING:     /" >&2
1764    ;;
1765esac
1766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if eval \${$3+:} false; then :
1769  $as_echo_n "(cached) " >&6
1770else
1771  eval "$3=\$ac_header_compiler"
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776fi
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779} # ac_fn_c_check_header_mongrel
1780
1781# ac_fn_c_try_run LINENO
1782# ----------------------
1783# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784# that executables *can* be run.
1785ac_fn_c_try_run ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  if { { ac_try="$ac_link"
1789case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_link") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799  { { case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_try") 2>&5
1806  ac_status=$?
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; }; }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: program exited with status $ac_status" >&5
1812       $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815       ac_retval=$ac_status
1816fi
1817  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819  as_fn_set_status $ac_retval
1820
1821} # ac_fn_c_try_run
1822
1823# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824# -------------------------------------------------------
1825# Tests whether HEADER exists and can be compiled using the include files in
1826# INCLUDES, setting the cache variable VAR accordingly.
1827ac_fn_c_check_header_compile ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if eval \${$3+:} false; then :
1833  $as_echo_n "(cached) " >&6
1834else
1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837$4
1838#include <$2>
1839_ACEOF
1840if ac_fn_c_try_compile "$LINENO"; then :
1841  eval "$3=yes"
1842else
1843  eval "$3=no"
1844fi
1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846fi
1847eval ac_res=\$$3
1848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852} # ac_fn_c_check_header_compile
1853
1854# ac_fn_c_try_link LINENO
1855# -----------------------
1856# Try to link conftest.$ac_ext, and return whether this succeeded.
1857ac_fn_c_try_link ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  rm -f conftest.$ac_objext conftest$ac_exeext
1861  if { { ac_try="$ac_link"
1862case "(($ac_try" in
1863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864  *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868  (eval "$ac_link") 2>conftest.err
1869  ac_status=$?
1870  if test -s conftest.err; then
1871    grep -v '^ *+' conftest.err >conftest.er1
1872    cat conftest.er1 >&5
1873    mv -f conftest.er1 conftest.err
1874  fi
1875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876  test $ac_status = 0; } && {
1877	 test -z "$ac_c_werror_flag" ||
1878	 test ! -s conftest.err
1879       } && test -s conftest$ac_exeext && {
1880	 test "$cross_compiling" = yes ||
1881	 test -x conftest$ac_exeext
1882       }; then :
1883  ac_retval=0
1884else
1885  $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888	ac_retval=1
1889fi
1890  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1891  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1892  # interfere with the next link command; also delete a directory that is
1893  # left behind by Apple's compiler.  We do this before executing the actions.
1894  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896  as_fn_set_status $ac_retval
1897
1898} # ac_fn_c_try_link
1899
1900# ac_fn_c_check_func LINENO FUNC VAR
1901# ----------------------------------
1902# Tests whether FUNC exists, setting the cache variable VAR accordingly
1903ac_fn_c_check_func ()
1904{
1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if eval \${$3+:} false; then :
1909  $as_echo_n "(cached) " >&6
1910else
1911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1915#define $2 innocuous_$2
1916
1917/* System header to define __stub macros and hopefully few prototypes,
1918    which can conflict with char $2 (); below.
1919    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920    <limits.h> exists even on freestanding compilers.  */
1921
1922#ifdef __STDC__
1923# include <limits.h>
1924#else
1925# include <assert.h>
1926#endif
1927
1928#undef $2
1929
1930/* Override any GCC internal prototype to avoid an error.
1931   Use char because int might match the return type of a GCC
1932   builtin and then its argument prototype would still apply.  */
1933#ifdef __cplusplus
1934extern "C"
1935#endif
1936char $2 ();
1937/* The GNU C library defines this for functions which it implements
1938    to always fail with ENOSYS.  Some functions are actually named
1939    something starting with __ and the normal name is an alias.  */
1940#if defined __stub_$2 || defined __stub___$2
1941choke me
1942#endif
1943
1944int
1945main ()
1946{
1947return $2 ();
1948  ;
1949  return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_link "$LINENO"; then :
1953  eval "$3=yes"
1954else
1955  eval "$3=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext \
1958    conftest$ac_exeext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_func
1966
1967# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968# -------------------------------------------
1969# Tests whether TYPE exists after having included INCLUDES, setting cache
1970# variable VAR accordingly.
1971ac_fn_c_check_type ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval \${$3+:} false; then :
1977  $as_echo_n "(cached) " >&6
1978else
1979  eval "$3=no"
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983int
1984main ()
1985{
1986if (sizeof ($2))
1987	 return 0;
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995$4
1996int
1997main ()
1998{
1999if (sizeof (($2)))
2000	    return 0;
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006
2007else
2008  eval "$3=yes"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019} # ac_fn_c_check_type
2020
2021# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2022# ---------------------------------------------
2023# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2024# accordingly.
2025ac_fn_c_check_decl ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  as_decl_name=`echo $2|sed 's/ *(.*//'`
2029  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2031$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2032if eval \${$3+:} false; then :
2033  $as_echo_n "(cached) " >&6
2034else
2035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037$4
2038int
2039main ()
2040{
2041#ifndef $as_decl_name
2042#ifdef __cplusplus
2043  (void) $as_decl_use;
2044#else
2045  (void) $as_decl_name;
2046#endif
2047#endif
2048
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"; then :
2054  eval "$3=yes"
2055else
2056  eval "$3=no"
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060eval ac_res=\$$3
2061	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062$as_echo "$ac_res" >&6; }
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065} # ac_fn_c_check_decl
2066
2067# ac_fn_c_find_intX_t LINENO BITS VAR
2068# -----------------------------------
2069# Finds a signed integer type with width BITS, setting cache variable VAR
2070# accordingly.
2071ac_fn_c_find_intX_t ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2075$as_echo_n "checking for int$2_t... " >&6; }
2076if eval \${$3+:} false; then :
2077  $as_echo_n "(cached) " >&6
2078else
2079  eval "$3=no"
2080     # Order is important - never check a type that is potentially smaller
2081     # than half of the expected target width.
2082     for ac_type in int$2_t 'int' 'long int' \
2083	 'long long int' 'short int' 'signed char'; do
2084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h.  */
2086$ac_includes_default
2087	     enum { N = $2 / 2 - 1 };
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2092test_array [0] = 0;
2093return test_array [0];
2094
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$ac_includes_default
2103	        enum { N = $2 / 2 - 1 };
2104int
2105main ()
2106{
2107static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2108		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2109test_array [0] = 0;
2110return test_array [0];
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117
2118else
2119  case $ac_type in #(
2120  int$2_t) :
2121    eval "$3=yes" ;; #(
2122  *) :
2123    eval "$3=\$ac_type" ;;
2124esac
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129       if eval test \"x\$"$3"\" = x"no"; then :
2130
2131else
2132  break
2133fi
2134     done
2135fi
2136eval ac_res=\$$3
2137	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141} # ac_fn_c_find_intX_t
2142
2143# ac_fn_c_find_uintX_t LINENO BITS VAR
2144# ------------------------------------
2145# Finds an unsigned integer type with width BITS, setting cache variable VAR
2146# accordingly.
2147ac_fn_c_find_uintX_t ()
2148{
2149  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2151$as_echo_n "checking for uint$2_t... " >&6; }
2152if eval \${$3+:} false; then :
2153  $as_echo_n "(cached) " >&6
2154else
2155  eval "$3=no"
2156     # Order is important - never check a type that is potentially smaller
2157     # than half of the expected target width.
2158     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2159	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2160       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162$ac_includes_default
2163int
2164main ()
2165{
2166static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2167test_array [0] = 0;
2168return test_array [0];
2169
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_compile "$LINENO"; then :
2175  case $ac_type in #(
2176  uint$2_t) :
2177    eval "$3=yes" ;; #(
2178  *) :
2179    eval "$3=\$ac_type" ;;
2180esac
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183       if eval test \"x\$"$3"\" = x"no"; then :
2184
2185else
2186  break
2187fi
2188     done
2189fi
2190eval ac_res=\$$3
2191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195} # ac_fn_c_find_uintX_t
2196
2197# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2198# --------------------------------------------
2199# Tries to find the compile-time value of EXPR in a program that includes
2200# INCLUDES, setting VAR accordingly. Returns whether the value could be
2201# computed
2202ac_fn_c_compute_int ()
2203{
2204  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205  if test "$cross_compiling" = yes; then
2206    # Depending upon the size, compute the lo and hi bounds.
2207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210int
2211main ()
2212{
2213static int test_array [1 - 2 * !(($2) >= 0)];
2214test_array [0] = 0;
2215return test_array [0];
2216
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222  ac_lo=0 ac_mid=0
2223  while :; do
2224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h.  */
2226$4
2227int
2228main ()
2229{
2230static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2231test_array [0] = 0;
2232return test_array [0];
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"; then :
2239  ac_hi=$ac_mid; break
2240else
2241  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2242			if test $ac_lo -le $ac_mid; then
2243			  ac_lo= ac_hi=
2244			  break
2245			fi
2246			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249  done
2250else
2251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h.  */
2253$4
2254int
2255main ()
2256{
2257static int test_array [1 - 2 * !(($2) < 0)];
2258test_array [0] = 0;
2259return test_array [0];
2260
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  ac_hi=-1 ac_mid=-1
2267  while :; do
2268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271int
2272main ()
2273{
2274static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2275test_array [0] = 0;
2276return test_array [0];
2277
2278  ;
2279  return 0;
2280}
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283  ac_lo=$ac_mid; break
2284else
2285  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2286			if test $ac_mid -le $ac_hi; then
2287			  ac_lo= ac_hi=
2288			  break
2289			fi
2290			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2291fi
2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293  done
2294else
2295  ac_lo= ac_hi=
2296fi
2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300# Binary search between lo and hi bounds.
2301while test "x$ac_lo" != "x$ac_hi"; do
2302  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h.  */
2305$4
2306int
2307main ()
2308{
2309static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2310test_array [0] = 0;
2311return test_array [0];
2312
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318  ac_hi=$ac_mid
2319else
2320  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2321fi
2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323done
2324case $ac_lo in #((
2325?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2326'') ac_retval=1 ;;
2327esac
2328  else
2329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330/* end confdefs.h.  */
2331$4
2332static long int longval () { return $2; }
2333static unsigned long int ulongval () { return $2; }
2334#include <stdio.h>
2335#include <stdlib.h>
2336int
2337main ()
2338{
2339
2340  FILE *f = fopen ("conftest.val", "w");
2341  if (! f)
2342    return 1;
2343  if (($2) < 0)
2344    {
2345      long int i = longval ();
2346      if (i != ($2))
2347	return 1;
2348      fprintf (f, "%ld", i);
2349    }
2350  else
2351    {
2352      unsigned long int i = ulongval ();
2353      if (i != ($2))
2354	return 1;
2355      fprintf (f, "%lu", i);
2356    }
2357  /* Do not output a trailing newline, as this causes \r\n confusion
2358     on some platforms.  */
2359  return ferror (f) || fclose (f) != 0;
2360
2361  ;
2362  return 0;
2363}
2364_ACEOF
2365if ac_fn_c_try_run "$LINENO"; then :
2366  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2367else
2368  ac_retval=1
2369fi
2370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2371  conftest.$ac_objext conftest.beam conftest.$ac_ext
2372rm -f conftest.val
2373
2374  fi
2375  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376  as_fn_set_status $ac_retval
2377
2378} # ac_fn_c_compute_int
2379
2380# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2381# ----------------------------------------------------
2382# Tries to find if the field MEMBER exists in type AGGR, after including
2383# INCLUDES, setting cache variable VAR accordingly.
2384ac_fn_c_check_member ()
2385{
2386  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2388$as_echo_n "checking for $2.$3... " >&6; }
2389if eval \${$4+:} false; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393/* end confdefs.h.  */
2394$5
2395int
2396main ()
2397{
2398static $2 ac_aggr;
2399if (ac_aggr.$3)
2400return 0;
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405if ac_fn_c_try_compile "$LINENO"; then :
2406  eval "$4=yes"
2407else
2408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409/* end confdefs.h.  */
2410$5
2411int
2412main ()
2413{
2414static $2 ac_aggr;
2415if (sizeof ac_aggr.$3)
2416return 0;
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421if ac_fn_c_try_compile "$LINENO"; then :
2422  eval "$4=yes"
2423else
2424  eval "$4=no"
2425fi
2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427fi
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429fi
2430eval ac_res=\$$4
2431	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432$as_echo "$ac_res" >&6; }
2433  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434
2435} # ac_fn_c_check_member
2436cat >config.log <<_ACEOF
2437This file contains any messages produced by compilers while
2438running configure, to aid debugging if configure makes a mistake.
2439
2440It was created by nss-pam-ldapd $as_me 0.9.11, which was
2441generated by GNU Autoconf 2.69.  Invocation command line was
2442
2443  $ $0 $@
2444
2445_ACEOF
2446exec 5>>config.log
2447{
2448cat <<_ASUNAME
2449## --------- ##
2450## Platform. ##
2451## --------- ##
2452
2453hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2454uname -m = `(uname -m) 2>/dev/null || echo unknown`
2455uname -r = `(uname -r) 2>/dev/null || echo unknown`
2456uname -s = `(uname -s) 2>/dev/null || echo unknown`
2457uname -v = `(uname -v) 2>/dev/null || echo unknown`
2458
2459/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2460/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2461
2462/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2463/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2464/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2465/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2466/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2467/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2468/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2469
2470_ASUNAME
2471
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    $as_echo "PATH: $as_dir"
2478  done
2479IFS=$as_save_IFS
2480
2481} >&5
2482
2483cat >&5 <<_ACEOF
2484
2485
2486## ----------- ##
2487## Core tests. ##
2488## ----------- ##
2489
2490_ACEOF
2491
2492
2493# Keep a trace of the command line.
2494# Strip out --no-create and --no-recursion so they do not pile up.
2495# Strip out --silent because we don't want to record it for future runs.
2496# Also quote any args containing shell meta-characters.
2497# Make two passes to allow for proper duplicate-argument suppression.
2498ac_configure_args=
2499ac_configure_args0=
2500ac_configure_args1=
2501ac_must_keep_next=false
2502for ac_pass in 1 2
2503do
2504  for ac_arg
2505  do
2506    case $ac_arg in
2507    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2508    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2509    | -silent | --silent | --silen | --sile | --sil)
2510      continue ;;
2511    *\'*)
2512      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2513    esac
2514    case $ac_pass in
2515    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2516    2)
2517      as_fn_append ac_configure_args1 " '$ac_arg'"
2518      if test $ac_must_keep_next = true; then
2519	ac_must_keep_next=false # Got value, back to normal.
2520      else
2521	case $ac_arg in
2522	  *=* | --config-cache | -C | -disable-* | --disable-* \
2523	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2524	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2525	  | -with-* | --with-* | -without-* | --without-* | --x)
2526	    case "$ac_configure_args0 " in
2527	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2528	    esac
2529	    ;;
2530	  -* ) ac_must_keep_next=true ;;
2531	esac
2532      fi
2533      as_fn_append ac_configure_args " '$ac_arg'"
2534      ;;
2535    esac
2536  done
2537done
2538{ ac_configure_args0=; unset ac_configure_args0;}
2539{ ac_configure_args1=; unset ac_configure_args1;}
2540
2541# When interrupted or exit'd, cleanup temporary files, and complete
2542# config.log.  We remove comments because anyway the quotes in there
2543# would cause problems or look ugly.
2544# WARNING: Use '\'' to represent an apostrophe within the trap.
2545# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2546trap 'exit_status=$?
2547  # Save into config.log some information that might help in debugging.
2548  {
2549    echo
2550
2551    $as_echo "## ---------------- ##
2552## Cache variables. ##
2553## ---------------- ##"
2554    echo
2555    # The following way of writing the cache mishandles newlines in values,
2556(
2557  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2558    eval ac_val=\$$ac_var
2559    case $ac_val in #(
2560    *${as_nl}*)
2561      case $ac_var in #(
2562      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2564      esac
2565      case $ac_var in #(
2566      _ | IFS | as_nl) ;; #(
2567      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2568      *) { eval $ac_var=; unset $ac_var;} ;;
2569      esac ;;
2570    esac
2571  done
2572  (set) 2>&1 |
2573    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2574    *${as_nl}ac_space=\ *)
2575      sed -n \
2576	"s/'\''/'\''\\\\'\'''\''/g;
2577	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2578      ;; #(
2579    *)
2580      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581      ;;
2582    esac |
2583    sort
2584)
2585    echo
2586
2587    $as_echo "## ----------------- ##
2588## Output variables. ##
2589## ----------------- ##"
2590    echo
2591    for ac_var in $ac_subst_vars
2592    do
2593      eval ac_val=\$$ac_var
2594      case $ac_val in
2595      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2596      esac
2597      $as_echo "$ac_var='\''$ac_val'\''"
2598    done | sort
2599    echo
2600
2601    if test -n "$ac_subst_files"; then
2602      $as_echo "## ------------------- ##
2603## File substitutions. ##
2604## ------------------- ##"
2605      echo
2606      for ac_var in $ac_subst_files
2607      do
2608	eval ac_val=\$$ac_var
2609	case $ac_val in
2610	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611	esac
2612	$as_echo "$ac_var='\''$ac_val'\''"
2613      done | sort
2614      echo
2615    fi
2616
2617    if test -s confdefs.h; then
2618      $as_echo "## ----------- ##
2619## confdefs.h. ##
2620## ----------- ##"
2621      echo
2622      cat confdefs.h
2623      echo
2624    fi
2625    test "$ac_signal" != 0 &&
2626      $as_echo "$as_me: caught signal $ac_signal"
2627    $as_echo "$as_me: exit $exit_status"
2628  } >&5
2629  rm -f core *.core core.conftest.* &&
2630    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2631    exit $exit_status
2632' 0
2633for ac_signal in 1 2 13 15; do
2634  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635done
2636ac_signal=0
2637
2638# confdefs.h avoids OS command line length limits that DEFS can exceed.
2639rm -f -r conftest* confdefs.h
2640
2641$as_echo "/* confdefs.h */" > confdefs.h
2642
2643# Predefined preprocessor variables.
2644
2645cat >>confdefs.h <<_ACEOF
2646#define PACKAGE_NAME "$PACKAGE_NAME"
2647_ACEOF
2648
2649cat >>confdefs.h <<_ACEOF
2650#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2651_ACEOF
2652
2653cat >>confdefs.h <<_ACEOF
2654#define PACKAGE_VERSION "$PACKAGE_VERSION"
2655_ACEOF
2656
2657cat >>confdefs.h <<_ACEOF
2658#define PACKAGE_STRING "$PACKAGE_STRING"
2659_ACEOF
2660
2661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2663_ACEOF
2664
2665cat >>confdefs.h <<_ACEOF
2666#define PACKAGE_URL "$PACKAGE_URL"
2667_ACEOF
2668
2669
2670# Let the site file select an alternate cache file if it wants to.
2671# Prefer an explicitly selected file to automatically selected ones.
2672ac_site_file1=NONE
2673ac_site_file2=NONE
2674if test -n "$CONFIG_SITE"; then
2675  # We do not want a PATH search for config.site.
2676  case $CONFIG_SITE in #((
2677    -*)  ac_site_file1=./$CONFIG_SITE;;
2678    */*) ac_site_file1=$CONFIG_SITE;;
2679    *)   ac_site_file1=./$CONFIG_SITE;;
2680  esac
2681elif test "x$prefix" != xNONE; then
2682  ac_site_file1=$prefix/share/config.site
2683  ac_site_file2=$prefix/etc/config.site
2684else
2685  ac_site_file1=$ac_default_prefix/share/config.site
2686  ac_site_file2=$ac_default_prefix/etc/config.site
2687fi
2688for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2689do
2690  test "x$ac_site_file" = xNONE && continue
2691  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2692    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2693$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2694    sed 's/^/| /' "$ac_site_file" >&5
2695    . "$ac_site_file" \
2696      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698as_fn_error $? "failed to load site script $ac_site_file
2699See \`config.log' for more details" "$LINENO" 5; }
2700  fi
2701done
2702
2703if test -r "$cache_file"; then
2704  # Some versions of bash will fail to source /dev/null (special files
2705  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2706  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2707    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2708$as_echo "$as_me: loading cache $cache_file" >&6;}
2709    case $cache_file in
2710      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2711      *)                      . "./$cache_file";;
2712    esac
2713  fi
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2716$as_echo "$as_me: creating cache $cache_file" >&6;}
2717  >$cache_file
2718fi
2719
2720# Check that the precious variables saved in the cache have kept the same
2721# value.
2722ac_cache_corrupted=false
2723for ac_var in $ac_precious_vars; do
2724  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2725  eval ac_new_set=\$ac_env_${ac_var}_set
2726  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2727  eval ac_new_val=\$ac_env_${ac_var}_value
2728  case $ac_old_set,$ac_new_set in
2729    set,)
2730      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2731$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2732      ac_cache_corrupted=: ;;
2733    ,set)
2734      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2735$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2736      ac_cache_corrupted=: ;;
2737    ,);;
2738    *)
2739      if test "x$ac_old_val" != "x$ac_new_val"; then
2740	# differences in whitespace do not lead to failure.
2741	ac_old_val_w=`echo x $ac_old_val`
2742	ac_new_val_w=`echo x $ac_new_val`
2743	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2744	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2745$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2746	  ac_cache_corrupted=:
2747	else
2748	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2749$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2750	  eval $ac_var=\$ac_old_val
2751	fi
2752	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2753$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2754	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2755$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2756      fi;;
2757  esac
2758  # Pass precious variables to config.status.
2759  if test "$ac_new_set" = set; then
2760    case $ac_new_val in
2761    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2762    *) ac_arg=$ac_var=$ac_new_val ;;
2763    esac
2764    case " $ac_configure_args " in
2765      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2766      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767    esac
2768  fi
2769done
2770if $ac_cache_corrupted; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2774$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2775  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2776fi
2777## -------------------- ##
2778## Main body of script. ##
2779## -------------------- ##
2780
2781ac_ext=c
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787
2788RELEASE_MONTH="Oct 2018"
2789
2790
2791
2792
2793# some initialisation
2794ac_aux_dir=
2795for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2796  if test -f "$ac_dir/install-sh"; then
2797    ac_aux_dir=$ac_dir
2798    ac_install_sh="$ac_aux_dir/install-sh -c"
2799    break
2800  elif test -f "$ac_dir/install.sh"; then
2801    ac_aux_dir=$ac_dir
2802    ac_install_sh="$ac_aux_dir/install.sh -c"
2803    break
2804  elif test -f "$ac_dir/shtool"; then
2805    ac_aux_dir=$ac_dir
2806    ac_install_sh="$ac_aux_dir/shtool install -c"
2807    break
2808  fi
2809done
2810if test -z "$ac_aux_dir"; then
2811  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2812fi
2813
2814# These three variables are undocumented and unsupported,
2815# and are intended to be withdrawn in a future Autoconf release.
2816# They can cause serious problems if a builder's source tree is in a directory
2817# whose full name contains unusual characters.
2818ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2819ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2820ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2821
2822
2823# Make sure we can run config.sub.
2824$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2825  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2826
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2828$as_echo_n "checking build system type... " >&6; }
2829if ${ac_cv_build+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  ac_build_alias=$build_alias
2833test "x$ac_build_alias" = x &&
2834  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2835test "x$ac_build_alias" = x &&
2836  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2837ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2838  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2839
2840fi
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2842$as_echo "$ac_cv_build" >&6; }
2843case $ac_cv_build in
2844*-*-*) ;;
2845*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2846esac
2847build=$ac_cv_build
2848ac_save_IFS=$IFS; IFS='-'
2849set x $ac_cv_build
2850shift
2851build_cpu=$1
2852build_vendor=$2
2853shift; shift
2854# Remember, the first character of IFS is used to create $*,
2855# except with old shells:
2856build_os=$*
2857IFS=$ac_save_IFS
2858case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2859
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2862$as_echo_n "checking host system type... " >&6; }
2863if ${ac_cv_host+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  if test "x$host_alias" = x; then
2867  ac_cv_host=$ac_cv_build
2868else
2869  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2870    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2871fi
2872
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2875$as_echo "$ac_cv_host" >&6; }
2876case $ac_cv_host in
2877*-*-*) ;;
2878*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2879esac
2880host=$ac_cv_host
2881ac_save_IFS=$IFS; IFS='-'
2882set x $ac_cv_host
2883shift
2884host_cpu=$1
2885host_vendor=$2
2886shift; shift
2887# Remember, the first character of IFS is used to create $*,
2888# except with old shells:
2889host_os=$*
2890IFS=$ac_save_IFS
2891case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2892
2893
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2895$as_echo_n "checking target system type... " >&6; }
2896if ${ac_cv_target+:} false; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test "x$target_alias" = x; then
2900  ac_cv_target=$ac_cv_host
2901else
2902  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2903    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2904fi
2905
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2908$as_echo "$ac_cv_target" >&6; }
2909case $ac_cv_target in
2910*-*-*) ;;
2911*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2912esac
2913target=$ac_cv_target
2914ac_save_IFS=$IFS; IFS='-'
2915set x $ac_cv_target
2916shift
2917target_cpu=$1
2918target_vendor=$2
2919shift; shift
2920# Remember, the first character of IFS is used to create $*,
2921# except with old shells:
2922target_os=$*
2923IFS=$ac_save_IFS
2924case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2925
2926
2927# The aliases save the names the user supplied, while $host etc.
2928# will get canonicalized.
2929test -n "$target_alias" &&
2930  test "$program_prefix$program_suffix$program_transform_name" = \
2931    NONENONEs,x,x, &&
2932  program_prefix=${target_alias}-
2933
2934
2935
2936# display notice and initialize automake
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.9.11" >&5
2938$as_echo "$as_me: configuring nss-pam-ldapd 0.9.11" >&6;}
2939am__api_version='1.16'
2940
2941# Find a good install program.  We prefer a C program (faster),
2942# so one script is as good as another.  But avoid the broken or
2943# incompatible versions:
2944# SysV /etc/install, /usr/sbin/install
2945# SunOS /usr/etc/install
2946# IRIX /sbin/install
2947# AIX /bin/install
2948# AmigaOS /C/install, which installs bootblocks on floppy discs
2949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952# OS/2's system install, which has a completely different semantic
2953# ./install, which can be erroneously created by make from ./install.sh.
2954# Reject install programs that cannot install multiple files.
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2956$as_echo_n "checking for a BSD-compatible install... " >&6; }
2957if test -z "$INSTALL"; then
2958if ${ac_cv_path_install+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966    # Account for people who put trailing slashes in PATH elements.
2967case $as_dir/ in #((
2968  ./ | .// | /[cC]/* | \
2969  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2971  /usr/ucb/* ) ;;
2972  *)
2973    # OSF1 and SCO ODT 3.0 have their own names for install.
2974    # Don't use installbsd from OSF since it installs stuff as root
2975    # by default.
2976    for ac_prog in ginstall scoinst install; do
2977      for ac_exec_ext in '' $ac_executable_extensions; do
2978	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2979	  if test $ac_prog = install &&
2980	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981	    # AIX install.  It has an incompatible calling convention.
2982	    :
2983	  elif test $ac_prog = install &&
2984	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985	    # program-specific install script used by HP pwplus--don't use.
2986	    :
2987	  else
2988	    rm -rf conftest.one conftest.two conftest.dir
2989	    echo one > conftest.one
2990	    echo two > conftest.two
2991	    mkdir conftest.dir
2992	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2993	      test -s conftest.one && test -s conftest.two &&
2994	      test -s conftest.dir/conftest.one &&
2995	      test -s conftest.dir/conftest.two
2996	    then
2997	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2998	      break 3
2999	    fi
3000	  fi
3001	fi
3002      done
3003    done
3004    ;;
3005esac
3006
3007  done
3008IFS=$as_save_IFS
3009
3010rm -rf conftest.one conftest.two conftest.dir
3011
3012fi
3013  if test "${ac_cv_path_install+set}" = set; then
3014    INSTALL=$ac_cv_path_install
3015  else
3016    # As a last resort, use the slow shell script.  Don't cache a
3017    # value for INSTALL within a source directory, because that will
3018    # break other packages using the cache if that directory is
3019    # removed, or if the value is a relative name.
3020    INSTALL=$ac_install_sh
3021  fi
3022fi
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3024$as_echo "$INSTALL" >&6; }
3025
3026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027# It thinks the first close brace ends the variable substitution.
3028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029
3030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031
3032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3035$as_echo_n "checking whether build environment is sane... " >&6; }
3036# Reject unsafe characters in $srcdir or the absolute working directory
3037# name.  Accept space and tab only in the latter.
3038am_lf='
3039'
3040case `pwd` in
3041  *[\\\"\#\$\&\'\`$am_lf]*)
3042    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3043esac
3044case $srcdir in
3045  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3046    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3047esac
3048
3049# Do 'set' in a subshell so we don't clobber the current shell's
3050# arguments.  Must try -L first in case configure is actually a
3051# symlink; some systems play weird games with the mod time of symlinks
3052# (eg FreeBSD returns the mod time of the symlink's containing
3053# directory).
3054if (
3055   am_has_slept=no
3056   for am_try in 1 2; do
3057     echo "timestamp, slept: $am_has_slept" > conftest.file
3058     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3059     if test "$*" = "X"; then
3060	# -L didn't work.
3061	set X `ls -t "$srcdir/configure" conftest.file`
3062     fi
3063     if test "$*" != "X $srcdir/configure conftest.file" \
3064	&& test "$*" != "X conftest.file $srcdir/configure"; then
3065
3066	# If neither matched, then we have a broken ls.  This can happen
3067	# if, for instance, CONFIG_SHELL is bash and it inherits a
3068	# broken ls alias from the environment.  This has actually
3069	# happened.  Such a system could not be considered "sane".
3070	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3071  alias in your environment" "$LINENO" 5
3072     fi
3073     if test "$2" = conftest.file || test $am_try -eq 2; then
3074       break
3075     fi
3076     # Just in case.
3077     sleep 1
3078     am_has_slept=yes
3079   done
3080   test "$2" = conftest.file
3081   )
3082then
3083   # Ok.
3084   :
3085else
3086   as_fn_error $? "newly created file is older than distributed files!
3087Check your system clock" "$LINENO" 5
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090$as_echo "yes" >&6; }
3091# If we didn't sleep, we still need to ensure time stamps of config.status and
3092# generated files are strictly newer.
3093am_sleep_pid=
3094if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3095  ( sleep 1 ) &
3096  am_sleep_pid=$!
3097fi
3098
3099rm -f conftest.file
3100
3101test "$program_prefix" != NONE &&
3102  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3103# Use a double $ so make ignores it.
3104test "$program_suffix" != NONE &&
3105  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3106# Double any \ or $.
3107# By default was `s,x,x', remove it if useless.
3108ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3109program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3110
3111# Expand $ac_aux_dir to an absolute path.
3112am_aux_dir=`cd "$ac_aux_dir" && pwd`
3113
3114if test x"${MISSING+set}" != xset; then
3115  case $am_aux_dir in
3116  *\ * | *\	*)
3117    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3118  *)
3119    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3120  esac
3121fi
3122# Use eval to expand $SHELL
3123if eval "$MISSING --is-lightweight"; then
3124  am_missing_run="$MISSING "
3125else
3126  am_missing_run=
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3128$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3129fi
3130
3131if test x"${install_sh+set}" != xset; then
3132  case $am_aux_dir in
3133  *\ * | *\	*)
3134    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3135  *)
3136    install_sh="\${SHELL} $am_aux_dir/install-sh"
3137  esac
3138fi
3139
3140# Installed binaries are usually stripped using 'strip' when the user
3141# run "make install-strip".  However 'strip' might not be the right
3142# tool to use in cross-compilation environments, therefore Automake
3143# will honor the 'STRIP' environment variable to overrule this program.
3144if test "$cross_compiling" != no; then
3145  if test -n "$ac_tool_prefix"; then
3146  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3147set dummy ${ac_tool_prefix}strip; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if ${ac_cv_prog_STRIP+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  if test -n "$STRIP"; then
3154  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159  IFS=$as_save_IFS
3160  test -z "$as_dir" && as_dir=.
3161    for ac_exec_ext in '' $ac_executable_extensions; do
3162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165    break 2
3166  fi
3167done
3168  done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
3173STRIP=$ac_cv_prog_STRIP
3174if test -n "$STRIP"; then
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3176$as_echo "$STRIP" >&6; }
3177else
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182
3183fi
3184if test -z "$ac_cv_prog_STRIP"; then
3185  ac_ct_STRIP=$STRIP
3186  # Extract the first word of "strip", so it can be a program name with args.
3187set dummy strip; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  if test -n "$ac_ct_STRIP"; then
3194  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201    for ac_exec_ext in '' $ac_executable_extensions; do
3202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_ac_ct_STRIP="strip"
3204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208  done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3214if test -n "$ac_ct_STRIP"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3216$as_echo "$ac_ct_STRIP" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222  if test "x$ac_ct_STRIP" = x; then
3223    STRIP=":"
3224  else
3225    case $cross_compiling:$ac_tool_warned in
3226yes:)
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229ac_tool_warned=yes ;;
3230esac
3231    STRIP=$ac_ct_STRIP
3232  fi
3233else
3234  STRIP="$ac_cv_prog_STRIP"
3235fi
3236
3237fi
3238INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3239
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3241$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3242if test -z "$MKDIR_P"; then
3243  if ${ac_cv_path_mkdir+:} false; then :
3244  $as_echo_n "(cached) " >&6
3245else
3246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_prog in mkdir gmkdir; do
3252	 for ac_exec_ext in '' $ac_executable_extensions; do
3253	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3254	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3255	     'mkdir (GNU coreutils) '* | \
3256	     'mkdir (coreutils) '* | \
3257	     'mkdir (fileutils) '4.1*)
3258	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3259	       break 3;;
3260	   esac
3261	 done
3262       done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267
3268  test -d ./--version && rmdir ./--version
3269  if test "${ac_cv_path_mkdir+set}" = set; then
3270    MKDIR_P="$ac_cv_path_mkdir -p"
3271  else
3272    # As a last resort, use the slow shell script.  Don't cache a
3273    # value for MKDIR_P within a source directory, because that will
3274    # break other packages using the cache if that directory is
3275    # removed, or if the value is a relative name.
3276    MKDIR_P="$ac_install_sh -d"
3277  fi
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3280$as_echo "$MKDIR_P" >&6; }
3281
3282for ac_prog in gawk mawk nawk awk
3283do
3284  # Extract the first word of "$ac_prog", so it can be a program name with args.
3285set dummy $ac_prog; ac_word=$2
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287$as_echo_n "checking for $ac_word... " >&6; }
3288if ${ac_cv_prog_AWK+:} false; then :
3289  $as_echo_n "(cached) " >&6
3290else
3291  if test -n "$AWK"; then
3292  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297  IFS=$as_save_IFS
3298  test -z "$as_dir" && as_dir=.
3299    for ac_exec_ext in '' $ac_executable_extensions; do
3300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301    ac_cv_prog_AWK="$ac_prog"
3302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303    break 2
3304  fi
3305done
3306  done
3307IFS=$as_save_IFS
3308
3309fi
3310fi
3311AWK=$ac_cv_prog_AWK
3312if test -n "$AWK"; then
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3314$as_echo "$AWK" >&6; }
3315else
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317$as_echo "no" >&6; }
3318fi
3319
3320
3321  test -n "$AWK" && break
3322done
3323
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3325$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3326set x ${MAKE-make}
3327ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3328if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  cat >conftest.make <<\_ACEOF
3332SHELL = /bin/sh
3333all:
3334	@echo '@@@%%%=$(MAKE)=@@@%%%'
3335_ACEOF
3336# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3337case `${MAKE-make} -f conftest.make 2>/dev/null` in
3338  *@@@%%%=?*=@@@%%%*)
3339    eval ac_cv_prog_make_${ac_make}_set=yes;;
3340  *)
3341    eval ac_cv_prog_make_${ac_make}_set=no;;
3342esac
3343rm -f conftest.make
3344fi
3345if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347$as_echo "yes" >&6; }
3348  SET_MAKE=
3349else
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352  SET_MAKE="MAKE=${MAKE-make}"
3353fi
3354
3355rm -rf .tst 2>/dev/null
3356mkdir .tst 2>/dev/null
3357if test -d .tst; then
3358  am__leading_dot=.
3359else
3360  am__leading_dot=_
3361fi
3362rmdir .tst 2>/dev/null
3363
3364# Check whether --enable-silent-rules was given.
3365if test "${enable_silent_rules+set}" = set; then :
3366  enableval=$enable_silent_rules;
3367fi
3368
3369case $enable_silent_rules in # (((
3370  yes) AM_DEFAULT_VERBOSITY=0;;
3371   no) AM_DEFAULT_VERBOSITY=1;;
3372    *) AM_DEFAULT_VERBOSITY=1;;
3373esac
3374am_make=${MAKE-make}
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3376$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3377if ${am_cv_make_support_nested_variables+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  if $as_echo 'TRUE=$(BAR$(V))
3381BAR0=false
3382BAR1=true
3383V=1
3384am__doit:
3385	@$(TRUE)
3386.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3387  am_cv_make_support_nested_variables=yes
3388else
3389  am_cv_make_support_nested_variables=no
3390fi
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3393$as_echo "$am_cv_make_support_nested_variables" >&6; }
3394if test $am_cv_make_support_nested_variables = yes; then
3395    AM_V='$(V)'
3396  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3397else
3398  AM_V=$AM_DEFAULT_VERBOSITY
3399  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3400fi
3401AM_BACKSLASH='\'
3402
3403if test "`cd $srcdir && pwd`" != "`pwd`"; then
3404  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3405  # is not polluted with repeated "-I."
3406  am__isrc=' -I$(srcdir)'
3407  # test to see if srcdir already configured
3408  if test -f $srcdir/config.status; then
3409    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3410  fi
3411fi
3412
3413# test whether we have cygpath
3414if test -z "$CYGPATH_W"; then
3415  if (cygpath --version) >/dev/null 2>/dev/null; then
3416    CYGPATH_W='cygpath -w'
3417  else
3418    CYGPATH_W=echo
3419  fi
3420fi
3421
3422
3423# Define the identity of the package.
3424 PACKAGE='nss-pam-ldapd'
3425 VERSION='0.9.11'
3426
3427
3428cat >>confdefs.h <<_ACEOF
3429#define PACKAGE "$PACKAGE"
3430_ACEOF
3431
3432
3433cat >>confdefs.h <<_ACEOF
3434#define VERSION "$VERSION"
3435_ACEOF
3436
3437# Some tools Automake needs.
3438
3439ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3440
3441
3442AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3443
3444
3445AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3446
3447
3448AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3449
3450
3451MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3452
3453# For better backward compatibility.  To be removed once Automake 1.9.x
3454# dies out for good.  For more background, see:
3455# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3456# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3457mkdir_p='$(MKDIR_P)'
3458
3459# We need awk for the "check" target (and possibly the TAP driver).  The
3460# system "awk" is bad on some platforms.
3461# Always define AMTAR for backward compatibility.  Yes, it's still used
3462# in the wild :-(  We should find a proper way to deprecate it ...
3463AMTAR='$${TAR-tar}'
3464
3465
3466# We'll loop over all known methods to create a tar archive until one works.
3467_am_tools='gnutar  pax cpio none'
3468
3469am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3470
3471
3472
3473
3474
3475
3476# POSIX will say in a future version that running "rm -f" with no argument
3477# is OK; and we want to be able to make that assumption in our Makefile
3478# recipes.  So use an aggressive probe to check that the usage we want is
3479# actually supported "in the wild" to an acceptable degree.
3480# See automake bug#10828.
3481# To make any issue more visible, cause the running configure to be aborted
3482# by default if the 'rm' program in use doesn't match our expectations; the
3483# user can still override this though.
3484if rm -f && rm -fr && rm -rf; then : OK; else
3485  cat >&2 <<'END'
3486Oops!
3487
3488Your 'rm' program seems unable to run without file operands specified
3489on the command line, even when the '-f' option is present.  This is contrary
3490to the behaviour of most rm programs out there, and not conforming with
3491the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3492
3493Please tell bug-automake@gnu.org about your system, including the value
3494of your $PATH and any error possibly output before this message.  This
3495can help us improve future automake versions.
3496
3497END
3498  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3499    echo 'Configuration will proceed anyway, since you have set the' >&2
3500    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3501    echo >&2
3502  else
3503    cat >&2 <<'END'
3504Aborting the configuration process, to ensure you take notice of the issue.
3505
3506You can download and install GNU coreutils to get an 'rm' implementation
3507that behaves properly: <https://www.gnu.org/software/coreutils/>.
3508
3509If you want to complete the configuration process using your problematic
3510'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3511to "yes", and re-run configure.
3512
3513END
3514    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3515  fi
3516fi
3517
3518
3519# create a config.h file (Automake will add -DHAVE_CONFIG_H)
3520ac_config_headers="$ac_config_headers config.h"
3521
3522
3523# check for programs
3524ac_ext=c
3525ac_cpp='$CPP $CPPFLAGS'
3526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529if test -n "$ac_tool_prefix"; then
3530  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3531set dummy ${ac_tool_prefix}gcc; ac_word=$2
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if ${ac_cv_prog_CC+:} false; then :
3535  $as_echo_n "(cached) " >&6
3536else
3537  if test -n "$CC"; then
3538  ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  test -z "$as_dir" && as_dir=.
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552  done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560$as_echo "$CC" >&6; }
3561else
3562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567fi
3568if test -z "$ac_cv_prog_CC"; then
3569  ac_ct_CC=$CC
3570  # Extract the first word of "gcc", so it can be a program name with args.
3571set dummy gcc; ac_word=$2
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573$as_echo_n "checking for $ac_word... " >&6; }
3574if ${ac_cv_prog_ac_ct_CC+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  if test -n "$ac_ct_CC"; then
3578  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583  IFS=$as_save_IFS
3584  test -z "$as_dir" && as_dir=.
3585    for ac_exec_ext in '' $ac_executable_extensions; do
3586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587    ac_cv_prog_ac_ct_CC="gcc"
3588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589    break 2
3590  fi
3591done
3592  done
3593IFS=$as_save_IFS
3594
3595fi
3596fi
3597ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598if test -n "$ac_ct_CC"; then
3599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600$as_echo "$ac_ct_CC" >&6; }
3601else
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
3604fi
3605
3606  if test "x$ac_ct_CC" = x; then
3607    CC=""
3608  else
3609    case $cross_compiling:$ac_tool_warned in
3610yes:)
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613ac_tool_warned=yes ;;
3614esac
3615    CC=$ac_ct_CC
3616  fi
3617else
3618  CC="$ac_cv_prog_CC"
3619fi
3620
3621if test -z "$CC"; then
3622          if test -n "$ac_tool_prefix"; then
3623    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}cc; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if ${ac_cv_prog_CC+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$CC"; then
3631  ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640    ac_cv_prog_CC="${ac_tool_prefix}cc"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650CC=$ac_cv_prog_CC
3651if test -n "$CC"; then
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653$as_echo "$CC" >&6; }
3654else
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660  fi
3661fi
3662if test -z "$CC"; then
3663  # Extract the first word of "cc", so it can be a program name with args.
3664set dummy cc; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if ${ac_cv_prog_CC+:} false; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  if test -n "$CC"; then
3671  ac_cv_prog_CC="$CC" # Let the user override the test.
3672else
3673  ac_prog_rejected=no
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677  IFS=$as_save_IFS
3678  test -z "$as_dir" && as_dir=.
3679    for ac_exec_ext in '' $ac_executable_extensions; do
3680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3682       ac_prog_rejected=yes
3683       continue
3684     fi
3685    ac_cv_prog_CC="cc"
3686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687    break 2
3688  fi
3689done
3690  done
3691IFS=$as_save_IFS
3692
3693if test $ac_prog_rejected = yes; then
3694  # We found a bogon in the path, so make sure we never use it.
3695  set dummy $ac_cv_prog_CC
3696  shift
3697  if test $# != 0; then
3698    # We chose a different compiler from the bogus one.
3699    # However, it has the same basename, so the bogon will be chosen
3700    # first if we set CC to just the basename; use the full file name.
3701    shift
3702    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3703  fi
3704fi
3705fi
3706fi
3707CC=$ac_cv_prog_CC
3708if test -n "$CC"; then
3709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710$as_echo "$CC" >&6; }
3711else
3712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713$as_echo "no" >&6; }
3714fi
3715
3716
3717fi
3718if test -z "$CC"; then
3719  if test -n "$ac_tool_prefix"; then
3720  for ac_prog in cl.exe
3721  do
3722    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if ${ac_cv_prog_CC+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -n "$CC"; then
3730  ac_cv_prog_CC="$CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741    break 2
3742  fi
3743done
3744  done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749CC=$ac_cv_prog_CC
3750if test -n "$CC"; then
3751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752$as_echo "$CC" >&6; }
3753else
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759    test -n "$CC" && break
3760  done
3761fi
3762if test -z "$CC"; then
3763  ac_ct_CC=$CC
3764  for ac_prog in cl.exe
3765do
3766  # Extract the first word of "$ac_prog", so it can be a program name with args.
3767set dummy $ac_prog; ac_word=$2
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769$as_echo_n "checking for $ac_word... " >&6; }
3770if ${ac_cv_prog_ac_ct_CC+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  if test -n "$ac_ct_CC"; then
3774  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779  IFS=$as_save_IFS
3780  test -z "$as_dir" && as_dir=.
3781    for ac_exec_ext in '' $ac_executable_extensions; do
3782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783    ac_cv_prog_ac_ct_CC="$ac_prog"
3784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785    break 2
3786  fi
3787done
3788  done
3789IFS=$as_save_IFS
3790
3791fi
3792fi
3793ac_ct_CC=$ac_cv_prog_ac_ct_CC
3794if test -n "$ac_ct_CC"; then
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3796$as_echo "$ac_ct_CC" >&6; }
3797else
3798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800fi
3801
3802
3803  test -n "$ac_ct_CC" && break
3804done
3805
3806  if test "x$ac_ct_CC" = x; then
3807    CC=""
3808  else
3809    case $cross_compiling:$ac_tool_warned in
3810yes:)
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3813ac_tool_warned=yes ;;
3814esac
3815    CC=$ac_ct_CC
3816  fi
3817fi
3818
3819fi
3820
3821
3822test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824as_fn_error $? "no acceptable C compiler found in \$PATH
3825See \`config.log' for more details" "$LINENO" 5; }
3826
3827# Provide some information about the compiler.
3828$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3829set X $ac_compile
3830ac_compiler=$2
3831for ac_option in --version -v -V -qversion; do
3832  { { ac_try="$ac_compiler $ac_option >&5"
3833case "(($ac_try" in
3834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835  *) ac_try_echo=$ac_try;;
3836esac
3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838$as_echo "$ac_try_echo"; } >&5
3839  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3840  ac_status=$?
3841  if test -s conftest.err; then
3842    sed '10a\
3843... rest of stderr output deleted ...
3844         10q' conftest.err >conftest.er1
3845    cat conftest.er1 >&5
3846  fi
3847  rm -f conftest.er1 conftest.err
3848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849  test $ac_status = 0; }
3850done
3851
3852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863ac_clean_files_save=$ac_clean_files
3864ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3865# Try to create an executable without -o first, disregard a.out.
3866# It will help us diagnose broken compilers, and finding out an intuition
3867# of exeext.
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3869$as_echo_n "checking whether the C compiler works... " >&6; }
3870ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3871
3872# The possible output files:
3873ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874
3875ac_rmfiles=
3876for ac_file in $ac_files
3877do
3878  case $ac_file in
3879    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3881  esac
3882done
3883rm -f $ac_rmfiles
3884
3885if { { ac_try="$ac_link_default"
3886case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891$as_echo "$ac_try_echo"; } >&5
3892  (eval "$ac_link_default") 2>&5
3893  ac_status=$?
3894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895  test $ac_status = 0; }; then :
3896  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3897# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3898# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3899# so that the user can short-circuit this test for compilers unknown to
3900# Autoconf.
3901for ac_file in $ac_files ''
3902do
3903  test -f "$ac_file" || continue
3904  case $ac_file in
3905    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3906	;;
3907    [ab].out )
3908	# We found the default executable, but exeext='' is most
3909	# certainly right.
3910	break;;
3911    *.* )
3912	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3913	then :; else
3914	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915	fi
3916	# We set ac_cv_exeext here because the later test for it is not
3917	# safe: cross compilers may not add the suffix if given an `-o'
3918	# argument, so we may need to know it at that point already.
3919	# Even if this section looks crufty: it has the advantage of
3920	# actually working.
3921	break;;
3922    * )
3923	break;;
3924  esac
3925done
3926test "$ac_cv_exeext" = no && ac_cv_exeext=
3927
3928else
3929  ac_file=''
3930fi
3931if test -z "$ac_file"; then :
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934$as_echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error 77 "C compiler cannot create executables
3940See \`config.log' for more details" "$LINENO" 5; }
3941else
3942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943$as_echo "yes" >&6; }
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3946$as_echo_n "checking for C compiler default output file name... " >&6; }
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3948$as_echo "$ac_file" >&6; }
3949ac_exeext=$ac_cv_exeext
3950
3951rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3952ac_clean_files=$ac_clean_files_save
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954$as_echo_n "checking for suffix of executables... " >&6; }
3955if { { ac_try="$ac_link"
3956case "(($ac_try" in
3957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958  *) ac_try_echo=$ac_try;;
3959esac
3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961$as_echo "$ac_try_echo"; } >&5
3962  (eval "$ac_link") 2>&5
3963  ac_status=$?
3964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965  test $ac_status = 0; }; then :
3966  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3967# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3968# work properly (i.e., refer to `conftest.exe'), while it won't with
3969# `rm'.
3970for ac_file in conftest.exe conftest conftest.*; do
3971  test -f "$ac_file" || continue
3972  case $ac_file in
3973    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3974    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975	  break;;
3976    * ) break;;
3977  esac
3978done
3979else
3980  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3983See \`config.log' for more details" "$LINENO" 5; }
3984fi
3985rm -f conftest conftest$ac_cv_exeext
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3987$as_echo "$ac_cv_exeext" >&6; }
3988
3989rm -f conftest.$ac_ext
3990EXEEXT=$ac_cv_exeext
3991ac_exeext=$EXEEXT
3992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h.  */
3994#include <stdio.h>
3995int
3996main ()
3997{
3998FILE *f = fopen ("conftest.out", "w");
3999 return ferror (f) || fclose (f) != 0;
4000
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005ac_clean_files="$ac_clean_files conftest.out"
4006# Check that the compiler produces executables we can run.  If not, either
4007# the compiler is broken, or we cross compile.
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4009$as_echo_n "checking whether we are cross compiling... " >&6; }
4010if test "$cross_compiling" != yes; then
4011  { { ac_try="$ac_link"
4012case "(($ac_try" in
4013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014  *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017$as_echo "$ac_try_echo"; } >&5
4018  (eval "$ac_link") 2>&5
4019  ac_status=$?
4020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021  test $ac_status = 0; }
4022  if { ac_try='./conftest$ac_cv_exeext'
4023  { { case "(($ac_try" in
4024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025  *) ac_try_echo=$ac_try;;
4026esac
4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028$as_echo "$ac_try_echo"; } >&5
4029  (eval "$ac_try") 2>&5
4030  ac_status=$?
4031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032  test $ac_status = 0; }; }; then
4033    cross_compiling=no
4034  else
4035    if test "$cross_compiling" = maybe; then
4036	cross_compiling=yes
4037    else
4038	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040as_fn_error $? "cannot run C compiled programs.
4041If you meant to cross compile, use \`--host'.
4042See \`config.log' for more details" "$LINENO" 5; }
4043    fi
4044  fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4047$as_echo "$cross_compiling" >&6; }
4048
4049rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4050ac_clean_files=$ac_clean_files_save
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4052$as_echo_n "checking for suffix of object files... " >&6; }
4053if ${ac_cv_objext+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058
4059int
4060main ()
4061{
4062
4063  ;
4064  return 0;
4065}
4066_ACEOF
4067rm -f conftest.o conftest.obj
4068if { { ac_try="$ac_compile"
4069case "(($ac_try" in
4070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071  *) ac_try_echo=$ac_try;;
4072esac
4073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4074$as_echo "$ac_try_echo"; } >&5
4075  (eval "$ac_compile") 2>&5
4076  ac_status=$?
4077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078  test $ac_status = 0; }; then :
4079  for ac_file in conftest.o conftest.obj conftest.*; do
4080  test -f "$ac_file" || continue;
4081  case $ac_file in
4082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4083    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4084       break;;
4085  esac
4086done
4087else
4088  $as_echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4093as_fn_error $? "cannot compute suffix of object files: cannot compile
4094See \`config.log' for more details" "$LINENO" 5; }
4095fi
4096rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4099$as_echo "$ac_cv_objext" >&6; }
4100OBJEXT=$ac_cv_objext
4101ac_objext=$OBJEXT
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4103$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4104if ${ac_cv_c_compiler_gnu+:} false; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109
4110int
4111main ()
4112{
4113#ifndef __GNUC__
4114       choke me
4115#endif
4116
4117  ;
4118  return 0;
4119}
4120_ACEOF
4121if ac_fn_c_try_compile "$LINENO"; then :
4122  ac_compiler_gnu=yes
4123else
4124  ac_compiler_gnu=no
4125fi
4126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4131$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4132if test $ac_compiler_gnu = yes; then
4133  GCC=yes
4134else
4135  GCC=
4136fi
4137ac_test_CFLAGS=${CFLAGS+set}
4138ac_save_CFLAGS=$CFLAGS
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4140$as_echo_n "checking whether $CC accepts -g... " >&6; }
4141if ${ac_cv_prog_cc_g+:} false; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  ac_save_c_werror_flag=$ac_c_werror_flag
4145   ac_c_werror_flag=yes
4146   ac_cv_prog_cc_g=no
4147   CFLAGS="-g"
4148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h.  */
4150
4151int
4152main ()
4153{
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"; then :
4160  ac_cv_prog_cc_g=yes
4161else
4162  CFLAGS=""
4163      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165
4166int
4167main ()
4168{
4169
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175
4176else
4177  ac_c_werror_flag=$ac_save_c_werror_flag
4178	 CFLAGS="-g"
4179	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181
4182int
4183main ()
4184{
4185
4186  ;
4187  return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
4191  ac_cv_prog_cc_g=yes
4192fi
4193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198   ac_c_werror_flag=$ac_save_c_werror_flag
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4201$as_echo "$ac_cv_prog_cc_g" >&6; }
4202if test "$ac_test_CFLAGS" = set; then
4203  CFLAGS=$ac_save_CFLAGS
4204elif test $ac_cv_prog_cc_g = yes; then
4205  if test "$GCC" = yes; then
4206    CFLAGS="-g -O2"
4207  else
4208    CFLAGS="-g"
4209  fi
4210else
4211  if test "$GCC" = yes; then
4212    CFLAGS="-O2"
4213  else
4214    CFLAGS=
4215  fi
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4218$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4219if ${ac_cv_prog_cc_c89+:} false; then :
4220  $as_echo_n "(cached) " >&6
4221else
4222  ac_cv_prog_cc_c89=no
4223ac_save_CC=$CC
4224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226#include <stdarg.h>
4227#include <stdio.h>
4228struct stat;
4229/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4230struct buf { int x; };
4231FILE * (*rcsopen) (struct buf *, struct stat *, int);
4232static char *e (p, i)
4233     char **p;
4234     int i;
4235{
4236  return p[i];
4237}
4238static char *f (char * (*g) (char **, int), char **p, ...)
4239{
4240  char *s;
4241  va_list v;
4242  va_start (v,p);
4243  s = g (p, va_arg (v,int));
4244  va_end (v);
4245  return s;
4246}
4247
4248/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4249   function prototypes and stuff, but not '\xHH' hex character constants.
4250   These don't provoke an error unfortunately, instead are silently treated
4251   as 'x'.  The following induces an error, until -std is added to get
4252   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4253   array size at least.  It's necessary to write '\x00'==0 to get something
4254   that's true only with -std.  */
4255int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4256
4257/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4258   inside strings and character constants.  */
4259#define FOO(x) 'x'
4260int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4261
4262int test (int i, double x);
4263struct s1 {int (*f) (int a);};
4264struct s2 {int (*f) (double a);};
4265int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4266int argc;
4267char **argv;
4268int
4269main ()
4270{
4271return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4277	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4278do
4279  CC="$ac_save_CC $ac_arg"
4280  if ac_fn_c_try_compile "$LINENO"; then :
4281  ac_cv_prog_cc_c89=$ac_arg
4282fi
4283rm -f core conftest.err conftest.$ac_objext
4284  test "x$ac_cv_prog_cc_c89" != "xno" && break
4285done
4286rm -f conftest.$ac_ext
4287CC=$ac_save_CC
4288
4289fi
4290# AC_CACHE_VAL
4291case "x$ac_cv_prog_cc_c89" in
4292  x)
4293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4294$as_echo "none needed" >&6; } ;;
4295  xno)
4296    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4297$as_echo "unsupported" >&6; } ;;
4298  *)
4299    CC="$CC $ac_cv_prog_cc_c89"
4300    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4301$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302esac
4303if test "x$ac_cv_prog_cc_c89" != xno; then :
4304
4305fi
4306
4307ac_ext=c
4308ac_cpp='$CPP $CPPFLAGS'
4309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313ac_ext=c
4314ac_cpp='$CPP $CPPFLAGS'
4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4319$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4320if ${am_cv_prog_cc_c_o+:} false; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h.  */
4325
4326int
4327main ()
4328{
4329
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334  # Make sure it works both with $CC and with simple cc.
4335  # Following AC_PROG_CC_C_O, we do the test twice because some
4336  # compilers refuse to overwrite an existing .o file with -o,
4337  # though they will create one.
4338  am_cv_prog_cc_c_o=yes
4339  for am_i in 1 2; do
4340    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4341   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } \
4345         && test -f conftest2.$ac_objext; then
4346      : OK
4347    else
4348      am_cv_prog_cc_c_o=no
4349      break
4350    fi
4351  done
4352  rm -f core conftest*
4353  unset am_i
4354fi
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4356$as_echo "$am_cv_prog_cc_c_o" >&6; }
4357if test "$am_cv_prog_cc_c_o" != yes; then
4358   # Losing compiler, so override with the script.
4359   # FIXME: It is wrong to rewrite CC.
4360   # But if we don't then we get into trouble of one sort or another.
4361   # A longer-term fix would be to have automake use am__CC in this case,
4362   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4363   CC="$am_aux_dir/compile $CC"
4364fi
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371DEPDIR="${am__leading_dot}deps"
4372
4373ac_config_commands="$ac_config_commands depfiles"
4374
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4376$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4377cat > confinc.mk << 'END'
4378am__doit:
4379	@echo this is the am__doit target >confinc.out
4380.PHONY: am__doit
4381END
4382am__include="#"
4383am__quote=
4384# BSD make does it like this.
4385echo '.include "confinc.mk" # ignored' > confmf.BSD
4386# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4387echo 'include confinc.mk # ignored' > confmf.GNU
4388_am_result=no
4389for s in GNU BSD; do
4390  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4391   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }
4395  case $?:`cat confinc.out 2>/dev/null` in #(
4396  '0:this is the am__doit target') :
4397    case $s in #(
4398  BSD) :
4399    am__include='.include' am__quote='"' ;; #(
4400  *) :
4401    am__include='include' am__quote='' ;;
4402esac ;; #(
4403  *) :
4404     ;;
4405esac
4406  if test "$am__include" != "#"; then
4407    _am_result="yes ($s style)"
4408    break
4409  fi
4410done
4411rm -f confinc.* confmf.*
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4413$as_echo "${_am_result}" >&6; }
4414
4415# Check whether --enable-dependency-tracking was given.
4416if test "${enable_dependency_tracking+set}" = set; then :
4417  enableval=$enable_dependency_tracking;
4418fi
4419
4420if test "x$enable_dependency_tracking" != xno; then
4421  am_depcomp="$ac_aux_dir/depcomp"
4422  AMDEPBACKSLASH='\'
4423  am__nodep='_no'
4424fi
4425 if test "x$enable_dependency_tracking" != xno; then
4426  AMDEP_TRUE=
4427  AMDEP_FALSE='#'
4428else
4429  AMDEP_TRUE='#'
4430  AMDEP_FALSE=
4431fi
4432
4433
4434
4435depcc="$CC"   am_compiler_list=
4436
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4438$as_echo_n "checking dependency style of $depcc... " >&6; }
4439if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4443  # We make a subdir and do the tests there.  Otherwise we can end up
4444  # making bogus files that we don't know about and never remove.  For
4445  # instance it was reported that on HP-UX the gcc test will end up
4446  # making a dummy file named 'D' -- because '-MD' means "put the output
4447  # in D".
4448  rm -rf conftest.dir
4449  mkdir conftest.dir
4450  # Copy depcomp to subdir because otherwise we won't find it if we're
4451  # using a relative directory.
4452  cp "$am_depcomp" conftest.dir
4453  cd conftest.dir
4454  # We will build objects and dependencies in a subdirectory because
4455  # it helps to detect inapplicable dependency modes.  For instance
4456  # both Tru64's cc and ICC support -MD to output dependencies as a
4457  # side effect of compilation, but ICC will put the dependencies in
4458  # the current directory while Tru64 will put them in the object
4459  # directory.
4460  mkdir sub
4461
4462  am_cv_CC_dependencies_compiler_type=none
4463  if test "$am_compiler_list" = ""; then
4464     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4465  fi
4466  am__universal=false
4467  case " $depcc " in #(
4468     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4469     esac
4470
4471  for depmode in $am_compiler_list; do
4472    # Setup a source with many dependencies, because some compilers
4473    # like to wrap large dependency lists on column 80 (with \), and
4474    # we should not choose a depcomp mode which is confused by this.
4475    #
4476    # We need to recreate these files for each test, as the compiler may
4477    # overwrite some of them when testing with obscure command lines.
4478    # This happens at least with the AIX C compiler.
4479    : > sub/conftest.c
4480    for i in 1 2 3 4 5 6; do
4481      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4482      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4483      # Solaris 10 /bin/sh.
4484      echo '/* dummy */' > sub/conftst$i.h
4485    done
4486    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4487
4488    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4489    # mode.  It turns out that the SunPro C++ compiler does not properly
4490    # handle '-M -o', and we need to detect this.  Also, some Intel
4491    # versions had trouble with output in subdirs.
4492    am__obj=sub/conftest.${OBJEXT-o}
4493    am__minus_obj="-o $am__obj"
4494    case $depmode in
4495    gcc)
4496      # This depmode causes a compiler race in universal mode.
4497      test "$am__universal" = false || continue
4498      ;;
4499    nosideeffect)
4500      # After this tag, mechanisms are not by side-effect, so they'll
4501      # only be used when explicitly requested.
4502      if test "x$enable_dependency_tracking" = xyes; then
4503	continue
4504      else
4505	break
4506      fi
4507      ;;
4508    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4509      # This compiler won't grok '-c -o', but also, the minuso test has
4510      # not run yet.  These depmodes are late enough in the game, and
4511      # so weak that their functioning should not be impacted.
4512      am__obj=conftest.${OBJEXT-o}
4513      am__minus_obj=
4514      ;;
4515    none) break ;;
4516    esac
4517    if depmode=$depmode \
4518       source=sub/conftest.c object=$am__obj \
4519       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4520       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4521         >/dev/null 2>conftest.err &&
4522       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4523       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4524       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4525       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4526      # icc doesn't choke on unknown options, it will just issue warnings
4527      # or remarks (even with -Werror).  So we grep stderr for any message
4528      # that says an option was ignored or not supported.
4529      # When given -MP, icc 7.0 and 7.1 complain thusly:
4530      #   icc: Command line warning: ignoring option '-M'; no argument required
4531      # The diagnosis changed in icc 8.0:
4532      #   icc: Command line remark: option '-MP' not supported
4533      if (grep 'ignoring option' conftest.err ||
4534          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4535        am_cv_CC_dependencies_compiler_type=$depmode
4536        break
4537      fi
4538    fi
4539  done
4540
4541  cd ..
4542  rm -rf conftest.dir
4543else
4544  am_cv_CC_dependencies_compiler_type=none
4545fi
4546
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4549$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4550CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4551
4552 if
4553  test "x$enable_dependency_tracking" != xno \
4554  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4555  am__fastdepCC_TRUE=
4556  am__fastdepCC_FALSE='#'
4557else
4558  am__fastdepCC_TRUE='#'
4559  am__fastdepCC_FALSE=
4560fi
4561
4562
4563ac_ext=c
4564ac_cpp='$CPP $CPPFLAGS'
4565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4569$as_echo_n "checking how to run the C preprocessor... " >&6; }
4570# On Suns, sometimes $CPP names a directory.
4571if test -n "$CPP" && test -d "$CPP"; then
4572  CPP=
4573fi
4574if test -z "$CPP"; then
4575  if ${ac_cv_prog_CPP+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578      # Double quotes because CPP needs to be expanded
4579    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580    do
4581      ac_preproc_ok=false
4582for ac_c_preproc_warn_flag in '' yes
4583do
4584  # Use a header file that comes with gcc, so configuring glibc
4585  # with a fresh cross-compiler works.
4586  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587  # <limits.h> exists even on freestanding compilers.
4588  # On the NeXT, cc -E runs the code through the compiler's parser,
4589  # not just through cpp. "Syntax error" is here to catch this case.
4590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h.  */
4592#ifdef __STDC__
4593# include <limits.h>
4594#else
4595# include <assert.h>
4596#endif
4597		     Syntax error
4598_ACEOF
4599if ac_fn_c_try_cpp "$LINENO"; then :
4600
4601else
4602  # Broken: fails on valid input.
4603continue
4604fi
4605rm -f conftest.err conftest.i conftest.$ac_ext
4606
4607  # OK, works on sane cases.  Now check whether nonexistent headers
4608  # can be detected and how.
4609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611#include <ac_nonexistent.h>
4612_ACEOF
4613if ac_fn_c_try_cpp "$LINENO"; then :
4614  # Broken: success on invalid input.
4615continue
4616else
4617  # Passes both tests.
4618ac_preproc_ok=:
4619break
4620fi
4621rm -f conftest.err conftest.i conftest.$ac_ext
4622
4623done
4624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625rm -f conftest.i conftest.err conftest.$ac_ext
4626if $ac_preproc_ok; then :
4627  break
4628fi
4629
4630    done
4631    ac_cv_prog_CPP=$CPP
4632
4633fi
4634  CPP=$ac_cv_prog_CPP
4635else
4636  ac_cv_prog_CPP=$CPP
4637fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4639$as_echo "$CPP" >&6; }
4640ac_preproc_ok=false
4641for ac_c_preproc_warn_flag in '' yes
4642do
4643  # Use a header file that comes with gcc, so configuring glibc
4644  # with a fresh cross-compiler works.
4645  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646  # <limits.h> exists even on freestanding compilers.
4647  # On the NeXT, cc -E runs the code through the compiler's parser,
4648  # not just through cpp. "Syntax error" is here to catch this case.
4649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h.  */
4651#ifdef __STDC__
4652# include <limits.h>
4653#else
4654# include <assert.h>
4655#endif
4656		     Syntax error
4657_ACEOF
4658if ac_fn_c_try_cpp "$LINENO"; then :
4659
4660else
4661  # Broken: fails on valid input.
4662continue
4663fi
4664rm -f conftest.err conftest.i conftest.$ac_ext
4665
4666  # OK, works on sane cases.  Now check whether nonexistent headers
4667  # can be detected and how.
4668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670#include <ac_nonexistent.h>
4671_ACEOF
4672if ac_fn_c_try_cpp "$LINENO"; then :
4673  # Broken: success on invalid input.
4674continue
4675else
4676  # Passes both tests.
4677ac_preproc_ok=:
4678break
4679fi
4680rm -f conftest.err conftest.i conftest.$ac_ext
4681
4682done
4683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4684rm -f conftest.i conftest.err conftest.$ac_ext
4685if $ac_preproc_ok; then :
4686
4687else
4688  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4691See \`config.log' for more details" "$LINENO" 5; }
4692fi
4693
4694ac_ext=c
4695ac_cpp='$CPP $CPPFLAGS'
4696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699
4700
4701if test -n "$ac_tool_prefix"; then
4702  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4703set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705$as_echo_n "checking for $ac_word... " >&6; }
4706if ${ac_cv_prog_RANLIB+:} false; then :
4707  $as_echo_n "(cached) " >&6
4708else
4709  if test -n "$RANLIB"; then
4710  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4711else
4712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715  IFS=$as_save_IFS
4716  test -z "$as_dir" && as_dir=.
4717    for ac_exec_ext in '' $ac_executable_extensions; do
4718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721    break 2
4722  fi
4723done
4724  done
4725IFS=$as_save_IFS
4726
4727fi
4728fi
4729RANLIB=$ac_cv_prog_RANLIB
4730if test -n "$RANLIB"; then
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4732$as_echo "$RANLIB" >&6; }
4733else
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735$as_echo "no" >&6; }
4736fi
4737
4738
4739fi
4740if test -z "$ac_cv_prog_RANLIB"; then
4741  ac_ct_RANLIB=$RANLIB
4742  # Extract the first word of "ranlib", so it can be a program name with args.
4743set dummy ranlib; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
4746if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -n "$ac_ct_RANLIB"; then
4750  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_ac_ct_RANLIB="ranlib"
4760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764  done
4765IFS=$as_save_IFS
4766
4767fi
4768fi
4769ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4770if test -n "$ac_ct_RANLIB"; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4772$as_echo "$ac_ct_RANLIB" >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778  if test "x$ac_ct_RANLIB" = x; then
4779    RANLIB=":"
4780  else
4781    case $cross_compiling:$ac_tool_warned in
4782yes:)
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785ac_tool_warned=yes ;;
4786esac
4787    RANLIB=$ac_ct_RANLIB
4788  fi
4789else
4790  RANLIB="$ac_cv_prog_RANLIB"
4791fi
4792
4793
4794
4795
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4797$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4798if ${ac_cv_path_GREP+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  if test -z "$GREP"; then
4802  ac_path_GREP_found=false
4803  # Loop through the user's path and test for each of PROGNAME-LIST
4804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4806do
4807  IFS=$as_save_IFS
4808  test -z "$as_dir" && as_dir=.
4809    for ac_prog in grep ggrep; do
4810    for ac_exec_ext in '' $ac_executable_extensions; do
4811      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4812      as_fn_executable_p "$ac_path_GREP" || continue
4813# Check for GNU ac_path_GREP and select it if it is found.
4814  # Check for GNU $ac_path_GREP
4815case `"$ac_path_GREP" --version 2>&1` in
4816*GNU*)
4817  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4818*)
4819  ac_count=0
4820  $as_echo_n 0123456789 >"conftest.in"
4821  while :
4822  do
4823    cat "conftest.in" "conftest.in" >"conftest.tmp"
4824    mv "conftest.tmp" "conftest.in"
4825    cp "conftest.in" "conftest.nl"
4826    $as_echo 'GREP' >> "conftest.nl"
4827    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829    as_fn_arith $ac_count + 1 && ac_count=$as_val
4830    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4831      # Best one so far, save it but keep looking for a better one
4832      ac_cv_path_GREP="$ac_path_GREP"
4833      ac_path_GREP_max=$ac_count
4834    fi
4835    # 10*(2^10) chars as input seems more than enough
4836    test $ac_count -gt 10 && break
4837  done
4838  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839esac
4840
4841      $ac_path_GREP_found && break 3
4842    done
4843  done
4844  done
4845IFS=$as_save_IFS
4846  if test -z "$ac_cv_path_GREP"; then
4847    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4848  fi
4849else
4850  ac_cv_path_GREP=$GREP
4851fi
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4855$as_echo "$ac_cv_path_GREP" >&6; }
4856 GREP="$ac_cv_path_GREP"
4857
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4860$as_echo_n "checking for egrep... " >&6; }
4861if ${ac_cv_path_EGREP+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4865   then ac_cv_path_EGREP="$GREP -E"
4866   else
4867     if test -z "$EGREP"; then
4868  ac_path_EGREP_found=false
4869  # Loop through the user's path and test for each of PROGNAME-LIST
4870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875    for ac_prog in egrep; do
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4878      as_fn_executable_p "$ac_path_EGREP" || continue
4879# Check for GNU ac_path_EGREP and select it if it is found.
4880  # Check for GNU $ac_path_EGREP
4881case `"$ac_path_EGREP" --version 2>&1` in
4882*GNU*)
4883  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4884*)
4885  ac_count=0
4886  $as_echo_n 0123456789 >"conftest.in"
4887  while :
4888  do
4889    cat "conftest.in" "conftest.in" >"conftest.tmp"
4890    mv "conftest.tmp" "conftest.in"
4891    cp "conftest.in" "conftest.nl"
4892    $as_echo 'EGREP' >> "conftest.nl"
4893    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895    as_fn_arith $ac_count + 1 && ac_count=$as_val
4896    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4897      # Best one so far, save it but keep looking for a better one
4898      ac_cv_path_EGREP="$ac_path_EGREP"
4899      ac_path_EGREP_max=$ac_count
4900    fi
4901    # 10*(2^10) chars as input seems more than enough
4902    test $ac_count -gt 10 && break
4903  done
4904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905esac
4906
4907      $ac_path_EGREP_found && break 3
4908    done
4909  done
4910  done
4911IFS=$as_save_IFS
4912  if test -z "$ac_cv_path_EGREP"; then
4913    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914  fi
4915else
4916  ac_cv_path_EGREP=$EGREP
4917fi
4918
4919   fi
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4922$as_echo "$ac_cv_path_EGREP" >&6; }
4923 EGREP="$ac_cv_path_EGREP"
4924
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4927$as_echo_n "checking for ANSI C header files... " >&6; }
4928if ${ac_cv_header_stdc+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933#include <stdlib.h>
4934#include <stdarg.h>
4935#include <string.h>
4936#include <float.h>
4937
4938int
4939main ()
4940{
4941
4942  ;
4943  return 0;
4944}
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"; then :
4947  ac_cv_header_stdc=yes
4948else
4949  ac_cv_header_stdc=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952
4953if test $ac_cv_header_stdc = yes; then
4954  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957#include <string.h>
4958
4959_ACEOF
4960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961  $EGREP "memchr" >/dev/null 2>&1; then :
4962
4963else
4964  ac_cv_header_stdc=no
4965fi
4966rm -f conftest*
4967
4968fi
4969
4970if test $ac_cv_header_stdc = yes; then
4971  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974#include <stdlib.h>
4975
4976_ACEOF
4977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4978  $EGREP "free" >/dev/null 2>&1; then :
4979
4980else
4981  ac_cv_header_stdc=no
4982fi
4983rm -f conftest*
4984
4985fi
4986
4987if test $ac_cv_header_stdc = yes; then
4988  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4989  if test "$cross_compiling" = yes; then :
4990  :
4991else
4992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h.  */
4994#include <ctype.h>
4995#include <stdlib.h>
4996#if ((' ' & 0x0FF) == 0x020)
4997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4999#else
5000# define ISLOWER(c) \
5001		   (('a' <= (c) && (c) <= 'i') \
5002		     || ('j' <= (c) && (c) <= 'r') \
5003		     || ('s' <= (c) && (c) <= 'z'))
5004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5005#endif
5006
5007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5008int
5009main ()
5010{
5011  int i;
5012  for (i = 0; i < 256; i++)
5013    if (XOR (islower (i), ISLOWER (i))
5014	|| toupper (i) != TOUPPER (i))
5015      return 2;
5016  return 0;
5017}
5018_ACEOF
5019if ac_fn_c_try_run "$LINENO"; then :
5020
5021else
5022  ac_cv_header_stdc=no
5023fi
5024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5025  conftest.$ac_objext conftest.beam conftest.$ac_ext
5026fi
5027
5028fi
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5031$as_echo "$ac_cv_header_stdc" >&6; }
5032if test $ac_cv_header_stdc = yes; then
5033
5034$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5035
5036fi
5037
5038# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5039for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5040		  inttypes.h stdint.h unistd.h
5041do :
5042  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5043ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5044"
5045if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5046  cat >>confdefs.h <<_ACEOF
5047#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5048_ACEOF
5049
5050fi
5051
5052done
5053
5054
5055
5056  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5057if test "x$ac_cv_header_minix_config_h" = xyes; then :
5058  MINIX=yes
5059else
5060  MINIX=
5061fi
5062
5063
5064  if test "$MINIX" = yes; then
5065
5066$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5067
5068
5069$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5070
5071
5072$as_echo "#define _MINIX 1" >>confdefs.h
5073
5074  fi
5075
5076
5077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5078$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5079if ${ac_cv_safe_to_define___extensions__+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084
5085#         define __EXTENSIONS__ 1
5086          $ac_includes_default
5087int
5088main ()
5089{
5090
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095if ac_fn_c_try_compile "$LINENO"; then :
5096  ac_cv_safe_to_define___extensions__=yes
5097else
5098  ac_cv_safe_to_define___extensions__=no
5099fi
5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5103$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5104  test $ac_cv_safe_to_define___extensions__ = yes &&
5105    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5106
5107  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5108
5109  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5110
5111  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5112
5113  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5114
5115
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5117$as_echo_n "checking whether ln -s works... " >&6; }
5118LN_S=$as_ln_s
5119if test "$LN_S" = "ln -s"; then
5120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121$as_echo "yes" >&6; }
5122else
5123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5124$as_echo "no, using $LN_S" >&6; }
5125fi
5126
5127if test -n "$ac_tool_prefix"; then
5128  for ac_prog in ar lib "link -lib"
5129  do
5130    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133$as_echo_n "checking for $ac_word... " >&6; }
5134if ${ac_cv_prog_AR+:} false; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -n "$AR"; then
5138  ac_cv_prog_AR="$AR" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143  IFS=$as_save_IFS
5144  test -z "$as_dir" && as_dir=.
5145    for ac_exec_ext in '' $ac_executable_extensions; do
5146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149    break 2
5150  fi
5151done
5152  done
5153IFS=$as_save_IFS
5154
5155fi
5156fi
5157AR=$ac_cv_prog_AR
5158if test -n "$AR"; then
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5160$as_echo "$AR" >&6; }
5161else
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
5164fi
5165
5166
5167    test -n "$AR" && break
5168  done
5169fi
5170if test -z "$AR"; then
5171  ac_ct_AR=$AR
5172  for ac_prog in ar lib "link -lib"
5173do
5174  # Extract the first word of "$ac_prog", so it can be a program name with args.
5175set dummy $ac_prog; ac_word=$2
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
5178if ${ac_cv_prog_ac_ct_AR+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  if test -n "$ac_ct_AR"; then
5182  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_exec_ext in '' $ac_executable_extensions; do
5190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191    ac_cv_prog_ac_ct_AR="$ac_prog"
5192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196  done
5197IFS=$as_save_IFS
5198
5199fi
5200fi
5201ac_ct_AR=$ac_cv_prog_ac_ct_AR
5202if test -n "$ac_ct_AR"; then
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5204$as_echo "$ac_ct_AR" >&6; }
5205else
5206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5208fi
5209
5210
5211  test -n "$ac_ct_AR" && break
5212done
5213
5214  if test "x$ac_ct_AR" = x; then
5215    AR="false"
5216  else
5217    case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223    AR=$ac_ct_AR
5224  fi
5225fi
5226
5227: ${AR=ar}
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5230$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5231if ${am_cv_ar_interface+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240   am_cv_ar_interface=ar
5241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h.  */
5243int some_variable = 0;
5244_ACEOF
5245if ac_fn_c_try_compile "$LINENO"; then :
5246  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5247      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5248  (eval $am_ar_try) 2>&5
5249  ac_status=$?
5250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251  test $ac_status = 0; }
5252      if test "$ac_status" -eq 0; then
5253        am_cv_ar_interface=ar
5254      else
5255        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5256        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5257  (eval $am_ar_try) 2>&5
5258  ac_status=$?
5259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260  test $ac_status = 0; }
5261        if test "$ac_status" -eq 0; then
5262          am_cv_ar_interface=lib
5263        else
5264          am_cv_ar_interface=unknown
5265        fi
5266      fi
5267      rm -f conftest.lib libconftest.a
5268
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271   ac_ext=c
5272ac_cpp='$CPP $CPPFLAGS'
5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5279$as_echo "$am_cv_ar_interface" >&6; }
5280
5281case $am_cv_ar_interface in
5282ar)
5283  ;;
5284lib)
5285  # Microsoft lib, so override with the ar-lib wrapper script.
5286  # FIXME: It is wrong to rewrite AR.
5287  # But if we don't then we get into trouble of one sort or another.
5288  # A longer-term fix would be to have automake use am__AR in this case,
5289  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5290  # similar.
5291  AR="$am_aux_dir/ar-lib $AR"
5292  ;;
5293unknown)
5294  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5295  ;;
5296esac
5297
5298
5299# checks for tool to convert docbook to man
5300genman="no"
5301for ac_prog in docbook2x-man
5302do
5303  # Extract the first word of "$ac_prog", so it can be a program name with args.
5304set dummy $ac_prog; ac_word=$2
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
5307if ${ac_cv_path_DOCBOOK2X_MAN+:} false; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  case $DOCBOOK2X_MAN in
5311  [\\/]* | ?:[\\/]*)
5312  ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path.
5313  ;;
5314  *)
5315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318  IFS=$as_save_IFS
5319  test -z "$as_dir" && as_dir=.
5320    for ac_exec_ext in '' $ac_executable_extensions; do
5321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322    ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext"
5323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324    break 2
5325  fi
5326done
5327  done
5328IFS=$as_save_IFS
5329
5330  ;;
5331esac
5332fi
5333DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN
5334if test -n "$DOCBOOK2X_MAN"; then
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK2X_MAN" >&5
5336$as_echo "$DOCBOOK2X_MAN" >&6; }
5337else
5338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
5340fi
5341
5342
5343  test -n "$DOCBOOK2X_MAN" && break
5344done
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tool to (re)generate man pages" >&5
5347$as_echo_n "checking for tool to (re)generate man pages... " >&6; }
5348if test "x${DOCBOOK2X_MAN}" != x
5349then
5350  genman="${DOCBOOK2X_MAN}"
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $genman" >&5
5353$as_echo "$genman" >&6; }
5354 if test "x${genman}" != "xno"; then
5355  GENMAN_TRUE=
5356  GENMAN_FALSE='#'
5357else
5358  GENMAN_TRUE='#'
5359  GENMAN_FALSE=
5360fi
5361
5362if test "x${genman}" = "xno"
5363then
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: docbook2x-man not found: not (re)generating man pages" >&5
5365$as_echo "$as_me: WARNING: docbook2x-man not found: not (re)generating man pages" >&2;}
5366fi
5367
5368# check whether to install manual pages
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install man pages" >&5
5370$as_echo_n "checking whether to install man pages... " >&6; }
5371instman="no"
5372if test "x${genman}" != "xno" || ls  "${srcdir}/man/"*.? > /dev/null 2>&1
5373then
5374  instman="yes"
5375fi
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $instman" >&5
5377$as_echo "$instman" >&6; }
5378 if test "x${instman}" != "xno"; then
5379  INSTMAN_TRUE=
5380  INSTMAN_FALSE='#'
5381else
5382  INSTMAN_TRUE='#'
5383  INSTMAN_FALSE=
5384fi
5385
5386if test "x${instman}" = "xno"
5387then
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not installing man pages (no generator and not pre-generated)" >&5
5389$as_echo "$as_me: WARNING: not installing man pages (no generator and not pre-generated)" >&2;}
5390fi
5391
5392# check for Python and modules
5393
5394
5395
5396
5397
5398
5399        if test -n "$PYTHON"; then
5400      # If the user set $PYTHON, use it and don't search something else.
5401      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
5402$as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
5403      prog="import sys
5404# split strings by '.' and convert to numeric.  Append some zeros
5405# because we need at least 4 digits for the hex conversion.
5406# map returns an iterator in Python 3.0 and a list in 2.x
5407minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5408minverhex = 0
5409# xrange is not present in Python 3.0 and range returns an iterator
5410for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5411sys.exit(sys.hexversion < minverhex)"
5412  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5413   ($PYTHON -c "$prog") >&5 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; then :
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418$as_echo "yes" >&6; }
5419else
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5423fi
5424      am_display_PYTHON=$PYTHON
5425    else
5426      # Otherwise, try each interpreter until we find one that satisfies
5427      # VERSION.
5428      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5429$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
5430if ${am_cv_pathless_PYTHON+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433
5434	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
5435	  test "$am_cv_pathless_PYTHON" = none && break
5436	  prog="import sys
5437# split strings by '.' and convert to numeric.  Append some zeros
5438# because we need at least 4 digits for the hex conversion.
5439# map returns an iterator in Python 3.0 and a list in 2.x
5440minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5441minverhex = 0
5442# xrange is not present in Python 3.0 and range returns an iterator
5443for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5444sys.exit(sys.hexversion < minverhex)"
5445  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5446   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; then :
5450  break
5451fi
5452	done
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5455$as_echo "$am_cv_pathless_PYTHON" >&6; }
5456      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5457      if test "$am_cv_pathless_PYTHON" = none; then
5458	PYTHON=:
5459      else
5460        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5461set dummy $am_cv_pathless_PYTHON; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if ${ac_cv_path_PYTHON+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  case $PYTHON in
5468  [\\/]* | ?:[\\/]*)
5469  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5470  ;;
5471  *)
5472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477    for ac_exec_ext in '' $ac_executable_extensions; do
5478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484  done
5485IFS=$as_save_IFS
5486
5487  ;;
5488esac
5489fi
5490PYTHON=$ac_cv_path_PYTHON
5491if test -n "$PYTHON"; then
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5493$as_echo "$PYTHON" >&6; }
5494else
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496$as_echo "no" >&6; }
5497fi
5498
5499
5500      fi
5501      am_display_PYTHON=$am_cv_pathless_PYTHON
5502    fi
5503
5504
5505  if test "$PYTHON" = :; then
5506      :
5507  else
5508
5509
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5511$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5512if ${am_cv_python_version+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5518$as_echo "$am_cv_python_version" >&6; }
5519  PYTHON_VERSION=$am_cv_python_version
5520
5521
5522
5523  PYTHON_PREFIX='${prefix}'
5524
5525  PYTHON_EXEC_PREFIX='${exec_prefix}'
5526
5527
5528
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5530$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5531if ${am_cv_python_platform+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5537$as_echo "$am_cv_python_platform" >&6; }
5538  PYTHON_PLATFORM=$am_cv_python_platform
5539
5540
5541  # Just factor out some code duplication.
5542  am_python_setup_sysconfig="\
5543import sys
5544# Prefer sysconfig over distutils.sysconfig, for better compatibility
5545# with python 3.x.  See automake bug#10227.
5546try:
5547    import sysconfig
5548except ImportError:
5549    can_use_sysconfig = 0
5550else:
5551    can_use_sysconfig = 1
5552# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5553# <https://github.com/pypa/virtualenv/issues/118>
5554try:
5555    from platform import python_implementation
5556    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5557        can_use_sysconfig = 0
5558except ImportError:
5559    pass"
5560
5561
5562            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5563$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5564if ${am_cv_python_pythondir+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if test "x$prefix" = xNONE
5568     then
5569       am_py_prefix=$ac_default_prefix
5570     else
5571       am_py_prefix=$prefix
5572     fi
5573     am_cv_python_pythondir=`$PYTHON -c "
5574$am_python_setup_sysconfig
5575if can_use_sysconfig:
5576    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5577else:
5578    from distutils import sysconfig
5579    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5580sys.stdout.write(sitedir)"`
5581     case $am_cv_python_pythondir in
5582     $am_py_prefix*)
5583       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5584       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5585       ;;
5586     *)
5587       case $am_py_prefix in
5588         /usr|/System*) ;;
5589         *)
5590	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5591	  ;;
5592       esac
5593       ;;
5594     esac
5595
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5598$as_echo "$am_cv_python_pythondir" >&6; }
5599  pythondir=$am_cv_python_pythondir
5600
5601
5602
5603  pkgpythondir=\${pythondir}/$PACKAGE
5604
5605
5606        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5607$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5608if ${am_cv_python_pyexecdir+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test "x$exec_prefix" = xNONE
5612     then
5613       am_py_exec_prefix=$am_py_prefix
5614     else
5615       am_py_exec_prefix=$exec_prefix
5616     fi
5617     am_cv_python_pyexecdir=`$PYTHON -c "
5618$am_python_setup_sysconfig
5619if can_use_sysconfig:
5620    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5621else:
5622    from distutils import sysconfig
5623    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5624sys.stdout.write(sitedir)"`
5625     case $am_cv_python_pyexecdir in
5626     $am_py_exec_prefix*)
5627       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5628       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5629       ;;
5630     *)
5631       case $am_py_exec_prefix in
5632         /usr|/System*) ;;
5633         *)
5634	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5635	   ;;
5636       esac
5637       ;;
5638     esac
5639
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5642$as_echo "$am_cv_python_pyexecdir" >&6; }
5643  pyexecdir=$am_cv_python_pyexecdir
5644
5645
5646
5647  pkgpyexecdir=\${pyexecdir}/$PACKAGE
5648
5649
5650
5651  fi
5652
5653
5654 if test "$PYTHON" != ":"; then
5655  HAVE_PYTHON_TRUE=
5656  HAVE_PYTHON_FALSE='#'
5657else
5658  HAVE_PYTHON_TRUE='#'
5659  HAVE_PYTHON_FALSE=
5660fi
5661
5662if test "x$PYTHON" != "x:"
5663then
5664
5665    if test -z $PYTHON;
5666    then
5667        PYTHON="python"
5668    fi
5669    PYTHON_NAME=`basename $PYTHON`
5670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5
5671$as_echo_n "checking $PYTHON_NAME module: argparse... " >&6; }
5672	$PYTHON -c "import argparse" 2>/dev/null
5673	if test $? -eq 0;
5674	then
5675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676$as_echo "yes" >&6; }
5677		eval HAVE_PYMOD_ARGPARSE=yes
5678	else
5679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681		eval HAVE_PYMOD_ARGPARSE=no
5682		#
5683		if test -n ""
5684		then
5685			as_fn_error $? "failed to find required module argparse" "$LINENO" 5
5686			exit 1
5687		fi
5688	fi
5689
5690fi
5691
5692# check for debugging options
5693# Check whether --enable-debug was given.
5694if test "${enable_debug+set}" = set; then :
5695  enableval=$enable_debug; if test "x$enableval" != "xno" ; then CFLAGS="-g -DDEBUG $CFLAGS" ; fi
5696fi
5697
5698
5699# check for extra compiler warnings
5700DESIRED_CFLAGS=""
5701# Check whether --enable-warnings was given.
5702if test "${enable_warnings+set}" = set; then :
5703  enableval=$enable_warnings; if test "x$enableval" != "no"
5704               then
5705                 CFLAGS="$CFLAGS -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations -Wunused -Wformat=2 -Wswitch-default -Wswitch-enum -Wfloat-equal -Wbad-function-cast -Wredundant-decls"
5706                 DESIRED_CFLAGS="$DESIRED_CFLAGS -Wextra -Wdeclaration-after-statement -Werror-implicit-function-declaration -Werror=implicit"
5707               fi
5708fi
5709
5710test_gcc_flag() {
5711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713
5714int
5715main ()
5716{
5717
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722  $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
5723  ret=$?
5724  rm -f conftest.o
5725  return $ret
5726}
5727for flag in $DESIRED_CFLAGS
5728do
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5
5730$as_echo_n "checking whether $CC accepts $flag... " >&6; }
5731  if test_gcc_flag $flag
5732  then
5733    CFLAGS="$CFLAGS $flag"
5734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735$as_echo "yes" >&6; }
5736  else
5737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739  fi
5740done
5741
5742# check for Position Independent Code compiler option
5743PIC_CFLAGS=""
5744if test "$ac_cv_c_compiler_gnu" = "yes"
5745then
5746  PIC_CFLAGS="-fPIC"
5747else
5748  case "$target_os" in
5749    sysv5*) PIC_CFLAGS="-KPIC" ;;
5750  esac
5751fi
5752
5753
5754# add --disable-maintainer-mode option
5755
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5757$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5758    # Check whether --enable-maintainer-mode was given.
5759if test "${enable_maintainer_mode+set}" = set; then :
5760  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5761else
5762  USE_MAINTAINER_MODE=yes
5763fi
5764
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5766$as_echo "$USE_MAINTAINER_MODE" >&6; }
5767   if test $USE_MAINTAINER_MODE = yes; then
5768  MAINTAINER_MODE_TRUE=
5769  MAINTAINER_MODE_FALSE='#'
5770else
5771  MAINTAINER_MODE_TRUE='#'
5772  MAINTAINER_MODE_FALSE=
5773fi
5774
5775  MAINT=$MAINTAINER_MODE_TRUE
5776
5777
5778
5779# check whether the NSS module should be built
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the NSS module" >&5
5781$as_echo_n "checking whether to build the NSS module... " >&6; }
5782# Check whether --enable-nss was given.
5783if test "${enable_nss+set}" = set; then :
5784  enableval=$enable_nss;
5785else
5786  enable_nss="yes"
5787fi
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nss" >&5
5790$as_echo "$enable_nss" >&6; }
5791 if test "x$enable_nss" = "xyes"; then
5792  ENABLE_NSS_TRUE=
5793  ENABLE_NSS_FALSE='#'
5794else
5795  ENABLE_NSS_TRUE='#'
5796  ENABLE_NSS_FALSE=
5797fi
5798
5799
5800# check whether the PAM module should be built
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the PAM module" >&5
5802$as_echo_n "checking whether to build the PAM module... " >&6; }
5803# Check whether --enable-pam was given.
5804if test "${enable_pam+set}" = set; then :
5805  enableval=$enable_pam;
5806else
5807  enable_pam="yes"
5808fi
5809
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pam" >&5
5811$as_echo "$enable_pam" >&6; }
5812 if test "x$enable_pam" = "xyes"; then
5813  ENABLE_PAM_TRUE=
5814  ENABLE_PAM_FALSE='#'
5815else
5816  ENABLE_PAM_TRUE='#'
5817  ENABLE_PAM_FALSE=
5818fi
5819
5820
5821# check whether command-line utilities should be built
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the command-line utilities" >&5
5823$as_echo_n "checking whether to build the command-line utilities... " >&6; }
5824# Check whether --enable-utils was given.
5825if test "${enable_utils+set}" = set; then :
5826  enableval=$enable_utils;
5827else
5828  enable_utils="auto"
5829fi
5830
5831if test "x$enable_utils" = "xauto"
5832then
5833  if test "x$PYTHON" != "x:" && test "$HAVE_PYMOD_ARGPARSE" = "yes"
5834  then
5835    enable_utils="yes"
5836  else
5837    enable_utils="no"
5838  fi
5839fi
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_utils" >&5
5841$as_echo "$enable_utils" >&6; }
5842 if test "x$enable_utils" = "xyes"; then
5843  ENABLE_UTILS_TRUE=
5844  ENABLE_UTILS_FALSE='#'
5845else
5846  ENABLE_UTILS_TRUE='#'
5847  ENABLE_UTILS_FALSE=
5848fi
5849
5850
5851# check whether the nslcd daemon should be built
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the nslcd daemon" >&5
5853$as_echo_n "checking whether to build the nslcd daemon... " >&6; }
5854# Check whether --enable-nslcd was given.
5855if test "${enable_nslcd+set}" = set; then :
5856  enableval=$enable_nslcd;
5857else
5858  enable_nslcd="yes"
5859fi
5860
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nslcd" >&5
5862$as_echo "$enable_nslcd" >&6; }
5863 if test "x$enable_nslcd" = "xyes"; then
5864  ENABLE_NSLCD_TRUE=
5865  ENABLE_NSLCD_FALSE='#'
5866else
5867  ENABLE_NSLCD_TRUE='#'
5868  ENABLE_NSLCD_FALSE=
5869fi
5870
5871
5872# check whether the Python version of the nslcd daemon should be built
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the pynslcd daemon" >&5
5874$as_echo_n "checking whether to build the pynslcd daemon... " >&6; }
5875# Check whether --enable-pynslcd was given.
5876if test "${enable_pynslcd+set}" = set; then :
5877  enableval=$enable_pynslcd;
5878else
5879  enable_pynslcd="no"
5880fi
5881
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pynslcd" >&5
5883$as_echo "$enable_pynslcd" >&6; }
5884 if test "x$enable_pynslcd" = "xyes"; then
5885  ENABLE_PYNSLCD_TRUE=
5886  ENABLE_PYNSLCD_FALSE='#'
5887else
5888  ENABLE_PYNSLCD_TRUE='#'
5889  ENABLE_PYNSLCD_FALSE=
5890fi
5891
5892if test "x$enable_pynslcd" = "xyes"
5893then
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the pynslcd daemon is experimental" >&5
5895$as_echo "$as_me: WARNING: the pynslcd daemon is experimental" >&2;}
5896fi
5897
5898# check whether SASL support should be enabled
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SASL support" >&5
5900$as_echo_n "checking whether to enable SASL support... " >&6; }
5901# Check whether --enable-sasl was given.
5902if test "${enable_sasl+set}" = set; then :
5903  enableval=$enable_sasl; enable_sasl=$enableval
5904else
5905  enable_sasl="yes"
5906fi
5907
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sasl" >&5
5909$as_echo "$enable_sasl" >&6; }
5910
5911# check whether Kerberos support should be enabled
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Kerberos support" >&5
5913$as_echo_n "checking whether to enable Kerberos support... " >&6; }
5914# Check whether --enable-kerberos was given.
5915if test "${enable_kerberos+set}" = set; then :
5916  enableval=$enable_kerberos; enable_kerberos=$enableval
5917else
5918  enable_kerberos="yes"
5919fi
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kerberos" >&5
5922$as_echo "$enable_kerberos" >&6; }
5923
5924# check whether configfile options should be checked
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check configfile options" >&5
5926$as_echo_n "checking whether to check configfile options... " >&6; }
5927# Check whether --enable-configfile_checking was given.
5928if test "${enable_configfile_checking+set}" = set; then :
5929  enableval=$enable_configfile_checking; configfile_checking=$enableval
5930else
5931  configfile_checking="yes"
5932fi
5933
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $configfile_checking" >&5
5935$as_echo "$configfile_checking" >&6; }
5936if test "x$configfile_checking" = "xyes"
5937then
5938
5939$as_echo "#define ENABLE_CONFIGFILE_CHECKING 1 " >>confdefs.h
5940
5941fi
5942
5943# check the name of the configuration file
5944
5945# Check whether --with-ldap-conf-file was given.
5946if test "${with_ldap_conf_file+set}" = set; then :
5947  withval=$with_ldap_conf_file;  NSLCD_CONF_PATH="$with_ldap_conf_file"
5948else
5949   NSLCD_CONF_PATH="/etc/nslcd.conf"
5950fi
5951
5952
5953cat >>confdefs.h <<_ACEOF
5954#define NSLCD_CONF_PATH "$NSLCD_CONF_PATH"
5955_ACEOF
5956
5957
5958
5959# check the name of the file with a bindpw value
5960
5961# Check whether --with-bindpw-file was given.
5962if test "${with_bindpw_file+set}" = set; then :
5963  withval=$with_bindpw_file;  NSLCD_BINDPW_PATH="$with_bindpw_file"
5964
5965cat >>confdefs.h <<_ACEOF
5966#define NSLCD_BINDPW_PATH "$NSLCD_BINDPW_PATH"
5967_ACEOF
5968
5969
5970
5971fi
5972
5973
5974# where should the pidfile be written
5975
5976# Check whether --with-nslcd-pidfile was given.
5977if test "${with_nslcd_pidfile+set}" = set; then :
5978  withval=$with_nslcd_pidfile;  NSLCD_PIDFILE="$with_nslcd_pidfile"
5979else
5980   NSLCD_PIDFILE="/var/run/nslcd/nslcd.pid"
5981fi
5982
5983
5984cat >>confdefs.h <<_ACEOF
5985#define NSLCD_PIDFILE "$NSLCD_PIDFILE"
5986_ACEOF
5987
5988
5989
5990# where is the socket used for communication
5991
5992# Check whether --with-nslcd-socket was given.
5993if test "${with_nslcd_socket+set}" = set; then :
5994  withval=$with_nslcd_socket;  NSLCD_SOCKET="$with_nslcd_socket"
5995else
5996   NSLCD_SOCKET="/var/run/nslcd/socket"
5997fi
5998
5999
6000cat >>confdefs.h <<_ACEOF
6001#define NSLCD_SOCKET "$NSLCD_SOCKET"
6002_ACEOF
6003
6004
6005
6006# the directory PAM librabries are expected to be placed into
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location for PAM module" >&5
6008$as_echo_n "checking location for PAM module... " >&6; }
6009
6010# Check whether --with-pam-seclib-dir was given.
6011if test "${with_pam_seclib_dir+set}" = set; then :
6012  withval=$with_pam_seclib_dir;  PAM_SECLIB_DIR="$with_pam_seclib_dir"
6013else
6014   PAM_SECLIB_DIR="auto"
6015fi
6016
6017if test "x$PAM_SECLIB_DIR" = "xauto"
6018then
6019  case "$target_os" in
6020    solaris*) PAM_SECLIB_DIR="/usr/lib/security" ;;
6021    freebsd*|dragonfly*) PAM_SECLIB_DIR="/usr/lib" ;;
6022    *)        PAM_SECLIB_DIR="/lib/security" ;;
6023  esac
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAM_SECLIB_DIR" >&5
6026$as_echo "$PAM_SECLIB_DIR" >&6; }
6027
6028cat >>confdefs.h <<_ACEOF
6029#define PAM_SECLIB_DIR "$PAM_SECLIB_DIR"
6030_ACEOF
6031
6032
6033
6034# the name to use for the NSS module
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking name of NSS and PAM modules" >&5
6036$as_echo_n "checking name of NSS and PAM modules... " >&6; }
6037
6038# Check whether --with-module-name was given.
6039if test "${with_module_name+set}" = set; then :
6040  withval=$with_module_name;  MODULE_NAME="$with_module_name"
6041else
6042   MODULE_NAME="ldap"
6043fi
6044
6045            # FIXME: this does not work
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODULE_NAME" >&5
6047$as_echo "$MODULE_NAME" >&6; }
6048
6049cat >>confdefs.h <<_ACEOF
6050#define MODULE_NAME "$MODULE_NAME"
6051_ACEOF
6052
6053
6054cat >>confdefs.h <<_ACEOF
6055#define NSS_NAME(NAME) _nss_${MODULE_NAME}_##NAME
6056_ACEOF
6057
6058
6059cat >>confdefs.h <<_ACEOF
6060#define PAM_NAME(NAME) _pam_${MODULE_NAME}_##NAME
6061_ACEOF
6062
6063
6064
6065# the SONAME to use for the NSS module
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking soname of NSS module" >&5
6067$as_echo_n "checking soname of NSS module... " >&6; }
6068
6069# Check whether --with-nss-ldap-soname was given.
6070if test "${with_nss_ldap_soname+set}" = set; then :
6071  withval=$with_nss_ldap_soname;  NSS_LDAP_SONAME="$with_nss_ldap_soname"
6072else
6073   NSS_LDAP_SONAME="auto"
6074fi
6075
6076if test "x$NSS_LDAP_SONAME" = "xauto"
6077then
6078  case "$target_os" in
6079    solaris*) NSS_LDAP_SONAME="nss_$MODULE_NAME.so.1" ;;
6080    freebsd*|dragonfly*) NSS_LDAP_SONAME="nss_$MODULE_NAME.so.1" ;;
6081    *)        NSS_LDAP_SONAME="libnss_$MODULE_NAME.so.2" ;;
6082  esac
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSS_LDAP_SONAME" >&5
6085$as_echo "$NSS_LDAP_SONAME" >&6; }
6086
6087cat >>confdefs.h <<_ACEOF
6088#define NSS_LDAP_SONAME "$NSS_LDAP_SONAME"
6089_ACEOF
6090
6091
6092
6093# the SONAME to use for the PAM module
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking soname of PAM module" >&5
6095$as_echo_n "checking soname of PAM module... " >&6; }
6096
6097# Check whether --with-pam-ldap-soname was given.
6098if test "${with_pam_ldap_soname+set}" = set; then :
6099  withval=$with_pam_ldap_soname;  PAM_LDAP_SONAME="$with_pam_ldap_soname"
6100else
6101   PAM_LDAP_SONAME="auto"
6102fi
6103
6104if test "x$PAM_LDAP_SONAME" = "xauto"
6105then
6106  case "$target_os" in
6107    solaris*) PAM_LDAP_SONAME="pam_$MODULE_NAME.so.1" ;;
6108    *)        PAM_LDAP_SONAME="pam_$MODULE_NAME.so" ;;
6109  esac
6110fi
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAM_LDAP_SONAME" >&5
6112$as_echo "$PAM_LDAP_SONAME" >&6; }
6113
6114
6115# check which modules should be build
6116
6117# Check whether --with-nss-maps was given.
6118if test "${with_nss_maps+set}" = set; then :
6119  withval=$with_nss_maps;
6120else
6121   with_nss_maps="all"
6122fi
6123
6124
6125# checks for availability of header files
6126for ac_header in ctype.h strings.h pthread.h pthread_np.h fcntl.h limits.h
6127do :
6128  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6129ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6131  cat >>confdefs.h <<_ACEOF
6132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6133_ACEOF
6134
6135fi
6136
6137done
6138
6139for ac_header in nss.h nss_common.h grp.h shadow.h aliases.h netdb.h rpc/rpcent.h
6140do :
6141  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6144  cat >>confdefs.h <<_ACEOF
6145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6146_ACEOF
6147
6148fi
6149
6150done
6151
6152for ac_header in netinet/ether.h arpa/inet.h netinet/in.h
6153do :
6154  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6157  cat >>confdefs.h <<_ACEOF
6158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6159_ACEOF
6160
6161fi
6162
6163done
6164
6165for ac_header in nsswitch.h nss_dbdefs.h
6166do :
6167  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6169if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6170  cat >>confdefs.h <<_ACEOF
6171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6172_ACEOF
6173
6174fi
6175
6176done
6177
6178for ac_header in sys/socket.h sys/un.h sys/ucred.h ucred.h sys/param.h sys/time.h
6179do :
6180  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6183  cat >>confdefs.h <<_ACEOF
6184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185_ACEOF
6186
6187fi
6188
6189done
6190
6191for ac_header in getopt.h syslog.h stddef.h
6192do :
6193  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6194ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6196  cat >>confdefs.h <<_ACEOF
6197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198_ACEOF
6199
6200fi
6201
6202done
6203
6204
6205# other general checks
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6207$as_echo_n "checking for inline... " >&6; }
6208if ${ac_cv_c_inline+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  ac_cv_c_inline=no
6212for ac_kw in inline __inline__ __inline; do
6213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h.  */
6215#ifndef __cplusplus
6216typedef int foo_t;
6217static $ac_kw foo_t static_foo () {return 0; }
6218$ac_kw foo_t foo () {return 0; }
6219#endif
6220
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223  ac_cv_c_inline=$ac_kw
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226  test "$ac_cv_c_inline" != no && break
6227done
6228
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6231$as_echo "$ac_cv_c_inline" >&6; }
6232
6233case $ac_cv_c_inline in
6234  inline | yes) ;;
6235  *)
6236    case $ac_cv_c_inline in
6237      no) ac_val=;;
6238      *) ac_val=$ac_cv_c_inline;;
6239    esac
6240    cat >>confdefs.h <<_ACEOF
6241#ifndef __cplusplus
6242#define inline $ac_val
6243#endif
6244_ACEOF
6245    ;;
6246esac
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6249$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6250if ${ac_cv_c_const+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255
6256int
6257main ()
6258{
6259
6260#ifndef __cplusplus
6261  /* Ultrix mips cc rejects this sort of thing.  */
6262  typedef int charset[2];
6263  const charset cs = { 0, 0 };
6264  /* SunOS 4.1.1 cc rejects this.  */
6265  char const *const *pcpcc;
6266  char **ppc;
6267  /* NEC SVR4.0.2 mips cc rejects this.  */
6268  struct point {int x, y;};
6269  static struct point const zero = {0,0};
6270  /* AIX XL C 1.02.0.0 rejects this.
6271     It does not let you subtract one const X* pointer from another in
6272     an arm of an if-expression whose if-part is not a constant
6273     expression */
6274  const char *g = "string";
6275  pcpcc = &g + (g ? g-g : 0);
6276  /* HPUX 7.0 cc rejects these. */
6277  ++pcpcc;
6278  ppc = (char**) pcpcc;
6279  pcpcc = (char const *const *) ppc;
6280  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6281    char tx;
6282    char *t = &tx;
6283    char const *s = 0 ? (char *) 0 : (char const *) 0;
6284
6285    *t++ = 0;
6286    if (s) return 0;
6287  }
6288  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6289    int x[] = {25, 17};
6290    const int *foo = &x[0];
6291    ++foo;
6292  }
6293  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6294    typedef const int *iptr;
6295    iptr p = 0;
6296    ++p;
6297  }
6298  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6299       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6300    struct s { int j; const int *ap[3]; } bx;
6301    struct s *b = &bx; b->j = 5;
6302  }
6303  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6304    const int foo = 10;
6305    if (!foo) return 0;
6306  }
6307  return !cs[0] && !zero.x;
6308#endif
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_compile "$LINENO"; then :
6315  ac_cv_c_const=yes
6316else
6317  ac_cv_c_const=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6322$as_echo "$ac_cv_c_const" >&6; }
6323if test $ac_cv_c_const = no; then
6324
6325$as_echo "#define const /**/" >>confdefs.h
6326
6327fi
6328
6329
6330# checks for availability of common functions
6331for ac_func in sigaction snprintf
6332do :
6333  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6334ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6335if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6336  cat >>confdefs.h <<_ACEOF
6337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6338_ACEOF
6339
6340fi
6341done
6342
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6344$as_echo_n "checking for library containing socket... " >&6; }
6345if ${ac_cv_search_socket+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  ac_func_search_save_LIBS=$LIBS
6349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351
6352/* Override any GCC internal prototype to avoid an error.
6353   Use char because int might match the return type of a GCC
6354   builtin and then its argument prototype would still apply.  */
6355#ifdef __cplusplus
6356extern "C"
6357#endif
6358char socket ();
6359int
6360main ()
6361{
6362return socket ();
6363  ;
6364  return 0;
6365}
6366_ACEOF
6367for ac_lib in '' socket; do
6368  if test -z "$ac_lib"; then
6369    ac_res="none required"
6370  else
6371    ac_res=-l$ac_lib
6372    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6373  fi
6374  if ac_fn_c_try_link "$LINENO"; then :
6375  ac_cv_search_socket=$ac_res
6376fi
6377rm -f core conftest.err conftest.$ac_objext \
6378    conftest$ac_exeext
6379  if ${ac_cv_search_socket+:} false; then :
6380  break
6381fi
6382done
6383if ${ac_cv_search_socket+:} false; then :
6384
6385else
6386  ac_cv_search_socket=no
6387fi
6388rm conftest.$ac_ext
6389LIBS=$ac_func_search_save_LIBS
6390fi
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6392$as_echo "$ac_cv_search_socket" >&6; }
6393ac_res=$ac_cv_search_socket
6394if test "$ac_res" != no; then :
6395  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6396
6397fi
6398
6399for ac_func in strcasecmp strncasecmp strchr strcspn strspn strtol strtoul strtoull strndup
6400do :
6401  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6402ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6403if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6404  cat >>confdefs.h <<_ACEOF
6405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6406_ACEOF
6407
6408fi
6409done
6410
6411for ac_func in malloc realloc atexit
6412do :
6413  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6414ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6415if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6416  cat >>confdefs.h <<_ACEOF
6417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6418_ACEOF
6419
6420fi
6421done
6422
6423ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6424if test "x$ac_cv_type_pid_t" = xyes; then :
6425
6426else
6427
6428cat >>confdefs.h <<_ACEOF
6429#define pid_t int
6430_ACEOF
6431
6432fi
6433
6434for ac_header in vfork.h
6435do :
6436  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6437if test "x$ac_cv_header_vfork_h" = xyes; then :
6438  cat >>confdefs.h <<_ACEOF
6439#define HAVE_VFORK_H 1
6440_ACEOF
6441
6442fi
6443
6444done
6445
6446for ac_func in fork vfork
6447do :
6448  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6450if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6451  cat >>confdefs.h <<_ACEOF
6452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6453_ACEOF
6454
6455fi
6456done
6457
6458if test "x$ac_cv_func_fork" = xyes; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6460$as_echo_n "checking for working fork... " >&6; }
6461if ${ac_cv_func_fork_works+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  if test "$cross_compiling" = yes; then :
6465  ac_cv_func_fork_works=cross
6466else
6467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468/* end confdefs.h.  */
6469$ac_includes_default
6470int
6471main ()
6472{
6473
6474	  /* By Ruediger Kuhlmann. */
6475	  return fork () < 0;
6476
6477  ;
6478  return 0;
6479}
6480_ACEOF
6481if ac_fn_c_try_run "$LINENO"; then :
6482  ac_cv_func_fork_works=yes
6483else
6484  ac_cv_func_fork_works=no
6485fi
6486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6487  conftest.$ac_objext conftest.beam conftest.$ac_ext
6488fi
6489
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6492$as_echo "$ac_cv_func_fork_works" >&6; }
6493
6494else
6495  ac_cv_func_fork_works=$ac_cv_func_fork
6496fi
6497if test "x$ac_cv_func_fork_works" = xcross; then
6498  case $host in
6499    *-*-amigaos* | *-*-msdosdjgpp*)
6500      # Override, as these systems have only a dummy fork() stub
6501      ac_cv_func_fork_works=no
6502      ;;
6503    *)
6504      ac_cv_func_fork_works=yes
6505      ;;
6506  esac
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6508$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6509fi
6510ac_cv_func_vfork_works=$ac_cv_func_vfork
6511if test "x$ac_cv_func_vfork" = xyes; then
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6513$as_echo_n "checking for working vfork... " >&6; }
6514if ${ac_cv_func_vfork_works+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test "$cross_compiling" = yes; then :
6518  ac_cv_func_vfork_works=cross
6519else
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522/* Thanks to Paul Eggert for this test.  */
6523$ac_includes_default
6524#include <sys/wait.h>
6525#ifdef HAVE_VFORK_H
6526# include <vfork.h>
6527#endif
6528/* On some sparc systems, changes by the child to local and incoming
6529   argument registers are propagated back to the parent.  The compiler
6530   is told about this with #include <vfork.h>, but some compilers
6531   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
6532   static variable whose address is put into a register that is
6533   clobbered by the vfork.  */
6534static void
6535#ifdef __cplusplus
6536sparc_address_test (int arg)
6537# else
6538sparc_address_test (arg) int arg;
6539#endif
6540{
6541  static pid_t child;
6542  if (!child) {
6543    child = vfork ();
6544    if (child < 0) {
6545      perror ("vfork");
6546      _exit(2);
6547    }
6548    if (!child) {
6549      arg = getpid();
6550      write(-1, "", 0);
6551      _exit (arg);
6552    }
6553  }
6554}
6555
6556int
6557main ()
6558{
6559  pid_t parent = getpid ();
6560  pid_t child;
6561
6562  sparc_address_test (0);
6563
6564  child = vfork ();
6565
6566  if (child == 0) {
6567    /* Here is another test for sparc vfork register problems.  This
6568       test uses lots of local variables, at least as many local
6569       variables as main has allocated so far including compiler
6570       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
6571       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
6572       reuse the register of parent for one of the local variables,
6573       since it will think that parent can't possibly be used any more
6574       in this routine.  Assigning to the local variable will thus
6575       munge parent in the parent process.  */
6576    pid_t
6577      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6578      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6579    /* Convince the compiler that p..p7 are live; otherwise, it might
6580       use the same hardware register for all 8 local variables.  */
6581    if (p != p1 || p != p2 || p != p3 || p != p4
6582	|| p != p5 || p != p6 || p != p7)
6583      _exit(1);
6584
6585    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6586       from child file descriptors.  If the child closes a descriptor
6587       before it execs or exits, this munges the parent's descriptor
6588       as well.  Test for this by closing stdout in the child.  */
6589    _exit(close(fileno(stdout)) != 0);
6590  } else {
6591    int status;
6592    struct stat st;
6593
6594    while (wait(&status) != child)
6595      ;
6596    return (
6597	 /* Was there some problem with vforking?  */
6598	 child < 0
6599
6600	 /* Did the child fail?  (This shouldn't happen.)  */
6601	 || status
6602
6603	 /* Did the vfork/compiler bug occur?  */
6604	 || parent != getpid()
6605
6606	 /* Did the file descriptor bug occur?  */
6607	 || fstat(fileno(stdout), &st) != 0
6608	 );
6609  }
6610}
6611_ACEOF
6612if ac_fn_c_try_run "$LINENO"; then :
6613  ac_cv_func_vfork_works=yes
6614else
6615  ac_cv_func_vfork_works=no
6616fi
6617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6618  conftest.$ac_objext conftest.beam conftest.$ac_ext
6619fi
6620
6621fi
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6623$as_echo "$ac_cv_func_vfork_works" >&6; }
6624
6625fi;
6626if test "x$ac_cv_func_fork_works" = xcross; then
6627  ac_cv_func_vfork_works=$ac_cv_func_vfork
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6629$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6630fi
6631
6632if test "x$ac_cv_func_vfork_works" = xyes; then
6633
6634$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6635
6636else
6637
6638$as_echo "#define vfork fork" >>confdefs.h
6639
6640fi
6641if test "x$ac_cv_func_fork_works" = xyes; then
6642
6643$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6644
6645fi
6646
6647for ac_func in __assert_fail
6648do :
6649  ac_fn_c_check_func "$LINENO" "__assert_fail" "ac_cv_func___assert_fail"
6650if test "x$ac_cv_func___assert_fail" = xyes; then :
6651  cat >>confdefs.h <<_ACEOF
6652#define HAVE___ASSERT_FAIL 1
6653_ACEOF
6654
6655fi
6656done
6657
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6659$as_echo_n "checking for library containing clock_gettime... " >&6; }
6660if ${ac_cv_search_clock_gettime+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  ac_func_search_save_LIBS=$LIBS
6664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666
6667/* Override any GCC internal prototype to avoid an error.
6668   Use char because int might match the return type of a GCC
6669   builtin and then its argument prototype would still apply.  */
6670#ifdef __cplusplus
6671extern "C"
6672#endif
6673char clock_gettime ();
6674int
6675main ()
6676{
6677return clock_gettime ();
6678  ;
6679  return 0;
6680}
6681_ACEOF
6682for ac_lib in '' rt; do
6683  if test -z "$ac_lib"; then
6684    ac_res="none required"
6685  else
6686    ac_res=-l$ac_lib
6687    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6688  fi
6689  if ac_fn_c_try_link "$LINENO"; then :
6690  ac_cv_search_clock_gettime=$ac_res
6691fi
6692rm -f core conftest.err conftest.$ac_objext \
6693    conftest$ac_exeext
6694  if ${ac_cv_search_clock_gettime+:} false; then :
6695  break
6696fi
6697done
6698if ${ac_cv_search_clock_gettime+:} false; then :
6699
6700else
6701  ac_cv_search_clock_gettime=no
6702fi
6703rm conftest.$ac_ext
6704LIBS=$ac_func_search_save_LIBS
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6707$as_echo "$ac_cv_search_clock_gettime" >&6; }
6708ac_res=$ac_cv_search_clock_gettime
6709if test "$ac_res" != no; then :
6710  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6711
6712fi
6713
6714for ac_func in setusershell getusershell endusershell getgrouplist
6715do :
6716  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6719  cat >>confdefs.h <<_ACEOF
6720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6721_ACEOF
6722
6723fi
6724done
6725
6726ac_fn_c_check_decl "$LINENO" "setusershell" "ac_cv_have_decl_setusershell" "$ac_includes_default"
6727if test "x$ac_cv_have_decl_setusershell" = xyes; then :
6728  ac_have_decl=1
6729else
6730  ac_have_decl=0
6731fi
6732
6733cat >>confdefs.h <<_ACEOF
6734#define HAVE_DECL_SETUSERSHELL $ac_have_decl
6735_ACEOF
6736ac_fn_c_check_decl "$LINENO" "getusershell" "ac_cv_have_decl_getusershell" "$ac_includes_default"
6737if test "x$ac_cv_have_decl_getusershell" = xyes; then :
6738  ac_have_decl=1
6739else
6740  ac_have_decl=0
6741fi
6742
6743cat >>confdefs.h <<_ACEOF
6744#define HAVE_DECL_GETUSERSHELL $ac_have_decl
6745_ACEOF
6746ac_fn_c_check_decl "$LINENO" "endusershell" "ac_cv_have_decl_endusershell" "$ac_includes_default"
6747if test "x$ac_cv_have_decl_endusershell" = xyes; then :
6748  ac_have_decl=1
6749else
6750  ac_have_decl=0
6751fi
6752
6753cat >>confdefs.h <<_ACEOF
6754#define HAVE_DECL_ENDUSERSHELL $ac_have_decl
6755_ACEOF
6756
6757
6758# checks for types
6759ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6760if test "x$ac_cv_type_mode_t" = xyes; then :
6761
6762else
6763
6764cat >>confdefs.h <<_ACEOF
6765#define mode_t int
6766_ACEOF
6767
6768fi
6769
6770ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6771if test "x$ac_cv_type_size_t" = xyes; then :
6772
6773else
6774
6775cat >>confdefs.h <<_ACEOF
6776#define size_t unsigned int
6777_ACEOF
6778
6779fi
6780
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6782$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6783if ${ac_cv_type_uid_t+:} false; then :
6784  $as_echo_n "(cached) " >&6
6785else
6786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788#include <sys/types.h>
6789
6790_ACEOF
6791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6792  $EGREP "uid_t" >/dev/null 2>&1; then :
6793  ac_cv_type_uid_t=yes
6794else
6795  ac_cv_type_uid_t=no
6796fi
6797rm -f conftest*
6798
6799fi
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6801$as_echo "$ac_cv_type_uid_t" >&6; }
6802if test $ac_cv_type_uid_t = no; then
6803
6804$as_echo "#define uid_t int" >>confdefs.h
6805
6806
6807$as_echo "#define gid_t int" >>confdefs.h
6808
6809fi
6810
6811ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6812if test "x$ac_cv_type_pid_t" = xyes; then :
6813
6814else
6815
6816cat >>confdefs.h <<_ACEOF
6817#define pid_t int
6818_ACEOF
6819
6820fi
6821
6822ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6823case $ac_cv_c_int32_t in #(
6824  no|yes) ;; #(
6825  *)
6826
6827cat >>confdefs.h <<_ACEOF
6828#define int32_t $ac_cv_c_int32_t
6829_ACEOF
6830;;
6831esac
6832
6833ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6834case $ac_cv_c_uint8_t in #(
6835  no|yes) ;; #(
6836  *)
6837
6838$as_echo "#define _UINT8_T 1" >>confdefs.h
6839
6840
6841cat >>confdefs.h <<_ACEOF
6842#define uint8_t $ac_cv_c_uint8_t
6843_ACEOF
6844;;
6845  esac
6846
6847ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6848case $ac_cv_c_uint16_t in #(
6849  no|yes) ;; #(
6850  *)
6851
6852
6853cat >>confdefs.h <<_ACEOF
6854#define uint16_t $ac_cv_c_uint16_t
6855_ACEOF
6856;;
6857  esac
6858
6859ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6860case $ac_cv_c_uint32_t in #(
6861  no|yes) ;; #(
6862  *)
6863
6864$as_echo "#define _UINT32_T 1" >>confdefs.h
6865
6866
6867cat >>confdefs.h <<_ACEOF
6868#define uint32_t $ac_cv_c_uint32_t
6869_ACEOF
6870;;
6871  esac
6872
6873# The cast to long int works around a bug in the HP C Compiler
6874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6876# This bug is HP SR number 8606223364.
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
6878$as_echo_n "checking size of unsigned int... " >&6; }
6879if ${ac_cv_sizeof_unsigned_int+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
6883
6884else
6885  if test "$ac_cv_type_unsigned_int" = yes; then
6886     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6888as_fn_error 77 "cannot compute sizeof (unsigned int)
6889See \`config.log' for more details" "$LINENO" 5; }
6890   else
6891     ac_cv_sizeof_unsigned_int=0
6892   fi
6893fi
6894
6895fi
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
6897$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
6898
6899
6900
6901cat >>confdefs.h <<_ACEOF
6902#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
6903_ACEOF
6904
6905
6906# The cast to long int works around a bug in the HP C Compiler
6907# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6908# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6909# This bug is HP SR number 8606223364.
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
6911$as_echo_n "checking size of unsigned long int... " >&6; }
6912if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
6916
6917else
6918  if test "$ac_cv_type_unsigned_long_int" = yes; then
6919     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6921as_fn_error 77 "cannot compute sizeof (unsigned long int)
6922See \`config.log' for more details" "$LINENO" 5; }
6923   else
6924     ac_cv_sizeof_unsigned_long_int=0
6925   fi
6926fi
6927
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
6930$as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
6931
6932
6933
6934cat >>confdefs.h <<_ACEOF
6935#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
6936_ACEOF
6937
6938
6939# The cast to long int works around a bug in the HP C Compiler
6940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6942# This bug is HP SR number 8606223364.
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
6944$as_echo_n "checking size of unsigned long long int... " >&6; }
6945if ${ac_cv_sizeof_unsigned_long_long_int+:} false; then :
6946  $as_echo_n "(cached) " >&6
6947else
6948  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 :
6949
6950else
6951  if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6952     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6954as_fn_error 77 "cannot compute sizeof (unsigned long long int)
6955See \`config.log' for more details" "$LINENO" 5; }
6956   else
6957     ac_cv_sizeof_unsigned_long_long_int=0
6958   fi
6959fi
6960
6961fi
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
6963$as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
6964
6965
6966
6967cat >>confdefs.h <<_ACEOF
6968#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
6969_ACEOF
6970
6971
6972# The cast to long int works around a bug in the HP C Compiler
6973# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6974# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6975# This bug is HP SR number 8606223364.
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
6977$as_echo_n "checking size of uid_t... " >&6; }
6978if ${ac_cv_sizeof_uid_t+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t"        "$ac_includes_default"; then :
6982
6983else
6984  if test "$ac_cv_type_uid_t" = yes; then
6985     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6987as_fn_error 77 "cannot compute sizeof (uid_t)
6988See \`config.log' for more details" "$LINENO" 5; }
6989   else
6990     ac_cv_sizeof_uid_t=0
6991   fi
6992fi
6993
6994fi
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
6996$as_echo "$ac_cv_sizeof_uid_t" >&6; }
6997
6998
6999
7000cat >>confdefs.h <<_ACEOF
7001#define SIZEOF_UID_T $ac_cv_sizeof_uid_t
7002_ACEOF
7003
7004
7005# The cast to long int works around a bug in the HP C Compiler
7006# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7007# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7008# This bug is HP SR number 8606223364.
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5
7010$as_echo_n "checking size of gid_t... " >&6; }
7011if ${ac_cv_sizeof_gid_t+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t"        "$ac_includes_default"; then :
7015
7016else
7017  if test "$ac_cv_type_gid_t" = yes; then
7018     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7020as_fn_error 77 "cannot compute sizeof (gid_t)
7021See \`config.log' for more details" "$LINENO" 5; }
7022   else
7023     ac_cv_sizeof_gid_t=0
7024   fi
7025fi
7026
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
7029$as_echo "$ac_cv_sizeof_gid_t" >&6; }
7030
7031
7032
7033cat >>confdefs.h <<_ACEOF
7034#define SIZEOF_GID_T $ac_cv_sizeof_gid_t
7035_ACEOF
7036
7037
7038
7039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
7040$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
7041  if ${ac_cv_tls+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  for ax_tls_keyword in __thread '__declspec(thread)' none; do
7045       case $ax_tls_keyword in #(
7046  none) :
7047    ac_cv_tls=none ; break ;; #(
7048  *) :
7049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051#include <stdlib.h>
7052               static void
7053               foo(void) {
7054               static  $ax_tls_keyword  int bar;
7055               exit(1);
7056               }
7057int
7058main ()
7059{
7060
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_compile "$LINENO"; then :
7066  ac_cv_tls=$ax_tls_keyword ; break
7067else
7068  ac_cv_tls=none
7069
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
7072esac
7073    done
7074
7075fi
7076
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
7078$as_echo "$ac_cv_tls" >&6; }
7079
7080  if test "$ac_cv_tls" != "none"; then :
7081
7082cat >>confdefs.h <<_ACEOF
7083#define TLS $ac_cv_tls
7084_ACEOF
7085
7086
7087fi
7088
7089ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "$ac_includes_default"
7090if test "x$ac_cv_type_suseconds_t" = xyes; then :
7091
7092cat >>confdefs.h <<_ACEOF
7093#define HAVE_SUSECONDS_T 1
7094_ACEOF
7095
7096
7097fi
7098
7099
7100# check for support for the struct ether_addr structure
7101ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
7102    #include <sys/types.h>
7103    #include <sys/socket.h>
7104    #include <net/if.h>
7105    #include <netinet/in.h>
7106    #include <netinet/if_ether.h>
7107    #ifdef HAVE_NETINET_ETHER_H
7108    #include <netinet/ether.h>
7109    #endif
7110"
7111if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
7112
7113cat >>confdefs.h <<_ACEOF
7114#define HAVE_STRUCT_ETHER_ADDR 1
7115_ACEOF
7116
7117
7118fi
7119
7120
7121# check for ether_aton and ether_ntoa functions
7122for ac_func in ether_aton ether_ntoa ether_aton_r ether_ntoa_r
7123do :
7124  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7125ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7126if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7127  cat >>confdefs.h <<_ACEOF
7128#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7129_ACEOF
7130
7131fi
7132done
7133
7134ac_fn_c_check_decl "$LINENO" "ether_aton" "ac_cv_have_decl_ether_aton" "
7135    #include <sys/types.h>
7136    #include <sys/socket.h>
7137    #include <net/if.h>
7138    #include <netinet/in.h>
7139    #include <netinet/if_ether.h>
7140    #ifdef HAVE_NETINET_ETHER_H
7141    #include <netinet/ether.h>
7142    #endif
7143"
7144if test "x$ac_cv_have_decl_ether_aton" = xyes; then :
7145  ac_have_decl=1
7146else
7147  ac_have_decl=0
7148fi
7149
7150cat >>confdefs.h <<_ACEOF
7151#define HAVE_DECL_ETHER_ATON $ac_have_decl
7152_ACEOF
7153ac_fn_c_check_decl "$LINENO" "ether_ntoa" "ac_cv_have_decl_ether_ntoa" "
7154    #include <sys/types.h>
7155    #include <sys/socket.h>
7156    #include <net/if.h>
7157    #include <netinet/in.h>
7158    #include <netinet/if_ether.h>
7159    #ifdef HAVE_NETINET_ETHER_H
7160    #include <netinet/ether.h>
7161    #endif
7162"
7163if test "x$ac_cv_have_decl_ether_ntoa" = xyes; then :
7164  ac_have_decl=1
7165else
7166  ac_have_decl=0
7167fi
7168
7169cat >>confdefs.h <<_ACEOF
7170#define HAVE_DECL_ETHER_NTOA $ac_have_decl
7171_ACEOF
7172
7173
7174# check to see if socklen_t is defined
7175ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
7176    #include <sys/types.h>
7177    #include <sys/socket.h>
7178"
7179if test "x$ac_cv_type_socklen_t" = xyes; then :
7180
7181else
7182
7183$as_echo "#define socklen_t size_t" >>confdefs.h
7184
7185fi
7186
7187
7188# check the return type of setnetgrent()
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of setnetgrent" >&5
7190$as_echo_n "checking return type of setnetgrent... " >&6; }
7191if ${nss_pam_ldapd_cv_setnetgrent_type+:} false; then :
7192  $as_echo_n "(cached) " >&6
7193else
7194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h.  */
7196
7197            #include <netdb.h>
7198
7199int
7200main ()
7201{
7202
7203            return setnetgrent(0);
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_c_try_compile "$LINENO"; then :
7210  nss_pam_ldapd_cv_setnetgrent_type=int
7211else
7212  nss_pam_ldapd_cv_setnetgrent_type=void
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215fi
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_setnetgrent_type" >&5
7217$as_echo "$nss_pam_ldapd_cv_setnetgrent_type" >&6; }
7218if test "x$nss_pam_ldapd_cv_setnetgrent_type" = "xvoid"
7219then
7220
7221$as_echo "#define SETNETGRENT_RETURNS_VOID 1" >>confdefs.h
7222
7223fi
7224
7225# NSS module-specific tests
7226if test "x$enable_nss" = "xyes"
7227then
7228  # save CFLAGS and LIBS to restore later
7229  nss_save_CFLAGS="$CFLAGS"
7230  nss_save_LIBS="$LIBS"
7231
7232  # check for a definition of struct aliasent
7233  ac_fn_c_check_type "$LINENO" "struct aliasent" "ac_cv_type_struct_aliasent" "
7234      #ifdef HAVE_ALIASES_H
7235      #include <aliases.h>
7236      #endif
7237"
7238if test "x$ac_cv_type_struct_aliasent" = xyes; then :
7239
7240cat >>confdefs.h <<_ACEOF
7241#define HAVE_STRUCT_ALIASENT 1
7242_ACEOF
7243
7244
7245fi
7246
7247
7248  # check for a definition of struct etherent
7249  ac_fn_c_check_type "$LINENO" "struct etherent" "ac_cv_type_struct_etherent" "
7250    #include <sys/socket.h>
7251    #include <net/if.h>
7252    #include <netinet/in.h>
7253    #include <netinet/if_ether.h>
7254    #ifdef HAVE_NETINET_ETHER_H
7255    #include <netinet/ether.h>
7256    #endif
7257"
7258if test "x$ac_cv_type_struct_etherent" = xyes; then :
7259
7260cat >>confdefs.h <<_ACEOF
7261#define HAVE_STRUCT_ETHERENT 1
7262_ACEOF
7263
7264
7265fi
7266
7267
7268  # check if struct passwd has a pw_class member
7269  ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
7270      #include <pwd.h>
7271"
7272if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
7273
7274cat >>confdefs.h <<_ACEOF
7275#define HAVE_STRUCT_PASSWD_PW_CLASS 1
7276_ACEOF
7277
7278
7279fi
7280
7281
7282  # check for a definition of struct rpcent
7283  ac_fn_c_check_type "$LINENO" "struct rpcent" "ac_cv_type_struct_rpcent" "
7284      #include <netdb.h>
7285      #ifdef HAVE_RPC_RPCENT_H
7286      #include <rpc/rpcent.h>
7287      #endif
7288"
7289if test "x$ac_cv_type_struct_rpcent" = xyes; then :
7290
7291cat >>confdefs.h <<_ACEOF
7292#define HAVE_STRUCT_RPCENT 1
7293_ACEOF
7294
7295
7296fi
7297
7298
7299  # check for a definition of struct spwd
7300  ac_fn_c_check_type "$LINENO" "struct spwd" "ac_cv_type_struct_spwd" "
7301      #ifdef HAVE_NSS_H
7302      #include <nss.h>
7303      #endif
7304      #ifdef HAVE_NSS_COMMON_H
7305      #include <nss_common.h>
7306      #endif
7307      #include <pwd.h>
7308      #ifdef HAVE_SHADOW_H
7309      #include <shadow.h>
7310      #endif
7311"
7312if test "x$ac_cv_type_struct_spwd" = xyes; then :
7313
7314cat >>confdefs.h <<_ACEOF
7315#define HAVE_STRUCT_SPWD 1
7316_ACEOF
7317
7318
7319fi
7320
7321
7322  # check for a definition of enum nss_status and nss_backend_t
7323  ac_fn_c_check_type "$LINENO" "enum nss_status" "ac_cv_type_enum_nss_status" "
7324      #ifdef HAVE_NSS_H
7325      #include <nss.h>
7326      #endif
7327      #ifdef HAVE_NSS_COMMON_H
7328      #include <nss_common.h>
7329      #endif
7330      #ifdef HAVE_NSS_DBDEFS_H
7331      #include <nss_dbdefs.h>
7332      #endif
7333      #ifdef HAVE_NSSWITCH_H
7334      #include <nsswitch.h>
7335      #endif
7336"
7337if test "x$ac_cv_type_enum_nss_status" = xyes; then :
7338
7339cat >>confdefs.h <<_ACEOF
7340#define HAVE_ENUM_NSS_STATUS 1
7341_ACEOF
7342
7343
7344fi
7345ac_fn_c_check_type "$LINENO" "nss_backend_t" "ac_cv_type_nss_backend_t" "
7346      #ifdef HAVE_NSS_H
7347      #include <nss.h>
7348      #endif
7349      #ifdef HAVE_NSS_COMMON_H
7350      #include <nss_common.h>
7351      #endif
7352      #ifdef HAVE_NSS_DBDEFS_H
7353      #include <nss_dbdefs.h>
7354      #endif
7355      #ifdef HAVE_NSSWITCH_H
7356      #include <nsswitch.h>
7357      #endif
7358"
7359if test "x$ac_cv_type_nss_backend_t" = xyes; then :
7360
7361cat >>confdefs.h <<_ACEOF
7362#define HAVE_NSS_BACKEND_T 1
7363_ACEOF
7364
7365
7366fi
7367
7368
7369  # check if struct nss_XbyY_args has a returnlen attribute
7370  ac_fn_c_check_member "$LINENO" "struct nss_XbyY_args" "returnlen" "ac_cv_member_struct_nss_XbyY_args_returnlen" "
7371      #ifdef HAVE_NSS_H
7372      #include <nss.h>
7373      #endif
7374      #ifdef HAVE_NSS_COMMON_H
7375      #include <nss_common.h>
7376      #endif
7377      #ifdef HAVE_NSS_DBDEFS_H
7378      #include <nss_dbdefs.h>
7379      #endif
7380      #ifdef HAVE_NSSWITCH_H
7381      #include <nsswitch.h>
7382      #endif
7383"
7384if test "x$ac_cv_member_struct_nss_XbyY_args_returnlen" = xyes; then :
7385
7386cat >>confdefs.h <<_ACEOF
7387#define HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN 1
7388_ACEOF
7389
7390
7391fi
7392
7393
7394  # check which NSS flavour to build
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which NSS flavour to build" >&5
7396$as_echo_n "checking which NSS flavour to build... " >&6; }
7397
7398# Check whether --with-nss-flavour was given.
7399if test "${with_nss_flavour+set}" = set; then :
7400  withval=$with_nss_flavour;
7401else
7402  with_nss_flavour=auto
7403fi
7404
7405  if test "x$with_nss_flavour" = "xauto"
7406  then
7407    # do the guessing game
7408    case "$target_os" in
7409      solaris*) with_nss_flavour=solaris ;;
7410      freebsd*|dragonfly*) with_nss_flavour=freebsd ;;
7411      *)        with_nss_flavour=glibc ;;
7412    esac
7413  fi
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_flavour" >&5
7415$as_echo "$with_nss_flavour" >&6; }
7416  case "$with_nss_flavour" in
7417    glibc)
7418$as_echo "#define NSS_FLAVOUR_GLIBC 1" >>confdefs.h
7419 ;;
7420    solaris)
7421$as_echo "#define NSS_FLAVOUR_SOLARIS 1" >>confdefs.h
7422 ;;
7423    freebsd)
7424$as_echo "#define NSS_FLAVOUR_FREEBSD 1" >>confdefs.h
7425 ;;
7426  esac
7427  NSS_FLAVOUR="$with_nss_flavour"
7428
7429
7430  # check which module source files to use
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which NSS maps to build" >&5
7432$as_echo_n "checking which NSS maps to build... " >&6; }
7433  if test "x$with_nss_maps" = "xall"
7434  then
7435    case "$with_nss_flavour" in
7436      glibc)   with_nss_maps="aliases,ethers,group,hosts,netgroup,networks,passwd,protocols,rpc,services,shadow" ;;
7437      solaris) with_nss_maps="ethers,group,hosts,netgroup,networks,passwd,protocols,rpc,services,shadow" ;;
7438      freebsd) with_nss_maps="group,hosts,passwd,netgroup" ;;
7439    esac
7440  fi
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_maps" >&5
7442$as_echo "$with_nss_maps" >&6; }
7443  NSS_MODULE_OBJS="$(echo "$with_nss_maps " | sed 's/,/ /g;s/  */.$(OBJEXT) /g')"
7444
7445
7446  # find out how to link the library
7447  nss_ldap_so_LINK="\$(CCLD) \$(AM_CFLAGS) \$(CFLAGS) \$(nss_ldap_so_LDFLAGS) \$(LDFLAGS) -o \$@"
7448  case "$target_os" in
7449  solaris*)
7450    if test "x$GCC" = xyes
7451    then
7452      nss_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M exports.map -G -o \$@"
7453    else
7454      nss_ldap_so_LDFLAGS="-Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,exports.map -Wl,-G"
7455    fi
7456    ;;
7457  *)
7458    nss_ldap_so_LDFLAGS="-shared -Wl,-h,\$(NSS_LDAP_SONAME) -Wl,--version-script,exports.map"
7459    ;;
7460  esac
7461
7462
7463
7464  # restore CFLAGS and LIBS
7465  CFLAGS="$nss_save_CFLAGS"
7466  LIBS="$nss_save_LIBS"
7467fi
7468
7469# PAM module-specific tests
7470if test "x$enable_pam" = "xyes"
7471then
7472  # save CFLAGS and LIBS to restore later
7473  pam_save_CFLAGS="$CFLAGS"
7474  pam_save_LIBS="$LIBS"
7475
7476  # check for headers
7477  for ac_header in security/pam_appl.h
7478do :
7479  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
7480if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
7481  cat >>confdefs.h <<_ACEOF
7482#define HAVE_SECURITY_PAM_APPL_H 1
7483_ACEOF
7484
7485fi
7486
7487done
7488
7489  for ac_header in security/pam_modules.h
7490do :
7491  ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "
7492      #ifdef HAVE_SECURITY_PAM_APPL_H
7493      #include <security/pam_appl.h>
7494      #endif
7495
7496"
7497if test "x$ac_cv_header_security_pam_modules_h" = xyes; then :
7498  cat >>confdefs.h <<_ACEOF
7499#define HAVE_SECURITY_PAM_MODULES_H 1
7500_ACEOF
7501
7502fi
7503
7504done
7505
7506  for ac_header in pam/pam_modules.h
7507do :
7508  ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "$ac_includes_default"
7509if test "x$ac_cv_header_pam_pam_modules_h" = xyes; then :
7510  cat >>confdefs.h <<_ACEOF
7511#define HAVE_PAM_PAM_MODULES_H 1
7512_ACEOF
7513
7514fi
7515
7516done
7517
7518  for ac_header in security/pam_ext.h
7519do :
7520  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_ext.h" "ac_cv_header_security_pam_ext_h" "$ac_includes_default"
7521if test "x$ac_cv_header_security_pam_ext_h" = xyes; then :
7522  cat >>confdefs.h <<_ACEOF
7523#define HAVE_SECURITY_PAM_EXT_H 1
7524_ACEOF
7525
7526fi
7527
7528done
7529
7530  for ac_header in security/pam_modutil.h
7531do :
7532  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_modutil.h" "ac_cv_header_security_pam_modutil_h" "$ac_includes_default"
7533if test "x$ac_cv_header_security_pam_modutil_h" = xyes; then :
7534  cat >>confdefs.h <<_ACEOF
7535#define HAVE_SECURITY_PAM_MODUTIL_H 1
7536_ACEOF
7537
7538fi
7539
7540done
7541
7542
7543  # at least one of security/pam_modules.h or pam/pam_modules.h is required
7544  if test "x$ac_cv_header_security_pam_modules_h" != "xyes" && \
7545     test "x$ac_cv_header_pam_pam_modules_h" != "xyes"
7546  then
7547    as_fn_error $? "PAM header files are missing" "$LINENO" 5
7548  fi
7549
7550  # find pam library
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_get_data" >&5
7552$as_echo_n "checking for library containing pam_get_data... " >&6; }
7553if ${ac_cv_search_pam_get_data+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  ac_func_search_save_LIBS=$LIBS
7557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h.  */
7559
7560/* Override any GCC internal prototype to avoid an error.
7561   Use char because int might match the return type of a GCC
7562   builtin and then its argument prototype would still apply.  */
7563#ifdef __cplusplus
7564extern "C"
7565#endif
7566char pam_get_data ();
7567int
7568main ()
7569{
7570return pam_get_data ();
7571  ;
7572  return 0;
7573}
7574_ACEOF
7575for ac_lib in '' pam; do
7576  if test -z "$ac_lib"; then
7577    ac_res="none required"
7578  else
7579    ac_res=-l$ac_lib
7580    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7581  fi
7582  if ac_fn_c_try_link "$LINENO"; then :
7583  ac_cv_search_pam_get_data=$ac_res
7584fi
7585rm -f core conftest.err conftest.$ac_objext \
7586    conftest$ac_exeext
7587  if ${ac_cv_search_pam_get_data+:} false; then :
7588  break
7589fi
7590done
7591if ${ac_cv_search_pam_get_data+:} false; then :
7592
7593else
7594  ac_cv_search_pam_get_data=no
7595fi
7596rm conftest.$ac_ext
7597LIBS=$ac_func_search_save_LIBS
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_get_data" >&5
7600$as_echo "$ac_cv_search_pam_get_data" >&6; }
7601ac_res=$ac_cv_search_pam_get_data
7602if test "$ac_res" != no; then :
7603  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7604
7605else
7606  as_fn_error $? "no PAM library available" "$LINENO" 5
7607fi
7608
7609
7610  # replace some PAM functions if they are unavailable
7611  ac_fn_c_check_func "$LINENO" "pam_get_authtok" "ac_cv_func_pam_get_authtok"
7612if test "x$ac_cv_func_pam_get_authtok" = xyes; then :
7613  $as_echo "#define HAVE_PAM_GET_AUTHTOK 1" >>confdefs.h
7614
7615else
7616  case " $LIBOBJS " in
7617  *" pam_get_authtok.$ac_objext "* ) ;;
7618  *) LIBOBJS="$LIBOBJS pam_get_authtok.$ac_objext"
7619 ;;
7620esac
7621
7622fi
7623
7624ac_fn_c_check_func "$LINENO" "pam_prompt" "ac_cv_func_pam_prompt"
7625if test "x$ac_cv_func_pam_prompt" = xyes; then :
7626  $as_echo "#define HAVE_PAM_PROMPT 1" >>confdefs.h
7627
7628else
7629  case " $LIBOBJS " in
7630  *" pam_prompt.$ac_objext "* ) ;;
7631  *) LIBOBJS="$LIBOBJS pam_prompt.$ac_objext"
7632 ;;
7633esac
7634
7635fi
7636
7637
7638  for ac_func in pam_modutil_getpwnam pam_syslog
7639do :
7640  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7641ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7642if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7643  cat >>confdefs.h <<_ACEOF
7644#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7645_ACEOF
7646
7647fi
7648done
7649
7650  ac_fn_c_check_decl "$LINENO" "pam_info" "ac_cv_have_decl_pam_info" "
7651     #ifdef HAVE_SECURITY_PAM_APPL_H
7652     #include <security/pam_appl.h>
7653     #endif
7654     #ifndef HAVE_PAM_PAM_MODULES_H
7655     #include <security/pam_modules.h>
7656     #ifdef HAVE_SECURITY_PAM_EXT_H
7657     #include <security/pam_ext.h>
7658     #endif
7659     #else
7660     #include <pam/pam_modules.h>
7661     #endif
7662     #ifdef HAVE_SECURITY_PAM_MODUTIL_H
7663     #include <security/pam_modutil.h>
7664     #endif
7665"
7666if test "x$ac_cv_have_decl_pam_info" = xyes; then :
7667  ac_have_decl=1
7668else
7669  ac_have_decl=0
7670fi
7671
7672cat >>confdefs.h <<_ACEOF
7673#define HAVE_DECL_PAM_INFO $ac_have_decl
7674_ACEOF
7675ac_fn_c_check_decl "$LINENO" "pam_error" "ac_cv_have_decl_pam_error" "
7676     #ifdef HAVE_SECURITY_PAM_APPL_H
7677     #include <security/pam_appl.h>
7678     #endif
7679     #ifndef HAVE_PAM_PAM_MODULES_H
7680     #include <security/pam_modules.h>
7681     #ifdef HAVE_SECURITY_PAM_EXT_H
7682     #include <security/pam_ext.h>
7683     #endif
7684     #else
7685     #include <pam/pam_modules.h>
7686     #endif
7687     #ifdef HAVE_SECURITY_PAM_MODUTIL_H
7688     #include <security/pam_modutil.h>
7689     #endif
7690"
7691if test "x$ac_cv_have_decl_pam_error" = xyes; then :
7692  ac_have_decl=1
7693else
7694  ac_have_decl=0
7695fi
7696
7697cat >>confdefs.h <<_ACEOF
7698#define HAVE_DECL_PAM_ERROR $ac_have_decl
7699_ACEOF
7700
7701
7702  # find out how to link the library
7703  pam_ldap_so_LINK="\$(CCLD) \$(AM_CFLAGS) \$(CFLAGS) \$(pam_ldap_so_LDFLAGS) \$(LDFLAGS) -o \$@"
7704  case "$target_os" in
7705  solaris*)
7706    if test "x$GCC" = xyes
7707    then
7708      pam_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M \$(srcdir)/pam_ldap.map -G -o \$@"
7709    else
7710      pam_ldap_so_LDFLAGS="-shared -Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,\$(srcdir)/pam_ldap.map -Wl,-G"
7711    fi
7712    ;;
7713  *)
7714    pam_ldap_so_LDFLAGS="-shared -Wl,--version-script,\$(srcdir)/pam_ldap.map"
7715    ;;
7716  esac
7717
7718
7719
7720  # check argument type of pam_get_item()
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument type of pam_get_item" >&5
7722$as_echo_n "checking argument type of pam_get_item... " >&6; }
7723if ${nss_pam_ldapd_cv_pam_get_item_arg3_type+:} false; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h.  */
7728
7729              #ifdef HAVE_SECURITY_PAM_APPL_H
7730              #include <security/pam_appl.h>
7731              #endif
7732              #ifndef HAVE_PAM_PAM_MODULES_H
7733              #include <security/pam_modules.h>
7734              #ifdef HAVE_SECURITY_PAM_EXT_H
7735              #include <security/pam_ext.h>
7736              #endif
7737              #else
7738              #include <pam/pam_modules.h>
7739              #endif
7740              #ifdef HAVE_SECURITY_PAM_MODUTIL_H
7741              #include <security/pam_modutil.h>
7742              #endif
7743              extern int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item);
7744
7745int
7746main ()
7747{
7748
7749  ;
7750  return 0;
7751}
7752_ACEOF
7753if ac_fn_c_try_compile "$LINENO"; then :
7754  nss_pam_ldapd_cv_pam_get_item_arg3_type="const void **"
7755else
7756  nss_pam_ldapd_cv_pam_get_item_arg3_type="void **"
7757fi
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_pam_get_item_arg3_type" >&5
7761$as_echo "$nss_pam_ldapd_cv_pam_get_item_arg3_type" >&6; }
7762  PAM_ITEM_CONST=""
7763  if test "$nss_pam_ldapd_cv_pam_get_item_arg3_type" = "const void **"
7764  then
7765    PAM_ITEM_CONST="const"
7766  fi
7767
7768cat >>confdefs.h <<_ACEOF
7769#define PAM_ITEM_CONST $PAM_ITEM_CONST
7770_ACEOF
7771
7772
7773  # restore CFLAGS and LIBS
7774  CFLAGS="$pam_save_CFLAGS"
7775  LIBS="$pam_save_LIBS"
7776fi
7777
7778# utils-specific tests
7779if test "x$enable_utils" = "xyes"
7780then
7781  # check Python interpreter
7782
7783
7784
7785
7786
7787
7788        if test -n "$PYTHON"; then
7789      # If the user set $PYTHON, use it and don't search something else.
7790      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
7791$as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
7792      prog="import sys
7793# split strings by '.' and convert to numeric.  Append some zeros
7794# because we need at least 4 digits for the hex conversion.
7795# map returns an iterator in Python 3.0 and a list in 2.x
7796minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
7797minverhex = 0
7798# xrange is not present in Python 3.0 and range returns an iterator
7799for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7800sys.exit(sys.hexversion < minverhex)"
7801  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7802   ($PYTHON -c "$prog") >&5 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; then :
7806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7807$as_echo "yes" >&6; }
7808else
7809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
7811			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
7812fi
7813      am_display_PYTHON=$PYTHON
7814    else
7815      # Otherwise, try each interpreter until we find one that satisfies
7816      # VERSION.
7817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
7818$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
7819if ${am_cv_pathless_PYTHON+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822
7823	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
7824	  test "$am_cv_pathless_PYTHON" = none && break
7825	  prog="import sys
7826# split strings by '.' and convert to numeric.  Append some zeros
7827# because we need at least 4 digits for the hex conversion.
7828# map returns an iterator in Python 3.0 and a list in 2.x
7829minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
7830minverhex = 0
7831# xrange is not present in Python 3.0 and range returns an iterator
7832for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7833sys.exit(sys.hexversion < minverhex)"
7834  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7835   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; then :
7839  break
7840fi
7841	done
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7844$as_echo "$am_cv_pathless_PYTHON" >&6; }
7845      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7846      if test "$am_cv_pathless_PYTHON" = none; then
7847	PYTHON=:
7848      else
7849        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7850set dummy $am_cv_pathless_PYTHON; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_path_PYTHON+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  case $PYTHON in
7857  [\\/]* | ?:[\\/]*)
7858  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7859  ;;
7860  *)
7861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864  IFS=$as_save_IFS
7865  test -z "$as_dir" && as_dir=.
7866    for ac_exec_ext in '' $ac_executable_extensions; do
7867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870    break 2
7871  fi
7872done
7873  done
7874IFS=$as_save_IFS
7875
7876  ;;
7877esac
7878fi
7879PYTHON=$ac_cv_path_PYTHON
7880if test -n "$PYTHON"; then
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7882$as_echo "$PYTHON" >&6; }
7883else
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888
7889      fi
7890      am_display_PYTHON=$am_cv_pathless_PYTHON
7891    fi
7892
7893
7894  if test "$PYTHON" = :; then
7895      as_fn_error $? "Python is required" "$LINENO" 5
7896  else
7897
7898
7899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7900$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7901if ${am_cv_python_version+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7907$as_echo "$am_cv_python_version" >&6; }
7908  PYTHON_VERSION=$am_cv_python_version
7909
7910
7911
7912  PYTHON_PREFIX='${prefix}'
7913
7914  PYTHON_EXEC_PREFIX='${exec_prefix}'
7915
7916
7917
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7919$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7920if ${am_cv_python_platform+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7926$as_echo "$am_cv_python_platform" >&6; }
7927  PYTHON_PLATFORM=$am_cv_python_platform
7928
7929
7930  # Just factor out some code duplication.
7931  am_python_setup_sysconfig="\
7932import sys
7933# Prefer sysconfig over distutils.sysconfig, for better compatibility
7934# with python 3.x.  See automake bug#10227.
7935try:
7936    import sysconfig
7937except ImportError:
7938    can_use_sysconfig = 0
7939else:
7940    can_use_sysconfig = 1
7941# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
7942# <https://github.com/pypa/virtualenv/issues/118>
7943try:
7944    from platform import python_implementation
7945    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
7946        can_use_sysconfig = 0
7947except ImportError:
7948    pass"
7949
7950
7951            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7952$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7953if ${am_cv_python_pythondir+:} false; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  if test "x$prefix" = xNONE
7957     then
7958       am_py_prefix=$ac_default_prefix
7959     else
7960       am_py_prefix=$prefix
7961     fi
7962     am_cv_python_pythondir=`$PYTHON -c "
7963$am_python_setup_sysconfig
7964if can_use_sysconfig:
7965    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
7966else:
7967    from distutils import sysconfig
7968    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
7969sys.stdout.write(sitedir)"`
7970     case $am_cv_python_pythondir in
7971     $am_py_prefix*)
7972       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7973       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7974       ;;
7975     *)
7976       case $am_py_prefix in
7977         /usr|/System*) ;;
7978         *)
7979	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7980	  ;;
7981       esac
7982       ;;
7983     esac
7984
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7987$as_echo "$am_cv_python_pythondir" >&6; }
7988  pythondir=$am_cv_python_pythondir
7989
7990
7991
7992  pkgpythondir=\${pythondir}/$PACKAGE
7993
7994
7995        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7996$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7997if ${am_cv_python_pyexecdir+:} false; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  if test "x$exec_prefix" = xNONE
8001     then
8002       am_py_exec_prefix=$am_py_prefix
8003     else
8004       am_py_exec_prefix=$exec_prefix
8005     fi
8006     am_cv_python_pyexecdir=`$PYTHON -c "
8007$am_python_setup_sysconfig
8008if can_use_sysconfig:
8009    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
8010else:
8011    from distutils import sysconfig
8012    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
8013sys.stdout.write(sitedir)"`
8014     case $am_cv_python_pyexecdir in
8015     $am_py_exec_prefix*)
8016       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
8017       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
8018       ;;
8019     *)
8020       case $am_py_exec_prefix in
8021         /usr|/System*) ;;
8022         *)
8023	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
8024	   ;;
8025       esac
8026       ;;
8027     esac
8028
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
8031$as_echo "$am_cv_python_pyexecdir" >&6; }
8032  pyexecdir=$am_cv_python_pyexecdir
8033
8034
8035
8036  pkgpyexecdir=\${pyexecdir}/$PACKAGE
8037
8038
8039
8040  fi
8041
8042
8043
8044    if test -z $PYTHON;
8045    then
8046        PYTHON="python"
8047    fi
8048    PYTHON_NAME=`basename $PYTHON`
8049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5
8050$as_echo_n "checking $PYTHON_NAME module: argparse... " >&6; }
8051	$PYTHON -c "import argparse" 2>/dev/null
8052	if test $? -eq 0;
8053	then
8054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8055$as_echo "yes" >&6; }
8056		eval HAVE_PYMOD_ARGPARSE=yes
8057	else
8058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
8060		eval HAVE_PYMOD_ARGPARSE=no
8061		#
8062		if test -n ""
8063		then
8064			as_fn_error $? "failed to find required module argparse" "$LINENO" 5
8065			exit 1
8066		fi
8067	fi
8068
8069  if test "x$HAVE_PYMOD_ARGPARSE" != "xyes"
8070  then
8071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5
8072$as_echo "$as_me: WARNING: Required Python modules missing" >&2;}
8073  fi
8074fi
8075
8076# nslcd daemon-specific tests
8077if test "x$enable_nslcd" = "xyes"
8078then
8079  # save CFLAGS and LIBS to restore later
8080  nslcd_save_CFLAGS="$CFLAGS"
8081  nslcd_save_LIBS="$LIBS"
8082
8083  # check header files
8084  for ac_header in lber.h
8085do :
8086  ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
8087if test "x$ac_cv_header_lber_h" = xyes; then :
8088  cat >>confdefs.h <<_ACEOF
8089#define HAVE_LBER_H 1
8090_ACEOF
8091
8092fi
8093
8094done
8095
8096  for ac_header in ldap.h
8097do :
8098  ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "
8099      #if HAVE_LBER_H
8100      #include <lber.h>
8101      #endif
8102
8103"
8104if test "x$ac_cv_header_ldap_h" = xyes; then :
8105  cat >>confdefs.h <<_ACEOF
8106#define HAVE_LDAP_H 1
8107_ACEOF
8108
8109else
8110  test "x$enable_nslcd" = "xyes" && as_fn_error $? "could not locate <ldap.h>" "$LINENO" 5
8111fi
8112
8113done
8114
8115  for ac_header in ldap_ssl.h
8116do :
8117  ac_fn_c_check_header_mongrel "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default"
8118if test "x$ac_cv_header_ldap_ssl_h" = xyes; then :
8119  cat >>confdefs.h <<_ACEOF
8120#define HAVE_LDAP_SSL_H 1
8121_ACEOF
8122
8123fi
8124
8125done
8126
8127  for ac_header in gssldap.h
8128do :
8129  ac_fn_c_check_header_mongrel "$LINENO" "gssldap.h" "ac_cv_header_gssldap_h" "$ac_includes_default"
8130if test "x$ac_cv_header_gssldap_h" = xyes; then :
8131  cat >>confdefs.h <<_ACEOF
8132#define HAVE_GSSLDAP_H 1
8133_ACEOF
8134
8135fi
8136
8137done
8138
8139  if test "x$enable_sasl" = "xyes"
8140  then
8141    for ac_header in sasl.h sasl/sasl.h
8142do :
8143  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8145if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8146  cat >>confdefs.h <<_ACEOF
8147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8148_ACEOF
8149
8150fi
8151
8152done
8153
8154    for ac_header in gsssasl.h
8155do :
8156  ac_fn_c_check_header_mongrel "$LINENO" "gsssasl.h" "ac_cv_header_gsssasl_h" "$ac_includes_default"
8157if test "x$ac_cv_header_gsssasl_h" = xyes; then :
8158  cat >>confdefs.h <<_ACEOF
8159#define HAVE_GSSSASL_H 1
8160_ACEOF
8161
8162fi
8163
8164done
8165
8166  fi
8167  if test "x$enable_kerberos" = "xyes"
8168  then
8169    for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h gssapi.h krb5.h
8170do :
8171  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8172ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8174  cat >>confdefs.h <<_ACEOF
8175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8176_ACEOF
8177
8178fi
8179
8180done
8181
8182  fi
8183  for ac_header in regex.h
8184do :
8185  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
8186if test "x$ac_cv_header_regex_h" = xyes; then :
8187  cat >>confdefs.h <<_ACEOF
8188#define HAVE_REGEX_H 1
8189_ACEOF
8190
8191fi
8192
8193done
8194
8195
8196  # checks for availability of system libraries for nslcd
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8198$as_echo_n "checking for library containing gethostbyname... " >&6; }
8199if ${ac_cv_search_gethostbyname+:} false; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  ac_func_search_save_LIBS=$LIBS
8203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h.  */
8205
8206/* Override any GCC internal prototype to avoid an error.
8207   Use char because int might match the return type of a GCC
8208   builtin and then its argument prototype would still apply.  */
8209#ifdef __cplusplus
8210extern "C"
8211#endif
8212char gethostbyname ();
8213int
8214main ()
8215{
8216return gethostbyname ();
8217  ;
8218  return 0;
8219}
8220_ACEOF
8221for ac_lib in '' nsl socket; do
8222  if test -z "$ac_lib"; then
8223    ac_res="none required"
8224  else
8225    ac_res=-l$ac_lib
8226    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8227  fi
8228  if ac_fn_c_try_link "$LINENO"; then :
8229  ac_cv_search_gethostbyname=$ac_res
8230fi
8231rm -f core conftest.err conftest.$ac_objext \
8232    conftest$ac_exeext
8233  if ${ac_cv_search_gethostbyname+:} false; then :
8234  break
8235fi
8236done
8237if ${ac_cv_search_gethostbyname+:} false; then :
8238
8239else
8240  ac_cv_search_gethostbyname=no
8241fi
8242rm conftest.$ac_ext
8243LIBS=$ac_func_search_save_LIBS
8244fi
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8246$as_echo "$ac_cv_search_gethostbyname" >&6; }
8247ac_res=$ac_cv_search_gethostbyname
8248if test "$ac_res" != no; then :
8249  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8250
8251fi
8252
8253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8254$as_echo_n "checking for library containing hstrerror... " >&6; }
8255if ${ac_cv_search_hstrerror+:} false; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  ac_func_search_save_LIBS=$LIBS
8259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261
8262/* Override any GCC internal prototype to avoid an error.
8263   Use char because int might match the return type of a GCC
8264   builtin and then its argument prototype would still apply.  */
8265#ifdef __cplusplus
8266extern "C"
8267#endif
8268char hstrerror ();
8269int
8270main ()
8271{
8272return hstrerror ();
8273  ;
8274  return 0;
8275}
8276_ACEOF
8277for ac_lib in '' resolv; do
8278  if test -z "$ac_lib"; then
8279    ac_res="none required"
8280  else
8281    ac_res=-l$ac_lib
8282    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8283  fi
8284  if ac_fn_c_try_link "$LINENO"; then :
8285  ac_cv_search_hstrerror=$ac_res
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext
8289  if ${ac_cv_search_hstrerror+:} false; then :
8290  break
8291fi
8292done
8293if ${ac_cv_search_hstrerror+:} false; then :
8294
8295else
8296  ac_cv_search_hstrerror=no
8297fi
8298rm conftest.$ac_ext
8299LIBS=$ac_func_search_save_LIBS
8300fi
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8302$as_echo "$ac_cv_search_hstrerror" >&6; }
8303ac_res=$ac_cv_search_hstrerror
8304if test "$ac_res" != no; then :
8305  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8306
8307fi
8308
8309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8310$as_echo_n "checking for library containing dlopen... " >&6; }
8311if ${ac_cv_search_dlopen+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  ac_func_search_save_LIBS=$LIBS
8315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316/* end confdefs.h.  */
8317
8318/* Override any GCC internal prototype to avoid an error.
8319   Use char because int might match the return type of a GCC
8320   builtin and then its argument prototype would still apply.  */
8321#ifdef __cplusplus
8322extern "C"
8323#endif
8324char dlopen ();
8325int
8326main ()
8327{
8328return dlopen ();
8329  ;
8330  return 0;
8331}
8332_ACEOF
8333for ac_lib in '' dl; do
8334  if test -z "$ac_lib"; then
8335    ac_res="none required"
8336  else
8337    ac_res=-l$ac_lib
8338    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8339  fi
8340  if ac_fn_c_try_link "$LINENO"; then :
8341  ac_cv_search_dlopen=$ac_res
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344    conftest$ac_exeext
8345  if ${ac_cv_search_dlopen+:} false; then :
8346  break
8347fi
8348done
8349if ${ac_cv_search_dlopen+:} false; then :
8350
8351else
8352  ac_cv_search_dlopen=no
8353fi
8354rm conftest.$ac_ext
8355LIBS=$ac_func_search_save_LIBS
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8358$as_echo "$ac_cv_search_dlopen" >&6; }
8359ac_res=$ac_cv_search_dlopen
8360if test "$ac_res" != no; then :
8361  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8362
8363fi
8364
8365
8366  # check for availability of functions
8367  for ac_func in initgroups setgroups execvp execvpe
8368do :
8369  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8371if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8372  cat >>confdefs.h <<_ACEOF
8373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8374_ACEOF
8375
8376fi
8377done
8378
8379  for ac_func in getpeereid
8380do :
8381  ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
8382if test "x$ac_cv_func_getpeereid" = xyes; then :
8383  cat >>confdefs.h <<_ACEOF
8384#define HAVE_GETPEEREID 1
8385_ACEOF
8386
8387fi
8388done
8389
8390  for ac_func in getpeerucred
8391do :
8392  ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
8393if test "x$ac_cv_func_getpeerucred" = xyes; then :
8394  cat >>confdefs.h <<_ACEOF
8395#define HAVE_GETPEERUCRED 1
8396_ACEOF
8397
8398fi
8399done
8400
8401  for ac_func in __nss_configure_lookup
8402do :
8403  ac_fn_c_check_func "$LINENO" "__nss_configure_lookup" "ac_cv_func___nss_configure_lookup"
8404if test "x$ac_cv_func___nss_configure_lookup" = xyes; then :
8405  cat >>confdefs.h <<_ACEOF
8406#define HAVE___NSS_CONFIGURE_LOOKUP 1
8407_ACEOF
8408
8409fi
8410done
8411
8412  for ac_func in getenv putenv clearenv
8413do :
8414  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8417  cat >>confdefs.h <<_ACEOF
8418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8419_ACEOF
8420
8421fi
8422done
8423
8424  for ac_func in dlopen dlsym dlerror
8425do :
8426  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8427ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8428if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8429  cat >>confdefs.h <<_ACEOF
8430#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8431_ACEOF
8432
8433fi
8434done
8435
8436  for ac_func in regcomp regexec regerror
8437do :
8438  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8439ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8440if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8441  cat >>confdefs.h <<_ACEOF
8442#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8443_ACEOF
8444
8445fi
8446done
8447
8448  for ac_func in hstrerror
8449do :
8450  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
8451if test "x$ac_cv_func_hstrerror" = xyes; then :
8452  cat >>confdefs.h <<_ACEOF
8453#define HAVE_HSTRERROR 1
8454_ACEOF
8455
8456fi
8457done
8458
8459
8460  # replace some functions if they are not on the system
8461  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
8462if test "x$ac_cv_func_getopt_long" = xyes; then :
8463  $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
8464
8465else
8466  case " $LIBOBJS " in
8467  *" getopt_long.$ac_objext "* ) ;;
8468  *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
8469 ;;
8470esac
8471
8472fi
8473
8474
8475  ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
8476if test "x$ac_cv_func_strndup" = xyes; then :
8477  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
8478
8479else
8480  case " $LIBOBJS " in
8481  *" strndup.$ac_objext "* ) ;;
8482  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
8483 ;;
8484esac
8485
8486fi
8487
8488
8489
8490  # replace ether_aton_r() if not found
8491  for ac_func in ether_aton_r
8492do :
8493  ac_fn_c_check_func "$LINENO" "ether_aton_r" "ac_cv_func_ether_aton_r"
8494if test "x$ac_cv_func_ether_aton_r" = xyes; then :
8495  cat >>confdefs.h <<_ACEOF
8496#define HAVE_ETHER_ATON_R 1
8497_ACEOF
8498
8499else
8500  case " $LIBOBJS " in
8501  *" ether.$ac_objext "* ) ;;
8502  *) LIBOBJS="$LIBOBJS ether.$ac_objext"
8503 ;;
8504esac
8505
8506fi
8507done
8508
8509
8510  # check to see if struct sockaddr_storage is defined
8511  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
8512      #include <sys/types.h>
8513      #include <sys/socket.h>
8514"
8515if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
8516
8517else
8518
8519$as_echo "#define sockaddr_storage sockaddr_in" >>confdefs.h
8520
8521fi
8522
8523
8524  # check for support for the struct ucred structure
8525  ac_fn_c_check_type "$LINENO" "struct ucred" "ac_cv_type_struct_ucred" "
8526      #include <sys/socket.h>
8527      #include <sys/un.h>
8528      #include <sys/types.h>
8529"
8530if test "x$ac_cv_type_struct_ucred" = xyes; then :
8531
8532$as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
8533
8534fi
8535
8536
8537  # check threading stuff
8538
8539
8540ac_ext=c
8541ac_cpp='$CPP $CPPFLAGS'
8542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8544ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545
8546ax_pthread_ok=no
8547
8548# We used to check for pthread.h first, but this fails if pthread.h
8549# requires special compiler flags (e.g. on True64 or Sequent).
8550# It gets checked for in the link test anyway.
8551
8552# First of all, check if the user has set any of the PTHREAD_LIBS,
8553# etcetera environment variables, and if threads linking works using
8554# them:
8555if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8556        save_CFLAGS="$CFLAGS"
8557        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8558        save_LIBS="$LIBS"
8559        LIBS="$PTHREAD_LIBS $LIBS"
8560        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8561$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8562        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566   Use char because int might match the return type of a GCC
8567   builtin and then its argument prototype would still apply.  */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char pthread_join ();
8572int
8573main ()
8574{
8575return pthread_join ();
8576  ;
8577  return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_link "$LINENO"; then :
8581  ax_pthread_ok=yes
8582fi
8583rm -f core conftest.err conftest.$ac_objext \
8584    conftest$ac_exeext conftest.$ac_ext
8585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8586$as_echo "$ax_pthread_ok" >&6; }
8587        if test x"$ax_pthread_ok" = xno; then
8588                PTHREAD_LIBS=""
8589                PTHREAD_CFLAGS=""
8590        fi
8591        LIBS="$save_LIBS"
8592        CFLAGS="$save_CFLAGS"
8593fi
8594
8595# We must check for the threads library under a number of different
8596# names; the ordering is very important because some systems
8597# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8598# libraries is broken (non-POSIX).
8599
8600# Create a list of thread flags to try.  Items starting with a "-" are
8601# C compiler flags, and other items are library names, except for "none"
8602# which indicates that we try without any flags at all, and "pthread-config"
8603# which is a program returning the flags for the Pth emulation library.
8604
8605ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8606
8607# The ordering *is* (sometimes) important.  Some notes on the
8608# individual items follow:
8609
8610# pthreads: AIX (must check this before -lpthread)
8611# none: in case threads are in libc; should be tried before -Kthread and
8612#       other compiler flags to prevent continual compiler warnings
8613# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8614# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8615# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8616# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8617# -pthreads: Solaris/gcc
8618# -mthreads: Mingw32/gcc, Lynx/gcc
8619# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8620#      doesn't hurt to check since this sometimes defines pthreads too;
8621#      also defines -D_REENTRANT)
8622#      ... -mt is also the pthreads flag for HP/aCC
8623# pthread: Linux, etcetera
8624# --thread-safe: KAI C++
8625# pthread-config: use pthread-config program (for GNU Pth library)
8626
8627case ${host_os} in
8628        solaris*)
8629
8630        # On Solaris (at least, for some versions), libc contains stubbed
8631        # (non-functional) versions of the pthreads routines, so link-based
8632        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8633        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8634        # a function called by this macro, so we could check for that, but
8635        # who knows whether they'll stub that too in a future libc.)  So,
8636        # we'll just look for -pthreads and -lpthread first:
8637
8638        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8639        ;;
8640
8641        darwin*)
8642        ax_pthread_flags="-pthread $ax_pthread_flags"
8643        ;;
8644esac
8645
8646# Clang doesn't consider unrecognized options an error unless we specify
8647# -Werror. We throw in some extra Clang-specific options to ensure that
8648# this doesn't happen for GCC, which also accepts -Werror.
8649
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
8651$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
8652save_CFLAGS="$CFLAGS"
8653ax_pthread_extra_flags="-Werror"
8654CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
8655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int foo(void);
8658int
8659main ()
8660{
8661foo()
8662  ;
8663  return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_compile "$LINENO"; then :
8667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8668$as_echo "yes" >&6; }
8669else
8670  ax_pthread_extra_flags=
8671                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672$as_echo "no" >&6; }
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675CFLAGS="$save_CFLAGS"
8676
8677if test x"$ax_pthread_ok" = xno; then
8678for flag in $ax_pthread_flags; do
8679
8680        case $flag in
8681                none)
8682                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8683$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8684                ;;
8685
8686                -*)
8687                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8688$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8689                PTHREAD_CFLAGS="$flag"
8690                ;;
8691
8692                pthread-config)
8693                # Extract the first word of "pthread-config", so it can be a program name with args.
8694set dummy pthread-config; ac_word=$2
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if ${ac_cv_prog_ax_pthread_config+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  if test -n "$ax_pthread_config"; then
8701  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8702else
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706  IFS=$as_save_IFS
8707  test -z "$as_dir" && as_dir=.
8708    for ac_exec_ext in '' $ac_executable_extensions; do
8709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710    ac_cv_prog_ax_pthread_config="yes"
8711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712    break 2
8713  fi
8714done
8715  done
8716IFS=$as_save_IFS
8717
8718  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8719fi
8720fi
8721ax_pthread_config=$ac_cv_prog_ax_pthread_config
8722if test -n "$ax_pthread_config"; then
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8724$as_echo "$ax_pthread_config" >&6; }
8725else
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730
8731                if test x"$ax_pthread_config" = xno; then continue; fi
8732                PTHREAD_CFLAGS="`pthread-config --cflags`"
8733                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8734                ;;
8735
8736                *)
8737                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8738$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8739                PTHREAD_LIBS="-l$flag"
8740                ;;
8741        esac
8742
8743        save_LIBS="$LIBS"
8744        save_CFLAGS="$CFLAGS"
8745        LIBS="$PTHREAD_LIBS $LIBS"
8746        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8747
8748        # Check for various functions.  We must include pthread.h,
8749        # since some functions may be macros.  (On the Sequent, we
8750        # need a special flag -Kthread to make this header compile.)
8751        # We check for pthread_join because it is in -lpthread on IRIX
8752        # while pthread_create is in libc.  We check for pthread_attr_init
8753        # due to DEC craziness with -lpthreads.  We check for
8754        # pthread_cleanup_push because it is one of the few pthread
8755        # functions on Solaris that doesn't have a non-functional libc stub.
8756        # We try pthread_create on general principles.
8757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h.  */
8759#include <pthread.h>
8760                        static void routine(void *a) { a = 0; }
8761                        static void *start_routine(void *a) { return a; }
8762int
8763main ()
8764{
8765pthread_t th; pthread_attr_t attr;
8766                        pthread_create(&th, 0, start_routine, 0);
8767                        pthread_join(th, 0);
8768                        pthread_attr_init(&attr);
8769                        pthread_cleanup_push(routine, 0);
8770                        pthread_cleanup_pop(0) /* ; */
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"; then :
8776  ax_pthread_ok=yes
8777fi
8778rm -f core conftest.err conftest.$ac_objext \
8779    conftest$ac_exeext conftest.$ac_ext
8780
8781        LIBS="$save_LIBS"
8782        CFLAGS="$save_CFLAGS"
8783
8784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8785$as_echo "$ax_pthread_ok" >&6; }
8786        if test "x$ax_pthread_ok" = xyes; then
8787                break;
8788        fi
8789
8790        PTHREAD_LIBS=""
8791        PTHREAD_CFLAGS=""
8792done
8793fi
8794
8795# Various other checks:
8796if test "x$ax_pthread_ok" = xyes; then
8797        save_LIBS="$LIBS"
8798        LIBS="$PTHREAD_LIBS $LIBS"
8799        save_CFLAGS="$CFLAGS"
8800        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8801
8802        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8803        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8804$as_echo_n "checking for joinable pthread attribute... " >&6; }
8805        attr_name=unknown
8806        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8807            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h.  */
8809#include <pthread.h>
8810int
8811main ()
8812{
8813int attr = $attr; return attr /* ; */
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818if ac_fn_c_try_link "$LINENO"; then :
8819  attr_name=$attr; break
8820fi
8821rm -f core conftest.err conftest.$ac_objext \
8822    conftest$ac_exeext conftest.$ac_ext
8823        done
8824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8825$as_echo "$attr_name" >&6; }
8826        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8827
8828cat >>confdefs.h <<_ACEOF
8829#define PTHREAD_CREATE_JOINABLE $attr_name
8830_ACEOF
8831
8832        fi
8833
8834        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8835$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8836        flag=no
8837        case ${host_os} in
8838            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
8839            osf* | hpux*) flag="-D_REENTRANT";;
8840            solaris*)
8841            if test "$GCC" = "yes"; then
8842                flag="-D_REENTRANT"
8843            else
8844                # TODO: What about Clang on Solaris?
8845                flag="-mt -D_REENTRANT"
8846            fi
8847            ;;
8848        esac
8849        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
8850$as_echo "$flag" >&6; }
8851        if test "x$flag" != xno; then
8852            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8853        fi
8854
8855        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8856$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8857if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860
8861                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863#include <pthread.h>
8864int
8865main ()
8866{
8867int i = PTHREAD_PRIO_INHERIT;
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873  ax_cv_PTHREAD_PRIO_INHERIT=yes
8874else
8875  ax_cv_PTHREAD_PRIO_INHERIT=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878    conftest$ac_exeext conftest.$ac_ext
8879
8880fi
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8882$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8883        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8884
8885$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8886
8887fi
8888
8889        LIBS="$save_LIBS"
8890        CFLAGS="$save_CFLAGS"
8891
8892        # More AIX lossage: compile with *_r variant
8893        if test "x$GCC" != xyes; then
8894            case $host_os in
8895                aix*)
8896                case "x/$CC" in #(
8897  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8898    #handle absolute path differently from PATH based program lookup
8899                   case "x$CC" in #(
8900  x/*) :
8901    if as_fn_executable_p ${CC}_r; then :
8902  PTHREAD_CC="${CC}_r"
8903fi ;; #(
8904  *) :
8905    for ac_prog in ${CC}_r
8906do
8907  # Extract the first word of "$ac_prog", so it can be a program name with args.
8908set dummy $ac_prog; ac_word=$2
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910$as_echo_n "checking for $ac_word... " >&6; }
8911if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  if test -n "$PTHREAD_CC"; then
8915  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8916else
8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918for as_dir in $PATH
8919do
8920  IFS=$as_save_IFS
8921  test -z "$as_dir" && as_dir=.
8922    for ac_exec_ext in '' $ac_executable_extensions; do
8923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924    ac_cv_prog_PTHREAD_CC="$ac_prog"
8925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926    break 2
8927  fi
8928done
8929  done
8930IFS=$as_save_IFS
8931
8932fi
8933fi
8934PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8935if test -n "$PTHREAD_CC"; then
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8937$as_echo "$PTHREAD_CC" >&6; }
8938else
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
8941fi
8942
8943
8944  test -n "$PTHREAD_CC" && break
8945done
8946test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8947 ;;
8948esac ;; #(
8949  *) :
8950     ;;
8951esac
8952                ;;
8953            esac
8954        fi
8955fi
8956
8957test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8958
8959
8960
8961
8962
8963# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8964if test x"$ax_pthread_ok" = xyes; then
8965
8966$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8967
8968        :
8969else
8970        ax_pthread_ok=no
8971        as_fn_error $? "no support for pthreads" "$LINENO" 5
8972fi
8973ac_ext=c
8974ac_cpp='$CPP $CPPFLAGS'
8975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978
8979
8980  pthread_save_CFLAGS="$CFLAGS"
8981  pthread_save_LIBS="$LIBS"
8982  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8983  LIBS="$LIBS $PTHREAD_LIBS"
8984  for ac_func in pthread_mutex_lock pthread_join pthread_timedjoin_np pthread_atfork
8985do :
8986  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8987ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8988if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8989  cat >>confdefs.h <<_ACEOF
8990#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8991_ACEOF
8992
8993fi
8994done
8995
8996  CFLAGS="$pthread_save_CFLAGS"
8997  LIBS="$pthread_save_LIBS"
8998
8999  # also use deprecated LDAP functions
9000
9001$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
9002
9003  # for compatibility on Solaris
9004
9005$as_echo "#define LDAP_REFERRALS 1" >>confdefs.h
9006
9007
9008  # search for an LDAP library (only OpenLDAP is tested)
9009
9010# Check whether --with-ldap-lib was given.
9011if test "${with_ldap_lib+set}" = set; then :
9012  withval=$with_ldap_lib;
9013fi
9014
9015  if test -z "$with_ldap_lib"
9016  then
9017    with_ldap_lib=auto
9018  fi
9019  if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = umich -o $with_ldap_lib = openldap \)
9020  then
9021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_search_ext" >&5
9022$as_echo_n "checking for library containing ldap_search_ext... " >&6; }
9023if ${ac_cv_search_ldap_search_ext+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  ac_func_search_save_LIBS=$LIBS
9027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029
9030/* Override any GCC internal prototype to avoid an error.
9031   Use char because int might match the return type of a GCC
9032   builtin and then its argument prototype would still apply.  */
9033#ifdef __cplusplus
9034extern "C"
9035#endif
9036char ldap_search_ext ();
9037int
9038main ()
9039{
9040return ldap_search_ext ();
9041  ;
9042  return 0;
9043}
9044_ACEOF
9045for ac_lib in '' ldap_r ldap; do
9046  if test -z "$ac_lib"; then
9047    ac_res="none required"
9048  else
9049    ac_res=-l$ac_lib
9050    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9051  fi
9052  if ac_fn_c_try_link "$LINENO"; then :
9053  ac_cv_search_ldap_search_ext=$ac_res
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056    conftest$ac_exeext
9057  if ${ac_cv_search_ldap_search_ext+:} false; then :
9058  break
9059fi
9060done
9061if ${ac_cv_search_ldap_search_ext+:} false; then :
9062
9063else
9064  ac_cv_search_ldap_search_ext=no
9065fi
9066rm conftest.$ac_ext
9067LIBS=$ac_func_search_save_LIBS
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_search_ext" >&5
9070$as_echo "$ac_cv_search_ldap_search_ext" >&6; }
9071ac_res=$ac_cv_search_ldap_search_ext
9072if test "$ac_res" != no; then :
9073  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9074  found_ldap_lib=yes
9075fi
9076
9077  fi
9078  if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \)
9079  then
9080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap50" >&5
9081$as_echo_n "checking for main in -lldap50... " >&6; }
9082if ${ac_cv_lib_ldap50_main+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  ac_check_lib_save_LIBS=$LIBS
9086LIBS="-lldap50 -lpthread $LIBS"
9087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089
9090
9091int
9092main ()
9093{
9094return main ();
9095  ;
9096  return 0;
9097}
9098_ACEOF
9099if ac_fn_c_try_link "$LINENO"; then :
9100  ac_cv_lib_ldap50_main=yes
9101else
9102  ac_cv_lib_ldap50_main=no
9103fi
9104rm -f core conftest.err conftest.$ac_objext \
9105    conftest$ac_exeext conftest.$ac_ext
9106LIBS=$ac_check_lib_save_LIBS
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap50_main" >&5
9109$as_echo "$ac_cv_lib_ldap50_main" >&6; }
9110if test "x$ac_cv_lib_ldap50_main" = xyes; then :
9111  LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4 $LIBS" found_ldap_lib=yes
9112fi
9113
9114  fi
9115  if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape4 \)
9116  then
9117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl41" >&5
9118$as_echo_n "checking for main in -lldapssl41... " >&6; }
9119if ${ac_cv_lib_ldapssl41_main+:} false; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  ac_check_lib_save_LIBS=$LIBS
9123LIBS="-lldapssl41 -lpthread $LIBS"
9124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126
9127
9128int
9129main ()
9130{
9131return main ();
9132  ;
9133  return 0;
9134}
9135_ACEOF
9136if ac_fn_c_try_link "$LINENO"; then :
9137  ac_cv_lib_ldapssl41_main=yes
9138else
9139  ac_cv_lib_ldapssl41_main=no
9140fi
9141rm -f core conftest.err conftest.$ac_objext \
9142    conftest$ac_exeext conftest.$ac_ext
9143LIBS=$ac_check_lib_save_LIBS
9144fi
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl41_main" >&5
9146$as_echo "$ac_cv_lib_ldapssl41_main" >&6; }
9147if test "x$ac_cv_lib_ldapssl41_main" = xyes; then :
9148  LIBS="-lldapssl41 -lplc3 -lplds3 -lnspr3 $LIBS" found_ldap_lib=yes
9149fi
9150
9151    if test -z "$found_ldap_lib"
9152    then
9153      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl40" >&5
9154$as_echo_n "checking for main in -lldapssl40... " >&6; }
9155if ${ac_cv_lib_ldapssl40_main+:} false; then :
9156  $as_echo_n "(cached) " >&6
9157else
9158  ac_check_lib_save_LIBS=$LIBS
9159LIBS="-lldapssl40 -lpthread $LIBS"
9160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162
9163
9164int
9165main ()
9166{
9167return main ();
9168  ;
9169  return 0;
9170}
9171_ACEOF
9172if ac_fn_c_try_link "$LINENO"; then :
9173  ac_cv_lib_ldapssl40_main=yes
9174else
9175  ac_cv_lib_ldapssl40_main=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext \
9178    conftest$ac_exeext conftest.$ac_ext
9179LIBS=$ac_check_lib_save_LIBS
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl40_main" >&5
9182$as_echo "$ac_cv_lib_ldapssl40_main" >&6; }
9183if test "x$ac_cv_lib_ldapssl40_main" = xyes; then :
9184  LIBS="-lldapssl40 $LIBS" found_ldap_lib=yes
9185fi
9186
9187    fi
9188    if test -z "$found_ldap_lib"
9189    then
9190      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap41" >&5
9191$as_echo_n "checking for main in -lldap41... " >&6; }
9192if ${ac_cv_lib_ldap41_main+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195  ac_check_lib_save_LIBS=$LIBS
9196LIBS="-lldap41  $LIBS"
9197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h.  */
9199
9200
9201int
9202main ()
9203{
9204return main ();
9205  ;
9206  return 0;
9207}
9208_ACEOF
9209if ac_fn_c_try_link "$LINENO"; then :
9210  ac_cv_lib_ldap41_main=yes
9211else
9212  ac_cv_lib_ldap41_main=no
9213fi
9214rm -f core conftest.err conftest.$ac_objext \
9215    conftest$ac_exeext conftest.$ac_ext
9216LIBS=$ac_check_lib_save_LIBS
9217fi
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap41_main" >&5
9219$as_echo "$ac_cv_lib_ldap41_main" >&6; }
9220if test "x$ac_cv_lib_ldap41_main" = xyes; then :
9221  LIBS="-lldap41 $LIBS" found_ldap_lib=yes
9222fi
9223
9224    fi
9225    if test -z "$found_ldap_lib"
9226    then
9227      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap40" >&5
9228$as_echo_n "checking for main in -lldap40... " >&6; }
9229if ${ac_cv_lib_ldap40_main+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  ac_check_lib_save_LIBS=$LIBS
9233LIBS="-lldap40  $LIBS"
9234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h.  */
9236
9237
9238int
9239main ()
9240{
9241return main ();
9242  ;
9243  return 0;
9244}
9245_ACEOF
9246if ac_fn_c_try_link "$LINENO"; then :
9247  ac_cv_lib_ldap40_main=yes
9248else
9249  ac_cv_lib_ldap40_main=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext \
9252    conftest$ac_exeext conftest.$ac_ext
9253LIBS=$ac_check_lib_save_LIBS
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap40_main" >&5
9256$as_echo "$ac_cv_lib_ldap40_main" >&6; }
9257if test "x$ac_cv_lib_ldap40_main" = xyes; then :
9258  LIBS="-lldap40 $LIBS" found_ldap_lib=yes
9259fi
9260
9261    fi
9262  fi
9263  if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape3 \)
9264  then
9265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl30" >&5
9266$as_echo_n "checking for main in -lldapssl30... " >&6; }
9267if ${ac_cv_lib_ldapssl30_main+:} false; then :
9268  $as_echo_n "(cached) " >&6
9269else
9270  ac_check_lib_save_LIBS=$LIBS
9271LIBS="-lldapssl30 -lpthread $LIBS"
9272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274
9275
9276int
9277main ()
9278{
9279return main ();
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284if ac_fn_c_try_link "$LINENO"; then :
9285  ac_cv_lib_ldapssl30_main=yes
9286else
9287  ac_cv_lib_ldapssl30_main=no
9288fi
9289rm -f core conftest.err conftest.$ac_objext \
9290    conftest$ac_exeext conftest.$ac_ext
9291LIBS=$ac_check_lib_save_LIBS
9292fi
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl30_main" >&5
9294$as_echo "$ac_cv_lib_ldapssl30_main" >&6; }
9295if test "x$ac_cv_lib_ldapssl30_main" = xyes; then :
9296  LIBS="-lldapssl30 $LIBS" found_ldap_lib=yes
9297fi
9298
9299  fi
9300  for ac_func in ldap_search_ext
9301do :
9302  ac_fn_c_check_func "$LINENO" "ldap_search_ext" "ac_cv_func_ldap_search_ext"
9303if test "x$ac_cv_func_ldap_search_ext" = xyes; then :
9304  cat >>confdefs.h <<_ACEOF
9305#define HAVE_LDAP_SEARCH_EXT 1
9306_ACEOF
9307
9308else
9309  as_fn_error $? "could not locate a valid LDAP library" "$LINENO" 5
9310fi
9311done
9312
9313
9314  # see if we need a BER library
9315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_bvfree" >&5
9316$as_echo_n "checking for library containing ber_bvfree... " >&6; }
9317if ${ac_cv_search_ber_bvfree+:} false; then :
9318  $as_echo_n "(cached) " >&6
9319else
9320  ac_func_search_save_LIBS=$LIBS
9321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324/* Override any GCC internal prototype to avoid an error.
9325   Use char because int might match the return type of a GCC
9326   builtin and then its argument prototype would still apply.  */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330char ber_bvfree ();
9331int
9332main ()
9333{
9334return ber_bvfree ();
9335  ;
9336  return 0;
9337}
9338_ACEOF
9339for ac_lib in '' lber; do
9340  if test -z "$ac_lib"; then
9341    ac_res="none required"
9342  else
9343    ac_res=-l$ac_lib
9344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9345  fi
9346  if ac_fn_c_try_link "$LINENO"; then :
9347  ac_cv_search_ber_bvfree=$ac_res
9348fi
9349rm -f core conftest.err conftest.$ac_objext \
9350    conftest$ac_exeext
9351  if ${ac_cv_search_ber_bvfree+:} false; then :
9352  break
9353fi
9354done
9355if ${ac_cv_search_ber_bvfree+:} false; then :
9356
9357else
9358  ac_cv_search_ber_bvfree=no
9359fi
9360rm conftest.$ac_ext
9361LIBS=$ac_func_search_save_LIBS
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_bvfree" >&5
9364$as_echo "$ac_cv_search_ber_bvfree" >&6; }
9365ac_res=$ac_cv_search_ber_bvfree
9366if test "$ac_res" != no; then :
9367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9368
9369fi
9370
9371
9372  # check for extra SASL libraries
9373  if test "$enable_sasl" = "yes"
9374  then
9375    ac_fn_c_check_type "$LINENO" "sasl_interact_t" "ac_cv_type_sasl_interact_t" "
9376        #ifdef HAVE_SASL_SASL_H
9377        #include <sasl/sasl.h>
9378        #elif defined(HAVE_SASL_H)
9379        #include <sasl.h>
9380        #endif
9381"
9382if test "x$ac_cv_type_sasl_interact_t" = xyes; then :
9383
9384$as_echo "#define HAVE_SASL_INTERACT_T 1" >>confdefs.h
9385
9386fi
9387
9388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_sasl_interactive_bind_s" >&5
9389$as_echo_n "checking for library containing ldap_sasl_interactive_bind_s... " >&6; }
9390if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  ac_func_search_save_LIBS=$LIBS
9394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h.  */
9396
9397/* Override any GCC internal prototype to avoid an error.
9398   Use char because int might match the return type of a GCC
9399   builtin and then its argument prototype would still apply.  */
9400#ifdef __cplusplus
9401extern "C"
9402#endif
9403char ldap_sasl_interactive_bind_s ();
9404int
9405main ()
9406{
9407return ldap_sasl_interactive_bind_s ();
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412for ac_lib in '' sasl2; do
9413  if test -z "$ac_lib"; then
9414    ac_res="none required"
9415  else
9416    ac_res=-l$ac_lib
9417    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9418  fi
9419  if ac_fn_c_try_link "$LINENO"; then :
9420  ac_cv_search_ldap_sasl_interactive_bind_s=$ac_res
9421fi
9422rm -f core conftest.err conftest.$ac_objext \
9423    conftest$ac_exeext
9424  if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
9425  break
9426fi
9427done
9428if ${ac_cv_search_ldap_sasl_interactive_bind_s+:} false; then :
9429
9430else
9431  ac_cv_search_ldap_sasl_interactive_bind_s=no
9432fi
9433rm conftest.$ac_ext
9434LIBS=$ac_func_search_save_LIBS
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_sasl_interactive_bind_s" >&5
9437$as_echo "$ac_cv_search_ldap_sasl_interactive_bind_s" >&6; }
9438ac_res=$ac_cv_search_ldap_sasl_interactive_bind_s
9439if test "$ac_res" != no; then :
9440  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9441
9442fi
9443
9444    for ac_func in ldap_sasl_interactive_bind_s
9445do :
9446  ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
9447if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
9448  cat >>confdefs.h <<_ACEOF
9449#define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
9450_ACEOF
9451
9452fi
9453done
9454
9455  fi
9456
9457  # check for extra Kerberos libraries
9458  if test "$enable_kerberos" = "yes"
9459  then
9460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_krb5_ccache_name" >&5
9461$as_echo_n "checking for library containing gss_krb5_ccache_name... " >&6; }
9462if ${ac_cv_search_gss_krb5_ccache_name+:} false; then :
9463  $as_echo_n "(cached) " >&6
9464else
9465  ac_func_search_save_LIBS=$LIBS
9466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467/* end confdefs.h.  */
9468
9469/* Override any GCC internal prototype to avoid an error.
9470   Use char because int might match the return type of a GCC
9471   builtin and then its argument prototype would still apply.  */
9472#ifdef __cplusplus
9473extern "C"
9474#endif
9475char gss_krb5_ccache_name ();
9476int
9477main ()
9478{
9479return gss_krb5_ccache_name ();
9480  ;
9481  return 0;
9482}
9483_ACEOF
9484for ac_lib in '' gssapi gssapi_krb5; do
9485  if test -z "$ac_lib"; then
9486    ac_res="none required"
9487  else
9488    ac_res=-l$ac_lib
9489    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9490  fi
9491  if ac_fn_c_try_link "$LINENO"; then :
9492  ac_cv_search_gss_krb5_ccache_name=$ac_res
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495    conftest$ac_exeext
9496  if ${ac_cv_search_gss_krb5_ccache_name+:} false; then :
9497  break
9498fi
9499done
9500if ${ac_cv_search_gss_krb5_ccache_name+:} false; then :
9501
9502else
9503  ac_cv_search_gss_krb5_ccache_name=no
9504fi
9505rm conftest.$ac_ext
9506LIBS=$ac_func_search_save_LIBS
9507fi
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_krb5_ccache_name" >&5
9509$as_echo "$ac_cv_search_gss_krb5_ccache_name" >&6; }
9510ac_res=$ac_cv_search_gss_krb5_ccache_name
9511if test "$ac_res" != no; then :
9512  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9513
9514fi
9515
9516    for ac_func in gss_krb5_ccache_name
9517do :
9518  ac_fn_c_check_func "$LINENO" "gss_krb5_ccache_name" "ac_cv_func_gss_krb5_ccache_name"
9519if test "x$ac_cv_func_gss_krb5_ccache_name" = xyes; then :
9520  cat >>confdefs.h <<_ACEOF
9521#define HAVE_GSS_KRB5_CCACHE_NAME 1
9522_ACEOF
9523
9524fi
9525done
9526
9527
9528    # save CFLAGS and LIBS to restore later
9529    krb5_save_CFLAGS="$CFLAGS"
9530    krb5_save_LIBS="$LIBS"
9531
9532    # find library that contains krb5_is_thread_safe
9533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
9534$as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9535if ${ac_cv_search_krb5_sendauth+:} false; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  ac_func_search_save_LIBS=$LIBS
9539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541
9542/* Override any GCC internal prototype to avoid an error.
9543   Use char because int might match the return type of a GCC
9544   builtin and then its argument prototype would still apply.  */
9545#ifdef __cplusplus
9546extern "C"
9547#endif
9548char krb5_sendauth ();
9549int
9550main ()
9551{
9552return krb5_sendauth ();
9553  ;
9554  return 0;
9555}
9556_ACEOF
9557for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9558  if test -z "$ac_lib"; then
9559    ac_res="none required"
9560  else
9561    ac_res=-l$ac_lib
9562    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9563  fi
9564  if ac_fn_c_try_link "$LINENO"; then :
9565  ac_cv_search_krb5_sendauth=$ac_res
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568    conftest$ac_exeext
9569  if ${ac_cv_search_krb5_sendauth+:} false; then :
9570  break
9571fi
9572done
9573if ${ac_cv_search_krb5_sendauth+:} false; then :
9574
9575else
9576  ac_cv_search_krb5_sendauth=no
9577fi
9578rm conftest.$ac_ext
9579LIBS=$ac_func_search_save_LIBS
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
9582$as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9583ac_res=$ac_cv_search_krb5_sendauth
9584if test "$ac_res" != no; then :
9585  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9586
9587fi
9588
9589    for ac_func in krb5_is_thread_safe
9590do :
9591  ac_fn_c_check_func "$LINENO" "krb5_is_thread_safe" "ac_cv_func_krb5_is_thread_safe"
9592if test "x$ac_cv_func_krb5_is_thread_safe" = xyes; then :
9593  cat >>confdefs.h <<_ACEOF
9594#define HAVE_KRB5_IS_THREAD_SAFE 1
9595_ACEOF
9596
9597fi
9598done
9599
9600
9601    # see if krb5 is thread safe
9602    if test "x$ac_cv_func_krb5_is_thread_safe" == "xyes"
9603    then
9604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5 thread safety" >&5
9605$as_echo_n "checking krb5 thread safety... " >&6; }
9606if ${nslcd_cv_krb5_is_thread_safe+:} false; then :
9607  $as_echo_n "(cached) " >&6
9608else
9609  if test "$cross_compiling" = yes; then :
9610  nslcd_cv_krb5_is_thread_safe=unknown
9611else
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614
9615                      #include <krb5.h>
9616
9617int
9618main ()
9619{
9620
9621                      if (!krb5_is_thread_safe())
9622                        return 1;
9623
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_run "$LINENO"; then :
9629  nslcd_cv_krb5_is_thread_safe=yes
9630else
9631  nslcd_cv_krb5_is_thread_safe=no
9632fi
9633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9634  conftest.$ac_objext conftest.beam conftest.$ac_ext
9635fi
9636
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_krb5_is_thread_safe" >&5
9639$as_echo "$nslcd_cv_krb5_is_thread_safe" >&6; }
9640      if test "x$nslcd_cv_krb5_is_thread_safe" == "xno"
9641      then
9642        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: krb5 is NOT thread safe" >&5
9643$as_echo "$as_me: WARNING: krb5 is NOT thread safe" >&2;}
9644      fi
9645    fi
9646
9647    # restore CFLAGS and LIBS because we don't directly use krb5
9648    CFLAGS="$krb5_save_CFLAGS"
9649    LIBS="$krb5_save_LIBS"
9650
9651  fi
9652
9653  # check for ldap function availability
9654  for ac_func in ber_bvfree ber_free ber_set_option ber_get_enum
9655do :
9656  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9658if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9659  cat >>confdefs.h <<_ACEOF
9660#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9661_ACEOF
9662
9663fi
9664done
9665
9666  for ac_func in ldap_initialize ldap_start_tls_s
9667do :
9668  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9669ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9670if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9671  cat >>confdefs.h <<_ACEOF
9672#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9673_ACEOF
9674
9675fi
9676done
9677
9678  for ac_func in ldap_get_option ldap_set_option ldap_set_rebind_proc
9679do :
9680  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9681ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9682if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9683  cat >>confdefs.h <<_ACEOF
9684#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9685_ACEOF
9686
9687fi
9688done
9689
9690  for ac_func in ldap_simple_bind_s ldap_sasl_bind ldap_sasl_bind_s ldap_unbind
9691do :
9692  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9695  cat >>confdefs.h <<_ACEOF
9696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697_ACEOF
9698
9699fi
9700done
9701
9702  for ac_func in ldap_search_ext ldap_modify_ext_s ldap_extended_operation_s
9703do :
9704  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9705ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9706if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9707  cat >>confdefs.h <<_ACEOF
9708#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9709_ACEOF
9710
9711fi
9712done
9713
9714  for ac_func in ldap_explode_dn ldap_explode_rdn
9715do :
9716  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9719  cat >>confdefs.h <<_ACEOF
9720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721_ACEOF
9722
9723fi
9724done
9725
9726  for ac_func in ldap_domain2hostlist ldap_domain2dn
9727do :
9728  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9729ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9730if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9731  cat >>confdefs.h <<_ACEOF
9732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9733_ACEOF
9734
9735fi
9736done
9737
9738  for ac_func in ldap_result ldap_parse_result ldap_msgfree ldap_memfree
9739do :
9740  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9741ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9742if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9743  cat >>confdefs.h <<_ACEOF
9744#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9745_ACEOF
9746
9747fi
9748done
9749
9750  for ac_func in ldap_get_dn ldap_first_attribute ldap_next_attribute
9751do :
9752  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9754if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9755  cat >>confdefs.h <<_ACEOF
9756#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9757_ACEOF
9758
9759fi
9760done
9761
9762  for ac_func in ldap_get_values ldap_value_free
9763do :
9764  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9765ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9766if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9767  cat >>confdefs.h <<_ACEOF
9768#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9769_ACEOF
9770
9771fi
9772done
9773
9774  for ac_func in ldap_get_values_len ldap_count_values_len ldap_value_free_len
9775do :
9776  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9777ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9778if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9779  cat >>confdefs.h <<_ACEOF
9780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9781_ACEOF
9782
9783fi
9784done
9785
9786  for ac_func in ldap_err2string ldap_abandon
9787do :
9788  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9790if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9791  cat >>confdefs.h <<_ACEOF
9792#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9793_ACEOF
9794
9795fi
9796done
9797
9798  for ac_func in ldap_control_create ldap_create_control ldap_control_find
9799do :
9800  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9801ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9802if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9803  cat >>confdefs.h <<_ACEOF
9804#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9805_ACEOF
9806
9807fi
9808done
9809
9810  for ac_func in ldap_controls_free ldap_control_free ldap_get_entry_controls
9811do :
9812  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9813ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9814if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9815  cat >>confdefs.h <<_ACEOF
9816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9817_ACEOF
9818
9819fi
9820done
9821
9822  for ac_func in ldap_parse_passwordpolicy_control ldap_passwordpolicy_err2txt
9823do :
9824  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9825ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9826if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9827  cat >>confdefs.h <<_ACEOF
9828#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9829_ACEOF
9830
9831fi
9832done
9833
9834  for ac_func in ldap_create_deref_control ldap_create_deref_control_value
9835do :
9836  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9837ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9838if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9839  cat >>confdefs.h <<_ACEOF
9840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9841_ACEOF
9842
9843fi
9844done
9845
9846  for ac_func in ldap_parse_deref_control ldap_derefresponse_free
9847do :
9848  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9850if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9851  cat >>confdefs.h <<_ACEOF
9852#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853_ACEOF
9854
9855fi
9856done
9857
9858
9859  # replace ldap_create_page_control() and ldap_parse_page_control()
9860  for ac_func in ldap_create_page_control ldap_parse_page_control
9861do :
9862  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9864if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9865  cat >>confdefs.h <<_ACEOF
9866#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9867_ACEOF
9868
9869else
9870  case " $LIBOBJS " in
9871  *" pagectrl.$ac_objext "* ) ;;
9872  *) LIBOBJS="$LIBOBJS pagectrl.$ac_objext"
9873 ;;
9874esac
9875
9876fi
9877done
9878
9879  ac_fn_c_check_decl "$LINENO" "ldap_extended_operation_s" "ac_cv_have_decl_ldap_extended_operation_s" "
9880      #if HAVE_LBER_H
9881      #include <lber.h>
9882      #endif
9883      #include <ldap.h>
9884"
9885if test "x$ac_cv_have_decl_ldap_extended_operation_s" = xyes; then :
9886  ac_have_decl=1
9887else
9888  ac_have_decl=0
9889fi
9890
9891cat >>confdefs.h <<_ACEOF
9892#define HAVE_DECL_LDAP_EXTENDED_OPERATION_S $ac_have_decl
9893_ACEOF
9894
9895
9896  # replace other ldap functions
9897  ac_fn_c_check_func "$LINENO" "ldap_passwd_s" "ac_cv_func_ldap_passwd_s"
9898if test "x$ac_cv_func_ldap_passwd_s" = xyes; then :
9899  $as_echo "#define HAVE_LDAP_PASSWD_S 1" >>confdefs.h
9900
9901else
9902  case " $LIBOBJS " in
9903  *" ldap_passwd_s.$ac_objext "* ) ;;
9904  *) LIBOBJS="$LIBOBJS ldap_passwd_s.$ac_objext"
9905 ;;
9906esac
9907
9908fi
9909
9910
9911  ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
9912if test "x$ac_cv_func_ldap_initialize" = xyes; then :
9913  $as_echo "#define HAVE_LDAP_INITIALIZE 1" >>confdefs.h
9914
9915else
9916  case " $LIBOBJS " in
9917  *" ldap_initialize.$ac_objext "* ) ;;
9918  *) LIBOBJS="$LIBOBJS ldap_initialize.$ac_objext"
9919 ;;
9920esac
9921
9922fi
9923
9924
9925  ac_fn_c_check_func "$LINENO" "ldap_parse_passwordpolicy_control" "ac_cv_func_ldap_parse_passwordpolicy_control"
9926if test "x$ac_cv_func_ldap_parse_passwordpolicy_control" = xyes; then :
9927  $as_echo "#define HAVE_LDAP_PARSE_PASSWORDPOLICY_CONTROL 1" >>confdefs.h
9928
9929else
9930  case " $LIBOBJS " in
9931  *" ldap_parse_passwordpolicy_control.$ac_objext "* ) ;;
9932  *) LIBOBJS="$LIBOBJS ldap_parse_passwordpolicy_control.$ac_objext"
9933 ;;
9934esac
9935
9936fi
9937
9938
9939  ac_fn_c_check_func "$LINENO" "ldap_passwordpolicy_err2txt" "ac_cv_func_ldap_passwordpolicy_err2txt"
9940if test "x$ac_cv_func_ldap_passwordpolicy_err2txt" = xyes; then :
9941  $as_echo "#define HAVE_LDAP_PASSWORDPOLICY_ERR2TXT 1" >>confdefs.h
9942
9943else
9944  case " $LIBOBJS " in
9945  *" ldap_passwordpolicy_err2txt.$ac_objext "* ) ;;
9946  *) LIBOBJS="$LIBOBJS ldap_passwordpolicy_err2txt.$ac_objext"
9947 ;;
9948esac
9949
9950fi
9951
9952
9953
9954  # check the number of arguments that ldap_set_rebind_proc() uses
9955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ldap_set_rebind_proc" >&5
9956$as_echo_n "checking number of arguments to ldap_set_rebind_proc... " >&6; }
9957if ${nss_ldapd_cv_ldap_set_rebind_proc_args+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h.  */
9962
9963              #include <lber.h>
9964              #include <ldap.h>
9965
9966int
9967main ()
9968{
9969
9970              ldap_set_rebind_proc(0, 0, 0);
9971
9972  ;
9973  return 0;
9974}
9975_ACEOF
9976if ac_fn_c_try_compile "$LINENO"; then :
9977  nss_ldapd_cv_ldap_set_rebind_proc_args=3
9978else
9979  nss_ldapd_cv_ldap_set_rebind_proc_args=2
9980fi
9981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982fi
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_ldapd_cv_ldap_set_rebind_proc_args" >&5
9984$as_echo "$nss_ldapd_cv_ldap_set_rebind_proc_args" >&6; }
9985
9986cat >>confdefs.h <<_ACEOF
9987#define LDAP_SET_REBIND_PROC_ARGS $nss_ldapd_cv_ldap_set_rebind_proc_args
9988_ACEOF
9989
9990
9991  # check the return type of ldap_set_rebind_proc()
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ldap_set_rebind_proc" >&5
9993$as_echo_n "checking return type of ldap_set_rebind_proc... " >&6; }
9994if ${nss_ldapd_cv_ldap_set_rebind_proc_type+:} false; then :
9995  $as_echo_n "(cached) " >&6
9996else
9997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999
10000              #include <lber.h>
10001              #include <ldap.h>
10002
10003int
10004main ()
10005{
10006
10007              #if LDAP_SET_REBIND_PROC_ARGS == 3
10008              return ldap_set_rebind_proc(0, 0, 0);
10009              #else
10010              return ldap_set_rebind_proc(0, 0);
10011              #endif
10012
10013  ;
10014  return 0;
10015}
10016_ACEOF
10017if ac_fn_c_try_compile "$LINENO"; then :
10018  nss_ldapd_cv_ldap_set_rebind_proc_type=int
10019else
10020  nss_ldapd_cv_ldap_set_rebind_proc_type=void
10021fi
10022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023fi
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nss_ldapd_cv_ldap_set_rebind_proc_type" >&5
10025$as_echo "$nss_ldapd_cv_ldap_set_rebind_proc_type" >&6; }
10026  if test "x$nss_ldapd_cv_ldap_set_rebind_proc_type" = "xvoid"
10027  then
10028
10029$as_echo "#define LDAP_SET_REBIND_PROC_RETURNS_VOID 1" >>confdefs.h
10030
10031  fi
10032
10033  # check for broken implementations of ldap_create_deref_control()
10034  if test "x$ac_cv_func_ldap_create_deref_control" = "xyes"
10035  then
10036    # this bug cannot be determined on compile time so we run a
10037    # small test program
10038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ldap_create_deref_control() implementation" >&5
10039$as_echo_n "checking ldap_create_deref_control() implementation... " >&6; }
10040if ${nslcd_cv_ldap_create_deref_control_working+:} false; then :
10041  $as_echo_n "(cached) " >&6
10042else
10043  if test "$cross_compiling" = yes; then :
10044  nslcd_cv_ldap_create_deref_control_working=cross
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048
10049                    #include <stdio.h>
10050                    #include <lber.h>
10051                    #include <ldap.h>
10052
10053int
10054main ()
10055{
10056
10057                    int rc;
10058                    LDAP *ld;
10059                    LDAPControl *ctrls[2] = {NULL, NULL};
10060                    struct LDAPDerefSpec ds[2];
10061                    char *attrs[2] = {"uid", NULL};
10062                    ld = ldap_init("localhost", LDAP_PORT);
10063                    if (ld == NULL)
10064                    {
10065                      fprintf(stderr, "ldap_init() failed\n");
10066                      return 2;
10067                    }
10068                    ds[0].derefAttr = "member";
10069                    ds[0].attributes = attrs;
10070                    ds[1].derefAttr = NULL;
10071                    rc = ldap_create_deref_control(ld, ds, 0, &ctrls[0]);
10072                    if (rc != LDAP_SUCCESS)
10073                    {
10074                      fprintf(stderr, "ldap_create_deref_control() failed: %s\n",
10075                              ldap_err2string(rc));
10076                      return 2;
10077                    }
10078                    if (ldap_control_find(LDAP_CONTROL_X_DEREF, ctrls, NULL) != NULL)
10079                      return 0;
10080                    if (ldap_control_find(LDAP_CONTROL_PAGEDRESULTS, ctrls, NULL) != NULL)
10081                    {
10082                      fprintf(stderr, "ldap_create_deref_control() created LDAP_CONTROL_PAGEDRESULTS control\n");
10083                      return 3;
10084                    }
10085                    fprintf(stderr, "ldap_create_deref_control() created unknown control\n");
10086                    return 2;
10087
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092if ac_fn_c_try_run "$LINENO"; then :
10093  nslcd_cv_ldap_create_deref_control_working=ok
10094else
10095  if test "$?" -eq 3; then nslcd_cv_ldap_create_deref_control_working=broken
10096                 else nslcd_cv_ldap_create_deref_control_working=unknown; fi
10097fi
10098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10099  conftest.$ac_objext conftest.beam conftest.$ac_ext
10100fi
10101
10102fi
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_ldap_create_deref_control_working" >&5
10104$as_echo "$nslcd_cv_ldap_create_deref_control_working" >&6; }
10105    if test "x$nslcd_cv_ldap_create_deref_control_working" != "xok"
10106    then
10107      { $as_echo "$as_me:${as_lineno-$LINENO}: using replacement ldap_create_deref_control()" >&5
10108$as_echo "$as_me: using replacement ldap_create_deref_control()" >&6;}
10109      case " $LIBOBJS " in
10110  *" derefctrl.$ac_objext "* ) ;;
10111  *) LIBOBJS="$LIBOBJS derefctrl.$ac_objext"
10112 ;;
10113esac
10114
10115
10116$as_echo "#define REPLACE_LDAP_CREATE_DEREF_CONTROL 1" >>confdefs.h
10117
10118    fi
10119  fi
10120
10121  # save nslcd LIBS and CFLAGS and restore originals
10122  nslcd_CFLAGS="$CFLAGS"
10123  nslcd_LIBS="$LIBS"
10124  CFLAGS="$nslcd_save_CFLAGS"
10125  LIBS="$nslcd_save_LIBS"
10126
10127
10128fi
10129
10130# pynslcd-specific tests
10131if test "x$enable_pynslcd" = "xyes"
10132then
10133  # check Python interpreter
10134
10135
10136
10137
10138
10139
10140        if test -n "$PYTHON"; then
10141      # If the user set $PYTHON, use it and don't search something else.
10142      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
10143$as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
10144      prog="import sys
10145# split strings by '.' and convert to numeric.  Append some zeros
10146# because we need at least 4 digits for the hex conversion.
10147# map returns an iterator in Python 3.0 and a list in 2.x
10148minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
10149minverhex = 0
10150# xrange is not present in Python 3.0 and range returns an iterator
10151for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
10152sys.exit(sys.hexversion < minverhex)"
10153  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
10154   ($PYTHON -c "$prog") >&5 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; then :
10158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159$as_echo "yes" >&6; }
10160else
10161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
10163			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
10164fi
10165      am_display_PYTHON=$PYTHON
10166    else
10167      # Otherwise, try each interpreter until we find one that satisfies
10168      # VERSION.
10169      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
10170$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
10171if ${am_cv_pathless_PYTHON+:} false; then :
10172  $as_echo_n "(cached) " >&6
10173else
10174
10175	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
10176	  test "$am_cv_pathless_PYTHON" = none && break
10177	  prog="import sys
10178# split strings by '.' and convert to numeric.  Append some zeros
10179# because we need at least 4 digits for the hex conversion.
10180# map returns an iterator in Python 3.0 and a list in 2.x
10181minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
10182minverhex = 0
10183# xrange is not present in Python 3.0 and range returns an iterator
10184for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
10185sys.exit(sys.hexversion < minverhex)"
10186  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
10187   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; then :
10191  break
10192fi
10193	done
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
10196$as_echo "$am_cv_pathless_PYTHON" >&6; }
10197      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
10198      if test "$am_cv_pathless_PYTHON" = none; then
10199	PYTHON=:
10200      else
10201        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
10202set dummy $am_cv_pathless_PYTHON; ac_word=$2
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204$as_echo_n "checking for $ac_word... " >&6; }
10205if ${ac_cv_path_PYTHON+:} false; then :
10206  $as_echo_n "(cached) " >&6
10207else
10208  case $PYTHON in
10209  [\\/]* | ?:[\\/]*)
10210  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10211  ;;
10212  *)
10213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214for as_dir in $PATH
10215do
10216  IFS=$as_save_IFS
10217  test -z "$as_dir" && as_dir=.
10218    for ac_exec_ext in '' $ac_executable_extensions; do
10219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222    break 2
10223  fi
10224done
10225  done
10226IFS=$as_save_IFS
10227
10228  ;;
10229esac
10230fi
10231PYTHON=$ac_cv_path_PYTHON
10232if test -n "$PYTHON"; then
10233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10234$as_echo "$PYTHON" >&6; }
10235else
10236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237$as_echo "no" >&6; }
10238fi
10239
10240
10241      fi
10242      am_display_PYTHON=$am_cv_pathless_PYTHON
10243    fi
10244
10245
10246  if test "$PYTHON" = :; then
10247      as_fn_error $? "Python is required" "$LINENO" 5
10248  else
10249
10250
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
10252$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
10253if ${am_cv_python_version+:} false; then :
10254  $as_echo_n "(cached) " >&6
10255else
10256  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
10257fi
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
10259$as_echo "$am_cv_python_version" >&6; }
10260  PYTHON_VERSION=$am_cv_python_version
10261
10262
10263
10264  PYTHON_PREFIX='${prefix}'
10265
10266  PYTHON_EXEC_PREFIX='${exec_prefix}'
10267
10268
10269
10270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
10271$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
10272if ${am_cv_python_platform+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
10276fi
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
10278$as_echo "$am_cv_python_platform" >&6; }
10279  PYTHON_PLATFORM=$am_cv_python_platform
10280
10281
10282  # Just factor out some code duplication.
10283  am_python_setup_sysconfig="\
10284import sys
10285# Prefer sysconfig over distutils.sysconfig, for better compatibility
10286# with python 3.x.  See automake bug#10227.
10287try:
10288    import sysconfig
10289except ImportError:
10290    can_use_sysconfig = 0
10291else:
10292    can_use_sysconfig = 1
10293# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
10294# <https://github.com/pypa/virtualenv/issues/118>
10295try:
10296    from platform import python_implementation
10297    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
10298        can_use_sysconfig = 0
10299except ImportError:
10300    pass"
10301
10302
10303            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
10304$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
10305if ${am_cv_python_pythondir+:} false; then :
10306  $as_echo_n "(cached) " >&6
10307else
10308  if test "x$prefix" = xNONE
10309     then
10310       am_py_prefix=$ac_default_prefix
10311     else
10312       am_py_prefix=$prefix
10313     fi
10314     am_cv_python_pythondir=`$PYTHON -c "
10315$am_python_setup_sysconfig
10316if can_use_sysconfig:
10317    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
10318else:
10319    from distutils import sysconfig
10320    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
10321sys.stdout.write(sitedir)"`
10322     case $am_cv_python_pythondir in
10323     $am_py_prefix*)
10324       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
10325       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
10326       ;;
10327     *)
10328       case $am_py_prefix in
10329         /usr|/System*) ;;
10330         *)
10331	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
10332	  ;;
10333       esac
10334       ;;
10335     esac
10336
10337fi
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
10339$as_echo "$am_cv_python_pythondir" >&6; }
10340  pythondir=$am_cv_python_pythondir
10341
10342
10343
10344  pkgpythondir=\${pythondir}/$PACKAGE
10345
10346
10347        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
10348$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
10349if ${am_cv_python_pyexecdir+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  if test "x$exec_prefix" = xNONE
10353     then
10354       am_py_exec_prefix=$am_py_prefix
10355     else
10356       am_py_exec_prefix=$exec_prefix
10357     fi
10358     am_cv_python_pyexecdir=`$PYTHON -c "
10359$am_python_setup_sysconfig
10360if can_use_sysconfig:
10361    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
10362else:
10363    from distutils import sysconfig
10364    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
10365sys.stdout.write(sitedir)"`
10366     case $am_cv_python_pyexecdir in
10367     $am_py_exec_prefix*)
10368       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10369       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
10370       ;;
10371     *)
10372       case $am_py_exec_prefix in
10373         /usr|/System*) ;;
10374         *)
10375	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
10376	   ;;
10377       esac
10378       ;;
10379     esac
10380
10381fi
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
10383$as_echo "$am_cv_python_pyexecdir" >&6; }
10384  pyexecdir=$am_cv_python_pyexecdir
10385
10386
10387
10388  pkgpyexecdir=\${pyexecdir}/$PACKAGE
10389
10390
10391
10392  fi
10393
10394
10395
10396    if test -z $PYTHON;
10397    then
10398        PYTHON="python"
10399    fi
10400    PYTHON_NAME=`basename $PYTHON`
10401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: daemon" >&5
10402$as_echo_n "checking $PYTHON_NAME module: daemon... " >&6; }
10403	$PYTHON -c "import daemon" 2>/dev/null
10404	if test $? -eq 0;
10405	then
10406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407$as_echo "yes" >&6; }
10408		eval HAVE_PYMOD_DAEMON=yes
10409	else
10410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
10412		eval HAVE_PYMOD_DAEMON=no
10413		#
10414		if test -n ""
10415		then
10416			as_fn_error $? "failed to find required module daemon" "$LINENO" 5
10417			exit 1
10418		fi
10419	fi
10420
10421
10422    if test -z $PYTHON;
10423    then
10424        PYTHON="python"
10425    fi
10426    PYTHON_NAME=`basename $PYTHON`
10427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fcntl" >&5
10428$as_echo_n "checking $PYTHON_NAME module: fcntl... " >&6; }
10429	$PYTHON -c "import fcntl" 2>/dev/null
10430	if test $? -eq 0;
10431	then
10432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10433$as_echo "yes" >&6; }
10434		eval HAVE_PYMOD_FCNTL=yes
10435	else
10436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
10438		eval HAVE_PYMOD_FCNTL=no
10439		#
10440		if test -n ""
10441		then
10442			as_fn_error $? "failed to find required module fcntl" "$LINENO" 5
10443			exit 1
10444		fi
10445	fi
10446
10447
10448    if test -z $PYTHON;
10449    then
10450        PYTHON="python"
10451    fi
10452    PYTHON_NAME=`basename $PYTHON`
10453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fnmatch" >&5
10454$as_echo_n "checking $PYTHON_NAME module: fnmatch... " >&6; }
10455	$PYTHON -c "import fnmatch" 2>/dev/null
10456	if test $? -eq 0;
10457	then
10458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10459$as_echo "yes" >&6; }
10460		eval HAVE_PYMOD_FNMATCH=yes
10461	else
10462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463$as_echo "no" >&6; }
10464		eval HAVE_PYMOD_FNMATCH=no
10465		#
10466		if test -n ""
10467		then
10468			as_fn_error $? "failed to find required module fnmatch" "$LINENO" 5
10469			exit 1
10470		fi
10471	fi
10472
10473
10474    if test -z $PYTHON;
10475    then
10476        PYTHON="python"
10477    fi
10478    PYTHON_NAME=`basename $PYTHON`
10479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: ldap" >&5
10480$as_echo_n "checking $PYTHON_NAME module: ldap... " >&6; }
10481	$PYTHON -c "import ldap" 2>/dev/null
10482	if test $? -eq 0;
10483	then
10484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485$as_echo "yes" >&6; }
10486		eval HAVE_PYMOD_LDAP=yes
10487	else
10488		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
10490		eval HAVE_PYMOD_LDAP=no
10491		#
10492		if test -n ""
10493		then
10494			as_fn_error $? "failed to find required module ldap" "$LINENO" 5
10495			exit 1
10496		fi
10497	fi
10498
10499
10500    if test -z $PYTHON;
10501    then
10502        PYTHON="python"
10503    fi
10504    PYTHON_NAME=`basename $PYTHON`
10505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: sqlite3" >&5
10506$as_echo_n "checking $PYTHON_NAME module: sqlite3... " >&6; }
10507	$PYTHON -c "import sqlite3" 2>/dev/null
10508	if test $? -eq 0;
10509	then
10510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511$as_echo "yes" >&6; }
10512		eval HAVE_PYMOD_SQLITE3=yes
10513	else
10514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515$as_echo "no" >&6; }
10516		eval HAVE_PYMOD_SQLITE3=no
10517		#
10518		if test -n ""
10519		then
10520			as_fn_error $? "failed to find required module sqlite3" "$LINENO" 5
10521			exit 1
10522		fi
10523	fi
10524
10525  # required by ldap.controls.ppolicy:
10526
10527    if test -z $PYTHON;
10528    then
10529        PYTHON="python"
10530    fi
10531    PYTHON_NAME=`basename $PYTHON`
10532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1" >&5
10533$as_echo_n "checking $PYTHON_NAME module: pyasn1... " >&6; }
10534	$PYTHON -c "import pyasn1" 2>/dev/null
10535	if test $? -eq 0;
10536	then
10537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10538$as_echo "yes" >&6; }
10539		eval HAVE_PYMOD_PYASN1=yes
10540	else
10541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
10543		eval HAVE_PYMOD_PYASN1=no
10544		#
10545		if test -n ""
10546		then
10547			as_fn_error $? "failed to find required module pyasn1" "$LINENO" 5
10548			exit 1
10549		fi
10550	fi
10551
10552
10553    if test -z $PYTHON;
10554    then
10555        PYTHON="python"
10556    fi
10557    PYTHON_NAME=`basename $PYTHON`
10558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1_modules" >&5
10559$as_echo_n "checking $PYTHON_NAME module: pyasn1_modules... " >&6; }
10560	$PYTHON -c "import pyasn1_modules" 2>/dev/null
10561	if test $? -eq 0;
10562	then
10563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10564$as_echo "yes" >&6; }
10565		eval HAVE_PYMOD_PYASN1_MODULES=yes
10566	else
10567		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568$as_echo "no" >&6; }
10569		eval HAVE_PYMOD_PYASN1_MODULES=no
10570		#
10571		if test -n ""
10572		then
10573			as_fn_error $? "failed to find required module pyasn1_modules" "$LINENO" 5
10574			exit 1
10575		fi
10576	fi
10577
10578  if test "x$HAVE_PYMOD_DAEMON" != "xyes" || \
10579     test "x$HAVE_PYMOD_FCNTL" != "xyes" || \
10580     test "x$HAVE_PYMOD_FNMATCH" != "xyes" || \
10581     test "x$HAVE_PYMOD_LDAP" != "xyes" || \
10582     test "x$HAVE_PYMOD_SQLITE3" != "xyes" || \
10583     test "x$HAVE_PYMOD_PYASN1" != "xyes" || \
10584     test "x$HAVE_PYMOD_PYASN1_MODULES" != "xyes"
10585  then
10586    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5
10587$as_echo "$as_me: WARNING: Required Python modules missing" >&2;}
10588  fi
10589  # optional modules
10590
10591    if test -z $PYTHON;
10592    then
10593        PYTHON="python"
10594    fi
10595    PYTHON_NAME=`basename $PYTHON`
10596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: setproctitle" >&5
10597$as_echo_n "checking $PYTHON_NAME module: setproctitle... " >&6; }
10598	$PYTHON -c "import setproctitle" 2>/dev/null
10599	if test $? -eq 0;
10600	then
10601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10602$as_echo "yes" >&6; }
10603		eval HAVE_PYMOD_SETPROCTITLE=yes
10604	else
10605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606$as_echo "no" >&6; }
10607		eval HAVE_PYMOD_SETPROCTITLE=no
10608		#
10609		if test -n ""
10610		then
10611			as_fn_error $? "failed to find required module setproctitle" "$LINENO" 5
10612			exit 1
10613		fi
10614	fi
10615
10616fi
10617
10618 if test "x${with_nss_flavour}" = xglibc; then
10619  NSS_FLAVOUR_GLIBC_TRUE=
10620  NSS_FLAVOUR_GLIBC_FALSE='#'
10621else
10622  NSS_FLAVOUR_GLIBC_TRUE='#'
10623  NSS_FLAVOUR_GLIBC_FALSE=
10624fi
10625
10626 if test "x${with_nss_flavour}" = xsolaris; then
10627  NSS_FLAVOUR_SOLARIS_TRUE=
10628  NSS_FLAVOUR_SOLARIS_FALSE='#'
10629else
10630  NSS_FLAVOUR_SOLARIS_TRUE='#'
10631  NSS_FLAVOUR_SOLARIS_FALSE=
10632fi
10633
10634 if test "x${with_nss_flavour}" = xfreebsd; then
10635  NSS_FLAVOUR_FREEBSD_TRUE=
10636  NSS_FLAVOUR_FREEBSD_FALSE='#'
10637else
10638  NSS_FLAVOUR_FREEBSD_TRUE='#'
10639  NSS_FLAVOUR_FREEBSD_FALSE=
10640fi
10641
10642
10643# generate files
10644ac_config_files="$ac_config_files Makefile compat/Makefile common/Makefile nss/Makefile pam/Makefile utils/Makefile nslcd/Makefile pynslcd/Makefile man/Makefile tests/Makefile"
10645
10646ac_config_files="$ac_config_files pynslcd/constants.py"
10647
10648cat >confcache <<\_ACEOF
10649# This file is a shell script that caches the results of configure
10650# tests run on this system so they can be shared between configure
10651# scripts and configure runs, see configure's option --config-cache.
10652# It is not useful on other systems.  If it contains results you don't
10653# want to keep, you may remove or edit it.
10654#
10655# config.status only pays attention to the cache file if you give it
10656# the --recheck option to rerun configure.
10657#
10658# `ac_cv_env_foo' variables (set or unset) will be overridden when
10659# loading this file, other *unset* `ac_cv_foo' will be assigned the
10660# following values.
10661
10662_ACEOF
10663
10664# The following way of writing the cache mishandles newlines in values,
10665# but we know of no workaround that is simple, portable, and efficient.
10666# So, we kill variables containing newlines.
10667# Ultrix sh set writes to stderr and can't be redirected directly,
10668# and sets the high bit in the cache file unless we assign to the vars.
10669(
10670  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10671    eval ac_val=\$$ac_var
10672    case $ac_val in #(
10673    *${as_nl}*)
10674      case $ac_var in #(
10675      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10676$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10677      esac
10678      case $ac_var in #(
10679      _ | IFS | as_nl) ;; #(
10680      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10681      *) { eval $ac_var=; unset $ac_var;} ;;
10682      esac ;;
10683    esac
10684  done
10685
10686  (set) 2>&1 |
10687    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10688    *${as_nl}ac_space=\ *)
10689      # `set' does not quote correctly, so add quotes: double-quote
10690      # substitution turns \\\\ into \\, and sed turns \\ into \.
10691      sed -n \
10692	"s/'/'\\\\''/g;
10693	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10694      ;; #(
10695    *)
10696      # `set' quotes correctly as required by POSIX, so do not add quotes.
10697      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10698      ;;
10699    esac |
10700    sort
10701) |
10702  sed '
10703     /^ac_cv_env_/b end
10704     t clear
10705     :clear
10706     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10707     t end
10708     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10709     :end' >>confcache
10710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10711  if test -w "$cache_file"; then
10712    if test "x$cache_file" != "x/dev/null"; then
10713      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10714$as_echo "$as_me: updating cache $cache_file" >&6;}
10715      if test ! -f "$cache_file" || test -h "$cache_file"; then
10716	cat confcache >"$cache_file"
10717      else
10718        case $cache_file in #(
10719        */* | ?:*)
10720	  mv -f confcache "$cache_file"$$ &&
10721	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10722        *)
10723	  mv -f confcache "$cache_file" ;;
10724	esac
10725      fi
10726    fi
10727  else
10728    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10729$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10730  fi
10731fi
10732rm -f confcache
10733
10734test "x$prefix" = xNONE && prefix=$ac_default_prefix
10735# Let make expand exec_prefix.
10736test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10737
10738DEFS=-DHAVE_CONFIG_H
10739
10740ac_libobjs=
10741ac_ltlibobjs=
10742U=
10743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10744  # 1. Remove the extension, and $U if already installed.
10745  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10746  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10747  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10748  #    will be set to the directory where LIBOBJS objects are built.
10749  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10750  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10751done
10752LIBOBJS=$ac_libobjs
10753
10754LTLIBOBJS=$ac_ltlibobjs
10755
10756
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10758$as_echo_n "checking that generated files are newer than configure... " >&6; }
10759   if test -n "$am_sleep_pid"; then
10760     # Hide warnings about reused PIDs.
10761     wait $am_sleep_pid 2>/dev/null
10762   fi
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10764$as_echo "done" >&6; }
10765 if test -n "$EXEEXT"; then
10766  am__EXEEXT_TRUE=
10767  am__EXEEXT_FALSE='#'
10768else
10769  am__EXEEXT_TRUE='#'
10770  am__EXEEXT_FALSE=
10771fi
10772
10773if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10774  as_fn_error $? "conditional \"AMDEP\" was never defined.
10775Usually this means the macro was only invoked conditionally." "$LINENO" 5
10776fi
10777if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10778  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10779Usually this means the macro was only invoked conditionally." "$LINENO" 5
10780fi
10781if test -z "${GENMAN_TRUE}" && test -z "${GENMAN_FALSE}"; then
10782  as_fn_error $? "conditional \"GENMAN\" was never defined.
10783Usually this means the macro was only invoked conditionally." "$LINENO" 5
10784fi
10785if test -z "${INSTMAN_TRUE}" && test -z "${INSTMAN_FALSE}"; then
10786  as_fn_error $? "conditional \"INSTMAN\" was never defined.
10787Usually this means the macro was only invoked conditionally." "$LINENO" 5
10788fi
10789if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
10790  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
10791Usually this means the macro was only invoked conditionally." "$LINENO" 5
10792fi
10793if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10794  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10795Usually this means the macro was only invoked conditionally." "$LINENO" 5
10796fi
10797if test -z "${ENABLE_NSS_TRUE}" && test -z "${ENABLE_NSS_FALSE}"; then
10798  as_fn_error $? "conditional \"ENABLE_NSS\" was never defined.
10799Usually this means the macro was only invoked conditionally." "$LINENO" 5
10800fi
10801if test -z "${ENABLE_PAM_TRUE}" && test -z "${ENABLE_PAM_FALSE}"; then
10802  as_fn_error $? "conditional \"ENABLE_PAM\" was never defined.
10803Usually this means the macro was only invoked conditionally." "$LINENO" 5
10804fi
10805if test -z "${ENABLE_UTILS_TRUE}" && test -z "${ENABLE_UTILS_FALSE}"; then
10806  as_fn_error $? "conditional \"ENABLE_UTILS\" was never defined.
10807Usually this means the macro was only invoked conditionally." "$LINENO" 5
10808fi
10809if test -z "${ENABLE_NSLCD_TRUE}" && test -z "${ENABLE_NSLCD_FALSE}"; then
10810  as_fn_error $? "conditional \"ENABLE_NSLCD\" was never defined.
10811Usually this means the macro was only invoked conditionally." "$LINENO" 5
10812fi
10813if test -z "${ENABLE_PYNSLCD_TRUE}" && test -z "${ENABLE_PYNSLCD_FALSE}"; then
10814  as_fn_error $? "conditional \"ENABLE_PYNSLCD\" was never defined.
10815Usually this means the macro was only invoked conditionally." "$LINENO" 5
10816fi
10817if test -z "${NSS_FLAVOUR_GLIBC_TRUE}" && test -z "${NSS_FLAVOUR_GLIBC_FALSE}"; then
10818  as_fn_error $? "conditional \"NSS_FLAVOUR_GLIBC\" was never defined.
10819Usually this means the macro was only invoked conditionally." "$LINENO" 5
10820fi
10821if test -z "${NSS_FLAVOUR_SOLARIS_TRUE}" && test -z "${NSS_FLAVOUR_SOLARIS_FALSE}"; then
10822  as_fn_error $? "conditional \"NSS_FLAVOUR_SOLARIS\" was never defined.
10823Usually this means the macro was only invoked conditionally." "$LINENO" 5
10824fi
10825if test -z "${NSS_FLAVOUR_FREEBSD_TRUE}" && test -z "${NSS_FLAVOUR_FREEBSD_FALSE}"; then
10826  as_fn_error $? "conditional \"NSS_FLAVOUR_FREEBSD\" was never defined.
10827Usually this means the macro was only invoked conditionally." "$LINENO" 5
10828fi
10829
10830: "${CONFIG_STATUS=./config.status}"
10831ac_write_fail=0
10832ac_clean_files_save=$ac_clean_files
10833ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10835$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10836as_write_fail=0
10837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10838#! $SHELL
10839# Generated by $as_me.
10840# Run this file to recreate the current configuration.
10841# Compiler output produced by configure, useful for debugging
10842# configure, is in config.log if it exists.
10843
10844debug=false
10845ac_cs_recheck=false
10846ac_cs_silent=false
10847
10848SHELL=\${CONFIG_SHELL-$SHELL}
10849export SHELL
10850_ASEOF
10851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10852## -------------------- ##
10853## M4sh Initialization. ##
10854## -------------------- ##
10855
10856# Be more Bourne compatible
10857DUALCASE=1; export DUALCASE # for MKS sh
10858if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10859  emulate sh
10860  NULLCMD=:
10861  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10862  # is contrary to our usage.  Disable this feature.
10863  alias -g '${1+"$@"}'='"$@"'
10864  setopt NO_GLOB_SUBST
10865else
10866  case `(set -o) 2>/dev/null` in #(
10867  *posix*) :
10868    set -o posix ;; #(
10869  *) :
10870     ;;
10871esac
10872fi
10873
10874
10875as_nl='
10876'
10877export as_nl
10878# Printing a long string crashes Solaris 7 /usr/bin/printf.
10879as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10882# Prefer a ksh shell builtin over an external printf program on Solaris,
10883# but without wasting forks for bash or zsh.
10884if test -z "$BASH_VERSION$ZSH_VERSION" \
10885    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10886  as_echo='print -r --'
10887  as_echo_n='print -rn --'
10888elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10889  as_echo='printf %s\n'
10890  as_echo_n='printf %s'
10891else
10892  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10893    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10894    as_echo_n='/usr/ucb/echo -n'
10895  else
10896    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10897    as_echo_n_body='eval
10898      arg=$1;
10899      case $arg in #(
10900      *"$as_nl"*)
10901	expr "X$arg" : "X\\(.*\\)$as_nl";
10902	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10903      esac;
10904      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10905    '
10906    export as_echo_n_body
10907    as_echo_n='sh -c $as_echo_n_body as_echo'
10908  fi
10909  export as_echo_body
10910  as_echo='sh -c $as_echo_body as_echo'
10911fi
10912
10913# The user is always right.
10914if test "${PATH_SEPARATOR+set}" != set; then
10915  PATH_SEPARATOR=:
10916  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10917    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10918      PATH_SEPARATOR=';'
10919  }
10920fi
10921
10922
10923# IFS
10924# We need space, tab and new line, in precisely that order.  Quoting is
10925# there to prevent editors from complaining about space-tab.
10926# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10927# splitting by setting IFS to empty value.)
10928IFS=" ""	$as_nl"
10929
10930# Find who we are.  Look in the path if we contain no directory separator.
10931as_myself=
10932case $0 in #((
10933  *[\\/]* ) as_myself=$0 ;;
10934  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935for as_dir in $PATH
10936do
10937  IFS=$as_save_IFS
10938  test -z "$as_dir" && as_dir=.
10939    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10940  done
10941IFS=$as_save_IFS
10942
10943     ;;
10944esac
10945# We did not find ourselves, most probably we were run as `sh COMMAND'
10946# in which case we are not to be found in the path.
10947if test "x$as_myself" = x; then
10948  as_myself=$0
10949fi
10950if test ! -f "$as_myself"; then
10951  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10952  exit 1
10953fi
10954
10955# Unset variables that we do not need and which cause bugs (e.g. in
10956# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10957# suppresses any "Segmentation fault" message there.  '((' could
10958# trigger a bug in pdksh 5.2.14.
10959for as_var in BASH_ENV ENV MAIL MAILPATH
10960do eval test x\${$as_var+set} = xset \
10961  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10962done
10963PS1='$ '
10964PS2='> '
10965PS4='+ '
10966
10967# NLS nuisances.
10968LC_ALL=C
10969export LC_ALL
10970LANGUAGE=C
10971export LANGUAGE
10972
10973# CDPATH.
10974(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10975
10976
10977# as_fn_error STATUS ERROR [LINENO LOG_FD]
10978# ----------------------------------------
10979# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10980# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10981# script with STATUS, using 1 if that was 0.
10982as_fn_error ()
10983{
10984  as_status=$1; test $as_status -eq 0 && as_status=1
10985  if test "$4"; then
10986    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10987    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10988  fi
10989  $as_echo "$as_me: error: $2" >&2
10990  as_fn_exit $as_status
10991} # as_fn_error
10992
10993
10994# as_fn_set_status STATUS
10995# -----------------------
10996# Set $? to STATUS, without forking.
10997as_fn_set_status ()
10998{
10999  return $1
11000} # as_fn_set_status
11001
11002# as_fn_exit STATUS
11003# -----------------
11004# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11005as_fn_exit ()
11006{
11007  set +e
11008  as_fn_set_status $1
11009  exit $1
11010} # as_fn_exit
11011
11012# as_fn_unset VAR
11013# ---------------
11014# Portably unset VAR.
11015as_fn_unset ()
11016{
11017  { eval $1=; unset $1;}
11018}
11019as_unset=as_fn_unset
11020# as_fn_append VAR VALUE
11021# ----------------------
11022# Append the text in VALUE to the end of the definition contained in VAR. Take
11023# advantage of any shell optimizations that allow amortized linear growth over
11024# repeated appends, instead of the typical quadratic growth present in naive
11025# implementations.
11026if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11027  eval 'as_fn_append ()
11028  {
11029    eval $1+=\$2
11030  }'
11031else
11032  as_fn_append ()
11033  {
11034    eval $1=\$$1\$2
11035  }
11036fi # as_fn_append
11037
11038# as_fn_arith ARG...
11039# ------------------
11040# Perform arithmetic evaluation on the ARGs, and store the result in the
11041# global $as_val. Take advantage of shells that can avoid forks. The arguments
11042# must be portable across $(()) and expr.
11043if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11044  eval 'as_fn_arith ()
11045  {
11046    as_val=$(( $* ))
11047  }'
11048else
11049  as_fn_arith ()
11050  {
11051    as_val=`expr "$@" || test $? -eq 1`
11052  }
11053fi # as_fn_arith
11054
11055
11056if expr a : '\(a\)' >/dev/null 2>&1 &&
11057   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11058  as_expr=expr
11059else
11060  as_expr=false
11061fi
11062
11063if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11064  as_basename=basename
11065else
11066  as_basename=false
11067fi
11068
11069if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11070  as_dirname=dirname
11071else
11072  as_dirname=false
11073fi
11074
11075as_me=`$as_basename -- "$0" ||
11076$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11077	 X"$0" : 'X\(//\)$' \| \
11078	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11079$as_echo X/"$0" |
11080    sed '/^.*\/\([^/][^/]*\)\/*$/{
11081	    s//\1/
11082	    q
11083	  }
11084	  /^X\/\(\/\/\)$/{
11085	    s//\1/
11086	    q
11087	  }
11088	  /^X\/\(\/\).*/{
11089	    s//\1/
11090	    q
11091	  }
11092	  s/.*/./; q'`
11093
11094# Avoid depending upon Character Ranges.
11095as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11097as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11098as_cr_digits='0123456789'
11099as_cr_alnum=$as_cr_Letters$as_cr_digits
11100
11101ECHO_C= ECHO_N= ECHO_T=
11102case `echo -n x` in #(((((
11103-n*)
11104  case `echo 'xy\c'` in
11105  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11106  xy)  ECHO_C='\c';;
11107  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11108       ECHO_T='	';;
11109  esac;;
11110*)
11111  ECHO_N='-n';;
11112esac
11113
11114rm -f conf$$ conf$$.exe conf$$.file
11115if test -d conf$$.dir; then
11116  rm -f conf$$.dir/conf$$.file
11117else
11118  rm -f conf$$.dir
11119  mkdir conf$$.dir 2>/dev/null
11120fi
11121if (echo >conf$$.file) 2>/dev/null; then
11122  if ln -s conf$$.file conf$$ 2>/dev/null; then
11123    as_ln_s='ln -s'
11124    # ... but there are two gotchas:
11125    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11126    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11127    # In both cases, we have to default to `cp -pR'.
11128    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11129      as_ln_s='cp -pR'
11130  elif ln conf$$.file conf$$ 2>/dev/null; then
11131    as_ln_s=ln
11132  else
11133    as_ln_s='cp -pR'
11134  fi
11135else
11136  as_ln_s='cp -pR'
11137fi
11138rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11139rmdir conf$$.dir 2>/dev/null
11140
11141
11142# as_fn_mkdir_p
11143# -------------
11144# Create "$as_dir" as a directory, including parents if necessary.
11145as_fn_mkdir_p ()
11146{
11147
11148  case $as_dir in #(
11149  -*) as_dir=./$as_dir;;
11150  esac
11151  test -d "$as_dir" || eval $as_mkdir_p || {
11152    as_dirs=
11153    while :; do
11154      case $as_dir in #(
11155      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11156      *) as_qdir=$as_dir;;
11157      esac
11158      as_dirs="'$as_qdir' $as_dirs"
11159      as_dir=`$as_dirname -- "$as_dir" ||
11160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11161	 X"$as_dir" : 'X\(//\)[^/]' \| \
11162	 X"$as_dir" : 'X\(//\)$' \| \
11163	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11164$as_echo X"$as_dir" |
11165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11166	    s//\1/
11167	    q
11168	  }
11169	  /^X\(\/\/\)[^/].*/{
11170	    s//\1/
11171	    q
11172	  }
11173	  /^X\(\/\/\)$/{
11174	    s//\1/
11175	    q
11176	  }
11177	  /^X\(\/\).*/{
11178	    s//\1/
11179	    q
11180	  }
11181	  s/.*/./; q'`
11182      test -d "$as_dir" && break
11183    done
11184    test -z "$as_dirs" || eval "mkdir $as_dirs"
11185  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11186
11187
11188} # as_fn_mkdir_p
11189if mkdir -p . 2>/dev/null; then
11190  as_mkdir_p='mkdir -p "$as_dir"'
11191else
11192  test -d ./-p && rmdir ./-p
11193  as_mkdir_p=false
11194fi
11195
11196
11197# as_fn_executable_p FILE
11198# -----------------------
11199# Test if FILE is an executable regular file.
11200as_fn_executable_p ()
11201{
11202  test -f "$1" && test -x "$1"
11203} # as_fn_executable_p
11204as_test_x='test -x'
11205as_executable_p=as_fn_executable_p
11206
11207# Sed expression to map a string onto a valid CPP name.
11208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11209
11210# Sed expression to map a string onto a valid variable name.
11211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11212
11213
11214exec 6>&1
11215## ----------------------------------- ##
11216## Main body of $CONFIG_STATUS script. ##
11217## ----------------------------------- ##
11218_ASEOF
11219test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11220
11221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11222# Save the log message, to keep $0 and so on meaningful, and to
11223# report actual input values of CONFIG_FILES etc. instead of their
11224# values after options handling.
11225ac_log="
11226This file was extended by nss-pam-ldapd $as_me 0.9.11, which was
11227generated by GNU Autoconf 2.69.  Invocation command line was
11228
11229  CONFIG_FILES    = $CONFIG_FILES
11230  CONFIG_HEADERS  = $CONFIG_HEADERS
11231  CONFIG_LINKS    = $CONFIG_LINKS
11232  CONFIG_COMMANDS = $CONFIG_COMMANDS
11233  $ $0 $@
11234
11235on `(hostname || uname -n) 2>/dev/null | sed 1q`
11236"
11237
11238_ACEOF
11239
11240case $ac_config_files in *"
11241"*) set x $ac_config_files; shift; ac_config_files=$*;;
11242esac
11243
11244case $ac_config_headers in *"
11245"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11246esac
11247
11248
11249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11250# Files that config.status was made for.
11251config_files="$ac_config_files"
11252config_headers="$ac_config_headers"
11253config_commands="$ac_config_commands"
11254
11255_ACEOF
11256
11257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11258ac_cs_usage="\
11259\`$as_me' instantiates files and other configuration actions
11260from templates according to the current configuration.  Unless the files
11261and actions are specified as TAGs, all are instantiated by default.
11262
11263Usage: $0 [OPTION]... [TAG]...
11264
11265  -h, --help       print this help, then exit
11266  -V, --version    print version number and configuration settings, then exit
11267      --config     print configuration, then exit
11268  -q, --quiet, --silent
11269                   do not print progress messages
11270  -d, --debug      don't remove temporary files
11271      --recheck    update $as_me by reconfiguring in the same conditions
11272      --file=FILE[:TEMPLATE]
11273                   instantiate the configuration file FILE
11274      --header=FILE[:TEMPLATE]
11275                   instantiate the configuration header FILE
11276
11277Configuration files:
11278$config_files
11279
11280Configuration headers:
11281$config_headers
11282
11283Configuration commands:
11284$config_commands
11285
11286Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>.
11287nss-pam-ldapd home page: <https://arthurdejong.org/nss-pam-ldapd/>."
11288
11289_ACEOF
11290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11291ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11292ac_cs_version="\\
11293nss-pam-ldapd config.status 0.9.11
11294configured by $0, generated by GNU Autoconf 2.69,
11295  with options \\"\$ac_cs_config\\"
11296
11297Copyright (C) 2012 Free Software Foundation, Inc.
11298This config.status script is free software; the Free Software Foundation
11299gives unlimited permission to copy, distribute and modify it."
11300
11301ac_pwd='$ac_pwd'
11302srcdir='$srcdir'
11303INSTALL='$INSTALL'
11304MKDIR_P='$MKDIR_P'
11305AWK='$AWK'
11306test -n "\$AWK" || AWK=awk
11307_ACEOF
11308
11309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11310# The default lists apply if the user does not specify any file.
11311ac_need_defaults=:
11312while test $# != 0
11313do
11314  case $1 in
11315  --*=?*)
11316    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11317    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11318    ac_shift=:
11319    ;;
11320  --*=)
11321    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11322    ac_optarg=
11323    ac_shift=:
11324    ;;
11325  *)
11326    ac_option=$1
11327    ac_optarg=$2
11328    ac_shift=shift
11329    ;;
11330  esac
11331
11332  case $ac_option in
11333  # Handling of the options.
11334  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11335    ac_cs_recheck=: ;;
11336  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11337    $as_echo "$ac_cs_version"; exit ;;
11338  --config | --confi | --conf | --con | --co | --c )
11339    $as_echo "$ac_cs_config"; exit ;;
11340  --debug | --debu | --deb | --de | --d | -d )
11341    debug=: ;;
11342  --file | --fil | --fi | --f )
11343    $ac_shift
11344    case $ac_optarg in
11345    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11346    '') as_fn_error $? "missing file argument" ;;
11347    esac
11348    as_fn_append CONFIG_FILES " '$ac_optarg'"
11349    ac_need_defaults=false;;
11350  --header | --heade | --head | --hea )
11351    $ac_shift
11352    case $ac_optarg in
11353    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11354    esac
11355    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11356    ac_need_defaults=false;;
11357  --he | --h)
11358    # Conflict between --help and --header
11359    as_fn_error $? "ambiguous option: \`$1'
11360Try \`$0 --help' for more information.";;
11361  --help | --hel | -h )
11362    $as_echo "$ac_cs_usage"; exit ;;
11363  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11364  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11365    ac_cs_silent=: ;;
11366
11367  # This is an error.
11368  -*) as_fn_error $? "unrecognized option: \`$1'
11369Try \`$0 --help' for more information." ;;
11370
11371  *) as_fn_append ac_config_targets " $1"
11372     ac_need_defaults=false ;;
11373
11374  esac
11375  shift
11376done
11377
11378ac_configure_extra_args=
11379
11380if $ac_cs_silent; then
11381  exec 6>/dev/null
11382  ac_configure_extra_args="$ac_configure_extra_args --silent"
11383fi
11384
11385_ACEOF
11386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11387if \$ac_cs_recheck; then
11388  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11389  shift
11390  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11391  CONFIG_SHELL='$SHELL'
11392  export CONFIG_SHELL
11393  exec "\$@"
11394fi
11395
11396_ACEOF
11397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11398exec 5>>config.log
11399{
11400  echo
11401  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11402## Running $as_me. ##
11403_ASBOX
11404  $as_echo "$ac_log"
11405} >&5
11406
11407_ACEOF
11408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11409#
11410# INIT-COMMANDS
11411#
11412AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11413
11414_ACEOF
11415
11416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11417
11418# Handling of arguments.
11419for ac_config_target in $ac_config_targets
11420do
11421  case $ac_config_target in
11422    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11423    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11424    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11425    "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
11426    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
11427    "nss/Makefile") CONFIG_FILES="$CONFIG_FILES nss/Makefile" ;;
11428    "pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;;
11429    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
11430    "nslcd/Makefile") CONFIG_FILES="$CONFIG_FILES nslcd/Makefile" ;;
11431    "pynslcd/Makefile") CONFIG_FILES="$CONFIG_FILES pynslcd/Makefile" ;;
11432    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11433    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
11434    "pynslcd/constants.py") CONFIG_FILES="$CONFIG_FILES pynslcd/constants.py" ;;
11435
11436  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11437  esac
11438done
11439
11440
11441# If the user did not use the arguments to specify the items to instantiate,
11442# then the envvar interface is used.  Set only those that are not.
11443# We use the long form for the default assignment because of an extremely
11444# bizarre bug on SunOS 4.1.3.
11445if $ac_need_defaults; then
11446  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11447  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11448  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11449fi
11450
11451# Have a temporary directory for convenience.  Make it in the build tree
11452# simply because there is no reason against having it here, and in addition,
11453# creating and moving files from /tmp can sometimes cause problems.
11454# Hook for its removal unless debugging.
11455# Note that there is a small window in which the directory will not be cleaned:
11456# after its creation but before its name has been assigned to `$tmp'.
11457$debug ||
11458{
11459  tmp= ac_tmp=
11460  trap 'exit_status=$?
11461  : "${ac_tmp:=$tmp}"
11462  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11463' 0
11464  trap 'as_fn_exit 1' 1 2 13 15
11465}
11466# Create a (secure) tmp directory for tmp files.
11467
11468{
11469  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11470  test -d "$tmp"
11471}  ||
11472{
11473  tmp=./conf$$-$RANDOM
11474  (umask 077 && mkdir "$tmp")
11475} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11476ac_tmp=$tmp
11477
11478# Set up the scripts for CONFIG_FILES section.
11479# No need to generate them if there are no CONFIG_FILES.
11480# This happens for instance with `./config.status config.h'.
11481if test -n "$CONFIG_FILES"; then
11482
11483
11484ac_cr=`echo X | tr X '\015'`
11485# On cygwin, bash can eat \r inside `` if the user requested igncr.
11486# But we know of no other shell where ac_cr would be empty at this
11487# point, so we can use a bashism as a fallback.
11488if test "x$ac_cr" = x; then
11489  eval ac_cr=\$\'\\r\'
11490fi
11491ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11492if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11493  ac_cs_awk_cr='\\r'
11494else
11495  ac_cs_awk_cr=$ac_cr
11496fi
11497
11498echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11499_ACEOF
11500
11501
11502{
11503  echo "cat >conf$$subs.awk <<_ACEOF" &&
11504  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11505  echo "_ACEOF"
11506} >conf$$subs.sh ||
11507  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11508ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11509ac_delim='%!_!# '
11510for ac_last_try in false false false false false :; do
11511  . ./conf$$subs.sh ||
11512    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11513
11514  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11515  if test $ac_delim_n = $ac_delim_num; then
11516    break
11517  elif $ac_last_try; then
11518    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11519  else
11520    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11521  fi
11522done
11523rm -f conf$$subs.sh
11524
11525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11526cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11527_ACEOF
11528sed -n '
11529h
11530s/^/S["/; s/!.*/"]=/
11531p
11532g
11533s/^[^!]*!//
11534:repl
11535t repl
11536s/'"$ac_delim"'$//
11537t delim
11538:nl
11539h
11540s/\(.\{148\}\)..*/\1/
11541t more1
11542s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11543p
11544n
11545b repl
11546:more1
11547s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11548p
11549g
11550s/.\{148\}//
11551t nl
11552:delim
11553h
11554s/\(.\{148\}\)..*/\1/
11555t more2
11556s/["\\]/\\&/g; s/^/"/; s/$/"/
11557p
11558b
11559:more2
11560s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11561p
11562g
11563s/.\{148\}//
11564t delim
11565' <conf$$subs.awk | sed '
11566/^[^""]/{
11567  N
11568  s/\n//
11569}
11570' >>$CONFIG_STATUS || ac_write_fail=1
11571rm -f conf$$subs.awk
11572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11573_ACAWK
11574cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11575  for (key in S) S_is_set[key] = 1
11576  FS = ""
11577
11578}
11579{
11580  line = $ 0
11581  nfields = split(line, field, "@")
11582  substed = 0
11583  len = length(field[1])
11584  for (i = 2; i < nfields; i++) {
11585    key = field[i]
11586    keylen = length(key)
11587    if (S_is_set[key]) {
11588      value = S[key]
11589      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11590      len += length(value) + length(field[++i])
11591      substed = 1
11592    } else
11593      len += 1 + keylen
11594  }
11595
11596  print line
11597}
11598
11599_ACAWK
11600_ACEOF
11601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11602if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11603  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11604else
11605  cat
11606fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11607  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11608_ACEOF
11609
11610# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11611# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11612# trailing colons and then remove the whole line if VPATH becomes empty
11613# (actually we leave an empty line to preserve line numbers).
11614if test "x$srcdir" = x.; then
11615  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11616h
11617s///
11618s/^/:/
11619s/[	 ]*$/:/
11620s/:\$(srcdir):/:/g
11621s/:\${srcdir}:/:/g
11622s/:@srcdir@:/:/g
11623s/^:*//
11624s/:*$//
11625x
11626s/\(=[	 ]*\).*/\1/
11627G
11628s/\n//
11629s/^[^=]*=[	 ]*$//
11630}'
11631fi
11632
11633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11634fi # test -n "$CONFIG_FILES"
11635
11636# Set up the scripts for CONFIG_HEADERS section.
11637# No need to generate them if there are no CONFIG_HEADERS.
11638# This happens for instance with `./config.status Makefile'.
11639if test -n "$CONFIG_HEADERS"; then
11640cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11641BEGIN {
11642_ACEOF
11643
11644# Transform confdefs.h into an awk script `defines.awk', embedded as
11645# here-document in config.status, that substitutes the proper values into
11646# config.h.in to produce config.h.
11647
11648# Create a delimiter string that does not exist in confdefs.h, to ease
11649# handling of long lines.
11650ac_delim='%!_!# '
11651for ac_last_try in false false :; do
11652  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11653  if test -z "$ac_tt"; then
11654    break
11655  elif $ac_last_try; then
11656    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11657  else
11658    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11659  fi
11660done
11661
11662# For the awk script, D is an array of macro values keyed by name,
11663# likewise P contains macro parameters if any.  Preserve backslash
11664# newline sequences.
11665
11666ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11667sed -n '
11668s/.\{148\}/&'"$ac_delim"'/g
11669t rset
11670:rset
11671s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11672t def
11673d
11674:def
11675s/\\$//
11676t bsnl
11677s/["\\]/\\&/g
11678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11679D["\1"]=" \3"/p
11680s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11681d
11682:bsnl
11683s/["\\]/\\&/g
11684s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11685D["\1"]=" \3\\\\\\n"\\/p
11686t cont
11687s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11688t cont
11689d
11690:cont
11691n
11692s/.\{148\}/&'"$ac_delim"'/g
11693t clear
11694:clear
11695s/\\$//
11696t bsnlc
11697s/["\\]/\\&/g; s/^/"/; s/$/"/p
11698d
11699:bsnlc
11700s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11701b cont
11702' <confdefs.h | sed '
11703s/'"$ac_delim"'/"\\\
11704"/g' >>$CONFIG_STATUS || ac_write_fail=1
11705
11706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11707  for (key in D) D_is_set[key] = 1
11708  FS = ""
11709}
11710/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11711  line = \$ 0
11712  split(line, arg, " ")
11713  if (arg[1] == "#") {
11714    defundef = arg[2]
11715    mac1 = arg[3]
11716  } else {
11717    defundef = substr(arg[1], 2)
11718    mac1 = arg[2]
11719  }
11720  split(mac1, mac2, "(") #)
11721  macro = mac2[1]
11722  prefix = substr(line, 1, index(line, defundef) - 1)
11723  if (D_is_set[macro]) {
11724    # Preserve the white space surrounding the "#".
11725    print prefix "define", macro P[macro] D[macro]
11726    next
11727  } else {
11728    # Replace #undef with comments.  This is necessary, for example,
11729    # in the case of _POSIX_SOURCE, which is predefined and required
11730    # on some systems where configure will not decide to define it.
11731    if (defundef == "undef") {
11732      print "/*", prefix defundef, macro, "*/"
11733      next
11734    }
11735  }
11736}
11737{ print }
11738_ACAWK
11739_ACEOF
11740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11742fi # test -n "$CONFIG_HEADERS"
11743
11744
11745eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11746shift
11747for ac_tag
11748do
11749  case $ac_tag in
11750  :[FHLC]) ac_mode=$ac_tag; continue;;
11751  esac
11752  case $ac_mode$ac_tag in
11753  :[FHL]*:*);;
11754  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11755  :[FH]-) ac_tag=-:-;;
11756  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11757  esac
11758  ac_save_IFS=$IFS
11759  IFS=:
11760  set x $ac_tag
11761  IFS=$ac_save_IFS
11762  shift
11763  ac_file=$1
11764  shift
11765
11766  case $ac_mode in
11767  :L) ac_source=$1;;
11768  :[FH])
11769    ac_file_inputs=
11770    for ac_f
11771    do
11772      case $ac_f in
11773      -) ac_f="$ac_tmp/stdin";;
11774      *) # Look for the file first in the build tree, then in the source tree
11775	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11776	 # because $ac_f cannot contain `:'.
11777	 test -f "$ac_f" ||
11778	   case $ac_f in
11779	   [\\/$]*) false;;
11780	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11781	   esac ||
11782	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11783      esac
11784      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11785      as_fn_append ac_file_inputs " '$ac_f'"
11786    done
11787
11788    # Let's still pretend it is `configure' which instantiates (i.e., don't
11789    # use $as_me), people would be surprised to read:
11790    #    /* config.h.  Generated by config.status.  */
11791    configure_input='Generated from '`
11792	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11793	`' by configure.'
11794    if test x"$ac_file" != x-; then
11795      configure_input="$ac_file.  $configure_input"
11796      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11797$as_echo "$as_me: creating $ac_file" >&6;}
11798    fi
11799    # Neutralize special characters interpreted by sed in replacement strings.
11800    case $configure_input in #(
11801    *\&* | *\|* | *\\* )
11802       ac_sed_conf_input=`$as_echo "$configure_input" |
11803       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11804    *) ac_sed_conf_input=$configure_input;;
11805    esac
11806
11807    case $ac_tag in
11808    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11809      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11810    esac
11811    ;;
11812  esac
11813
11814  ac_dir=`$as_dirname -- "$ac_file" ||
11815$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11816	 X"$ac_file" : 'X\(//\)[^/]' \| \
11817	 X"$ac_file" : 'X\(//\)$' \| \
11818	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11819$as_echo X"$ac_file" |
11820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11821	    s//\1/
11822	    q
11823	  }
11824	  /^X\(\/\/\)[^/].*/{
11825	    s//\1/
11826	    q
11827	  }
11828	  /^X\(\/\/\)$/{
11829	    s//\1/
11830	    q
11831	  }
11832	  /^X\(\/\).*/{
11833	    s//\1/
11834	    q
11835	  }
11836	  s/.*/./; q'`
11837  as_dir="$ac_dir"; as_fn_mkdir_p
11838  ac_builddir=.
11839
11840case "$ac_dir" in
11841.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11842*)
11843  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11844  # A ".." for each directory in $ac_dir_suffix.
11845  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11846  case $ac_top_builddir_sub in
11847  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11848  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11849  esac ;;
11850esac
11851ac_abs_top_builddir=$ac_pwd
11852ac_abs_builddir=$ac_pwd$ac_dir_suffix
11853# for backward compatibility:
11854ac_top_builddir=$ac_top_build_prefix
11855
11856case $srcdir in
11857  .)  # We are building in place.
11858    ac_srcdir=.
11859    ac_top_srcdir=$ac_top_builddir_sub
11860    ac_abs_top_srcdir=$ac_pwd ;;
11861  [\\/]* | ?:[\\/]* )  # Absolute name.
11862    ac_srcdir=$srcdir$ac_dir_suffix;
11863    ac_top_srcdir=$srcdir
11864    ac_abs_top_srcdir=$srcdir ;;
11865  *) # Relative name.
11866    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11867    ac_top_srcdir=$ac_top_build_prefix$srcdir
11868    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11869esac
11870ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11871
11872
11873  case $ac_mode in
11874  :F)
11875  #
11876  # CONFIG_FILE
11877  #
11878
11879  case $INSTALL in
11880  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11881  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11882  esac
11883  ac_MKDIR_P=$MKDIR_P
11884  case $MKDIR_P in
11885  [\\/$]* | ?:[\\/]* ) ;;
11886  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11887  esac
11888_ACEOF
11889
11890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11891# If the template does not know about datarootdir, expand it.
11892# FIXME: This hack should be removed a few years after 2.60.
11893ac_datarootdir_hack=; ac_datarootdir_seen=
11894ac_sed_dataroot='
11895/datarootdir/ {
11896  p
11897  q
11898}
11899/@datadir@/p
11900/@docdir@/p
11901/@infodir@/p
11902/@localedir@/p
11903/@mandir@/p'
11904case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11905*datarootdir*) ac_datarootdir_seen=yes;;
11906*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11907  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11908$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11909_ACEOF
11910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11911  ac_datarootdir_hack='
11912  s&@datadir@&$datadir&g
11913  s&@docdir@&$docdir&g
11914  s&@infodir@&$infodir&g
11915  s&@localedir@&$localedir&g
11916  s&@mandir@&$mandir&g
11917  s&\\\${datarootdir}&$datarootdir&g' ;;
11918esac
11919_ACEOF
11920
11921# Neutralize VPATH when `$srcdir' = `.'.
11922# Shell code in configure.ac might set extrasub.
11923# FIXME: do we really want to maintain this feature?
11924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11925ac_sed_extra="$ac_vpsub
11926$extrasub
11927_ACEOF
11928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11929:t
11930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11931s|@configure_input@|$ac_sed_conf_input|;t t
11932s&@top_builddir@&$ac_top_builddir_sub&;t t
11933s&@top_build_prefix@&$ac_top_build_prefix&;t t
11934s&@srcdir@&$ac_srcdir&;t t
11935s&@abs_srcdir@&$ac_abs_srcdir&;t t
11936s&@top_srcdir@&$ac_top_srcdir&;t t
11937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11938s&@builddir@&$ac_builddir&;t t
11939s&@abs_builddir@&$ac_abs_builddir&;t t
11940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11941s&@INSTALL@&$ac_INSTALL&;t t
11942s&@MKDIR_P@&$ac_MKDIR_P&;t t
11943$ac_datarootdir_hack
11944"
11945eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11946  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11947
11948test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11949  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11950  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11951      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11952  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11953which seems to be undefined.  Please make sure it is defined" >&5
11954$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11955which seems to be undefined.  Please make sure it is defined" >&2;}
11956
11957  rm -f "$ac_tmp/stdin"
11958  case $ac_file in
11959  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11960  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11961  esac \
11962  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11963 ;;
11964  :H)
11965  #
11966  # CONFIG_HEADER
11967  #
11968  if test x"$ac_file" != x-; then
11969    {
11970      $as_echo "/* $configure_input  */" \
11971      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11972    } >"$ac_tmp/config.h" \
11973      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11974    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11975      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11976$as_echo "$as_me: $ac_file is unchanged" >&6;}
11977    else
11978      rm -f "$ac_file"
11979      mv "$ac_tmp/config.h" "$ac_file" \
11980	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11981    fi
11982  else
11983    $as_echo "/* $configure_input  */" \
11984      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11985      || as_fn_error $? "could not create -" "$LINENO" 5
11986  fi
11987# Compute "$ac_file"'s index in $config_headers.
11988_am_arg="$ac_file"
11989_am_stamp_count=1
11990for _am_header in $config_headers :; do
11991  case $_am_header in
11992    $_am_arg | $_am_arg:* )
11993      break ;;
11994    * )
11995      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11996  esac
11997done
11998echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11999$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12000	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12001	 X"$_am_arg" : 'X\(//\)$' \| \
12002	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12003$as_echo X"$_am_arg" |
12004    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12005	    s//\1/
12006	    q
12007	  }
12008	  /^X\(\/\/\)[^/].*/{
12009	    s//\1/
12010	    q
12011	  }
12012	  /^X\(\/\/\)$/{
12013	    s//\1/
12014	    q
12015	  }
12016	  /^X\(\/\).*/{
12017	    s//\1/
12018	    q
12019	  }
12020	  s/.*/./; q'`/stamp-h$_am_stamp_count
12021 ;;
12022
12023  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12024$as_echo "$as_me: executing $ac_file commands" >&6;}
12025 ;;
12026  esac
12027
12028
12029  case $ac_file$ac_mode in
12030    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12031  # Older Autoconf quotes --file arguments for eval, but not when files
12032  # are listed without --file.  Let's play safe and only enable the eval
12033  # if we detect the quoting.
12034  # TODO: see whether this extra hack can be removed once we start
12035  # requiring Autoconf 2.70 or later.
12036  case $CONFIG_FILES in #(
12037  *\'*) :
12038    eval set x "$CONFIG_FILES" ;; #(
12039  *) :
12040    set x $CONFIG_FILES ;; #(
12041  *) :
12042     ;;
12043esac
12044  shift
12045  # Used to flag and report bootstrapping failures.
12046  am_rc=0
12047  for am_mf
12048  do
12049    # Strip MF so we end up with the name of the file.
12050    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12051    # Check whether this is an Automake generated Makefile which includes
12052    # dependency-tracking related rules and includes.
12053    # Grep'ing the whole file directly is not great: AIX grep has a line
12054    # limit of 2048, but all sed's we know have understand at least 4000.
12055    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12056      || continue
12057    am_dirpart=`$as_dirname -- "$am_mf" ||
12058$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12059	 X"$am_mf" : 'X\(//\)[^/]' \| \
12060	 X"$am_mf" : 'X\(//\)$' \| \
12061	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12062$as_echo X"$am_mf" |
12063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12064	    s//\1/
12065	    q
12066	  }
12067	  /^X\(\/\/\)[^/].*/{
12068	    s//\1/
12069	    q
12070	  }
12071	  /^X\(\/\/\)$/{
12072	    s//\1/
12073	    q
12074	  }
12075	  /^X\(\/\).*/{
12076	    s//\1/
12077	    q
12078	  }
12079	  s/.*/./; q'`
12080    am_filepart=`$as_basename -- "$am_mf" ||
12081$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12082	 X"$am_mf" : 'X\(//\)$' \| \
12083	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12084$as_echo X/"$am_mf" |
12085    sed '/^.*\/\([^/][^/]*\)\/*$/{
12086	    s//\1/
12087	    q
12088	  }
12089	  /^X\/\(\/\/\)$/{
12090	    s//\1/
12091	    q
12092	  }
12093	  /^X\/\(\/\).*/{
12094	    s//\1/
12095	    q
12096	  }
12097	  s/.*/./; q'`
12098    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12099      && sed -e '/# am--include-marker/d' "$am_filepart" \
12100        | $MAKE -f - am--depfiles" >&5
12101   (cd "$am_dirpart" \
12102      && sed -e '/# am--include-marker/d' "$am_filepart" \
12103        | $MAKE -f - am--depfiles) >&5 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } || am_rc=$?
12107  done
12108  if test $am_rc -ne 0; then
12109    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12111as_fn_error $? "Something went wrong bootstrapping makefile fragments
12112    for automatic dependency tracking.  Try re-running configure with the
12113    '--disable-dependency-tracking' option to at least be able to build
12114    the package (albeit without support for automatic dependency tracking).
12115See \`config.log' for more details" "$LINENO" 5; }
12116  fi
12117  { am_dirpart=; unset am_dirpart;}
12118  { am_filepart=; unset am_filepart;}
12119  { am_mf=; unset am_mf;}
12120  { am_rc=; unset am_rc;}
12121  rm -f conftest-deps.mk
12122}
12123 ;;
12124    "pynslcd/constants.py":F)
12125(
12126  echo ''
12127  echo '# The following is automatically generated from nslcd.h.'
12128  echo '# See that file for details.'
12129  echo ''
12130  sed -n 's| */\*.*\*/ *||;s/^.define  *\(NSLCD_[A-Z_]*\)  */\1 = /p' "$srcdir"/nslcd.h
12131) >> pynslcd/constants.py ;;
12132
12133  esac
12134done # for ac_tag
12135
12136
12137as_fn_exit 0
12138_ACEOF
12139ac_clean_files=$ac_clean_files_save
12140
12141test $ac_write_fail = 0 ||
12142  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12143
12144
12145# configure is writing to config.log, and then calls config.status.
12146# config.status does its own redirection, appending to config.log.
12147# Unfortunately, on DOS this fails, as config.log is still kept open
12148# by configure, so config.status won't be able to write to it; its
12149# output is simply discarded.  So we exec the FD to /dev/null,
12150# effectively closing config.log, so it can be properly (re)opened and
12151# appended to by config.status.  When coming back to configure, we
12152# need to make the FD available again.
12153if test "$no_create" != yes; then
12154  ac_cs_success=:
12155  ac_config_status_args=
12156  test "$silent" = yes &&
12157    ac_config_status_args="$ac_config_status_args --quiet"
12158  exec 5>/dev/null
12159  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12160  exec 5>>config.log
12161  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12162  # would make configure fail if this is the last instruction.
12163  $ac_cs_success || as_fn_exit 1
12164fi
12165if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12166  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12167$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12168fi
12169
12170