1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cfengine 3.17.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='cfengine'
589PACKAGE_TARNAME='cfengine'
590PACKAGE_VERSION='3.17.0'
591PACKAGE_STRING='cfengine 3.17.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libpromises/generic_agent.c"
596: "${AR_FLAGS=cr}"
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_config_libobj_dir=libntech/libcompat
634ac_header_list=
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639subdirs
640post_macros
641ENABLE_COVERAGE_FALSE
642ENABLE_COVERAGE_TRUE
643LCOV_GENHTML
644LCOV
645HOSTNAME
646WITH_SELINUX_FALSE
647WITH_SELINUX_TRUE
648OS_ENVIRONMENT_PATH
649WITH_SYSTEMD_SERVICE_FALSE
650WITH_SYSTEMD_SERVICE_TRUE
651SYSTEMD_SERVICE_PATH
652systemctl
653WITH_INIT_D_SCRIPT_FALSE
654WITH_INIT_D_SCRIPT_TRUE
655INIT_D_PATH
656statedir
657piddir
658logdir
659inputdir
660masterdir
661workdir
662XNU_FALSE
663XNU_TRUE
664NETBSD_FALSE
665NETBSD_TRUE
666HPUX_FALSE
667HPUX_TRUE
668AIX_FALSE
669AIX_TRUE
670CYGWIN_FALSE
671CYGWIN_TRUE
672NT_FALSE
673NT_TRUE
674SOLARIS_FALSE
675SOLARIS_TRUE
676MACOSX_FALSE
677MACOSX_TRUE
678LINUX_FALSE
679LINUX_TRUE
680FREEBSD_FALSE
681FREEBSD_TRUE
682CORE_LIBS
683CORE_LDFLAGS
684CORE_CFLAGS
685CORE_CPPFLAGS
686hw_cv_func_rename_proper
687hw_cv_func_stat_proper
688hw_cv_func_mkdir_proper
689hw_cv_func_ctime_proper
690HAVE_USERS_PROMISE_DEPS_FALSE
691HAVE_USERS_PROMISE_DEPS_TRUE
692PAM_LIBS
693PAM_LDFLAGS
694PAM_CFLAGS
695PAM_CPPFLAGS
696PAM_PATH
697GETLOADAVG_LIBS
698KMEM_GROUP
699NEED_SETGID
700LIBOBJS
701HAVE_AVAHI_COMMON_FALSE
702HAVE_AVAHI_COMMON_TRUE
703HAVE_AVAHI_CLIENT_FALSE
704HAVE_AVAHI_CLIENT_TRUE
705HAVE_LIBXML2_FALSE
706HAVE_LIBXML2_TRUE
707LIBXML2_LIBS
708LIBXML2_LDFLAGS
709LIBXML2_CFLAGS
710LIBXML2_CPPFLAGS
711LIBXML2_PATH
712LIBYAML_LIBS
713LIBYAML_LDFLAGS
714LIBYAML_CFLAGS
715LIBYAML_CPPFLAGS
716LIBYAML_PATH
717HAVE_LIBCURL_FALSE
718HAVE_LIBCURL_TRUE
719LIBCURL_LIBS
720LIBCURL_LDFLAGS
721LIBCURL_CFLAGS
722LIBCURL_CPPFLAGS
723LIBCURL_PATH
724LIBACL_LIBS
725LIBACL_LDFLAGS
726LIBACL_CFLAGS
727LIBACL_CPPFLAGS
728LIBACL_PATH
729LIBVIRT_LIBS
730LIBVIRT_LDFLAGS
731LIBVIRT_CFLAGS
732LIBVIRT_CPPFLAGS
733LIBVIRT_PATH
734PCRE_LIBS
735PCRE_LDFLAGS
736PCRE_CFLAGS
737PCRE_CPPFLAGS
738PCRE_PATH
739OPENSSL_LIBS
740OPENSSL_LDFLAGS
741OPENSSL_CFLAGS
742OPENSSL_CPPFLAGS
743OPENSSL_PATH
744LMDB_LIBS
745LMDB_LDFLAGS
746LMDB_CFLAGS
747LMDB_CPPFLAGS
748LMDB_PATH
749TOKYOCABINET_LIBS
750TOKYOCABINET_LDFLAGS
751TOKYOCABINET_CFLAGS
752TOKYOCABINET_CPPFLAGS
753TOKYOCABINET_PATH
754QDBM_LIBS
755QDBM_LDFLAGS
756QDBM_CFLAGS
757QDBM_CPPFLAGS
758QDBM_PATH
759MYSQL_LIBS
760MYSQL_LDFLAGS
761MYSQL_CFLAGS
762MYSQL_CPPFLAGS
763MYSQL_PATH
764POSTGRESQL_LIBS
765POSTGRESQL_LDFLAGS
766POSTGRESQL_CFLAGS
767POSTGRESQL_CPPFLAGS
768POSTGRESQL_PATH
769NDEBUG_FALSE
770NDEBUG_TRUE
771projlibdir
772enable_builtin_extensions
773BUILTIN_EXTENSIONS_FALSE
774BUILTIN_EXTENSIONS_TRUE
775PTHREAD_CFLAGS
776PTHREAD_LIBS
777PTHREAD_CC
778acx_pthread_config
779CROSS_COMPILING_FALSE
780CROSS_COMPILING_TRUE
781GETCONF
782PERL
783YFLAGS
784YACC
785LEXLIB
786LEX_OUTPUT_ROOT
787LEX
788LT_SYS_LIBRARY_PATH
789OTOOL64
790OTOOL
791LIPO
792NMEDIT
793DSYMUTIL
794MANIFEST_TOOL
795RANLIB
796ac_ct_AR
797AR
798DLLTOOL
799OBJDUMP
800LN_S
801NM
802ac_ct_DUMPBIN
803DUMPBIN
804LD
805FGREP
806EGREP
807GREP
808SED
809LIBTOOL
810CPP
811am__fastdepCC_FALSE
812am__fastdepCC_TRUE
813CCDEPMODE
814am__nodep
815AMDEPBACKSLASH
816AMDEP_FALSE
817AMDEP_TRUE
818am__quote
819am__include
820DEPDIR
821OBJEXT
822EXEEXT
823ac_ct_CC
824CPPFLAGS
825LDFLAGS
826CFLAGS
827CC
828MAINT
829MAINTAINER_MODE_FALSE
830MAINTAINER_MODE_TRUE
831AM_BACKSLASH
832AM_DEFAULT_VERBOSITY
833AM_DEFAULT_V
834AM_V
835am__untar
836am__tar
837AMTAR
838am__leading_dot
839SET_MAKE
840AWK
841mkdir_p
842MKDIR_P
843INSTALL_STRIP_PROGRAM
844STRIP
845install_sh
846AUTOHEADER
847AUTOMAKE
848AUTOCONF
849ACLOCAL
850VERSION
851PACKAGE
852CYGPATH_W
853am__isrc
854INSTALL_DATA
855INSTALL_SCRIPT
856INSTALL_PROGRAM
857MAKEINFO
858target_os
859target_vendor
860target_cpu
861target
862host_os
863host_vendor
864host_cpu
865host
866build_os
867build_vendor
868build_cpu
869build
870target_alias
871host_alias
872build_alias
873LIBS
874ECHO_T
875ECHO_N
876ECHO_C
877DEFS
878mandir
879localedir
880libdir
881psdir
882pdfdir
883dvidir
884htmldir
885infodir
886docdir
887oldincludedir
888includedir
889runstatedir
890localstatedir
891sharedstatedir
892sysconfdir
893datadir
894datarootdir
895libexecdir
896sbindir
897bindir
898program_transform_name
899prefix
900exec_prefix
901PACKAGE_URL
902PACKAGE_BUGREPORT
903PACKAGE_STRING
904PACKAGE_VERSION
905PACKAGE_TARNAME
906PACKAGE_NAME
907PATH_SEPARATOR
908SHELL'
909ac_subst_files=''
910ac_user_opts='
911enable_option_checking
912enable_silent_rules
913enable_maintainer_mode
914enable_dependency_tracking
915enable_static
916enable_shared
917with_pic
918enable_fast_install
919with_aix_soname
920with_gnu_ld
921with_sysroot
922enable_libtool_lock
923with_pthreads
924enable_builtin_extensions
925enable_fhs
926enable_debug
927with_sql
928with_postgresql
929with_mysql
930with_qdbm
931with_tokyocabinet
932with_lmdb
933with_openssl
934with_pcre
935with_libvirt
936with_libacl
937with_libcurl
938with_libyaml
939with_libxml2
940enable_largefile
941with_pam
942enable_selinux
943with_workdir
944with_masterdir
945with_inputdir
946with_logdir
947with_piddir
948with_statedir
949with_shell
950with_init_script
951with_systemd_service
952with_environment_path
953with_selinux_policy
954enable_coverage
955'
956      ac_precious_vars='build_alias
957host_alias
958target_alias
959CC
960CFLAGS
961LDFLAGS
962LIBS
963CPPFLAGS
964CPP
965LT_SYS_LIBRARY_PATH
966YACC
967YFLAGS'
968ac_subdirs_all='libntech'
969
970# Initialize some variables set by options.
971ac_init_help=
972ac_init_version=false
973ac_unrecognized_opts=
974ac_unrecognized_sep=
975# The variables have the same names as the options, with
976# dashes changed to underlines.
977cache_file=/dev/null
978exec_prefix=NONE
979no_create=
980no_recursion=
981prefix=NONE
982program_prefix=NONE
983program_suffix=NONE
984program_transform_name=s,x,x,
985silent=
986site=
987srcdir=
988verbose=
989x_includes=NONE
990x_libraries=NONE
991
992# Installation directory options.
993# These are left unexpanded so users can "make install exec_prefix=/foo"
994# and all the variables that are supposed to be based on exec_prefix
995# by default will actually change.
996# Use braces instead of parens because sh, perl, etc. also accept them.
997# (The list follows the same order as the GNU Coding Standards.)
998bindir='${exec_prefix}/bin'
999sbindir='${exec_prefix}/sbin'
1000libexecdir='${exec_prefix}/libexec'
1001datarootdir='${prefix}/share'
1002datadir='${datarootdir}'
1003sysconfdir='${prefix}/etc'
1004sharedstatedir='${prefix}/com'
1005localstatedir='${prefix}/var'
1006runstatedir='${localstatedir}/run'
1007includedir='${prefix}/include'
1008oldincludedir='/usr/include'
1009docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010infodir='${datarootdir}/info'
1011htmldir='${docdir}'
1012dvidir='${docdir}'
1013pdfdir='${docdir}'
1014psdir='${docdir}'
1015libdir='${exec_prefix}/lib'
1016localedir='${datarootdir}/locale'
1017mandir='${datarootdir}/man'
1018
1019ac_prev=
1020ac_dashdash=
1021for ac_option
1022do
1023  # If the previous option needs an argument, assign it.
1024  if test -n "$ac_prev"; then
1025    eval $ac_prev=\$ac_option
1026    ac_prev=
1027    continue
1028  fi
1029
1030  case $ac_option in
1031  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032  *=)   ac_optarg= ;;
1033  *)    ac_optarg=yes ;;
1034  esac
1035
1036  # Accept the important Cygnus configure options, so we can diagnose typos.
1037
1038  case $ac_dashdash$ac_option in
1039  --)
1040    ac_dashdash=yes ;;
1041
1042  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043    ac_prev=bindir ;;
1044  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045    bindir=$ac_optarg ;;
1046
1047  -build | --build | --buil | --bui | --bu)
1048    ac_prev=build_alias ;;
1049  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050    build_alias=$ac_optarg ;;
1051
1052  -cache-file | --cache-file | --cache-fil | --cache-fi \
1053  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054    ac_prev=cache_file ;;
1055  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057    cache_file=$ac_optarg ;;
1058
1059  --config-cache | -C)
1060    cache_file=config.cache ;;
1061
1062  -datadir | --datadir | --datadi | --datad)
1063    ac_prev=datadir ;;
1064  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065    datadir=$ac_optarg ;;
1066
1067  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068  | --dataroo | --dataro | --datar)
1069    ac_prev=datarootdir ;;
1070  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072    datarootdir=$ac_optarg ;;
1073
1074  -disable-* | --disable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid feature name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=no ;;
1089
1090  -docdir | --docdir | --docdi | --doc | --do)
1091    ac_prev=docdir ;;
1092  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093    docdir=$ac_optarg ;;
1094
1095  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096    ac_prev=dvidir ;;
1097  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098    dvidir=$ac_optarg ;;
1099
1100  -enable-* | --enable-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error $? "invalid feature name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"enable_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval enable_$ac_useropt=\$ac_optarg ;;
1115
1116  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118  | --exec | --exe | --ex)
1119    ac_prev=exec_prefix ;;
1120  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122  | --exec=* | --exe=* | --ex=*)
1123    exec_prefix=$ac_optarg ;;
1124
1125  -gas | --gas | --ga | --g)
1126    # Obsolete; use --with-gas.
1127    with_gas=yes ;;
1128
1129  -help | --help | --hel | --he | -h)
1130    ac_init_help=long ;;
1131  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132    ac_init_help=recursive ;;
1133  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134    ac_init_help=short ;;
1135
1136  -host | --host | --hos | --ho)
1137    ac_prev=host_alias ;;
1138  -host=* | --host=* | --hos=* | --ho=*)
1139    host_alias=$ac_optarg ;;
1140
1141  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142    ac_prev=htmldir ;;
1143  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144  | --ht=*)
1145    htmldir=$ac_optarg ;;
1146
1147  -includedir | --includedir | --includedi | --included | --include \
1148  | --includ | --inclu | --incl | --inc)
1149    ac_prev=includedir ;;
1150  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151  | --includ=* | --inclu=* | --incl=* | --inc=*)
1152    includedir=$ac_optarg ;;
1153
1154  -infodir | --infodir | --infodi | --infod | --info | --inf)
1155    ac_prev=infodir ;;
1156  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157    infodir=$ac_optarg ;;
1158
1159  -libdir | --libdir | --libdi | --libd)
1160    ac_prev=libdir ;;
1161  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162    libdir=$ac_optarg ;;
1163
1164  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165  | --libexe | --libex | --libe)
1166    ac_prev=libexecdir ;;
1167  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168  | --libexe=* | --libex=* | --libe=*)
1169    libexecdir=$ac_optarg ;;
1170
1171  -localedir | --localedir | --localedi | --localed | --locale)
1172    ac_prev=localedir ;;
1173  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174    localedir=$ac_optarg ;;
1175
1176  -localstatedir | --localstatedir | --localstatedi | --localstated \
1177  | --localstate | --localstat | --localsta | --localst | --locals)
1178    ac_prev=localstatedir ;;
1179  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181    localstatedir=$ac_optarg ;;
1182
1183  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184    ac_prev=mandir ;;
1185  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186    mandir=$ac_optarg ;;
1187
1188  -nfp | --nfp | --nf)
1189    # Obsolete; use --without-fp.
1190    with_fp=no ;;
1191
1192  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193  | --no-cr | --no-c | -n)
1194    no_create=yes ;;
1195
1196  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198    no_recursion=yes ;;
1199
1200  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202  | --oldin | --oldi | --old | --ol | --o)
1203    ac_prev=oldincludedir ;;
1204  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207    oldincludedir=$ac_optarg ;;
1208
1209  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210    ac_prev=prefix ;;
1211  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212    prefix=$ac_optarg ;;
1213
1214  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215  | --program-pre | --program-pr | --program-p)
1216    ac_prev=program_prefix ;;
1217  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219    program_prefix=$ac_optarg ;;
1220
1221  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222  | --program-suf | --program-su | --program-s)
1223    ac_prev=program_suffix ;;
1224  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226    program_suffix=$ac_optarg ;;
1227
1228  -program-transform-name | --program-transform-name \
1229  | --program-transform-nam | --program-transform-na \
1230  | --program-transform-n | --program-transform- \
1231  | --program-transform | --program-transfor \
1232  | --program-transfo | --program-transf \
1233  | --program-trans | --program-tran \
1234  | --progr-tra | --program-tr | --program-t)
1235    ac_prev=program_transform_name ;;
1236  -program-transform-name=* | --program-transform-name=* \
1237  | --program-transform-nam=* | --program-transform-na=* \
1238  | --program-transform-n=* | --program-transform-=* \
1239  | --program-transform=* | --program-transfor=* \
1240  | --program-transfo=* | --program-transf=* \
1241  | --program-trans=* | --program-tran=* \
1242  | --progr-tra=* | --program-tr=* | --program-t=*)
1243    program_transform_name=$ac_optarg ;;
1244
1245  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246    ac_prev=pdfdir ;;
1247  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248    pdfdir=$ac_optarg ;;
1249
1250  -psdir | --psdir | --psdi | --psd | --ps)
1251    ac_prev=psdir ;;
1252  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253    psdir=$ac_optarg ;;
1254
1255  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256  | -silent | --silent | --silen | --sile | --sil)
1257    silent=yes ;;
1258
1259  -runstatedir | --runstatedir | --runstatedi | --runstated \
1260  | --runstate | --runstat | --runsta | --runst | --runs \
1261  | --run | --ru | --r)
1262    ac_prev=runstatedir ;;
1263  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1264  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1265  | --run=* | --ru=* | --r=*)
1266    runstatedir=$ac_optarg ;;
1267
1268  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269    ac_prev=sbindir ;;
1270  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271  | --sbi=* | --sb=*)
1272    sbindir=$ac_optarg ;;
1273
1274  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276  | --sharedst | --shareds | --shared | --share | --shar \
1277  | --sha | --sh)
1278    ac_prev=sharedstatedir ;;
1279  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282  | --sha=* | --sh=*)
1283    sharedstatedir=$ac_optarg ;;
1284
1285  -site | --site | --sit)
1286    ac_prev=site ;;
1287  -site=* | --site=* | --sit=*)
1288    site=$ac_optarg ;;
1289
1290  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291    ac_prev=srcdir ;;
1292  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293    srcdir=$ac_optarg ;;
1294
1295  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296  | --syscon | --sysco | --sysc | --sys | --sy)
1297    ac_prev=sysconfdir ;;
1298  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300    sysconfdir=$ac_optarg ;;
1301
1302  -target | --target | --targe | --targ | --tar | --ta | --t)
1303    ac_prev=target_alias ;;
1304  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305    target_alias=$ac_optarg ;;
1306
1307  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308    verbose=yes ;;
1309
1310  -version | --version | --versio | --versi | --vers | -V)
1311    ac_init_version=: ;;
1312
1313  -with-* | --with-*)
1314    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315    # Reject names that are not valid shell variable names.
1316    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317      as_fn_error $? "invalid package name: $ac_useropt"
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=\$ac_optarg ;;
1328
1329  -without-* | --without-*)
1330    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331    # Reject names that are not valid shell variable names.
1332    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333      as_fn_error $? "invalid package name: $ac_useropt"
1334    ac_useropt_orig=$ac_useropt
1335    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336    case $ac_user_opts in
1337      *"
1338"with_$ac_useropt"
1339"*) ;;
1340      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341	 ac_unrecognized_sep=', ';;
1342    esac
1343    eval with_$ac_useropt=no ;;
1344
1345  --x)
1346    # Obsolete; use --with-x.
1347    with_x=yes ;;
1348
1349  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350  | --x-incl | --x-inc | --x-in | --x-i)
1351    ac_prev=x_includes ;;
1352  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354    x_includes=$ac_optarg ;;
1355
1356  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358    ac_prev=x_libraries ;;
1359  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361    x_libraries=$ac_optarg ;;
1362
1363  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1364Try \`$0 --help' for more information"
1365    ;;
1366
1367  *=*)
1368    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369    # Reject names that are not valid shell variable names.
1370    case $ac_envvar in #(
1371      '' | [0-9]* | *[!_$as_cr_alnum]* )
1372      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1373    esac
1374    eval $ac_envvar=\$ac_optarg
1375    export $ac_envvar ;;
1376
1377  *)
1378    # FIXME: should be removed in autoconf 3.0.
1379    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1380    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1382    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1383    ;;
1384
1385  esac
1386done
1387
1388if test -n "$ac_prev"; then
1389  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390  as_fn_error $? "missing argument to $ac_option"
1391fi
1392
1393if test -n "$ac_unrecognized_opts"; then
1394  case $enable_option_checking in
1395    no) ;;
1396    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1397    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1398  esac
1399fi
1400
1401# Check all directory arguments for consistency.
1402for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403		datadir sysconfdir sharedstatedir localstatedir includedir \
1404		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405		libdir localedir mandir runstatedir
1406do
1407  eval ac_val=\$$ac_var
1408  # Remove trailing slashes.
1409  case $ac_val in
1410    */ )
1411      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412      eval $ac_var=\$ac_val;;
1413  esac
1414  # Be sure to have absolute directory names.
1415  case $ac_val in
1416    [\\/$]* | ?:[\\/]* )  continue;;
1417    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1418  esac
1419  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1420done
1421
1422# There might be people who depend on the old broken behavior: `$host'
1423# used to hold the argument of --host etc.
1424# FIXME: To remove some day.
1425build=$build_alias
1426host=$host_alias
1427target=$target_alias
1428
1429# FIXME: To remove some day.
1430if test "x$host_alias" != x; then
1431  if test "x$build_alias" = x; then
1432    cross_compiling=maybe
1433  elif test "x$build_alias" != "x$host_alias"; then
1434    cross_compiling=yes
1435  fi
1436fi
1437
1438ac_tool_prefix=
1439test -n "$host_alias" && ac_tool_prefix=$host_alias-
1440
1441test "$silent" = yes && exec 6>/dev/null
1442
1443
1444ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445ac_ls_di=`ls -di .` &&
1446ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447  as_fn_error $? "working directory cannot be determined"
1448test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1449  as_fn_error $? "pwd does not report name of working directory"
1450
1451
1452# Find the source files, if location was not specified.
1453if test -z "$srcdir"; then
1454  ac_srcdir_defaulted=yes
1455  # Try the directory containing this script, then the parent directory.
1456  ac_confdir=`$as_dirname -- "$as_myself" ||
1457$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458	 X"$as_myself" : 'X\(//\)[^/]' \| \
1459	 X"$as_myself" : 'X\(//\)$' \| \
1460	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461$as_echo X"$as_myself" |
1462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463	    s//\1/
1464	    q
1465	  }
1466	  /^X\(\/\/\)[^/].*/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\/\)$/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\).*/{
1475	    s//\1/
1476	    q
1477	  }
1478	  s/.*/./; q'`
1479  srcdir=$ac_confdir
1480  if test ! -r "$srcdir/$ac_unique_file"; then
1481    srcdir=..
1482  fi
1483else
1484  ac_srcdir_defaulted=no
1485fi
1486if test ! -r "$srcdir/$ac_unique_file"; then
1487  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1489fi
1490ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491ac_abs_confdir=`(
1492	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1493	pwd)`
1494# When building in place, set srcdir=.
1495if test "$ac_abs_confdir" = "$ac_pwd"; then
1496  srcdir=.
1497fi
1498# Remove unnecessary trailing slashes from srcdir.
1499# Double slashes in file names in object file debugging info
1500# mess up M-x gdb in Emacs.
1501case $srcdir in
1502*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503esac
1504for ac_var in $ac_precious_vars; do
1505  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506  eval ac_env_${ac_var}_value=\$${ac_var}
1507  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509done
1510
1511#
1512# Report the --help message.
1513#
1514if test "$ac_init_help" = "long"; then
1515  # Omit some internal or obsolete options to make the list less imposing.
1516  # This message is too long to be a string in the A/UX 3.1 sh.
1517  cat <<_ACEOF
1518\`configure' configures cfengine 3.17.0 to adapt to many kinds of systems.
1519
1520Usage: $0 [OPTION]... [VAR=VALUE]...
1521
1522To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523VAR=VALUE.  See below for descriptions of some of the useful variables.
1524
1525Defaults for the options are specified in brackets.
1526
1527Configuration:
1528  -h, --help              display this help and exit
1529      --help=short        display options specific to this package
1530      --help=recursive    display the short help of all the included packages
1531  -V, --version           display version information and exit
1532  -q, --quiet, --silent   do not print \`checking ...' messages
1533      --cache-file=FILE   cache test results in FILE [disabled]
1534  -C, --config-cache      alias for \`--cache-file=config.cache'
1535  -n, --no-create         do not create output files
1536      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1537
1538Installation directories:
1539  --prefix=PREFIX         install architecture-independent files in PREFIX
1540                          [$ac_default_prefix]
1541  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1542                          [PREFIX]
1543
1544By default, \`make install' will install all the files in
1545\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1546an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547for instance \`--prefix=\$HOME'.
1548
1549For better control, use the options below.
1550
1551Fine tuning of the installation directories:
1552  --bindir=DIR            user executables [EPREFIX/bin]
1553  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1554  --libexecdir=DIR        program executables [EPREFIX/libexec]
1555  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1556  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1557  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1558  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1559  --libdir=DIR            object code libraries [EPREFIX/lib]
1560  --includedir=DIR        C header files [PREFIX/include]
1561  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564  --infodir=DIR           info documentation [DATAROOTDIR/info]
1565  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566  --mandir=DIR            man documentation [DATAROOTDIR/man]
1567  --docdir=DIR            documentation root [DATAROOTDIR/doc/cfengine]
1568  --htmldir=DIR           html documentation [DOCDIR]
1569  --dvidir=DIR            dvi documentation [DOCDIR]
1570  --pdfdir=DIR            pdf documentation [DOCDIR]
1571  --psdir=DIR             ps documentation [DOCDIR]
1572_ACEOF
1573
1574  cat <<\_ACEOF
1575
1576Program names:
1577  --program-prefix=PREFIX            prepend PREFIX to installed program names
1578  --program-suffix=SUFFIX            append SUFFIX to installed program names
1579  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1580
1581System types:
1582  --build=BUILD     configure for building on BUILD [guessed]
1583  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1584  --target=TARGET   configure for building compilers for TARGET [HOST]
1585_ACEOF
1586fi
1587
1588if test -n "$ac_init_help"; then
1589  case $ac_init_help in
1590     short | recursive ) echo "Configuration of cfengine 3.17.0:";;
1591   esac
1592  cat <<\_ACEOF
1593
1594Optional Features:
1595  --disable-option-checking  ignore unrecognized --enable/--with options
1596  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1597  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1598  --enable-silent-rules   less verbose build output (undo: "make V=1")
1599  --disable-silent-rules  verbose build output (undo: "make V=0")
1600  --disable-maintainer-mode
1601                          disable make rules and dependencies not useful (and
1602                          sometimes confusing) to the casual installer
1603  --enable-dependency-tracking
1604                          do not reject slow dependency extractors
1605  --disable-dependency-tracking
1606                          speeds up one-time build
1607  --enable-static[=PKGS]  build static libraries [default=no]
1608  --enable-shared[=PKGS]  build shared libraries [default=yes]
1609  --enable-fast-install[=PKGS]
1610                          optimize for fast installation [default=yes]
1611  --disable-libtool-lock  avoid locking (might break parallel builds)
1612  Build binaries with builtin extensions
1613
1614  --enable-fhs            Enable FHS compliance. Defaults to custom CFEngine
1615                          files layout
1616  --enable-debug          Enable debugging
1617  --disable-largefile     omit support for large files
1618  --enable-selinux        Deprecated. SELinux support is always enabled
1619  --enable-coverage       Enable code coverage
1620
1621Optional Packages:
1622  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1623  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1624  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1625                          both]
1626  --with-aix-soname=aix|svr4|both
1627                          shared library versioning (aka "SONAME") variant to
1628                          provide on AIX, [default=aix].
1629  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1630  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1631                          compiler's sysroot if not specified).
1632  --with-pthreads[=PATH]  Specify path to pthreads, if not the part of
1633                          operating system
1634  --with-sql[=PATH]       Enable SQL database connectors (deprecated, use
1635                          --with[[out]]-postgresql and --with[[out]]-mysql
1636                          instead)
1637
1638  --with-postgresql[=PATH]
1639                          Enable PostgreSQL connector
1640
1641  --with-mysql[=PATH]     Enable MySQL connector
1642
1643  --with-qdbm[=PATH]      use QDBM to store runtime data
1644  --with-tokyocabinet[=PATH]
1645                          use Tokyo Cabinet to store runtime data
1646  --with-lmdb[=PATH]      use Lightning MDB to store runtime data
1647  --with-openssl[=PATH]   Specify OpenSSL path
1648  --with-pcre[=PATH]      Specify PCRE path
1649  --with-libvirt[=PATH]   support virtual machine management
1650  --with-libacl[=PATH]    Specify libacl path
1651  --with-libcurl[=PATH]   Specify libcurl path
1652  --with-libyaml[=PATH]   Specify libyaml path
1653  --with-libxml2[=PATH]   Specify libxml2 path
1654
1655  --with-pam              Compile with PAM support
1656  --with-workdir=WORKDIR  default for internal (trusted) working directory
1657  --with-masterdir=MASTERDIR  default for internal masterfiles directory
1658  --with-inputdir=INPUTDIR  default for internal inputs directory
1659  --with-logdir=LOGDIR  default for internal log directory
1660  --with-piddir=LOGDIR  default for internal pid directory
1661  --with-statedir=STATEDIR  default for internal state directory
1662  --with-shell=PATH       Specify path to POSIX-compatible shell (if not
1663                          /bin/sh)
1664  --with-init-script=PATH Install init.d script in given path. The default is
1665                          no, but if specified, the default path is platform
1666                          specific.
1667  --with-systemd-service=PATH
1668                          Install systemd service file in given path. The
1669                          default is no, but if specified, the default path is
1670                          /usr/lib/systemd/system.
1671  --with-environment-path=PATH
1672                          Specifies the location of the environment files for
1673                          the platform. Currently used only by systemd.
1674  --with-selinux-policy   Whether to build and install SELinux policy
1675                          (default: no)
1676
1677Some influential environment variables:
1678  CC          C compiler command
1679  CFLAGS      C compiler flags
1680  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1681              nonstandard directory <lib dir>
1682  LIBS        libraries to pass to the linker, e.g. -l<library>
1683  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1684              you have headers in a nonstandard directory <include dir>
1685  CPP         C preprocessor
1686  LT_SYS_LIBRARY_PATH
1687              User-defined run-time library search path.
1688  YACC        The `Yet Another Compiler Compiler' implementation to use.
1689              Defaults to the first program found out of: `bison -y', `byacc',
1690              `yacc'.
1691  YFLAGS      The list of arguments that will be passed by default to $YACC.
1692              This script will default YFLAGS to the empty string to avoid a
1693              default value of `-d' given by some make applications.
1694
1695Use these variables to override the choices made by `configure' or to help
1696it to find libraries and programs with nonstandard names/locations.
1697
1698Report bugs to the package provider.
1699_ACEOF
1700ac_status=$?
1701fi
1702
1703if test "$ac_init_help" = "recursive"; then
1704  # If there are subdirs, report their specific --help.
1705  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706    test -d "$ac_dir" ||
1707      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708      continue
1709    ac_builddir=.
1710
1711case "$ac_dir" in
1712.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713*)
1714  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715  # A ".." for each directory in $ac_dir_suffix.
1716  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717  case $ac_top_builddir_sub in
1718  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720  esac ;;
1721esac
1722ac_abs_top_builddir=$ac_pwd
1723ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724# for backward compatibility:
1725ac_top_builddir=$ac_top_build_prefix
1726
1727case $srcdir in
1728  .)  # We are building in place.
1729    ac_srcdir=.
1730    ac_top_srcdir=$ac_top_builddir_sub
1731    ac_abs_top_srcdir=$ac_pwd ;;
1732  [\\/]* | ?:[\\/]* )  # Absolute name.
1733    ac_srcdir=$srcdir$ac_dir_suffix;
1734    ac_top_srcdir=$srcdir
1735    ac_abs_top_srcdir=$srcdir ;;
1736  *) # Relative name.
1737    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738    ac_top_srcdir=$ac_top_build_prefix$srcdir
1739    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740esac
1741ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742
1743    cd "$ac_dir" || { ac_status=$?; continue; }
1744    # Check for guested configure.
1745    if test -f "$ac_srcdir/configure.gnu"; then
1746      echo &&
1747      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748    elif test -f "$ac_srcdir/configure"; then
1749      echo &&
1750      $SHELL "$ac_srcdir/configure" --help=recursive
1751    else
1752      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753    fi || ac_status=$?
1754    cd "$ac_pwd" || { ac_status=$?; break; }
1755  done
1756fi
1757
1758test -n "$ac_init_help" && exit $ac_status
1759if $ac_init_version; then
1760  cat <<\_ACEOF
1761cfengine configure 3.17.0
1762generated by GNU Autoconf 2.69
1763
1764Copyright (C) 2012 Free Software Foundation, Inc.
1765This configure script is free software; the Free Software Foundation
1766gives unlimited permission to copy, distribute and modify it.
1767_ACEOF
1768  exit
1769fi
1770
1771## ------------------------ ##
1772## Autoconf initialization. ##
1773## ------------------------ ##
1774
1775# ac_fn_c_try_compile LINENO
1776# --------------------------
1777# Try to compile conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_compile ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  rm -f conftest.$ac_objext
1782  if { { ac_try="$ac_compile"
1783case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789  (eval "$ac_compile") 2>conftest.err
1790  ac_status=$?
1791  if test -s conftest.err; then
1792    grep -v '^ *+' conftest.err >conftest.er1
1793    cat conftest.er1 >&5
1794    mv -f conftest.er1 conftest.err
1795  fi
1796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; } && {
1798	 test -z "$ac_c_werror_flag" ||
1799	 test ! -s conftest.err
1800       } && test -s conftest.$ac_objext; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806	ac_retval=1
1807fi
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_compile
1812
1813# ac_fn_c_try_cpp LINENO
1814# ----------------------
1815# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_cpp ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_cpp conftest.$ac_ext"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827  ac_status=$?
1828  if test -s conftest.err; then
1829    grep -v '^ *+' conftest.err >conftest.er1
1830    cat conftest.er1 >&5
1831    mv -f conftest.er1 conftest.err
1832  fi
1833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; } > conftest.i && {
1835	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836	 test ! -s conftest.err
1837       }; then :
1838  ac_retval=0
1839else
1840  $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843    ac_retval=1
1844fi
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846  as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_cpp
1849
1850# ac_fn_c_try_link LINENO
1851# -----------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_c_try_link ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  rm -f conftest.$ac_objext conftest$ac_exeext
1857  if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864  (eval "$ac_link") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } && {
1873	 test -z "$ac_c_werror_flag" ||
1874	 test ! -s conftest.err
1875       } && test -s conftest$ac_exeext && {
1876	 test "$cross_compiling" = yes ||
1877	 test -x conftest$ac_exeext
1878       }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884	ac_retval=1
1885fi
1886  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888  # interfere with the next link command; also delete a directory that is
1889  # left behind by Apple's compiler.  We do this before executing the actions.
1890  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892  as_fn_set_status $ac_retval
1893
1894} # ac_fn_c_try_link
1895
1896# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897# -------------------------------------------------------
1898# Tests whether HEADER exists and can be compiled using the include files in
1899# INCLUDES, setting the cache variable VAR accordingly.
1900ac_fn_c_check_header_compile ()
1901{
1902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907else
1908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910$4
1911#include <$2>
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925} # ac_fn_c_check_header_compile
1926
1927# ac_fn_c_try_run LINENO
1928# ----------------------
1929# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1930# that executables *can* be run.
1931ac_fn_c_try_run ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  if { { ac_try="$ac_link"
1935case "(($ac_try" in
1936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937  *) ac_try_echo=$ac_try;;
1938esac
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
1941  (eval "$ac_link") 2>&5
1942  ac_status=$?
1943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1945  { { case "(($ac_try" in
1946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947  *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
1951  (eval "$ac_try") 2>&5
1952  ac_status=$?
1953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954  test $ac_status = 0; }; }; then :
1955  ac_retval=0
1956else
1957  $as_echo "$as_me: program exited with status $ac_status" >&5
1958       $as_echo "$as_me: failed program was:" >&5
1959sed 's/^/| /' conftest.$ac_ext >&5
1960
1961       ac_retval=$ac_status
1962fi
1963  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965  as_fn_set_status $ac_retval
1966
1967} # ac_fn_c_try_run
1968
1969# ac_fn_c_check_func LINENO FUNC VAR
1970# ----------------------------------
1971# Tests whether FUNC exists, setting the cache variable VAR accordingly
1972ac_fn_c_check_func ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval \${$3+:} false; then :
1978  $as_echo_n "(cached) " >&6
1979else
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1983   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1984#define $2 innocuous_$2
1985
1986/* System header to define __stub macros and hopefully few prototypes,
1987    which can conflict with char $2 (); below.
1988    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1989    <limits.h> exists even on freestanding compilers.  */
1990
1991#ifdef __STDC__
1992# include <limits.h>
1993#else
1994# include <assert.h>
1995#endif
1996
1997#undef $2
1998
1999/* Override any GCC internal prototype to avoid an error.
2000   Use char because int might match the return type of a GCC
2001   builtin and then its argument prototype would still apply.  */
2002#ifdef __cplusplus
2003extern "C"
2004#endif
2005char $2 ();
2006/* The GNU C library defines this for functions which it implements
2007    to always fail with ENOSYS.  Some functions are actually named
2008    something starting with __ and the normal name is an alias.  */
2009#if defined __stub_$2 || defined __stub___$2
2010choke me
2011#endif
2012
2013int
2014main ()
2015{
2016return $2 ();
2017  ;
2018  return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_link "$LINENO"; then :
2022  eval "$3=yes"
2023else
2024  eval "$3=no"
2025fi
2026rm -f core conftest.err conftest.$ac_objext \
2027    conftest$ac_exeext conftest.$ac_ext
2028fi
2029eval ac_res=\$$3
2030	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031$as_echo "$ac_res" >&6; }
2032  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034} # ac_fn_c_check_func
2035
2036# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2037# -------------------------------------------------------
2038# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2039# the include files in INCLUDES and setting the cache variable VAR
2040# accordingly.
2041ac_fn_c_check_header_mongrel ()
2042{
2043  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044  if eval \${$3+:} false; then :
2045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046$as_echo_n "checking for $2... " >&6; }
2047if eval \${$3+:} false; then :
2048  $as_echo_n "(cached) " >&6
2049fi
2050eval ac_res=\$$3
2051	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053else
2054  # Is the header compilable?
2055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2056$as_echo_n "checking $2 usability... " >&6; }
2057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h.  */
2059$4
2060#include <$2>
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063  ac_header_compiler=yes
2064else
2065  ac_header_compiler=no
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2069$as_echo "$ac_header_compiler" >&6; }
2070
2071# Is the header present?
2072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2073$as_echo_n "checking $2 presence... " >&6; }
2074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076#include <$2>
2077_ACEOF
2078if ac_fn_c_try_cpp "$LINENO"; then :
2079  ac_header_preproc=yes
2080else
2081  ac_header_preproc=no
2082fi
2083rm -f conftest.err conftest.i conftest.$ac_ext
2084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2085$as_echo "$ac_header_preproc" >&6; }
2086
2087# So?  What about this header?
2088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2089  yes:no: )
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2091$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094    ;;
2095  no:yes:* )
2096    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2097$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2098    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2099$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2101$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2102    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2103$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2104    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106    ;;
2107esac
2108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109$as_echo_n "checking for $2... " >&6; }
2110if eval \${$3+:} false; then :
2111  $as_echo_n "(cached) " >&6
2112else
2113  eval "$3=\$ac_header_compiler"
2114fi
2115eval ac_res=\$$3
2116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118fi
2119  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121} # ac_fn_c_check_header_mongrel
2122
2123# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124# ---------------------------------------------
2125# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2126# accordingly.
2127ac_fn_c_check_decl ()
2128{
2129  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130  as_decl_name=`echo $2|sed 's/ *(.*//'`
2131  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134if eval \${$3+:} false; then :
2135  $as_echo_n "(cached) " >&6
2136else
2137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140int
2141main ()
2142{
2143#ifndef $as_decl_name
2144#ifdef __cplusplus
2145  (void) $as_decl_use;
2146#else
2147  (void) $as_decl_name;
2148#endif
2149#endif
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156  eval "$3=yes"
2157else
2158  eval "$3=no"
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$3
2163	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_c_check_decl
2168
2169# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2170# -------------------------------------------
2171# Tests whether TYPE exists after having included INCLUDES, setting cache
2172# variable VAR accordingly.
2173ac_fn_c_check_type ()
2174{
2175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177$as_echo_n "checking for $2... " >&6; }
2178if eval \${$3+:} false; then :
2179  $as_echo_n "(cached) " >&6
2180else
2181  eval "$3=no"
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main ()
2187{
2188if (sizeof ($2))
2189	 return 0;
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197$4
2198int
2199main ()
2200{
2201if (sizeof (($2)))
2202	    return 0;
2203  ;
2204  return 0;
2205}
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"; then :
2208
2209else
2210  eval "$3=yes"
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215fi
2216eval ac_res=\$$3
2217	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218$as_echo "$ac_res" >&6; }
2219  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220
2221} # ac_fn_c_check_type
2222
2223# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2224# ----------------------------------------------------
2225# Tries to find if the field MEMBER exists in type AGGR, after including
2226# INCLUDES, setting cache variable VAR accordingly.
2227ac_fn_c_check_member ()
2228{
2229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2231$as_echo_n "checking for $2.$3... " >&6; }
2232if eval \${$4+:} false; then :
2233  $as_echo_n "(cached) " >&6
2234else
2235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$5
2238int
2239main ()
2240{
2241static $2 ac_aggr;
2242if (ac_aggr.$3)
2243return 0;
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249  eval "$4=yes"
2250else
2251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h.  */
2253$5
2254int
2255main ()
2256{
2257static $2 ac_aggr;
2258if (sizeof ac_aggr.$3)
2259return 0;
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_compile "$LINENO"; then :
2265  eval "$4=yes"
2266else
2267  eval "$4=no"
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270fi
2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272fi
2273eval ac_res=\$$4
2274	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275$as_echo "$ac_res" >&6; }
2276  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277
2278} # ac_fn_c_check_member
2279cat >config.log <<_ACEOF
2280This file contains any messages produced by compilers while
2281running configure, to aid debugging if configure makes a mistake.
2282
2283It was created by cfengine $as_me 3.17.0, which was
2284generated by GNU Autoconf 2.69.  Invocation command line was
2285
2286  $ $0 $@
2287
2288_ACEOF
2289exec 5>>config.log
2290{
2291cat <<_ASUNAME
2292## --------- ##
2293## Platform. ##
2294## --------- ##
2295
2296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300uname -v = `(uname -v) 2>/dev/null || echo unknown`
2301
2302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2304
2305/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2306/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2309/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2310/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2311/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2312
2313_ASUNAME
2314
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318  IFS=$as_save_IFS
2319  test -z "$as_dir" && as_dir=.
2320    $as_echo "PATH: $as_dir"
2321  done
2322IFS=$as_save_IFS
2323
2324} >&5
2325
2326cat >&5 <<_ACEOF
2327
2328
2329## ----------- ##
2330## Core tests. ##
2331## ----------- ##
2332
2333_ACEOF
2334
2335
2336# Keep a trace of the command line.
2337# Strip out --no-create and --no-recursion so they do not pile up.
2338# Strip out --silent because we don't want to record it for future runs.
2339# Also quote any args containing shell meta-characters.
2340# Make two passes to allow for proper duplicate-argument suppression.
2341ac_configure_args=
2342ac_configure_args0=
2343ac_configure_args1=
2344ac_must_keep_next=false
2345for ac_pass in 1 2
2346do
2347  for ac_arg
2348  do
2349    case $ac_arg in
2350    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352    | -silent | --silent | --silen | --sile | --sil)
2353      continue ;;
2354    *\'*)
2355      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2356    esac
2357    case $ac_pass in
2358    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2359    2)
2360      as_fn_append ac_configure_args1 " '$ac_arg'"
2361      if test $ac_must_keep_next = true; then
2362	ac_must_keep_next=false # Got value, back to normal.
2363      else
2364	case $ac_arg in
2365	  *=* | --config-cache | -C | -disable-* | --disable-* \
2366	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368	  | -with-* | --with-* | -without-* | --without-* | --x)
2369	    case "$ac_configure_args0 " in
2370	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2371	    esac
2372	    ;;
2373	  -* ) ac_must_keep_next=true ;;
2374	esac
2375      fi
2376      as_fn_append ac_configure_args " '$ac_arg'"
2377      ;;
2378    esac
2379  done
2380done
2381{ ac_configure_args0=; unset ac_configure_args0;}
2382{ ac_configure_args1=; unset ac_configure_args1;}
2383
2384# When interrupted or exit'd, cleanup temporary files, and complete
2385# config.log.  We remove comments because anyway the quotes in there
2386# would cause problems or look ugly.
2387# WARNING: Use '\'' to represent an apostrophe within the trap.
2388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389trap 'exit_status=$?
2390  # Save into config.log some information that might help in debugging.
2391  {
2392    echo
2393
2394    $as_echo "## ---------------- ##
2395## Cache variables. ##
2396## ---------------- ##"
2397    echo
2398    # The following way of writing the cache mishandles newlines in values,
2399(
2400  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2401    eval ac_val=\$$ac_var
2402    case $ac_val in #(
2403    *${as_nl}*)
2404      case $ac_var in #(
2405      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2407      esac
2408      case $ac_var in #(
2409      _ | IFS | as_nl) ;; #(
2410      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2411      *) { eval $ac_var=; unset $ac_var;} ;;
2412      esac ;;
2413    esac
2414  done
2415  (set) 2>&1 |
2416    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2417    *${as_nl}ac_space=\ *)
2418      sed -n \
2419	"s/'\''/'\''\\\\'\'''\''/g;
2420	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2421      ;; #(
2422    *)
2423      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2424      ;;
2425    esac |
2426    sort
2427)
2428    echo
2429
2430    $as_echo "## ----------------- ##
2431## Output variables. ##
2432## ----------------- ##"
2433    echo
2434    for ac_var in $ac_subst_vars
2435    do
2436      eval ac_val=\$$ac_var
2437      case $ac_val in
2438      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439      esac
2440      $as_echo "$ac_var='\''$ac_val'\''"
2441    done | sort
2442    echo
2443
2444    if test -n "$ac_subst_files"; then
2445      $as_echo "## ------------------- ##
2446## File substitutions. ##
2447## ------------------- ##"
2448      echo
2449      for ac_var in $ac_subst_files
2450      do
2451	eval ac_val=\$$ac_var
2452	case $ac_val in
2453	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454	esac
2455	$as_echo "$ac_var='\''$ac_val'\''"
2456      done | sort
2457      echo
2458    fi
2459
2460    if test -s confdefs.h; then
2461      $as_echo "## ----------- ##
2462## confdefs.h. ##
2463## ----------- ##"
2464      echo
2465      cat confdefs.h
2466      echo
2467    fi
2468    test "$ac_signal" != 0 &&
2469      $as_echo "$as_me: caught signal $ac_signal"
2470    $as_echo "$as_me: exit $exit_status"
2471  } >&5
2472  rm -f core *.core core.conftest.* &&
2473    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2474    exit $exit_status
2475' 0
2476for ac_signal in 1 2 13 15; do
2477  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2478done
2479ac_signal=0
2480
2481# confdefs.h avoids OS command line length limits that DEFS can exceed.
2482rm -f -r conftest* confdefs.h
2483
2484$as_echo "/* confdefs.h */" > confdefs.h
2485
2486# Predefined preprocessor variables.
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_NAME "$PACKAGE_NAME"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2494_ACEOF
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_VERSION "$PACKAGE_VERSION"
2498_ACEOF
2499
2500cat >>confdefs.h <<_ACEOF
2501#define PACKAGE_STRING "$PACKAGE_STRING"
2502_ACEOF
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2506_ACEOF
2507
2508cat >>confdefs.h <<_ACEOF
2509#define PACKAGE_URL "$PACKAGE_URL"
2510_ACEOF
2511
2512
2513# Let the site file select an alternate cache file if it wants to.
2514# Prefer an explicitly selected file to automatically selected ones.
2515ac_site_file1=NONE
2516ac_site_file2=NONE
2517if test -n "$CONFIG_SITE"; then
2518  # We do not want a PATH search for config.site.
2519  case $CONFIG_SITE in #((
2520    -*)  ac_site_file1=./$CONFIG_SITE;;
2521    */*) ac_site_file1=$CONFIG_SITE;;
2522    *)   ac_site_file1=./$CONFIG_SITE;;
2523  esac
2524elif test "x$prefix" != xNONE; then
2525  ac_site_file1=$prefix/share/config.site
2526  ac_site_file2=$prefix/etc/config.site
2527else
2528  ac_site_file1=$ac_default_prefix/share/config.site
2529  ac_site_file2=$ac_default_prefix/etc/config.site
2530fi
2531for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532do
2533  test "x$ac_site_file" = xNONE && continue
2534  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2535    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537    sed 's/^/| /' "$ac_site_file" >&5
2538    . "$ac_site_file" \
2539      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541as_fn_error $? "failed to load site script $ac_site_file
2542See \`config.log' for more details" "$LINENO" 5; }
2543  fi
2544done
2545
2546if test -r "$cache_file"; then
2547  # Some versions of bash will fail to source /dev/null (special files
2548  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2549  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2550    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2551$as_echo "$as_me: loading cache $cache_file" >&6;}
2552    case $cache_file in
2553      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554      *)                      . "./$cache_file";;
2555    esac
2556  fi
2557else
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2559$as_echo "$as_me: creating cache $cache_file" >&6;}
2560  >$cache_file
2561fi
2562
2563as_fn_append ac_header_list " sys/sysmacros.h"
2564# Check that the precious variables saved in the cache have kept the same
2565# value.
2566ac_cache_corrupted=false
2567for ac_var in $ac_precious_vars; do
2568  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569  eval ac_new_set=\$ac_env_${ac_var}_set
2570  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571  eval ac_new_val=\$ac_env_${ac_var}_value
2572  case $ac_old_set,$ac_new_set in
2573    set,)
2574      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576      ac_cache_corrupted=: ;;
2577    ,set)
2578      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580      ac_cache_corrupted=: ;;
2581    ,);;
2582    *)
2583      if test "x$ac_old_val" != "x$ac_new_val"; then
2584	# differences in whitespace do not lead to failure.
2585	ac_old_val_w=`echo x $ac_old_val`
2586	ac_new_val_w=`echo x $ac_new_val`
2587	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590	  ac_cache_corrupted=:
2591	else
2592	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594	  eval $ac_var=\$ac_old_val
2595	fi
2596	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2597$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2599$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2600      fi;;
2601  esac
2602  # Pass precious variables to config.status.
2603  if test "$ac_new_set" = set; then
2604    case $ac_new_val in
2605    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606    *) ac_arg=$ac_var=$ac_new_val ;;
2607    esac
2608    case " $ac_configure_args " in
2609      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2610      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611    esac
2612  fi
2613done
2614if $ac_cache_corrupted; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620fi
2621## -------------------- ##
2622## Main body of script. ##
2623## -------------------- ##
2624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633ac_aux_dir=
2634for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2635  if test -f "$ac_dir/install-sh"; then
2636    ac_aux_dir=$ac_dir
2637    ac_install_sh="$ac_aux_dir/install-sh -c"
2638    break
2639  elif test -f "$ac_dir/install.sh"; then
2640    ac_aux_dir=$ac_dir
2641    ac_install_sh="$ac_aux_dir/install.sh -c"
2642    break
2643  elif test -f "$ac_dir/shtool"; then
2644    ac_aux_dir=$ac_dir
2645    ac_install_sh="$ac_aux_dir/shtool install -c"
2646    break
2647  fi
2648done
2649if test -z "$ac_aux_dir"; then
2650  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2651fi
2652
2653# These three variables are undocumented and unsupported,
2654# and are intended to be withdrawn in a future Autoconf release.
2655# They can cause serious problems if a builder's source tree is in a directory
2656# whose full name contains unusual characters.
2657ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2658ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2659ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2660
2661
2662# Make sure we can run config.sub.
2663$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2664  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2665
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2667$as_echo_n "checking build system type... " >&6; }
2668if ${ac_cv_build+:} false; then :
2669  $as_echo_n "(cached) " >&6
2670else
2671  ac_build_alias=$build_alias
2672test "x$ac_build_alias" = x &&
2673  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2674test "x$ac_build_alias" = x &&
2675  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2676ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2677  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2678
2679fi
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2681$as_echo "$ac_cv_build" >&6; }
2682case $ac_cv_build in
2683*-*-*) ;;
2684*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2685esac
2686build=$ac_cv_build
2687ac_save_IFS=$IFS; IFS='-'
2688set x $ac_cv_build
2689shift
2690build_cpu=$1
2691build_vendor=$2
2692shift; shift
2693# Remember, the first character of IFS is used to create $*,
2694# except with old shells:
2695build_os=$*
2696IFS=$ac_save_IFS
2697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2698
2699
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2701$as_echo_n "checking host system type... " >&6; }
2702if ${ac_cv_host+:} false; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  if test "x$host_alias" = x; then
2706  ac_cv_host=$ac_cv_build
2707else
2708  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2709    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2710fi
2711
2712fi
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2714$as_echo "$ac_cv_host" >&6; }
2715case $ac_cv_host in
2716*-*-*) ;;
2717*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2718esac
2719host=$ac_cv_host
2720ac_save_IFS=$IFS; IFS='-'
2721set x $ac_cv_host
2722shift
2723host_cpu=$1
2724host_vendor=$2
2725shift; shift
2726# Remember, the first character of IFS is used to create $*,
2727# except with old shells:
2728host_os=$*
2729IFS=$ac_save_IFS
2730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2731
2732
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2734$as_echo_n "checking target system type... " >&6; }
2735if ${ac_cv_target+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  if test "x$target_alias" = x; then
2739  ac_cv_target=$ac_cv_host
2740else
2741  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2742    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2743fi
2744
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2747$as_echo "$ac_cv_target" >&6; }
2748case $ac_cv_target in
2749*-*-*) ;;
2750*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2751esac
2752target=$ac_cv_target
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_target
2755shift
2756target_cpu=$1
2757target_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761target_os=$*
2762IFS=$ac_save_IFS
2763case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2764
2765
2766# The aliases save the names the user supplied, while $host etc.
2767# will get canonicalized.
2768test -n "$target_alias" &&
2769  test "$program_prefix$program_suffix$program_transform_name" = \
2770    NONENONEs,x,x, &&
2771  program_prefix=${target_alias}-
2772
2773# Extract the first word of "makeinfo", so it can be a program name with args.
2774set dummy makeinfo; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_MAKEINFO+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$MAKEINFO"; then
2781  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788    for ac_exec_ext in '' $ac_executable_extensions; do
2789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_MAKEINFO="makeinfo"
2791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795  done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800MAKEINFO=$ac_cv_prog_MAKEINFO
2801if test -n "$MAKEINFO"; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2803$as_echo "$MAKEINFO" >&6; }
2804else
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810
2811
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking automake version" >&5
2813$as_echo_n "checking automake version... " >&6; }
2814
2815
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.15" >&5
2817$as_echo "1.15" >&6; }
2818
2819
2820am__api_version='1.15'
2821
2822# Find a good install program.  We prefer a C program (faster),
2823# so one script is as good as another.  But avoid the broken or
2824# incompatible versions:
2825# SysV /etc/install, /usr/sbin/install
2826# SunOS /usr/etc/install
2827# IRIX /sbin/install
2828# AIX /bin/install
2829# AmigaOS /C/install, which installs bootblocks on floppy discs
2830# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2831# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2832# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2833# OS/2's system install, which has a completely different semantic
2834# ./install, which can be erroneously created by make from ./install.sh.
2835# Reject install programs that cannot install multiple files.
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2837$as_echo_n "checking for a BSD-compatible install... " >&6; }
2838if test -z "$INSTALL"; then
2839if ${ac_cv_path_install+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847    # Account for people who put trailing slashes in PATH elements.
2848case $as_dir/ in #((
2849  ./ | .// | /[cC]/* | \
2850  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2851  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2852  /usr/ucb/* ) ;;
2853  *)
2854    # OSF1 and SCO ODT 3.0 have their own names for install.
2855    # Don't use installbsd from OSF since it installs stuff as root
2856    # by default.
2857    for ac_prog in ginstall scoinst install; do
2858      for ac_exec_ext in '' $ac_executable_extensions; do
2859	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2860	  if test $ac_prog = install &&
2861	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862	    # AIX install.  It has an incompatible calling convention.
2863	    :
2864	  elif test $ac_prog = install &&
2865	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866	    # program-specific install script used by HP pwplus--don't use.
2867	    :
2868	  else
2869	    rm -rf conftest.one conftest.two conftest.dir
2870	    echo one > conftest.one
2871	    echo two > conftest.two
2872	    mkdir conftest.dir
2873	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2874	      test -s conftest.one && test -s conftest.two &&
2875	      test -s conftest.dir/conftest.one &&
2876	      test -s conftest.dir/conftest.two
2877	    then
2878	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2879	      break 3
2880	    fi
2881	  fi
2882	fi
2883      done
2884    done
2885    ;;
2886esac
2887
2888  done
2889IFS=$as_save_IFS
2890
2891rm -rf conftest.one conftest.two conftest.dir
2892
2893fi
2894  if test "${ac_cv_path_install+set}" = set; then
2895    INSTALL=$ac_cv_path_install
2896  else
2897    # As a last resort, use the slow shell script.  Don't cache a
2898    # value for INSTALL within a source directory, because that will
2899    # break other packages using the cache if that directory is
2900    # removed, or if the value is a relative name.
2901    INSTALL=$ac_install_sh
2902  fi
2903fi
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2905$as_echo "$INSTALL" >&6; }
2906
2907# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2908# It thinks the first close brace ends the variable substitution.
2909test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2910
2911test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2912
2913test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2914
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2916$as_echo_n "checking whether build environment is sane... " >&6; }
2917# Reject unsafe characters in $srcdir or the absolute working directory
2918# name.  Accept space and tab only in the latter.
2919am_lf='
2920'
2921case `pwd` in
2922  *[\\\"\#\$\&\'\`$am_lf]*)
2923    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2924esac
2925case $srcdir in
2926  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2927    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2928esac
2929
2930# Do 'set' in a subshell so we don't clobber the current shell's
2931# arguments.  Must try -L first in case configure is actually a
2932# symlink; some systems play weird games with the mod time of symlinks
2933# (eg FreeBSD returns the mod time of the symlink's containing
2934# directory).
2935if (
2936   am_has_slept=no
2937   for am_try in 1 2; do
2938     echo "timestamp, slept: $am_has_slept" > conftest.file
2939     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2940     if test "$*" = "X"; then
2941	# -L didn't work.
2942	set X `ls -t "$srcdir/configure" conftest.file`
2943     fi
2944     if test "$*" != "X $srcdir/configure conftest.file" \
2945	&& test "$*" != "X conftest.file $srcdir/configure"; then
2946
2947	# If neither matched, then we have a broken ls.  This can happen
2948	# if, for instance, CONFIG_SHELL is bash and it inherits a
2949	# broken ls alias from the environment.  This has actually
2950	# happened.  Such a system could not be considered "sane".
2951	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2952  alias in your environment" "$LINENO" 5
2953     fi
2954     if test "$2" = conftest.file || test $am_try -eq 2; then
2955       break
2956     fi
2957     # Just in case.
2958     sleep 1
2959     am_has_slept=yes
2960   done
2961   test "$2" = conftest.file
2962   )
2963then
2964   # Ok.
2965   :
2966else
2967   as_fn_error $? "newly created file is older than distributed files!
2968Check your system clock" "$LINENO" 5
2969fi
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971$as_echo "yes" >&6; }
2972# If we didn't sleep, we still need to ensure time stamps of config.status and
2973# generated files are strictly newer.
2974am_sleep_pid=
2975if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2976  ( sleep 1 ) &
2977  am_sleep_pid=$!
2978fi
2979
2980rm -f conftest.file
2981
2982test "$program_prefix" != NONE &&
2983  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2984# Use a double $ so make ignores it.
2985test "$program_suffix" != NONE &&
2986  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2987# Double any \ or $.
2988# By default was `s,x,x', remove it if useless.
2989ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2990program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2991
2992# Expand $ac_aux_dir to an absolute path.
2993am_aux_dir=`cd "$ac_aux_dir" && pwd`
2994
2995if test x"${MISSING+set}" != xset; then
2996  case $am_aux_dir in
2997  *\ * | *\	*)
2998    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2999  *)
3000    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3001  esac
3002fi
3003# Use eval to expand $SHELL
3004if eval "$MISSING --is-lightweight"; then
3005  am_missing_run="$MISSING "
3006else
3007  am_missing_run=
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3009$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3010fi
3011
3012if test x"${install_sh+set}" != xset; then
3013  case $am_aux_dir in
3014  *\ * | *\	*)
3015    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3016  *)
3017    install_sh="\${SHELL} $am_aux_dir/install-sh"
3018  esac
3019fi
3020
3021# Installed binaries are usually stripped using 'strip' when the user
3022# run "make install-strip".  However 'strip' might not be the right
3023# tool to use in cross-compilation environments, therefore Automake
3024# will honor the 'STRIP' environment variable to overrule this program.
3025if test "$cross_compiling" != no; then
3026  if test -n "$ac_tool_prefix"; then
3027  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028set dummy ${ac_tool_prefix}strip; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if ${ac_cv_prog_STRIP+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$STRIP"; then
3035  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042    for ac_exec_ext in '' $ac_executable_extensions; do
3043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054STRIP=$ac_cv_prog_STRIP
3055if test -n "$STRIP"; then
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057$as_echo "$STRIP" >&6; }
3058else
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064fi
3065if test -z "$ac_cv_prog_STRIP"; then
3066  ac_ct_STRIP=$STRIP
3067  # Extract the first word of "strip", so it can be a program name with args.
3068set dummy strip; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test -n "$ac_ct_STRIP"; then
3075  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_ac_ct_STRIP="strip"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3095if test -n "$ac_ct_STRIP"; then
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097$as_echo "$ac_ct_STRIP" >&6; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103  if test "x$ac_ct_STRIP" = x; then
3104    STRIP=":"
3105  else
3106    case $cross_compiling:$ac_tool_warned in
3107yes:)
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110ac_tool_warned=yes ;;
3111esac
3112    STRIP=$ac_ct_STRIP
3113  fi
3114else
3115  STRIP="$ac_cv_prog_STRIP"
3116fi
3117
3118fi
3119INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3120
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123if test -z "$MKDIR_P"; then
3124  if ${ac_cv_path_mkdir+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_prog in mkdir gmkdir; do
3133	 for ac_exec_ext in '' $ac_executable_extensions; do
3134	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3135	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136	     'mkdir (GNU coreutils) '* | \
3137	     'mkdir (coreutils) '* | \
3138	     'mkdir (fileutils) '4.1*)
3139	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3140	       break 3;;
3141	   esac
3142	 done
3143       done
3144  done
3145IFS=$as_save_IFS
3146
3147fi
3148
3149  test -d ./--version && rmdir ./--version
3150  if test "${ac_cv_path_mkdir+set}" = set; then
3151    MKDIR_P="$ac_cv_path_mkdir -p"
3152  else
3153    # As a last resort, use the slow shell script.  Don't cache a
3154    # value for MKDIR_P within a source directory, because that will
3155    # break other packages using the cache if that directory is
3156    # removed, or if the value is a relative name.
3157    MKDIR_P="$ac_install_sh -d"
3158  fi
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161$as_echo "$MKDIR_P" >&6; }
3162
3163
3164for ac_prog in gawk mawk nawk awk
3165do
3166  # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169$as_echo_n "checking for $ac_word... " >&6; }
3170if ${ac_cv_prog_AWK+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  if test -n "$AWK"; then
3174  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181    for ac_exec_ext in '' $ac_executable_extensions; do
3182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_AWK="$ac_prog"
3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191fi
3192fi
3193AWK=$ac_cv_prog_AWK
3194if test -n "$AWK"; then
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3196$as_echo "$AWK" >&6; }
3197else
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200fi
3201
3202
3203  test -n "$AWK" && break
3204done
3205
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3207$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3208set x ${MAKE-make}
3209ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3210if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  cat >conftest.make <<\_ACEOF
3214SHELL = /bin/sh
3215all:
3216	@echo '@@@%%%=$(MAKE)=@@@%%%'
3217_ACEOF
3218# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3219case `${MAKE-make} -f conftest.make 2>/dev/null` in
3220  *@@@%%%=?*=@@@%%%*)
3221    eval ac_cv_prog_make_${ac_make}_set=yes;;
3222  *)
3223    eval ac_cv_prog_make_${ac_make}_set=no;;
3224esac
3225rm -f conftest.make
3226fi
3227if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229$as_echo "yes" >&6; }
3230  SET_MAKE=
3231else
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
3234  SET_MAKE="MAKE=${MAKE-make}"
3235fi
3236
3237rm -rf .tst 2>/dev/null
3238mkdir .tst 2>/dev/null
3239if test -d .tst; then
3240  am__leading_dot=.
3241else
3242  am__leading_dot=_
3243fi
3244rmdir .tst 2>/dev/null
3245
3246# Check whether --enable-silent-rules was given.
3247if test "${enable_silent_rules+set}" = set; then :
3248  enableval=$enable_silent_rules;
3249fi
3250
3251case $enable_silent_rules in # (((
3252  yes) AM_DEFAULT_VERBOSITY=0;;
3253   no) AM_DEFAULT_VERBOSITY=1;;
3254    *) AM_DEFAULT_VERBOSITY=1;;
3255esac
3256am_make=${MAKE-make}
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3258$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3259if ${am_cv_make_support_nested_variables+:} false; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  if $as_echo 'TRUE=$(BAR$(V))
3263BAR0=false
3264BAR1=true
3265V=1
3266am__doit:
3267	@$(TRUE)
3268.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3269  am_cv_make_support_nested_variables=yes
3270else
3271  am_cv_make_support_nested_variables=no
3272fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3275$as_echo "$am_cv_make_support_nested_variables" >&6; }
3276if test $am_cv_make_support_nested_variables = yes; then
3277    AM_V='$(V)'
3278  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3279else
3280  AM_V=$AM_DEFAULT_VERBOSITY
3281  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3282fi
3283AM_BACKSLASH='\'
3284
3285if test "`cd $srcdir && pwd`" != "`pwd`"; then
3286  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3287  # is not polluted with repeated "-I."
3288  am__isrc=' -I$(srcdir)'
3289  # test to see if srcdir already configured
3290  if test -f $srcdir/config.status; then
3291    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3292  fi
3293fi
3294
3295# test whether we have cygpath
3296if test -z "$CYGPATH_W"; then
3297  if (cygpath --version) >/dev/null 2>/dev/null; then
3298    CYGPATH_W='cygpath -w'
3299  else
3300    CYGPATH_W=echo
3301  fi
3302fi
3303
3304
3305# Define the identity of the package.
3306 PACKAGE='cfengine'
3307 VERSION='3.17.0'
3308
3309
3310cat >>confdefs.h <<_ACEOF
3311#define PACKAGE "$PACKAGE"
3312_ACEOF
3313
3314
3315cat >>confdefs.h <<_ACEOF
3316#define VERSION "$VERSION"
3317_ACEOF
3318
3319# Some tools Automake needs.
3320
3321ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3322
3323
3324AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3325
3326
3327AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3328
3329
3330AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3331
3332
3333MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3334
3335# For better backward compatibility.  To be removed once Automake 1.9.x
3336# dies out for good.  For more background, see:
3337# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3338# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3339mkdir_p='$(MKDIR_P)'
3340
3341# We need awk for the "check" target (and possibly the TAP driver).  The
3342# system "awk" is bad on some platforms.
3343# Always define AMTAR for backward compatibility.  Yes, it's still used
3344# in the wild :-(  We should find a proper way to deprecate it ...
3345AMTAR='$${TAR-tar}'
3346
3347
3348# We'll loop over all known methods to create a tar archive until one works.
3349_am_tools='gnutar plaintar pax cpio none'
3350
3351# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3352      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3353      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3354      # and bug#13588).
3355      am_max_uid=2097151 # 2^21 - 1
3356      am_max_gid=$am_max_uid
3357      # The $UID and $GID variables are not portable, so we need to resort
3358      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3359      # below are definitely unexpected, so allow the users to see them
3360      # (that is, avoid stderr redirection).
3361      am_uid=`id -u || echo unknown`
3362      am_gid=`id -g || echo unknown`
3363      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3364$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3365      if test $am_uid -le $am_max_uid; then
3366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367$as_echo "yes" >&6; }
3368      else
3369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371         _am_tools=none
3372      fi
3373      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3374$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3375      if test $am_gid -le $am_max_gid; then
3376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377$as_echo "yes" >&6; }
3378      else
3379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380$as_echo "no" >&6; }
3381        _am_tools=none
3382      fi
3383
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3385$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3386
3387  # Go ahead even if we have the value already cached.  We do so because we
3388  # need to set the values for the 'am__tar' and 'am__untar' variables.
3389  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3390
3391  for _am_tool in $_am_tools; do
3392    case $_am_tool in
3393    gnutar)
3394      for _am_tar in tar gnutar gtar; do
3395        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3396   ($_am_tar --version) >&5 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } && break
3400      done
3401
3402      # Work around CFEngine redmine #6925 by using --hard-dereference.
3403      { echo "$as_me:$LINENO: $_am_tar --hard-dereference  2>&1 | grep 'unrecognized option'" >&5
3404   ($_am_tar --hard-dereference  2>&1 | grep 'unrecognized option') >&5 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }
3408      # Check if --hard-dereference is supported by this version of GNU Tar
3409      if test "$ac_status" -eq 0; then
3410        _am_gnutar_hard_dereference=false
3411        am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3412        am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3413      else
3414        _am_gnutar_hard_dereference=true
3415        am__tar="$_am_tar --format=ustar --hard-dereference -chf - "'"$$tardir"'
3416        am__tar_="$_am_tar --format=ustar --hard-dereference -chf - "'"$tardir"'
3417      fi
3418
3419      am__untar="$_am_tar -xf -"
3420      ;;
3421    plaintar)
3422      # Must skip GNU tar: if it does not support --format= it doesn't create
3423      # ustar tarball either.
3424      (tar --version) >/dev/null 2>&1 && continue
3425      am__tar='tar chf - "$$tardir"'
3426      am__tar_='tar chf - "$tardir"'
3427      am__untar='tar xf -'
3428      ;;
3429    pax)
3430      am__tar='pax -L -x ustar -w "$$tardir"'
3431      am__tar_='pax -L -x ustar -w "$tardir"'
3432      am__untar='pax -r'
3433      ;;
3434    cpio)
3435      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3436      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3437      am__untar='cpio -i -H ustar -d'
3438      ;;
3439    none)
3440      am__tar=false
3441      am__tar_=false
3442      am__untar=false
3443      ;;
3444    esac
3445
3446    # If the value was cached, stop now.  We just wanted to have am__tar
3447    # and am__untar set.
3448    test -n "${am_cv_prog_tar_ustar}" && break
3449
3450    # tar/untar a dummy directory, and stop if the command works.
3451    rm -rf conftest.dir
3452    mkdir conftest.dir
3453    echo GrepMe > conftest.dir/file
3454    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3455   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }
3459    rm -rf conftest.dir
3460    if test -s conftest.tar; then
3461      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3462   ($am__untar <conftest.tar) >&5 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); }
3466      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3467   (cat conftest.dir/file) >&5 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }
3471      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3472    fi
3473  done
3474  rm -rf conftest.dir
3475
3476  if ${am_cv_prog_tar_ustar+:} false; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  am_cv_prog_tar_ustar=$_am_tool
3480fi
3481
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3483$as_echo "$am_cv_prog_tar_ustar" >&6; }
3484
3485  if test $_am_tool = gnutar; then
3486    # We've checked already, so we're just printing here
3487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNU tar supports --hard-dereference" >&5
3488$as_echo_n "checking if GNU tar supports --hard-dereference... " >&6; }
3489    if test x$_am_gnutar_hard_dereference = xtrue; then
3490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491$as_echo "yes" >&6; }
3492    else
3493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495    fi
3496  fi
3497
3498
3499
3500
3501
3502
3503# POSIX will say in a future version that running "rm -f" with no argument
3504# is OK; and we want to be able to make that assumption in our Makefile
3505# recipes.  So use an aggressive probe to check that the usage we want is
3506# actually supported "in the wild" to an acceptable degree.
3507# See automake bug#10828.
3508# To make any issue more visible, cause the running configure to be aborted
3509# by default if the 'rm' program in use doesn't match our expectations; the
3510# user can still override this though.
3511if rm -f && rm -fr && rm -rf; then : OK; else
3512  cat >&2 <<'END'
3513Oops!
3514
3515Your 'rm' program seems unable to run without file operands specified
3516on the command line, even when the '-f' option is present.  This is contrary
3517to the behaviour of most rm programs out there, and not conforming with
3518the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3519
3520Please tell bug-automake@gnu.org about your system, including the value
3521of your $PATH and any error possibly output before this message.  This
3522can help us improve future automake versions.
3523
3524END
3525  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3526    echo 'Configuration will proceed anyway, since you have set the' >&2
3527    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3528    echo >&2
3529  else
3530    cat >&2 <<'END'
3531Aborting the configuration process, to ensure you take notice of the issue.
3532
3533You can download and install GNU coreutils to get an 'rm' implementation
3534that behaves properly: <http://www.gnu.org/software/coreutils/>.
3535
3536If you want to complete the configuration process using your problematic
3537'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3538to "yes", and re-run configure.
3539
3540END
3541    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3542  fi
3543fi
3544
3545
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3547$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3548    # Check whether --enable-maintainer-mode was given.
3549if test "${enable_maintainer_mode+set}" = set; then :
3550  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3551else
3552  USE_MAINTAINER_MODE=yes
3553fi
3554
3555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3556$as_echo "$USE_MAINTAINER_MODE" >&6; }
3557   if test $USE_MAINTAINER_MODE = yes; then
3558  MAINTAINER_MODE_TRUE=
3559  MAINTAINER_MODE_FALSE='#'
3560else
3561  MAINTAINER_MODE_TRUE='#'
3562  MAINTAINER_MODE_FALSE=
3563fi
3564
3565  MAINT=$MAINTAINER_MODE_TRUE
3566
3567
3568
3569
3570
3571cfengine_version=3.17.0
3572
3573
3574
3575
3576
3577if test -n "$RELEASE"; then :
3578
3579cat >>confdefs.h <<_ACEOF
3580#define RELEASE "$RELEASE"
3581_ACEOF
3582
3583else
3584
3585$as_echo "#define RELEASE \"1\"" >>confdefs.h
3586
3587fi
3588
3589
3590$as_echo "#define BUILD_YEAR 2020" >>confdefs.h
3591
3592
3593
3594cat >>confdefs.h <<_ACEOF
3595#define ABS_TOP_SRCDIR "`cd -- "$srcdir"; pwd`"
3596_ACEOF
3597
3598
3599# Check whether --enable-silent-rules was given.
3600if test "${enable_silent_rules+set}" = set; then :
3601  enableval=$enable_silent_rules;
3602fi
3603
3604case $enable_silent_rules in # (((
3605  yes) AM_DEFAULT_VERBOSITY=0;;
3606   no) AM_DEFAULT_VERBOSITY=1;;
3607    *) AM_DEFAULT_VERBOSITY=0;;
3608esac
3609am_make=${MAKE-make}
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3611$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3612if ${am_cv_make_support_nested_variables+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  if $as_echo 'TRUE=$(BAR$(V))
3616BAR0=false
3617BAR1=true
3618V=1
3619am__doit:
3620	@$(TRUE)
3621.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3622  am_cv_make_support_nested_variables=yes
3623else
3624  am_cv_make_support_nested_variables=no
3625fi
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3628$as_echo "$am_cv_make_support_nested_variables" >&6; }
3629if test $am_cv_make_support_nested_variables = yes; then
3630    AM_V='$(V)'
3631  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3632else
3633  AM_V=$AM_DEFAULT_VERBOSITY
3634  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3635fi
3636AM_BACKSLASH='\'
3637
3638
3639ac_config_headers="$ac_config_headers config.h"
3640
3641
3642
3643
3644
3645
3646
3647
3648ENV_CFLAGS="$CFLAGS"
3649
3650
3651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656if test -n "$ac_tool_prefix"; then
3657  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if ${ac_cv_prog_CC+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if test -n "$CC"; then
3665  ac_cv_prog_CC="$CC" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670  IFS=$as_save_IFS
3671  test -z "$as_dir" && as_dir=.
3672    for ac_exec_ext in '' $ac_executable_extensions; do
3673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676    break 2
3677  fi
3678done
3679  done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684CC=$ac_cv_prog_CC
3685if test -n "$CC"; then
3686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687$as_echo "$CC" >&6; }
3688else
3689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693
3694fi
3695if test -z "$ac_cv_prog_CC"; then
3696  ac_ct_CC=$CC
3697  # Extract the first word of "gcc", so it can be a program name with args.
3698set dummy gcc; ac_word=$2
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700$as_echo_n "checking for $ac_word... " >&6; }
3701if ${ac_cv_prog_ac_ct_CC+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  if test -n "$ac_ct_CC"; then
3705  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710  IFS=$as_save_IFS
3711  test -z "$as_dir" && as_dir=.
3712    for ac_exec_ext in '' $ac_executable_extensions; do
3713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714    ac_cv_prog_ac_ct_CC="gcc"
3715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716    break 2
3717  fi
3718done
3719  done
3720IFS=$as_save_IFS
3721
3722fi
3723fi
3724ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725if test -n "$ac_ct_CC"; then
3726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727$as_echo "$ac_ct_CC" >&6; }
3728else
3729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730$as_echo "no" >&6; }
3731fi
3732
3733  if test "x$ac_ct_CC" = x; then
3734    CC=""
3735  else
3736    case $cross_compiling:$ac_tool_warned in
3737yes:)
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740ac_tool_warned=yes ;;
3741esac
3742    CC=$ac_ct_CC
3743  fi
3744else
3745  CC="$ac_cv_prog_CC"
3746fi
3747
3748if test -z "$CC"; then
3749          if test -n "$ac_tool_prefix"; then
3750    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3751set dummy ${ac_tool_prefix}cc; ac_word=$2
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753$as_echo_n "checking for $ac_word... " >&6; }
3754if ${ac_cv_prog_CC+:} false; then :
3755  $as_echo_n "(cached) " >&6
3756else
3757  if test -n "$CC"; then
3758  ac_cv_prog_CC="$CC" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763  IFS=$as_save_IFS
3764  test -z "$as_dir" && as_dir=.
3765    for ac_exec_ext in '' $ac_executable_extensions; do
3766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767    ac_cv_prog_CC="${ac_tool_prefix}cc"
3768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769    break 2
3770  fi
3771done
3772  done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777CC=$ac_cv_prog_CC
3778if test -n "$CC"; then
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780$as_echo "$CC" >&6; }
3781else
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783$as_echo "no" >&6; }
3784fi
3785
3786
3787  fi
3788fi
3789if test -z "$CC"; then
3790  # Extract the first word of "cc", so it can be a program name with args.
3791set dummy cc; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
3794if ${ac_cv_prog_CC+:} false; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  if test -n "$CC"; then
3798  ac_cv_prog_CC="$CC" # Let the user override the test.
3799else
3800  ac_prog_rejected=no
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3809       ac_prog_rejected=yes
3810       continue
3811     fi
3812    ac_cv_prog_CC="cc"
3813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814    break 2
3815  fi
3816done
3817  done
3818IFS=$as_save_IFS
3819
3820if test $ac_prog_rejected = yes; then
3821  # We found a bogon in the path, so make sure we never use it.
3822  set dummy $ac_cv_prog_CC
3823  shift
3824  if test $# != 0; then
3825    # We chose a different compiler from the bogus one.
3826    # However, it has the same basename, so the bogon will be chosen
3827    # first if we set CC to just the basename; use the full file name.
3828    shift
3829    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3830  fi
3831fi
3832fi
3833fi
3834CC=$ac_cv_prog_CC
3835if test -n "$CC"; then
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3837$as_echo "$CC" >&6; }
3838else
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
3841fi
3842
3843
3844fi
3845if test -z "$CC"; then
3846  if test -n "$ac_tool_prefix"; then
3847  for ac_prog in cl.exe
3848  do
3849    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852$as_echo_n "checking for $ac_word... " >&6; }
3853if ${ac_cv_prog_CC+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  if test -n "$CC"; then
3857  ac_cv_prog_CC="$CC" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862  IFS=$as_save_IFS
3863  test -z "$as_dir" && as_dir=.
3864    for ac_exec_ext in '' $ac_executable_extensions; do
3865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868    break 2
3869  fi
3870done
3871  done
3872IFS=$as_save_IFS
3873
3874fi
3875fi
3876CC=$ac_cv_prog_CC
3877if test -n "$CC"; then
3878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879$as_echo "$CC" >&6; }
3880else
3881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883fi
3884
3885
3886    test -n "$CC" && break
3887  done
3888fi
3889if test -z "$CC"; then
3890  ac_ct_CC=$CC
3891  for ac_prog in cl.exe
3892do
3893  # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
3897if ${ac_cv_prog_ac_ct_CC+:} false; then :
3898  $as_echo_n "(cached) " >&6
3899else
3900  if test -n "$ac_ct_CC"; then
3901  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906  IFS=$as_save_IFS
3907  test -z "$as_dir" && as_dir=.
3908    for ac_exec_ext in '' $ac_executable_extensions; do
3909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910    ac_cv_prog_ac_ct_CC="$ac_prog"
3911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912    break 2
3913  fi
3914done
3915  done
3916IFS=$as_save_IFS
3917
3918fi
3919fi
3920ac_ct_CC=$ac_cv_prog_ac_ct_CC
3921if test -n "$ac_ct_CC"; then
3922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923$as_echo "$ac_ct_CC" >&6; }
3924else
3925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
3927fi
3928
3929
3930  test -n "$ac_ct_CC" && break
3931done
3932
3933  if test "x$ac_ct_CC" = x; then
3934    CC=""
3935  else
3936    case $cross_compiling:$ac_tool_warned in
3937yes:)
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940ac_tool_warned=yes ;;
3941esac
3942    CC=$ac_ct_CC
3943  fi
3944fi
3945
3946fi
3947
3948
3949test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951as_fn_error $? "no acceptable C compiler found in \$PATH
3952See \`config.log' for more details" "$LINENO" 5; }
3953
3954# Provide some information about the compiler.
3955$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3956set X $ac_compile
3957ac_compiler=$2
3958for ac_option in --version -v -V -qversion; do
3959  { { ac_try="$ac_compiler $ac_option >&5"
3960case "(($ac_try" in
3961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962  *) ac_try_echo=$ac_try;;
3963esac
3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965$as_echo "$ac_try_echo"; } >&5
3966  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3967  ac_status=$?
3968  if test -s conftest.err; then
3969    sed '10a\
3970... rest of stderr output deleted ...
3971         10q' conftest.err >conftest.er1
3972    cat conftest.er1 >&5
3973  fi
3974  rm -f conftest.er1 conftest.err
3975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976  test $ac_status = 0; }
3977done
3978
3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h.  */
3981
3982int
3983main ()
3984{
3985
3986  ;
3987  return 0;
3988}
3989_ACEOF
3990ac_clean_files_save=$ac_clean_files
3991ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3992# Try to create an executable without -o first, disregard a.out.
3993# It will help us diagnose broken compilers, and finding out an intuition
3994# of exeext.
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3996$as_echo_n "checking whether the C compiler works... " >&6; }
3997ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3998
3999# The possible output files:
4000ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4001
4002ac_rmfiles=
4003for ac_file in $ac_files
4004do
4005  case $ac_file in
4006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4007    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4008  esac
4009done
4010rm -f $ac_rmfiles
4011
4012if { { ac_try="$ac_link_default"
4013case "(($ac_try" in
4014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015  *) ac_try_echo=$ac_try;;
4016esac
4017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018$as_echo "$ac_try_echo"; } >&5
4019  (eval "$ac_link_default") 2>&5
4020  ac_status=$?
4021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022  test $ac_status = 0; }; then :
4023  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4024# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4025# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4026# so that the user can short-circuit this test for compilers unknown to
4027# Autoconf.
4028for ac_file in $ac_files ''
4029do
4030  test -f "$ac_file" || continue
4031  case $ac_file in
4032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4033	;;
4034    [ab].out )
4035	# We found the default executable, but exeext='' is most
4036	# certainly right.
4037	break;;
4038    *.* )
4039	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4040	then :; else
4041	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042	fi
4043	# We set ac_cv_exeext here because the later test for it is not
4044	# safe: cross compilers may not add the suffix if given an `-o'
4045	# argument, so we may need to know it at that point already.
4046	# Even if this section looks crufty: it has the advantage of
4047	# actually working.
4048	break;;
4049    * )
4050	break;;
4051  esac
4052done
4053test "$ac_cv_exeext" = no && ac_cv_exeext=
4054
4055else
4056  ac_file=''
4057fi
4058if test -z "$ac_file"; then :
4059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060$as_echo "no" >&6; }
4061$as_echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066as_fn_error 77 "C compiler cannot create executables
4067See \`config.log' for more details" "$LINENO" 5; }
4068else
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070$as_echo "yes" >&6; }
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4073$as_echo_n "checking for C compiler default output file name... " >&6; }
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4075$as_echo "$ac_file" >&6; }
4076ac_exeext=$ac_cv_exeext
4077
4078rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4079ac_clean_files=$ac_clean_files_save
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4081$as_echo_n "checking for suffix of executables... " >&6; }
4082if { { ac_try="$ac_link"
4083case "(($ac_try" in
4084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085  *) ac_try_echo=$ac_try;;
4086esac
4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088$as_echo "$ac_try_echo"; } >&5
4089  (eval "$ac_link") 2>&5
4090  ac_status=$?
4091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092  test $ac_status = 0; }; then :
4093  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4094# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4095# work properly (i.e., refer to `conftest.exe'), while it won't with
4096# `rm'.
4097for ac_file in conftest.exe conftest conftest.*; do
4098  test -f "$ac_file" || continue
4099  case $ac_file in
4100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4101    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4102	  break;;
4103    * ) break;;
4104  esac
4105done
4106else
4107  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4110See \`config.log' for more details" "$LINENO" 5; }
4111fi
4112rm -f conftest conftest$ac_cv_exeext
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4114$as_echo "$ac_cv_exeext" >&6; }
4115
4116rm -f conftest.$ac_ext
4117EXEEXT=$ac_cv_exeext
4118ac_exeext=$EXEEXT
4119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121#include <stdio.h>
4122int
4123main ()
4124{
4125FILE *f = fopen ("conftest.out", "w");
4126 return ferror (f) || fclose (f) != 0;
4127
4128  ;
4129  return 0;
4130}
4131_ACEOF
4132ac_clean_files="$ac_clean_files conftest.out"
4133# Check that the compiler produces executables we can run.  If not, either
4134# the compiler is broken, or we cross compile.
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4136$as_echo_n "checking whether we are cross compiling... " >&6; }
4137if test "$cross_compiling" != yes; then
4138  { { ac_try="$ac_link"
4139case "(($ac_try" in
4140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141  *) ac_try_echo=$ac_try;;
4142esac
4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144$as_echo "$ac_try_echo"; } >&5
4145  (eval "$ac_link") 2>&5
4146  ac_status=$?
4147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148  test $ac_status = 0; }
4149  if { ac_try='./conftest$ac_cv_exeext'
4150  { { case "(($ac_try" in
4151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152  *) ac_try_echo=$ac_try;;
4153esac
4154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155$as_echo "$ac_try_echo"; } >&5
4156  (eval "$ac_try") 2>&5
4157  ac_status=$?
4158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159  test $ac_status = 0; }; }; then
4160    cross_compiling=no
4161  else
4162    if test "$cross_compiling" = maybe; then
4163	cross_compiling=yes
4164    else
4165	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167as_fn_error $? "cannot run C compiled programs.
4168If you meant to cross compile, use \`--host'.
4169See \`config.log' for more details" "$LINENO" 5; }
4170    fi
4171  fi
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4174$as_echo "$cross_compiling" >&6; }
4175
4176rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4177ac_clean_files=$ac_clean_files_save
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4179$as_echo_n "checking for suffix of object files... " >&6; }
4180if ${ac_cv_objext+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185
4186int
4187main ()
4188{
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194rm -f conftest.o conftest.obj
4195if { { ac_try="$ac_compile"
4196case "(($ac_try" in
4197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198  *) ac_try_echo=$ac_try;;
4199esac
4200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201$as_echo "$ac_try_echo"; } >&5
4202  (eval "$ac_compile") 2>&5
4203  ac_status=$?
4204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205  test $ac_status = 0; }; then :
4206  for ac_file in conftest.o conftest.obj conftest.*; do
4207  test -f "$ac_file" || continue;
4208  case $ac_file in
4209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4210    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4211       break;;
4212  esac
4213done
4214else
4215  $as_echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220as_fn_error $? "cannot compute suffix of object files: cannot compile
4221See \`config.log' for more details" "$LINENO" 5; }
4222fi
4223rm -f conftest.$ac_cv_objext conftest.$ac_ext
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4226$as_echo "$ac_cv_objext" >&6; }
4227OBJEXT=$ac_cv_objext
4228ac_objext=$OBJEXT
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4230$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4231if ${ac_cv_c_compiler_gnu+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236
4237int
4238main ()
4239{
4240#ifndef __GNUC__
4241       choke me
4242#endif
4243
4244  ;
4245  return 0;
4246}
4247_ACEOF
4248if ac_fn_c_try_compile "$LINENO"; then :
4249  ac_compiler_gnu=yes
4250else
4251  ac_compiler_gnu=no
4252fi
4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254ac_cv_c_compiler_gnu=$ac_compiler_gnu
4255
4256fi
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4258$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4259if test $ac_compiler_gnu = yes; then
4260  GCC=yes
4261else
4262  GCC=
4263fi
4264ac_test_CFLAGS=${CFLAGS+set}
4265ac_save_CFLAGS=$CFLAGS
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4267$as_echo_n "checking whether $CC accepts -g... " >&6; }
4268if ${ac_cv_prog_cc_g+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  ac_save_c_werror_flag=$ac_c_werror_flag
4272   ac_c_werror_flag=yes
4273   ac_cv_prog_cc_g=no
4274   CFLAGS="-g"
4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277
4278int
4279main ()
4280{
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_compile "$LINENO"; then :
4287  ac_cv_prog_cc_g=yes
4288else
4289  CFLAGS=""
4290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292
4293int
4294main ()
4295{
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301if ac_fn_c_try_compile "$LINENO"; then :
4302
4303else
4304  ac_c_werror_flag=$ac_save_c_werror_flag
4305	 CFLAGS="-g"
4306	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317if ac_fn_c_try_compile "$LINENO"; then :
4318  ac_cv_prog_cc_g=yes
4319fi
4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321fi
4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323fi
4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325   ac_c_werror_flag=$ac_save_c_werror_flag
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4328$as_echo "$ac_cv_prog_cc_g" >&6; }
4329if test "$ac_test_CFLAGS" = set; then
4330  CFLAGS=$ac_save_CFLAGS
4331elif test $ac_cv_prog_cc_g = yes; then
4332  if test "$GCC" = yes; then
4333    CFLAGS="-g -O2"
4334  else
4335    CFLAGS="-g"
4336  fi
4337else
4338  if test "$GCC" = yes; then
4339    CFLAGS="-O2"
4340  else
4341    CFLAGS=
4342  fi
4343fi
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4345$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4346if ${ac_cv_prog_cc_c89+:} false; then :
4347  $as_echo_n "(cached) " >&6
4348else
4349  ac_cv_prog_cc_c89=no
4350ac_save_CC=$CC
4351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353#include <stdarg.h>
4354#include <stdio.h>
4355struct stat;
4356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4357struct buf { int x; };
4358FILE * (*rcsopen) (struct buf *, struct stat *, int);
4359static char *e (p, i)
4360     char **p;
4361     int i;
4362{
4363  return p[i];
4364}
4365static char *f (char * (*g) (char **, int), char **p, ...)
4366{
4367  char *s;
4368  va_list v;
4369  va_start (v,p);
4370  s = g (p, va_arg (v,int));
4371  va_end (v);
4372  return s;
4373}
4374
4375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4376   function prototypes and stuff, but not '\xHH' hex character constants.
4377   These don't provoke an error unfortunately, instead are silently treated
4378   as 'x'.  The following induces an error, until -std is added to get
4379   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4380   array size at least.  It's necessary to write '\x00'==0 to get something
4381   that's true only with -std.  */
4382int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4383
4384/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4385   inside strings and character constants.  */
4386#define FOO(x) 'x'
4387int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4388
4389int test (int i, double x);
4390struct s1 {int (*f) (int a);};
4391struct s2 {int (*f) (double a);};
4392int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4393int argc;
4394char **argv;
4395int
4396main ()
4397{
4398return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4399  ;
4400  return 0;
4401}
4402_ACEOF
4403for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4404	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4405do
4406  CC="$ac_save_CC $ac_arg"
4407  if ac_fn_c_try_compile "$LINENO"; then :
4408  ac_cv_prog_cc_c89=$ac_arg
4409fi
4410rm -f core conftest.err conftest.$ac_objext
4411  test "x$ac_cv_prog_cc_c89" != "xno" && break
4412done
4413rm -f conftest.$ac_ext
4414CC=$ac_save_CC
4415
4416fi
4417# AC_CACHE_VAL
4418case "x$ac_cv_prog_cc_c89" in
4419  x)
4420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4421$as_echo "none needed" >&6; } ;;
4422  xno)
4423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4424$as_echo "unsupported" >&6; } ;;
4425  *)
4426    CC="$CC $ac_cv_prog_cc_c89"
4427    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4428$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4429esac
4430if test "x$ac_cv_prog_cc_c89" != xno; then :
4431
4432fi
4433
4434ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440ac_ext=c
4441ac_cpp='$CPP $CPPFLAGS'
4442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4446$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4447if ${am_cv_prog_cc_c_o+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452
4453int
4454main ()
4455{
4456
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461  # Make sure it works both with $CC and with simple cc.
4462  # Following AC_PROG_CC_C_O, we do the test twice because some
4463  # compilers refuse to overwrite an existing .o file with -o,
4464  # though they will create one.
4465  am_cv_prog_cc_c_o=yes
4466  for am_i in 1 2; do
4467    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4468   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } \
4472         && test -f conftest2.$ac_objext; then
4473      : OK
4474    else
4475      am_cv_prog_cc_c_o=no
4476      break
4477    fi
4478  done
4479  rm -f core conftest*
4480  unset am_i
4481fi
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4483$as_echo "$am_cv_prog_cc_c_o" >&6; }
4484if test "$am_cv_prog_cc_c_o" != yes; then
4485   # Losing compiler, so override with the script.
4486   # FIXME: It is wrong to rewrite CC.
4487   # But if we don't then we get into trouble of one sort or another.
4488   # A longer-term fix would be to have automake use am__CC in this case,
4489   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4490   CC="$am_aux_dir/compile $CC"
4491fi
4492ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498DEPDIR="${am__leading_dot}deps"
4499
4500ac_config_commands="$ac_config_commands depfiles"
4501
4502
4503am_make=${MAKE-make}
4504cat > confinc << 'END'
4505am__doit:
4506	@echo this is the am__doit target
4507.PHONY: am__doit
4508END
4509# If we don't find an include directive, just comment out the code.
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4511$as_echo_n "checking for style of include used by $am_make... " >&6; }
4512am__include="#"
4513am__quote=
4514_am_result=none
4515# First try GNU make style include.
4516echo "include confinc" > confmf
4517# Ignore all kinds of additional output from 'make'.
4518case `$am_make -s -f confmf 2> /dev/null` in #(
4519*the\ am__doit\ target*)
4520  am__include=include
4521  am__quote=
4522  _am_result=GNU
4523  ;;
4524esac
4525# Now try BSD make style include.
4526if test "$am__include" = "#"; then
4527   echo '.include "confinc"' > confmf
4528   case `$am_make -s -f confmf 2> /dev/null` in #(
4529   *the\ am__doit\ target*)
4530     am__include=.include
4531     am__quote="\""
4532     _am_result=BSD
4533     ;;
4534   esac
4535fi
4536
4537
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4539$as_echo "$_am_result" >&6; }
4540rm -f confinc confmf
4541
4542# Check whether --enable-dependency-tracking was given.
4543if test "${enable_dependency_tracking+set}" = set; then :
4544  enableval=$enable_dependency_tracking;
4545fi
4546
4547if test "x$enable_dependency_tracking" != xno; then
4548  am_depcomp="$ac_aux_dir/depcomp"
4549  AMDEPBACKSLASH='\'
4550  am__nodep='_no'
4551fi
4552 if test "x$enable_dependency_tracking" != xno; then
4553  AMDEP_TRUE=
4554  AMDEP_FALSE='#'
4555else
4556  AMDEP_TRUE='#'
4557  AMDEP_FALSE=
4558fi
4559
4560
4561
4562depcc="$CC"   am_compiler_list=
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4565$as_echo_n "checking dependency style of $depcc... " >&6; }
4566if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4570  # We make a subdir and do the tests there.  Otherwise we can end up
4571  # making bogus files that we don't know about and never remove.  For
4572  # instance it was reported that on HP-UX the gcc test will end up
4573  # making a dummy file named 'D' -- because '-MD' means "put the output
4574  # in D".
4575  rm -rf conftest.dir
4576  mkdir conftest.dir
4577  # Copy depcomp to subdir because otherwise we won't find it if we're
4578  # using a relative directory.
4579  cp "$am_depcomp" conftest.dir
4580  cd conftest.dir
4581  # We will build objects and dependencies in a subdirectory because
4582  # it helps to detect inapplicable dependency modes.  For instance
4583  # both Tru64's cc and ICC support -MD to output dependencies as a
4584  # side effect of compilation, but ICC will put the dependencies in
4585  # the current directory while Tru64 will put them in the object
4586  # directory.
4587  mkdir sub
4588
4589  am_cv_CC_dependencies_compiler_type=none
4590  if test "$am_compiler_list" = ""; then
4591     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4592  fi
4593  am__universal=false
4594  case " $depcc " in #(
4595     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4596     esac
4597
4598  for depmode in $am_compiler_list; do
4599    # Setup a source with many dependencies, because some compilers
4600    # like to wrap large dependency lists on column 80 (with \), and
4601    # we should not choose a depcomp mode which is confused by this.
4602    #
4603    # We need to recreate these files for each test, as the compiler may
4604    # overwrite some of them when testing with obscure command lines.
4605    # This happens at least with the AIX C compiler.
4606    : > sub/conftest.c
4607    for i in 1 2 3 4 5 6; do
4608      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4609      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4610      # Solaris 10 /bin/sh.
4611      echo '/* dummy */' > sub/conftst$i.h
4612    done
4613    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4614
4615    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4616    # mode.  It turns out that the SunPro C++ compiler does not properly
4617    # handle '-M -o', and we need to detect this.  Also, some Intel
4618    # versions had trouble with output in subdirs.
4619    am__obj=sub/conftest.${OBJEXT-o}
4620    am__minus_obj="-o $am__obj"
4621    case $depmode in
4622    gcc)
4623      # This depmode causes a compiler race in universal mode.
4624      test "$am__universal" = false || continue
4625      ;;
4626    nosideeffect)
4627      # After this tag, mechanisms are not by side-effect, so they'll
4628      # only be used when explicitly requested.
4629      if test "x$enable_dependency_tracking" = xyes; then
4630	continue
4631      else
4632	break
4633      fi
4634      ;;
4635    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4636      # This compiler won't grok '-c -o', but also, the minuso test has
4637      # not run yet.  These depmodes are late enough in the game, and
4638      # so weak that their functioning should not be impacted.
4639      am__obj=conftest.${OBJEXT-o}
4640      am__minus_obj=
4641      ;;
4642    none) break ;;
4643    esac
4644    if depmode=$depmode \
4645       source=sub/conftest.c object=$am__obj \
4646       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4647       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4648         >/dev/null 2>conftest.err &&
4649       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4650       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4651       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4652       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4653      # icc doesn't choke on unknown options, it will just issue warnings
4654      # or remarks (even with -Werror).  So we grep stderr for any message
4655      # that says an option was ignored or not supported.
4656      # When given -MP, icc 7.0 and 7.1 complain thusly:
4657      #   icc: Command line warning: ignoring option '-M'; no argument required
4658      # The diagnosis changed in icc 8.0:
4659      #   icc: Command line remark: option '-MP' not supported
4660      if (grep 'ignoring option' conftest.err ||
4661          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4662        am_cv_CC_dependencies_compiler_type=$depmode
4663        break
4664      fi
4665    fi
4666  done
4667
4668  cd ..
4669  rm -rf conftest.dir
4670else
4671  am_cv_CC_dependencies_compiler_type=none
4672fi
4673
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4676$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4677CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4678
4679 if
4680  test "x$enable_dependency_tracking" != xno \
4681  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4682  am__fastdepCC_TRUE=
4683  am__fastdepCC_FALSE='#'
4684else
4685  am__fastdepCC_TRUE='#'
4686  am__fastdepCC_FALSE=
4687fi
4688
4689
4690
4691
4692
4693#
4694#  Copyright 2020 Northern.tech AS
4695#
4696#  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
4697#
4698#  This program is free software; you can redistribute it and/or modify it
4699#  under the terms of the GNU General Public License as published by the
4700#  Free Software Foundation; version 3.
4701#
4702#  This program is distributed in the hope that it will be useful,
4703#  but WITHOUT ANY WARRANTY; without even the implied warranty of
4704#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4705#  GNU General Public License for more details.
4706#
4707# You should have received a copy of the GNU General Public License
4708# along with this program; if not, write to the Free Software
4709# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
4710#
4711# To the extent this program is licensed as part of the Enterprise
4712# versions of CFEngine, the applicable Commercial Open Source License
4713# (COSL) may apply to this file if you as a licensee so wish it. See
4714# included file COSL.txt.
4715#
4716
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX aC" >&5
4718$as_echo_n "checking for HP-UX aC... " >&6; }
4719
4720ac_ext=c
4721ac_cpp='$CPP $CPPFLAGS'
4722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4726$as_echo_n "checking how to run the C preprocessor... " >&6; }
4727# On Suns, sometimes $CPP names a directory.
4728if test -n "$CPP" && test -d "$CPP"; then
4729  CPP=
4730fi
4731if test -z "$CPP"; then
4732  if ${ac_cv_prog_CPP+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735      # Double quotes because CPP needs to be expanded
4736    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4737    do
4738      ac_preproc_ok=false
4739for ac_c_preproc_warn_flag in '' yes
4740do
4741  # Use a header file that comes with gcc, so configuring glibc
4742  # with a fresh cross-compiler works.
4743  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744  # <limits.h> exists even on freestanding compilers.
4745  # On the NeXT, cc -E runs the code through the compiler's parser,
4746  # not just through cpp. "Syntax error" is here to catch this case.
4747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h.  */
4749#ifdef __STDC__
4750# include <limits.h>
4751#else
4752# include <assert.h>
4753#endif
4754		     Syntax error
4755_ACEOF
4756if ac_fn_c_try_cpp "$LINENO"; then :
4757
4758else
4759  # Broken: fails on valid input.
4760continue
4761fi
4762rm -f conftest.err conftest.i conftest.$ac_ext
4763
4764  # OK, works on sane cases.  Now check whether nonexistent headers
4765  # can be detected and how.
4766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h.  */
4768#include <ac_nonexistent.h>
4769_ACEOF
4770if ac_fn_c_try_cpp "$LINENO"; then :
4771  # Broken: success on invalid input.
4772continue
4773else
4774  # Passes both tests.
4775ac_preproc_ok=:
4776break
4777fi
4778rm -f conftest.err conftest.i conftest.$ac_ext
4779
4780done
4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782rm -f conftest.i conftest.err conftest.$ac_ext
4783if $ac_preproc_ok; then :
4784  break
4785fi
4786
4787    done
4788    ac_cv_prog_CPP=$CPP
4789
4790fi
4791  CPP=$ac_cv_prog_CPP
4792else
4793  ac_cv_prog_CPP=$CPP
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4796$as_echo "$CPP" >&6; }
4797ac_preproc_ok=false
4798for ac_c_preproc_warn_flag in '' yes
4799do
4800  # Use a header file that comes with gcc, so configuring glibc
4801  # with a fresh cross-compiler works.
4802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803  # <limits.h> exists even on freestanding compilers.
4804  # On the NeXT, cc -E runs the code through the compiler's parser,
4805  # not just through cpp. "Syntax error" is here to catch this case.
4806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h.  */
4808#ifdef __STDC__
4809# include <limits.h>
4810#else
4811# include <assert.h>
4812#endif
4813		     Syntax error
4814_ACEOF
4815if ac_fn_c_try_cpp "$LINENO"; then :
4816
4817else
4818  # Broken: fails on valid input.
4819continue
4820fi
4821rm -f conftest.err conftest.i conftest.$ac_ext
4822
4823  # OK, works on sane cases.  Now check whether nonexistent headers
4824  # can be detected and how.
4825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h.  */
4827#include <ac_nonexistent.h>
4828_ACEOF
4829if ac_fn_c_try_cpp "$LINENO"; then :
4830  # Broken: success on invalid input.
4831continue
4832else
4833  # Passes both tests.
4834ac_preproc_ok=:
4835break
4836fi
4837rm -f conftest.err conftest.i conftest.$ac_ext
4838
4839done
4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841rm -f conftest.i conftest.err conftest.$ac_ext
4842if $ac_preproc_ok; then :
4843
4844else
4845  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4847as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4848See \`config.log' for more details" "$LINENO" 5; }
4849fi
4850
4851ac_ext=c
4852ac_cpp='$CPP $CPPFLAGS'
4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857
4858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859/* end confdefs.h.  */
4860
4861#if defined __HP_cc
4862#This is HP-UX ANSI C
4863#endif
4864
4865_ACEOF
4866if ac_fn_c_try_cpp "$LINENO"; then :
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869else
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871$as_echo "yes" >&6; }
4872CFLAGS="$CFLAGS -Agcc"
4873CPPFLAGS="$CPPFLAGS -Agcc"
4874HP_UX_AC=yes
4875fi
4876rm -f conftest.err conftest.i conftest.$ac_ext
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC specific compile flags" >&5
4879$as_echo_n "checking for GCC specific compile flags... " >&6; }
4880if test x"$GCC" = "xyes" && test x"$HP_UX_AC" != x"yes"; then
4881    CFLAGS="$CFLAGS -g -Wall"
4882    CPPFLAGS="$CPPFLAGS -std=gnu99"
4883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884$as_echo "yes" >&6; }
4885
4886    save_CFLAGS="$CFLAGS"
4887    CFLAGS="$CFLAGS -Wno-pointer-sign"
4888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-pointer-sign" >&5
4889$as_echo_n "checking for -Wno-pointer-sign... " >&6; }
4890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h.  */
4892int main() {}
4893_ACEOF
4894if ac_fn_c_try_compile "$LINENO"; then :
4895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4896$as_echo "yes" >&6; }
4897else
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900     CFLAGS="$save_CFLAGS"
4901fi
4902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903
4904    save_CFLAGS="$CFLAGS"
4905    CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
4906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=implicit-function-declaration" >&5
4907$as_echo_n "checking for -Werror=implicit-function-declaration... " >&6; }
4908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h.  */
4910int main() {}
4911_ACEOF
4912if ac_fn_c_try_compile "$LINENO"; then :
4913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4914$as_echo "yes" >&6; }
4915else
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
4918     CFLAGS="$save_CFLAGS"
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921
4922    save_CFLAGS="$CFLAGS"
4923    CFLAGS="$CFLAGS -Wunused-parameter"
4924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wunused-parameter" >&5
4925$as_echo_n "checking for -Wunused-parameter... " >&6; }
4926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928int main() {}
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932$as_echo "yes" >&6; }
4933else
4934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936     CFLAGS="$save_CFLAGS"
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939
4940                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-duplicate-decl-specifier" >&5
4941$as_echo_n "checking for -Wno-duplicate-decl-specifier... " >&6; }
4942    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944#ifndef __clang__
4945# error Not a clang
4946#endif
4947int main() {}
4948_ACEOF
4949if ac_fn_c_try_compile "$LINENO"; then :
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951$as_echo "yes" >&6; }
4952     CFLAGS="$save_CFLAGS -Wno-duplicate-decl-specifier"
4953else
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958else
4959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963
4964# Use either new LT_INIT or old AC_DISABLE_STATIC/AC_PROG_LIBTOOL macros
4965case `pwd` in
4966  *\ * | *\	*)
4967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4968$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4969esac
4970
4971
4972
4973macro_version='2.4.6'
4974macro_revision='2.4.6'
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988ltmain=$ac_aux_dir/ltmain.sh
4989
4990# Backslashify metacharacters that are still active within
4991# double-quoted strings.
4992sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4993
4994# Same as above, but do not quote variable references.
4995double_quote_subst='s/\(["`\\]\)/\\\1/g'
4996
4997# Sed substitution to delay expansion of an escaped shell variable in a
4998# double_quote_subst'ed string.
4999delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5000
5001# Sed substitution to delay expansion of an escaped single quote.
5002delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5003
5004# Sed substitution to avoid accidental globbing in evaled expressions
5005no_glob_subst='s/\*/\\\*/g'
5006
5007ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5008ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5009ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5010
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5012$as_echo_n "checking how to print strings... " >&6; }
5013# Test print first, because it will be a builtin if present.
5014if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5015   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5016  ECHO='print -r --'
5017elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5018  ECHO='printf %s\n'
5019else
5020  # Use this function as a fallback that always works.
5021  func_fallback_echo ()
5022  {
5023    eval 'cat <<_LTECHO_EOF
5024$1
5025_LTECHO_EOF'
5026  }
5027  ECHO='func_fallback_echo'
5028fi
5029
5030# func_echo_all arg...
5031# Invoke $ECHO with all args, space-separated.
5032func_echo_all ()
5033{
5034    $ECHO ""
5035}
5036
5037case $ECHO in
5038  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5039$as_echo "printf" >&6; } ;;
5040  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5041$as_echo "print -r" >&6; } ;;
5042  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5043$as_echo "cat" >&6; } ;;
5044esac
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5060$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5061if ${ac_cv_path_SED+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5065     for ac_i in 1 2 3 4 5 6 7; do
5066       ac_script="$ac_script$as_nl$ac_script"
5067     done
5068     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5069     { ac_script=; unset ac_script;}
5070     if test -z "$SED"; then
5071  ac_path_SED_found=false
5072  # Loop through the user's path and test for each of PROGNAME-LIST
5073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_prog in sed gsed; do
5079    for ac_exec_ext in '' $ac_executable_extensions; do
5080      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5081      as_fn_executable_p "$ac_path_SED" || continue
5082# Check for GNU ac_path_SED and select it if it is found.
5083  # Check for GNU $ac_path_SED
5084case `"$ac_path_SED" --version 2>&1` in
5085*GNU*)
5086  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5087*)
5088  ac_count=0
5089  $as_echo_n 0123456789 >"conftest.in"
5090  while :
5091  do
5092    cat "conftest.in" "conftest.in" >"conftest.tmp"
5093    mv "conftest.tmp" "conftest.in"
5094    cp "conftest.in" "conftest.nl"
5095    $as_echo '' >> "conftest.nl"
5096    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5097    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5098    as_fn_arith $ac_count + 1 && ac_count=$as_val
5099    if test $ac_count -gt ${ac_path_SED_max-0}; then
5100      # Best one so far, save it but keep looking for a better one
5101      ac_cv_path_SED="$ac_path_SED"
5102      ac_path_SED_max=$ac_count
5103    fi
5104    # 10*(2^10) chars as input seems more than enough
5105    test $ac_count -gt 10 && break
5106  done
5107  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108esac
5109
5110      $ac_path_SED_found && break 3
5111    done
5112  done
5113  done
5114IFS=$as_save_IFS
5115  if test -z "$ac_cv_path_SED"; then
5116    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5117  fi
5118else
5119  ac_cv_path_SED=$SED
5120fi
5121
5122fi
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5124$as_echo "$ac_cv_path_SED" >&6; }
5125 SED="$ac_cv_path_SED"
5126  rm -f conftest.sed
5127
5128test -z "$SED" && SED=sed
5129Xsed="$SED -e 1s/^X//"
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5142$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5143if ${ac_cv_path_GREP+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  if test -z "$GREP"; then
5147  ac_path_GREP_found=false
5148  # Loop through the user's path and test for each of PROGNAME-LIST
5149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154    for ac_prog in grep ggrep; do
5155    for ac_exec_ext in '' $ac_executable_extensions; do
5156      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5157      as_fn_executable_p "$ac_path_GREP" || continue
5158# Check for GNU ac_path_GREP and select it if it is found.
5159  # Check for GNU $ac_path_GREP
5160case `"$ac_path_GREP" --version 2>&1` in
5161*GNU*)
5162  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5163*)
5164  ac_count=0
5165  $as_echo_n 0123456789 >"conftest.in"
5166  while :
5167  do
5168    cat "conftest.in" "conftest.in" >"conftest.tmp"
5169    mv "conftest.tmp" "conftest.in"
5170    cp "conftest.in" "conftest.nl"
5171    $as_echo 'GREP' >> "conftest.nl"
5172    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174    as_fn_arith $ac_count + 1 && ac_count=$as_val
5175    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5176      # Best one so far, save it but keep looking for a better one
5177      ac_cv_path_GREP="$ac_path_GREP"
5178      ac_path_GREP_max=$ac_count
5179    fi
5180    # 10*(2^10) chars as input seems more than enough
5181    test $ac_count -gt 10 && break
5182  done
5183  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184esac
5185
5186      $ac_path_GREP_found && break 3
5187    done
5188  done
5189  done
5190IFS=$as_save_IFS
5191  if test -z "$ac_cv_path_GREP"; then
5192    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193  fi
5194else
5195  ac_cv_path_GREP=$GREP
5196fi
5197
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5200$as_echo "$ac_cv_path_GREP" >&6; }
5201 GREP="$ac_cv_path_GREP"
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5205$as_echo_n "checking for egrep... " >&6; }
5206if ${ac_cv_path_EGREP+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5210   then ac_cv_path_EGREP="$GREP -E"
5211   else
5212     if test -z "$EGREP"; then
5213  ac_path_EGREP_found=false
5214  # Loop through the user's path and test for each of PROGNAME-LIST
5215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220    for ac_prog in egrep; do
5221    for ac_exec_ext in '' $ac_executable_extensions; do
5222      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5223      as_fn_executable_p "$ac_path_EGREP" || continue
5224# Check for GNU ac_path_EGREP and select it if it is found.
5225  # Check for GNU $ac_path_EGREP
5226case `"$ac_path_EGREP" --version 2>&1` in
5227*GNU*)
5228  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5229*)
5230  ac_count=0
5231  $as_echo_n 0123456789 >"conftest.in"
5232  while :
5233  do
5234    cat "conftest.in" "conftest.in" >"conftest.tmp"
5235    mv "conftest.tmp" "conftest.in"
5236    cp "conftest.in" "conftest.nl"
5237    $as_echo 'EGREP' >> "conftest.nl"
5238    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240    as_fn_arith $ac_count + 1 && ac_count=$as_val
5241    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5242      # Best one so far, save it but keep looking for a better one
5243      ac_cv_path_EGREP="$ac_path_EGREP"
5244      ac_path_EGREP_max=$ac_count
5245    fi
5246    # 10*(2^10) chars as input seems more than enough
5247    test $ac_count -gt 10 && break
5248  done
5249  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250esac
5251
5252      $ac_path_EGREP_found && break 3
5253    done
5254  done
5255  done
5256IFS=$as_save_IFS
5257  if test -z "$ac_cv_path_EGREP"; then
5258    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259  fi
5260else
5261  ac_cv_path_EGREP=$EGREP
5262fi
5263
5264   fi
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5267$as_echo "$ac_cv_path_EGREP" >&6; }
5268 EGREP="$ac_cv_path_EGREP"
5269
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5272$as_echo_n "checking for fgrep... " >&6; }
5273if ${ac_cv_path_FGREP+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5277   then ac_cv_path_FGREP="$GREP -F"
5278   else
5279     if test -z "$FGREP"; then
5280  ac_path_FGREP_found=false
5281  # Loop through the user's path and test for each of PROGNAME-LIST
5282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284do
5285  IFS=$as_save_IFS
5286  test -z "$as_dir" && as_dir=.
5287    for ac_prog in fgrep; do
5288    for ac_exec_ext in '' $ac_executable_extensions; do
5289      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5290      as_fn_executable_p "$ac_path_FGREP" || continue
5291# Check for GNU ac_path_FGREP and select it if it is found.
5292  # Check for GNU $ac_path_FGREP
5293case `"$ac_path_FGREP" --version 2>&1` in
5294*GNU*)
5295  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5296*)
5297  ac_count=0
5298  $as_echo_n 0123456789 >"conftest.in"
5299  while :
5300  do
5301    cat "conftest.in" "conftest.in" >"conftest.tmp"
5302    mv "conftest.tmp" "conftest.in"
5303    cp "conftest.in" "conftest.nl"
5304    $as_echo 'FGREP' >> "conftest.nl"
5305    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5306    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5307    as_fn_arith $ac_count + 1 && ac_count=$as_val
5308    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5309      # Best one so far, save it but keep looking for a better one
5310      ac_cv_path_FGREP="$ac_path_FGREP"
5311      ac_path_FGREP_max=$ac_count
5312    fi
5313    # 10*(2^10) chars as input seems more than enough
5314    test $ac_count -gt 10 && break
5315  done
5316  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317esac
5318
5319      $ac_path_FGREP_found && break 3
5320    done
5321  done
5322  done
5323IFS=$as_save_IFS
5324  if test -z "$ac_cv_path_FGREP"; then
5325    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326  fi
5327else
5328  ac_cv_path_FGREP=$FGREP
5329fi
5330
5331   fi
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5334$as_echo "$ac_cv_path_FGREP" >&6; }
5335 FGREP="$ac_cv_path_FGREP"
5336
5337
5338test -z "$GREP" && GREP=grep
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358# Check whether --with-gnu-ld was given.
5359if test "${with_gnu_ld+set}" = set; then :
5360  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5361else
5362  with_gnu_ld=no
5363fi
5364
5365ac_prog=ld
5366if test yes = "$GCC"; then
5367  # Check if gcc -print-prog-name=ld gives a path.
5368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5369$as_echo_n "checking for ld used by $CC... " >&6; }
5370  case $host in
5371  *-*-mingw*)
5372    # gcc leaves a trailing carriage return, which upsets mingw
5373    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5374  *)
5375    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5376  esac
5377  case $ac_prog in
5378    # Accept absolute paths.
5379    [\\/]* | ?:[\\/]*)
5380      re_direlt='/[^/][^/]*/\.\./'
5381      # Canonicalize the pathname of ld
5382      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5383      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5384	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5385      done
5386      test -z "$LD" && LD=$ac_prog
5387      ;;
5388  "")
5389    # If it fails, then pretend we aren't using GCC.
5390    ac_prog=ld
5391    ;;
5392  *)
5393    # If it is relative, then search for the first ld in PATH.
5394    with_gnu_ld=unknown
5395    ;;
5396  esac
5397elif test yes = "$with_gnu_ld"; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5399$as_echo_n "checking for GNU ld... " >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5402$as_echo_n "checking for non-GNU ld... " >&6; }
5403fi
5404if ${lt_cv_path_LD+:} false; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407  if test -z "$LD"; then
5408  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5409  for ac_dir in $PATH; do
5410    IFS=$lt_save_ifs
5411    test -z "$ac_dir" && ac_dir=.
5412    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5413      lt_cv_path_LD=$ac_dir/$ac_prog
5414      # Check to see if the program is GNU ld.  I'd rather use --version,
5415      # but apparently some variants of GNU ld only accept -v.
5416      # Break only if it was the GNU/non-GNU ld that we prefer.
5417      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5418      *GNU* | *'with BFD'*)
5419	test no != "$with_gnu_ld" && break
5420	;;
5421      *)
5422	test yes != "$with_gnu_ld" && break
5423	;;
5424      esac
5425    fi
5426  done
5427  IFS=$lt_save_ifs
5428else
5429  lt_cv_path_LD=$LD # Let the user override the test with a path.
5430fi
5431fi
5432
5433LD=$lt_cv_path_LD
5434if test -n "$LD"; then
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5436$as_echo "$LD" >&6; }
5437else
5438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439$as_echo "no" >&6; }
5440fi
5441test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5443$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5444if ${lt_cv_prog_gnu_ld+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5448case `$LD -v 2>&1 </dev/null` in
5449*GNU* | *'with BFD'*)
5450  lt_cv_prog_gnu_ld=yes
5451  ;;
5452*)
5453  lt_cv_prog_gnu_ld=no
5454  ;;
5455esac
5456fi
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5458$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5459with_gnu_ld=$lt_cv_prog_gnu_ld
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5470$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5471if ${lt_cv_path_NM+:} false; then :
5472  $as_echo_n "(cached) " >&6
5473else
5474  if test -n "$NM"; then
5475  # Let the user override the test.
5476  lt_cv_path_NM=$NM
5477else
5478  lt_nm_to_check=${ac_tool_prefix}nm
5479  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5480    lt_nm_to_check="$lt_nm_to_check nm"
5481  fi
5482  for lt_tmp_nm in $lt_nm_to_check; do
5483    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5484    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5485      IFS=$lt_save_ifs
5486      test -z "$ac_dir" && ac_dir=.
5487      tmp_nm=$ac_dir/$lt_tmp_nm
5488      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5489	# Check to see if the nm accepts a BSD-compat flag.
5490	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5491	#   nm: unknown option "B" ignored
5492	# Tru64's nm complains that /dev/null is an invalid object file
5493	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5494	case $build_os in
5495	mingw*) lt_bad_file=conftest.nm/nofile ;;
5496	*) lt_bad_file=/dev/null ;;
5497	esac
5498	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5499	*$lt_bad_file* | *'Invalid file or object type'*)
5500	  lt_cv_path_NM="$tmp_nm -B"
5501	  break 2
5502	  ;;
5503	*)
5504	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5505	  */dev/null*)
5506	    lt_cv_path_NM="$tmp_nm -p"
5507	    break 2
5508	    ;;
5509	  *)
5510	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5511	    continue # so that we can try to find one that supports BSD flags
5512	    ;;
5513	  esac
5514	  ;;
5515	esac
5516      fi
5517    done
5518    IFS=$lt_save_ifs
5519  done
5520  : ${lt_cv_path_NM=no}
5521fi
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5524$as_echo "$lt_cv_path_NM" >&6; }
5525if test no != "$lt_cv_path_NM"; then
5526  NM=$lt_cv_path_NM
5527else
5528  # Didn't find any BSD compatible name lister, look for dumpbin.
5529  if test -n "$DUMPBIN"; then :
5530    # Let the user override the test.
5531  else
5532    if test -n "$ac_tool_prefix"; then
5533  for ac_prog in dumpbin "link -dump"
5534  do
5535    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if ${ac_cv_prog_DUMPBIN+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  if test -n "$DUMPBIN"; then
5543  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548  IFS=$as_save_IFS
5549  test -z "$as_dir" && as_dir=.
5550    for ac_exec_ext in '' $ac_executable_extensions; do
5551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554    break 2
5555  fi
5556done
5557  done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562DUMPBIN=$ac_cv_prog_DUMPBIN
5563if test -n "$DUMPBIN"; then
5564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5565$as_echo "$DUMPBIN" >&6; }
5566else
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571
5572    test -n "$DUMPBIN" && break
5573  done
5574fi
5575if test -z "$DUMPBIN"; then
5576  ac_ct_DUMPBIN=$DUMPBIN
5577  for ac_prog in dumpbin "link -dump"
5578do
5579  # Extract the first word of "$ac_prog", so it can be a program name with args.
5580set dummy $ac_prog; ac_word=$2
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  if test -n "$ac_ct_DUMPBIN"; then
5587  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592  IFS=$as_save_IFS
5593  test -z "$as_dir" && as_dir=.
5594    for ac_exec_ext in '' $ac_executable_extensions; do
5595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598    break 2
5599  fi
5600done
5601  done
5602IFS=$as_save_IFS
5603
5604fi
5605fi
5606ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5607if test -n "$ac_ct_DUMPBIN"; then
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5609$as_echo "$ac_ct_DUMPBIN" >&6; }
5610else
5611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612$as_echo "no" >&6; }
5613fi
5614
5615
5616  test -n "$ac_ct_DUMPBIN" && break
5617done
5618
5619  if test "x$ac_ct_DUMPBIN" = x; then
5620    DUMPBIN=":"
5621  else
5622    case $cross_compiling:$ac_tool_warned in
5623yes:)
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626ac_tool_warned=yes ;;
5627esac
5628    DUMPBIN=$ac_ct_DUMPBIN
5629  fi
5630fi
5631
5632    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5633    *COFF*)
5634      DUMPBIN="$DUMPBIN -symbols -headers"
5635      ;;
5636    *)
5637      DUMPBIN=:
5638      ;;
5639    esac
5640  fi
5641
5642  if test : != "$DUMPBIN"; then
5643    NM=$DUMPBIN
5644  fi
5645fi
5646test -z "$NM" && NM=nm
5647
5648
5649
5650
5651
5652
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5654$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5655if ${lt_cv_nm_interface+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  lt_cv_nm_interface="BSD nm"
5659  echo "int some_variable = 0;" > conftest.$ac_ext
5660  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5661  (eval "$ac_compile" 2>conftest.err)
5662  cat conftest.err >&5
5663  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5664  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5665  cat conftest.err >&5
5666  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5667  cat conftest.out >&5
5668  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5669    lt_cv_nm_interface="MS dumpbin"
5670  fi
5671  rm -f conftest*
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5674$as_echo "$lt_cv_nm_interface" >&6; }
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5677$as_echo_n "checking whether ln -s works... " >&6; }
5678LN_S=$as_ln_s
5679if test "$LN_S" = "ln -s"; then
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681$as_echo "yes" >&6; }
5682else
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5684$as_echo "no, using $LN_S" >&6; }
5685fi
5686
5687# find the maximum length of command line arguments
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5689$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5690if ${lt_cv_sys_max_cmd_len+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693    i=0
5694  teststring=ABCD
5695
5696  case $build_os in
5697  msdosdjgpp*)
5698    # On DJGPP, this test can blow up pretty badly due to problems in libc
5699    # (any single argument exceeding 2000 bytes causes a buffer overrun
5700    # during glob expansion).  Even if it were fixed, the result of this
5701    # check would be larger than it should be.
5702    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5703    ;;
5704
5705  gnu*)
5706    # Under GNU Hurd, this test is not required because there is
5707    # no limit to the length of command line arguments.
5708    # Libtool will interpret -1 as no limit whatsoever
5709    lt_cv_sys_max_cmd_len=-1;
5710    ;;
5711
5712  cygwin* | mingw* | cegcc*)
5713    # On Win9x/ME, this test blows up -- it succeeds, but takes
5714    # about 5 minutes as the teststring grows exponentially.
5715    # Worse, since 9x/ME are not pre-emptively multitasking,
5716    # you end up with a "frozen" computer, even though with patience
5717    # the test eventually succeeds (with a max line length of 256k).
5718    # Instead, let's just punt: use the minimum linelength reported by
5719    # all of the supported platforms: 8192 (on NT/2K/XP).
5720    lt_cv_sys_max_cmd_len=8192;
5721    ;;
5722
5723  mint*)
5724    # On MiNT this can take a long time and run out of memory.
5725    lt_cv_sys_max_cmd_len=8192;
5726    ;;
5727
5728  amigaos*)
5729    # On AmigaOS with pdksh, this test takes hours, literally.
5730    # So we just punt and use a minimum line length of 8192.
5731    lt_cv_sys_max_cmd_len=8192;
5732    ;;
5733
5734  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5735    # This has been around since 386BSD, at least.  Likely further.
5736    if test -x /sbin/sysctl; then
5737      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5738    elif test -x /usr/sbin/sysctl; then
5739      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5740    else
5741      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5742    fi
5743    # And add a safety zone
5744    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5745    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5746    ;;
5747
5748  interix*)
5749    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5750    lt_cv_sys_max_cmd_len=196608
5751    ;;
5752
5753  os2*)
5754    # The test takes a long time on OS/2.
5755    lt_cv_sys_max_cmd_len=8192
5756    ;;
5757
5758  osf*)
5759    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5760    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5761    # nice to cause kernel panics so lets avoid the loop below.
5762    # First set a reasonable default.
5763    lt_cv_sys_max_cmd_len=16384
5764    #
5765    if test -x /sbin/sysconfig; then
5766      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5767        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5768      esac
5769    fi
5770    ;;
5771  sco3.2v5*)
5772    lt_cv_sys_max_cmd_len=102400
5773    ;;
5774  sysv5* | sco5v6* | sysv4.2uw2*)
5775    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5776    if test -n "$kargmax"; then
5777      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5778    else
5779      lt_cv_sys_max_cmd_len=32768
5780    fi
5781    ;;
5782  *)
5783    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5784    if test -n "$lt_cv_sys_max_cmd_len" && \
5785       test undefined != "$lt_cv_sys_max_cmd_len"; then
5786      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5787      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5788    else
5789      # Make teststring a little bigger before we do anything with it.
5790      # a 1K string should be a reasonable start.
5791      for i in 1 2 3 4 5 6 7 8; do
5792        teststring=$teststring$teststring
5793      done
5794      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5795      # If test is not a shell built-in, we'll probably end up computing a
5796      # maximum length that is only half of the actual maximum length, but
5797      # we can't tell.
5798      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5799	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5800	      test 17 != "$i" # 1/2 MB should be enough
5801      do
5802        i=`expr $i + 1`
5803        teststring=$teststring$teststring
5804      done
5805      # Only check the string length outside the loop.
5806      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5807      teststring=
5808      # Add a significant safety factor because C++ compilers can tack on
5809      # massive amounts of additional arguments before passing them to the
5810      # linker.  It appears as though 1/2 is a usable value.
5811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5812    fi
5813    ;;
5814  esac
5815
5816fi
5817
5818if test -n "$lt_cv_sys_max_cmd_len"; then
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5820$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5821else
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5823$as_echo "none" >&6; }
5824fi
5825max_cmd_len=$lt_cv_sys_max_cmd_len
5826
5827
5828
5829
5830
5831
5832: ${CP="cp -f"}
5833: ${MV="mv -f"}
5834: ${RM="rm -f"}
5835
5836if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5837  lt_unset=unset
5838else
5839  lt_unset=false
5840fi
5841
5842
5843
5844
5845
5846# test EBCDIC or ASCII
5847case `echo X|tr X '\101'` in
5848 A) # ASCII based system
5849    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5850  lt_SP2NL='tr \040 \012'
5851  lt_NL2SP='tr \015\012 \040\040'
5852  ;;
5853 *) # EBCDIC based system
5854  lt_SP2NL='tr \100 \n'
5855  lt_NL2SP='tr \r\n \100\100'
5856  ;;
5857esac
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5868$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5869if ${lt_cv_to_host_file_cmd+:} false; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  case $host in
5873  *-*-mingw* )
5874    case $build in
5875      *-*-mingw* ) # actually msys
5876        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5877        ;;
5878      *-*-cygwin* )
5879        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5880        ;;
5881      * ) # otherwise, assume *nix
5882        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5883        ;;
5884    esac
5885    ;;
5886  *-*-cygwin* )
5887    case $build in
5888      *-*-mingw* ) # actually msys
5889        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5890        ;;
5891      *-*-cygwin* )
5892        lt_cv_to_host_file_cmd=func_convert_file_noop
5893        ;;
5894      * ) # otherwise, assume *nix
5895        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5896        ;;
5897    esac
5898    ;;
5899  * ) # unhandled hosts (and "normal" native builds)
5900    lt_cv_to_host_file_cmd=func_convert_file_noop
5901    ;;
5902esac
5903
5904fi
5905
5906to_host_file_cmd=$lt_cv_to_host_file_cmd
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5908$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5909
5910
5911
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5915$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5916if ${lt_cv_to_tool_file_cmd+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  #assume ordinary cross tools, or native build.
5920lt_cv_to_tool_file_cmd=func_convert_file_noop
5921case $host in
5922  *-*-mingw* )
5923    case $build in
5924      *-*-mingw* ) # actually msys
5925        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5926        ;;
5927    esac
5928    ;;
5929esac
5930
5931fi
5932
5933to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5935$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5936
5937
5938
5939
5940
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5942$as_echo_n "checking for $LD option to reload object files... " >&6; }
5943if ${lt_cv_ld_reload_flag+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  lt_cv_ld_reload_flag='-r'
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5949$as_echo "$lt_cv_ld_reload_flag" >&6; }
5950reload_flag=$lt_cv_ld_reload_flag
5951case $reload_flag in
5952"" | " "*) ;;
5953*) reload_flag=" $reload_flag" ;;
5954esac
5955reload_cmds='$LD$reload_flag -o $output$reload_objs'
5956case $host_os in
5957  cygwin* | mingw* | pw32* | cegcc*)
5958    if test yes != "$GCC"; then
5959      reload_cmds=false
5960    fi
5961    ;;
5962  darwin*)
5963    if test yes = "$GCC"; then
5964      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5965    else
5966      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5967    fi
5968    ;;
5969esac
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979if test -n "$ac_tool_prefix"; then
5980  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5981set dummy ${ac_tool_prefix}objdump; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if ${ac_cv_prog_OBJDUMP+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -n "$OBJDUMP"; then
5988  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007OBJDUMP=$ac_cv_prog_OBJDUMP
6008if test -n "$OBJDUMP"; then
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6010$as_echo "$OBJDUMP" >&6; }
6011else
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017fi
6018if test -z "$ac_cv_prog_OBJDUMP"; then
6019  ac_ct_OBJDUMP=$OBJDUMP
6020  # Extract the first word of "objdump", so it can be a program name with args.
6021set dummy objdump; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
6024if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  if test -n "$ac_ct_OBJDUMP"; then
6028  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033  IFS=$as_save_IFS
6034  test -z "$as_dir" && as_dir=.
6035    for ac_exec_ext in '' $ac_executable_extensions; do
6036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039    break 2
6040  fi
6041done
6042  done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6048if test -n "$ac_ct_OBJDUMP"; then
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6050$as_echo "$ac_ct_OBJDUMP" >&6; }
6051else
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056  if test "x$ac_ct_OBJDUMP" = x; then
6057    OBJDUMP="false"
6058  else
6059    case $cross_compiling:$ac_tool_warned in
6060yes:)
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063ac_tool_warned=yes ;;
6064esac
6065    OBJDUMP=$ac_ct_OBJDUMP
6066  fi
6067else
6068  OBJDUMP="$ac_cv_prog_OBJDUMP"
6069fi
6070
6071test -z "$OBJDUMP" && OBJDUMP=objdump
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6082$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6083if ${lt_cv_deplibs_check_method+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  lt_cv_file_magic_cmd='$MAGIC_CMD'
6087lt_cv_file_magic_test_file=
6088lt_cv_deplibs_check_method='unknown'
6089# Need to set the preceding variable on all platforms that support
6090# interlibrary dependencies.
6091# 'none' -- dependencies not supported.
6092# 'unknown' -- same as none, but documents that we really don't know.
6093# 'pass_all' -- all dependencies passed with no checks.
6094# 'test_compile' -- check by making test program.
6095# 'file_magic [[regex]]' -- check by looking for files in library path
6096# that responds to the $file_magic_cmd with a given extended regex.
6097# If you have 'file' or equivalent on your system and you're not sure
6098# whether 'pass_all' will *always* work, you probably want this one.
6099
6100case $host_os in
6101aix[4-9]*)
6102  lt_cv_deplibs_check_method=pass_all
6103  ;;
6104
6105beos*)
6106  lt_cv_deplibs_check_method=pass_all
6107  ;;
6108
6109bsdi[45]*)
6110  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6111  lt_cv_file_magic_cmd='/usr/bin/file -L'
6112  lt_cv_file_magic_test_file=/shlib/libc.so
6113  ;;
6114
6115cygwin*)
6116  # func_win32_libid is a shell function defined in ltmain.sh
6117  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118  lt_cv_file_magic_cmd='func_win32_libid'
6119  ;;
6120
6121mingw* | pw32*)
6122  # Base MSYS/MinGW do not provide the 'file' command needed by
6123  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6124  # unless we find 'file', for example because we are cross-compiling.
6125  if ( file / ) >/dev/null 2>&1; then
6126    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6127    lt_cv_file_magic_cmd='func_win32_libid'
6128  else
6129    # Keep this pattern in sync with the one in func_win32_libid.
6130    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6131    lt_cv_file_magic_cmd='$OBJDUMP -f'
6132  fi
6133  ;;
6134
6135cegcc*)
6136  # use the weaker test based on 'objdump'. See mingw*.
6137  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6138  lt_cv_file_magic_cmd='$OBJDUMP -f'
6139  ;;
6140
6141darwin* | rhapsody*)
6142  lt_cv_deplibs_check_method=pass_all
6143  ;;
6144
6145freebsd* | dragonfly*)
6146  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6147    case $host_cpu in
6148    i*86 )
6149      # Not sure whether the presence of OpenBSD here was a mistake.
6150      # Let's accept both of them until this is cleared up.
6151      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6152      lt_cv_file_magic_cmd=/usr/bin/file
6153      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6154      ;;
6155    esac
6156  else
6157    lt_cv_deplibs_check_method=pass_all
6158  fi
6159  ;;
6160
6161haiku*)
6162  lt_cv_deplibs_check_method=pass_all
6163  ;;
6164
6165hpux10.20* | hpux11*)
6166  lt_cv_file_magic_cmd=/usr/bin/file
6167  case $host_cpu in
6168  ia64*)
6169    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6170    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6171    ;;
6172  hppa*64*)
6173    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6174    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6175    ;;
6176  *)
6177    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6178    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6179    ;;
6180  esac
6181  ;;
6182
6183interix[3-9]*)
6184  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6185  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6186  ;;
6187
6188irix5* | irix6* | nonstopux*)
6189  case $LD in
6190  *-32|*"-32 ") libmagic=32-bit;;
6191  *-n32|*"-n32 ") libmagic=N32;;
6192  *-64|*"-64 ") libmagic=64-bit;;
6193  *) libmagic=never-match;;
6194  esac
6195  lt_cv_deplibs_check_method=pass_all
6196  ;;
6197
6198# This must be glibc/ELF.
6199linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6200  lt_cv_deplibs_check_method=pass_all
6201  ;;
6202
6203netbsd* | netbsdelf*-gnu)
6204  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6205    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6206  else
6207    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6208  fi
6209  ;;
6210
6211newos6*)
6212  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6213  lt_cv_file_magic_cmd=/usr/bin/file
6214  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6215  ;;
6216
6217*nto* | *qnx*)
6218  lt_cv_deplibs_check_method=pass_all
6219  ;;
6220
6221openbsd* | bitrig*)
6222  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6223    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6224  else
6225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6226  fi
6227  ;;
6228
6229osf3* | osf4* | osf5*)
6230  lt_cv_deplibs_check_method=pass_all
6231  ;;
6232
6233rdos*)
6234  lt_cv_deplibs_check_method=pass_all
6235  ;;
6236
6237solaris*)
6238  lt_cv_deplibs_check_method=pass_all
6239  ;;
6240
6241sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6242  lt_cv_deplibs_check_method=pass_all
6243  ;;
6244
6245sysv4 | sysv4.3*)
6246  case $host_vendor in
6247  motorola)
6248    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6249    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6250    ;;
6251  ncr)
6252    lt_cv_deplibs_check_method=pass_all
6253    ;;
6254  sequent)
6255    lt_cv_file_magic_cmd='/bin/file'
6256    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6257    ;;
6258  sni)
6259    lt_cv_file_magic_cmd='/bin/file'
6260    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6261    lt_cv_file_magic_test_file=/lib/libc.so
6262    ;;
6263  siemens)
6264    lt_cv_deplibs_check_method=pass_all
6265    ;;
6266  pc)
6267    lt_cv_deplibs_check_method=pass_all
6268    ;;
6269  esac
6270  ;;
6271
6272tpf*)
6273  lt_cv_deplibs_check_method=pass_all
6274  ;;
6275os2*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278esac
6279
6280fi
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6282$as_echo "$lt_cv_deplibs_check_method" >&6; }
6283
6284file_magic_glob=
6285want_nocaseglob=no
6286if test "$build" = "$host"; then
6287  case $host_os in
6288  mingw* | pw32*)
6289    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6290      want_nocaseglob=yes
6291    else
6292      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6293    fi
6294    ;;
6295  esac
6296fi
6297
6298file_magic_cmd=$lt_cv_file_magic_cmd
6299deplibs_check_method=$lt_cv_deplibs_check_method
6300test -z "$deplibs_check_method" && deplibs_check_method=unknown
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323if test -n "$ac_tool_prefix"; then
6324  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6325set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if ${ac_cv_prog_DLLTOOL+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  if test -n "$DLLTOOL"; then
6332  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  test -z "$as_dir" && as_dir=.
6339    for ac_exec_ext in '' $ac_executable_extensions; do
6340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343    break 2
6344  fi
6345done
6346  done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351DLLTOOL=$ac_cv_prog_DLLTOOL
6352if test -n "$DLLTOOL"; then
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6354$as_echo "$DLLTOOL" >&6; }
6355else
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360
6361fi
6362if test -z "$ac_cv_prog_DLLTOOL"; then
6363  ac_ct_DLLTOOL=$DLLTOOL
6364  # Extract the first word of "dlltool", so it can be a program name with args.
6365set dummy dlltool; ac_word=$2
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367$as_echo_n "checking for $ac_word... " >&6; }
6368if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  if test -n "$ac_ct_DLLTOOL"; then
6372  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6392if test -n "$ac_ct_DLLTOOL"; then
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6394$as_echo "$ac_ct_DLLTOOL" >&6; }
6395else
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400  if test "x$ac_ct_DLLTOOL" = x; then
6401    DLLTOOL="false"
6402  else
6403    case $cross_compiling:$ac_tool_warned in
6404yes:)
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407ac_tool_warned=yes ;;
6408esac
6409    DLLTOOL=$ac_ct_DLLTOOL
6410  fi
6411else
6412  DLLTOOL="$ac_cv_prog_DLLTOOL"
6413fi
6414
6415test -z "$DLLTOOL" && DLLTOOL=dlltool
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6427$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6428if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  lt_cv_sharedlib_from_linklib_cmd='unknown'
6432
6433case $host_os in
6434cygwin* | mingw* | pw32* | cegcc*)
6435  # two different shell functions defined in ltmain.sh;
6436  # decide which one to use based on capabilities of $DLLTOOL
6437  case `$DLLTOOL --help 2>&1` in
6438  *--identify-strict*)
6439    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6440    ;;
6441  *)
6442    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6443    ;;
6444  esac
6445  ;;
6446*)
6447  # fallback: assume linklib IS sharedlib
6448  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6449  ;;
6450esac
6451
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6454$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6455sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6456test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6457
6458
6459
6460
6461
6462
6463
6464if test -n "$ac_tool_prefix"; then
6465  for ac_prog in ar
6466  do
6467    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_AR+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  if test -n "$AR"; then
6475  ac_cv_prog_AR="$AR" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489  done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494AR=$ac_cv_prog_AR
6495if test -n "$AR"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497$as_echo "$AR" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504    test -n "$AR" && break
6505  done
6506fi
6507if test -z "$AR"; then
6508  ac_ct_AR=$AR
6509  for ac_prog in ar
6510do
6511  # Extract the first word of "$ac_prog", so it can be a program name with args.
6512set dummy $ac_prog; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if ${ac_cv_prog_ac_ct_AR+:} false; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  if test -n "$ac_ct_AR"; then
6519  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526    for ac_exec_ext in '' $ac_executable_extensions; do
6527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528    ac_cv_prog_ac_ct_AR="$ac_prog"
6529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533  done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539if test -n "$ac_ct_AR"; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541$as_echo "$ac_ct_AR" >&6; }
6542else
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548  test -n "$ac_ct_AR" && break
6549done
6550
6551  if test "x$ac_ct_AR" = x; then
6552    AR="false"
6553  else
6554    case $cross_compiling:$ac_tool_warned in
6555yes:)
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558ac_tool_warned=yes ;;
6559esac
6560    AR=$ac_ct_AR
6561  fi
6562fi
6563
6564: ${AR=ar}
6565: ${AR_FLAGS=cru}
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6578$as_echo_n "checking for archiver @FILE support... " >&6; }
6579if ${lt_cv_ar_at_file+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  lt_cv_ar_at_file=no
6583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585
6586int
6587main ()
6588{
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594if ac_fn_c_try_compile "$LINENO"; then :
6595  echo conftest.$ac_objext > conftest.lst
6596      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6597      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6598  (eval $lt_ar_try) 2>&5
6599  ac_status=$?
6600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601  test $ac_status = 0; }
6602      if test 0 -eq "$ac_status"; then
6603	# Ensure the archiver fails upon bogus file names.
6604	rm -f conftest.$ac_objext libconftest.a
6605	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6606  (eval $lt_ar_try) 2>&5
6607  ac_status=$?
6608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609  test $ac_status = 0; }
6610	if test 0 -ne "$ac_status"; then
6611          lt_cv_ar_at_file=@
6612        fi
6613      fi
6614      rm -f conftest.* libconftest.a
6615
6616fi
6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6621$as_echo "$lt_cv_ar_at_file" >&6; }
6622
6623if test no = "$lt_cv_ar_at_file"; then
6624  archiver_list_spec=
6625else
6626  archiver_list_spec=$lt_cv_ar_at_file
6627fi
6628
6629
6630
6631
6632
6633
6634
6635if test -n "$ac_tool_prefix"; then
6636  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6637set dummy ${ac_tool_prefix}strip; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if ${ac_cv_prog_STRIP+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  if test -n "$STRIP"; then
6644  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651    for ac_exec_ext in '' $ac_executable_extensions; do
6652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658  done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663STRIP=$ac_cv_prog_STRIP
6664if test -n "$STRIP"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6666$as_echo "$STRIP" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672
6673fi
6674if test -z "$ac_cv_prog_STRIP"; then
6675  ac_ct_STRIP=$STRIP
6676  # Extract the first word of "strip", so it can be a program name with args.
6677set dummy strip; ac_word=$2
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  if test -n "$ac_ct_STRIP"; then
6684  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691    for ac_exec_ext in '' $ac_executable_extensions; do
6692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693    ac_cv_prog_ac_ct_STRIP="strip"
6694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698  done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6704if test -n "$ac_ct_STRIP"; then
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6706$as_echo "$ac_ct_STRIP" >&6; }
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712  if test "x$ac_ct_STRIP" = x; then
6713    STRIP=":"
6714  else
6715    case $cross_compiling:$ac_tool_warned in
6716yes:)
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719ac_tool_warned=yes ;;
6720esac
6721    STRIP=$ac_ct_STRIP
6722  fi
6723else
6724  STRIP="$ac_cv_prog_STRIP"
6725fi
6726
6727test -z "$STRIP" && STRIP=:
6728
6729
6730
6731
6732
6733
6734if test -n "$ac_tool_prefix"; then
6735  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6736set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738$as_echo_n "checking for $ac_word... " >&6; }
6739if ${ac_cv_prog_RANLIB+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  if test -n "$RANLIB"; then
6743  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6744else
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748  IFS=$as_save_IFS
6749  test -z "$as_dir" && as_dir=.
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760fi
6761fi
6762RANLIB=$ac_cv_prog_RANLIB
6763if test -n "$RANLIB"; then
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6765$as_echo "$RANLIB" >&6; }
6766else
6767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768$as_echo "no" >&6; }
6769fi
6770
6771
6772fi
6773if test -z "$ac_cv_prog_RANLIB"; then
6774  ac_ct_RANLIB=$RANLIB
6775  # Extract the first word of "ranlib", so it can be a program name with args.
6776set dummy ranlib; ac_word=$2
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778$as_echo_n "checking for $ac_word... " >&6; }
6779if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782  if test -n "$ac_ct_RANLIB"; then
6783  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788  IFS=$as_save_IFS
6789  test -z "$as_dir" && as_dir=.
6790    for ac_exec_ext in '' $ac_executable_extensions; do
6791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792    ac_cv_prog_ac_ct_RANLIB="ranlib"
6793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794    break 2
6795  fi
6796done
6797  done
6798IFS=$as_save_IFS
6799
6800fi
6801fi
6802ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6803if test -n "$ac_ct_RANLIB"; then
6804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6805$as_echo "$ac_ct_RANLIB" >&6; }
6806else
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808$as_echo "no" >&6; }
6809fi
6810
6811  if test "x$ac_ct_RANLIB" = x; then
6812    RANLIB=":"
6813  else
6814    case $cross_compiling:$ac_tool_warned in
6815yes:)
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818ac_tool_warned=yes ;;
6819esac
6820    RANLIB=$ac_ct_RANLIB
6821  fi
6822else
6823  RANLIB="$ac_cv_prog_RANLIB"
6824fi
6825
6826test -z "$RANLIB" && RANLIB=:
6827
6828
6829
6830
6831
6832
6833# Determine commands to create old-style static archives.
6834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6835old_postinstall_cmds='chmod 644 $oldlib'
6836old_postuninstall_cmds=
6837
6838if test -n "$RANLIB"; then
6839  case $host_os in
6840  bitrig* | openbsd*)
6841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6842    ;;
6843  *)
6844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6845    ;;
6846  esac
6847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6848fi
6849
6850case $host_os in
6851  darwin*)
6852    lock_old_archive_extraction=yes ;;
6853  *)
6854    lock_old_archive_extraction=no ;;
6855esac
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895# If no C compiler was specified, use CC.
6896LTCC=${LTCC-"$CC"}
6897
6898# If no C compiler flags were specified, use CFLAGS.
6899LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6900
6901# Allow CC to be a program name with arguments.
6902compiler=$CC
6903
6904
6905# Check for command to grab the raw symbol name followed by C symbol from nm.
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6907$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6908if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911
6912# These are sane defaults that work on at least a few old systems.
6913# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6914
6915# Character class describing NM global symbol codes.
6916symcode='[BCDEGRST]'
6917
6918# Regexp to match symbols that can be accessed directly from C.
6919sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6920
6921# Define system-specific variables.
6922case $host_os in
6923aix*)
6924  symcode='[BCDT]'
6925  ;;
6926cygwin* | mingw* | pw32* | cegcc*)
6927  symcode='[ABCDGISTW]'
6928  ;;
6929hpux*)
6930  if test ia64 = "$host_cpu"; then
6931    symcode='[ABCDEGRST]'
6932  fi
6933  ;;
6934irix* | nonstopux*)
6935  symcode='[BCDEGRST]'
6936  ;;
6937osf*)
6938  symcode='[BCDEGQRST]'
6939  ;;
6940solaris*)
6941  symcode='[BDRT]'
6942  ;;
6943sco3.2v5*)
6944  symcode='[DT]'
6945  ;;
6946sysv4.2uw2*)
6947  symcode='[DT]'
6948  ;;
6949sysv5* | sco5v6* | unixware* | OpenUNIX*)
6950  symcode='[ABDT]'
6951  ;;
6952sysv4)
6953  symcode='[DFNSTU]'
6954  ;;
6955esac
6956
6957# If we're using GNU nm, then use its standard symbol codes.
6958case `$NM -V 2>&1` in
6959*GNU* | *'with BFD'*)
6960  symcode='[ABCDGIRSTW]' ;;
6961esac
6962
6963if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964  # Gets list of data symbols to import.
6965  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6966  # Adjust the below global symbol transforms to fixup imported variables.
6967  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6968  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6969  lt_c_name_lib_hook="\
6970  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6971  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6972else
6973  # Disable hooks by default.
6974  lt_cv_sys_global_symbol_to_import=
6975  lt_cdecl_hook=
6976  lt_c_name_hook=
6977  lt_c_name_lib_hook=
6978fi
6979
6980# Transform an extracted symbol line into a proper C declaration.
6981# Some systems (esp. on ia64) link data and code symbols differently,
6982# so use this general approach.
6983lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6984$lt_cdecl_hook\
6985" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6986" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6987
6988# Transform an extracted symbol line into symbol name and symbol address
6989lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6990$lt_c_name_hook\
6991" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6992" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6993
6994# Transform an extracted symbol line into symbol name with lib prefix and
6995# symbol address.
6996lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6997$lt_c_name_lib_hook\
6998" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6999" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7000" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7001
7002# Handle CRLF in mingw tool chain
7003opt_cr=
7004case $build_os in
7005mingw*)
7006  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7007  ;;
7008esac
7009
7010# Try without a prefix underscore, then with it.
7011for ac_symprfx in "" "_"; do
7012
7013  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7014  symxfrm="\\1 $ac_symprfx\\2 \\2"
7015
7016  # Write the raw and C identifiers.
7017  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7018    # Fake it for dumpbin and say T for any non-static function,
7019    # D for any global variable and I for any imported variable.
7020    # Also find C++ and __fastcall symbols from MSVC++,
7021    # which start with @ or ?.
7022    lt_cv_sys_global_symbol_pipe="$AWK '"\
7023"     {last_section=section; section=\$ 3};"\
7024"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7025"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7026"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7027"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7028"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7029"     \$ 0!~/External *\|/{next};"\
7030"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7031"     {if(hide[section]) next};"\
7032"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7033"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7034"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7035"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7036"     ' prfx=^$ac_symprfx"
7037  else
7038    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7039  fi
7040  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7041
7042  # Check to see that the pipe works correctly.
7043  pipe_works=no
7044
7045  rm -f conftest*
7046  cat > conftest.$ac_ext <<_LT_EOF
7047#ifdef __cplusplus
7048extern "C" {
7049#endif
7050char nm_test_var;
7051void nm_test_func(void);
7052void nm_test_func(void){}
7053#ifdef __cplusplus
7054}
7055#endif
7056int main(){nm_test_var='a';nm_test_func();return(0);}
7057_LT_EOF
7058
7059  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7060  (eval $ac_compile) 2>&5
7061  ac_status=$?
7062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063  test $ac_status = 0; }; then
7064    # Now try to grab the symbols.
7065    nlist=conftest.nm
7066    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7067  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7068  ac_status=$?
7069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070  test $ac_status = 0; } && test -s "$nlist"; then
7071      # Try sorting and uniquifying the output.
7072      if sort "$nlist" | uniq > "$nlist"T; then
7073	mv -f "$nlist"T "$nlist"
7074      else
7075	rm -f "$nlist"T
7076      fi
7077
7078      # Make sure that we snagged all the symbols we need.
7079      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7080	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7081	  cat <<_LT_EOF > conftest.$ac_ext
7082/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7083#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7084/* DATA imports from DLLs on WIN32 can't be const, because runtime
7085   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7086# define LT_DLSYM_CONST
7087#elif defined __osf__
7088/* This system does not cope well with relocations in const data.  */
7089# define LT_DLSYM_CONST
7090#else
7091# define LT_DLSYM_CONST const
7092#endif
7093
7094#ifdef __cplusplus
7095extern "C" {
7096#endif
7097
7098_LT_EOF
7099	  # Now generate the symbol file.
7100	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7101
7102	  cat <<_LT_EOF >> conftest.$ac_ext
7103
7104/* The mapping between symbol names and symbols.  */
7105LT_DLSYM_CONST struct {
7106  const char *name;
7107  void       *address;
7108}
7109lt__PROGRAM__LTX_preloaded_symbols[] =
7110{
7111  { "@PROGRAM@", (void *) 0 },
7112_LT_EOF
7113	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7114	  cat <<\_LT_EOF >> conftest.$ac_ext
7115  {0, (void *) 0}
7116};
7117
7118/* This works around a problem in FreeBSD linker */
7119#ifdef FREEBSD_WORKAROUND
7120static const void *lt_preloaded_setup() {
7121  return lt__PROGRAM__LTX_preloaded_symbols;
7122}
7123#endif
7124
7125#ifdef __cplusplus
7126}
7127#endif
7128_LT_EOF
7129	  # Now try linking the two files.
7130	  mv conftest.$ac_objext conftstm.$ac_objext
7131	  lt_globsym_save_LIBS=$LIBS
7132	  lt_globsym_save_CFLAGS=$CFLAGS
7133	  LIBS=conftstm.$ac_objext
7134	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7135	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7136  (eval $ac_link) 2>&5
7137  ac_status=$?
7138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7140	    pipe_works=yes
7141	  fi
7142	  LIBS=$lt_globsym_save_LIBS
7143	  CFLAGS=$lt_globsym_save_CFLAGS
7144	else
7145	  echo "cannot find nm_test_func in $nlist" >&5
7146	fi
7147      else
7148	echo "cannot find nm_test_var in $nlist" >&5
7149      fi
7150    else
7151      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7152    fi
7153  else
7154    echo "$progname: failed program was:" >&5
7155    cat conftest.$ac_ext >&5
7156  fi
7157  rm -rf conftest* conftst*
7158
7159  # Do not use the global_symbol_pipe unless it works.
7160  if test yes = "$pipe_works"; then
7161    break
7162  else
7163    lt_cv_sys_global_symbol_pipe=
7164  fi
7165done
7166
7167fi
7168
7169if test -z "$lt_cv_sys_global_symbol_pipe"; then
7170  lt_cv_sys_global_symbol_to_cdecl=
7171fi
7172if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7174$as_echo "failed" >&6; }
7175else
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7177$as_echo "ok" >&6; }
7178fi
7179
7180# Response file support.
7181if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7182  nm_file_list_spec='@'
7183elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7184  nm_file_list_spec='@'
7185fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7224$as_echo_n "checking for sysroot... " >&6; }
7225
7226# Check whether --with-sysroot was given.
7227if test "${with_sysroot+set}" = set; then :
7228  withval=$with_sysroot;
7229else
7230  with_sysroot=no
7231fi
7232
7233
7234lt_sysroot=
7235case $with_sysroot in #(
7236 yes)
7237   if test yes = "$GCC"; then
7238     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7239   fi
7240   ;; #(
7241 /*)
7242   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7243   ;; #(
7244 no|'')
7245   ;; #(
7246 *)
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7248$as_echo "$with_sysroot" >&6; }
7249   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7250   ;;
7251esac
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7254$as_echo "${lt_sysroot:-no}" >&6; }
7255
7256
7257
7258
7259
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7261$as_echo_n "checking for a working dd... " >&6; }
7262if ${ac_cv_path_lt_DD+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  printf 0123456789abcdef0123456789abcdef >conftest.i
7266cat conftest.i conftest.i >conftest2.i
7267: ${lt_DD:=$DD}
7268if test -z "$lt_DD"; then
7269  ac_path_lt_DD_found=false
7270  # Loop through the user's path and test for each of PROGNAME-LIST
7271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_prog in dd; do
7277    for ac_exec_ext in '' $ac_executable_extensions; do
7278      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7279      as_fn_executable_p "$ac_path_lt_DD" || continue
7280if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7281  cmp -s conftest.i conftest.out \
7282  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7283fi
7284      $ac_path_lt_DD_found && break 3
7285    done
7286  done
7287  done
7288IFS=$as_save_IFS
7289  if test -z "$ac_cv_path_lt_DD"; then
7290    :
7291  fi
7292else
7293  ac_cv_path_lt_DD=$lt_DD
7294fi
7295
7296rm -f conftest.i conftest2.i conftest.out
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7299$as_echo "$ac_cv_path_lt_DD" >&6; }
7300
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7303$as_echo_n "checking how to truncate binary pipes... " >&6; }
7304if ${lt_cv_truncate_bin+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  printf 0123456789abcdef0123456789abcdef >conftest.i
7308cat conftest.i conftest.i >conftest2.i
7309lt_cv_truncate_bin=
7310if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7311  cmp -s conftest.i conftest.out \
7312  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7313fi
7314rm -f conftest.i conftest2.i conftest.out
7315test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7318$as_echo "$lt_cv_truncate_bin" >&6; }
7319
7320
7321
7322
7323
7324
7325
7326# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7327func_cc_basename ()
7328{
7329    for cc_temp in $*""; do
7330      case $cc_temp in
7331        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7332        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7333        \-*) ;;
7334        *) break;;
7335      esac
7336    done
7337    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7338}
7339
7340# Check whether --enable-libtool-lock was given.
7341if test "${enable_libtool_lock+set}" = set; then :
7342  enableval=$enable_libtool_lock;
7343fi
7344
7345test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7346
7347# Some flags need to be propagated to the compiler or linker for good
7348# libtool support.
7349case $host in
7350ia64-*-hpux*)
7351  # Find out what ABI is being produced by ac_compile, and set mode
7352  # options accordingly.
7353  echo 'int i;' > conftest.$ac_ext
7354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355  (eval $ac_compile) 2>&5
7356  ac_status=$?
7357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358  test $ac_status = 0; }; then
7359    case `/usr/bin/file conftest.$ac_objext` in
7360      *ELF-32*)
7361	HPUX_IA64_MODE=32
7362	;;
7363      *ELF-64*)
7364	HPUX_IA64_MODE=64
7365	;;
7366    esac
7367  fi
7368  rm -rf conftest*
7369  ;;
7370*-*-irix6*)
7371  # Find out what ABI is being produced by ac_compile, and set linker
7372  # options accordingly.
7373  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7374  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7375  (eval $ac_compile) 2>&5
7376  ac_status=$?
7377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378  test $ac_status = 0; }; then
7379    if test yes = "$lt_cv_prog_gnu_ld"; then
7380      case `/usr/bin/file conftest.$ac_objext` in
7381	*32-bit*)
7382	  LD="${LD-ld} -melf32bsmip"
7383	  ;;
7384	*N32*)
7385	  LD="${LD-ld} -melf32bmipn32"
7386	  ;;
7387	*64-bit*)
7388	  LD="${LD-ld} -melf64bmip"
7389	;;
7390      esac
7391    else
7392      case `/usr/bin/file conftest.$ac_objext` in
7393	*32-bit*)
7394	  LD="${LD-ld} -32"
7395	  ;;
7396	*N32*)
7397	  LD="${LD-ld} -n32"
7398	  ;;
7399	*64-bit*)
7400	  LD="${LD-ld} -64"
7401	  ;;
7402      esac
7403    fi
7404  fi
7405  rm -rf conftest*
7406  ;;
7407
7408mips64*-*linux*)
7409  # Find out what ABI is being produced by ac_compile, and set linker
7410  # options accordingly.
7411  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7412  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413  (eval $ac_compile) 2>&5
7414  ac_status=$?
7415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416  test $ac_status = 0; }; then
7417    emul=elf
7418    case `/usr/bin/file conftest.$ac_objext` in
7419      *32-bit*)
7420	emul="${emul}32"
7421	;;
7422      *64-bit*)
7423	emul="${emul}64"
7424	;;
7425    esac
7426    case `/usr/bin/file conftest.$ac_objext` in
7427      *MSB*)
7428	emul="${emul}btsmip"
7429	;;
7430      *LSB*)
7431	emul="${emul}ltsmip"
7432	;;
7433    esac
7434    case `/usr/bin/file conftest.$ac_objext` in
7435      *N32*)
7436	emul="${emul}n32"
7437	;;
7438    esac
7439    LD="${LD-ld} -m $emul"
7440  fi
7441  rm -rf conftest*
7442  ;;
7443
7444x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7445s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7446  # Find out what ABI is being produced by ac_compile, and set linker
7447  # options accordingly.  Note that the listed cases only cover the
7448  # situations where additional linker options are needed (such as when
7449  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7450  # vice versa); the common cases where no linker options are needed do
7451  # not appear in the list.
7452  echo 'int i;' > conftest.$ac_ext
7453  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7454  (eval $ac_compile) 2>&5
7455  ac_status=$?
7456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457  test $ac_status = 0; }; then
7458    case `/usr/bin/file conftest.o` in
7459      *32-bit*)
7460	case $host in
7461	  x86_64-*kfreebsd*-gnu)
7462	    LD="${LD-ld} -m elf_i386_fbsd"
7463	    ;;
7464	  x86_64-*linux*)
7465	    case `/usr/bin/file conftest.o` in
7466	      *x86-64*)
7467		LD="${LD-ld} -m elf32_x86_64"
7468		;;
7469	      *)
7470		LD="${LD-ld} -m elf_i386"
7471		;;
7472	    esac
7473	    ;;
7474	  powerpc64le-*linux*)
7475	    LD="${LD-ld} -m elf32lppclinux"
7476	    ;;
7477	  powerpc64-*linux*)
7478	    LD="${LD-ld} -m elf32ppclinux"
7479	    ;;
7480	  s390x-*linux*)
7481	    LD="${LD-ld} -m elf_s390"
7482	    ;;
7483	  sparc64-*linux*)
7484	    LD="${LD-ld} -m elf32_sparc"
7485	    ;;
7486	esac
7487	;;
7488      *64-bit*)
7489	case $host in
7490	  x86_64-*kfreebsd*-gnu)
7491	    LD="${LD-ld} -m elf_x86_64_fbsd"
7492	    ;;
7493	  x86_64-*linux*)
7494	    LD="${LD-ld} -m elf_x86_64"
7495	    ;;
7496	  powerpcle-*linux*)
7497	    LD="${LD-ld} -m elf64lppc"
7498	    ;;
7499	  powerpc-*linux*)
7500	    LD="${LD-ld} -m elf64ppc"
7501	    ;;
7502	  s390*-*linux*|s390*-*tpf*)
7503	    LD="${LD-ld} -m elf64_s390"
7504	    ;;
7505	  sparc*-*linux*)
7506	    LD="${LD-ld} -m elf64_sparc"
7507	    ;;
7508	esac
7509	;;
7510    esac
7511  fi
7512  rm -rf conftest*
7513  ;;
7514
7515*-*-sco3.2v5*)
7516  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7517  SAVE_CFLAGS=$CFLAGS
7518  CFLAGS="$CFLAGS -belf"
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7520$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7521if ${lt_cv_cc_needs_belf+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  ac_ext=c
7525ac_cpp='$CPP $CPPFLAGS'
7526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529
7530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532
7533int
7534main ()
7535{
7536
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541if ac_fn_c_try_link "$LINENO"; then :
7542  lt_cv_cc_needs_belf=yes
7543else
7544  lt_cv_cc_needs_belf=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext \
7547    conftest$ac_exeext conftest.$ac_ext
7548     ac_ext=c
7549ac_cpp='$CPP $CPPFLAGS'
7550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7556$as_echo "$lt_cv_cc_needs_belf" >&6; }
7557  if test yes != "$lt_cv_cc_needs_belf"; then
7558    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7559    CFLAGS=$SAVE_CFLAGS
7560  fi
7561  ;;
7562*-*solaris*)
7563  # Find out what ABI is being produced by ac_compile, and set linker
7564  # options accordingly.
7565  echo 'int i;' > conftest.$ac_ext
7566  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7567  (eval $ac_compile) 2>&5
7568  ac_status=$?
7569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570  test $ac_status = 0; }; then
7571    case `/usr/bin/file conftest.o` in
7572    *64-bit*)
7573      case $lt_cv_prog_gnu_ld in
7574      yes*)
7575        case $host in
7576        i?86-*-solaris*|x86_64-*-solaris*)
7577          LD="${LD-ld} -m elf_x86_64"
7578          ;;
7579        sparc*-*-solaris*)
7580          LD="${LD-ld} -m elf64_sparc"
7581          ;;
7582        esac
7583        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7584        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7585          LD=${LD-ld}_sol2
7586        fi
7587        ;;
7588      *)
7589	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7590	  LD="${LD-ld} -64"
7591	fi
7592	;;
7593      esac
7594      ;;
7595    esac
7596  fi
7597  rm -rf conftest*
7598  ;;
7599esac
7600
7601need_locks=$enable_libtool_lock
7602
7603if test -n "$ac_tool_prefix"; then
7604  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7605set dummy ${ac_tool_prefix}mt; ac_word=$2
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607$as_echo_n "checking for $ac_word... " >&6; }
7608if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  if test -n "$MANIFEST_TOOL"; then
7612  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617  IFS=$as_save_IFS
7618  test -z "$as_dir" && as_dir=.
7619    for ac_exec_ext in '' $ac_executable_extensions; do
7620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623    break 2
7624  fi
7625done
7626  done
7627IFS=$as_save_IFS
7628
7629fi
7630fi
7631MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7632if test -n "$MANIFEST_TOOL"; then
7633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7634$as_echo "$MANIFEST_TOOL" >&6; }
7635else
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637$as_echo "no" >&6; }
7638fi
7639
7640
7641fi
7642if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7643  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7644  # Extract the first word of "mt", so it can be a program name with args.
7645set dummy mt; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  if test -n "$ac_ct_MANIFEST_TOOL"; then
7652  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659    for ac_exec_ext in '' $ac_executable_extensions; do
7660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666  done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7672if test -n "$ac_ct_MANIFEST_TOOL"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7674$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7675else
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7681    MANIFEST_TOOL=":"
7682  else
7683    case $cross_compiling:$ac_tool_warned in
7684yes:)
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687ac_tool_warned=yes ;;
7688esac
7689    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7690  fi
7691else
7692  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7693fi
7694
7695test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7697$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7698if ${lt_cv_path_mainfest_tool+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  lt_cv_path_mainfest_tool=no
7702  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7703  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7704  cat conftest.err >&5
7705  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7706    lt_cv_path_mainfest_tool=yes
7707  fi
7708  rm -f conftest*
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7711$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7712if test yes != "$lt_cv_path_mainfest_tool"; then
7713  MANIFEST_TOOL=:
7714fi
7715
7716
7717
7718
7719
7720
7721  case $host_os in
7722    rhapsody* | darwin*)
7723    if test -n "$ac_tool_prefix"; then
7724  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7725set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727$as_echo_n "checking for $ac_word... " >&6; }
7728if ${ac_cv_prog_DSYMUTIL+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  if test -n "$DSYMUTIL"; then
7732  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  test -z "$as_dir" && as_dir=.
7739    for ac_exec_ext in '' $ac_executable_extensions; do
7740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743    break 2
7744  fi
7745done
7746  done
7747IFS=$as_save_IFS
7748
7749fi
7750fi
7751DSYMUTIL=$ac_cv_prog_DSYMUTIL
7752if test -n "$DSYMUTIL"; then
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7754$as_echo "$DSYMUTIL" >&6; }
7755else
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
7759
7760
7761fi
7762if test -z "$ac_cv_prog_DSYMUTIL"; then
7763  ac_ct_DSYMUTIL=$DSYMUTIL
7764  # Extract the first word of "dsymutil", so it can be a program name with args.
7765set dummy dsymutil; ac_word=$2
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767$as_echo_n "checking for $ac_word... " >&6; }
7768if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7769  $as_echo_n "(cached) " >&6
7770else
7771  if test -n "$ac_ct_DSYMUTIL"; then
7772  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7773else
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777  IFS=$as_save_IFS
7778  test -z "$as_dir" && as_dir=.
7779    for ac_exec_ext in '' $ac_executable_extensions; do
7780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783    break 2
7784  fi
7785done
7786  done
7787IFS=$as_save_IFS
7788
7789fi
7790fi
7791ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7792if test -n "$ac_ct_DSYMUTIL"; then
7793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7794$as_echo "$ac_ct_DSYMUTIL" >&6; }
7795else
7796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
7798fi
7799
7800  if test "x$ac_ct_DSYMUTIL" = x; then
7801    DSYMUTIL=":"
7802  else
7803    case $cross_compiling:$ac_tool_warned in
7804yes:)
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7807ac_tool_warned=yes ;;
7808esac
7809    DSYMUTIL=$ac_ct_DSYMUTIL
7810  fi
7811else
7812  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7813fi
7814
7815    if test -n "$ac_tool_prefix"; then
7816  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7817set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if ${ac_cv_prog_NMEDIT+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  if test -n "$NMEDIT"; then
7824  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7825else
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829  IFS=$as_save_IFS
7830  test -z "$as_dir" && as_dir=.
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843NMEDIT=$ac_cv_prog_NMEDIT
7844if test -n "$NMEDIT"; then
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7846$as_echo "$NMEDIT" >&6; }
7847else
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
7850fi
7851
7852
7853fi
7854if test -z "$ac_cv_prog_NMEDIT"; then
7855  ac_ct_NMEDIT=$NMEDIT
7856  # Extract the first word of "nmedit", so it can be a program name with args.
7857set dummy nmedit; ac_word=$2
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859$as_echo_n "checking for $ac_word... " >&6; }
7860if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7861  $as_echo_n "(cached) " >&6
7862else
7863  if test -n "$ac_ct_NMEDIT"; then
7864  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7865else
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869  IFS=$as_save_IFS
7870  test -z "$as_dir" && as_dir=.
7871    for ac_exec_ext in '' $ac_executable_extensions; do
7872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875    break 2
7876  fi
7877done
7878  done
7879IFS=$as_save_IFS
7880
7881fi
7882fi
7883ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7884if test -n "$ac_ct_NMEDIT"; then
7885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7886$as_echo "$ac_ct_NMEDIT" >&6; }
7887else
7888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
7890fi
7891
7892  if test "x$ac_ct_NMEDIT" = x; then
7893    NMEDIT=":"
7894  else
7895    case $cross_compiling:$ac_tool_warned in
7896yes:)
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7899ac_tool_warned=yes ;;
7900esac
7901    NMEDIT=$ac_ct_NMEDIT
7902  fi
7903else
7904  NMEDIT="$ac_cv_prog_NMEDIT"
7905fi
7906
7907    if test -n "$ac_tool_prefix"; then
7908  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7909set dummy ${ac_tool_prefix}lipo; ac_word=$2
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911$as_echo_n "checking for $ac_word... " >&6; }
7912if ${ac_cv_prog_LIPO+:} false; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  if test -n "$LIPO"; then
7916  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7917else
7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921  IFS=$as_save_IFS
7922  test -z "$as_dir" && as_dir=.
7923    for ac_exec_ext in '' $ac_executable_extensions; do
7924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927    break 2
7928  fi
7929done
7930  done
7931IFS=$as_save_IFS
7932
7933fi
7934fi
7935LIPO=$ac_cv_prog_LIPO
7936if test -n "$LIPO"; then
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7938$as_echo "$LIPO" >&6; }
7939else
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941$as_echo "no" >&6; }
7942fi
7943
7944
7945fi
7946if test -z "$ac_cv_prog_LIPO"; then
7947  ac_ct_LIPO=$LIPO
7948  # Extract the first word of "lipo", so it can be a program name with args.
7949set dummy lipo; ac_word=$2
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  if test -n "$ac_ct_LIPO"; then
7956  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963    for ac_exec_ext in '' $ac_executable_extensions; do
7964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965    ac_cv_prog_ac_ct_LIPO="lipo"
7966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970  done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7976if test -n "$ac_ct_LIPO"; then
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7978$as_echo "$ac_ct_LIPO" >&6; }
7979else
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984  if test "x$ac_ct_LIPO" = x; then
7985    LIPO=":"
7986  else
7987    case $cross_compiling:$ac_tool_warned in
7988yes:)
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7991ac_tool_warned=yes ;;
7992esac
7993    LIPO=$ac_ct_LIPO
7994  fi
7995else
7996  LIPO="$ac_cv_prog_LIPO"
7997fi
7998
7999    if test -n "$ac_tool_prefix"; then
8000  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8001set dummy ${ac_tool_prefix}otool; ac_word=$2
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003$as_echo_n "checking for $ac_word... " >&6; }
8004if ${ac_cv_prog_OTOOL+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  if test -n "$OTOOL"; then
8008  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8009else
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013  IFS=$as_save_IFS
8014  test -z "$as_dir" && as_dir=.
8015    for ac_exec_ext in '' $ac_executable_extensions; do
8016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019    break 2
8020  fi
8021done
8022  done
8023IFS=$as_save_IFS
8024
8025fi
8026fi
8027OTOOL=$ac_cv_prog_OTOOL
8028if test -n "$OTOOL"; then
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8030$as_echo "$OTOOL" >&6; }
8031else
8032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033$as_echo "no" >&6; }
8034fi
8035
8036
8037fi
8038if test -z "$ac_cv_prog_OTOOL"; then
8039  ac_ct_OTOOL=$OTOOL
8040  # Extract the first word of "otool", so it can be a program name with args.
8041set dummy otool; ac_word=$2
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043$as_echo_n "checking for $ac_word... " >&6; }
8044if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8045  $as_echo_n "(cached) " >&6
8046else
8047  if test -n "$ac_ct_OTOOL"; then
8048  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8049else
8050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051for as_dir in $PATH
8052do
8053  IFS=$as_save_IFS
8054  test -z "$as_dir" && as_dir=.
8055    for ac_exec_ext in '' $ac_executable_extensions; do
8056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057    ac_cv_prog_ac_ct_OTOOL="otool"
8058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059    break 2
8060  fi
8061done
8062  done
8063IFS=$as_save_IFS
8064
8065fi
8066fi
8067ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8068if test -n "$ac_ct_OTOOL"; then
8069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8070$as_echo "$ac_ct_OTOOL" >&6; }
8071else
8072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074fi
8075
8076  if test "x$ac_ct_OTOOL" = x; then
8077    OTOOL=":"
8078  else
8079    case $cross_compiling:$ac_tool_warned in
8080yes:)
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083ac_tool_warned=yes ;;
8084esac
8085    OTOOL=$ac_ct_OTOOL
8086  fi
8087else
8088  OTOOL="$ac_cv_prog_OTOOL"
8089fi
8090
8091    if test -n "$ac_tool_prefix"; then
8092  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8093set dummy ${ac_tool_prefix}otool64; ac_word=$2
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095$as_echo_n "checking for $ac_word... " >&6; }
8096if ${ac_cv_prog_OTOOL64+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  if test -n "$OTOOL64"; then
8100  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8101else
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105  IFS=$as_save_IFS
8106  test -z "$as_dir" && as_dir=.
8107    for ac_exec_ext in '' $ac_executable_extensions; do
8108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111    break 2
8112  fi
8113done
8114  done
8115IFS=$as_save_IFS
8116
8117fi
8118fi
8119OTOOL64=$ac_cv_prog_OTOOL64
8120if test -n "$OTOOL64"; then
8121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8122$as_echo "$OTOOL64" >&6; }
8123else
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8127
8128
8129fi
8130if test -z "$ac_cv_prog_OTOOL64"; then
8131  ac_ct_OTOOL64=$OTOOL64
8132  # Extract the first word of "otool64", so it can be a program name with args.
8133set dummy otool64; ac_word=$2
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135$as_echo_n "checking for $ac_word... " >&6; }
8136if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  if test -n "$ac_ct_OTOOL64"; then
8140  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145  IFS=$as_save_IFS
8146  test -z "$as_dir" && as_dir=.
8147    for ac_exec_ext in '' $ac_executable_extensions; do
8148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149    ac_cv_prog_ac_ct_OTOOL64="otool64"
8150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151    break 2
8152  fi
8153done
8154  done
8155IFS=$as_save_IFS
8156
8157fi
8158fi
8159ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8160if test -n "$ac_ct_OTOOL64"; then
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8162$as_echo "$ac_ct_OTOOL64" >&6; }
8163else
8164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165$as_echo "no" >&6; }
8166fi
8167
8168  if test "x$ac_ct_OTOOL64" = x; then
8169    OTOOL64=":"
8170  else
8171    case $cross_compiling:$ac_tool_warned in
8172yes:)
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175ac_tool_warned=yes ;;
8176esac
8177    OTOOL64=$ac_ct_OTOOL64
8178  fi
8179else
8180  OTOOL64="$ac_cv_prog_OTOOL64"
8181fi
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8210$as_echo_n "checking for -single_module linker flag... " >&6; }
8211if ${lt_cv_apple_cc_single_mod+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  lt_cv_apple_cc_single_mod=no
8215      if test -z "$LT_MULTI_MODULE"; then
8216	# By default we will add the -single_module flag. You can override
8217	# by either setting the environment variable LT_MULTI_MODULE
8218	# non-empty at configure time, or by adding -multi_module to the
8219	# link flags.
8220	rm -rf libconftest.dylib*
8221	echo "int foo(void){return 1;}" > conftest.c
8222	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8223-dynamiclib -Wl,-single_module conftest.c" >&5
8224	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8225	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8226        _lt_result=$?
8227	# If there is a non-empty error log, and "single_module"
8228	# appears in it, assume the flag caused a linker warning
8229        if test -s conftest.err && $GREP single_module conftest.err; then
8230	  cat conftest.err >&5
8231	# Otherwise, if the output was created with a 0 exit code from
8232	# the compiler, it worked.
8233	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8234	  lt_cv_apple_cc_single_mod=yes
8235	else
8236	  cat conftest.err >&5
8237	fi
8238	rm -rf libconftest.dylib*
8239	rm -f conftest.*
8240      fi
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8243$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8244
8245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8246$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8247if ${lt_cv_ld_exported_symbols_list+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  lt_cv_ld_exported_symbols_list=no
8251      save_LDFLAGS=$LDFLAGS
8252      echo "_main" > conftest.sym
8253      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8254      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h.  */
8256
8257int
8258main ()
8259{
8260
8261  ;
8262  return 0;
8263}
8264_ACEOF
8265if ac_fn_c_try_link "$LINENO"; then :
8266  lt_cv_ld_exported_symbols_list=yes
8267else
8268  lt_cv_ld_exported_symbols_list=no
8269fi
8270rm -f core conftest.err conftest.$ac_objext \
8271    conftest$ac_exeext conftest.$ac_ext
8272	LDFLAGS=$save_LDFLAGS
8273
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8276$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8277
8278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8279$as_echo_n "checking for -force_load linker flag... " >&6; }
8280if ${lt_cv_ld_force_load+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  lt_cv_ld_force_load=no
8284      cat > conftest.c << _LT_EOF
8285int forced_loaded() { return 2;}
8286_LT_EOF
8287      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8288      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8289      echo "$AR cru libconftest.a conftest.o" >&5
8290      $AR cru libconftest.a conftest.o 2>&5
8291      echo "$RANLIB libconftest.a" >&5
8292      $RANLIB libconftest.a 2>&5
8293      cat > conftest.c << _LT_EOF
8294int main() { return 0;}
8295_LT_EOF
8296      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8297      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8298      _lt_result=$?
8299      if test -s conftest.err && $GREP force_load conftest.err; then
8300	cat conftest.err >&5
8301      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8302	lt_cv_ld_force_load=yes
8303      else
8304	cat conftest.err >&5
8305      fi
8306        rm -f conftest.err libconftest.a conftest conftest.c
8307        rm -rf conftest.dSYM
8308
8309fi
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8311$as_echo "$lt_cv_ld_force_load" >&6; }
8312    case $host_os in
8313    rhapsody* | darwin1.[012])
8314      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8315    darwin1.*)
8316      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8317    darwin*) # darwin 5.x on
8318      # if running on 10.5 or later, the deployment target defaults
8319      # to the OS version, if on x86, and 10.4, the deployment
8320      # target defaults to 10.4. Don't you love it?
8321      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8322	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8323	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8324	10.[012][,.]*)
8325	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8326	10.*)
8327	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8328      esac
8329    ;;
8330  esac
8331    if test yes = "$lt_cv_apple_cc_single_mod"; then
8332      _lt_dar_single_mod='$single_module'
8333    fi
8334    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8335      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8336    else
8337      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8338    fi
8339    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8340      _lt_dsymutil='~$DSYMUTIL $lib || :'
8341    else
8342      _lt_dsymutil=
8343    fi
8344    ;;
8345  esac
8346
8347# func_munge_path_list VARIABLE PATH
8348# -----------------------------------
8349# VARIABLE is name of variable containing _space_ separated list of
8350# directories to be munged by the contents of PATH, which is string
8351# having a format:
8352# "DIR[:DIR]:"
8353#       string "DIR[ DIR]" will be prepended to VARIABLE
8354# ":DIR[:DIR]"
8355#       string "DIR[ DIR]" will be appended to VARIABLE
8356# "DIRP[:DIRP]::[DIRA:]DIRA"
8357#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8358#       "DIRA[ DIRA]" will be appended to VARIABLE
8359# "DIR[:DIR]"
8360#       VARIABLE will be replaced by "DIR[ DIR]"
8361func_munge_path_list ()
8362{
8363    case x$2 in
8364    x)
8365        ;;
8366    *:)
8367        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8368        ;;
8369    x:*)
8370        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8371        ;;
8372    *::*)
8373        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8374        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8375        ;;
8376    *)
8377        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8378        ;;
8379    esac
8380}
8381
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8383$as_echo_n "checking for ANSI C header files... " >&6; }
8384if ${ac_cv_header_stdc+:} false; then :
8385  $as_echo_n "(cached) " >&6
8386else
8387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h.  */
8389#include <stdlib.h>
8390#include <stdarg.h>
8391#include <string.h>
8392#include <float.h>
8393
8394int
8395main ()
8396{
8397
8398  ;
8399  return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_compile "$LINENO"; then :
8403  ac_cv_header_stdc=yes
8404else
8405  ac_cv_header_stdc=no
8406fi
8407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408
8409if test $ac_cv_header_stdc = yes; then
8410  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412/* end confdefs.h.  */
8413#include <string.h>
8414
8415_ACEOF
8416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8417  $EGREP "memchr" >/dev/null 2>&1; then :
8418
8419else
8420  ac_cv_header_stdc=no
8421fi
8422rm -f conftest*
8423
8424fi
8425
8426if test $ac_cv_header_stdc = yes; then
8427  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430#include <stdlib.h>
8431
8432_ACEOF
8433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434  $EGREP "free" >/dev/null 2>&1; then :
8435
8436else
8437  ac_cv_header_stdc=no
8438fi
8439rm -f conftest*
8440
8441fi
8442
8443if test $ac_cv_header_stdc = yes; then
8444  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8445  if test "$cross_compiling" = yes; then :
8446  :
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450#include <ctype.h>
8451#include <stdlib.h>
8452#if ((' ' & 0x0FF) == 0x020)
8453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8455#else
8456# define ISLOWER(c) \
8457		   (('a' <= (c) && (c) <= 'i') \
8458		     || ('j' <= (c) && (c) <= 'r') \
8459		     || ('s' <= (c) && (c) <= 'z'))
8460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8461#endif
8462
8463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8464int
8465main ()
8466{
8467  int i;
8468  for (i = 0; i < 256; i++)
8469    if (XOR (islower (i), ISLOWER (i))
8470	|| toupper (i) != TOUPPER (i))
8471      return 2;
8472  return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_run "$LINENO"; then :
8476
8477else
8478  ac_cv_header_stdc=no
8479fi
8480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8481  conftest.$ac_objext conftest.beam conftest.$ac_ext
8482fi
8483
8484fi
8485fi
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8487$as_echo "$ac_cv_header_stdc" >&6; }
8488if test $ac_cv_header_stdc = yes; then
8489
8490$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8491
8492fi
8493
8494# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8495for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8496		  inttypes.h stdint.h unistd.h
8497do :
8498  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8499ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8500"
8501if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8502  cat >>confdefs.h <<_ACEOF
8503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504_ACEOF
8505
8506fi
8507
8508done
8509
8510
8511for ac_header in dlfcn.h
8512do :
8513  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8514"
8515if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8516  cat >>confdefs.h <<_ACEOF
8517#define HAVE_DLFCN_H 1
8518_ACEOF
8519
8520fi
8521
8522done
8523
8524
8525
8526
8527
8528# Set options
8529# Check whether --enable-static was given.
8530if test "${enable_static+set}" = set; then :
8531  enableval=$enable_static; p=${PACKAGE-default}
8532    case $enableval in
8533    yes) enable_static=yes ;;
8534    no) enable_static=no ;;
8535    *)
8536     enable_static=no
8537      # Look at the argument we got.  We use all the common list separators.
8538      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8539      for pkg in $enableval; do
8540	IFS=$lt_save_ifs
8541	if test "X$pkg" = "X$p"; then
8542	  enable_static=yes
8543	fi
8544      done
8545      IFS=$lt_save_ifs
8546      ;;
8547    esac
8548else
8549  enable_static=no
8550fi
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561        enable_dlopen=no
8562
8563
8564  enable_win32_dll=no
8565
8566
8567            # Check whether --enable-shared was given.
8568if test "${enable_shared+set}" = set; then :
8569  enableval=$enable_shared; p=${PACKAGE-default}
8570    case $enableval in
8571    yes) enable_shared=yes ;;
8572    no) enable_shared=no ;;
8573    *)
8574      enable_shared=no
8575      # Look at the argument we got.  We use all the common list separators.
8576      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8577      for pkg in $enableval; do
8578	IFS=$lt_save_ifs
8579	if test "X$pkg" = "X$p"; then
8580	  enable_shared=yes
8581	fi
8582      done
8583      IFS=$lt_save_ifs
8584      ;;
8585    esac
8586else
8587  enable_shared=yes
8588fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600# Check whether --with-pic was given.
8601if test "${with_pic+set}" = set; then :
8602  withval=$with_pic; lt_p=${PACKAGE-default}
8603    case $withval in
8604    yes|no) pic_mode=$withval ;;
8605    *)
8606      pic_mode=default
8607      # Look at the argument we got.  We use all the common list separators.
8608      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8609      for lt_pkg in $withval; do
8610	IFS=$lt_save_ifs
8611	if test "X$lt_pkg" = "X$lt_p"; then
8612	  pic_mode=yes
8613	fi
8614      done
8615      IFS=$lt_save_ifs
8616      ;;
8617    esac
8618else
8619  pic_mode=default
8620fi
8621
8622
8623
8624
8625
8626
8627
8628
8629  # Check whether --enable-fast-install was given.
8630if test "${enable_fast_install+set}" = set; then :
8631  enableval=$enable_fast_install; p=${PACKAGE-default}
8632    case $enableval in
8633    yes) enable_fast_install=yes ;;
8634    no) enable_fast_install=no ;;
8635    *)
8636      enable_fast_install=no
8637      # Look at the argument we got.  We use all the common list separators.
8638      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8639      for pkg in $enableval; do
8640	IFS=$lt_save_ifs
8641	if test "X$pkg" = "X$p"; then
8642	  enable_fast_install=yes
8643	fi
8644      done
8645      IFS=$lt_save_ifs
8646      ;;
8647    esac
8648else
8649  enable_fast_install=yes
8650fi
8651
8652
8653
8654
8655
8656
8657
8658
8659  shared_archive_member_spec=
8660case $host,$enable_shared in
8661power*-*-aix[5-9]*,yes)
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8663$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8664
8665# Check whether --with-aix-soname was given.
8666if test "${with_aix_soname+set}" = set; then :
8667  withval=$with_aix_soname; case $withval in
8668    aix|svr4|both)
8669      ;;
8670    *)
8671      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8672      ;;
8673    esac
8674    lt_cv_with_aix_soname=$with_aix_soname
8675else
8676  if ${lt_cv_with_aix_soname+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  lt_cv_with_aix_soname=aix
8680fi
8681
8682    with_aix_soname=$lt_cv_with_aix_soname
8683fi
8684
8685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8686$as_echo "$with_aix_soname" >&6; }
8687  if test aix != "$with_aix_soname"; then
8688    # For the AIX way of multilib, we name the shared archive member
8689    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8690    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8691    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8692    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8693    if test 64 = "${OBJECT_MODE-32}"; then
8694      shared_archive_member_spec=shr_64
8695    else
8696      shared_archive_member_spec=shr
8697    fi
8698  fi
8699  ;;
8700*)
8701  with_aix_soname=aix
8702  ;;
8703esac
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714# This can be used to rebuild libtool when needed
8715LIBTOOL_DEPS=$ltmain
8716
8717# Always use our own libtool.
8718LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749test -z "$LN_S" && LN_S="ln -s"
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764if test -n "${ZSH_VERSION+set}"; then
8765   setopt NO_GLOB_SUBST
8766fi
8767
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8769$as_echo_n "checking for objdir... " >&6; }
8770if ${lt_cv_objdir+:} false; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  rm -f .libs 2>/dev/null
8774mkdir .libs 2>/dev/null
8775if test -d .libs; then
8776  lt_cv_objdir=.libs
8777else
8778  # MS-DOS does not allow filenames that begin with a dot.
8779  lt_cv_objdir=_libs
8780fi
8781rmdir .libs 2>/dev/null
8782fi
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8784$as_echo "$lt_cv_objdir" >&6; }
8785objdir=$lt_cv_objdir
8786
8787
8788
8789
8790
8791cat >>confdefs.h <<_ACEOF
8792#define LT_OBJDIR "$lt_cv_objdir/"
8793_ACEOF
8794
8795
8796
8797
8798case $host_os in
8799aix3*)
8800  # AIX sometimes has problems with the GCC collect2 program.  For some
8801  # reason, if we set the COLLECT_NAMES environment variable, the problems
8802  # vanish in a puff of smoke.
8803  if test set != "${COLLECT_NAMES+set}"; then
8804    COLLECT_NAMES=
8805    export COLLECT_NAMES
8806  fi
8807  ;;
8808esac
8809
8810# Global variables:
8811ofile=libtool
8812can_build_shared=yes
8813
8814# All known linkers require a '.a' archive for static linking (except MSVC,
8815# which needs '.lib').
8816libext=a
8817
8818with_gnu_ld=$lt_cv_prog_gnu_ld
8819
8820old_CC=$CC
8821old_CFLAGS=$CFLAGS
8822
8823# Set sane defaults for various variables
8824test -z "$CC" && CC=cc
8825test -z "$LTCC" && LTCC=$CC
8826test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8827test -z "$LD" && LD=ld
8828test -z "$ac_objext" && ac_objext=o
8829
8830func_cc_basename $compiler
8831cc_basename=$func_cc_basename_result
8832
8833
8834# Only perform the check for file, if the check method requires it
8835test -z "$MAGIC_CMD" && MAGIC_CMD=file
8836case $deplibs_check_method in
8837file_magic*)
8838  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8839    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8840$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8841if ${lt_cv_path_MAGIC_CMD+:} false; then :
8842  $as_echo_n "(cached) " >&6
8843else
8844  case $MAGIC_CMD in
8845[\\/*] |  ?:[\\/]*)
8846  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8847  ;;
8848*)
8849  lt_save_MAGIC_CMD=$MAGIC_CMD
8850  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8851  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8852  for ac_dir in $ac_dummy; do
8853    IFS=$lt_save_ifs
8854    test -z "$ac_dir" && ac_dir=.
8855    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8856      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8857      if test -n "$file_magic_test_file"; then
8858	case $deplibs_check_method in
8859	"file_magic "*)
8860	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8861	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8862	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8863	    $EGREP "$file_magic_regex" > /dev/null; then
8864	    :
8865	  else
8866	    cat <<_LT_EOF 1>&2
8867
8868*** Warning: the command libtool uses to detect shared libraries,
8869*** $file_magic_cmd, produces output that libtool cannot recognize.
8870*** The result is that libtool may fail to recognize shared libraries
8871*** as such.  This will affect the creation of libtool libraries that
8872*** depend on shared libraries, but programs linked with such libtool
8873*** libraries will work regardless of this problem.  Nevertheless, you
8874*** may want to report the problem to your system manager and/or to
8875*** bug-libtool@gnu.org
8876
8877_LT_EOF
8878	  fi ;;
8879	esac
8880      fi
8881      break
8882    fi
8883  done
8884  IFS=$lt_save_ifs
8885  MAGIC_CMD=$lt_save_MAGIC_CMD
8886  ;;
8887esac
8888fi
8889
8890MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8891if test -n "$MAGIC_CMD"; then
8892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8893$as_echo "$MAGIC_CMD" >&6; }
8894else
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
8897fi
8898
8899
8900
8901
8902
8903if test -z "$lt_cv_path_MAGIC_CMD"; then
8904  if test -n "$ac_tool_prefix"; then
8905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8906$as_echo_n "checking for file... " >&6; }
8907if ${lt_cv_path_MAGIC_CMD+:} false; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  case $MAGIC_CMD in
8911[\\/*] |  ?:[\\/]*)
8912  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8913  ;;
8914*)
8915  lt_save_MAGIC_CMD=$MAGIC_CMD
8916  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8917  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8918  for ac_dir in $ac_dummy; do
8919    IFS=$lt_save_ifs
8920    test -z "$ac_dir" && ac_dir=.
8921    if test -f "$ac_dir/file"; then
8922      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8923      if test -n "$file_magic_test_file"; then
8924	case $deplibs_check_method in
8925	"file_magic "*)
8926	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8927	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8928	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8929	    $EGREP "$file_magic_regex" > /dev/null; then
8930	    :
8931	  else
8932	    cat <<_LT_EOF 1>&2
8933
8934*** Warning: the command libtool uses to detect shared libraries,
8935*** $file_magic_cmd, produces output that libtool cannot recognize.
8936*** The result is that libtool may fail to recognize shared libraries
8937*** as such.  This will affect the creation of libtool libraries that
8938*** depend on shared libraries, but programs linked with such libtool
8939*** libraries will work regardless of this problem.  Nevertheless, you
8940*** may want to report the problem to your system manager and/or to
8941*** bug-libtool@gnu.org
8942
8943_LT_EOF
8944	  fi ;;
8945	esac
8946      fi
8947      break
8948    fi
8949  done
8950  IFS=$lt_save_ifs
8951  MAGIC_CMD=$lt_save_MAGIC_CMD
8952  ;;
8953esac
8954fi
8955
8956MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8957if test -n "$MAGIC_CMD"; then
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8959$as_echo "$MAGIC_CMD" >&6; }
8960else
8961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962$as_echo "no" >&6; }
8963fi
8964
8965
8966  else
8967    MAGIC_CMD=:
8968  fi
8969fi
8970
8971  fi
8972  ;;
8973esac
8974
8975# Use C for the default configuration in the libtool script
8976
8977lt_save_CC=$CC
8978ac_ext=c
8979ac_cpp='$CPP $CPPFLAGS'
8980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982ac_compiler_gnu=$ac_cv_c_compiler_gnu
8983
8984
8985# Source file extension for C test sources.
8986ac_ext=c
8987
8988# Object file extension for compiled C test sources.
8989objext=o
8990objext=$objext
8991
8992# Code to be used in simple compile tests
8993lt_simple_compile_test_code="int some_variable = 0;"
8994
8995# Code to be used in simple link tests
8996lt_simple_link_test_code='int main(){return(0);}'
8997
8998
8999
9000
9001
9002
9003
9004# If no C compiler was specified, use CC.
9005LTCC=${LTCC-"$CC"}
9006
9007# If no C compiler flags were specified, use CFLAGS.
9008LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9009
9010# Allow CC to be a program name with arguments.
9011compiler=$CC
9012
9013# Save the default compiler, since it gets overwritten when the other
9014# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9015compiler_DEFAULT=$CC
9016
9017# save warnings/boilerplate of simple test code
9018ac_outfile=conftest.$ac_objext
9019echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9020eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9021_lt_compiler_boilerplate=`cat conftest.err`
9022$RM conftest*
9023
9024ac_outfile=conftest.$ac_objext
9025echo "$lt_simple_link_test_code" >conftest.$ac_ext
9026eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9027_lt_linker_boilerplate=`cat conftest.err`
9028$RM -r conftest*
9029
9030
9031## CAVEAT EMPTOR:
9032## There is no encapsulation within the following macros, do not change
9033## the running order or otherwise move them around unless you know exactly
9034## what you are doing...
9035if test -n "$compiler"; then
9036
9037lt_prog_compiler_no_builtin_flag=
9038
9039if test yes = "$GCC"; then
9040  case $cc_basename in
9041  nvcc*)
9042    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9043  *)
9044    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9045  esac
9046
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9048$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9049if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9050  $as_echo_n "(cached) " >&6
9051else
9052  lt_cv_prog_compiler_rtti_exceptions=no
9053   ac_outfile=conftest.$ac_objext
9054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9056   # Insert the option either (1) after the last *FLAGS variable, or
9057   # (2) before a word containing "conftest.", or (3) at the end.
9058   # Note that $ac_compile itself does not contain backslashes and begins
9059   # with a dollar sign (not a hyphen), so the echo should work correctly.
9060   # The option is referenced via a variable to avoid confusing sed.
9061   lt_compile=`echo "$ac_compile" | $SED \
9062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064   -e 's:$: $lt_compiler_flag:'`
9065   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066   (eval "$lt_compile" 2>conftest.err)
9067   ac_status=$?
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   if (exit $ac_status) && test -s "$ac_outfile"; then
9071     # The compiler can only warn and ignore the option if not recognized
9072     # So say no if there are warnings other than the usual output.
9073     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076       lt_cv_prog_compiler_rtti_exceptions=yes
9077     fi
9078   fi
9079   $RM conftest*
9080
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9083$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9084
9085if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9086    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9087else
9088    :
9089fi
9090
9091fi
9092
9093
9094
9095
9096
9097
9098  lt_prog_compiler_wl=
9099lt_prog_compiler_pic=
9100lt_prog_compiler_static=
9101
9102
9103  if test yes = "$GCC"; then
9104    lt_prog_compiler_wl='-Wl,'
9105    lt_prog_compiler_static='-static'
9106
9107    case $host_os in
9108      aix*)
9109      # All AIX code is PIC.
9110      if test ia64 = "$host_cpu"; then
9111	# AIX 5 now supports IA64 processor
9112	lt_prog_compiler_static='-Bstatic'
9113      fi
9114      lt_prog_compiler_pic='-fPIC'
9115      ;;
9116
9117    amigaos*)
9118      case $host_cpu in
9119      powerpc)
9120            # see comment about AmigaOS4 .so support
9121            lt_prog_compiler_pic='-fPIC'
9122        ;;
9123      m68k)
9124            # FIXME: we need at least 68020 code to build shared libraries, but
9125            # adding the '-m68020' flag to GCC prevents building anything better,
9126            # like '-m68040'.
9127            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9128        ;;
9129      esac
9130      ;;
9131
9132    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9133      # PIC is the default for these OSes.
9134      ;;
9135
9136    mingw* | cygwin* | pw32* | os2* | cegcc*)
9137      # This hack is so that the source file can tell whether it is being
9138      # built for inclusion in a dll (and should export symbols for example).
9139      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9140      # (--disable-auto-import) libraries
9141      lt_prog_compiler_pic='-DDLL_EXPORT'
9142      case $host_os in
9143      os2*)
9144	lt_prog_compiler_static='$wl-static'
9145	;;
9146      esac
9147      ;;
9148
9149    darwin* | rhapsody*)
9150      # PIC is the default on this platform
9151      # Common symbols not allowed in MH_DYLIB files
9152      lt_prog_compiler_pic='-fno-common'
9153      ;;
9154
9155    haiku*)
9156      # PIC is the default for Haiku.
9157      # The "-static" flag exists, but is broken.
9158      lt_prog_compiler_static=
9159      ;;
9160
9161    hpux*)
9162      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9163      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9164      # sets the default TLS model and affects inlining.
9165      case $host_cpu in
9166      hppa*64*)
9167	# +Z the default
9168	;;
9169      *)
9170	lt_prog_compiler_pic='-fPIC'
9171	;;
9172      esac
9173      ;;
9174
9175    interix[3-9]*)
9176      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9177      # Instead, we relocate shared libraries at runtime.
9178      ;;
9179
9180    msdosdjgpp*)
9181      # Just because we use GCC doesn't mean we suddenly get shared libraries
9182      # on systems that don't support them.
9183      lt_prog_compiler_can_build_shared=no
9184      enable_shared=no
9185      ;;
9186
9187    *nto* | *qnx*)
9188      # QNX uses GNU C++, but need to define -shared option too, otherwise
9189      # it will coredump.
9190      lt_prog_compiler_pic='-fPIC -shared'
9191      ;;
9192
9193    sysv4*MP*)
9194      if test -d /usr/nec; then
9195	lt_prog_compiler_pic=-Kconform_pic
9196      fi
9197      ;;
9198
9199    *)
9200      lt_prog_compiler_pic='-fPIC'
9201      ;;
9202    esac
9203
9204    case $cc_basename in
9205    nvcc*) # Cuda Compiler Driver 2.2
9206      lt_prog_compiler_wl='-Xlinker '
9207      if test -n "$lt_prog_compiler_pic"; then
9208        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9209      fi
9210      ;;
9211    esac
9212  else
9213    # PORTME Check for flag to pass linker flags through the system compiler.
9214    case $host_os in
9215    aix*)
9216      lt_prog_compiler_wl='-Wl,'
9217      if test ia64 = "$host_cpu"; then
9218	# AIX 5 now supports IA64 processor
9219	lt_prog_compiler_static='-Bstatic'
9220      else
9221	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9222      fi
9223      ;;
9224
9225    darwin* | rhapsody*)
9226      # PIC is the default on this platform
9227      # Common symbols not allowed in MH_DYLIB files
9228      lt_prog_compiler_pic='-fno-common'
9229      case $cc_basename in
9230      nagfor*)
9231        # NAG Fortran compiler
9232        lt_prog_compiler_wl='-Wl,-Wl,,'
9233        lt_prog_compiler_pic='-PIC'
9234        lt_prog_compiler_static='-Bstatic'
9235        ;;
9236      esac
9237      ;;
9238
9239    mingw* | cygwin* | pw32* | os2* | cegcc*)
9240      # This hack is so that the source file can tell whether it is being
9241      # built for inclusion in a dll (and should export symbols for example).
9242      lt_prog_compiler_pic='-DDLL_EXPORT'
9243      case $host_os in
9244      os2*)
9245	lt_prog_compiler_static='$wl-static'
9246	;;
9247      esac
9248      ;;
9249
9250    hpux9* | hpux10* | hpux11*)
9251      lt_prog_compiler_wl='-Wl,'
9252      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9253      # not for PA HP-UX.
9254      case $host_cpu in
9255      hppa*64*|ia64*)
9256	# +Z the default
9257	;;
9258      *)
9259	lt_prog_compiler_pic='+Z'
9260	;;
9261      esac
9262      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9263      lt_prog_compiler_static='$wl-a ${wl}archive'
9264      ;;
9265
9266    irix5* | irix6* | nonstopux*)
9267      lt_prog_compiler_wl='-Wl,'
9268      # PIC (with -KPIC) is the default.
9269      lt_prog_compiler_static='-non_shared'
9270      ;;
9271
9272    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9273      case $cc_basename in
9274      # old Intel for x86_64, which still supported -KPIC.
9275      ecc*)
9276	lt_prog_compiler_wl='-Wl,'
9277	lt_prog_compiler_pic='-KPIC'
9278	lt_prog_compiler_static='-static'
9279        ;;
9280      # icc used to be incompatible with GCC.
9281      # ICC 10 doesn't accept -KPIC any more.
9282      icc* | ifort*)
9283	lt_prog_compiler_wl='-Wl,'
9284	lt_prog_compiler_pic='-fPIC'
9285	lt_prog_compiler_static='-static'
9286        ;;
9287      # Lahey Fortran 8.1.
9288      lf95*)
9289	lt_prog_compiler_wl='-Wl,'
9290	lt_prog_compiler_pic='--shared'
9291	lt_prog_compiler_static='--static'
9292	;;
9293      nagfor*)
9294	# NAG Fortran compiler
9295	lt_prog_compiler_wl='-Wl,-Wl,,'
9296	lt_prog_compiler_pic='-PIC'
9297	lt_prog_compiler_static='-Bstatic'
9298	;;
9299      tcc*)
9300	# Fabrice Bellard et al's Tiny C Compiler
9301	lt_prog_compiler_wl='-Wl,'
9302	lt_prog_compiler_pic='-fPIC'
9303	lt_prog_compiler_static='-static'
9304	;;
9305      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9306        # Portland Group compilers (*not* the Pentium gcc compiler,
9307	# which looks to be a dead project)
9308	lt_prog_compiler_wl='-Wl,'
9309	lt_prog_compiler_pic='-fpic'
9310	lt_prog_compiler_static='-Bstatic'
9311        ;;
9312      ccc*)
9313        lt_prog_compiler_wl='-Wl,'
9314        # All Alpha code is PIC.
9315        lt_prog_compiler_static='-non_shared'
9316        ;;
9317      xl* | bgxl* | bgf* | mpixl*)
9318	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9319	lt_prog_compiler_wl='-Wl,'
9320	lt_prog_compiler_pic='-qpic'
9321	lt_prog_compiler_static='-qstaticlink'
9322	;;
9323      *)
9324	case `$CC -V 2>&1 | sed 5q` in
9325	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9326	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9327	  lt_prog_compiler_pic='-KPIC'
9328	  lt_prog_compiler_static='-Bstatic'
9329	  lt_prog_compiler_wl=''
9330	  ;;
9331	*Sun\ F* | *Sun*Fortran*)
9332	  lt_prog_compiler_pic='-KPIC'
9333	  lt_prog_compiler_static='-Bstatic'
9334	  lt_prog_compiler_wl='-Qoption ld '
9335	  ;;
9336	*Sun\ C*)
9337	  # Sun C 5.9
9338	  lt_prog_compiler_pic='-KPIC'
9339	  lt_prog_compiler_static='-Bstatic'
9340	  lt_prog_compiler_wl='-Wl,'
9341	  ;;
9342        *Intel*\ [CF]*Compiler*)
9343	  lt_prog_compiler_wl='-Wl,'
9344	  lt_prog_compiler_pic='-fPIC'
9345	  lt_prog_compiler_static='-static'
9346	  ;;
9347	*Portland\ Group*)
9348	  lt_prog_compiler_wl='-Wl,'
9349	  lt_prog_compiler_pic='-fpic'
9350	  lt_prog_compiler_static='-Bstatic'
9351	  ;;
9352	esac
9353	;;
9354      esac
9355      ;;
9356
9357    newsos6)
9358      lt_prog_compiler_pic='-KPIC'
9359      lt_prog_compiler_static='-Bstatic'
9360      ;;
9361
9362    *nto* | *qnx*)
9363      # QNX uses GNU C++, but need to define -shared option too, otherwise
9364      # it will coredump.
9365      lt_prog_compiler_pic='-fPIC -shared'
9366      ;;
9367
9368    osf3* | osf4* | osf5*)
9369      lt_prog_compiler_wl='-Wl,'
9370      # All OSF/1 code is PIC.
9371      lt_prog_compiler_static='-non_shared'
9372      ;;
9373
9374    rdos*)
9375      lt_prog_compiler_static='-non_shared'
9376      ;;
9377
9378    solaris*)
9379      lt_prog_compiler_pic='-KPIC'
9380      lt_prog_compiler_static='-Bstatic'
9381      case $cc_basename in
9382      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9383	lt_prog_compiler_wl='-Qoption ld ';;
9384      *)
9385	lt_prog_compiler_wl='-Wl,';;
9386      esac
9387      ;;
9388
9389    sunos4*)
9390      lt_prog_compiler_wl='-Qoption ld '
9391      lt_prog_compiler_pic='-PIC'
9392      lt_prog_compiler_static='-Bstatic'
9393      ;;
9394
9395    sysv4 | sysv4.2uw2* | sysv4.3*)
9396      lt_prog_compiler_wl='-Wl,'
9397      lt_prog_compiler_pic='-KPIC'
9398      lt_prog_compiler_static='-Bstatic'
9399      ;;
9400
9401    sysv4*MP*)
9402      if test -d /usr/nec; then
9403	lt_prog_compiler_pic='-Kconform_pic'
9404	lt_prog_compiler_static='-Bstatic'
9405      fi
9406      ;;
9407
9408    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9409      lt_prog_compiler_wl='-Wl,'
9410      lt_prog_compiler_pic='-KPIC'
9411      lt_prog_compiler_static='-Bstatic'
9412      ;;
9413
9414    unicos*)
9415      lt_prog_compiler_wl='-Wl,'
9416      lt_prog_compiler_can_build_shared=no
9417      ;;
9418
9419    uts4*)
9420      lt_prog_compiler_pic='-pic'
9421      lt_prog_compiler_static='-Bstatic'
9422      ;;
9423
9424    *)
9425      lt_prog_compiler_can_build_shared=no
9426      ;;
9427    esac
9428  fi
9429
9430case $host_os in
9431  # For platforms that do not support PIC, -DPIC is meaningless:
9432  *djgpp*)
9433    lt_prog_compiler_pic=
9434    ;;
9435  *)
9436    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9437    ;;
9438esac
9439
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9441$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9442if ${lt_cv_prog_compiler_pic+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9448$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9449lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9450
9451#
9452# Check to make sure the PIC flag actually works.
9453#
9454if test -n "$lt_prog_compiler_pic"; then
9455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9456$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9457if ${lt_cv_prog_compiler_pic_works+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  lt_cv_prog_compiler_pic_works=no
9461   ac_outfile=conftest.$ac_objext
9462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9464   # Insert the option either (1) after the last *FLAGS variable, or
9465   # (2) before a word containing "conftest.", or (3) at the end.
9466   # Note that $ac_compile itself does not contain backslashes and begins
9467   # with a dollar sign (not a hyphen), so the echo should work correctly.
9468   # The option is referenced via a variable to avoid confusing sed.
9469   lt_compile=`echo "$ac_compile" | $SED \
9470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9472   -e 's:$: $lt_compiler_flag:'`
9473   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9474   (eval "$lt_compile" 2>conftest.err)
9475   ac_status=$?
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   if (exit $ac_status) && test -s "$ac_outfile"; then
9479     # The compiler can only warn and ignore the option if not recognized
9480     # So say no if there are warnings other than the usual output.
9481     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9484       lt_cv_prog_compiler_pic_works=yes
9485     fi
9486   fi
9487   $RM conftest*
9488
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9491$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9492
9493if test yes = "$lt_cv_prog_compiler_pic_works"; then
9494    case $lt_prog_compiler_pic in
9495     "" | " "*) ;;
9496     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9497     esac
9498else
9499    lt_prog_compiler_pic=
9500     lt_prog_compiler_can_build_shared=no
9501fi
9502
9503fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515#
9516# Check to make sure the static flag actually works.
9517#
9518wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9520$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9521if ${lt_cv_prog_compiler_static_works+:} false; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  lt_cv_prog_compiler_static_works=no
9525   save_LDFLAGS=$LDFLAGS
9526   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9527   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529     # The linker can only warn and ignore the option if not recognized
9530     # So say no if there are warnings
9531     if test -s conftest.err; then
9532       # Append any errors to the config.log.
9533       cat conftest.err 1>&5
9534       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9535       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536       if diff conftest.exp conftest.er2 >/dev/null; then
9537         lt_cv_prog_compiler_static_works=yes
9538       fi
9539     else
9540       lt_cv_prog_compiler_static_works=yes
9541     fi
9542   fi
9543   $RM -r conftest*
9544   LDFLAGS=$save_LDFLAGS
9545
9546fi
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9548$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9549
9550if test yes = "$lt_cv_prog_compiler_static_works"; then
9551    :
9552else
9553    lt_prog_compiler_static=
9554fi
9555
9556
9557
9558
9559
9560
9561
9562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9563$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9564if ${lt_cv_prog_compiler_c_o+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  lt_cv_prog_compiler_c_o=no
9568   $RM -r conftest 2>/dev/null
9569   mkdir conftest
9570   cd conftest
9571   mkdir out
9572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9573
9574   lt_compiler_flag="-o out/conftest2.$ac_objext"
9575   # Insert the option either (1) after the last *FLAGS variable, or
9576   # (2) before a word containing "conftest.", or (3) at the end.
9577   # Note that $ac_compile itself does not contain backslashes and begins
9578   # with a dollar sign (not a hyphen), so the echo should work correctly.
9579   lt_compile=`echo "$ac_compile" | $SED \
9580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9582   -e 's:$: $lt_compiler_flag:'`
9583   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9584   (eval "$lt_compile" 2>out/conftest.err)
9585   ac_status=$?
9586   cat out/conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9589   then
9590     # The compiler can only warn and ignore the option if not recognized
9591     # So say no if there are warnings
9592     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9593     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9594     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9595       lt_cv_prog_compiler_c_o=yes
9596     fi
9597   fi
9598   chmod u+w . 2>&5
9599   $RM conftest*
9600   # SGI C++ compiler will create directory out/ii_files/ for
9601   # template instantiation
9602   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9603   $RM out/* && rmdir out
9604   cd ..
9605   $RM -r conftest
9606   $RM conftest*
9607
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9610$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9611
9612
9613
9614
9615
9616
9617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9618$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9619if ${lt_cv_prog_compiler_c_o+:} false; then :
9620  $as_echo_n "(cached) " >&6
9621else
9622  lt_cv_prog_compiler_c_o=no
9623   $RM -r conftest 2>/dev/null
9624   mkdir conftest
9625   cd conftest
9626   mkdir out
9627   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9628
9629   lt_compiler_flag="-o out/conftest2.$ac_objext"
9630   # Insert the option either (1) after the last *FLAGS variable, or
9631   # (2) before a word containing "conftest.", or (3) at the end.
9632   # Note that $ac_compile itself does not contain backslashes and begins
9633   # with a dollar sign (not a hyphen), so the echo should work correctly.
9634   lt_compile=`echo "$ac_compile" | $SED \
9635   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9636   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9637   -e 's:$: $lt_compiler_flag:'`
9638   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9639   (eval "$lt_compile" 2>out/conftest.err)
9640   ac_status=$?
9641   cat out/conftest.err >&5
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9644   then
9645     # The compiler can only warn and ignore the option if not recognized
9646     # So say no if there are warnings
9647     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9648     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9649     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9650       lt_cv_prog_compiler_c_o=yes
9651     fi
9652   fi
9653   chmod u+w . 2>&5
9654   $RM conftest*
9655   # SGI C++ compiler will create directory out/ii_files/ for
9656   # template instantiation
9657   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9658   $RM out/* && rmdir out
9659   cd ..
9660   $RM -r conftest
9661   $RM conftest*
9662
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9665$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9666
9667
9668
9669
9670hard_links=nottested
9671if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9672  # do not overwrite the value of need_locks provided by the user
9673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9674$as_echo_n "checking if we can lock with hard links... " >&6; }
9675  hard_links=yes
9676  $RM conftest*
9677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9678  touch conftest.a
9679  ln conftest.a conftest.b 2>&5 || hard_links=no
9680  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9682$as_echo "$hard_links" >&6; }
9683  if test no = "$hard_links"; then
9684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9685$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9686    need_locks=warn
9687  fi
9688else
9689  need_locks=no
9690fi
9691
9692
9693
9694
9695
9696
9697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9698$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9699
9700  runpath_var=
9701  allow_undefined_flag=
9702  always_export_symbols=no
9703  archive_cmds=
9704  archive_expsym_cmds=
9705  compiler_needs_object=no
9706  enable_shared_with_static_runtimes=no
9707  export_dynamic_flag_spec=
9708  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9709  hardcode_automatic=no
9710  hardcode_direct=no
9711  hardcode_direct_absolute=no
9712  hardcode_libdir_flag_spec=
9713  hardcode_libdir_separator=
9714  hardcode_minus_L=no
9715  hardcode_shlibpath_var=unsupported
9716  inherit_rpath=no
9717  link_all_deplibs=unknown
9718  module_cmds=
9719  module_expsym_cmds=
9720  old_archive_from_new_cmds=
9721  old_archive_from_expsyms_cmds=
9722  thread_safe_flag_spec=
9723  whole_archive_flag_spec=
9724  # include_expsyms should be a list of space-separated symbols to be *always*
9725  # included in the symbol list
9726  include_expsyms=
9727  # exclude_expsyms can be an extended regexp of symbols to exclude
9728  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9729  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9730  # as well as any symbol that contains 'd'.
9731  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9732  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9733  # platforms (ab)use it in PIC code, but their linkers get confused if
9734  # the symbol is explicitly referenced.  Since portable code cannot
9735  # rely on this symbol name, it's probably fine to never include it in
9736  # preloaded symbol tables.
9737  # Exclude shared library initialization/finalization symbols.
9738  extract_expsyms_cmds=
9739
9740  case $host_os in
9741  cygwin* | mingw* | pw32* | cegcc*)
9742    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9743    # When not using gcc, we currently assume that we are using
9744    # Microsoft Visual C++.
9745    if test yes != "$GCC"; then
9746      with_gnu_ld=no
9747    fi
9748    ;;
9749  interix*)
9750    # we just hope/assume this is gcc and not c89 (= MSVC++)
9751    with_gnu_ld=yes
9752    ;;
9753  openbsd* | bitrig*)
9754    with_gnu_ld=no
9755    ;;
9756  linux* | k*bsd*-gnu | gnu*)
9757    link_all_deplibs=no
9758    ;;
9759  esac
9760
9761  ld_shlibs=yes
9762
9763  # On some targets, GNU ld is compatible enough with the native linker
9764  # that we're better off using the native interface for both.
9765  lt_use_gnu_ld_interface=no
9766  if test yes = "$with_gnu_ld"; then
9767    case $host_os in
9768      aix*)
9769	# The AIX port of GNU ld has always aspired to compatibility
9770	# with the native linker.  However, as the warning in the GNU ld
9771	# block says, versions before 2.19.5* couldn't really create working
9772	# shared libraries, regardless of the interface used.
9773	case `$LD -v 2>&1` in
9774	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9775	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9776	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9777	  *)
9778	    lt_use_gnu_ld_interface=yes
9779	    ;;
9780	esac
9781	;;
9782      *)
9783	lt_use_gnu_ld_interface=yes
9784	;;
9785    esac
9786  fi
9787
9788  if test yes = "$lt_use_gnu_ld_interface"; then
9789    # If archive_cmds runs LD, not CC, wlarc should be empty
9790    wlarc='$wl'
9791
9792    # Set some defaults for GNU ld with shared library support. These
9793    # are reset later if shared libraries are not supported. Putting them
9794    # here allows them to be overridden if necessary.
9795    runpath_var=LD_RUN_PATH
9796    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9797    export_dynamic_flag_spec='$wl--export-dynamic'
9798    # ancient GNU ld didn't support --whole-archive et. al.
9799    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9800      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9801    else
9802      whole_archive_flag_spec=
9803    fi
9804    supports_anon_versioning=no
9805    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9806      *GNU\ gold*) supports_anon_versioning=yes ;;
9807      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9808      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9809      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9810      *\ 2.11.*) ;; # other 2.11 versions
9811      *) supports_anon_versioning=yes ;;
9812    esac
9813
9814    # See if GNU ld supports shared libraries.
9815    case $host_os in
9816    aix[3-9]*)
9817      # On AIX/PPC, the GNU linker is very broken
9818      if test ia64 != "$host_cpu"; then
9819	ld_shlibs=no
9820	cat <<_LT_EOF 1>&2
9821
9822*** Warning: the GNU linker, at least up to release 2.19, is reported
9823*** to be unable to reliably create shared libraries on AIX.
9824*** Therefore, libtool is disabling shared libraries support.  If you
9825*** really care for shared libraries, you may want to install binutils
9826*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9827*** You will then need to restart the configuration process.
9828
9829_LT_EOF
9830      fi
9831      ;;
9832
9833    amigaos*)
9834      case $host_cpu in
9835      powerpc)
9836            # see comment about AmigaOS4 .so support
9837            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9838            archive_expsym_cmds=''
9839        ;;
9840      m68k)
9841            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9842            hardcode_libdir_flag_spec='-L$libdir'
9843            hardcode_minus_L=yes
9844        ;;
9845      esac
9846      ;;
9847
9848    beos*)
9849      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9850	allow_undefined_flag=unsupported
9851	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9852	# support --undefined.  This deserves some investigation.  FIXME
9853	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9854      else
9855	ld_shlibs=no
9856      fi
9857      ;;
9858
9859    cygwin* | mingw* | pw32* | cegcc*)
9860      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9861      # as there is no search path for DLLs.
9862      hardcode_libdir_flag_spec='-L$libdir'
9863      export_dynamic_flag_spec='$wl--export-all-symbols'
9864      allow_undefined_flag=unsupported
9865      always_export_symbols=no
9866      enable_shared_with_static_runtimes=yes
9867      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9868      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9869
9870      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9871        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9872	# If the export-symbols file already is a .def file, use it as
9873	# is; otherwise, prepend EXPORTS...
9874	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9875          cp $export_symbols $output_objdir/$soname.def;
9876        else
9877          echo EXPORTS > $output_objdir/$soname.def;
9878          cat $export_symbols >> $output_objdir/$soname.def;
9879        fi~
9880        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9881      else
9882	ld_shlibs=no
9883      fi
9884      ;;
9885
9886    haiku*)
9887      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9888      link_all_deplibs=yes
9889      ;;
9890
9891    os2*)
9892      hardcode_libdir_flag_spec='-L$libdir'
9893      hardcode_minus_L=yes
9894      allow_undefined_flag=unsupported
9895      shrext_cmds=.dll
9896      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9897	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9898	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9899	$ECHO EXPORTS >> $output_objdir/$libname.def~
9900	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9901	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9902	emximp -o $lib $output_objdir/$libname.def'
9903      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9904	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9905	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9906	$ECHO EXPORTS >> $output_objdir/$libname.def~
9907	prefix_cmds="$SED"~
9908	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9909	  prefix_cmds="$prefix_cmds -e 1d";
9910	fi~
9911	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9912	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9913	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9914	emximp -o $lib $output_objdir/$libname.def'
9915      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9916      enable_shared_with_static_runtimes=yes
9917      ;;
9918
9919    interix[3-9]*)
9920      hardcode_direct=no
9921      hardcode_shlibpath_var=no
9922      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9923      export_dynamic_flag_spec='$wl-E'
9924      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9925      # Instead, shared libraries are loaded at an image base (0x10000000 by
9926      # default) and relocated if they conflict, which is a slow very memory
9927      # consuming and fragmenting process.  To avoid this, we pick a random,
9928      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9929      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9930      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9931      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9932      ;;
9933
9934    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9935      tmp_diet=no
9936      if test linux-dietlibc = "$host_os"; then
9937	case $cc_basename in
9938	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9939	esac
9940      fi
9941      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9942	 && test no = "$tmp_diet"
9943      then
9944	tmp_addflag=' $pic_flag'
9945	tmp_sharedflag='-shared'
9946	case $cc_basename,$host_cpu in
9947        pgcc*)				# Portland Group C compiler
9948	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9949	  tmp_addflag=' $pic_flag'
9950	  ;;
9951	pgf77* | pgf90* | pgf95* | pgfortran*)
9952					# Portland Group f77 and f90 compilers
9953	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9954	  tmp_addflag=' $pic_flag -Mnomain' ;;
9955	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9956	  tmp_addflag=' -i_dynamic' ;;
9957	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9958	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9959	ifc* | ifort*)			# Intel Fortran compiler
9960	  tmp_addflag=' -nofor_main' ;;
9961	lf95*)				# Lahey Fortran 8.1
9962	  whole_archive_flag_spec=
9963	  tmp_sharedflag='--shared' ;;
9964        nagfor*)                        # NAGFOR 5.3
9965          tmp_sharedflag='-Wl,-shared' ;;
9966	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9967	  tmp_sharedflag='-qmkshrobj'
9968	  tmp_addflag= ;;
9969	nvcc*)	# Cuda Compiler Driver 2.2
9970	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9971	  compiler_needs_object=yes
9972	  ;;
9973	esac
9974	case `$CC -V 2>&1 | sed 5q` in
9975	*Sun\ C*)			# Sun C 5.9
9976	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9977	  compiler_needs_object=yes
9978	  tmp_sharedflag='-G' ;;
9979	*Sun\ F*)			# Sun Fortran 8.3
9980	  tmp_sharedflag='-G' ;;
9981	esac
9982	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9983
9984        if test yes = "$supports_anon_versioning"; then
9985          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9986            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9987            echo "local: *; };" >> $output_objdir/$libname.ver~
9988            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9989        fi
9990
9991	case $cc_basename in
9992	tcc*)
9993	  export_dynamic_flag_spec='-rdynamic'
9994	  ;;
9995	xlf* | bgf* | bgxlf* | mpixlf*)
9996	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9997	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9998	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9999	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10000	  if test yes = "$supports_anon_versioning"; then
10001	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10002              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10003              echo "local: *; };" >> $output_objdir/$libname.ver~
10004              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10005	  fi
10006	  ;;
10007	esac
10008      else
10009        ld_shlibs=no
10010      fi
10011      ;;
10012
10013    netbsd* | netbsdelf*-gnu)
10014      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10015	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10016	wlarc=
10017      else
10018	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10019	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10020      fi
10021      ;;
10022
10023    solaris*)
10024      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10025	ld_shlibs=no
10026	cat <<_LT_EOF 1>&2
10027
10028*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10029*** create shared libraries on Solaris systems.  Therefore, libtool
10030*** is disabling shared libraries support.  We urge you to upgrade GNU
10031*** binutils to release 2.9.1 or newer.  Another option is to modify
10032*** your PATH or compiler configuration so that the native linker is
10033*** used, and then restart.
10034
10035_LT_EOF
10036      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10037	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10038	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10039      else
10040	ld_shlibs=no
10041      fi
10042      ;;
10043
10044    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10045      case `$LD -v 2>&1` in
10046        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10047	ld_shlibs=no
10048	cat <<_LT_EOF 1>&2
10049
10050*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10051*** reliably create shared libraries on SCO systems.  Therefore, libtool
10052*** is disabling shared libraries support.  We urge you to upgrade GNU
10053*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10054*** your PATH or compiler configuration so that the native linker is
10055*** used, and then restart.
10056
10057_LT_EOF
10058	;;
10059	*)
10060	  # For security reasons, it is highly recommended that you always
10061	  # use absolute paths for naming shared libraries, and exclude the
10062	  # DT_RUNPATH tag from executables and libraries.  But doing so
10063	  # requires that you compile everything twice, which is a pain.
10064	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10065	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10066	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10068	  else
10069	    ld_shlibs=no
10070	  fi
10071	;;
10072      esac
10073      ;;
10074
10075    sunos4*)
10076      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10077      wlarc=
10078      hardcode_direct=yes
10079      hardcode_shlibpath_var=no
10080      ;;
10081
10082    *)
10083      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10084	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10085	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10086      else
10087	ld_shlibs=no
10088      fi
10089      ;;
10090    esac
10091
10092    if test no = "$ld_shlibs"; then
10093      runpath_var=
10094      hardcode_libdir_flag_spec=
10095      export_dynamic_flag_spec=
10096      whole_archive_flag_spec=
10097    fi
10098  else
10099    # PORTME fill in a description of your system's linker (not GNU ld)
10100    case $host_os in
10101    aix3*)
10102      allow_undefined_flag=unsupported
10103      always_export_symbols=yes
10104      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10105      # Note: this linker hardcodes the directories in LIBPATH if there
10106      # are no directories specified by -L.
10107      hardcode_minus_L=yes
10108      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10109	# Neither direct hardcoding nor static linking is supported with a
10110	# broken collect2.
10111	hardcode_direct=unsupported
10112      fi
10113      ;;
10114
10115    aix[4-9]*)
10116      if test ia64 = "$host_cpu"; then
10117	# On IA64, the linker does run time linking by default, so we don't
10118	# have to do anything special.
10119	aix_use_runtimelinking=no
10120	exp_sym_flag='-Bexport'
10121	no_entry_flag=
10122      else
10123	# If we're using GNU nm, then we don't want the "-C" option.
10124	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10125	# Without the "-l" option, or with the "-B" option, AIX nm treats
10126	# weak defined symbols like other global defined symbols, whereas
10127	# GNU nm marks them as "W".
10128	# While the 'weak' keyword is ignored in the Export File, we need
10129	# it in the Import File for the 'aix-soname' feature, so we have
10130	# to replace the "-B" option with "-P" for AIX nm.
10131	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10132	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10133	else
10134	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10135	fi
10136	aix_use_runtimelinking=no
10137
10138	# Test if we are trying to use run time linking or normal
10139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10140	# have runtime linking enabled, and use it for executables.
10141	# For shared libraries, we enable/disable runtime linking
10142	# depending on the kind of the shared library created -
10143	# when "with_aix_soname,aix_use_runtimelinking" is:
10144	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10145	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10146	#            lib.a           static archive
10147	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10148	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10149	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10150	#            lib.a(lib.so.V) shared, rtl:no
10151	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10152	#            lib.a           static archive
10153	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10154	  for ld_flag in $LDFLAGS; do
10155	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10156	    aix_use_runtimelinking=yes
10157	    break
10158	  fi
10159	  done
10160	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10161	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10162	    # so we don't have lib.a shared libs to link our executables.
10163	    # We have to force runtime linking in this case.
10164	    aix_use_runtimelinking=yes
10165	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10166	  fi
10167	  ;;
10168	esac
10169
10170	exp_sym_flag='-bexport'
10171	no_entry_flag='-bnoentry'
10172      fi
10173
10174      # When large executables or shared objects are built, AIX ld can
10175      # have problems creating the table of contents.  If linking a library
10176      # or program results in "error TOC overflow" add -mminimal-toc to
10177      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10178      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10179
10180      archive_cmds=''
10181      hardcode_direct=yes
10182      hardcode_direct_absolute=yes
10183      hardcode_libdir_separator=':'
10184      link_all_deplibs=yes
10185      file_list_spec='$wl-f,'
10186      case $with_aix_soname,$aix_use_runtimelinking in
10187      aix,*) ;; # traditional, no import file
10188      svr4,* | *,yes) # use import file
10189	# The Import File defines what to hardcode.
10190	hardcode_direct=no
10191	hardcode_direct_absolute=no
10192	;;
10193      esac
10194
10195      if test yes = "$GCC"; then
10196	case $host_os in aix4.[012]|aix4.[012].*)
10197	# We only want to do this on AIX 4.2 and lower, the check
10198	# below for broken collect2 doesn't work under 4.3+
10199	  collect2name=`$CC -print-prog-name=collect2`
10200	  if test -f "$collect2name" &&
10201	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10202	  then
10203	  # We have reworked collect2
10204	  :
10205	  else
10206	  # We have old collect2
10207	  hardcode_direct=unsupported
10208	  # It fails to find uninstalled libraries when the uninstalled
10209	  # path is not listed in the libpath.  Setting hardcode_minus_L
10210	  # to unsupported forces relinking
10211	  hardcode_minus_L=yes
10212	  hardcode_libdir_flag_spec='-L$libdir'
10213	  hardcode_libdir_separator=
10214	  fi
10215	  ;;
10216	esac
10217	shared_flag='-shared'
10218	if test yes = "$aix_use_runtimelinking"; then
10219	  shared_flag="$shared_flag "'$wl-G'
10220	fi
10221	# Need to ensure runtime linking is disabled for the traditional
10222	# shared library, or the linker may eventually find shared libraries
10223	# /with/ Import File - we do not want to mix them.
10224	shared_flag_aix='-shared'
10225	shared_flag_svr4='-shared $wl-G'
10226      else
10227	# not using gcc
10228	if test ia64 = "$host_cpu"; then
10229	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10230	# chokes on -Wl,-G. The following line is correct:
10231	  shared_flag='-G'
10232	else
10233	  if test yes = "$aix_use_runtimelinking"; then
10234	    shared_flag='$wl-G'
10235	  else
10236	    shared_flag='$wl-bM:SRE'
10237	  fi
10238	  shared_flag_aix='$wl-bM:SRE'
10239	  shared_flag_svr4='$wl-G'
10240	fi
10241      fi
10242
10243      export_dynamic_flag_spec='$wl-bexpall'
10244      # It seems that -bexpall does not export symbols beginning with
10245      # underscore (_), so it is better to generate a list of symbols to export.
10246      always_export_symbols=yes
10247      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10248	# Warning - without using the other runtime loading flags (-brtl),
10249	# -berok will link without error, but may produce a broken library.
10250	allow_undefined_flag='-berok'
10251        # Determine the default libpath from the value encoded in an
10252        # empty executable.
10253        if test set = "${lt_cv_aix_libpath+set}"; then
10254  aix_libpath=$lt_cv_aix_libpath
10255else
10256  if ${lt_cv_aix_libpath_+:} false; then :
10257  $as_echo_n "(cached) " >&6
10258else
10259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261
10262int
10263main ()
10264{
10265
10266  ;
10267  return 0;
10268}
10269_ACEOF
10270if ac_fn_c_try_link "$LINENO"; then :
10271
10272  lt_aix_libpath_sed='
10273      /Import File Strings/,/^$/ {
10274	  /^0/ {
10275	      s/^0  *\([^ ]*\) *$/\1/
10276	      p
10277	  }
10278      }'
10279  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10280  # Check for a 64-bit object if we didn't find anything.
10281  if test -z "$lt_cv_aix_libpath_"; then
10282    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10283  fi
10284fi
10285rm -f core conftest.err conftest.$ac_objext \
10286    conftest$ac_exeext conftest.$ac_ext
10287  if test -z "$lt_cv_aix_libpath_"; then
10288    lt_cv_aix_libpath_=/usr/lib:/lib
10289  fi
10290
10291fi
10292
10293  aix_libpath=$lt_cv_aix_libpath_
10294fi
10295
10296        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10297        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10298      else
10299	if test ia64 = "$host_cpu"; then
10300	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10301	  allow_undefined_flag="-z nodefs"
10302	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10303	else
10304	 # Determine the default libpath from the value encoded in an
10305	 # empty executable.
10306	 if test set = "${lt_cv_aix_libpath+set}"; then
10307  aix_libpath=$lt_cv_aix_libpath
10308else
10309  if ${lt_cv_aix_libpath_+:} false; then :
10310  $as_echo_n "(cached) " >&6
10311else
10312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313/* end confdefs.h.  */
10314
10315int
10316main ()
10317{
10318
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323if ac_fn_c_try_link "$LINENO"; then :
10324
10325  lt_aix_libpath_sed='
10326      /Import File Strings/,/^$/ {
10327	  /^0/ {
10328	      s/^0  *\([^ ]*\) *$/\1/
10329	      p
10330	  }
10331      }'
10332  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10333  # Check for a 64-bit object if we didn't find anything.
10334  if test -z "$lt_cv_aix_libpath_"; then
10335    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10336  fi
10337fi
10338rm -f core conftest.err conftest.$ac_objext \
10339    conftest$ac_exeext conftest.$ac_ext
10340  if test -z "$lt_cv_aix_libpath_"; then
10341    lt_cv_aix_libpath_=/usr/lib:/lib
10342  fi
10343
10344fi
10345
10346  aix_libpath=$lt_cv_aix_libpath_
10347fi
10348
10349	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10350	  # Warning - without using the other run time loading flags,
10351	  # -berok will link without error, but may produce a broken library.
10352	  no_undefined_flag=' $wl-bernotok'
10353	  allow_undefined_flag=' $wl-berok'
10354	  if test yes = "$with_gnu_ld"; then
10355	    # We only use this code for GNU lds that support --whole-archive.
10356	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10357	  else
10358	    # Exported symbols can be pulled into shared objects from archives
10359	    whole_archive_flag_spec='$convenience'
10360	  fi
10361	  archive_cmds_need_lc=yes
10362	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10363	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10364	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10365	  if test svr4 != "$with_aix_soname"; then
10366	    # This is similar to how AIX traditionally builds its shared libraries.
10367	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10368	  fi
10369	  if test aix != "$with_aix_soname"; then
10370	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10371	  else
10372	    # used by -dlpreopen to get the symbols
10373	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10374	  fi
10375	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10376	fi
10377      fi
10378      ;;
10379
10380    amigaos*)
10381      case $host_cpu in
10382      powerpc)
10383            # see comment about AmigaOS4 .so support
10384            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385            archive_expsym_cmds=''
10386        ;;
10387      m68k)
10388            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10389            hardcode_libdir_flag_spec='-L$libdir'
10390            hardcode_minus_L=yes
10391        ;;
10392      esac
10393      ;;
10394
10395    bsdi[45]*)
10396      export_dynamic_flag_spec=-rdynamic
10397      ;;
10398
10399    cygwin* | mingw* | pw32* | cegcc*)
10400      # When not using gcc, we currently assume that we are using
10401      # Microsoft Visual C++.
10402      # hardcode_libdir_flag_spec is actually meaningless, as there is
10403      # no search path for DLLs.
10404      case $cc_basename in
10405      cl*)
10406	# Native MSVC
10407	hardcode_libdir_flag_spec=' '
10408	allow_undefined_flag=unsupported
10409	always_export_symbols=yes
10410	file_list_spec='@'
10411	# Tell ltmain to make .lib files, not .a files.
10412	libext=lib
10413	# Tell ltmain to make .dll files, not .so files.
10414	shrext_cmds=.dll
10415	# FIXME: Setting linknames here is a bad hack.
10416	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10417	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10418            cp "$export_symbols" "$output_objdir/$soname.def";
10419            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10420          else
10421            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10422          fi~
10423          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10424          linknames='
10425	# The linker will not automatically build a static lib if we build a DLL.
10426	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10427	enable_shared_with_static_runtimes=yes
10428	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10429	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10430	# Don't use ranlib
10431	old_postinstall_cmds='chmod 644 $oldlib'
10432	postlink_cmds='lt_outputfile="@OUTPUT@"~
10433          lt_tool_outputfile="@TOOL_OUTPUT@"~
10434          case $lt_outputfile in
10435            *.exe|*.EXE) ;;
10436            *)
10437              lt_outputfile=$lt_outputfile.exe
10438              lt_tool_outputfile=$lt_tool_outputfile.exe
10439              ;;
10440          esac~
10441          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10442            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10443            $RM "$lt_outputfile.manifest";
10444          fi'
10445	;;
10446      *)
10447	# Assume MSVC wrapper
10448	hardcode_libdir_flag_spec=' '
10449	allow_undefined_flag=unsupported
10450	# Tell ltmain to make .lib files, not .a files.
10451	libext=lib
10452	# Tell ltmain to make .dll files, not .so files.
10453	shrext_cmds=.dll
10454	# FIXME: Setting linknames here is a bad hack.
10455	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10456	# The linker will automatically build a .lib file if we build a DLL.
10457	old_archive_from_new_cmds='true'
10458	# FIXME: Should let the user specify the lib program.
10459	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10460	enable_shared_with_static_runtimes=yes
10461	;;
10462      esac
10463      ;;
10464
10465    darwin* | rhapsody*)
10466
10467
10468  archive_cmds_need_lc=no
10469  hardcode_direct=no
10470  hardcode_automatic=yes
10471  hardcode_shlibpath_var=unsupported
10472  if test yes = "$lt_cv_ld_force_load"; then
10473    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10474
10475  else
10476    whole_archive_flag_spec=''
10477  fi
10478  link_all_deplibs=yes
10479  allow_undefined_flag=$_lt_dar_allow_undefined
10480  case $cc_basename in
10481     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10482     *) _lt_dar_can_shared=$GCC ;;
10483  esac
10484  if test yes = "$_lt_dar_can_shared"; then
10485    output_verbose_link_cmd=func_echo_all
10486    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10487    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10488    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10489    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10490
10491  else
10492  ld_shlibs=no
10493  fi
10494
10495      ;;
10496
10497    dgux*)
10498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10499      hardcode_libdir_flag_spec='-L$libdir'
10500      hardcode_shlibpath_var=no
10501      ;;
10502
10503    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10504    # support.  Future versions do this automatically, but an explicit c++rt0.o
10505    # does not break anything, and helps significantly (at the cost of a little
10506    # extra space).
10507    freebsd2.2*)
10508      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10509      hardcode_libdir_flag_spec='-R$libdir'
10510      hardcode_direct=yes
10511      hardcode_shlibpath_var=no
10512      ;;
10513
10514    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10515    freebsd2.*)
10516      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10517      hardcode_direct=yes
10518      hardcode_minus_L=yes
10519      hardcode_shlibpath_var=no
10520      ;;
10521
10522    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10523    freebsd* | dragonfly*)
10524      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10525      hardcode_libdir_flag_spec='-R$libdir'
10526      hardcode_direct=yes
10527      hardcode_shlibpath_var=no
10528      ;;
10529
10530    hpux9*)
10531      if test yes = "$GCC"; then
10532	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10533      else
10534	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10535      fi
10536      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10537      hardcode_libdir_separator=:
10538      hardcode_direct=yes
10539
10540      # hardcode_minus_L: Not really in the search PATH,
10541      # but as the default location of the library.
10542      hardcode_minus_L=yes
10543      export_dynamic_flag_spec='$wl-E'
10544      ;;
10545
10546    hpux10*)
10547      if test yes,no = "$GCC,$with_gnu_ld"; then
10548	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10549      else
10550	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10551      fi
10552      if test no = "$with_gnu_ld"; then
10553	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10554	hardcode_libdir_separator=:
10555	hardcode_direct=yes
10556	hardcode_direct_absolute=yes
10557	export_dynamic_flag_spec='$wl-E'
10558	# hardcode_minus_L: Not really in the search PATH,
10559	# but as the default location of the library.
10560	hardcode_minus_L=yes
10561      fi
10562      ;;
10563
10564    hpux11*)
10565      if test yes,no = "$GCC,$with_gnu_ld"; then
10566	case $host_cpu in
10567	hppa*64*)
10568	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10569	  ;;
10570	ia64*)
10571	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10572	  ;;
10573	*)
10574	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10575	  ;;
10576	esac
10577      else
10578	case $host_cpu in
10579	hppa*64*)
10580	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10581	  ;;
10582	ia64*)
10583	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10584	  ;;
10585	*)
10586
10587	  # Older versions of the 11.00 compiler do not understand -b yet
10588	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10589	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10590$as_echo_n "checking if $CC understands -b... " >&6; }
10591if ${lt_cv_prog_compiler__b+:} false; then :
10592  $as_echo_n "(cached) " >&6
10593else
10594  lt_cv_prog_compiler__b=no
10595   save_LDFLAGS=$LDFLAGS
10596   LDFLAGS="$LDFLAGS -b"
10597   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10598   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10599     # The linker can only warn and ignore the option if not recognized
10600     # So say no if there are warnings
10601     if test -s conftest.err; then
10602       # Append any errors to the config.log.
10603       cat conftest.err 1>&5
10604       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10605       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10606       if diff conftest.exp conftest.er2 >/dev/null; then
10607         lt_cv_prog_compiler__b=yes
10608       fi
10609     else
10610       lt_cv_prog_compiler__b=yes
10611     fi
10612   fi
10613   $RM -r conftest*
10614   LDFLAGS=$save_LDFLAGS
10615
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10618$as_echo "$lt_cv_prog_compiler__b" >&6; }
10619
10620if test yes = "$lt_cv_prog_compiler__b"; then
10621    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10622else
10623    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10624fi
10625
10626	  ;;
10627	esac
10628      fi
10629      if test no = "$with_gnu_ld"; then
10630	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10631	hardcode_libdir_separator=:
10632
10633	case $host_cpu in
10634	hppa*64*|ia64*)
10635	  hardcode_direct=no
10636	  hardcode_shlibpath_var=no
10637	  ;;
10638	*)
10639	  hardcode_direct=yes
10640	  hardcode_direct_absolute=yes
10641	  export_dynamic_flag_spec='$wl-E'
10642
10643	  # hardcode_minus_L: Not really in the search PATH,
10644	  # but as the default location of the library.
10645	  hardcode_minus_L=yes
10646	  ;;
10647	esac
10648      fi
10649      ;;
10650
10651    irix5* | irix6* | nonstopux*)
10652      if test yes = "$GCC"; then
10653	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10654	# Try to use the -exported_symbol ld option, if it does not
10655	# work, assume that -exports_file does not work either and
10656	# implicitly export all symbols.
10657	# This should be the same for all languages, so no per-tag cache variable.
10658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10659$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10660if ${lt_cv_irix_exported_symbol+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  save_LDFLAGS=$LDFLAGS
10664	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10665	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667int foo (void) { return 0; }
10668_ACEOF
10669if ac_fn_c_try_link "$LINENO"; then :
10670  lt_cv_irix_exported_symbol=yes
10671else
10672  lt_cv_irix_exported_symbol=no
10673fi
10674rm -f core conftest.err conftest.$ac_objext \
10675    conftest$ac_exeext conftest.$ac_ext
10676           LDFLAGS=$save_LDFLAGS
10677fi
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10679$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10680	if test yes = "$lt_cv_irix_exported_symbol"; then
10681          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10682	fi
10683	link_all_deplibs=no
10684      else
10685	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10686	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10687      fi
10688      archive_cmds_need_lc='no'
10689      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10690      hardcode_libdir_separator=:
10691      inherit_rpath=yes
10692      link_all_deplibs=yes
10693      ;;
10694
10695    linux*)
10696      case $cc_basename in
10697      tcc*)
10698	# Fabrice Bellard et al's Tiny C Compiler
10699	ld_shlibs=yes
10700	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10701	;;
10702      esac
10703      ;;
10704
10705    netbsd* | netbsdelf*-gnu)
10706      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10707	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10708      else
10709	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10710      fi
10711      hardcode_libdir_flag_spec='-R$libdir'
10712      hardcode_direct=yes
10713      hardcode_shlibpath_var=no
10714      ;;
10715
10716    newsos6)
10717      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718      hardcode_direct=yes
10719      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10720      hardcode_libdir_separator=:
10721      hardcode_shlibpath_var=no
10722      ;;
10723
10724    *nto* | *qnx*)
10725      ;;
10726
10727    openbsd* | bitrig*)
10728      if test -f /usr/libexec/ld.so; then
10729	hardcode_direct=yes
10730	hardcode_shlibpath_var=no
10731	hardcode_direct_absolute=yes
10732	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10733	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10734	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10735	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10736	  export_dynamic_flag_spec='$wl-E'
10737	else
10738	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10739	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10740	fi
10741      else
10742	ld_shlibs=no
10743      fi
10744      ;;
10745
10746    os2*)
10747      hardcode_libdir_flag_spec='-L$libdir'
10748      hardcode_minus_L=yes
10749      allow_undefined_flag=unsupported
10750      shrext_cmds=.dll
10751      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10752	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10753	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10754	$ECHO EXPORTS >> $output_objdir/$libname.def~
10755	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10756	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10757	emximp -o $lib $output_objdir/$libname.def'
10758      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10759	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10760	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10761	$ECHO EXPORTS >> $output_objdir/$libname.def~
10762	prefix_cmds="$SED"~
10763	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10764	  prefix_cmds="$prefix_cmds -e 1d";
10765	fi~
10766	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10767	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10768	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10769	emximp -o $lib $output_objdir/$libname.def'
10770      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10771      enable_shared_with_static_runtimes=yes
10772      ;;
10773
10774    osf3*)
10775      if test yes = "$GCC"; then
10776	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10777	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10778      else
10779	allow_undefined_flag=' -expect_unresolved \*'
10780	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10781      fi
10782      archive_cmds_need_lc='no'
10783      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10784      hardcode_libdir_separator=:
10785      ;;
10786
10787    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10788      if test yes = "$GCC"; then
10789	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10790	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10791	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10792      else
10793	allow_undefined_flag=' -expect_unresolved \*'
10794	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10795	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10796          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10797
10798	# Both c and cxx compiler support -rpath directly
10799	hardcode_libdir_flag_spec='-rpath $libdir'
10800      fi
10801      archive_cmds_need_lc='no'
10802      hardcode_libdir_separator=:
10803      ;;
10804
10805    solaris*)
10806      no_undefined_flag=' -z defs'
10807      if test yes = "$GCC"; then
10808	wlarc='$wl'
10809	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10810	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10811          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10812      else
10813	case `$CC -V 2>&1` in
10814	*"Compilers 5.0"*)
10815	  wlarc=''
10816	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10818            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10819	  ;;
10820	*)
10821	  wlarc='$wl'
10822	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10823	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10824            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10825	  ;;
10826	esac
10827      fi
10828      hardcode_libdir_flag_spec='-R$libdir'
10829      hardcode_shlibpath_var=no
10830      case $host_os in
10831      solaris2.[0-5] | solaris2.[0-5].*) ;;
10832      *)
10833	# The compiler driver will combine and reorder linker options,
10834	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10835	# but is careful enough not to reorder.
10836	# Supported since Solaris 2.6 (maybe 2.5.1?)
10837	if test yes = "$GCC"; then
10838	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10839	else
10840	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10841	fi
10842	;;
10843      esac
10844      link_all_deplibs=yes
10845      ;;
10846
10847    sunos4*)
10848      if test sequent = "$host_vendor"; then
10849	# Use $CC to link under sequent, because it throws in some extra .o
10850	# files that make .init and .fini sections work.
10851	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10852      else
10853	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10854      fi
10855      hardcode_libdir_flag_spec='-L$libdir'
10856      hardcode_direct=yes
10857      hardcode_minus_L=yes
10858      hardcode_shlibpath_var=no
10859      ;;
10860
10861    sysv4)
10862      case $host_vendor in
10863	sni)
10864	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865	  hardcode_direct=yes # is this really true???
10866	;;
10867	siemens)
10868	  ## LD is ld it makes a PLAMLIB
10869	  ## CC just makes a GrossModule.
10870	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10871	  reload_cmds='$CC -r -o $output$reload_objs'
10872	  hardcode_direct=no
10873        ;;
10874	motorola)
10875	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10877	;;
10878      esac
10879      runpath_var='LD_RUN_PATH'
10880      hardcode_shlibpath_var=no
10881      ;;
10882
10883    sysv4.3*)
10884      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885      hardcode_shlibpath_var=no
10886      export_dynamic_flag_spec='-Bexport'
10887      ;;
10888
10889    sysv4*MP*)
10890      if test -d /usr/nec; then
10891	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892	hardcode_shlibpath_var=no
10893	runpath_var=LD_RUN_PATH
10894	hardcode_runpath_var=yes
10895	ld_shlibs=yes
10896      fi
10897      ;;
10898
10899    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10900      no_undefined_flag='$wl-z,text'
10901      archive_cmds_need_lc=no
10902      hardcode_shlibpath_var=no
10903      runpath_var='LD_RUN_PATH'
10904
10905      if test yes = "$GCC"; then
10906	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10907	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908      else
10909	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10910	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911      fi
10912      ;;
10913
10914    sysv5* | sco3.2v5* | sco5v6*)
10915      # Note: We CANNOT use -z defs as we might desire, because we do not
10916      # link with -lc, and that would cause any symbols used from libc to
10917      # always be unresolved, which means just about no library would
10918      # ever link correctly.  If we're not using GNU ld we use -z text
10919      # though, which does catch some bad symbols but isn't as heavy-handed
10920      # as -z defs.
10921      no_undefined_flag='$wl-z,text'
10922      allow_undefined_flag='$wl-z,nodefs'
10923      archive_cmds_need_lc=no
10924      hardcode_shlibpath_var=no
10925      hardcode_libdir_flag_spec='$wl-R,$libdir'
10926      hardcode_libdir_separator=':'
10927      link_all_deplibs=yes
10928      export_dynamic_flag_spec='$wl-Bexport'
10929      runpath_var='LD_RUN_PATH'
10930
10931      if test yes = "$GCC"; then
10932	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934      else
10935	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937      fi
10938      ;;
10939
10940    uts4*)
10941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942      hardcode_libdir_flag_spec='-L$libdir'
10943      hardcode_shlibpath_var=no
10944      ;;
10945
10946    *)
10947      ld_shlibs=no
10948      ;;
10949    esac
10950
10951    if test sni = "$host_vendor"; then
10952      case $host in
10953      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10954	export_dynamic_flag_spec='$wl-Blargedynsym'
10955	;;
10956      esac
10957    fi
10958  fi
10959
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10961$as_echo "$ld_shlibs" >&6; }
10962test no = "$ld_shlibs" && can_build_shared=no
10963
10964with_gnu_ld=$with_gnu_ld
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980#
10981# Do we need to explicitly link libc?
10982#
10983case "x$archive_cmds_need_lc" in
10984x|xyes)
10985  # Assume -lc should be added
10986  archive_cmds_need_lc=yes
10987
10988  if test yes,yes = "$GCC,$enable_shared"; then
10989    case $archive_cmds in
10990    *'~'*)
10991      # FIXME: we may have to deal with multi-command sequences.
10992      ;;
10993    '$CC '*)
10994      # Test whether the compiler implicitly links with -lc since on some
10995      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10996      # to ld, don't add -lc before -lgcc.
10997      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10998$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10999if ${lt_cv_archive_cmds_need_lc+:} false; then :
11000  $as_echo_n "(cached) " >&6
11001else
11002  $RM conftest*
11003	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11004
11005	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11006  (eval $ac_compile) 2>&5
11007  ac_status=$?
11008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11009  test $ac_status = 0; } 2>conftest.err; then
11010	  soname=conftest
11011	  lib=conftest
11012	  libobjs=conftest.$ac_objext
11013	  deplibs=
11014	  wl=$lt_prog_compiler_wl
11015	  pic_flag=$lt_prog_compiler_pic
11016	  compiler_flags=-v
11017	  linker_flags=-v
11018	  verstring=
11019	  output_objdir=.
11020	  libname=conftest
11021	  lt_save_allow_undefined_flag=$allow_undefined_flag
11022	  allow_undefined_flag=
11023	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11024  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11025  ac_status=$?
11026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11027  test $ac_status = 0; }
11028	  then
11029	    lt_cv_archive_cmds_need_lc=no
11030	  else
11031	    lt_cv_archive_cmds_need_lc=yes
11032	  fi
11033	  allow_undefined_flag=$lt_save_allow_undefined_flag
11034	else
11035	  cat conftest.err 1>&5
11036	fi
11037	$RM conftest*
11038
11039fi
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11041$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11042      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11043      ;;
11044    esac
11045  fi
11046  ;;
11047esac
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11201$as_echo_n "checking dynamic linker characteristics... " >&6; }
11202
11203if test yes = "$GCC"; then
11204  case $host_os in
11205    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11206    *) lt_awk_arg='/^libraries:/' ;;
11207  esac
11208  case $host_os in
11209    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11210    *) lt_sed_strip_eq='s|=/|/|g' ;;
11211  esac
11212  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11213  case $lt_search_path_spec in
11214  *\;*)
11215    # if the path contains ";" then we assume it to be the separator
11216    # otherwise default to the standard path separator (i.e. ":") - it is
11217    # assumed that no part of a normal pathname contains ";" but that should
11218    # okay in the real world where ";" in dirpaths is itself problematic.
11219    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11220    ;;
11221  *)
11222    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11223    ;;
11224  esac
11225  # Ok, now we have the path, separated by spaces, we can step through it
11226  # and add multilib dir if necessary...
11227  lt_tmp_lt_search_path_spec=
11228  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11229  # ...but if some path component already ends with the multilib dir we assume
11230  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11231  case "$lt_multi_os_dir; $lt_search_path_spec " in
11232  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11233    lt_multi_os_dir=
11234    ;;
11235  esac
11236  for lt_sys_path in $lt_search_path_spec; do
11237    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11238      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11239    elif test -n "$lt_multi_os_dir"; then
11240      test -d "$lt_sys_path" && \
11241	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11242    fi
11243  done
11244  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11245BEGIN {RS = " "; FS = "/|\n";} {
11246  lt_foo = "";
11247  lt_count = 0;
11248  for (lt_i = NF; lt_i > 0; lt_i--) {
11249    if ($lt_i != "" && $lt_i != ".") {
11250      if ($lt_i == "..") {
11251        lt_count++;
11252      } else {
11253        if (lt_count == 0) {
11254          lt_foo = "/" $lt_i lt_foo;
11255        } else {
11256          lt_count--;
11257        }
11258      }
11259    }
11260  }
11261  if (lt_foo != "") { lt_freq[lt_foo]++; }
11262  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11263}'`
11264  # AWK program above erroneously prepends '/' to C:/dos/paths
11265  # for these hosts.
11266  case $host_os in
11267    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11268      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11269  esac
11270  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11271else
11272  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11273fi
11274library_names_spec=
11275libname_spec='lib$name'
11276soname_spec=
11277shrext_cmds=.so
11278postinstall_cmds=
11279postuninstall_cmds=
11280finish_cmds=
11281finish_eval=
11282shlibpath_var=
11283shlibpath_overrides_runpath=unknown
11284version_type=none
11285dynamic_linker="$host_os ld.so"
11286sys_lib_dlsearch_path_spec="/lib /usr/lib"
11287need_lib_prefix=unknown
11288hardcode_into_libs=no
11289
11290# when you set need_version to no, make sure it does not cause -set_version
11291# flags to be left without arguments
11292need_version=unknown
11293
11294
11295
11296case $host_os in
11297aix3*)
11298  version_type=linux # correct to gnu/linux during the next big refactor
11299  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11300  shlibpath_var=LIBPATH
11301
11302  # AIX 3 has no versioning support, so we append a major version to the name.
11303  soname_spec='$libname$release$shared_ext$major'
11304  ;;
11305
11306aix[4-9]*)
11307  version_type=linux # correct to gnu/linux during the next big refactor
11308  need_lib_prefix=no
11309  need_version=no
11310  hardcode_into_libs=yes
11311  if test ia64 = "$host_cpu"; then
11312    # AIX 5 supports IA64
11313    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11314    shlibpath_var=LD_LIBRARY_PATH
11315  else
11316    # With GCC up to 2.95.x, collect2 would create an import file
11317    # for dependence libraries.  The import file would start with
11318    # the line '#! .'.  This would cause the generated library to
11319    # depend on '.', always an invalid library.  This was fixed in
11320    # development snapshots of GCC prior to 3.0.
11321    case $host_os in
11322      aix4 | aix4.[01] | aix4.[01].*)
11323      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11324	   echo ' yes '
11325	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11326	:
11327      else
11328	can_build_shared=no
11329      fi
11330      ;;
11331    esac
11332    # Using Import Files as archive members, it is possible to support
11333    # filename-based versioning of shared library archives on AIX. While
11334    # this would work for both with and without runtime linking, it will
11335    # prevent static linking of such archives. So we do filename-based
11336    # shared library versioning with .so extension only, which is used
11337    # when both runtime linking and shared linking is enabled.
11338    # Unfortunately, runtime linking may impact performance, so we do
11339    # not want this to be the default eventually. Also, we use the
11340    # versioned .so libs for executables only if there is the -brtl
11341    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11342    # To allow for filename-based versioning support, we need to create
11343    # libNAME.so.V as an archive file, containing:
11344    # *) an Import File, referring to the versioned filename of the
11345    #    archive as well as the shared archive member, telling the
11346    #    bitwidth (32 or 64) of that shared object, and providing the
11347    #    list of exported symbols of that shared object, eventually
11348    #    decorated with the 'weak' keyword
11349    # *) the shared object with the F_LOADONLY flag set, to really avoid
11350    #    it being seen by the linker.
11351    # At run time we better use the real file rather than another symlink,
11352    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11353
11354    case $with_aix_soname,$aix_use_runtimelinking in
11355    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11356    # soname into executable. Probably we can add versioning support to
11357    # collect2, so additional links can be useful in future.
11358    aix,yes) # traditional libtool
11359      dynamic_linker='AIX unversionable lib.so'
11360      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11361      # instead of lib<name>.a to let people know that these are not
11362      # typical AIX shared libraries.
11363      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11364      ;;
11365    aix,no) # traditional AIX only
11366      dynamic_linker='AIX lib.a(lib.so.V)'
11367      # We preserve .a as extension for shared libraries through AIX4.2
11368      # and later when we are not doing run time linking.
11369      library_names_spec='$libname$release.a $libname.a'
11370      soname_spec='$libname$release$shared_ext$major'
11371      ;;
11372    svr4,*) # full svr4 only
11373      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11374      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11375      # We do not specify a path in Import Files, so LIBPATH fires.
11376      shlibpath_overrides_runpath=yes
11377      ;;
11378    *,yes) # both, prefer svr4
11379      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11380      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11381      # unpreferred sharedlib libNAME.a needs extra handling
11382      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11383      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11384      # We do not specify a path in Import Files, so LIBPATH fires.
11385      shlibpath_overrides_runpath=yes
11386      ;;
11387    *,no) # both, prefer aix
11388      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11389      library_names_spec='$libname$release.a $libname.a'
11390      soname_spec='$libname$release$shared_ext$major'
11391      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11392      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11393      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11394      ;;
11395    esac
11396    shlibpath_var=LIBPATH
11397  fi
11398  ;;
11399
11400amigaos*)
11401  case $host_cpu in
11402  powerpc)
11403    # Since July 2007 AmigaOS4 officially supports .so libraries.
11404    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11405    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11406    ;;
11407  m68k)
11408    library_names_spec='$libname.ixlibrary $libname.a'
11409    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11410    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11411    ;;
11412  esac
11413  ;;
11414
11415beos*)
11416  library_names_spec='$libname$shared_ext'
11417  dynamic_linker="$host_os ld.so"
11418  shlibpath_var=LIBRARY_PATH
11419  ;;
11420
11421bsdi[45]*)
11422  version_type=linux # correct to gnu/linux during the next big refactor
11423  need_version=no
11424  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425  soname_spec='$libname$release$shared_ext$major'
11426  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11427  shlibpath_var=LD_LIBRARY_PATH
11428  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11429  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11430  # the default ld.so.conf also contains /usr/contrib/lib and
11431  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11432  # libtool to hard-code these into programs
11433  ;;
11434
11435cygwin* | mingw* | pw32* | cegcc*)
11436  version_type=windows
11437  shrext_cmds=.dll
11438  need_version=no
11439  need_lib_prefix=no
11440
11441  case $GCC,$cc_basename in
11442  yes,*)
11443    # gcc
11444    library_names_spec='$libname.dll.a'
11445    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11446    postinstall_cmds='base_file=`basename \$file`~
11447      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11448      dldir=$destdir/`dirname \$dlpath`~
11449      test -d \$dldir || mkdir -p \$dldir~
11450      $install_prog $dir/$dlname \$dldir/$dlname~
11451      chmod a+x \$dldir/$dlname~
11452      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11453        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11454      fi'
11455    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11456      dlpath=$dir/\$dldll~
11457       $RM \$dlpath'
11458    shlibpath_overrides_runpath=yes
11459
11460    case $host_os in
11461    cygwin*)
11462      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11463      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11464
11465      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11466      ;;
11467    mingw* | cegcc*)
11468      # MinGW DLLs use traditional 'lib' prefix
11469      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11470      ;;
11471    pw32*)
11472      # pw32 DLLs use 'pw' prefix rather than 'lib'
11473      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11474      ;;
11475    esac
11476    dynamic_linker='Win32 ld.exe'
11477    ;;
11478
11479  *,cl*)
11480    # Native MSVC
11481    libname_spec='$name'
11482    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11483    library_names_spec='$libname.dll.lib'
11484
11485    case $build_os in
11486    mingw*)
11487      sys_lib_search_path_spec=
11488      lt_save_ifs=$IFS
11489      IFS=';'
11490      for lt_path in $LIB
11491      do
11492        IFS=$lt_save_ifs
11493        # Let DOS variable expansion print the short 8.3 style file name.
11494        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11495        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11496      done
11497      IFS=$lt_save_ifs
11498      # Convert to MSYS style.
11499      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11500      ;;
11501    cygwin*)
11502      # Convert to unix form, then to dos form, then back to unix form
11503      # but this time dos style (no spaces!) so that the unix form looks
11504      # like /cygdrive/c/PROGRA~1:/cygdr...
11505      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11506      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11507      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11508      ;;
11509    *)
11510      sys_lib_search_path_spec=$LIB
11511      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11512        # It is most probably a Windows format PATH.
11513        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11514      else
11515        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11516      fi
11517      # FIXME: find the short name or the path components, as spaces are
11518      # common. (e.g. "Program Files" -> "PROGRA~1")
11519      ;;
11520    esac
11521
11522    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11523    postinstall_cmds='base_file=`basename \$file`~
11524      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11525      dldir=$destdir/`dirname \$dlpath`~
11526      test -d \$dldir || mkdir -p \$dldir~
11527      $install_prog $dir/$dlname \$dldir/$dlname'
11528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11529      dlpath=$dir/\$dldll~
11530       $RM \$dlpath'
11531    shlibpath_overrides_runpath=yes
11532    dynamic_linker='Win32 link.exe'
11533    ;;
11534
11535  *)
11536    # Assume MSVC wrapper
11537    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11538    dynamic_linker='Win32 ld.exe'
11539    ;;
11540  esac
11541  # FIXME: first we should search . and the directory the executable is in
11542  shlibpath_var=PATH
11543  ;;
11544
11545darwin* | rhapsody*)
11546  dynamic_linker="$host_os dyld"
11547  version_type=darwin
11548  need_lib_prefix=no
11549  need_version=no
11550  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11551  soname_spec='$libname$release$major$shared_ext'
11552  shlibpath_overrides_runpath=yes
11553  shlibpath_var=DYLD_LIBRARY_PATH
11554  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11555
11556  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11557  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11558  ;;
11559
11560dgux*)
11561  version_type=linux # correct to gnu/linux during the next big refactor
11562  need_lib_prefix=no
11563  need_version=no
11564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565  soname_spec='$libname$release$shared_ext$major'
11566  shlibpath_var=LD_LIBRARY_PATH
11567  ;;
11568
11569freebsd* | dragonfly*)
11570  # DragonFly does not have aout.  When/if they implement a new
11571  # versioning mechanism, adjust this.
11572  if test -x /usr/bin/objformat; then
11573    objformat=`/usr/bin/objformat`
11574  else
11575    case $host_os in
11576    freebsd[23].*) objformat=aout ;;
11577    *) objformat=elf ;;
11578    esac
11579  fi
11580  version_type=freebsd-$objformat
11581  case $version_type in
11582    freebsd-elf*)
11583      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584      soname_spec='$libname$release$shared_ext$major'
11585      need_version=no
11586      need_lib_prefix=no
11587      ;;
11588    freebsd-*)
11589      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11590      need_version=yes
11591      ;;
11592  esac
11593  shlibpath_var=LD_LIBRARY_PATH
11594  case $host_os in
11595  freebsd2.*)
11596    shlibpath_overrides_runpath=yes
11597    ;;
11598  freebsd3.[01]* | freebsdelf3.[01]*)
11599    shlibpath_overrides_runpath=yes
11600    hardcode_into_libs=yes
11601    ;;
11602  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11603  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11604    shlibpath_overrides_runpath=no
11605    hardcode_into_libs=yes
11606    ;;
11607  *) # from 4.6 on, and DragonFly
11608    shlibpath_overrides_runpath=yes
11609    hardcode_into_libs=yes
11610    ;;
11611  esac
11612  ;;
11613
11614haiku*)
11615  version_type=linux # correct to gnu/linux during the next big refactor
11616  need_lib_prefix=no
11617  need_version=no
11618  dynamic_linker="$host_os runtime_loader"
11619  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11620  soname_spec='$libname$release$shared_ext$major'
11621  shlibpath_var=LIBRARY_PATH
11622  shlibpath_overrides_runpath=no
11623  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11624  hardcode_into_libs=yes
11625  ;;
11626
11627hpux9* | hpux10* | hpux11*)
11628  # Give a soname corresponding to the major version so that dld.sl refuses to
11629  # link against other versions.
11630  version_type=sunos
11631  need_lib_prefix=no
11632  need_version=no
11633  case $host_cpu in
11634  ia64*)
11635    shrext_cmds='.so'
11636    hardcode_into_libs=yes
11637    dynamic_linker="$host_os dld.so"
11638    shlibpath_var=LD_LIBRARY_PATH
11639    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11640    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641    soname_spec='$libname$release$shared_ext$major'
11642    if test 32 = "$HPUX_IA64_MODE"; then
11643      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11644      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11645    else
11646      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11647      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11648    fi
11649    ;;
11650  hppa*64*)
11651    shrext_cmds='.sl'
11652    hardcode_into_libs=yes
11653    dynamic_linker="$host_os dld.sl"
11654    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11655    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11656    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11657    soname_spec='$libname$release$shared_ext$major'
11658    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11659    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11660    ;;
11661  *)
11662    shrext_cmds='.sl'
11663    dynamic_linker="$host_os dld.sl"
11664    shlibpath_var=SHLIB_PATH
11665    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11666    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11667    soname_spec='$libname$release$shared_ext$major'
11668    ;;
11669  esac
11670  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11671  postinstall_cmds='chmod 555 $lib'
11672  # or fails outright, so override atomically:
11673  install_override_mode=555
11674  ;;
11675
11676interix[3-9]*)
11677  version_type=linux # correct to gnu/linux during the next big refactor
11678  need_lib_prefix=no
11679  need_version=no
11680  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681  soname_spec='$libname$release$shared_ext$major'
11682  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11683  shlibpath_var=LD_LIBRARY_PATH
11684  shlibpath_overrides_runpath=no
11685  hardcode_into_libs=yes
11686  ;;
11687
11688irix5* | irix6* | nonstopux*)
11689  case $host_os in
11690    nonstopux*) version_type=nonstopux ;;
11691    *)
11692	if test yes = "$lt_cv_prog_gnu_ld"; then
11693		version_type=linux # correct to gnu/linux during the next big refactor
11694	else
11695		version_type=irix
11696	fi ;;
11697  esac
11698  need_lib_prefix=no
11699  need_version=no
11700  soname_spec='$libname$release$shared_ext$major'
11701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11702  case $host_os in
11703  irix5* | nonstopux*)
11704    libsuff= shlibsuff=
11705    ;;
11706  *)
11707    case $LD in # libtool.m4 will add one of these switches to LD
11708    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11709      libsuff= shlibsuff= libmagic=32-bit;;
11710    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11711      libsuff=32 shlibsuff=N32 libmagic=N32;;
11712    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11713      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11714    *) libsuff= shlibsuff= libmagic=never-match;;
11715    esac
11716    ;;
11717  esac
11718  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11719  shlibpath_overrides_runpath=no
11720  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11721  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11722  hardcode_into_libs=yes
11723  ;;
11724
11725# No shared lib support for Linux oldld, aout, or coff.
11726linux*oldld* | linux*aout* | linux*coff*)
11727  dynamic_linker=no
11728  ;;
11729
11730linux*android*)
11731  version_type=none # Android doesn't support versioned libraries.
11732  need_lib_prefix=no
11733  need_version=no
11734  library_names_spec='$libname$release$shared_ext'
11735  soname_spec='$libname$release$shared_ext'
11736  finish_cmds=
11737  shlibpath_var=LD_LIBRARY_PATH
11738  shlibpath_overrides_runpath=yes
11739
11740  # This implies no fast_install, which is unacceptable.
11741  # Some rework will be needed to allow for fast_install
11742  # before this can be enabled.
11743  hardcode_into_libs=yes
11744
11745  dynamic_linker='Android linker'
11746  # Don't embed -rpath directories since the linker doesn't support them.
11747  hardcode_libdir_flag_spec='-L$libdir'
11748  ;;
11749
11750# This must be glibc/ELF.
11751linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11752  version_type=linux # correct to gnu/linux during the next big refactor
11753  need_lib_prefix=no
11754  need_version=no
11755  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756  soname_spec='$libname$release$shared_ext$major'
11757  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11758  shlibpath_var=LD_LIBRARY_PATH
11759  shlibpath_overrides_runpath=no
11760
11761  # Some binutils ld are patched to set DT_RUNPATH
11762  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11763  $as_echo_n "(cached) " >&6
11764else
11765  lt_cv_shlibpath_overrides_runpath=no
11766    save_LDFLAGS=$LDFLAGS
11767    save_libdir=$libdir
11768    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11769	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11770    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771/* end confdefs.h.  */
11772
11773int
11774main ()
11775{
11776
11777  ;
11778  return 0;
11779}
11780_ACEOF
11781if ac_fn_c_try_link "$LINENO"; then :
11782  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11783  lt_cv_shlibpath_overrides_runpath=yes
11784fi
11785fi
11786rm -f core conftest.err conftest.$ac_objext \
11787    conftest$ac_exeext conftest.$ac_ext
11788    LDFLAGS=$save_LDFLAGS
11789    libdir=$save_libdir
11790
11791fi
11792
11793  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11794
11795  # This implies no fast_install, which is unacceptable.
11796  # Some rework will be needed to allow for fast_install
11797  # before this can be enabled.
11798  hardcode_into_libs=yes
11799
11800  # Ideally, we could use ldconfig to report *all* directores which are
11801  # searched for libraries, however this is still not possible.  Aside from not
11802  # being certain /sbin/ldconfig is available, command
11803  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11804  # even though it is searched at run-time.  Try to do the best guess by
11805  # appending ld.so.conf contents (and includes) to the search path.
11806  if test -f /etc/ld.so.conf; then
11807    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11808    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11809  fi
11810
11811  # We used to test for /lib/ld.so.1 and disable shared libraries on
11812  # powerpc, because MkLinux only supported shared libraries with the
11813  # GNU dynamic linker.  Since this was broken with cross compilers,
11814  # most powerpc-linux boxes support dynamic linking these days and
11815  # people can always --disable-shared, the test was removed, and we
11816  # assume the GNU/Linux dynamic linker is in use.
11817  dynamic_linker='GNU/Linux ld.so'
11818  ;;
11819
11820netbsdelf*-gnu)
11821  version_type=linux
11822  need_lib_prefix=no
11823  need_version=no
11824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11825  soname_spec='${libname}${release}${shared_ext}$major'
11826  shlibpath_var=LD_LIBRARY_PATH
11827  shlibpath_overrides_runpath=no
11828  hardcode_into_libs=yes
11829  dynamic_linker='NetBSD ld.elf_so'
11830  ;;
11831
11832netbsd*)
11833  version_type=sunos
11834  need_lib_prefix=no
11835  need_version=no
11836  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11837    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11838    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11839    dynamic_linker='NetBSD (a.out) ld.so'
11840  else
11841    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11842    soname_spec='$libname$release$shared_ext$major'
11843    dynamic_linker='NetBSD ld.elf_so'
11844  fi
11845  shlibpath_var=LD_LIBRARY_PATH
11846  shlibpath_overrides_runpath=yes
11847  hardcode_into_libs=yes
11848  ;;
11849
11850newsos6)
11851  version_type=linux # correct to gnu/linux during the next big refactor
11852  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11853  shlibpath_var=LD_LIBRARY_PATH
11854  shlibpath_overrides_runpath=yes
11855  ;;
11856
11857*nto* | *qnx*)
11858  version_type=qnx
11859  need_lib_prefix=no
11860  need_version=no
11861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862  soname_spec='$libname$release$shared_ext$major'
11863  shlibpath_var=LD_LIBRARY_PATH
11864  shlibpath_overrides_runpath=no
11865  hardcode_into_libs=yes
11866  dynamic_linker='ldqnx.so'
11867  ;;
11868
11869openbsd* | bitrig*)
11870  version_type=sunos
11871  sys_lib_dlsearch_path_spec=/usr/lib
11872  need_lib_prefix=no
11873  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11874    need_version=no
11875  else
11876    need_version=yes
11877  fi
11878  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11879  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  shlibpath_overrides_runpath=yes
11882  ;;
11883
11884os2*)
11885  libname_spec='$name'
11886  version_type=windows
11887  shrext_cmds=.dll
11888  need_version=no
11889  need_lib_prefix=no
11890  # OS/2 can only load a DLL with a base name of 8 characters or less.
11891  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11892    v=$($ECHO $release$versuffix | tr -d .-);
11893    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11894    $ECHO $n$v`$shared_ext'
11895  library_names_spec='${libname}_dll.$libext'
11896  dynamic_linker='OS/2 ld.exe'
11897  shlibpath_var=BEGINLIBPATH
11898  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11899  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11900  postinstall_cmds='base_file=`basename \$file`~
11901    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11902    dldir=$destdir/`dirname \$dlpath`~
11903    test -d \$dldir || mkdir -p \$dldir~
11904    $install_prog $dir/$dlname \$dldir/$dlname~
11905    chmod a+x \$dldir/$dlname~
11906    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11907      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11908    fi'
11909  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11910    dlpath=$dir/\$dldll~
11911    $RM \$dlpath'
11912  ;;
11913
11914osf3* | osf4* | osf5*)
11915  version_type=osf
11916  need_lib_prefix=no
11917  need_version=no
11918  soname_spec='$libname$release$shared_ext$major'
11919  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11920  shlibpath_var=LD_LIBRARY_PATH
11921  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11922  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11923  ;;
11924
11925rdos*)
11926  dynamic_linker=no
11927  ;;
11928
11929solaris*)
11930  version_type=linux # correct to gnu/linux during the next big refactor
11931  need_lib_prefix=no
11932  need_version=no
11933  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934  soname_spec='$libname$release$shared_ext$major'
11935  shlibpath_var=LD_LIBRARY_PATH
11936  shlibpath_overrides_runpath=yes
11937  hardcode_into_libs=yes
11938  # ldd complains unless libraries are executable
11939  postinstall_cmds='chmod +x $lib'
11940  ;;
11941
11942sunos4*)
11943  version_type=sunos
11944  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11945  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11946  shlibpath_var=LD_LIBRARY_PATH
11947  shlibpath_overrides_runpath=yes
11948  if test yes = "$with_gnu_ld"; then
11949    need_lib_prefix=no
11950  fi
11951  need_version=yes
11952  ;;
11953
11954sysv4 | sysv4.3*)
11955  version_type=linux # correct to gnu/linux during the next big refactor
11956  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957  soname_spec='$libname$release$shared_ext$major'
11958  shlibpath_var=LD_LIBRARY_PATH
11959  case $host_vendor in
11960    sni)
11961      shlibpath_overrides_runpath=no
11962      need_lib_prefix=no
11963      runpath_var=LD_RUN_PATH
11964      ;;
11965    siemens)
11966      need_lib_prefix=no
11967      ;;
11968    motorola)
11969      need_lib_prefix=no
11970      need_version=no
11971      shlibpath_overrides_runpath=no
11972      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11973      ;;
11974  esac
11975  ;;
11976
11977sysv4*MP*)
11978  if test -d /usr/nec; then
11979    version_type=linux # correct to gnu/linux during the next big refactor
11980    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11981    soname_spec='$libname$shared_ext.$major'
11982    shlibpath_var=LD_LIBRARY_PATH
11983  fi
11984  ;;
11985
11986sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11987  version_type=sco
11988  need_lib_prefix=no
11989  need_version=no
11990  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11991  soname_spec='$libname$release$shared_ext$major'
11992  shlibpath_var=LD_LIBRARY_PATH
11993  shlibpath_overrides_runpath=yes
11994  hardcode_into_libs=yes
11995  if test yes = "$with_gnu_ld"; then
11996    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11997  else
11998    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11999    case $host_os in
12000      sco3.2v5*)
12001        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12002	;;
12003    esac
12004  fi
12005  sys_lib_dlsearch_path_spec='/usr/lib'
12006  ;;
12007
12008tpf*)
12009  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12010  version_type=linux # correct to gnu/linux during the next big refactor
12011  need_lib_prefix=no
12012  need_version=no
12013  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014  shlibpath_var=LD_LIBRARY_PATH
12015  shlibpath_overrides_runpath=no
12016  hardcode_into_libs=yes
12017  ;;
12018
12019uts4*)
12020  version_type=linux # correct to gnu/linux during the next big refactor
12021  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12022  soname_spec='$libname$release$shared_ext$major'
12023  shlibpath_var=LD_LIBRARY_PATH
12024  ;;
12025
12026*)
12027  dynamic_linker=no
12028  ;;
12029esac
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12031$as_echo "$dynamic_linker" >&6; }
12032test no = "$dynamic_linker" && can_build_shared=no
12033
12034variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12035if test yes = "$GCC"; then
12036  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12037fi
12038
12039if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12040  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12041fi
12042
12043if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12044  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12045fi
12046
12047# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12048configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12049
12050# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12051func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12052
12053# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12054configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12153$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12154hardcode_action=
12155if test -n "$hardcode_libdir_flag_spec" ||
12156   test -n "$runpath_var" ||
12157   test yes = "$hardcode_automatic"; then
12158
12159  # We can hardcode non-existent directories.
12160  if test no != "$hardcode_direct" &&
12161     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12162     # have to relink, otherwise we might link with an installed library
12163     # when we should be linking with a yet-to-be-installed one
12164     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12165     test no != "$hardcode_minus_L"; then
12166    # Linking always hardcodes the temporary library directory.
12167    hardcode_action=relink
12168  else
12169    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12170    hardcode_action=immediate
12171  fi
12172else
12173  # We cannot hardcode anything, or else we can only hardcode existing
12174  # directories.
12175  hardcode_action=unsupported
12176fi
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12178$as_echo "$hardcode_action" >&6; }
12179
12180if test relink = "$hardcode_action" ||
12181   test yes = "$inherit_rpath"; then
12182  # Fast installation is not supported
12183  enable_fast_install=no
12184elif test yes = "$shlibpath_overrides_runpath" ||
12185     test no = "$enable_shared"; then
12186  # Fast installation is not necessary
12187  enable_fast_install=needless
12188fi
12189
12190
12191
12192
12193
12194
12195  if test yes != "$enable_dlopen"; then
12196  enable_dlopen=unknown
12197  enable_dlopen_self=unknown
12198  enable_dlopen_self_static=unknown
12199else
12200  lt_cv_dlopen=no
12201  lt_cv_dlopen_libs=
12202
12203  case $host_os in
12204  beos*)
12205    lt_cv_dlopen=load_add_on
12206    lt_cv_dlopen_libs=
12207    lt_cv_dlopen_self=yes
12208    ;;
12209
12210  mingw* | pw32* | cegcc*)
12211    lt_cv_dlopen=LoadLibrary
12212    lt_cv_dlopen_libs=
12213    ;;
12214
12215  cygwin*)
12216    lt_cv_dlopen=dlopen
12217    lt_cv_dlopen_libs=
12218    ;;
12219
12220  darwin*)
12221    # if libdl is installed we need to link against it
12222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12223$as_echo_n "checking for dlopen in -ldl... " >&6; }
12224if ${ac_cv_lib_dl_dlopen+:} false; then :
12225  $as_echo_n "(cached) " >&6
12226else
12227  ac_check_lib_save_LIBS=$LIBS
12228LIBS="-ldl  $LIBS"
12229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230/* end confdefs.h.  */
12231
12232/* Override any GCC internal prototype to avoid an error.
12233   Use char because int might match the return type of a GCC
12234   builtin and then its argument prototype would still apply.  */
12235#ifdef __cplusplus
12236extern "C"
12237#endif
12238char dlopen ();
12239int
12240main ()
12241{
12242return dlopen ();
12243  ;
12244  return 0;
12245}
12246_ACEOF
12247if ac_fn_c_try_link "$LINENO"; then :
12248  ac_cv_lib_dl_dlopen=yes
12249else
12250  ac_cv_lib_dl_dlopen=no
12251fi
12252rm -f core conftest.err conftest.$ac_objext \
12253    conftest$ac_exeext conftest.$ac_ext
12254LIBS=$ac_check_lib_save_LIBS
12255fi
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12257$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12258if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12259  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12260else
12261
12262    lt_cv_dlopen=dyld
12263    lt_cv_dlopen_libs=
12264    lt_cv_dlopen_self=yes
12265
12266fi
12267
12268    ;;
12269
12270  tpf*)
12271    # Don't try to run any link tests for TPF.  We know it's impossible
12272    # because TPF is a cross-compiler, and we know how we open DSOs.
12273    lt_cv_dlopen=dlopen
12274    lt_cv_dlopen_libs=
12275    lt_cv_dlopen_self=no
12276    ;;
12277
12278  *)
12279    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12280if test "x$ac_cv_func_shl_load" = xyes; then :
12281  lt_cv_dlopen=shl_load
12282else
12283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12284$as_echo_n "checking for shl_load in -ldld... " >&6; }
12285if ${ac_cv_lib_dld_shl_load+:} false; then :
12286  $as_echo_n "(cached) " >&6
12287else
12288  ac_check_lib_save_LIBS=$LIBS
12289LIBS="-ldld  $LIBS"
12290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291/* end confdefs.h.  */
12292
12293/* Override any GCC internal prototype to avoid an error.
12294   Use char because int might match the return type of a GCC
12295   builtin and then its argument prototype would still apply.  */
12296#ifdef __cplusplus
12297extern "C"
12298#endif
12299char shl_load ();
12300int
12301main ()
12302{
12303return shl_load ();
12304  ;
12305  return 0;
12306}
12307_ACEOF
12308if ac_fn_c_try_link "$LINENO"; then :
12309  ac_cv_lib_dld_shl_load=yes
12310else
12311  ac_cv_lib_dld_shl_load=no
12312fi
12313rm -f core conftest.err conftest.$ac_objext \
12314    conftest$ac_exeext conftest.$ac_ext
12315LIBS=$ac_check_lib_save_LIBS
12316fi
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12318$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12319if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12320  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12321else
12322  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12323if test "x$ac_cv_func_dlopen" = xyes; then :
12324  lt_cv_dlopen=dlopen
12325else
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12327$as_echo_n "checking for dlopen in -ldl... " >&6; }
12328if ${ac_cv_lib_dl_dlopen+:} false; then :
12329  $as_echo_n "(cached) " >&6
12330else
12331  ac_check_lib_save_LIBS=$LIBS
12332LIBS="-ldl  $LIBS"
12333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334/* end confdefs.h.  */
12335
12336/* Override any GCC internal prototype to avoid an error.
12337   Use char because int might match the return type of a GCC
12338   builtin and then its argument prototype would still apply.  */
12339#ifdef __cplusplus
12340extern "C"
12341#endif
12342char dlopen ();
12343int
12344main ()
12345{
12346return dlopen ();
12347  ;
12348  return 0;
12349}
12350_ACEOF
12351if ac_fn_c_try_link "$LINENO"; then :
12352  ac_cv_lib_dl_dlopen=yes
12353else
12354  ac_cv_lib_dl_dlopen=no
12355fi
12356rm -f core conftest.err conftest.$ac_objext \
12357    conftest$ac_exeext conftest.$ac_ext
12358LIBS=$ac_check_lib_save_LIBS
12359fi
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12361$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12362if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12363  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12364else
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12366$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12367if ${ac_cv_lib_svld_dlopen+:} false; then :
12368  $as_echo_n "(cached) " >&6
12369else
12370  ac_check_lib_save_LIBS=$LIBS
12371LIBS="-lsvld  $LIBS"
12372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h.  */
12374
12375/* Override any GCC internal prototype to avoid an error.
12376   Use char because int might match the return type of a GCC
12377   builtin and then its argument prototype would still apply.  */
12378#ifdef __cplusplus
12379extern "C"
12380#endif
12381char dlopen ();
12382int
12383main ()
12384{
12385return dlopen ();
12386  ;
12387  return 0;
12388}
12389_ACEOF
12390if ac_fn_c_try_link "$LINENO"; then :
12391  ac_cv_lib_svld_dlopen=yes
12392else
12393  ac_cv_lib_svld_dlopen=no
12394fi
12395rm -f core conftest.err conftest.$ac_objext \
12396    conftest$ac_exeext conftest.$ac_ext
12397LIBS=$ac_check_lib_save_LIBS
12398fi
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12400$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12401if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12402  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12403else
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12405$as_echo_n "checking for dld_link in -ldld... " >&6; }
12406if ${ac_cv_lib_dld_dld_link+:} false; then :
12407  $as_echo_n "(cached) " >&6
12408else
12409  ac_check_lib_save_LIBS=$LIBS
12410LIBS="-ldld  $LIBS"
12411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412/* end confdefs.h.  */
12413
12414/* Override any GCC internal prototype to avoid an error.
12415   Use char because int might match the return type of a GCC
12416   builtin and then its argument prototype would still apply.  */
12417#ifdef __cplusplus
12418extern "C"
12419#endif
12420char dld_link ();
12421int
12422main ()
12423{
12424return dld_link ();
12425  ;
12426  return 0;
12427}
12428_ACEOF
12429if ac_fn_c_try_link "$LINENO"; then :
12430  ac_cv_lib_dld_dld_link=yes
12431else
12432  ac_cv_lib_dld_dld_link=no
12433fi
12434rm -f core conftest.err conftest.$ac_objext \
12435    conftest$ac_exeext conftest.$ac_ext
12436LIBS=$ac_check_lib_save_LIBS
12437fi
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12439$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12440if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12441  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12442fi
12443
12444
12445fi
12446
12447
12448fi
12449
12450
12451fi
12452
12453
12454fi
12455
12456
12457fi
12458
12459    ;;
12460  esac
12461
12462  if test no = "$lt_cv_dlopen"; then
12463    enable_dlopen=no
12464  else
12465    enable_dlopen=yes
12466  fi
12467
12468  case $lt_cv_dlopen in
12469  dlopen)
12470    save_CPPFLAGS=$CPPFLAGS
12471    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12472
12473    save_LDFLAGS=$LDFLAGS
12474    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12475
12476    save_LIBS=$LIBS
12477    LIBS="$lt_cv_dlopen_libs $LIBS"
12478
12479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12480$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12481if ${lt_cv_dlopen_self+:} false; then :
12482  $as_echo_n "(cached) " >&6
12483else
12484  	  if test yes = "$cross_compiling"; then :
12485  lt_cv_dlopen_self=cross
12486else
12487  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12488  lt_status=$lt_dlunknown
12489  cat > conftest.$ac_ext <<_LT_EOF
12490#line $LINENO "configure"
12491#include "confdefs.h"
12492
12493#if HAVE_DLFCN_H
12494#include <dlfcn.h>
12495#endif
12496
12497#include <stdio.h>
12498
12499#ifdef RTLD_GLOBAL
12500#  define LT_DLGLOBAL		RTLD_GLOBAL
12501#else
12502#  ifdef DL_GLOBAL
12503#    define LT_DLGLOBAL		DL_GLOBAL
12504#  else
12505#    define LT_DLGLOBAL		0
12506#  endif
12507#endif
12508
12509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12510   find out it does not work in some platform. */
12511#ifndef LT_DLLAZY_OR_NOW
12512#  ifdef RTLD_LAZY
12513#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12514#  else
12515#    ifdef DL_LAZY
12516#      define LT_DLLAZY_OR_NOW		DL_LAZY
12517#    else
12518#      ifdef RTLD_NOW
12519#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12520#      else
12521#        ifdef DL_NOW
12522#          define LT_DLLAZY_OR_NOW	DL_NOW
12523#        else
12524#          define LT_DLLAZY_OR_NOW	0
12525#        endif
12526#      endif
12527#    endif
12528#  endif
12529#endif
12530
12531/* When -fvisibility=hidden is used, assume the code has been annotated
12532   correspondingly for the symbols needed.  */
12533#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12534int fnord () __attribute__((visibility("default")));
12535#endif
12536
12537int fnord () { return 42; }
12538int main ()
12539{
12540  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12541  int status = $lt_dlunknown;
12542
12543  if (self)
12544    {
12545      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12546      else
12547        {
12548	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12549          else puts (dlerror ());
12550	}
12551      /* dlclose (self); */
12552    }
12553  else
12554    puts (dlerror ());
12555
12556  return status;
12557}
12558_LT_EOF
12559  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12560  (eval $ac_link) 2>&5
12561  ac_status=$?
12562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12563  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12564    (./conftest; exit; ) >&5 2>/dev/null
12565    lt_status=$?
12566    case x$lt_status in
12567      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12568      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12569      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12570    esac
12571  else :
12572    # compilation failed
12573    lt_cv_dlopen_self=no
12574  fi
12575fi
12576rm -fr conftest*
12577
12578
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12581$as_echo "$lt_cv_dlopen_self" >&6; }
12582
12583    if test yes = "$lt_cv_dlopen_self"; then
12584      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12585      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12586$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12587if ${lt_cv_dlopen_self_static+:} false; then :
12588  $as_echo_n "(cached) " >&6
12589else
12590  	  if test yes = "$cross_compiling"; then :
12591  lt_cv_dlopen_self_static=cross
12592else
12593  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12594  lt_status=$lt_dlunknown
12595  cat > conftest.$ac_ext <<_LT_EOF
12596#line $LINENO "configure"
12597#include "confdefs.h"
12598
12599#if HAVE_DLFCN_H
12600#include <dlfcn.h>
12601#endif
12602
12603#include <stdio.h>
12604
12605#ifdef RTLD_GLOBAL
12606#  define LT_DLGLOBAL		RTLD_GLOBAL
12607#else
12608#  ifdef DL_GLOBAL
12609#    define LT_DLGLOBAL		DL_GLOBAL
12610#  else
12611#    define LT_DLGLOBAL		0
12612#  endif
12613#endif
12614
12615/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12616   find out it does not work in some platform. */
12617#ifndef LT_DLLAZY_OR_NOW
12618#  ifdef RTLD_LAZY
12619#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12620#  else
12621#    ifdef DL_LAZY
12622#      define LT_DLLAZY_OR_NOW		DL_LAZY
12623#    else
12624#      ifdef RTLD_NOW
12625#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12626#      else
12627#        ifdef DL_NOW
12628#          define LT_DLLAZY_OR_NOW	DL_NOW
12629#        else
12630#          define LT_DLLAZY_OR_NOW	0
12631#        endif
12632#      endif
12633#    endif
12634#  endif
12635#endif
12636
12637/* When -fvisibility=hidden is used, assume the code has been annotated
12638   correspondingly for the symbols needed.  */
12639#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12640int fnord () __attribute__((visibility("default")));
12641#endif
12642
12643int fnord () { return 42; }
12644int main ()
12645{
12646  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12647  int status = $lt_dlunknown;
12648
12649  if (self)
12650    {
12651      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12652      else
12653        {
12654	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12655          else puts (dlerror ());
12656	}
12657      /* dlclose (self); */
12658    }
12659  else
12660    puts (dlerror ());
12661
12662  return status;
12663}
12664_LT_EOF
12665  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12666  (eval $ac_link) 2>&5
12667  ac_status=$?
12668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12669  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12670    (./conftest; exit; ) >&5 2>/dev/null
12671    lt_status=$?
12672    case x$lt_status in
12673      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12674      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12675      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12676    esac
12677  else :
12678    # compilation failed
12679    lt_cv_dlopen_self_static=no
12680  fi
12681fi
12682rm -fr conftest*
12683
12684
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12687$as_echo "$lt_cv_dlopen_self_static" >&6; }
12688    fi
12689
12690    CPPFLAGS=$save_CPPFLAGS
12691    LDFLAGS=$save_LDFLAGS
12692    LIBS=$save_LIBS
12693    ;;
12694  esac
12695
12696  case $lt_cv_dlopen_self in
12697  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12698  *) enable_dlopen_self=unknown ;;
12699  esac
12700
12701  case $lt_cv_dlopen_self_static in
12702  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12703  *) enable_dlopen_self_static=unknown ;;
12704  esac
12705fi
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723striplib=
12724old_striplib=
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12726$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12727if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12728  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12729  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12731$as_echo "yes" >&6; }
12732else
12733# FIXME - insert some real tests, host_os isn't really good enough
12734  case $host_os in
12735  darwin*)
12736    if test -n "$STRIP"; then
12737      striplib="$STRIP -x"
12738      old_striplib="$STRIP -S"
12739      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12740$as_echo "yes" >&6; }
12741    else
12742      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743$as_echo "no" >&6; }
12744    fi
12745    ;;
12746  *)
12747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748$as_echo "no" >&6; }
12749    ;;
12750  esac
12751fi
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764  # Report what library types will actually be built
12765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12766$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12768$as_echo "$can_build_shared" >&6; }
12769
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12771$as_echo_n "checking whether to build shared libraries... " >&6; }
12772  test no = "$can_build_shared" && enable_shared=no
12773
12774  # On AIX, shared libraries and static libraries use the same namespace, and
12775  # are all built from PIC.
12776  case $host_os in
12777  aix3*)
12778    test yes = "$enable_shared" && enable_static=no
12779    if test -n "$RANLIB"; then
12780      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12781      postinstall_cmds='$RANLIB $lib'
12782    fi
12783    ;;
12784
12785  aix[4-9]*)
12786    if test ia64 != "$host_cpu"; then
12787      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12788      yes,aix,yes) ;;			# shared object as lib.so file only
12789      yes,svr4,*) ;;			# shared object as lib.so archive member only
12790      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12791      esac
12792    fi
12793    ;;
12794  esac
12795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12796$as_echo "$enable_shared" >&6; }
12797
12798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12799$as_echo_n "checking whether to build static libraries... " >&6; }
12800  # Make sure either enable_shared or enable_static is yes.
12801  test yes = "$enable_shared" || enable_static=yes
12802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12803$as_echo "$enable_static" >&6; }
12804
12805
12806
12807
12808fi
12809ac_ext=c
12810ac_cpp='$CPP $CPPFLAGS'
12811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12813ac_compiler_gnu=$ac_cv_c_compiler_gnu
12814
12815CC=$lt_save_CC
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831        ac_config_commands="$ac_config_commands libtool"
12832
12833
12834
12835
12836# Only expand once:
12837
12838
12839
12840for ac_prog in flex lex
12841do
12842  # Extract the first word of "$ac_prog", so it can be a program name with args.
12843set dummy $ac_prog; ac_word=$2
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845$as_echo_n "checking for $ac_word... " >&6; }
12846if ${ac_cv_prog_LEX+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  if test -n "$LEX"; then
12850  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12851else
12852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853for as_dir in $PATH
12854do
12855  IFS=$as_save_IFS
12856  test -z "$as_dir" && as_dir=.
12857    for ac_exec_ext in '' $ac_executable_extensions; do
12858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859    ac_cv_prog_LEX="$ac_prog"
12860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861    break 2
12862  fi
12863done
12864  done
12865IFS=$as_save_IFS
12866
12867fi
12868fi
12869LEX=$ac_cv_prog_LEX
12870if test -n "$LEX"; then
12871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12872$as_echo "$LEX" >&6; }
12873else
12874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
12876fi
12877
12878
12879  test -n "$LEX" && break
12880done
12881test -n "$LEX" || LEX=":"
12882
12883if test "x$LEX" != "x:"; then
12884  cat >conftest.l <<_ACEOF
12885%%
12886a { ECHO; }
12887b { REJECT; }
12888c { yymore (); }
12889d { yyless (1); }
12890e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12891    yyless ((input () != 0)); }
12892f { unput (yytext[0]); }
12893. { BEGIN INITIAL; }
12894%%
12895#ifdef YYTEXT_POINTER
12896extern char *yytext;
12897#endif
12898int
12899main (void)
12900{
12901  return ! yylex () + ! yywrap ();
12902}
12903_ACEOF
12904{ { ac_try="$LEX conftest.l"
12905case "(($ac_try" in
12906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907  *) ac_try_echo=$ac_try;;
12908esac
12909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12910$as_echo "$ac_try_echo"; } >&5
12911  (eval "$LEX conftest.l") 2>&5
12912  ac_status=$?
12913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12914  test $ac_status = 0; }
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12916$as_echo_n "checking lex output file root... " >&6; }
12917if ${ac_cv_prog_lex_root+:} false; then :
12918  $as_echo_n "(cached) " >&6
12919else
12920
12921if test -f lex.yy.c; then
12922  ac_cv_prog_lex_root=lex.yy
12923elif test -f lexyy.c; then
12924  ac_cv_prog_lex_root=lexyy
12925else
12926  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12927fi
12928fi
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12930$as_echo "$ac_cv_prog_lex_root" >&6; }
12931LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12932
12933if test -z "${LEXLIB+set}"; then
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12935$as_echo_n "checking lex library... " >&6; }
12936if ${ac_cv_lib_lex+:} false; then :
12937  $as_echo_n "(cached) " >&6
12938else
12939
12940    ac_save_LIBS=$LIBS
12941    ac_cv_lib_lex='none needed'
12942    for ac_lib in '' -lfl -ll; do
12943      LIBS="$ac_lib $ac_save_LIBS"
12944      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945/* end confdefs.h.  */
12946`cat $LEX_OUTPUT_ROOT.c`
12947_ACEOF
12948if ac_fn_c_try_link "$LINENO"; then :
12949  ac_cv_lib_lex=$ac_lib
12950fi
12951rm -f core conftest.err conftest.$ac_objext \
12952    conftest$ac_exeext conftest.$ac_ext
12953      test "$ac_cv_lib_lex" != 'none needed' && break
12954    done
12955    LIBS=$ac_save_LIBS
12956
12957fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12959$as_echo "$ac_cv_lib_lex" >&6; }
12960  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12961fi
12962
12963
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12965$as_echo_n "checking whether yytext is a pointer... " >&6; }
12966if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12967  $as_echo_n "(cached) " >&6
12968else
12969  # POSIX says lex can declare yytext either as a pointer or an array; the
12970# default is implementation-dependent.  Figure out which it is, since
12971# not all implementations provide the %pointer and %array declarations.
12972ac_cv_prog_lex_yytext_pointer=no
12973ac_save_LIBS=$LIBS
12974LIBS="$LEXLIB $ac_save_LIBS"
12975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976/* end confdefs.h.  */
12977
12978  #define YYTEXT_POINTER 1
12979`cat $LEX_OUTPUT_ROOT.c`
12980_ACEOF
12981if ac_fn_c_try_link "$LINENO"; then :
12982  ac_cv_prog_lex_yytext_pointer=yes
12983fi
12984rm -f core conftest.err conftest.$ac_objext \
12985    conftest$ac_exeext conftest.$ac_ext
12986LIBS=$ac_save_LIBS
12987
12988fi
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12990$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12991if test $ac_cv_prog_lex_yytext_pointer = yes; then
12992
12993$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12994
12995fi
12996rm -f conftest.l $LEX_OUTPUT_ROOT.c
12997
12998fi
12999if test "$LEX" = :; then
13000  LEX=${am_missing_run}flex
13001fi
13002for ac_prog in 'bison -y' byacc
13003do
13004  # Extract the first word of "$ac_prog", so it can be a program name with args.
13005set dummy $ac_prog; ac_word=$2
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007$as_echo_n "checking for $ac_word... " >&6; }
13008if ${ac_cv_prog_YACC+:} false; then :
13009  $as_echo_n "(cached) " >&6
13010else
13011  if test -n "$YACC"; then
13012  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13013else
13014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015for as_dir in $PATH
13016do
13017  IFS=$as_save_IFS
13018  test -z "$as_dir" && as_dir=.
13019    for ac_exec_ext in '' $ac_executable_extensions; do
13020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021    ac_cv_prog_YACC="$ac_prog"
13022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023    break 2
13024  fi
13025done
13026  done
13027IFS=$as_save_IFS
13028
13029fi
13030fi
13031YACC=$ac_cv_prog_YACC
13032if test -n "$YACC"; then
13033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13034$as_echo "$YACC" >&6; }
13035else
13036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037$as_echo "no" >&6; }
13038fi
13039
13040
13041  test -n "$YACC" && break
13042done
13043test -n "$YACC" || YACC="yacc"
13044
13045
13046# Extract the first word of "perl", so it can be a program name with args.
13047set dummy perl; ac_word=$2
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049$as_echo_n "checking for $ac_word... " >&6; }
13050if ${ac_cv_path_PERL+:} false; then :
13051  $as_echo_n "(cached) " >&6
13052else
13053  case $PERL in
13054  [\\/]* | ?:[\\/]*)
13055  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13056  ;;
13057  *)
13058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061  IFS=$as_save_IFS
13062  test -z "$as_dir" && as_dir=.
13063    for ac_exec_ext in '' $ac_executable_extensions; do
13064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067    break 2
13068  fi
13069done
13070  done
13071IFS=$as_save_IFS
13072
13073  ;;
13074esac
13075fi
13076PERL=$ac_cv_path_PERL
13077if test -n "$PERL"; then
13078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13079$as_echo "$PERL" >&6; }
13080else
13081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082$as_echo "no" >&6; }
13083fi
13084
13085
13086
13087# Extract the first word of "getconf", so it can be a program name with args.
13088set dummy getconf; ac_word=$2
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
13091if ${ac_cv_path_GETCONF+:} false; then :
13092  $as_echo_n "(cached) " >&6
13093else
13094  case $GETCONF in
13095  [\\/]* | ?:[\\/]*)
13096  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
13097  ;;
13098  *)
13099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100as_dummy="$PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin"
13101for as_dir in $as_dummy
13102do
13103  IFS=$as_save_IFS
13104  test -z "$as_dir" && as_dir=.
13105    for ac_exec_ext in '' $ac_executable_extensions; do
13106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107    ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
13108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109    break 2
13110  fi
13111done
13112  done
13113IFS=$as_save_IFS
13114
13115  test -z "$ac_cv_path_GETCONF" && ac_cv_path_GETCONF="false"
13116  ;;
13117esac
13118fi
13119GETCONF=$ac_cv_path_GETCONF
13120if test -n "$GETCONF"; then
13121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
13122$as_echo "$GETCONF" >&6; }
13123else
13124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
13126fi
13127
13128
13129 if test "x$cross_compiling" = "xyes"; then
13130  CROSS_COMPILING_TRUE=
13131  CROSS_COMPILING_FALSE='#'
13132else
13133  CROSS_COMPILING_TRUE='#'
13134  CROSS_COMPILING_FALSE=
13135fi
13136
13137
13138
13139
13140
13141# Check whether --with-pthreads was given.
13142if test "${with_pthreads+set}" = set; then :
13143  withval=$with_pthreads;
13144fi
13145
13146
13147if test "x$with_pthreads" != x && test "x$with_pthreads" != "xyes" && test "x$with_pthreads" != "xno"; then
13148   LIBS="$LIBS -L$with_pthreads/lib"
13149   CPPFLAGS="-I$with_pthreads/include $CPPFLAGS"
13150fi
13151
13152
13153
13154
13155ac_ext=c
13156ac_cpp='$CPP $CPPFLAGS'
13157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159ac_compiler_gnu=$ac_cv_c_compiler_gnu
13160
13161acx_pthread_ok=no
13162
13163# We used to check for pthread.h first, but this fails if pthread.h
13164# requires special compiler flags (e.g. on True64 or Sequent).
13165# It gets checked for in the link test anyway.
13166
13167# First of all, check if the user has set any of the PTHREAD_LIBS,
13168# etcetera environment variables, and if threads linking works using
13169# them:
13170if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13171        save_CFLAGS="$CFLAGS"
13172        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13173        save_LIBS="$LIBS"
13174        LIBS="$PTHREAD_LIBS $LIBS"
13175        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13176$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13177        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h.  */
13179
13180/* Override any GCC internal prototype to avoid an error.
13181   Use char because int might match the return type of a GCC
13182   builtin and then its argument prototype would still apply.  */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186char pthread_join ();
13187int
13188main ()
13189{
13190return pthread_join ();
13191  ;
13192  return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_link "$LINENO"; then :
13196  acx_pthread_ok=yes
13197fi
13198rm -f core conftest.err conftest.$ac_objext \
13199    conftest$ac_exeext conftest.$ac_ext
13200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13201$as_echo "$acx_pthread_ok" >&6; }
13202        if test x"$acx_pthread_ok" = xno; then
13203                PTHREAD_LIBS=""
13204                PTHREAD_CFLAGS=""
13205        fi
13206        LIBS="$save_LIBS"
13207        CFLAGS="$save_CFLAGS"
13208fi
13209
13210# We must check for the threads library under a number of different
13211# names; the ordering is very important because some systems
13212# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13213# libraries is broken (non-POSIX).
13214
13215# Create a list of thread flags to try.  Items starting with a "-" are
13216# C compiler flags, and other items are library names, except for "none"
13217# which indicates that we try without any flags at all, and "pthread-config"
13218# which is a program returning the flags for the Pth emulation library.
13219
13220acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config pthreadGC2"
13221
13222# The ordering *is* (sometimes) important.  Some notes on the
13223# individual items follow:
13224
13225# pthreads: AIX (must check this before -lpthread)
13226# none: in case threads are in libc; should be tried before -Kthread and
13227#       other compiler flags to prevent continual compiler warnings
13228# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13229# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13230# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13231# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13232# -pthreads: Solaris/gcc
13233# -mthreads: Mingw32/gcc, Lynx/gcc
13234# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13235#      doesn't hurt to check since this sometimes defines pthreads too;
13236#      also defines -D_REENTRANT)
13237#      ... -mt is also the pthreads flag for HP/aCC
13238# pthread: Linux, etcetera
13239# --thread-safe: KAI C++
13240# pthread-config: use pthread-config program (for GNU Pth library)
13241
13242case "${host_cpu}-${host_os}" in
13243        *solaris*)
13244
13245        # On Solaris (at least, for some versions), libc contains stubbed
13246        # (non-functional) versions of the pthreads routines, so link-based
13247        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
13248        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13249        # a function called by this macro, so we could check for that, but
13250        # who knows whether they'll stub that too in a future libc.)  So,
13251        # we'll just look for -pthreads and -lpthread first:
13252
13253        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
13254        ;;
13255esac
13256
13257if test x"$acx_pthread_ok" = xno; then
13258for flag in $acx_pthread_flags; do
13259
13260        case $flag in
13261                none)
13262                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13263$as_echo_n "checking whether pthreads work without any flags... " >&6; }
13264                ;;
13265
13266                -*)
13267                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13268$as_echo_n "checking whether pthreads work with $flag... " >&6; }
13269                PTHREAD_CFLAGS="$flag"
13270                ;;
13271
13272		pthread-config)
13273		# Extract the first word of "pthread-config", so it can be a program name with args.
13274set dummy pthread-config; ac_word=$2
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276$as_echo_n "checking for $ac_word... " >&6; }
13277if ${ac_cv_prog_acx_pthread_config+:} false; then :
13278  $as_echo_n "(cached) " >&6
13279else
13280  if test -n "$acx_pthread_config"; then
13281  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13282else
13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284for as_dir in $PATH
13285do
13286  IFS=$as_save_IFS
13287  test -z "$as_dir" && as_dir=.
13288    for ac_exec_ext in '' $ac_executable_extensions; do
13289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13290    ac_cv_prog_acx_pthread_config="yes"
13291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292    break 2
13293  fi
13294done
13295  done
13296IFS=$as_save_IFS
13297
13298  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13299fi
13300fi
13301acx_pthread_config=$ac_cv_prog_acx_pthread_config
13302if test -n "$acx_pthread_config"; then
13303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
13304$as_echo "$acx_pthread_config" >&6; }
13305else
13306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
13308fi
13309
13310
13311		if test x"$acx_pthread_config" = xno; then continue; fi
13312		PTHREAD_CFLAGS="`pthread-config --cflags`"
13313		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13314		;;
13315
13316                *)
13317                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13318$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13319                PTHREAD_LIBS="-l$flag"
13320                ;;
13321        esac
13322
13323        save_LIBS="$LIBS"
13324        save_CFLAGS="$CFLAGS"
13325        LIBS="$PTHREAD_LIBS $LIBS"
13326        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13327
13328        # Check for various functions.  We must include pthread.h,
13329        # since some functions may be macros.  (On the Sequent, we
13330        # need a special flag -Kthread to make this header compile.)
13331        # We check for pthread_join because it is in -lpthread on IRIX
13332        # while pthread_create is in libc.  We check for pthread_attr_init
13333        # due to DEC craziness with -lpthreads.  We check for
13334        # pthread_cleanup_push because it is one of the few pthread
13335        # functions on Solaris that doesn't have a non-functional libc stub.
13336        # We try pthread_create on general principles.
13337        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339#include <pthread.h>
13340int
13341main ()
13342{
13343pthread_t th; pthread_join(th, 0);
13344                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
13345                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13346  ;
13347  return 0;
13348}
13349_ACEOF
13350if ac_fn_c_try_link "$LINENO"; then :
13351  acx_pthread_ok=yes
13352fi
13353rm -f core conftest.err conftest.$ac_objext \
13354    conftest$ac_exeext conftest.$ac_ext
13355
13356        LIBS="$save_LIBS"
13357        CFLAGS="$save_CFLAGS"
13358
13359        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13360$as_echo "$acx_pthread_ok" >&6; }
13361        if test "x$acx_pthread_ok" = xyes; then
13362                break;
13363        fi
13364
13365        PTHREAD_LIBS=""
13366        PTHREAD_CFLAGS=""
13367done
13368fi
13369
13370# Various other checks:
13371if test "x$acx_pthread_ok" = xyes; then
13372        save_LIBS="$LIBS"
13373        LIBS="$PTHREAD_LIBS $LIBS"
13374        save_CFLAGS="$CFLAGS"
13375        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13376
13377        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13379$as_echo_n "checking for joinable pthread attribute... " >&6; }
13380	attr_name=unknown
13381	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13382	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h.  */
13384#include <pthread.h>
13385int
13386main ()
13387{
13388int attr=$attr; return attr;
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393if ac_fn_c_try_link "$LINENO"; then :
13394  attr_name=$attr; break
13395fi
13396rm -f core conftest.err conftest.$ac_objext \
13397    conftest$ac_exeext conftest.$ac_ext
13398	done
13399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13400$as_echo "$attr_name" >&6; }
13401        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13402
13403cat >>confdefs.h <<_ACEOF
13404#define PTHREAD_CREATE_JOINABLE $attr_name
13405_ACEOF
13406
13407        fi
13408
13409        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13410$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13411        flag=no
13412        case "${host_cpu}-${host_os}" in
13413            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13414            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13415        esac
13416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13417$as_echo "${flag}" >&6; }
13418        if test "x$flag" != xno; then
13419            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13420        fi
13421
13422        LIBS="$save_LIBS"
13423        CFLAGS="$save_CFLAGS"
13424
13425        # More AIX lossage: must compile with xlc_r or cc_r
13426	if test x"$GCC" != xyes; then
13427          for ac_prog in xlc_r cc_r
13428do
13429  # Extract the first word of "$ac_prog", so it can be a program name with args.
13430set dummy $ac_prog; ac_word=$2
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432$as_echo_n "checking for $ac_word... " >&6; }
13433if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13434  $as_echo_n "(cached) " >&6
13435else
13436  if test -n "$PTHREAD_CC"; then
13437  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13438else
13439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440for as_dir in $PATH
13441do
13442  IFS=$as_save_IFS
13443  test -z "$as_dir" && as_dir=.
13444    for ac_exec_ext in '' $ac_executable_extensions; do
13445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446    ac_cv_prog_PTHREAD_CC="$ac_prog"
13447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448    break 2
13449  fi
13450done
13451  done
13452IFS=$as_save_IFS
13453
13454fi
13455fi
13456PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13457if test -n "$PTHREAD_CC"; then
13458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13459$as_echo "$PTHREAD_CC" >&6; }
13460else
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462$as_echo "no" >&6; }
13463fi
13464
13465
13466  test -n "$PTHREAD_CC" && break
13467done
13468test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13469
13470        else
13471          PTHREAD_CC=$CC
13472	fi
13473else
13474        PTHREAD_CC="$CC"
13475fi
13476
13477
13478
13479
13480
13481# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13482if test x"$acx_pthread_ok" = xyes; then
13483
13484$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13485
13486        :
13487else
13488        acx_pthread_ok=no
13489        as_fn_error $? "pthread-compatible library is required to build CFEngine" "$LINENO" 5
13490fi
13491ac_ext=c
13492ac_cpp='$CPP $CPPFLAGS'
13493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13495ac_compiler_gnu=$ac_cv_c_compiler_gnu
13496
13497
13498
13499CC="$PTHREAD_CC"
13500CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
13501LIBS="$PTHREAD_LIBS $LIBS"
13502
13503
13504# Check whether --enable-builtin-extensions was given.
13505if test "${enable_builtin_extensions+set}" = set; then :
13506  enableval=$enable_builtin_extensions;
13507else
13508
13509                  case ${target_os} in #(
13510  mingw*) :
13511    enable_builtin_extensions=yes ;; #(
13512  *) :
13513    enable_builtin_extensions=no ;;
13514esac
13515
13516fi
13517
13518 if test "x$enable_builtin_extensions" = "xyes"; then
13519  BUILTIN_EXTENSIONS_TRUE=
13520  BUILTIN_EXTENSIONS_FALSE='#'
13521else
13522  BUILTIN_EXTENSIONS_TRUE='#'
13523  BUILTIN_EXTENSIONS_FALSE=
13524fi
13525
13526if test "x$enable_builtin_extensions" = "xyes"; then :
13527
13528$as_echo "#define BUILTIN_EXTENSIONS 1" >>confdefs.h
13529
13530fi
13531
13532
13533
13534# Check whether --enable-fhs was given.
13535if test "${enable_fhs+set}" = set; then :
13536  enableval=$enable_fhs;
13537fi
13538
13539
13540#
13541# pkglibdir/pkgdatadir are not overridable, so use our own invention instead.
13542#
13543
13544if test x"$enable_fhs" = xyes; then :
13545
13546  projlibdir='${pkglibdir}'
13547  WORKDIR='${localstatedir}/lib/${PACKAGE}'
13548  MASTERDIR='default'
13549  INPUTDIR='default'
13550  LOGDIR='${localstatedir}/log/${PACKAGE}'
13551  PIDDIR='${runstatedir:-${localstatedir}/run}/${PACKAGE}'
13552  STATEDIR='default'
13553
13554else
13555
13556  if test x"$prefix" = xNONE || test x"$prefix" = x/var/cfengine; then
13557    prefix=/var/cfengine
13558    case "$target_os" in
13559      mingw*)
13560        WORKDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g')
13561        MASTERDIR=default
13562        INPUTDIR=default
13563        LOGDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g')
13564        PIDDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g')
13565        STATEDIR=default
13566      ;;
13567      *)
13568        WORKDIR=/var/cfengine
13569        MASTERDIR=default
13570        INPUTDIR=default
13571        LOGDIR=/var/cfengine
13572        PIDDIR=/var/cfengine
13573        STATEDIR=default
13574      ;;
13575    esac
13576  else
13577    WORKDIR="${localstatedir}/${PACKAGE}"
13578    MASTERDIR="default"
13579    INPUTDIR="default"
13580    LOGDIR="${localstatedir}/${PACKAGE}"
13581    PIDDIR="${localstatedir}/${PACKAGE}"
13582    STATEDIR="default"
13583  fi
13584  bindir="${bindir:-${exec_prefix}/bin}"
13585  projlibdir='${libdir}'
13586
13587fi
13588
13589
13590
13591
13592case ${target_os} in #(
13593  mingw*) :
13594    # Disable printf format warnings, because our wrapper supports more
13595    # flags than vanilla Windows version, so they are false positives.
13596    CFLAGS="$CFLAGS -Wno-format" ;; #(
13597  *) :
13598     ;;
13599esac
13600
13601
13602# Check whether --enable-debug was given.
13603if test "${enable_debug+set}" = set; then :
13604  enableval=$enable_debug; debug=$enableval
13605else
13606  debug=no
13607fi
13608
13609 if test x"$debug" = x"no"; then
13610  NDEBUG_TRUE=
13611  NDEBUG_FALSE='#'
13612else
13613  NDEBUG_TRUE='#'
13614  NDEBUG_FALSE=
13615fi
13616
13617
13618
13619if test x"$debug" = x"yes"
13620then
13621    CFLAGS="$CFLAGS -g3 -O0 $ENV_CFLAGS"
13622else
13623    CFLAGS="$CFLAGS -O2 -DNDEBUG $ENV_CFLAGS"
13624fi
13625
13626
13627
13628# TODO remove
13629
13630# Check whether --with-sql was given.
13631if test "${with_sql+set}" = set; then :
13632  withval=$with_sql; with_postgresql=$with_sql; with_mysql=$with_sql
13633fi
13634
13635
13636
13637
13638# Check whether --with-postgresql was given.
13639if test "${with_postgresql+set}" = set; then :
13640  withval=$with_postgresql;
13641else
13642  with_postgresql=check
13643fi
13644
13645
13646if test "x$with_postgresql" != "xno"
13647then
13648    if test "x$with_postgresql" != xyes && test "x$with_postgresql" != xcheck
13649    then
13650        PG_CONFIG=$with_postgresql/bin/pg_config
13651    else
13652        PG_CONFIG=pg_config
13653    fi
13654
13655    # pg_config is only for native builds
13656    if test "x$cross_compiling" = "xno"
13657    then
13658        if test x`which $PG_CONFIG` != x
13659        then
13660            pg_include_dir=`$PG_CONFIG --includedir`
13661            if test -n "$pg_include_dir"
13662            then
13663                POSTGRESQL_CPPFLAGS="-I$pg_include_dir"
13664            fi
13665        fi
13666    fi
13667
13668
13669
13670
13671  #
13672  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
13673  #
13674  if test "x$with_postgresql" != xyes &&
13675     test "x$with_postgresql" != xcheck &&
13676     test "x$with_postgresql" != x
13677  then
13678    test -z "$POSTGRESQL_PATH" && POSTGRESQL_PATH="$with_postgresql"
13679    if test "x$with_postgresql" != x/usr &&
13680       test "x$with_postgresql" != x/
13681    then
13682      test -z "$POSTGRESQL_CFLAGS" && POSTGRESQL_CFLAGS=""
13683      test -z "$POSTGRESQL_CPPFLAGS" && POSTGRESQL_CPPFLAGS="-I$with_postgresql/include"
13684      test -z "$POSTGRESQL_LDFLAGS" && POSTGRESQL_LDFLAGS="-L$with_postgresql/lib"
13685    fi
13686  else
13687    POSTGRESQL_PATH="default path"
13688  fi
13689
13690  #
13691  # Save old environment
13692  #
13693  save_CFLAGS="$CFLAGS"
13694  save_CPPFLAGS="$CPPFLAGS"
13695  save_LDFLAGS="$LDFLAGS"
13696  save_LIBS="$LIBS"
13697
13698  CFLAGS="$CFLAGS $POSTGRESQL_CFLAGS"
13699  CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
13700  LDFLAGS="$LDFLAGS $POSTGRESQL_LDFLAGS"
13701
13702  #
13703  # Run checks passed as argument
13704  #
13705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
13706$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
13707if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
13708  $as_echo_n "(cached) " >&6
13709else
13710  ac_check_lib_save_LIBS=$LIBS
13711LIBS="-lpq  $LIBS"
13712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713/* end confdefs.h.  */
13714
13715/* Override any GCC internal prototype to avoid an error.
13716   Use char because int might match the return type of a GCC
13717   builtin and then its argument prototype would still apply.  */
13718#ifdef __cplusplus
13719extern "C"
13720#endif
13721char PQconnectdb ();
13722int
13723main ()
13724{
13725return PQconnectdb ();
13726  ;
13727  return 0;
13728}
13729_ACEOF
13730if ac_fn_c_try_link "$LINENO"; then :
13731  ac_cv_lib_pq_PQconnectdb=yes
13732else
13733  ac_cv_lib_pq_PQconnectdb=no
13734fi
13735rm -f core conftest.err conftest.$ac_objext \
13736    conftest$ac_exeext conftest.$ac_ext
13737LIBS=$ac_check_lib_save_LIBS
13738fi
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
13740$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
13741if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
13742  cat >>confdefs.h <<_ACEOF
13743#define HAVE_LIBPQ 1
13744_ACEOF
13745
13746  LIBS="-lpq $LIBS"
13747
13748else
13749  if test "x$with_postgresql" != xcheck; then
13750                as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi
13751
13752fi
13753
13754         for ac_header in libpq-fe.h
13755do :
13756  ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
13757if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
13758  cat >>confdefs.h <<_ACEOF
13759#define HAVE_LIBPQ_FE_H 1
13760_ACEOF
13761
13762else
13763  if test "x$with_postgresql" != xcheck; then
13764                 as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi
13765
13766fi
13767
13768done
13769
13770
13771
13772  #
13773  # Pick up any libraries added by tests
13774  #
13775  test -z "$POSTGRESQL_LIBS" && POSTGRESQL_LIBS="$LIBS"
13776
13777  #
13778  # libtool understands -R$path, but we are not using libtool in configure
13779  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
13780  #
13781  if test "x$with_postgresql" != xyes &&
13782     test "x$with_postgresql" != xcheck &&
13783     test "x$with_postgresql" != x/usr &&
13784     test "x$with_postgresql" != x/
13785  then
13786    POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS -R$with_postgresql/lib"
13787  fi
13788
13789  #
13790  # Restore pristine environment
13791  #
13792  CFLAGS="$save_CFLAGS"
13793  CPPFLAGS="$save_CPPFLAGS"
13794  LDFLAGS="$save_LDFLAGS"
13795  LIBS="$save_LIBS"
13796
13797
13798
13799
13800
13801
13802
13803fi
13804
13805
13806
13807# Check whether --with-mysql was given.
13808if test "${with_mysql+set}" = set; then :
13809  withval=$with_mysql;
13810else
13811  with_mysql=check
13812fi
13813
13814
13815if test "x$with_mysql" != "xno"
13816then
13817    if test "x$with_mysql" != xyes &&
13818       test "x$with_mysql" != xcheck
13819    then
13820        MYSQL_CONFIG=$with_mysql/bin/mysql_config
13821    else
13822        MYSQL_CONFIG=mysql_config
13823    fi
13824
13825    # mysql_config is only for native builds
13826    if test "x$cross_compiling" = "xno"
13827    then
13828        if test x`which $MYSQL_CONFIG` != x
13829        then
13830            mysql_include_dir=`$MYSQL_CONFIG --include`
13831            if test -n "$mysql_include_dir"
13832            then
13833                MYSQL_CPPFLAGS="$mysql_include_dir"
13834            fi
13835        fi
13836    fi
13837
13838
13839
13840
13841  #
13842  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
13843  #
13844  if test "x$with_mysql" != xyes &&
13845     test "x$with_mysql" != xcheck &&
13846     test "x$with_mysql" != x
13847  then
13848    test -z "$MYSQL_PATH" && MYSQL_PATH="$with_mysql"
13849    if test "x$with_mysql" != x/usr &&
13850       test "x$with_mysql" != x/
13851    then
13852      test -z "$MYSQL_CFLAGS" && MYSQL_CFLAGS=""
13853      test -z "$MYSQL_CPPFLAGS" && MYSQL_CPPFLAGS="-I$with_mysql/include"
13854      test -z "$MYSQL_LDFLAGS" && MYSQL_LDFLAGS="-L$with_mysql/lib"
13855    fi
13856  else
13857    MYSQL_PATH="default path"
13858  fi
13859
13860  #
13861  # Save old environment
13862  #
13863  save_CFLAGS="$CFLAGS"
13864  save_CPPFLAGS="$CPPFLAGS"
13865  save_LDFLAGS="$LDFLAGS"
13866  save_LIBS="$LIBS"
13867
13868  CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13869  CPPFLAGS="$CPPFLAGS $MYSQL_CPPFLAGS"
13870  LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS"
13871
13872  #
13873  # Run checks passed as argument
13874  #
13875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_real_connect in -lmysqlclient" >&5
13876$as_echo_n "checking for mysql_real_connect in -lmysqlclient... " >&6; }
13877if ${ac_cv_lib_mysqlclient_mysql_real_connect+:} false; then :
13878  $as_echo_n "(cached) " >&6
13879else
13880  ac_check_lib_save_LIBS=$LIBS
13881LIBS="-lmysqlclient  $LIBS"
13882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883/* end confdefs.h.  */
13884
13885/* Override any GCC internal prototype to avoid an error.
13886   Use char because int might match the return type of a GCC
13887   builtin and then its argument prototype would still apply.  */
13888#ifdef __cplusplus
13889extern "C"
13890#endif
13891char mysql_real_connect ();
13892int
13893main ()
13894{
13895return mysql_real_connect ();
13896  ;
13897  return 0;
13898}
13899_ACEOF
13900if ac_fn_c_try_link "$LINENO"; then :
13901  ac_cv_lib_mysqlclient_mysql_real_connect=yes
13902else
13903  ac_cv_lib_mysqlclient_mysql_real_connect=no
13904fi
13905rm -f core conftest.err conftest.$ac_objext \
13906    conftest$ac_exeext conftest.$ac_ext
13907LIBS=$ac_check_lib_save_LIBS
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_real_connect" >&5
13910$as_echo "$ac_cv_lib_mysqlclient_mysql_real_connect" >&6; }
13911if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = xyes; then :
13912  cat >>confdefs.h <<_ACEOF
13913#define HAVE_LIBMYSQLCLIENT 1
13914_ACEOF
13915
13916  LIBS="-lmysqlclient $LIBS"
13917
13918else
13919  if test "x$with_mysql" != xcheck; then
13920                as_fn_error $? "Cannot find MySQL client library" "$LINENO" 5; fi
13921
13922fi
13923
13924        for ac_header in mysql.h
13925do :
13926  ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
13927if test "x$ac_cv_header_mysql_h" = xyes; then :
13928  cat >>confdefs.h <<_ACEOF
13929#define HAVE_MYSQL_H 1
13930_ACEOF
13931
13932else
13933  if test "x$with_mysql" != xcheck; then
13934                as_fn_error $? "Cannot find MySQL clientlibrary" "$LINENO" 5; fi
13935
13936fi
13937
13938done
13939
13940        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lmysqlclient" >&5
13941$as_echo_n "checking for EVP_CIPHER_CTX_init in -lmysqlclient... " >&6; }
13942if ${ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init+:} false; then :
13943  $as_echo_n "(cached) " >&6
13944else
13945  ac_check_lib_save_LIBS=$LIBS
13946LIBS="-lmysqlclient  $LIBS"
13947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948/* end confdefs.h.  */
13949
13950/* Override any GCC internal prototype to avoid an error.
13951   Use char because int might match the return type of a GCC
13952   builtin and then its argument prototype would still apply.  */
13953#ifdef __cplusplus
13954extern "C"
13955#endif
13956char EVP_CIPHER_CTX_init ();
13957int
13958main ()
13959{
13960return EVP_CIPHER_CTX_init ();
13961  ;
13962  return 0;
13963}
13964_ACEOF
13965if ac_fn_c_try_link "$LINENO"; then :
13966  ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=yes
13967else
13968  ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=no
13969fi
13970rm -f core conftest.err conftest.$ac_objext \
13971    conftest$ac_exeext conftest.$ac_ext
13972LIBS=$ac_check_lib_save_LIBS
13973fi
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&5
13975$as_echo "$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&6; }
13976if test "x$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" = xyes; then :
13977  as_fn_error $? "MySQL client library exports symbols clashing \
13978                with OpenSSL. Get the update from distribution provider, \
13979                recompile MySQL library or disable MySQL connector. See \
13980                http://bugs.mysql.com/bug.php?id=65055 for details." "$LINENO" 5
13981
13982
13983fi
13984
13985
13986
13987  #
13988  # Pick up any libraries added by tests
13989  #
13990  test -z "$MYSQL_LIBS" && MYSQL_LIBS="$LIBS"
13991
13992  #
13993  # libtool understands -R$path, but we are not using libtool in configure
13994  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
13995  #
13996  if test "x$with_mysql" != xyes &&
13997     test "x$with_mysql" != xcheck &&
13998     test "x$with_mysql" != x/usr &&
13999     test "x$with_mysql" != x/
14000  then
14001    MYSQL_LDFLAGS="$MYSQL_LDFLAGS -R$with_mysql/lib"
14002  fi
14003
14004  #
14005  # Restore pristine environment
14006  #
14007  CFLAGS="$save_CFLAGS"
14008  CPPFLAGS="$save_CPPFLAGS"
14009  LDFLAGS="$save_LDFLAGS"
14010  LIBS="$save_LIBS"
14011
14012
14013
14014
14015
14016
14017
14018fi
14019
14020
14021
14022
14023# Check whether --with-qdbm was given.
14024if test "${with_qdbm+set}" = set; then :
14025  withval=$with_qdbm;
14026fi
14027
14028if test -n "$with_qdbm" && test "x$with_qdbm" != "xno"; then :
14029  WITH_QDBM=1
14030else
14031  WITH_QDBM=0
14032fi
14033
14034if test $WITH_QDBM = 1; then
14035
14036
14037
14038  #
14039  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14040  #
14041  if test "x$with_qdbm" != xyes &&
14042     test "x$with_qdbm" != xcheck &&
14043     test "x$with_qdbm" != x
14044  then
14045    test -z "$QDBM_PATH" && QDBM_PATH="$with_qdbm"
14046    if test "x$with_qdbm" != x/usr &&
14047       test "x$with_qdbm" != x/
14048    then
14049      test -z "$QDBM_CFLAGS" && QDBM_CFLAGS=""
14050      test -z "$QDBM_CPPFLAGS" && QDBM_CPPFLAGS="-I$with_qdbm/include"
14051      test -z "$QDBM_LDFLAGS" && QDBM_LDFLAGS="-L$with_qdbm/lib"
14052    fi
14053  else
14054    QDBM_PATH="default path"
14055  fi
14056
14057  #
14058  # Save old environment
14059  #
14060  save_CFLAGS="$CFLAGS"
14061  save_CPPFLAGS="$CPPFLAGS"
14062  save_LDFLAGS="$LDFLAGS"
14063  save_LIBS="$LIBS"
14064
14065  CFLAGS="$CFLAGS $QDBM_CFLAGS"
14066  CPPFLAGS="$CPPFLAGS $QDBM_CPPFLAGS"
14067  LDFLAGS="$LDFLAGS $QDBM_LDFLAGS"
14068
14069  #
14070  # Run checks passed as argument
14071  #
14072
14073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -lqdbm" >&5
14074$as_echo_n "checking for dpopen in -lqdbm... " >&6; }
14075if ${ac_cv_lib_qdbm_dpopen+:} false; then :
14076  $as_echo_n "(cached) " >&6
14077else
14078  ac_check_lib_save_LIBS=$LIBS
14079LIBS="-lqdbm  $LIBS"
14080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081/* end confdefs.h.  */
14082
14083/* Override any GCC internal prototype to avoid an error.
14084   Use char because int might match the return type of a GCC
14085   builtin and then its argument prototype would still apply.  */
14086#ifdef __cplusplus
14087extern "C"
14088#endif
14089char dpopen ();
14090int
14091main ()
14092{
14093return dpopen ();
14094  ;
14095  return 0;
14096}
14097_ACEOF
14098if ac_fn_c_try_link "$LINENO"; then :
14099  ac_cv_lib_qdbm_dpopen=yes
14100else
14101  ac_cv_lib_qdbm_dpopen=no
14102fi
14103rm -f core conftest.err conftest.$ac_objext \
14104    conftest$ac_exeext conftest.$ac_ext
14105LIBS=$ac_check_lib_save_LIBS
14106fi
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qdbm_dpopen" >&5
14108$as_echo "$ac_cv_lib_qdbm_dpopen" >&6; }
14109if test "x$ac_cv_lib_qdbm_dpopen" = xyes; then :
14110  cat >>confdefs.h <<_ACEOF
14111#define HAVE_LIBQDBM 1
14112_ACEOF
14113
14114  LIBS="-lqdbm $LIBS"
14115
14116else
14117  as_fn_error $? "Cannot find QDBM" "$LINENO" 5
14118fi
14119
14120    for ac_header in depot.h
14121do :
14122  ac_fn_c_check_header_mongrel "$LINENO" "depot.h" "ac_cv_header_depot_h" "$ac_includes_default"
14123if test "x$ac_cv_header_depot_h" = xyes; then :
14124  cat >>confdefs.h <<_ACEOF
14125#define HAVE_DEPOT_H 1
14126_ACEOF
14127
14128else
14129  as_fn_error $? "Cannot find QDBM" "$LINENO" 5
14130fi
14131
14132done
14133
14134
14135$as_echo "#define QDB 1" >>confdefs.h
14136
14137
14138
14139  #
14140  # Pick up any libraries added by tests
14141  #
14142  test -z "$QDBM_LIBS" && QDBM_LIBS="$LIBS"
14143
14144  #
14145  # libtool understands -R$path, but we are not using libtool in configure
14146  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14147  #
14148  if test "x$with_qdbm" != xyes &&
14149     test "x$with_qdbm" != xcheck &&
14150     test "x$with_qdbm" != x/usr &&
14151     test "x$with_qdbm" != x/
14152  then
14153    QDBM_LDFLAGS="$QDBM_LDFLAGS -R$with_qdbm/lib"
14154  fi
14155
14156  #
14157  # Restore pristine environment
14158  #
14159  CFLAGS="$save_CFLAGS"
14160  CPPFLAGS="$save_CPPFLAGS"
14161  LDFLAGS="$save_LDFLAGS"
14162  LIBS="$save_LIBS"
14163
14164
14165
14166
14167
14168
14169
14170fi
14171
14172
14173
14174# Check whether --with-tokyocabinet was given.
14175if test "${with_tokyocabinet+set}" = set; then :
14176  withval=$with_tokyocabinet;
14177fi
14178
14179
14180if test $WITH_QDBM -eq 0 && test -n "$with_tokyocabinet" && test "x$with_tokyocabinet" != "xno"; then :
14181  WITH_TOKYO=1
14182else
14183  WITH_TOKYO=0
14184fi
14185
14186if test $WITH_TOKYO = 1; then
14187
14188
14189
14190  #
14191  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14192  #
14193  if test "x$with_tokyocabinet" != xyes &&
14194     test "x$with_tokyocabinet" != xcheck &&
14195     test "x$with_tokyocabinet" != x
14196  then
14197    test -z "$TOKYOCABINET_PATH" && TOKYOCABINET_PATH="$with_tokyocabinet"
14198    if test "x$with_tokyocabinet" != x/usr &&
14199       test "x$with_tokyocabinet" != x/
14200    then
14201      test -z "$TOKYOCABINET_CFLAGS" && TOKYOCABINET_CFLAGS=""
14202      test -z "$TOKYOCABINET_CPPFLAGS" && TOKYOCABINET_CPPFLAGS="-I$with_tokyocabinet/include"
14203      test -z "$TOKYOCABINET_LDFLAGS" && TOKYOCABINET_LDFLAGS="-L$with_tokyocabinet/lib"
14204    fi
14205  else
14206    TOKYOCABINET_PATH="default path"
14207  fi
14208
14209  #
14210  # Save old environment
14211  #
14212  save_CFLAGS="$CFLAGS"
14213  save_CPPFLAGS="$CPPFLAGS"
14214  save_LDFLAGS="$LDFLAGS"
14215  save_LIBS="$LIBS"
14216
14217  CFLAGS="$CFLAGS $TOKYOCABINET_CFLAGS"
14218  CPPFLAGS="$CPPFLAGS $TOKYOCABINET_CPPFLAGS"
14219  LDFLAGS="$LDFLAGS $TOKYOCABINET_LDFLAGS"
14220
14221  #
14222  # Run checks passed as argument
14223  #
14224
14225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tchdbnew in -ltokyocabinet" >&5
14226$as_echo_n "checking for tchdbnew in -ltokyocabinet... " >&6; }
14227if ${ac_cv_lib_tokyocabinet_tchdbnew+:} false; then :
14228  $as_echo_n "(cached) " >&6
14229else
14230  ac_check_lib_save_LIBS=$LIBS
14231LIBS="-ltokyocabinet  $LIBS"
14232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233/* end confdefs.h.  */
14234
14235/* Override any GCC internal prototype to avoid an error.
14236   Use char because int might match the return type of a GCC
14237   builtin and then its argument prototype would still apply.  */
14238#ifdef __cplusplus
14239extern "C"
14240#endif
14241char tchdbnew ();
14242int
14243main ()
14244{
14245return tchdbnew ();
14246  ;
14247  return 0;
14248}
14249_ACEOF
14250if ac_fn_c_try_link "$LINENO"; then :
14251  ac_cv_lib_tokyocabinet_tchdbnew=yes
14252else
14253  ac_cv_lib_tokyocabinet_tchdbnew=no
14254fi
14255rm -f core conftest.err conftest.$ac_objext \
14256    conftest$ac_exeext conftest.$ac_ext
14257LIBS=$ac_check_lib_save_LIBS
14258fi
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyocabinet_tchdbnew" >&5
14260$as_echo "$ac_cv_lib_tokyocabinet_tchdbnew" >&6; }
14261if test "x$ac_cv_lib_tokyocabinet_tchdbnew" = xyes; then :
14262  cat >>confdefs.h <<_ACEOF
14263#define HAVE_LIBTOKYOCABINET 1
14264_ACEOF
14265
14266  LIBS="-ltokyocabinet $LIBS"
14267
14268else
14269  as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5
14270fi
14271
14272    for ac_header in tcutil.h
14273do :
14274  ac_fn_c_check_header_mongrel "$LINENO" "tcutil.h" "ac_cv_header_tcutil_h" "$ac_includes_default"
14275if test "x$ac_cv_header_tcutil_h" = xyes; then :
14276  cat >>confdefs.h <<_ACEOF
14277#define HAVE_TCUTIL_H 1
14278_ACEOF
14279
14280else
14281  as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5
14282fi
14283
14284done
14285
14286    for ac_header in tchdb.h
14287do :
14288  ac_fn_c_check_header_mongrel "$LINENO" "tchdb.h" "ac_cv_header_tchdb_h" "$ac_includes_default"
14289if test "x$ac_cv_header_tchdb_h" = xyes; then :
14290  cat >>confdefs.h <<_ACEOF
14291#define HAVE_TCHDB_H 1
14292_ACEOF
14293
14294else
14295  as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5
14296fi
14297
14298done
14299
14300
14301$as_echo "#define TCDB 1" >>confdefs.h
14302
14303
14304
14305  #
14306  # Pick up any libraries added by tests
14307  #
14308  test -z "$TOKYOCABINET_LIBS" && TOKYOCABINET_LIBS="$LIBS"
14309
14310  #
14311  # libtool understands -R$path, but we are not using libtool in configure
14312  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14313  #
14314  if test "x$with_tokyocabinet" != xyes &&
14315     test "x$with_tokyocabinet" != xcheck &&
14316     test "x$with_tokyocabinet" != x/usr &&
14317     test "x$with_tokyocabinet" != x/
14318  then
14319    TOKYOCABINET_LDFLAGS="$TOKYOCABINET_LDFLAGS -R$with_tokyocabinet/lib"
14320  fi
14321
14322  #
14323  # Restore pristine environment
14324  #
14325  CFLAGS="$save_CFLAGS"
14326  CPPFLAGS="$save_CPPFLAGS"
14327  LDFLAGS="$save_LDFLAGS"
14328  LIBS="$save_LIBS"
14329
14330
14331
14332
14333
14334
14335
14336fi
14337
14338
14339
14340# Check whether --with-lmdb was given.
14341if test "${with_lmdb+set}" = set; then :
14342  withval=$with_lmdb;
14343fi
14344
14345
14346if test $WITH_TOKYO -eq 0 && test $WITH_QDBM -eq 0 && (! test -n "$with_lmdb" || test "x$with_lmdb" != "xno"); then :
14347  WITH_LMDB=1
14348else
14349  WITH_LMDB=0
14350fi
14351
14352if test $WITH_LMDB = 1; then
14353
14354
14355
14356  #
14357  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14358  #
14359  if test "x$with_lmdb" != xyes &&
14360     test "x$with_lmdb" != xcheck &&
14361     test "x$with_lmdb" != x
14362  then
14363    test -z "$LMDB_PATH" && LMDB_PATH="$with_lmdb"
14364    if test "x$with_lmdb" != x/usr &&
14365       test "x$with_lmdb" != x/
14366    then
14367      test -z "$LMDB_CFLAGS" && LMDB_CFLAGS=""
14368      test -z "$LMDB_CPPFLAGS" && LMDB_CPPFLAGS="-I$with_lmdb/include"
14369      test -z "$LMDB_LDFLAGS" && LMDB_LDFLAGS="-L$with_lmdb/lib"
14370    fi
14371  else
14372    LMDB_PATH="default path"
14373  fi
14374
14375  #
14376  # Save old environment
14377  #
14378  save_CFLAGS="$CFLAGS"
14379  save_CPPFLAGS="$CPPFLAGS"
14380  save_LDFLAGS="$LDFLAGS"
14381  save_LIBS="$LIBS"
14382
14383  CFLAGS="$CFLAGS $LMDB_CFLAGS"
14384  CPPFLAGS="$CPPFLAGS $LMDB_CPPFLAGS"
14385  LDFLAGS="$LDFLAGS $LMDB_LDFLAGS"
14386
14387  #
14388  # Run checks passed as argument
14389  #
14390
14391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_dbi_open in -llmdb" >&5
14392$as_echo_n "checking for mdb_dbi_open in -llmdb... " >&6; }
14393if ${ac_cv_lib_lmdb_mdb_dbi_open+:} false; then :
14394  $as_echo_n "(cached) " >&6
14395else
14396  ac_check_lib_save_LIBS=$LIBS
14397LIBS="-llmdb  $LIBS"
14398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399/* end confdefs.h.  */
14400
14401/* Override any GCC internal prototype to avoid an error.
14402   Use char because int might match the return type of a GCC
14403   builtin and then its argument prototype would still apply.  */
14404#ifdef __cplusplus
14405extern "C"
14406#endif
14407char mdb_dbi_open ();
14408int
14409main ()
14410{
14411return mdb_dbi_open ();
14412  ;
14413  return 0;
14414}
14415_ACEOF
14416if ac_fn_c_try_link "$LINENO"; then :
14417  ac_cv_lib_lmdb_mdb_dbi_open=yes
14418else
14419  ac_cv_lib_lmdb_mdb_dbi_open=no
14420fi
14421rm -f core conftest.err conftest.$ac_objext \
14422    conftest$ac_exeext conftest.$ac_ext
14423LIBS=$ac_check_lib_save_LIBS
14424fi
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_dbi_open" >&5
14426$as_echo "$ac_cv_lib_lmdb_mdb_dbi_open" >&6; }
14427if test "x$ac_cv_lib_lmdb_mdb_dbi_open" = xyes; then :
14428  cat >>confdefs.h <<_ACEOF
14429#define HAVE_LIBLMDB 1
14430_ACEOF
14431
14432  LIBS="-llmdb $LIBS"
14433
14434else
14435  as_fn_error $? "Cannot find Lightning MDB" "$LINENO" 5
14436fi
14437
14438    for ac_header in lmdb.h
14439do :
14440  ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default"
14441if test "x$ac_cv_header_lmdb_h" = xyes; then :
14442  cat >>confdefs.h <<_ACEOF
14443#define HAVE_LMDB_H 1
14444_ACEOF
14445
14446else
14447  as_fn_error $? "Cannot find Lightning MDB" "$LINENO" 5
14448fi
14449
14450done
14451
14452
14453$as_echo "#define LMDB 1" >>confdefs.h
14454
14455
14456
14457  #
14458  # Pick up any libraries added by tests
14459  #
14460  test -z "$LMDB_LIBS" && LMDB_LIBS="$LIBS"
14461
14462  #
14463  # libtool understands -R$path, but we are not using libtool in configure
14464  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14465  #
14466  if test "x$with_lmdb" != xyes &&
14467     test "x$with_lmdb" != xcheck &&
14468     test "x$with_lmdb" != x/usr &&
14469     test "x$with_lmdb" != x/
14470  then
14471    LMDB_LDFLAGS="$LMDB_LDFLAGS -R$with_lmdb/lib"
14472  fi
14473
14474  #
14475  # Restore pristine environment
14476  #
14477  CFLAGS="$save_CFLAGS"
14478  CPPFLAGS="$save_CPPFLAGS"
14479  LDFLAGS="$save_LDFLAGS"
14480  LIBS="$save_LIBS"
14481
14482
14483
14484
14485
14486
14487
14488fi
14489
14490if test $WITH_QDBM -eq 0 && test $WITH_TOKYO -eq 0 && test $WITH_LMDB -eq 0; then
14491   as_fn_error LMDB "Either Tokyo Cabinet" "$LINENO" 5
14492fi
14493
14494
14495
14496# Check whether --with-openssl was given.
14497if test "${with_openssl+set}" = set; then :
14498  withval=$with_openssl;
14499else
14500  with_openssl=yes
14501fi
14502
14503
14504if test x"$with_openssl" = xno ; then
14505    as_fn_error $? "This release of CFEngine requires OpenSSL >= 0.9.7" "$LINENO" 5
14506fi
14507
14508if  test -d /usr/local/Cellar/openssl/ && \
14509    test -d /usr/local/opt/openssl/ && \
14510    test "x$with_openssl" = "xyes" ; then
14511    with_openssl="/usr/local/opt/openssl"
14512    echo "OS X Homebrew detected"
14513    echo "Defaulting to: --with-openssl=$with_openssl"
14514fi
14515
14516
14517
14518
14519  #
14520  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14521  #
14522  if test "x$with_openssl" != xyes &&
14523     test "x$with_openssl" != xcheck &&
14524     test "x$with_openssl" != x
14525  then
14526    test -z "$OPENSSL_PATH" && OPENSSL_PATH="$with_openssl"
14527    if test "x$with_openssl" != x/usr &&
14528       test "x$with_openssl" != x/
14529    then
14530      test -z "$OPENSSL_CFLAGS" && OPENSSL_CFLAGS=""
14531      test -z "$OPENSSL_CPPFLAGS" && OPENSSL_CPPFLAGS="-I$with_openssl/include"
14532      test -z "$OPENSSL_LDFLAGS" && OPENSSL_LDFLAGS="-L$with_openssl/lib"
14533    fi
14534  else
14535    OPENSSL_PATH="default path"
14536  fi
14537
14538  #
14539  # Save old environment
14540  #
14541  save_CFLAGS="$CFLAGS"
14542  save_CPPFLAGS="$CPPFLAGS"
14543  save_LDFLAGS="$LDFLAGS"
14544  save_LIBS="$LIBS"
14545
14546  CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
14547  CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS"
14548  LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14549
14550  #
14551  # Run checks passed as argument
14552  #
14553
14554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_generate_key_ex in -lcrypto" >&5
14555$as_echo_n "checking for RSA_generate_key_ex in -lcrypto... " >&6; }
14556if ${ac_cv_lib_crypto_RSA_generate_key_ex+:} false; then :
14557  $as_echo_n "(cached) " >&6
14558else
14559  ac_check_lib_save_LIBS=$LIBS
14560LIBS="-lcrypto  $LIBS"
14561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h.  */
14563
14564/* Override any GCC internal prototype to avoid an error.
14565   Use char because int might match the return type of a GCC
14566   builtin and then its argument prototype would still apply.  */
14567#ifdef __cplusplus
14568extern "C"
14569#endif
14570char RSA_generate_key_ex ();
14571int
14572main ()
14573{
14574return RSA_generate_key_ex ();
14575  ;
14576  return 0;
14577}
14578_ACEOF
14579if ac_fn_c_try_link "$LINENO"; then :
14580  ac_cv_lib_crypto_RSA_generate_key_ex=yes
14581else
14582  ac_cv_lib_crypto_RSA_generate_key_ex=no
14583fi
14584rm -f core conftest.err conftest.$ac_objext \
14585    conftest$ac_exeext conftest.$ac_ext
14586LIBS=$ac_check_lib_save_LIBS
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_generate_key_ex" >&5
14589$as_echo "$ac_cv_lib_crypto_RSA_generate_key_ex" >&6; }
14590if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = xyes; then :
14591  cat >>confdefs.h <<_ACEOF
14592#define HAVE_LIBCRYPTO 1
14593_ACEOF
14594
14595  LIBS="-lcrypto $LIBS"
14596
14597fi
14598
14599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_free in -lssl" >&5
14600$as_echo_n "checking for SSL_free in -lssl... " >&6; }
14601if ${ac_cv_lib_ssl_SSL_free+:} false; then :
14602  $as_echo_n "(cached) " >&6
14603else
14604  ac_check_lib_save_LIBS=$LIBS
14605LIBS="-lssl  $LIBS"
14606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607/* end confdefs.h.  */
14608
14609/* Override any GCC internal prototype to avoid an error.
14610   Use char because int might match the return type of a GCC
14611   builtin and then its argument prototype would still apply.  */
14612#ifdef __cplusplus
14613extern "C"
14614#endif
14615char SSL_free ();
14616int
14617main ()
14618{
14619return SSL_free ();
14620  ;
14621  return 0;
14622}
14623_ACEOF
14624if ac_fn_c_try_link "$LINENO"; then :
14625  ac_cv_lib_ssl_SSL_free=yes
14626else
14627  ac_cv_lib_ssl_SSL_free=no
14628fi
14629rm -f core conftest.err conftest.$ac_objext \
14630    conftest$ac_exeext conftest.$ac_ext
14631LIBS=$ac_check_lib_save_LIBS
14632fi
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_free" >&5
14634$as_echo "$ac_cv_lib_ssl_SSL_free" >&6; }
14635if test "x$ac_cv_lib_ssl_SSL_free" = xyes; then :
14636  cat >>confdefs.h <<_ACEOF
14637#define HAVE_LIBSSL 1
14638_ACEOF
14639
14640  LIBS="-lssl $LIBS"
14641
14642fi
14643
14644   ac_fn_c_check_decl "$LINENO" "SSL_CTX_clear_options" "ac_cv_have_decl_SSL_CTX_clear_options" "#include <openssl/ssl.h>
14645"
14646if test "x$ac_cv_have_decl_SSL_CTX_clear_options" = xyes; then :
14647  ac_have_decl=1
14648else
14649  ac_have_decl=0
14650fi
14651
14652cat >>confdefs.h <<_ACEOF
14653#define HAVE_DECL_SSL_CTX_CLEAR_OPTIONS $ac_have_decl
14654_ACEOF
14655
14656   for ac_header in openssl/opensslv.h
14657do :
14658  ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
14659if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
14660  cat >>confdefs.h <<_ACEOF
14661#define HAVE_OPENSSL_OPENSSLV_H 1
14662_ACEOF
14663
14664else
14665  as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
14666fi
14667
14668done
14669
14670
14671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
14672$as_echo_n "checking for OpenSSL version... " >&6; }
14673
14674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675/* end confdefs.h.  */
14676
14677   #include <openssl/opensslv.h>
14678
14679   #if OPENSSL_VERSION_NUMBER < 0x0090602fL
14680   #This OpenSSL is too old
14681   #endif
14682
14683_ACEOF
14684if ac_fn_c_try_cpp "$LINENO"; then :
14685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
14686$as_echo "OK" >&6; }
14687else
14688  as_fn_error $? "This release of CFEngine requires OpenSSL >= 0.9.7" "$LINENO" 5
14689fi
14690rm -f conftest.err conftest.i conftest.$ac_ext
14691
14692   if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xyes" ; then
14693
14694$as_echo "#define OPENSSL_NO_DEPRECATED 1" >>confdefs.h
14695
14696   fi
14697
14698   if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xno" && \
14699      test "x$ac_cv_lib_crypto_RSA_generate_key" = "xno" ; then
14700      as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
14701   fi
14702
14703   ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_1" "ac_cv_have_decl_SSL_OP_NO_TLSv1_1" "#include <openssl/ssl.h>
14704
14705"
14706if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_1" = xyes; then :
14707
14708$as_echo "#define HAVE_TLS_1_1 1" >>confdefs.h
14709
14710fi
14711
14712   ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_2" "ac_cv_have_decl_SSL_OP_NO_TLSv1_2" "#include <openssl/ssl.h>
14713
14714"
14715if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_2" = xyes; then :
14716
14717$as_echo "#define HAVE_TLS_1_2 1" >>confdefs.h
14718
14719fi
14720
14721   ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_3" "ac_cv_have_decl_SSL_OP_NO_TLSv1_3" "#include <openssl/ssl.h>
14722
14723"
14724if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_3" = xyes; then :
14725
14726$as_echo "#define HAVE_TLS_1_3 1" >>confdefs.h
14727
14728fi
14729
14730
14731
14732  #
14733  # Pick up any libraries added by tests
14734  #
14735  test -z "$OPENSSL_LIBS" && OPENSSL_LIBS="$LIBS"
14736
14737  #
14738  # libtool understands -R$path, but we are not using libtool in configure
14739  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14740  #
14741  if test "x$with_openssl" != xyes &&
14742     test "x$with_openssl" != xcheck &&
14743     test "x$with_openssl" != x/usr &&
14744     test "x$with_openssl" != x/
14745  then
14746    OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -R$with_openssl/lib"
14747  fi
14748
14749  #
14750  # Restore pristine environment
14751  #
14752  CFLAGS="$save_CFLAGS"
14753  CPPFLAGS="$save_CPPFLAGS"
14754  LDFLAGS="$save_LDFLAGS"
14755  LIBS="$save_LIBS"
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766# Check whether --with-pcre was given.
14767if test "${with_pcre+set}" = set; then :
14768  withval=$with_pcre;
14769else
14770  with_pcre=yes
14771fi
14772
14773
14774if test "x$with_pcre" = "xno"; then
14775   as_fn_error $? "PCRE is required" "$LINENO" 5
14776fi
14777
14778
14779
14780
14781  #
14782  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14783  #
14784  if test "x$with_pcre" != xyes &&
14785     test "x$with_pcre" != xcheck &&
14786     test "x$with_pcre" != x
14787  then
14788    test -z "$PCRE_PATH" && PCRE_PATH="$with_pcre"
14789    if test "x$with_pcre" != x/usr &&
14790       test "x$with_pcre" != x/
14791    then
14792      test -z "$PCRE_CFLAGS" && PCRE_CFLAGS=""
14793      test -z "$PCRE_CPPFLAGS" && PCRE_CPPFLAGS="-I$with_pcre/include"
14794      test -z "$PCRE_LDFLAGS" && PCRE_LDFLAGS="-L$with_pcre/lib"
14795    fi
14796  else
14797    PCRE_PATH="default path"
14798  fi
14799
14800  #
14801  # Save old environment
14802  #
14803  save_CFLAGS="$CFLAGS"
14804  save_CPPFLAGS="$CPPFLAGS"
14805  save_LDFLAGS="$LDFLAGS"
14806  save_LIBS="$LIBS"
14807
14808  CFLAGS="$CFLAGS $PCRE_CFLAGS"
14809  CPPFLAGS="$CPPFLAGS $PCRE_CPPFLAGS"
14810  LDFLAGS="$LDFLAGS $PCRE_LDFLAGS"
14811
14812  #
14813  # Run checks passed as argument
14814  #
14815
14816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
14817$as_echo_n "checking for pcre_exec in -lpcre... " >&6; }
14818if ${ac_cv_lib_pcre_pcre_exec+:} false; then :
14819  $as_echo_n "(cached) " >&6
14820else
14821  ac_check_lib_save_LIBS=$LIBS
14822LIBS="-lpcre  $LIBS"
14823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825
14826/* Override any GCC internal prototype to avoid an error.
14827   Use char because int might match the return type of a GCC
14828   builtin and then its argument prototype would still apply.  */
14829#ifdef __cplusplus
14830extern "C"
14831#endif
14832char pcre_exec ();
14833int
14834main ()
14835{
14836return pcre_exec ();
14837  ;
14838  return 0;
14839}
14840_ACEOF
14841if ac_fn_c_try_link "$LINENO"; then :
14842  ac_cv_lib_pcre_pcre_exec=yes
14843else
14844  ac_cv_lib_pcre_pcre_exec=no
14845fi
14846rm -f core conftest.err conftest.$ac_objext \
14847    conftest$ac_exeext conftest.$ac_ext
14848LIBS=$ac_check_lib_save_LIBS
14849fi
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
14851$as_echo "$ac_cv_lib_pcre_pcre_exec" >&6; }
14852if test "x$ac_cv_lib_pcre_pcre_exec" = xyes; then :
14853  cat >>confdefs.h <<_ACEOF
14854#define HAVE_LIBPCRE 1
14855_ACEOF
14856
14857  LIBS="-lpcre $LIBS"
14858
14859else
14860  as_fn_error $? "Cannot find PCRE" "$LINENO" 5
14861fi
14862
14863  for ac_header in pcre.h
14864do :
14865  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
14866if test "x$ac_cv_header_pcre_h" = xyes; then :
14867  cat >>confdefs.h <<_ACEOF
14868#define HAVE_PCRE_H 1
14869_ACEOF
14870
14871else
14872  for ac_header in pcre/pcre.h
14873do :
14874  ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default"
14875if test "x$ac_cv_header_pcre_pcre_h" = xyes; then :
14876  cat >>confdefs.h <<_ACEOF
14877#define HAVE_PCRE_PCRE_H 1
14878_ACEOF
14879 PCRE_CPPFLAGS="-Ipcre"
14880else
14881  as_fn_error $? "Cannot find PCRE" "$LINENO" 5
14882fi
14883
14884done
14885
14886fi
14887
14888done
14889
14890
14891
14892  #
14893  # Pick up any libraries added by tests
14894  #
14895  test -z "$PCRE_LIBS" && PCRE_LIBS="$LIBS"
14896
14897  #
14898  # libtool understands -R$path, but we are not using libtool in configure
14899  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14900  #
14901  if test "x$with_pcre" != xyes &&
14902     test "x$with_pcre" != xcheck &&
14903     test "x$with_pcre" != x/usr &&
14904     test "x$with_pcre" != x/
14905  then
14906    PCRE_LDFLAGS="$PCRE_LDFLAGS -R$with_pcre/lib"
14907  fi
14908
14909  #
14910  # Restore pristine environment
14911  #
14912  CFLAGS="$save_CFLAGS"
14913  CPPFLAGS="$save_CPPFLAGS"
14914  LDFLAGS="$save_LDFLAGS"
14915  LIBS="$save_LIBS"
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926# Check whether --with-libvirt was given.
14927if test "${with_libvirt+set}" = set; then :
14928  withval=$with_libvirt;
14929else
14930  with_libvirt=check
14931fi
14932
14933
14934if test "x$with_libvirt" != xno
14935then
14936
14937
14938
14939  #
14940  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14941  #
14942  if test "x$with_libvirt" != xyes &&
14943     test "x$with_libvirt" != xcheck &&
14944     test "x$with_libvirt" != x
14945  then
14946    test -z "$LIBVIRT_PATH" && LIBVIRT_PATH="$with_libvirt"
14947    if test "x$with_libvirt" != x/usr &&
14948       test "x$with_libvirt" != x/
14949    then
14950      test -z "$LIBVIRT_CFLAGS" && LIBVIRT_CFLAGS=""
14951      test -z "$LIBVIRT_CPPFLAGS" && LIBVIRT_CPPFLAGS="-I$with_libvirt/include"
14952      test -z "$LIBVIRT_LDFLAGS" && LIBVIRT_LDFLAGS="-L$with_libvirt/lib"
14953    fi
14954  else
14955    LIBVIRT_PATH="default path"
14956  fi
14957
14958  #
14959  # Save old environment
14960  #
14961  save_CFLAGS="$CFLAGS"
14962  save_CPPFLAGS="$CPPFLAGS"
14963  save_LDFLAGS="$LDFLAGS"
14964  save_LIBS="$LIBS"
14965
14966  CFLAGS="$CFLAGS $LIBVIRT_CFLAGS"
14967  CPPFLAGS="$CPPFLAGS $LIBVIRT_CPPFLAGS"
14968  LDFLAGS="$LDFLAGS $LIBVIRT_LDFLAGS"
14969
14970  #
14971  # Run checks passed as argument
14972  #
14973
14974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virConnectOpen in -lvirt" >&5
14975$as_echo_n "checking for virConnectOpen in -lvirt... " >&6; }
14976if ${ac_cv_lib_virt_virConnectOpen+:} false; then :
14977  $as_echo_n "(cached) " >&6
14978else
14979  ac_check_lib_save_LIBS=$LIBS
14980LIBS="-lvirt  $LIBS"
14981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982/* end confdefs.h.  */
14983
14984/* Override any GCC internal prototype to avoid an error.
14985   Use char because int might match the return type of a GCC
14986   builtin and then its argument prototype would still apply.  */
14987#ifdef __cplusplus
14988extern "C"
14989#endif
14990char virConnectOpen ();
14991int
14992main ()
14993{
14994return virConnectOpen ();
14995  ;
14996  return 0;
14997}
14998_ACEOF
14999if ac_fn_c_try_link "$LINENO"; then :
15000  ac_cv_lib_virt_virConnectOpen=yes
15001else
15002  ac_cv_lib_virt_virConnectOpen=no
15003fi
15004rm -f core conftest.err conftest.$ac_objext \
15005    conftest$ac_exeext conftest.$ac_ext
15006LIBS=$ac_check_lib_save_LIBS
15007fi
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virConnectOpen" >&5
15009$as_echo "$ac_cv_lib_virt_virConnectOpen" >&6; }
15010if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then :
15011  cat >>confdefs.h <<_ACEOF
15012#define HAVE_LIBVIRT 1
15013_ACEOF
15014
15015  LIBS="-lvirt $LIBS"
15016
15017else
15018  if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library" "$LINENO" 5; fi
15019fi
15020
15021      for ac_header in libvirt/libvirt.h
15022do :
15023  ac_fn_c_check_header_mongrel "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default"
15024if test "x$ac_cv_header_libvirt_libvirt_h" = xyes; then :
15025  cat >>confdefs.h <<_ACEOF
15026#define HAVE_LIBVIRT_LIBVIRT_H 1
15027_ACEOF
15028
15029else
15030  if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library headers" "$LINENO" 5; fi
15031fi
15032
15033done
15034
15035
15036
15037  #
15038  # Pick up any libraries added by tests
15039  #
15040  test -z "$LIBVIRT_LIBS" && LIBVIRT_LIBS="$LIBS"
15041
15042  #
15043  # libtool understands -R$path, but we are not using libtool in configure
15044  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15045  #
15046  if test "x$with_libvirt" != xyes &&
15047     test "x$with_libvirt" != xcheck &&
15048     test "x$with_libvirt" != x/usr &&
15049     test "x$with_libvirt" != x/
15050  then
15051    LIBVIRT_LDFLAGS="$LIBVIRT_LDFLAGS -R$with_libvirt/lib"
15052  fi
15053
15054  #
15055  # Restore pristine environment
15056  #
15057  CFLAGS="$save_CFLAGS"
15058  CPPFLAGS="$save_CPPFLAGS"
15059  LDFLAGS="$save_LDFLAGS"
15060  LIBS="$save_LIBS"
15061
15062
15063
15064
15065
15066
15067
15068fi
15069
15070
15071
15072
15073# Check whether --with-libacl was given.
15074if test "${with_libacl+set}" = set; then :
15075  withval=$with_libacl;
15076else
15077  with_libacl=check
15078fi
15079
15080
15081if test "x$with_libacl" != xno
15082then
15083
15084
15085
15086  #
15087  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15088  #
15089  if test "x$with_libacl" != xyes &&
15090     test "x$with_libacl" != xcheck &&
15091     test "x$with_libacl" != x
15092  then
15093    test -z "$LIBACL_PATH" && LIBACL_PATH="$with_libacl"
15094    if test "x$with_libacl" != x/usr &&
15095       test "x$with_libacl" != x/
15096    then
15097      test -z "$LIBACL_CFLAGS" && LIBACL_CFLAGS=""
15098      test -z "$LIBACL_CPPFLAGS" && LIBACL_CPPFLAGS="-I$with_libacl/include"
15099      test -z "$LIBACL_LDFLAGS" && LIBACL_LDFLAGS="-L$with_libacl/lib"
15100    fi
15101  else
15102    LIBACL_PATH="default path"
15103  fi
15104
15105  #
15106  # Save old environment
15107  #
15108  save_CFLAGS="$CFLAGS"
15109  save_CPPFLAGS="$CPPFLAGS"
15110  save_LDFLAGS="$LDFLAGS"
15111  save_LIBS="$LIBS"
15112
15113  CFLAGS="$CFLAGS $LIBACL_CFLAGS"
15114  CPPFLAGS="$CPPFLAGS $LIBACL_CPPFLAGS"
15115  LDFLAGS="$LDFLAGS $LIBACL_LDFLAGS"
15116
15117  #
15118  # Run checks passed as argument
15119  #
15120
15121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_init in -lacl" >&5
15122$as_echo_n "checking for acl_init in -lacl... " >&6; }
15123if ${ac_cv_lib_acl_acl_init+:} false; then :
15124  $as_echo_n "(cached) " >&6
15125else
15126  ac_check_lib_save_LIBS=$LIBS
15127LIBS="-lacl  $LIBS"
15128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130
15131/* Override any GCC internal prototype to avoid an error.
15132   Use char because int might match the return type of a GCC
15133   builtin and then its argument prototype would still apply.  */
15134#ifdef __cplusplus
15135extern "C"
15136#endif
15137char acl_init ();
15138int
15139main ()
15140{
15141return acl_init ();
15142  ;
15143  return 0;
15144}
15145_ACEOF
15146if ac_fn_c_try_link "$LINENO"; then :
15147  ac_cv_lib_acl_acl_init=yes
15148else
15149  ac_cv_lib_acl_acl_init=no
15150fi
15151rm -f core conftest.err conftest.$ac_objext \
15152    conftest$ac_exeext conftest.$ac_ext
15153LIBS=$ac_check_lib_save_LIBS
15154fi
15155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_init" >&5
15156$as_echo "$ac_cv_lib_acl_acl_init" >&6; }
15157if test "x$ac_cv_lib_acl_acl_init" = xyes; then :
15158  cat >>confdefs.h <<_ACEOF
15159#define HAVE_LIBACL 1
15160_ACEOF
15161
15162  LIBS="-lacl $LIBS"
15163
15164else
15165  if test "x$with_libacl" != xcheck; then as_fn_error $? "Cannot find libacl library" "$LINENO" 5; fi
15166fi
15167
15168    for ac_header in acl.h sys/acl.h acl/libacl.h
15169do :
15170  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15171ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15173  cat >>confdefs.h <<_ACEOF
15174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15175_ACEOF
15176 libacl_header_found=yes
15177fi
15178
15179done
15180
15181    if test "x$libacl_header_found" != "xyes" && test "x$with_libacl" != xcheck;
15182    then
15183      as_fn_error $? "Cannot find libacl library headers" "$LINENO" 5;
15184    fi
15185
15186
15187  #
15188  # Pick up any libraries added by tests
15189  #
15190  test -z "$LIBACL_LIBS" && LIBACL_LIBS="$LIBS"
15191
15192  #
15193  # libtool understands -R$path, but we are not using libtool in configure
15194  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15195  #
15196  if test "x$with_libacl" != xyes &&
15197     test "x$with_libacl" != xcheck &&
15198     test "x$with_libacl" != x/usr &&
15199     test "x$with_libacl" != x/
15200  then
15201    LIBACL_LDFLAGS="$LIBACL_LDFLAGS -R$with_libacl/lib"
15202  fi
15203
15204  #
15205  # Restore pristine environment
15206  #
15207  CFLAGS="$save_CFLAGS"
15208  CPPFLAGS="$save_CPPFLAGS"
15209  LDFLAGS="$save_LDFLAGS"
15210  LIBS="$save_LIBS"
15211
15212
15213
15214
15215
15216
15217
15218fi
15219
15220
15221
15222# Check whether --with-libcurl was given.
15223if test "${with_libcurl+set}" = set; then :
15224  withval=$with_libcurl;
15225else
15226  with_libcurl=check
15227fi
15228
15229
15230if test "x$with_libcurl" != xno
15231then
15232
15233
15234
15235  #
15236  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15237  #
15238  if test "x$with_libcurl" != xyes &&
15239     test "x$with_libcurl" != xcheck &&
15240     test "x$with_libcurl" != x
15241  then
15242    test -z "$LIBCURL_PATH" && LIBCURL_PATH="$with_libcurl"
15243    if test "x$with_libcurl" != x/usr &&
15244       test "x$with_libcurl" != x/
15245    then
15246      test -z "$LIBCURL_CFLAGS" && LIBCURL_CFLAGS=""
15247      test -z "$LIBCURL_CPPFLAGS" && LIBCURL_CPPFLAGS="-I$with_libcurl/include"
15248      test -z "$LIBCURL_LDFLAGS" && LIBCURL_LDFLAGS="-L$with_libcurl/lib"
15249    fi
15250  else
15251    LIBCURL_PATH="default path"
15252  fi
15253
15254  #
15255  # Save old environment
15256  #
15257  save_CFLAGS="$CFLAGS"
15258  save_CPPFLAGS="$CPPFLAGS"
15259  save_LDFLAGS="$LDFLAGS"
15260  save_LIBS="$LIBS"
15261
15262  CFLAGS="$CFLAGS $LIBCURL_CFLAGS"
15263  CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
15264  LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS"
15265
15266  #
15267  # Run checks passed as argument
15268  #
15269
15270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
15271$as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
15272if ${ac_cv_lib_curl_curl_global_init+:} false; then :
15273  $as_echo_n "(cached) " >&6
15274else
15275  ac_check_lib_save_LIBS=$LIBS
15276LIBS="-lcurl  $LIBS"
15277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278/* end confdefs.h.  */
15279
15280/* Override any GCC internal prototype to avoid an error.
15281   Use char because int might match the return type of a GCC
15282   builtin and then its argument prototype would still apply.  */
15283#ifdef __cplusplus
15284extern "C"
15285#endif
15286char curl_global_init ();
15287int
15288main ()
15289{
15290return curl_global_init ();
15291  ;
15292  return 0;
15293}
15294_ACEOF
15295if ac_fn_c_try_link "$LINENO"; then :
15296  ac_cv_lib_curl_curl_global_init=yes
15297else
15298  ac_cv_lib_curl_curl_global_init=no
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301    conftest$ac_exeext conftest.$ac_ext
15302LIBS=$ac_check_lib_save_LIBS
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
15305$as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
15306if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
15307  cat >>confdefs.h <<_ACEOF
15308#define HAVE_LIBCURL 1
15309_ACEOF
15310
15311  LIBS="-lcurl $LIBS"
15312
15313else
15314    libcurl_lib_found=no;
15315         if test "x$with_libcurl" != xcheck;
15316         then
15317             as_fn_error $? "Cannot find libcurl library" "$LINENO" 5;
15318         fi
15319
15320fi
15321
15322    for ac_header in curl/curl.h
15323do :
15324  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
15325if test "x$ac_cv_header_curl_curl_h" = xyes; then :
15326  cat >>confdefs.h <<_ACEOF
15327#define HAVE_CURL_CURL_H 1
15328_ACEOF
15329 libcurl_header_found=yes
15330else
15331  if test "x$with_libcurl" != xcheck; then as_fn_error $? "Cannot find libcurl header files" "$LINENO" 5; fi
15332fi
15333
15334done
15335
15336
15337
15338  #
15339  # Pick up any libraries added by tests
15340  #
15341  test -z "$LIBCURL_LIBS" && LIBCURL_LIBS="$LIBS"
15342
15343  #
15344  # libtool understands -R$path, but we are not using libtool in configure
15345  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15346  #
15347  if test "x$with_libcurl" != xyes &&
15348     test "x$with_libcurl" != xcheck &&
15349     test "x$with_libcurl" != x/usr &&
15350     test "x$with_libcurl" != x/
15351  then
15352    LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS -R$with_libcurl/lib"
15353  fi
15354
15355  #
15356  # Restore pristine environment
15357  #
15358  CFLAGS="$save_CFLAGS"
15359  CPPFLAGS="$save_CPPFLAGS"
15360  LDFLAGS="$save_LDFLAGS"
15361  LIBS="$save_LIBS"
15362
15363
15364
15365
15366
15367
15368
15369fi
15370
15371 if test "x$libcurl_lib_found" != xno && test "x$libcurl_header_found" = xyes; then
15372  HAVE_LIBCURL_TRUE=
15373  HAVE_LIBCURL_FALSE='#'
15374else
15375  HAVE_LIBCURL_TRUE='#'
15376  HAVE_LIBCURL_FALSE=
15377fi
15378
15379
15380
15381
15382# Check whether --with-libyaml was given.
15383if test "${with_libyaml+set}" = set; then :
15384  withval=$with_libyaml;
15385else
15386  with_libyaml=check
15387fi
15388
15389
15390if test "x$with_libyaml" != xno
15391then
15392
15393
15394
15395  #
15396  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15397  #
15398  if test "x$with_libyaml" != xyes &&
15399     test "x$with_libyaml" != xcheck &&
15400     test "x$with_libyaml" != x
15401  then
15402    test -z "$LIBYAML_PATH" && LIBYAML_PATH="$with_libyaml"
15403    if test "x$with_libyaml" != x/usr &&
15404       test "x$with_libyaml" != x/
15405    then
15406      test -z "$LIBYAML_CFLAGS" && LIBYAML_CFLAGS=""
15407      test -z "$LIBYAML_CPPFLAGS" && LIBYAML_CPPFLAGS="-I$with_libyaml/include"
15408      test -z "$LIBYAML_LDFLAGS" && LIBYAML_LDFLAGS="-L$with_libyaml/lib"
15409    fi
15410  else
15411    LIBYAML_PATH="default path"
15412  fi
15413
15414  #
15415  # Save old environment
15416  #
15417  save_CFLAGS="$CFLAGS"
15418  save_CPPFLAGS="$CPPFLAGS"
15419  save_LDFLAGS="$LDFLAGS"
15420  save_LIBS="$LIBS"
15421
15422  CFLAGS="$CFLAGS $LIBYAML_CFLAGS"
15423  CPPFLAGS="$CPPFLAGS $LIBYAML_CPPFLAGS"
15424  LDFLAGS="$LDFLAGS $LIBYAML_LDFLAGS"
15425
15426  #
15427  # Run checks passed as argument
15428  #
15429
15430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_initialize in -lyaml" >&5
15431$as_echo_n "checking for yaml_parser_initialize in -lyaml... " >&6; }
15432if ${ac_cv_lib_yaml_yaml_parser_initialize+:} false; then :
15433  $as_echo_n "(cached) " >&6
15434else
15435  ac_check_lib_save_LIBS=$LIBS
15436LIBS="-lyaml  $LIBS"
15437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438/* end confdefs.h.  */
15439
15440/* Override any GCC internal prototype to avoid an error.
15441   Use char because int might match the return type of a GCC
15442   builtin and then its argument prototype would still apply.  */
15443#ifdef __cplusplus
15444extern "C"
15445#endif
15446char yaml_parser_initialize ();
15447int
15448main ()
15449{
15450return yaml_parser_initialize ();
15451  ;
15452  return 0;
15453}
15454_ACEOF
15455if ac_fn_c_try_link "$LINENO"; then :
15456  ac_cv_lib_yaml_yaml_parser_initialize=yes
15457else
15458  ac_cv_lib_yaml_yaml_parser_initialize=no
15459fi
15460rm -f core conftest.err conftest.$ac_objext \
15461    conftest$ac_exeext conftest.$ac_ext
15462LIBS=$ac_check_lib_save_LIBS
15463fi
15464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_initialize" >&5
15465$as_echo "$ac_cv_lib_yaml_yaml_parser_initialize" >&6; }
15466if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then :
15467  cat >>confdefs.h <<_ACEOF
15468#define HAVE_LIBYAML 1
15469_ACEOF
15470
15471  LIBS="-lyaml $LIBS"
15472
15473else
15474  if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml library" "$LINENO" 5; fi
15475fi
15476
15477    for ac_header in yaml.h
15478do :
15479  ac_fn_c_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default"
15480if test "x$ac_cv_header_yaml_h" = xyes; then :
15481  cat >>confdefs.h <<_ACEOF
15482#define HAVE_YAML_H 1
15483_ACEOF
15484 libyaml_header_found=yes
15485else
15486  if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml header files" "$LINENO" 5; fi
15487fi
15488
15489done
15490
15491
15492
15493  #
15494  # Pick up any libraries added by tests
15495  #
15496  test -z "$LIBYAML_LIBS" && LIBYAML_LIBS="$LIBS"
15497
15498  #
15499  # libtool understands -R$path, but we are not using libtool in configure
15500  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15501  #
15502  if test "x$with_libyaml" != xyes &&
15503     test "x$with_libyaml" != xcheck &&
15504     test "x$with_libyaml" != x/usr &&
15505     test "x$with_libyaml" != x/
15506  then
15507    LIBYAML_LDFLAGS="$LIBYAML_LDFLAGS -R$with_libyaml/lib"
15508  fi
15509
15510  #
15511  # Restore pristine environment
15512  #
15513  CFLAGS="$save_CFLAGS"
15514  CPPFLAGS="$save_CPPFLAGS"
15515  LDFLAGS="$save_LDFLAGS"
15516  LIBS="$save_LIBS"
15517
15518
15519
15520
15521
15522
15523
15524fi
15525
15526
15527
15528# Check whether --with-libxml2 was given.
15529if test "${with_libxml2+set}" = set; then :
15530  withval=$with_libxml2;
15531else
15532  with_libxml2=check
15533fi
15534
15535
15536if test "x$with_libxml2" != xno
15537then
15538    if test "x$with_libxml2" != xyes &&
15539       test "x$with_libxml2" != xcheck
15540    then
15541        XML2_CONFIG=$with_libxml2/bin/xml2-config
15542    else
15543        XML2_CONFIG=xml2-config
15544    fi
15545
15546    # xml2-config is only for native builds
15547    if test "x$cross_compiling" = "xno" && test x`which $XML2_CONFIG` != x
15548    then
15549        xml2_include_dir=`$XML2_CONFIG --cflags`
15550        if test -n "$xml2_include_dir"
15551        then
15552            LIBXML2_CPPFLAGS="$xml2_include_dir"
15553        fi
15554    else                # xml2-config not found
15555        # if a path, e.g. /var/cfengine was given, then we
15556        # must take into account that libxml2 includes are in
15557        # /var/cfengine/include/libxml2
15558        LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2
15559    fi
15560
15561
15562
15563
15564  #
15565  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15566  #
15567  if test "x$with_libxml2" != xyes &&
15568     test "x$with_libxml2" != xcheck &&
15569     test "x$with_libxml2" != x
15570  then
15571    test -z "$LIBXML2_PATH" && LIBXML2_PATH="$with_libxml2"
15572    if test "x$with_libxml2" != x/usr &&
15573       test "x$with_libxml2" != x/
15574    then
15575      test -z "$LIBXML2_CFLAGS" && LIBXML2_CFLAGS=""
15576      test -z "$LIBXML2_CPPFLAGS" && LIBXML2_CPPFLAGS="-I$with_libxml2/include"
15577      test -z "$LIBXML2_LDFLAGS" && LIBXML2_LDFLAGS="-L$with_libxml2/lib"
15578    fi
15579  else
15580    LIBXML2_PATH="default path"
15581  fi
15582
15583  #
15584  # Save old environment
15585  #
15586  save_CFLAGS="$CFLAGS"
15587  save_CPPFLAGS="$CPPFLAGS"
15588  save_LDFLAGS="$LDFLAGS"
15589  save_LIBS="$LIBS"
15590
15591  CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15592  CPPFLAGS="$CPPFLAGS $LIBXML2_CPPFLAGS"
15593  LDFLAGS="$LDFLAGS $LIBXML2_LDFLAGS"
15594
15595  #
15596  # Run checks passed as argument
15597  #
15598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
15599$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
15600if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
15601  $as_echo_n "(cached) " >&6
15602else
15603  ac_check_lib_save_LIBS=$LIBS
15604LIBS="-lxml2  $LIBS"
15605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606/* end confdefs.h.  */
15607
15608/* Override any GCC internal prototype to avoid an error.
15609   Use char because int might match the return type of a GCC
15610   builtin and then its argument prototype would still apply.  */
15611#ifdef __cplusplus
15612extern "C"
15613#endif
15614char xmlFirstElementChild ();
15615int
15616main ()
15617{
15618return xmlFirstElementChild ();
15619  ;
15620  return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_link "$LINENO"; then :
15624  ac_cv_lib_xml2_xmlFirstElementChild=yes
15625else
15626  ac_cv_lib_xml2_xmlFirstElementChild=no
15627fi
15628rm -f core conftest.err conftest.$ac_objext \
15629    conftest$ac_exeext conftest.$ac_ext
15630LIBS=$ac_check_lib_save_LIBS
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
15633$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
15634if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
15635  cat >>confdefs.h <<_ACEOF
15636#define HAVE_LIBXML2 1
15637_ACEOF
15638
15639  LIBS="-lxml2 $LIBS"
15640
15641else
15642  if test "x$with_libxml2" != xcheck; then
15643                as_fn_error $? "Cannotfind libxml2" "$LINENO" 5; fi
15644
15645fi
15646
15647        for ac_header in libxml/xmlwriter.h
15648do :
15649  ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default"
15650if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes; then :
15651  cat >>confdefs.h <<_ACEOF
15652#define HAVE_LIBXML_XMLWRITER_H 1
15653_ACEOF
15654 break
15655else
15656  if test "x$with_libxml2" != xcheck; then
15657                as_fn_error $? "Cannot find libxml2" "$LINENO" 5; fi
15658
15659fi
15660
15661done
15662
15663
15664
15665  #
15666  # Pick up any libraries added by tests
15667  #
15668  test -z "$LIBXML2_LIBS" && LIBXML2_LIBS="$LIBS"
15669
15670  #
15671  # libtool understands -R$path, but we are not using libtool in configure
15672  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15673  #
15674  if test "x$with_libxml2" != xyes &&
15675     test "x$with_libxml2" != xcheck &&
15676     test "x$with_libxml2" != x/usr &&
15677     test "x$with_libxml2" != x/
15678  then
15679    LIBXML2_LDFLAGS="$LIBXML2_LDFLAGS -R$with_libxml2/lib"
15680  fi
15681
15682  #
15683  # Restore pristine environment
15684  #
15685  CFLAGS="$save_CFLAGS"
15686  CPPFLAGS="$save_CPPFLAGS"
15687  LDFLAGS="$save_LDFLAGS"
15688  LIBS="$save_LIBS"
15689
15690
15691
15692
15693
15694
15695
15696fi
15697
15698 if test "x$with_libxml2" != xno &&
15699     test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then
15700  HAVE_LIBXML2_TRUE=
15701  HAVE_LIBXML2_FALSE='#'
15702else
15703  HAVE_LIBXML2_TRUE='#'
15704  HAVE_LIBXML2_FALSE=
15705fi
15706
15707
15708
15709for ac_header in avahi-client/client.h
15710do :
15711  ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
15712if test "x$ac_cv_header_avahi_client_client_h" = xyes; then :
15713  cat >>confdefs.h <<_ACEOF
15714#define HAVE_AVAHI_CLIENT_CLIENT_H 1
15715_ACEOF
15716  if true; then
15717  HAVE_AVAHI_CLIENT_TRUE=
15718  HAVE_AVAHI_CLIENT_FALSE='#'
15719else
15720  HAVE_AVAHI_CLIENT_TRUE='#'
15721  HAVE_AVAHI_CLIENT_FALSE=
15722fi
15723
15724else
15725   if false; then
15726  HAVE_AVAHI_CLIENT_TRUE=
15727  HAVE_AVAHI_CLIENT_FALSE='#'
15728else
15729  HAVE_AVAHI_CLIENT_TRUE='#'
15730  HAVE_AVAHI_CLIENT_FALSE=
15731fi
15732
15733fi
15734
15735done
15736
15737for ac_header in avahi-common/address.h
15738do :
15739  ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/address.h" "ac_cv_header_avahi_common_address_h" "$ac_includes_default"
15740if test "x$ac_cv_header_avahi_common_address_h" = xyes; then :
15741  cat >>confdefs.h <<_ACEOF
15742#define HAVE_AVAHI_COMMON_ADDRESS_H 1
15743_ACEOF
15744  if true; then
15745  HAVE_AVAHI_COMMON_TRUE=
15746  HAVE_AVAHI_COMMON_FALSE='#'
15747else
15748  HAVE_AVAHI_COMMON_TRUE='#'
15749  HAVE_AVAHI_COMMON_FALSE=
15750fi
15751
15752else
15753   if false; then
15754  HAVE_AVAHI_COMMON_TRUE=
15755  HAVE_AVAHI_COMMON_FALSE='#'
15756else
15757  HAVE_AVAHI_COMMON_TRUE='#'
15758  HAVE_AVAHI_COMMON_FALSE=
15759fi
15760
15761fi
15762
15763done
15764
15765
15766
15767
15768for ac_header in unistd.h stdlib.h sys/loadavg.h
15769do :
15770  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15773  cat >>confdefs.h <<_ACEOF
15774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15775_ACEOF
15776
15777fi
15778
15779done
15780
15781for ac_header in sys/param.h sys/resource.h
15782do :
15783  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15784ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15786  cat >>confdefs.h <<_ACEOF
15787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15788_ACEOF
15789
15790fi
15791
15792done
15793
15794
15795# sys/param.h is required for sys/mount.h on OpenBSD
15796for ac_header in sys/mount.h
15797do :
15798  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
15799#ifdef HAVE_SYS_PARAM_H
15800# include <sys/param.h>
15801#endif
15802
15803"
15804if test "x$ac_cv_header_sys_mount_h" = xyes; then :
15805  cat >>confdefs.h <<_ACEOF
15806#define HAVE_SYS_MOUNT_H 1
15807_ACEOF
15808
15809fi
15810
15811done
15812
15813
15814# Required on BSD to get struct sockaddr_dl (for retrieving MAC addresses from getifaddrs())
15815for ac_header in net/if_dl.h
15816do :
15817  ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
15818if test "x$ac_cv_header_net_if_dl_h" = xyes; then :
15819  cat >>confdefs.h <<_ACEOF
15820#define HAVE_NET_IF_DL_H 1
15821_ACEOF
15822
15823fi
15824
15825done
15826
15827
15828# Required on Solaris to get struct arpreq (for retrieving MAC addresses)
15829for ac_header in net/if_arp.h
15830do :
15831  ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "$ac_includes_default
15832#include <sys/socket.h>
15833
15834"
15835if test "x$ac_cv_header_net_if_arp_h" = xyes; then :
15836  cat >>confdefs.h <<_ACEOF
15837#define HAVE_NET_IF_ARP_H 1
15838_ACEOF
15839
15840fi
15841
15842done
15843
15844
15845for ac_header in utime.h
15846do :
15847  ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
15848if test "x$ac_cv_header_utime_h" = xyes; then :
15849  cat >>confdefs.h <<_ACEOF
15850#define HAVE_UTIME_H 1
15851_ACEOF
15852
15853fi
15854
15855done
15856
15857for ac_header in time.h
15858do :
15859  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
15860if test "x$ac_cv_header_time_h" = xyes; then :
15861  cat >>confdefs.h <<_ACEOF
15862#define HAVE_TIME_H 1
15863_ACEOF
15864
15865fi
15866
15867done
15868
15869for ac_header in sys/time.h
15870do :
15871  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15872if test "x$ac_cv_header_sys_time_h" = xyes; then :
15873  cat >>confdefs.h <<_ACEOF
15874#define HAVE_SYS_TIME_H 1
15875_ACEOF
15876
15877fi
15878
15879done
15880
15881for ac_header in malloc.h sys/malloc.h
15882do :
15883  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15886  cat >>confdefs.h <<_ACEOF
15887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15888_ACEOF
15889
15890fi
15891
15892done
15893
15894for ac_header in vfs.h
15895do :
15896  ac_fn_c_check_header_mongrel "$LINENO" "vfs.h" "ac_cv_header_vfs_h" "$ac_includes_default"
15897if test "x$ac_cv_header_vfs_h" = xyes; then :
15898  cat >>confdefs.h <<_ACEOF
15899#define HAVE_VFS_H 1
15900_ACEOF
15901
15902fi
15903
15904done
15905
15906for ac_header in sys/vfs.h
15907do :
15908  ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
15909if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
15910  cat >>confdefs.h <<_ACEOF
15911#define HAVE_SYS_VFS_H 1
15912_ACEOF
15913
15914fi
15915
15916done
15917
15918for ac_header in sys/sockio.h
15919do :
15920  ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
15921if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
15922  cat >>confdefs.h <<_ACEOF
15923#define HAVE_SYS_SOCKIO_H 1
15924_ACEOF
15925
15926fi
15927
15928done
15929
15930for ac_header in sys/statvfs.h
15931do :
15932  ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
15933if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
15934  cat >>confdefs.h <<_ACEOF
15935#define HAVE_SYS_STATVFS_H 1
15936_ACEOF
15937
15938fi
15939
15940done
15941
15942for ac_header in sys/statfs.h
15943do :
15944  ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
15945if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
15946  cat >>confdefs.h <<_ACEOF
15947#define HAVE_SYS_STATFS_H 1
15948_ACEOF
15949
15950fi
15951
15952done
15953
15954for ac_header in fcntl.h
15955do :
15956  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15957if test "x$ac_cv_header_fcntl_h" = xyes; then :
15958  cat >>confdefs.h <<_ACEOF
15959#define HAVE_FCNTL_H 1
15960_ACEOF
15961
15962fi
15963
15964done
15965
15966for ac_header in sys/filesys.h
15967do :
15968  ac_fn_c_check_header_mongrel "$LINENO" "sys/filesys.h" "ac_cv_header_sys_filesys_h" "$ac_includes_default"
15969if test "x$ac_cv_header_sys_filesys_h" = xyes; then :
15970  cat >>confdefs.h <<_ACEOF
15971#define HAVE_SYS_FILESYS_H 1
15972_ACEOF
15973
15974fi
15975
15976done
15977
15978for ac_header in dustat.h
15979do :
15980  ac_fn_c_check_header_mongrel "$LINENO" "dustat.h" "ac_cv_header_dustat_h" "$ac_includes_default"
15981if test "x$ac_cv_header_dustat_h" = xyes; then :
15982  cat >>confdefs.h <<_ACEOF
15983#define HAVE_DUSTAT_H 1
15984_ACEOF
15985
15986fi
15987
15988done
15989
15990for ac_header in sys/systeminfo.h
15991do :
15992  ac_fn_c_check_header_mongrel "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default"
15993if test "x$ac_cv_header_sys_systeminfo_h" = xyes; then :
15994  cat >>confdefs.h <<_ACEOF
15995#define HAVE_SYS_SYSTEMINFO_H 1
15996_ACEOF
15997
15998fi
15999
16000done
16001
16002for ac_header in ieeefp.h
16003do :
16004  ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
16005if test "x$ac_cv_header_ieeefp_h" = xyes; then :
16006  cat >>confdefs.h <<_ACEOF
16007#define HAVE_IEEEFP_H 1
16008_ACEOF
16009
16010fi
16011
16012done
16013
16014for ac_header in winsock2.h
16015do :
16016  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16017if test "x$ac_cv_header_winsock2_h" = xyes; then :
16018  cat >>confdefs.h <<_ACEOF
16019#define HAVE_WINSOCK2_H 1
16020_ACEOF
16021
16022fi
16023
16024done
16025
16026for ac_header in ws2tcpip.h
16027do :
16028  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16029if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
16030  cat >>confdefs.h <<_ACEOF
16031#define HAVE_WS2TCPIP_H 1
16032_ACEOF
16033
16034fi
16035
16036done
16037
16038for ac_header in zone.h
16039do :
16040  ac_fn_c_check_header_mongrel "$LINENO" "zone.h" "ac_cv_header_zone_h" "$ac_includes_default"
16041if test "x$ac_cv_header_zone_h" = xyes; then :
16042  cat >>confdefs.h <<_ACEOF
16043#define HAVE_ZONE_H 1
16044_ACEOF
16045
16046fi
16047
16048done
16049
16050for ac_header in sys/uio.h
16051do :
16052  ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
16053if test "x$ac_cv_header_sys_uio_h" = xyes; then :
16054  cat >>confdefs.h <<_ACEOF
16055#define HAVE_SYS_UIO_H 1
16056_ACEOF
16057
16058fi
16059
16060done
16061
16062
16063
16064
16065  for ac_header in $ac_header_list
16066do :
16067  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16068ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16069"
16070if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16071  cat >>confdefs.h <<_ACEOF
16072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073_ACEOF
16074
16075fi
16076
16077done
16078
16079
16080
16081 for ac_header in sys/types.h
16082do :
16083  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
16084if test "x$ac_cv_header_sys_types_h" = xyes; then :
16085  cat >>confdefs.h <<_ACEOF
16086#define HAVE_SYS_TYPES_H 1
16087_ACEOF
16088
16089fi
16090
16091done
16092
16093for ac_header in sys/mpctl.h
16094do :
16095  ac_fn_c_check_header_mongrel "$LINENO" "sys/mpctl.h" "ac_cv_header_sys_mpctl_h" "$ac_includes_default"
16096if test "x$ac_cv_header_sys_mpctl_h" = xyes; then :
16097  cat >>confdefs.h <<_ACEOF
16098#define HAVE_SYS_MPCTL_H 1
16099_ACEOF
16100
16101fi
16102
16103done
16104 for ac_header in shadow.h
16105do :
16106  ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
16107if test "x$ac_cv_header_shadow_h" = xyes; then :
16108  cat >>confdefs.h <<_ACEOF
16109#define HAVE_SHADOW_H 1
16110_ACEOF
16111
16112fi
16113
16114done
16115
16116for ac_header in sys/jail.h
16117do :
16118  ac_fn_c_check_header_compile "$LINENO" "sys/jail.h" "ac_cv_header_sys_jail_h" "$ac_includes_default
16119#ifdef HAVE_SYS_PARAM_H
16120# include <sys/param.h>
16121#endif
16122
16123"
16124if test "x$ac_cv_header_sys_jail_h" = xyes; then :
16125  cat >>confdefs.h <<_ACEOF
16126#define HAVE_SYS_JAIL_H 1
16127_ACEOF
16128
16129fi
16130
16131done
16132
16133for ac_header in net/route.h netinet/in.h netinet/ip.h
16134do :
16135  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16136ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16138  cat >>confdefs.h <<_ACEOF
16139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16140_ACEOF
16141
16142fi
16143
16144done
16145
16146
16147
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16149$as_echo_n "checking for ANSI C header files... " >&6; }
16150if ${ac_cv_header_stdc+:} false; then :
16151  $as_echo_n "(cached) " >&6
16152else
16153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h.  */
16155#include <stdlib.h>
16156#include <stdarg.h>
16157#include <string.h>
16158#include <float.h>
16159
16160int
16161main ()
16162{
16163
16164  ;
16165  return 0;
16166}
16167_ACEOF
16168if ac_fn_c_try_compile "$LINENO"; then :
16169  ac_cv_header_stdc=yes
16170else
16171  ac_cv_header_stdc=no
16172fi
16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174
16175if test $ac_cv_header_stdc = yes; then
16176  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h.  */
16179#include <string.h>
16180
16181_ACEOF
16182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16183  $EGREP "memchr" >/dev/null 2>&1; then :
16184
16185else
16186  ac_cv_header_stdc=no
16187fi
16188rm -f conftest*
16189
16190fi
16191
16192if test $ac_cv_header_stdc = yes; then
16193  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h.  */
16196#include <stdlib.h>
16197
16198_ACEOF
16199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16200  $EGREP "free" >/dev/null 2>&1; then :
16201
16202else
16203  ac_cv_header_stdc=no
16204fi
16205rm -f conftest*
16206
16207fi
16208
16209if test $ac_cv_header_stdc = yes; then
16210  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16211  if test "$cross_compiling" = yes; then :
16212  :
16213else
16214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215/* end confdefs.h.  */
16216#include <ctype.h>
16217#include <stdlib.h>
16218#if ((' ' & 0x0FF) == 0x020)
16219# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16220# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16221#else
16222# define ISLOWER(c) \
16223		   (('a' <= (c) && (c) <= 'i') \
16224		     || ('j' <= (c) && (c) <= 'r') \
16225		     || ('s' <= (c) && (c) <= 'z'))
16226# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16227#endif
16228
16229#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16230int
16231main ()
16232{
16233  int i;
16234  for (i = 0; i < 256; i++)
16235    if (XOR (islower (i), ISLOWER (i))
16236	|| toupper (i) != TOUPPER (i))
16237      return 2;
16238  return 0;
16239}
16240_ACEOF
16241if ac_fn_c_try_run "$LINENO"; then :
16242
16243else
16244  ac_cv_header_stdc=no
16245fi
16246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16247  conftest.$ac_objext conftest.beam conftest.$ac_ext
16248fi
16249
16250fi
16251fi
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16253$as_echo "$ac_cv_header_stdc" >&6; }
16254if test $ac_cv_header_stdc = yes; then
16255
16256$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16257
16258fi
16259
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16261$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16262if ${ac_cv_header_time+:} false; then :
16263  $as_echo_n "(cached) " >&6
16264else
16265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h.  */
16267#include <sys/types.h>
16268#include <sys/time.h>
16269#include <time.h>
16270
16271int
16272main ()
16273{
16274if ((struct tm *) 0)
16275return 0;
16276  ;
16277  return 0;
16278}
16279_ACEOF
16280if ac_fn_c_try_compile "$LINENO"; then :
16281  ac_cv_header_time=yes
16282else
16283  ac_cv_header_time=no
16284fi
16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286fi
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16288$as_echo "$ac_cv_header_time" >&6; }
16289if test $ac_cv_header_time = yes; then
16290
16291$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16292
16293fi
16294
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16296$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16297if ${ac_cv_header_sys_wait_h+:} false; then :
16298  $as_echo_n "(cached) " >&6
16299else
16300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301/* end confdefs.h.  */
16302#include <sys/types.h>
16303#include <sys/wait.h>
16304#ifndef WEXITSTATUS
16305# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16306#endif
16307#ifndef WIFEXITED
16308# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16309#endif
16310
16311int
16312main ()
16313{
16314  int s;
16315  wait (&s);
16316  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321if ac_fn_c_try_compile "$LINENO"; then :
16322  ac_cv_header_sys_wait_h=yes
16323else
16324  ac_cv_header_sys_wait_h=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327fi
16328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16329$as_echo "$ac_cv_header_sys_wait_h" >&6; }
16330if test $ac_cv_header_sys_wait_h = yes; then
16331
16332$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16333
16334fi
16335
16336ac_header_dirent=no
16337for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16338  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16340$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16341if eval \${$as_ac_Header+:} false; then :
16342  $as_echo_n "(cached) " >&6
16343else
16344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345/* end confdefs.h.  */
16346#include <sys/types.h>
16347#include <$ac_hdr>
16348
16349int
16350main ()
16351{
16352if ((DIR *) 0)
16353return 0;
16354  ;
16355  return 0;
16356}
16357_ACEOF
16358if ac_fn_c_try_compile "$LINENO"; then :
16359  eval "$as_ac_Header=yes"
16360else
16361  eval "$as_ac_Header=no"
16362fi
16363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364fi
16365eval ac_res=\$$as_ac_Header
16366	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16367$as_echo "$ac_res" >&6; }
16368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16369  cat >>confdefs.h <<_ACEOF
16370#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16371_ACEOF
16372
16373ac_header_dirent=$ac_hdr; break
16374fi
16375
16376done
16377# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16378if test $ac_header_dirent = dirent.h; then
16379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16380$as_echo_n "checking for library containing opendir... " >&6; }
16381if ${ac_cv_search_opendir+:} false; then :
16382  $as_echo_n "(cached) " >&6
16383else
16384  ac_func_search_save_LIBS=$LIBS
16385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386/* end confdefs.h.  */
16387
16388/* Override any GCC internal prototype to avoid an error.
16389   Use char because int might match the return type of a GCC
16390   builtin and then its argument prototype would still apply.  */
16391#ifdef __cplusplus
16392extern "C"
16393#endif
16394char opendir ();
16395int
16396main ()
16397{
16398return opendir ();
16399  ;
16400  return 0;
16401}
16402_ACEOF
16403for ac_lib in '' dir; do
16404  if test -z "$ac_lib"; then
16405    ac_res="none required"
16406  else
16407    ac_res=-l$ac_lib
16408    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16409  fi
16410  if ac_fn_c_try_link "$LINENO"; then :
16411  ac_cv_search_opendir=$ac_res
16412fi
16413rm -f core conftest.err conftest.$ac_objext \
16414    conftest$ac_exeext
16415  if ${ac_cv_search_opendir+:} false; then :
16416  break
16417fi
16418done
16419if ${ac_cv_search_opendir+:} false; then :
16420
16421else
16422  ac_cv_search_opendir=no
16423fi
16424rm conftest.$ac_ext
16425LIBS=$ac_func_search_save_LIBS
16426fi
16427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16428$as_echo "$ac_cv_search_opendir" >&6; }
16429ac_res=$ac_cv_search_opendir
16430if test "$ac_res" != no; then :
16431  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16432
16433fi
16434
16435else
16436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16437$as_echo_n "checking for library containing opendir... " >&6; }
16438if ${ac_cv_search_opendir+:} false; then :
16439  $as_echo_n "(cached) " >&6
16440else
16441  ac_func_search_save_LIBS=$LIBS
16442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443/* end confdefs.h.  */
16444
16445/* Override any GCC internal prototype to avoid an error.
16446   Use char because int might match the return type of a GCC
16447   builtin and then its argument prototype would still apply.  */
16448#ifdef __cplusplus
16449extern "C"
16450#endif
16451char opendir ();
16452int
16453main ()
16454{
16455return opendir ();
16456  ;
16457  return 0;
16458}
16459_ACEOF
16460for ac_lib in '' x; do
16461  if test -z "$ac_lib"; then
16462    ac_res="none required"
16463  else
16464    ac_res=-l$ac_lib
16465    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16466  fi
16467  if ac_fn_c_try_link "$LINENO"; then :
16468  ac_cv_search_opendir=$ac_res
16469fi
16470rm -f core conftest.err conftest.$ac_objext \
16471    conftest$ac_exeext
16472  if ${ac_cv_search_opendir+:} false; then :
16473  break
16474fi
16475done
16476if ${ac_cv_search_opendir+:} false; then :
16477
16478else
16479  ac_cv_search_opendir=no
16480fi
16481rm conftest.$ac_ext
16482LIBS=$ac_func_search_save_LIBS
16483fi
16484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16485$as_echo "$ac_cv_search_opendir" >&6; }
16486ac_res=$ac_cv_search_opendir
16487if test "$ac_res" != no; then :
16488  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16489
16490fi
16491
16492fi
16493
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16495$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16496if ${ac_cv_header_stdbool_h+:} false; then :
16497  $as_echo_n "(cached) " >&6
16498else
16499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500/* end confdefs.h.  */
16501
16502             #include <stdbool.h>
16503             #ifndef bool
16504              "error: bool is not defined"
16505             #endif
16506             #ifndef false
16507              "error: false is not defined"
16508             #endif
16509             #if false
16510              "error: false is not 0"
16511             #endif
16512             #ifndef true
16513              "error: true is not defined"
16514             #endif
16515             #if true != 1
16516              "error: true is not 1"
16517             #endif
16518             #ifndef __bool_true_false_are_defined
16519              "error: __bool_true_false_are_defined is not defined"
16520             #endif
16521
16522             struct s { _Bool s: 1; _Bool t; } s;
16523
16524             char a[true == 1 ? 1 : -1];
16525             char b[false == 0 ? 1 : -1];
16526             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16527             char d[(bool) 0.5 == true ? 1 : -1];
16528             /* See body of main program for 'e'.  */
16529             char f[(_Bool) 0.0 == false ? 1 : -1];
16530             char g[true];
16531             char h[sizeof (_Bool)];
16532             char i[sizeof s.t];
16533             enum { j = false, k = true, l = false * true, m = true * 256 };
16534             /* The following fails for
16535                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16536             _Bool n[m];
16537             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16538             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16539             /* Catch a bug in an HP-UX C compiler.  See
16540                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16541                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16542              */
16543             _Bool q = true;
16544             _Bool *pq = &q;
16545
16546int
16547main ()
16548{
16549
16550             bool e = &s;
16551             *pq |= q;
16552             *pq |= ! q;
16553             /* Refer to every declared value, to avoid compiler optimizations.  */
16554             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16555                     + !m + !n + !o + !p + !q + !pq);
16556
16557  ;
16558  return 0;
16559}
16560_ACEOF
16561if ac_fn_c_try_compile "$LINENO"; then :
16562  ac_cv_header_stdbool_h=yes
16563else
16564  ac_cv_header_stdbool_h=no
16565fi
16566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567fi
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16569$as_echo "$ac_cv_header_stdbool_h" >&6; }
16570   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16571if test "x$ac_cv_type__Bool" = xyes; then :
16572
16573cat >>confdefs.h <<_ACEOF
16574#define HAVE__BOOL 1
16575_ACEOF
16576
16577
16578fi
16579
16580
16581if test $ac_cv_header_stdbool_h = yes; then
16582
16583$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16584
16585fi
16586
16587
16588
16589ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16590if test "x$ac_cv_type_mode_t" = xyes; then :
16591
16592else
16593
16594cat >>confdefs.h <<_ACEOF
16595#define mode_t int
16596_ACEOF
16597
16598fi
16599
16600ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16601if test "x$ac_cv_type_size_t" = xyes; then :
16602
16603else
16604
16605cat >>confdefs.h <<_ACEOF
16606#define size_t unsigned int
16607_ACEOF
16608
16609fi
16610
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16612$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16613if ${ac_cv_type_uid_t+:} false; then :
16614  $as_echo_n "(cached) " >&6
16615else
16616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617/* end confdefs.h.  */
16618#include <sys/types.h>
16619
16620_ACEOF
16621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16622  $EGREP "uid_t" >/dev/null 2>&1; then :
16623  ac_cv_type_uid_t=yes
16624else
16625  ac_cv_type_uid_t=no
16626fi
16627rm -f conftest*
16628
16629fi
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16631$as_echo "$ac_cv_type_uid_t" >&6; }
16632if test $ac_cv_type_uid_t = no; then
16633
16634$as_echo "#define uid_t int" >>confdefs.h
16635
16636
16637$as_echo "#define gid_t int" >>confdefs.h
16638
16639fi
16640
16641ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16642if test "x$ac_cv_type_pid_t" = xyes; then :
16643
16644else
16645
16646cat >>confdefs.h <<_ACEOF
16647#define pid_t int
16648_ACEOF
16649
16650fi
16651
16652ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16653#ifdef HAVE_TIME_H
16654# include <time.h>
16655#endif
16656
16657"
16658if test "x$ac_cv_type_clockid_t" = xyes; then :
16659
16660cat >>confdefs.h <<_ACEOF
16661#define HAVE_CLOCKID_T 1
16662_ACEOF
16663
16664
16665fi
16666
16667
16668ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16669#ifdef HAVE_SYS_TYPES_H
16670# include <sys/types.h>
16671#endif
16672
16673#include <sys/socket.h>
16674
16675"
16676if test "x$ac_cv_type_socklen_t" = xyes; then :
16677
16678cat >>confdefs.h <<_ACEOF
16679#define HAVE_SOCKLEN_T 1
16680_ACEOF
16681
16682
16683fi
16684
16685
16686
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16688$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16689if ${ac_cv_c_const+:} false; then :
16690  $as_echo_n "(cached) " >&6
16691else
16692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693/* end confdefs.h.  */
16694
16695int
16696main ()
16697{
16698
16699#ifndef __cplusplus
16700  /* Ultrix mips cc rejects this sort of thing.  */
16701  typedef int charset[2];
16702  const charset cs = { 0, 0 };
16703  /* SunOS 4.1.1 cc rejects this.  */
16704  char const *const *pcpcc;
16705  char **ppc;
16706  /* NEC SVR4.0.2 mips cc rejects this.  */
16707  struct point {int x, y;};
16708  static struct point const zero = {0,0};
16709  /* AIX XL C 1.02.0.0 rejects this.
16710     It does not let you subtract one const X* pointer from another in
16711     an arm of an if-expression whose if-part is not a constant
16712     expression */
16713  const char *g = "string";
16714  pcpcc = &g + (g ? g-g : 0);
16715  /* HPUX 7.0 cc rejects these. */
16716  ++pcpcc;
16717  ppc = (char**) pcpcc;
16718  pcpcc = (char const *const *) ppc;
16719  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16720    char tx;
16721    char *t = &tx;
16722    char const *s = 0 ? (char *) 0 : (char const *) 0;
16723
16724    *t++ = 0;
16725    if (s) return 0;
16726  }
16727  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16728    int x[] = {25, 17};
16729    const int *foo = &x[0];
16730    ++foo;
16731  }
16732  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16733    typedef const int *iptr;
16734    iptr p = 0;
16735    ++p;
16736  }
16737  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16738       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16739    struct s { int j; const int *ap[3]; } bx;
16740    struct s *b = &bx; b->j = 5;
16741  }
16742  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16743    const int foo = 10;
16744    if (!foo) return 0;
16745  }
16746  return !cs[0] && !zero.x;
16747#endif
16748
16749  ;
16750  return 0;
16751}
16752_ACEOF
16753if ac_fn_c_try_compile "$LINENO"; then :
16754  ac_cv_c_const=yes
16755else
16756  ac_cv_c_const=no
16757fi
16758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759fi
16760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16761$as_echo "$ac_cv_c_const" >&6; }
16762if test $ac_cv_c_const = no; then
16763
16764$as_echo "#define const /**/" >>confdefs.h
16765
16766fi
16767
16768
16769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16770$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16771if ${ac_cv_sys_largefile_source+:} false; then :
16772  $as_echo_n "(cached) " >&6
16773else
16774  while :; do
16775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776/* end confdefs.h.  */
16777#include <sys/types.h> /* for off_t */
16778     #include <stdio.h>
16779int
16780main ()
16781{
16782int (*fp) (FILE *, off_t, int) = fseeko;
16783     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16784  ;
16785  return 0;
16786}
16787_ACEOF
16788if ac_fn_c_try_link "$LINENO"; then :
16789  ac_cv_sys_largefile_source=no; break
16790fi
16791rm -f core conftest.err conftest.$ac_objext \
16792    conftest$ac_exeext conftest.$ac_ext
16793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h.  */
16795#define _LARGEFILE_SOURCE 1
16796#include <sys/types.h> /* for off_t */
16797     #include <stdio.h>
16798int
16799main ()
16800{
16801int (*fp) (FILE *, off_t, int) = fseeko;
16802     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16803  ;
16804  return 0;
16805}
16806_ACEOF
16807if ac_fn_c_try_link "$LINENO"; then :
16808  ac_cv_sys_largefile_source=1; break
16809fi
16810rm -f core conftest.err conftest.$ac_objext \
16811    conftest$ac_exeext conftest.$ac_ext
16812  ac_cv_sys_largefile_source=unknown
16813  break
16814done
16815fi
16816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16817$as_echo "$ac_cv_sys_largefile_source" >&6; }
16818case $ac_cv_sys_largefile_source in #(
16819  no | unknown) ;;
16820  *)
16821cat >>confdefs.h <<_ACEOF
16822#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16823_ACEOF
16824;;
16825esac
16826rm -rf conftest*
16827
16828# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16829# in glibc 2.1.3, but that breaks too many other things.
16830# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16831if test $ac_cv_sys_largefile_source != unknown; then
16832
16833$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16834
16835fi
16836
16837# Check whether --enable-largefile was given.
16838if test "${enable_largefile+set}" = set; then :
16839  enableval=$enable_largefile;
16840fi
16841
16842if test "$enable_largefile" != no; then
16843
16844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16845$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16846if ${ac_cv_sys_largefile_CC+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  ac_cv_sys_largefile_CC=no
16850     if test "$GCC" != yes; then
16851       ac_save_CC=$CC
16852       while :; do
16853	 # IRIX 6.2 and later do not support large files by default,
16854	 # so use the C compiler's -n32 option if that helps.
16855	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857#include <sys/types.h>
16858 /* Check that off_t can represent 2**63 - 1 correctly.
16859    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16860    since some C++ compilers masquerading as C compilers
16861    incorrectly reject 9223372036854775807.  */
16862#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16863  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16864		       && LARGE_OFF_T % 2147483647 == 1)
16865		      ? 1 : -1];
16866int
16867main ()
16868{
16869
16870  ;
16871  return 0;
16872}
16873_ACEOF
16874	 if ac_fn_c_try_compile "$LINENO"; then :
16875  break
16876fi
16877rm -f core conftest.err conftest.$ac_objext
16878	 CC="$CC -n32"
16879	 if ac_fn_c_try_compile "$LINENO"; then :
16880  ac_cv_sys_largefile_CC=' -n32'; break
16881fi
16882rm -f core conftest.err conftest.$ac_objext
16883	 break
16884       done
16885       CC=$ac_save_CC
16886       rm -f conftest.$ac_ext
16887    fi
16888fi
16889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16890$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16891  if test "$ac_cv_sys_largefile_CC" != no; then
16892    CC=$CC$ac_cv_sys_largefile_CC
16893  fi
16894
16895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16896$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16897if ${ac_cv_sys_file_offset_bits+:} false; then :
16898  $as_echo_n "(cached) " >&6
16899else
16900  while :; do
16901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h.  */
16903#include <sys/types.h>
16904 /* Check that off_t can represent 2**63 - 1 correctly.
16905    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16906    since some C++ compilers masquerading as C compilers
16907    incorrectly reject 9223372036854775807.  */
16908#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16909  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16910		       && LARGE_OFF_T % 2147483647 == 1)
16911		      ? 1 : -1];
16912int
16913main ()
16914{
16915
16916  ;
16917  return 0;
16918}
16919_ACEOF
16920if ac_fn_c_try_compile "$LINENO"; then :
16921  ac_cv_sys_file_offset_bits=no; break
16922fi
16923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h.  */
16926#define _FILE_OFFSET_BITS 64
16927#include <sys/types.h>
16928 /* Check that off_t can represent 2**63 - 1 correctly.
16929    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16930    since some C++ compilers masquerading as C compilers
16931    incorrectly reject 9223372036854775807.  */
16932#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16933  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16934		       && LARGE_OFF_T % 2147483647 == 1)
16935		      ? 1 : -1];
16936int
16937main ()
16938{
16939
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_compile "$LINENO"; then :
16945  ac_cv_sys_file_offset_bits=64; break
16946fi
16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948  ac_cv_sys_file_offset_bits=unknown
16949  break
16950done
16951fi
16952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16953$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16954case $ac_cv_sys_file_offset_bits in #(
16955  no | unknown) ;;
16956  *)
16957cat >>confdefs.h <<_ACEOF
16958#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16959_ACEOF
16960;;
16961esac
16962rm -rf conftest*
16963  if test $ac_cv_sys_file_offset_bits = unknown; then
16964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16965$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16966if ${ac_cv_sys_large_files+:} false; then :
16967  $as_echo_n "(cached) " >&6
16968else
16969  while :; do
16970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h.  */
16972#include <sys/types.h>
16973 /* Check that off_t can represent 2**63 - 1 correctly.
16974    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16975    since some C++ compilers masquerading as C compilers
16976    incorrectly reject 9223372036854775807.  */
16977#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16978  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16979		       && LARGE_OFF_T % 2147483647 == 1)
16980		      ? 1 : -1];
16981int
16982main ()
16983{
16984
16985  ;
16986  return 0;
16987}
16988_ACEOF
16989if ac_fn_c_try_compile "$LINENO"; then :
16990  ac_cv_sys_large_files=no; break
16991fi
16992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h.  */
16995#define _LARGE_FILES 1
16996#include <sys/types.h>
16997 /* Check that off_t can represent 2**63 - 1 correctly.
16998    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16999    since some C++ compilers masquerading as C compilers
17000    incorrectly reject 9223372036854775807.  */
17001#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17002  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17003		       && LARGE_OFF_T % 2147483647 == 1)
17004		      ? 1 : -1];
17005int
17006main ()
17007{
17008
17009  ;
17010  return 0;
17011}
17012_ACEOF
17013if ac_fn_c_try_compile "$LINENO"; then :
17014  ac_cv_sys_large_files=1; break
17015fi
17016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017  ac_cv_sys_large_files=unknown
17018  break
17019done
17020fi
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17022$as_echo "$ac_cv_sys_large_files" >&6; }
17023case $ac_cv_sys_large_files in #(
17024  no | unknown) ;;
17025  *)
17026cat >>confdefs.h <<_ACEOF
17027#define _LARGE_FILES $ac_cv_sys_large_files
17028_ACEOF
17029;;
17030esac
17031rm -rf conftest*
17032  fi
17033
17034
17035fi
17036
17037ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17038if test "x$ac_cv_type_off_t" = xyes; then :
17039
17040else
17041
17042cat >>confdefs.h <<_ACEOF
17043#define off_t long int
17044_ACEOF
17045
17046fi
17047
17048
17049#
17050# AC_SYS_LARGEFILE correctly figures out necessary macros for large files, but
17051# on AIX there is a gotcha:
17052#
17053# Code generated by flex #includes <stdio.h> at the beginning of the file, which
17054# picks up 32-bit wide off_t. Then it #includes <config.h> which provides LFS
17055# macros, and finally it includes another system header, now with 64-bit wide
17056# off_t, which causes a conflict.
17057#
17058if test "x$ac_cv_sys_large_files" = x1; then
17059  CPPFLAGS="-D_LARGE_FILES=1 $CPPFLAGS"
17060fi
17061
17062
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
17064$as_echo_n "checking for sqrt in -lm... " >&6; }
17065if ${ac_cv_lib_m_sqrt+:} false; then :
17066  $as_echo_n "(cached) " >&6
17067else
17068  ac_check_lib_save_LIBS=$LIBS
17069LIBS="-lm  $LIBS"
17070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072
17073/* Override any GCC internal prototype to avoid an error.
17074   Use char because int might match the return type of a GCC
17075   builtin and then its argument prototype would still apply.  */
17076#ifdef __cplusplus
17077extern "C"
17078#endif
17079char sqrt ();
17080int
17081main ()
17082{
17083return sqrt ();
17084  ;
17085  return 0;
17086}
17087_ACEOF
17088if ac_fn_c_try_link "$LINENO"; then :
17089  ac_cv_lib_m_sqrt=yes
17090else
17091  ac_cv_lib_m_sqrt=no
17092fi
17093rm -f core conftest.err conftest.$ac_objext \
17094    conftest$ac_exeext conftest.$ac_ext
17095LIBS=$ac_check_lib_save_LIBS
17096fi
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
17098$as_echo "$ac_cv_lib_m_sqrt" >&6; }
17099if test "x$ac_cv_lib_m_sqrt" = xyes; then :
17100  cat >>confdefs.h <<_ACEOF
17101#define HAVE_LIBM 1
17102_ACEOF
17103
17104  LIBS="-lm $LIBS"
17105
17106fi
17107
17108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17109$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17110if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17111  $as_echo_n "(cached) " >&6
17112else
17113  ac_check_lib_save_LIBS=$LIBS
17114LIBS="-lrt  $LIBS"
17115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116/* end confdefs.h.  */
17117
17118/* Override any GCC internal prototype to avoid an error.
17119   Use char because int might match the return type of a GCC
17120   builtin and then its argument prototype would still apply.  */
17121#ifdef __cplusplus
17122extern "C"
17123#endif
17124char clock_gettime ();
17125int
17126main ()
17127{
17128return clock_gettime ();
17129  ;
17130  return 0;
17131}
17132_ACEOF
17133if ac_fn_c_try_link "$LINENO"; then :
17134  ac_cv_lib_rt_clock_gettime=yes
17135else
17136  ac_cv_lib_rt_clock_gettime=no
17137fi
17138rm -f core conftest.err conftest.$ac_objext \
17139    conftest$ac_exeext conftest.$ac_ext
17140LIBS=$ac_check_lib_save_LIBS
17141fi
17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17143$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17144if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17145  cat >>confdefs.h <<_ACEOF
17146#define HAVE_LIBRT 1
17147_ACEOF
17148
17149  LIBS="-lrt $LIBS"
17150
17151fi
17152
17153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17154$as_echo_n "checking for dlopen in -ldl... " >&6; }
17155if ${ac_cv_lib_dl_dlopen+:} false; then :
17156  $as_echo_n "(cached) " >&6
17157else
17158  ac_check_lib_save_LIBS=$LIBS
17159LIBS="-ldl  $LIBS"
17160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161/* end confdefs.h.  */
17162
17163/* Override any GCC internal prototype to avoid an error.
17164   Use char because int might match the return type of a GCC
17165   builtin and then its argument prototype would still apply.  */
17166#ifdef __cplusplus
17167extern "C"
17168#endif
17169char dlopen ();
17170int
17171main ()
17172{
17173return dlopen ();
17174  ;
17175  return 0;
17176}
17177_ACEOF
17178if ac_fn_c_try_link "$LINENO"; then :
17179  ac_cv_lib_dl_dlopen=yes
17180else
17181  ac_cv_lib_dl_dlopen=no
17182fi
17183rm -f core conftest.err conftest.$ac_objext \
17184    conftest$ac_exeext conftest.$ac_ext
17185LIBS=$ac_check_lib_save_LIBS
17186fi
17187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17188$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17189if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17190  cat >>confdefs.h <<_ACEOF
17191#define HAVE_LIBDL 1
17192_ACEOF
17193
17194  LIBS="-ldl $LIBS"
17195
17196fi
17197
17198
17199
17200ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#include <time.h>
17201"
17202if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17203  ac_have_decl=1
17204else
17205  ac_have_decl=0
17206fi
17207
17208cat >>confdefs.h <<_ACEOF
17209#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17210_ACEOF
17211
17212ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17213if test "x$ac_cv_func_clock_gettime" = xyes; then :
17214  $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17215
17216else
17217  case " $LIBOBJS " in
17218  *" clock_gettime.$ac_objext "* ) ;;
17219  *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17220 ;;
17221esac
17222
17223fi
17224
17225
17226
17227ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
17228if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
17229  ac_have_decl=1
17230else
17231  ac_have_decl=0
17232fi
17233
17234cat >>confdefs.h <<_ACEOF
17235#define HAVE_DECL_UNSETENV $ac_have_decl
17236_ACEOF
17237
17238ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
17239if test "x$ac_cv_func_unsetenv" = xyes; then :
17240  $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
17241
17242else
17243  case " $LIBOBJS " in
17244  *" unsetenv.$ac_objext "* ) ;;
17245  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
17246 ;;
17247esac
17248
17249fi
17250
17251
17252
17253ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
17254if test "x$ac_cv_have_decl_strnlen" = xyes; then :
17255  ac_have_decl=1
17256else
17257  ac_have_decl=0
17258fi
17259
17260cat >>confdefs.h <<_ACEOF
17261#define HAVE_DECL_STRNLEN $ac_have_decl
17262_ACEOF
17263
17264ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
17265if test "x$ac_cv_func_strnlen" = xyes; then :
17266  $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17267
17268else
17269  case " $LIBOBJS " in
17270  *" strnlen.$ac_objext "* ) ;;
17271  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
17272 ;;
17273esac
17274
17275fi
17276
17277
17278
17279
17280     ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
17281if test "x$ac_cv_have_decl_strndup" = xyes; then :
17282  ac_have_decl=1
17283else
17284  ac_have_decl=0
17285fi
17286
17287cat >>confdefs.h <<_ACEOF
17288#define HAVE_DECL_STRNDUP $ac_have_decl
17289_ACEOF
17290
17291  ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
17292if test "x$ac_cv_func_strndup" = xyes; then :
17293  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17294
17295else
17296  case " $LIBOBJS " in
17297  *" strndup.$ac_objext "* ) ;;
17298  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
17299 ;;
17300esac
17301
17302fi
17303
17304
17305  if test $ac_cv_have_decl_strndup = no; then
17306    HAVE_DECL_STRNDUP=0
17307  fi
17308
17309  if test $ac_cv_func_strndup = yes; then
17310    HAVE_STRNDUP=1
17311    # AIX 5.3 has a function that tries to copy the entire range specified
17312    # by n, instead of just the length of src.
17313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
17314$as_echo_n "checking for working strndup... " >&6; }
17315if ${cf3_cv_func_strndup_works+:} false; then :
17316  $as_echo_n "(cached) " >&6
17317else
17318  if test "$cross_compiling" = yes; then :
17319
17320          case $host_os in
17321            aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";;
17322            *)               cf3_cv_func_strndup_works="guessing yes";;
17323          esac
17324
17325else
17326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327/* end confdefs.h.  */
17328
17329         #include <string.h>
17330                           #include <stdlib.h>
17331int
17332main ()
17333{
17334
17335#if !HAVE_DECL_STRNDUP
17336  extern
17337  #ifdef __cplusplus
17338  "C"
17339  #endif
17340  char *strndup (const char *, size_t);
17341#endif
17342  char *s;
17343  // Will crash if strndup tries to traverse all 2GB.
17344  s = strndup ("string", 2000000000);
17345  return 0;
17346  ;
17347  return 0;
17348}
17349_ACEOF
17350if ac_fn_c_try_run "$LINENO"; then :
17351  cf3_cv_func_strndup_works=yes
17352else
17353  cf3_cv_func_strndup_works=no
17354fi
17355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17356  conftest.$ac_objext conftest.beam conftest.$ac_ext
17357fi
17358
17359fi
17360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf3_cv_func_strndup_works" >&5
17361$as_echo "$cf3_cv_func_strndup_works" >&6; }
17362    case $cf3_cv_func_strndup_works in
17363      *no) case " $LIBOBJS " in
17364  *" strndup.$ac_objext "* ) ;;
17365  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
17366 ;;
17367esac
17368 ;;
17369    esac
17370  else
17371    HAVE_STRNDUP=0
17372  fi
17373
17374
17375ac_fn_c_check_decl "$LINENO" "seteuid" "ac_cv_have_decl_seteuid" "$ac_includes_default"
17376if test "x$ac_cv_have_decl_seteuid" = xyes; then :
17377  ac_have_decl=1
17378else
17379  ac_have_decl=0
17380fi
17381
17382cat >>confdefs.h <<_ACEOF
17383#define HAVE_DECL_SETEUID $ac_have_decl
17384_ACEOF
17385
17386ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17387if test "x$ac_cv_func_seteuid" = xyes; then :
17388  $as_echo "#define HAVE_SETEUID 1" >>confdefs.h
17389
17390else
17391  case " $LIBOBJS " in
17392  *" seteuid.$ac_objext "* ) ;;
17393  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
17394 ;;
17395esac
17396
17397fi
17398
17399
17400
17401ac_fn_c_check_decl "$LINENO" "setlinebuf" "ac_cv_have_decl_setlinebuf" "$ac_includes_default"
17402if test "x$ac_cv_have_decl_setlinebuf" = xyes; then :
17403  ac_have_decl=1
17404else
17405  ac_have_decl=0
17406fi
17407
17408cat >>confdefs.h <<_ACEOF
17409#define HAVE_DECL_SETLINEBUF $ac_have_decl
17410_ACEOF
17411
17412ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
17413if test "x$ac_cv_func_setlinebuf" = xyes; then :
17414  $as_echo "#define HAVE_SETLINEBUF 1" >>confdefs.h
17415
17416else
17417  case " $LIBOBJS " in
17418  *" setlinebuf.$ac_objext "* ) ;;
17419  *) LIBOBJS="$LIBOBJS setlinebuf.$ac_objext"
17420 ;;
17421esac
17422
17423fi
17424
17425
17426
17427ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17428if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17429  ac_have_decl=1
17430else
17431  ac_have_decl=0
17432fi
17433
17434cat >>confdefs.h <<_ACEOF
17435#define HAVE_DECL_STRLCAT $ac_have_decl
17436_ACEOF
17437
17438ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17439if test "x$ac_cv_func_strlcat" = xyes; then :
17440  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17441
17442else
17443  case " $LIBOBJS " in
17444  *" strlcat.$ac_objext "* ) ;;
17445  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17446 ;;
17447esac
17448
17449fi
17450
17451
17452
17453ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17454if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17455  ac_have_decl=1
17456else
17457  ac_have_decl=0
17458fi
17459
17460cat >>confdefs.h <<_ACEOF
17461#define HAVE_DECL_STRLCPY $ac_have_decl
17462_ACEOF
17463
17464ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17465if test "x$ac_cv_func_strlcpy" = xyes; then :
17466  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17467
17468else
17469  case " $LIBOBJS " in
17470  *" strlcpy.$ac_objext "* ) ;;
17471  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17472 ;;
17473esac
17474
17475fi
17476
17477
17478
17479ac_fn_c_check_decl "$LINENO" "realpath" "ac_cv_have_decl_realpath" "$ac_includes_default"
17480if test "x$ac_cv_have_decl_realpath" = xyes; then :
17481  ac_have_decl=1
17482else
17483  ac_have_decl=0
17484fi
17485
17486cat >>confdefs.h <<_ACEOF
17487#define HAVE_DECL_REALPATH $ac_have_decl
17488_ACEOF
17489
17490
17491ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17492if test "x$ac_cv_have_decl_strdup" = xyes; then :
17493  ac_have_decl=1
17494else
17495  ac_have_decl=0
17496fi
17497
17498cat >>confdefs.h <<_ACEOF
17499#define HAVE_DECL_STRDUP $ac_have_decl
17500_ACEOF
17501
17502ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17503if test "x$ac_cv_func_strdup" = xyes; then :
17504  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17505
17506else
17507  case " $LIBOBJS " in
17508  *" strdup.$ac_objext "* ) ;;
17509  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17510 ;;
17511esac
17512
17513fi
17514
17515
17516
17517ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
17518if test "x$ac_cv_have_decl_memrchr" = xyes; then :
17519  ac_have_decl=1
17520else
17521  ac_have_decl=0
17522fi
17523
17524cat >>confdefs.h <<_ACEOF
17525#define HAVE_DECL_MEMRCHR $ac_have_decl
17526_ACEOF
17527
17528ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17529if test "x$ac_cv_func_memrchr" = xyes; then :
17530  $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17531
17532else
17533  case " $LIBOBJS " in
17534  *" memrchr.$ac_objext "* ) ;;
17535  *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17536 ;;
17537esac
17538
17539fi
17540
17541
17542
17543ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
17544"
17545if test "x$ac_cv_have_decl_round" = xyes; then :
17546  ac_have_decl=1
17547else
17548  ac_have_decl=0
17549fi
17550
17551cat >>confdefs.h <<_ACEOF
17552#define HAVE_DECL_ROUND $ac_have_decl
17553_ACEOF
17554
17555ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
17556if test "x$ac_cv_func_round" = xyes; then :
17557  $as_echo "#define HAVE_ROUND 1" >>confdefs.h
17558
17559else
17560  case " $LIBOBJS " in
17561  *" round.$ac_objext "* ) ;;
17562  *) LIBOBJS="$LIBOBJS round.$ac_objext"
17563 ;;
17564esac
17565
17566fi
17567
17568
17569
17570ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "$ac_includes_default"
17571if test "x$ac_cv_have_decl_nanosleep" = xyes; then :
17572  ac_have_decl=1
17573else
17574  ac_have_decl=0
17575fi
17576
17577cat >>confdefs.h <<_ACEOF
17578#define HAVE_DECL_NANOSLEEP $ac_have_decl
17579_ACEOF
17580
17581ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17582if test "x$ac_cv_func_nanosleep" = xyes; then :
17583  $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
17584
17585else
17586  case " $LIBOBJS " in
17587  *" nanosleep.$ac_objext "* ) ;;
17588  *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17589 ;;
17590esac
17591
17592fi
17593
17594
17595
17596ac_fn_c_check_decl "$LINENO" "memdup" "ac_cv_have_decl_memdup" "$ac_includes_default"
17597if test "x$ac_cv_have_decl_memdup" = xyes; then :
17598  ac_have_decl=1
17599else
17600  ac_have_decl=0
17601fi
17602
17603cat >>confdefs.h <<_ACEOF
17604#define HAVE_DECL_MEMDUP $ac_have_decl
17605_ACEOF
17606
17607ac_fn_c_check_func "$LINENO" "memdup" "ac_cv_func_memdup"
17608if test "x$ac_cv_func_memdup" = xyes; then :
17609  $as_echo "#define HAVE_MEMDUP 1" >>confdefs.h
17610
17611else
17612  case " $LIBOBJS " in
17613  *" memdup.$ac_objext "* ) ;;
17614  *) LIBOBJS="$LIBOBJS memdup.$ac_objext"
17615 ;;
17616esac
17617
17618fi
17619
17620
17621
17622ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17623if test "x$ac_cv_have_decl_memmem" = xyes; then :
17624  ac_have_decl=1
17625else
17626  ac_have_decl=0
17627fi
17628
17629cat >>confdefs.h <<_ACEOF
17630#define HAVE_DECL_MEMMEM $ac_have_decl
17631_ACEOF
17632
17633ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
17634if test "x$ac_cv_func_memmem" = xyes; then :
17635  $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
17636
17637else
17638  case " $LIBOBJS " in
17639  *" memmem.$ac_objext "* ) ;;
17640  *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
17641 ;;
17642esac
17643
17644fi
17645
17646
17647
17648ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
17649if test "x$ac_cv_have_decl_srand48" = xyes; then :
17650  ac_have_decl=1
17651else
17652  ac_have_decl=0
17653fi
17654
17655cat >>confdefs.h <<_ACEOF
17656#define HAVE_DECL_SRAND48 $ac_have_decl
17657_ACEOF
17658
17659ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
17660if test "x$ac_cv_func_srand48" = xyes; then :
17661  $as_echo "#define HAVE_SRAND48 1" >>confdefs.h
17662
17663else
17664  case " $LIBOBJS " in
17665  *" srand48.$ac_objext "* ) ;;
17666  *) LIBOBJS="$LIBOBJS srand48.$ac_objext"
17667 ;;
17668esac
17669
17670fi
17671
17672
17673
17674ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
17675if test "x$ac_cv_have_decl_drand48" = xyes; then :
17676  ac_have_decl=1
17677else
17678  ac_have_decl=0
17679fi
17680
17681cat >>confdefs.h <<_ACEOF
17682#define HAVE_DECL_DRAND48 $ac_have_decl
17683_ACEOF
17684
17685ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48"
17686if test "x$ac_cv_func_drand48" = xyes; then :
17687  $as_echo "#define HAVE_DRAND48 1" >>confdefs.h
17688
17689else
17690  case " $LIBOBJS " in
17691  *" drand48.$ac_objext "* ) ;;
17692  *) LIBOBJS="$LIBOBJS drand48.$ac_objext"
17693 ;;
17694esac
17695
17696fi
17697
17698
17699
17700ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
17701if test "x$ac_cv_have_decl_strerror" = xyes; then :
17702  ac_have_decl=1
17703else
17704  ac_have_decl=0
17705fi
17706
17707cat >>confdefs.h <<_ACEOF
17708#define HAVE_DECL_STRERROR $ac_have_decl
17709_ACEOF
17710
17711ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17712if test "x$ac_cv_func_strerror" = xyes; then :
17713  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
17714
17715else
17716  case " $LIBOBJS " in
17717  *" strerror.$ac_objext "* ) ;;
17718  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
17719 ;;
17720esac
17721
17722fi
17723
17724
17725
17726ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
17727if test "x$ac_cv_have_decl_strstr" = xyes; then :
17728  ac_have_decl=1
17729else
17730  ac_have_decl=0
17731fi
17732
17733cat >>confdefs.h <<_ACEOF
17734#define HAVE_DECL_STRSTR $ac_have_decl
17735_ACEOF
17736
17737ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
17738if test "x$ac_cv_func_strstr" = xyes; then :
17739  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
17740
17741else
17742  case " $LIBOBJS " in
17743  *" strstr.$ac_objext "* ) ;;
17744  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
17745 ;;
17746esac
17747
17748fi
17749
17750
17751
17752ac_fn_c_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "$ac_includes_default"
17753if test "x$ac_cv_have_decl_strcasestr" = xyes; then :
17754  ac_have_decl=1
17755else
17756  ac_have_decl=0
17757fi
17758
17759cat >>confdefs.h <<_ACEOF
17760#define HAVE_DECL_STRCASESTR $ac_have_decl
17761_ACEOF
17762
17763ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
17764if test "x$ac_cv_func_strcasestr" = xyes; then :
17765  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
17766
17767else
17768  case " $LIBOBJS " in
17769  *" strcasestr.$ac_objext "* ) ;;
17770  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
17771 ;;
17772esac
17773
17774fi
17775
17776
17777
17778ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
17779if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
17780  ac_have_decl=1
17781else
17782  ac_have_decl=0
17783fi
17784
17785cat >>confdefs.h <<_ACEOF
17786#define HAVE_DECL_STRCASECMP $ac_have_decl
17787_ACEOF
17788
17789ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17790if test "x$ac_cv_func_strcasecmp" = xyes; then :
17791  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17792
17793else
17794  case " $LIBOBJS " in
17795  *" strcasecmp.$ac_objext "* ) ;;
17796  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17797 ;;
17798esac
17799
17800fi
17801
17802
17803
17804ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
17805if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
17806  ac_have_decl=1
17807else
17808  ac_have_decl=0
17809fi
17810
17811cat >>confdefs.h <<_ACEOF
17812#define HAVE_DECL_STRNCASECMP $ac_have_decl
17813_ACEOF
17814
17815ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
17816if test "x$ac_cv_func_strncasecmp" = xyes; then :
17817  $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
17818
17819else
17820  case " $LIBOBJS " in
17821  *" strncasecmp.$ac_objext "* ) ;;
17822  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
17823 ;;
17824esac
17825
17826fi
17827
17828
17829
17830ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
17831if test "x$ac_cv_have_decl_strsep" = xyes; then :
17832  ac_have_decl=1
17833else
17834  ac_have_decl=0
17835fi
17836
17837cat >>confdefs.h <<_ACEOF
17838#define HAVE_DECL_STRSEP $ac_have_decl
17839_ACEOF
17840
17841ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
17842if test "x$ac_cv_func_strsep" = xyes; then :
17843  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
17844
17845else
17846  case " $LIBOBJS " in
17847  *" strsep.$ac_objext "* ) ;;
17848  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
17849 ;;
17850esac
17851
17852fi
17853
17854
17855
17856ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
17857if test "x$ac_cv_have_decl_strsignal" = xyes; then :
17858  ac_have_decl=1
17859else
17860  ac_have_decl=0
17861fi
17862
17863cat >>confdefs.h <<_ACEOF
17864#define HAVE_DECL_STRSIGNAL $ac_have_decl
17865_ACEOF
17866
17867ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17868if test "x$ac_cv_func_strsignal" = xyes; then :
17869  $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
17870
17871else
17872  case " $LIBOBJS " in
17873  *" strsignal.$ac_objext "* ) ;;
17874  *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17875 ;;
17876esac
17877
17878fi
17879
17880
17881
17882ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include <time.h>
17883"
17884if test "x$ac_cv_have_decl_gmtime_r" = xyes; then :
17885  ac_have_decl=1
17886else
17887  ac_have_decl=0
17888fi
17889
17890cat >>confdefs.h <<_ACEOF
17891#define HAVE_DECL_GMTIME_R $ac_have_decl
17892_ACEOF
17893
17894ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17895if test "x$ac_cv_func_gmtime_r" = xyes; then :
17896  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17897
17898else
17899  case " $LIBOBJS " in
17900  *" gmtime_r.$ac_objext "* ) ;;
17901  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17902 ;;
17903esac
17904
17905fi
17906
17907
17908
17909ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "#define _GNU_SOURCE 1
17910$ac_includes_default
17911"
17912if test "x$ac_cv_have_decl_getline" = xyes; then :
17913  ac_have_decl=1
17914else
17915  ac_have_decl=0
17916fi
17917
17918cat >>confdefs.h <<_ACEOF
17919#define HAVE_DECL_GETLINE $ac_have_decl
17920_ACEOF
17921
17922ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17923if test "x$ac_cv_func_getline" = xyes; then :
17924  $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
17925
17926else
17927  case " $LIBOBJS " in
17928  *" getline.$ac_objext "* ) ;;
17929  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
17930 ;;
17931esac
17932
17933fi
17934
17935
17936
17937ac_fn_c_check_decl "$LINENO" "strchrnul" "ac_cv_have_decl_strchrnul" "#define _GNU_SOURCE 1
17938$ac_includes_default
17939"
17940if test "x$ac_cv_have_decl_strchrnul" = xyes; then :
17941  ac_have_decl=1
17942else
17943  ac_have_decl=0
17944fi
17945
17946cat >>confdefs.h <<_ACEOF
17947#define HAVE_DECL_STRCHRNUL $ac_have_decl
17948_ACEOF
17949
17950ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17951if test "x$ac_cv_func_strchrnul" = xyes; then :
17952  $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
17953
17954else
17955  case " $LIBOBJS " in
17956  *" strchrnul.$ac_objext "* ) ;;
17957  *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
17958 ;;
17959esac
17960
17961fi
17962
17963
17964
17965ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
17966"
17967if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
17968  ac_have_decl=1
17969else
17970  ac_have_decl=0
17971fi
17972
17973cat >>confdefs.h <<_ACEOF
17974#define HAVE_DECL_LOCALTIME_R $ac_have_decl
17975_ACEOF
17976
17977ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17978if test "x$ac_cv_func_localtime_r" = xyes; then :
17979  $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17980
17981else
17982  case " $LIBOBJS " in
17983  *" localtime_r.$ac_objext "* ) ;;
17984  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17985 ;;
17986esac
17987
17988fi
17989
17990
17991
17992ac_fn_c_check_decl "$LINENO" "fgetgrent" "ac_cv_have_decl_fgetgrent" "#include <grp.h>
17993"
17994if test "x$ac_cv_have_decl_fgetgrent" = xyes; then :
17995  ac_have_decl=1
17996else
17997  ac_have_decl=0
17998fi
17999
18000cat >>confdefs.h <<_ACEOF
18001#define HAVE_DECL_FGETGRENT $ac_have_decl
18002_ACEOF
18003
18004
18005ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
18006"
18007if test "x$ac_cv_have_decl_isfinite" = xyes; then :
18008  ac_have_decl=1
18009else
18010  ac_have_decl=0
18011fi
18012
18013cat >>confdefs.h <<_ACEOF
18014#define HAVE_DECL_ISFINITE $ac_have_decl
18015_ACEOF
18016
18017
18018for ac_func in getpwent setpwent endpwent
18019do :
18020  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18022if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18023  cat >>confdefs.h <<_ACEOF
18024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18025_ACEOF
18026
18027fi
18028done
18029
18030
18031for ac_func in fgetspent lckpwdf ulckpwdf
18032do :
18033  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18035if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18036  cat >>confdefs.h <<_ACEOF
18037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18038_ACEOF
18039
18040fi
18041done
18042
18043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetspent in -lsec" >&5
18044$as_echo_n "checking for fgetspent in -lsec... " >&6; }
18045if ${ac_cv_lib_sec_fgetspent+:} false; then :
18046  $as_echo_n "(cached) " >&6
18047else
18048  ac_check_lib_save_LIBS=$LIBS
18049LIBS="-lsec  $LIBS"
18050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051/* end confdefs.h.  */
18052
18053/* Override any GCC internal prototype to avoid an error.
18054   Use char because int might match the return type of a GCC
18055   builtin and then its argument prototype would still apply.  */
18056#ifdef __cplusplus
18057extern "C"
18058#endif
18059char fgetspent ();
18060int
18061main ()
18062{
18063return fgetspent ();
18064  ;
18065  return 0;
18066}
18067_ACEOF
18068if ac_fn_c_try_link "$LINENO"; then :
18069  ac_cv_lib_sec_fgetspent=yes
18070else
18071  ac_cv_lib_sec_fgetspent=no
18072fi
18073rm -f core conftest.err conftest.$ac_objext \
18074    conftest$ac_exeext conftest.$ac_ext
18075LIBS=$ac_check_lib_save_LIBS
18076fi
18077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_fgetspent" >&5
18078$as_echo "$ac_cv_lib_sec_fgetspent" >&6; }
18079if test "x$ac_cv_lib_sec_fgetspent" = xyes; then :
18080
18081
18082$as_echo "#define HAVE_LIBSEC 1" >>confdefs.h
18083
18084
18085$as_echo "#define HAVE_FGETSPENT 1" >>confdefs.h
18086
18087    LIBS="-lsec $LIBS"
18088
18089fi
18090
18091
18092ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "$ac_includes_default"
18093if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
18094  ac_have_decl=1
18095else
18096  ac_have_decl=0
18097fi
18098
18099cat >>confdefs.h <<_ACEOF
18100#define HAVE_DECL_GETLOADAVG $ac_have_decl
18101_ACEOF
18102
18103ac_have_func=no # yes means we've found a way to get the load average.
18104
18105# Make sure getloadavg.c is where it belongs, at configure-time.
18106test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18107  as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
18108
18109ac_save_LIBS=$LIBS
18110
18111# Check for getloadavg, but be sure not to touch the cache variable.
18112(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18113if test "x$ac_cv_func_getloadavg" = xyes; then :
18114  exit 0
18115else
18116  exit 1
18117fi
18118) && ac_have_func=yes
18119
18120# On HPUX9, an unprivileged user can get load averages through this function.
18121for ac_func in pstat_getdynamic
18122do :
18123  ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18124if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
18125  cat >>confdefs.h <<_ACEOF
18126#define HAVE_PSTAT_GETDYNAMIC 1
18127_ACEOF
18128
18129fi
18130done
18131
18132
18133# Solaris has libkstat which does not require root.
18134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18135$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18136if ${ac_cv_lib_kstat_kstat_open+:} false; then :
18137  $as_echo_n "(cached) " >&6
18138else
18139  ac_check_lib_save_LIBS=$LIBS
18140LIBS="-lkstat  $LIBS"
18141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142/* end confdefs.h.  */
18143
18144/* Override any GCC internal prototype to avoid an error.
18145   Use char because int might match the return type of a GCC
18146   builtin and then its argument prototype would still apply.  */
18147#ifdef __cplusplus
18148extern "C"
18149#endif
18150char kstat_open ();
18151int
18152main ()
18153{
18154return kstat_open ();
18155  ;
18156  return 0;
18157}
18158_ACEOF
18159if ac_fn_c_try_link "$LINENO"; then :
18160  ac_cv_lib_kstat_kstat_open=yes
18161else
18162  ac_cv_lib_kstat_kstat_open=no
18163fi
18164rm -f core conftest.err conftest.$ac_objext \
18165    conftest$ac_exeext conftest.$ac_ext
18166LIBS=$ac_check_lib_save_LIBS
18167fi
18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18169$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18170if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
18171  cat >>confdefs.h <<_ACEOF
18172#define HAVE_LIBKSTAT 1
18173_ACEOF
18174
18175  LIBS="-lkstat $LIBS"
18176
18177fi
18178
18179test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18180
18181# Some systems with -lutil have (and need) -lkvm as well, some do not.
18182# On Solaris, -lkvm requires nlist from -lelf, so check that first
18183# to get the right answer into the cache.
18184# For kstat on solaris, we need libelf to force the definition of SVR4 below.
18185if test $ac_have_func = no; then
18186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18187$as_echo_n "checking for elf_begin in -lelf... " >&6; }
18188if ${ac_cv_lib_elf_elf_begin+:} false; then :
18189  $as_echo_n "(cached) " >&6
18190else
18191  ac_check_lib_save_LIBS=$LIBS
18192LIBS="-lelf  $LIBS"
18193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h.  */
18195
18196/* Override any GCC internal prototype to avoid an error.
18197   Use char because int might match the return type of a GCC
18198   builtin and then its argument prototype would still apply.  */
18199#ifdef __cplusplus
18200extern "C"
18201#endif
18202char elf_begin ();
18203int
18204main ()
18205{
18206return elf_begin ();
18207  ;
18208  return 0;
18209}
18210_ACEOF
18211if ac_fn_c_try_link "$LINENO"; then :
18212  ac_cv_lib_elf_elf_begin=yes
18213else
18214  ac_cv_lib_elf_elf_begin=no
18215fi
18216rm -f core conftest.err conftest.$ac_objext \
18217    conftest$ac_exeext conftest.$ac_ext
18218LIBS=$ac_check_lib_save_LIBS
18219fi
18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18221$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18222if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
18223  LIBS="-lelf $LIBS"
18224fi
18225
18226fi
18227if test $ac_have_func = no; then
18228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18229$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18230if ${ac_cv_lib_kvm_kvm_open+:} false; then :
18231  $as_echo_n "(cached) " >&6
18232else
18233  ac_check_lib_save_LIBS=$LIBS
18234LIBS="-lkvm  $LIBS"
18235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237
18238/* Override any GCC internal prototype to avoid an error.
18239   Use char because int might match the return type of a GCC
18240   builtin and then its argument prototype would still apply.  */
18241#ifdef __cplusplus
18242extern "C"
18243#endif
18244char kvm_open ();
18245int
18246main ()
18247{
18248return kvm_open ();
18249  ;
18250  return 0;
18251}
18252_ACEOF
18253if ac_fn_c_try_link "$LINENO"; then :
18254  ac_cv_lib_kvm_kvm_open=yes
18255else
18256  ac_cv_lib_kvm_kvm_open=no
18257fi
18258rm -f core conftest.err conftest.$ac_objext \
18259    conftest$ac_exeext conftest.$ac_ext
18260LIBS=$ac_check_lib_save_LIBS
18261fi
18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18263$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18264if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
18265  LIBS="-lkvm $LIBS"
18266fi
18267
18268  # Check for the 4.4BSD definition of getloadavg.
18269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18270$as_echo_n "checking for getloadavg in -lutil... " >&6; }
18271if ${ac_cv_lib_util_getloadavg+:} false; then :
18272  $as_echo_n "(cached) " >&6
18273else
18274  ac_check_lib_save_LIBS=$LIBS
18275LIBS="-lutil  $LIBS"
18276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277/* end confdefs.h.  */
18278
18279/* Override any GCC internal prototype to avoid an error.
18280   Use char because int might match the return type of a GCC
18281   builtin and then its argument prototype would still apply.  */
18282#ifdef __cplusplus
18283extern "C"
18284#endif
18285char getloadavg ();
18286int
18287main ()
18288{
18289return getloadavg ();
18290  ;
18291  return 0;
18292}
18293_ACEOF
18294if ac_fn_c_try_link "$LINENO"; then :
18295  ac_cv_lib_util_getloadavg=yes
18296else
18297  ac_cv_lib_util_getloadavg=no
18298fi
18299rm -f core conftest.err conftest.$ac_objext \
18300    conftest$ac_exeext conftest.$ac_ext
18301LIBS=$ac_check_lib_save_LIBS
18302fi
18303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18304$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18305if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
18306  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18307fi
18308
18309fi
18310
18311if test $ac_have_func = no; then
18312  # There is a commonly available library for RS/6000 AIX.
18313  # Since it is not a standard part of AIX, it might be installed locally.
18314  ac_getloadavg_LIBS=$LIBS
18315  LIBS="-L/usr/local/lib $LIBS"
18316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18317$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18318if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
18319  $as_echo_n "(cached) " >&6
18320else
18321  ac_check_lib_save_LIBS=$LIBS
18322LIBS="-lgetloadavg  $LIBS"
18323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324/* end confdefs.h.  */
18325
18326/* Override any GCC internal prototype to avoid an error.
18327   Use char because int might match the return type of a GCC
18328   builtin and then its argument prototype would still apply.  */
18329#ifdef __cplusplus
18330extern "C"
18331#endif
18332char getloadavg ();
18333int
18334main ()
18335{
18336return getloadavg ();
18337  ;
18338  return 0;
18339}
18340_ACEOF
18341if ac_fn_c_try_link "$LINENO"; then :
18342  ac_cv_lib_getloadavg_getloadavg=yes
18343else
18344  ac_cv_lib_getloadavg_getloadavg=no
18345fi
18346rm -f core conftest.err conftest.$ac_objext \
18347    conftest$ac_exeext conftest.$ac_ext
18348LIBS=$ac_check_lib_save_LIBS
18349fi
18350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18351$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18352if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
18353  LIBS="-lgetloadavg $LIBS"
18354else
18355  LIBS=$ac_getloadavg_LIBS
18356fi
18357
18358fi
18359
18360# Make sure it is really in the library, if we think we found it,
18361# otherwise set up the replacement function.
18362for ac_func in getloadavg
18363do :
18364  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18365if test "x$ac_cv_func_getloadavg" = xyes; then :
18366  cat >>confdefs.h <<_ACEOF
18367#define HAVE_GETLOADAVG 1
18368_ACEOF
18369
18370else
18371  case " $LIBOBJS " in
18372  *" getloadavg.$ac_objext "* ) ;;
18373  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18374 ;;
18375esac
18376
18377
18378$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
18379
18380# Figure out what our getloadavg.c needs.
18381ac_have_func=no
18382ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18383if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
18384  ac_have_func=yes
18385
18386$as_echo "#define DGUX 1" >>confdefs.h
18387
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18389$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18390if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
18391  $as_echo_n "(cached) " >&6
18392else
18393  ac_check_lib_save_LIBS=$LIBS
18394LIBS="-ldgc  $LIBS"
18395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396/* end confdefs.h.  */
18397
18398/* Override any GCC internal prototype to avoid an error.
18399   Use char because int might match the return type of a GCC
18400   builtin and then its argument prototype would still apply.  */
18401#ifdef __cplusplus
18402extern "C"
18403#endif
18404char dg_sys_info ();
18405int
18406main ()
18407{
18408return dg_sys_info ();
18409  ;
18410  return 0;
18411}
18412_ACEOF
18413if ac_fn_c_try_link "$LINENO"; then :
18414  ac_cv_lib_dgc_dg_sys_info=yes
18415else
18416  ac_cv_lib_dgc_dg_sys_info=no
18417fi
18418rm -f core conftest.err conftest.$ac_objext \
18419    conftest$ac_exeext conftest.$ac_ext
18420LIBS=$ac_check_lib_save_LIBS
18421fi
18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18423$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18424if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
18425  cat >>confdefs.h <<_ACEOF
18426#define HAVE_LIBDGC 1
18427_ACEOF
18428
18429  LIBS="-ldgc $LIBS"
18430
18431fi
18432
18433fi
18434
18435
18436
18437ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18438if test "x$ac_cv_header_locale_h" = xyes; then :
18439
18440fi
18441
18442
18443for ac_func in setlocale
18444do :
18445  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18446if test "x$ac_cv_func_setlocale" = xyes; then :
18447  cat >>confdefs.h <<_ACEOF
18448#define HAVE_SETLOCALE 1
18449_ACEOF
18450
18451fi
18452done
18453
18454
18455# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18456# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
18457# Irix 4.0.5F has the header but not the library.
18458if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18459    && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18460  ac_have_func=yes
18461
18462$as_echo "#define SVR4 1" >>confdefs.h
18463
18464fi
18465
18466if test $ac_have_func = no; then
18467  ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18468if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
18469  ac_have_func=yes
18470
18471$as_echo "#define UMAX 1" >>confdefs.h
18472
18473
18474$as_echo "#define UMAX4_3 1" >>confdefs.h
18475
18476fi
18477
18478
18479fi
18480
18481if test $ac_have_func = no; then
18482  ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18483if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
18484  ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
18485
18486fi
18487
18488
18489fi
18490
18491if test $ac_have_func = no; then
18492  for ac_header in mach/mach.h
18493do :
18494  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18495if test "x$ac_cv_header_mach_mach_h" = xyes; then :
18496  cat >>confdefs.h <<_ACEOF
18497#define HAVE_MACH_MACH_H 1
18498_ACEOF
18499
18500fi
18501
18502done
18503
18504fi
18505
18506for ac_header in nlist.h
18507do :
18508  ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18509if test "x$ac_cv_header_nlist_h" = xyes; then :
18510  cat >>confdefs.h <<_ACEOF
18511#define HAVE_NLIST_H 1
18512_ACEOF
18513 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18514"
18515if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
18516
18517cat >>confdefs.h <<_ACEOF
18518#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18519_ACEOF
18520
18521
18522$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
18523
18524fi
18525
18526
18527fi
18528
18529done
18530
18531fi
18532done
18533
18534
18535# Some definitions of getloadavg require that the program be installed setgid.
18536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
18537$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
18538if ${ac_cv_func_getloadavg_setgid+:} false; then :
18539  $as_echo_n "(cached) " >&6
18540else
18541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542/* end confdefs.h.  */
18543#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18544#ifdef LDAV_PRIVILEGED
18545Yowza Am I SETGID yet
18546#endif
18547_ACEOF
18548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18549  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
18550  ac_cv_func_getloadavg_setgid=yes
18551else
18552  ac_cv_func_getloadavg_setgid=no
18553fi
18554rm -f conftest*
18555
18556fi
18557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
18558$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
18559if test $ac_cv_func_getloadavg_setgid = yes; then
18560  NEED_SETGID=true
18561
18562$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
18563
18564else
18565  NEED_SETGID=false
18566fi
18567
18568if test $ac_cv_func_getloadavg_setgid = yes; then
18569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
18570$as_echo_n "checking group of /dev/kmem... " >&6; }
18571if ${ac_cv_group_kmem+:} false; then :
18572  $as_echo_n "(cached) " >&6
18573else
18574   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
18575  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18576  # If we got an error (system does not support symlinks), try without -L.
18577  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18578  ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
18579    | sed -ne 's/[	 ][	 ]*/ /g;
18580	       s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
18581	       / /s/.* //;p;'`
18582
18583fi
18584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
18585$as_echo "$ac_cv_group_kmem" >&6; }
18586  KMEM_GROUP=$ac_cv_group_kmem
18587fi
18588if test "x$ac_save_LIBS" = x; then
18589  GETLOADAVG_LIBS=$LIBS
18590else
18591  GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
18592fi
18593LIBS=$ac_save_LIBS
18594
18595
18596
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18598$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18599if ${ac_cv_c_bigendian+:} false; then :
18600  $as_echo_n "(cached) " >&6
18601else
18602  ac_cv_c_bigendian=unknown
18603    # See if we're dealing with a universal compiler.
18604    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605/* end confdefs.h.  */
18606#ifndef __APPLE_CC__
18607	       not a universal capable compiler
18608	     #endif
18609	     typedef int dummy;
18610
18611_ACEOF
18612if ac_fn_c_try_compile "$LINENO"; then :
18613
18614	# Check for potential -arch flags.  It is not universal unless
18615	# there are at least two -arch flags with different values.
18616	ac_arch=
18617	ac_prev=
18618	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18619	 if test -n "$ac_prev"; then
18620	   case $ac_word in
18621	     i?86 | x86_64 | ppc | ppc64)
18622	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18623		 ac_arch=$ac_word
18624	       else
18625		 ac_cv_c_bigendian=universal
18626		 break
18627	       fi
18628	       ;;
18629	   esac
18630	   ac_prev=
18631	 elif test "x$ac_word" = "x-arch"; then
18632	   ac_prev=arch
18633	 fi
18634       done
18635fi
18636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637    if test $ac_cv_c_bigendian = unknown; then
18638      # See if sys/param.h defines the BYTE_ORDER macro.
18639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640/* end confdefs.h.  */
18641#include <sys/types.h>
18642	     #include <sys/param.h>
18643
18644int
18645main ()
18646{
18647#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18648		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18649		     && LITTLE_ENDIAN)
18650	      bogus endian macros
18651	     #endif
18652
18653  ;
18654  return 0;
18655}
18656_ACEOF
18657if ac_fn_c_try_compile "$LINENO"; then :
18658  # It does; now see whether it defined to BIG_ENDIAN or not.
18659	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661#include <sys/types.h>
18662		#include <sys/param.h>
18663
18664int
18665main ()
18666{
18667#if BYTE_ORDER != BIG_ENDIAN
18668		 not big endian
18669		#endif
18670
18671  ;
18672  return 0;
18673}
18674_ACEOF
18675if ac_fn_c_try_compile "$LINENO"; then :
18676  ac_cv_c_bigendian=yes
18677else
18678  ac_cv_c_bigendian=no
18679fi
18680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681fi
18682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683    fi
18684    if test $ac_cv_c_bigendian = unknown; then
18685      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18686      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687/* end confdefs.h.  */
18688#include <limits.h>
18689
18690int
18691main ()
18692{
18693#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18694	      bogus endian macros
18695	     #endif
18696
18697  ;
18698  return 0;
18699}
18700_ACEOF
18701if ac_fn_c_try_compile "$LINENO"; then :
18702  # It does; now see whether it defined to _BIG_ENDIAN or not.
18703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704/* end confdefs.h.  */
18705#include <limits.h>
18706
18707int
18708main ()
18709{
18710#ifndef _BIG_ENDIAN
18711		 not big endian
18712		#endif
18713
18714  ;
18715  return 0;
18716}
18717_ACEOF
18718if ac_fn_c_try_compile "$LINENO"; then :
18719  ac_cv_c_bigendian=yes
18720else
18721  ac_cv_c_bigendian=no
18722fi
18723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18724fi
18725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18726    fi
18727    if test $ac_cv_c_bigendian = unknown; then
18728      # Compile a test program.
18729      if test "$cross_compiling" = yes; then :
18730  # Try to guess by grepping values from an object file.
18731	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732/* end confdefs.h.  */
18733short int ascii_mm[] =
18734		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18735		short int ascii_ii[] =
18736		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18737		int use_ascii (int i) {
18738		  return ascii_mm[i] + ascii_ii[i];
18739		}
18740		short int ebcdic_ii[] =
18741		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18742		short int ebcdic_mm[] =
18743		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18744		int use_ebcdic (int i) {
18745		  return ebcdic_mm[i] + ebcdic_ii[i];
18746		}
18747		extern int foo;
18748
18749int
18750main ()
18751{
18752return use_ascii (foo) == use_ebcdic (foo);
18753  ;
18754  return 0;
18755}
18756_ACEOF
18757if ac_fn_c_try_compile "$LINENO"; then :
18758  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18759	      ac_cv_c_bigendian=yes
18760	    fi
18761	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18762	      if test "$ac_cv_c_bigendian" = unknown; then
18763		ac_cv_c_bigendian=no
18764	      else
18765		# finding both strings is unlikely to happen, but who knows?
18766		ac_cv_c_bigendian=unknown
18767	      fi
18768	    fi
18769fi
18770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771else
18772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773/* end confdefs.h.  */
18774$ac_includes_default
18775int
18776main ()
18777{
18778
18779	     /* Are we little or big endian?  From Harbison&Steele.  */
18780	     union
18781	     {
18782	       long int l;
18783	       char c[sizeof (long int)];
18784	     } u;
18785	     u.l = 1;
18786	     return u.c[sizeof (long int) - 1] == 1;
18787
18788  ;
18789  return 0;
18790}
18791_ACEOF
18792if ac_fn_c_try_run "$LINENO"; then :
18793  ac_cv_c_bigendian=no
18794else
18795  ac_cv_c_bigendian=yes
18796fi
18797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18798  conftest.$ac_objext conftest.beam conftest.$ac_ext
18799fi
18800
18801    fi
18802fi
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18804$as_echo "$ac_cv_c_bigendian" >&6; }
18805 case $ac_cv_c_bigendian in #(
18806   yes)
18807     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18808;; #(
18809   no)
18810      ;; #(
18811   universal)
18812
18813$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18814
18815     ;; #(
18816   *)
18817     as_fn_error $? "unknown endianness
18818 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18819 esac
18820
18821for ac_header in endian.h
18822do :
18823  ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
18824if test "x$ac_cv_header_endian_h" = xyes; then :
18825  cat >>confdefs.h <<_ACEOF
18826#define HAVE_ENDIAN_H 1
18827_ACEOF
18828
18829fi
18830
18831done
18832
18833ac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <endian.h>
18834"
18835if test "x$ac_cv_have_decl_le32toh" = xyes; then :
18836  ac_have_decl=1
18837else
18838  ac_have_decl=0
18839fi
18840
18841cat >>confdefs.h <<_ACEOF
18842#define HAVE_DECL_LE32TOH $ac_have_decl
18843_ACEOF
18844
18845
18846ac_fn_c_check_decl "$LINENO" "closefrom" "ac_cv_have_decl_closefrom" "#include <unistd.h>
18847                                    #include <stdlib.h>
18848"
18849if test "x$ac_cv_have_decl_closefrom" = xyes; then :
18850  ac_have_decl=1
18851else
18852  ac_have_decl=0
18853fi
18854
18855cat >>confdefs.h <<_ACEOF
18856#define HAVE_DECL_CLOSEFROM $ac_have_decl
18857_ACEOF
18858
18859ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
18860if test "x$ac_cv_func_closefrom" = xyes; then :
18861  $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
18862
18863else
18864  case " $LIBOBJS " in
18865  *" closefrom.$ac_objext "* ) ;;
18866  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
18867 ;;
18868esac
18869
18870fi
18871
18872
18873
18874for ac_header in sys/pstat.h
18875do :
18876  ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
18877if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
18878  cat >>confdefs.h <<_ACEOF
18879#define HAVE_SYS_PSTAT_H 1
18880_ACEOF
18881
18882fi
18883
18884done
18885
18886for ac_func in pstat_getfile2
18887do :
18888  ac_fn_c_check_func "$LINENO" "pstat_getfile2" "ac_cv_func_pstat_getfile2"
18889if test "x$ac_cv_func_pstat_getfile2" = xyes; then :
18890  cat >>confdefs.h <<_ACEOF
18891#define HAVE_PSTAT_GETFILE2 1
18892_ACEOF
18893
18894fi
18895done
18896
18897
18898
18899  found=0
18900  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
18901
18902    path=$PATH
18903
18904else
18905
18906    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
18907
18908fi
18909  $as_echo_n "checking for chpasswd... "
18910  for i in $(echo $path | sed -e 's/:/ /g'); do
18911    if test -e $i/chpasswd && ls -ld $i/chpasswd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
18912
18913      CHPASSWD=$i/chpasswd
18914      found=1
18915      break
18916
18917fi
18918  done
18919
18920  if test "$found" = "1"; then :
18921
18922    $as_echo "$CHPASSWD"
18923
18924else
18925
18926    $as_echo no
18927    CHPASSWD=
18928
18929fi
18930
18931if test "x$CHPASSWD" != "x"; then :
18932
18933$as_echo "#define HAVE_CHPASSWD 1" >>confdefs.h
18934
18935
18936cat >>confdefs.h <<_ACEOF
18937#define CHPASSWD "$CHPASSWD"
18938_ACEOF
18939
18940
18941fi
18942
18943
18944  found=0
18945  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
18946
18947    path=$PATH
18948
18949else
18950
18951    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
18952
18953fi
18954  $as_echo_n "checking for pwdadm... "
18955  for i in $(echo $path | sed -e 's/:/ /g'); do
18956    if test -e $i/pwdadm && ls -ld $i/pwdadm | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
18957
18958      PWDADM=$i/pwdadm
18959      found=1
18960      break
18961
18962fi
18963  done
18964
18965  if test "$found" = "1"; then :
18966
18967    $as_echo "$PWDADM"
18968
18969else
18970
18971    $as_echo no
18972    PWDADM=
18973
18974fi
18975
18976if test "x$PWDADM" != "x"; then :
18977
18978$as_echo "#define HAVE_PWDADM 1" >>confdefs.h
18979
18980
18981cat >>confdefs.h <<_ACEOF
18982#define PWDADM "$PWDADM"
18983_ACEOF
18984
18985
18986fi
18987
18988
18989  found=0
18990  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
18991
18992    path=$PATH
18993
18994else
18995
18996    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
18997
18998fi
18999  $as_echo_n "checking for useradd... "
19000  for i in $(echo $path | sed -e 's/:/ /g'); do
19001    if test -e $i/useradd && ls -ld $i/useradd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19002
19003      USERADD=$i/useradd
19004      found=1
19005      break
19006
19007fi
19008  done
19009
19010  if test "$found" = "1"; then :
19011
19012    $as_echo "$USERADD"
19013
19014else
19015
19016    $as_echo no
19017    USERADD=
19018
19019fi
19020
19021if test "x$USERADD" != "x"; then :
19022
19023$as_echo "#define HAVE_USERADD 1" >>confdefs.h
19024
19025
19026cat >>confdefs.h <<_ACEOF
19027#define USERADD "$USERADD"
19028_ACEOF
19029
19030
19031fi
19032
19033
19034  found=0
19035  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19036
19037    path=$PATH
19038
19039else
19040
19041    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19042
19043fi
19044  $as_echo_n "checking for usermod... "
19045  for i in $(echo $path | sed -e 's/:/ /g'); do
19046    if test -e $i/usermod && ls -ld $i/usermod | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19047
19048      USERMOD=$i/usermod
19049      found=1
19050      break
19051
19052fi
19053  done
19054
19055  if test "$found" = "1"; then :
19056
19057    $as_echo "$USERMOD"
19058
19059else
19060
19061    $as_echo no
19062    USERMOD=
19063
19064fi
19065
19066if test "x$USERMOD" != "x"; then :
19067
19068$as_echo "#define HAVE_USERMOD 1" >>confdefs.h
19069
19070
19071cat >>confdefs.h <<_ACEOF
19072#define USERMOD "$USERMOD"
19073_ACEOF
19074
19075
19076fi
19077
19078
19079  found=0
19080  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19081
19082    path=$PATH
19083
19084else
19085
19086    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19087
19088fi
19089  $as_echo_n "checking for userdel... "
19090  for i in $(echo $path | sed -e 's/:/ /g'); do
19091    if test -e $i/userdel && ls -ld $i/userdel | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19092
19093      USERDEL=$i/userdel
19094      found=1
19095      break
19096
19097fi
19098  done
19099
19100  if test "$found" = "1"; then :
19101
19102    $as_echo "$USERDEL"
19103
19104else
19105
19106    $as_echo no
19107    USERDEL=
19108
19109fi
19110
19111if test "x$USERDEL" != "x"; then :
19112
19113$as_echo "#define HAVE_USERDEL 1" >>confdefs.h
19114
19115
19116cat >>confdefs.h <<_ACEOF
19117#define USERDEL "$USERDEL"
19118_ACEOF
19119
19120
19121fi
19122
19123if test "x$USERADD" != x && \
19124       test "x$USERMOD" != x && test "x$USERDEL" != x; then :
19125  have_userprogs=yes
19126else
19127  have_userprogs=no
19128
19129fi
19130
19131
19132  found=0
19133  if test "x/usr/bin:$PATH" = "x"; then :
19134
19135    path=$PATH
19136
19137else
19138
19139    path=/usr/bin:$PATH
19140
19141fi
19142  $as_echo_n "checking for chpass... "
19143  for i in $(echo $path | sed -e 's/:/ /g'); do
19144    if test -e $i/chpass && ls -ld $i/chpass | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19145
19146      CHPASS=$i/chpass
19147      found=1
19148      break
19149
19150fi
19151  done
19152
19153  if test "$found" = "1"; then :
19154
19155    $as_echo "$CHPASS"
19156
19157else
19158
19159    $as_echo no
19160    CHPASS=
19161
19162fi
19163
19164if test "x$CHPASS" != "x"; then :
19165
19166$as_echo "#define HAVE_CHPASS 1" >>confdefs.h
19167
19168
19169cat >>confdefs.h <<_ACEOF
19170#define CHPASS "$CHPASS"
19171_ACEOF
19172
19173
19174fi
19175
19176
19177  found=0
19178  if test "x/usr/sbin:$PATH" = "x"; then :
19179
19180    path=$PATH
19181
19182else
19183
19184    path=/usr/sbin:$PATH
19185
19186fi
19187  $as_echo_n "checking for pw... "
19188  for i in $(echo $path | sed -e 's/:/ /g'); do
19189    if test -e $i/pw && ls -ld $i/pw | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19190
19191      PW=$i/pw
19192      found=1
19193      break
19194
19195fi
19196  done
19197
19198  if test "$found" = "1"; then :
19199
19200    $as_echo "$PW"
19201
19202else
19203
19204    $as_echo no
19205    PW=
19206
19207fi
19208
19209if test "x$PW" != "x"; then :
19210
19211$as_echo "#define HAVE_PW 1" >>confdefs.h
19212
19213
19214cat >>confdefs.h <<_ACEOF
19215#define PW "$PW"
19216_ACEOF
19217
19218
19219fi
19220
19221if test "x$CHPASS" != x && \
19222       test "x$PW" != x; then :
19223  have_userprogs=yes
19224else
19225  have_userprogs=no
19226
19227fi
19228
19229
19230# Check whether --with-pam was given.
19231if test "${with_pam+set}" = set; then :
19232  withval=$with_pam;
19233fi
19234
19235if test x$with_pam != xno; then :
19236
19237
19238
19239
19240  #
19241  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
19242  #
19243  if test "x$with_pam" != xyes &&
19244     test "x$with_pam" != xcheck &&
19245     test "x$with_pam" != x
19246  then
19247    test -z "$PAM_PATH" && PAM_PATH="$with_pam"
19248    if test "x$with_pam" != x/usr &&
19249       test "x$with_pam" != x/
19250    then
19251      test -z "$PAM_CFLAGS" && PAM_CFLAGS=""
19252      test -z "$PAM_CPPFLAGS" && PAM_CPPFLAGS="-I$with_pam/include"
19253      test -z "$PAM_LDFLAGS" && PAM_LDFLAGS="-L$with_pam/lib"
19254    fi
19255  else
19256    PAM_PATH="default path"
19257  fi
19258
19259  #
19260  # Save old environment
19261  #
19262  save_CFLAGS="$CFLAGS"
19263  save_CPPFLAGS="$CPPFLAGS"
19264  save_LDFLAGS="$LDFLAGS"
19265  save_LIBS="$LIBS"
19266
19267  CFLAGS="$CFLAGS $PAM_CFLAGS"
19268  CPPFLAGS="$CPPFLAGS $PAM_CPPFLAGS"
19269  LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
19270
19271  #
19272  # Run checks passed as argument
19273  #
19274
19275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
19276$as_echo_n "checking for pam_start in -lpam... " >&6; }
19277if ${ac_cv_lib_pam_pam_start+:} false; then :
19278  $as_echo_n "(cached) " >&6
19279else
19280  ac_check_lib_save_LIBS=$LIBS
19281LIBS="-lpam  $LIBS"
19282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283/* end confdefs.h.  */
19284
19285/* Override any GCC internal prototype to avoid an error.
19286   Use char because int might match the return type of a GCC
19287   builtin and then its argument prototype would still apply.  */
19288#ifdef __cplusplus
19289extern "C"
19290#endif
19291char pam_start ();
19292int
19293main ()
19294{
19295return pam_start ();
19296  ;
19297  return 0;
19298}
19299_ACEOF
19300if ac_fn_c_try_link "$LINENO"; then :
19301  ac_cv_lib_pam_pam_start=yes
19302else
19303  ac_cv_lib_pam_pam_start=no
19304fi
19305rm -f core conftest.err conftest.$ac_objext \
19306    conftest$ac_exeext conftest.$ac_ext
19307LIBS=$ac_check_lib_save_LIBS
19308fi
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
19310$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
19311if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
19312  cat >>confdefs.h <<_ACEOF
19313#define HAVE_LIBPAM 1
19314_ACEOF
19315
19316  LIBS="-lpam $LIBS"
19317
19318fi
19319
19320    for ac_header in security/pam_appl.h
19321do :
19322  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19323if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19324  cat >>confdefs.h <<_ACEOF
19325#define HAVE_SECURITY_PAM_APPL_H 1
19326_ACEOF
19327
19328fi
19329
19330done
19331
19332
19333
19334  #
19335  # Pick up any libraries added by tests
19336  #
19337  test -z "$PAM_LIBS" && PAM_LIBS="$LIBS"
19338
19339  #
19340  # libtool understands -R$path, but we are not using libtool in configure
19341  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
19342  #
19343  if test "x$with_pam" != xyes &&
19344     test "x$with_pam" != xcheck &&
19345     test "x$with_pam" != x/usr &&
19346     test "x$with_pam" != x/
19347  then
19348    PAM_LDFLAGS="$PAM_LDFLAGS -R$with_pam/lib"
19349  fi
19350
19351  #
19352  # Restore pristine environment
19353  #
19354  CFLAGS="$save_CFLAGS"
19355  CPPFLAGS="$save_CPPFLAGS"
19356  LDFLAGS="$save_LDFLAGS"
19357  LIBS="$save_LIBS"
19358
19359
19360
19361
19362
19363
19364
19365    case $target_os in #(
19366  *gnu*|*solaris*|*aix*|*hpux*|*hp-ux*) :
19367
19368              if test "x$ac_cv_lib_pam_pam_start" != "xyes"; then :
19369  as_fn_error $? "Cannot find PAM library" "$LINENO" 5
19370
19371fi
19372              if test "x$ac_cv_header_security_pam_appl_h" != "xyes"; then :
19373  as_fn_error $? "Cannot find PAM headers" "$LINENO" 5
19374
19375fi
19376   ;; #(
19377  *) :
19378     ;;
19379esac
19380  if test "x$ac_cv_lib_pam_pam_start" = "xyes" && \
19381         test "x$ac_cv_header_security_pam_appl_h" = "xyes"; then :
19382  have_pam=yes
19383else
19384  have_pam=no
19385
19386fi
19387  for ac_func in fgetpwent fgetgrent
19388do :
19389  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19390ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19391if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19392  cat >>confdefs.h <<_ACEOF
19393#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19394_ACEOF
19395
19396fi
19397done
19398
19399  if test "x$ac_cv_func_fgetpwent" = "xyes" && \
19400         test "x$ac_cv_func_fgetgrent" = "xyes"; then :
19401  have_fgetpwent_fgetgrent=yes
19402
19403$as_echo "#define HAVE_FGETPWENT_FGETGRENT 1" >>confdefs.h
19404
19405else
19406  have_fgetpwent_fgetgrent=no
19407
19408fi
19409
19410  case "$target_os" in #(
19411  freebsd*) :
19412
19413        if test "x$have_pam" = "xyes" && \
19414               test "x$have_userprogs" = "xyes"; then :
19415  users_promises_ok=yes
19416else
19417  users_promises_ok=no
19418fi
19419      ;; #(
19420  *) :
19421
19422        if test "x$have_pam" = "xyes" && \
19423               test "x$have_userprogs" = "xyes"
19424               test "x$ac_cv_func_fgetpwent" = "xyes" && \
19425               test "x$ac_cv_func_fgetgrent" = "xyes"; then :
19426  users_promises_ok=yes
19427else
19428  users_promises_ok=no
19429fi
19430      ;;
19431esac
19432
19433else
19434
19435  users_promises_ok=no
19436
19437fi
19438 if test "x$users_promises_ok" = "xyes"; then
19439  HAVE_USERS_PROMISE_DEPS_TRUE=
19440  HAVE_USERS_PROMISE_DEPS_FALSE='#'
19441else
19442  HAVE_USERS_PROMISE_DEPS_TRUE='#'
19443  HAVE_USERS_PROMISE_DEPS_FALSE=
19444fi
19445
19446
19447ac_fn_c_check_decl "$LINENO" "getnetgrent" "ac_cv_have_decl_getnetgrent" "#include <netdb.h>
19448"
19449if test "x$ac_cv_have_decl_getnetgrent" = xyes; then :
19450  ac_have_decl=1
19451else
19452  ac_have_decl=0
19453fi
19454
19455cat >>confdefs.h <<_ACEOF
19456#define HAVE_DECL_GETNETGRENT $ac_have_decl
19457_ACEOF
19458
19459for ac_func in getnetgrent
19460do :
19461  ac_fn_c_check_func "$LINENO" "getnetgrent" "ac_cv_func_getnetgrent"
19462if test "x$ac_cv_func_getnetgrent" = xyes; then :
19463  cat >>confdefs.h <<_ACEOF
19464#define HAVE_GETNETGRENT 1
19465_ACEOF
19466
19467fi
19468done
19469
19470
19471ac_fn_c_check_decl "$LINENO" "setnetgrent" "ac_cv_have_decl_setnetgrent" "#include <netdb.h>
19472"
19473if test "x$ac_cv_have_decl_setnetgrent" = xyes; then :
19474  ac_have_decl=1
19475else
19476  ac_have_decl=0
19477fi
19478
19479cat >>confdefs.h <<_ACEOF
19480#define HAVE_DECL_SETNETGRENT $ac_have_decl
19481_ACEOF
19482
19483for ac_func in setnetgrent
19484do :
19485  ac_fn_c_check_func "$LINENO" "setnetgrent" "ac_cv_func_setnetgrent"
19486if test "x$ac_cv_func_setnetgrent" = xyes; then :
19487  cat >>confdefs.h <<_ACEOF
19488#define HAVE_SETNETGRENT 1
19489_ACEOF
19490
19491fi
19492done
19493
19494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495/* end confdefs.h.  */
19496#include <netdb.h>
19497int
19498main ()
19499{
19500extern int setnetgrent(const char *)
19501  ;
19502  return 0;
19503}
19504_ACEOF
19505if ac_fn_c_try_compile "$LINENO"; then :
19506
19507$as_echo "#define SETNETGRENT_RETURNS_INT 1" >>confdefs.h
19508
19509else
19510
19511$as_echo "#define SETNETGRENT_RETURNS_INT 0" >>confdefs.h
19512
19513fi
19514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19515
19516
19517ac_fn_c_check_decl "$LINENO" "endnetgrent" "ac_cv_have_decl_endnetgrent" "#include <netdb.h>
19518"
19519if test "x$ac_cv_have_decl_endnetgrent" = xyes; then :
19520  ac_have_decl=1
19521else
19522  ac_have_decl=0
19523fi
19524
19525cat >>confdefs.h <<_ACEOF
19526#define HAVE_DECL_ENDNETGRENT $ac_have_decl
19527_ACEOF
19528
19529for ac_func in endnetgrent
19530do :
19531  ac_fn_c_check_func "$LINENO" "endnetgrent" "ac_cv_func_endnetgrent"
19532if test "x$ac_cv_func_endnetgrent" = xyes; then :
19533  cat >>confdefs.h <<_ACEOF
19534#define HAVE_ENDNETGRENT 1
19535_ACEOF
19536
19537fi
19538done
19539
19540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541/* end confdefs.h.  */
19542#include <netdb.h>
19543int
19544main ()
19545{
19546extern int endnetgrent(const char *)
19547  ;
19548  return 0;
19549}
19550_ACEOF
19551if ac_fn_c_try_compile "$LINENO"; then :
19552
19553$as_echo "#define ENDNETGRENT_RETURNS_INT 1" >>confdefs.h
19554
19555else
19556
19557$as_echo "#define ENDNETGRENT_RETURNS_INT 0" >>confdefs.h
19558
19559fi
19560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561
19562
19563for ac_func in sendto
19564do :
19565  ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
19566if test "x$ac_cv_func_sendto" = xyes; then :
19567  cat >>confdefs.h <<_ACEOF
19568#define HAVE_SENDTO 1
19569_ACEOF
19570
19571fi
19572done
19573
19574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575/* end confdefs.h.  */
19576#include <sys/types.h>
19577                                     #include <sys/socket.h>
19578int
19579main ()
19580{
19581extern ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
19582  ;
19583  return 0;
19584}
19585_ACEOF
19586if ac_fn_c_try_compile "$LINENO"; then :
19587
19588$as_echo "#define SENDTO_RETURNS_SSIZE_T 1" >>confdefs.h
19589
19590else
19591
19592$as_echo "#define SENDTO_RETURNS_SSIZE_T 0" >>confdefs.h
19593
19594fi
19595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596
19597
19598  ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime"
19599if test "x$ac_cv_func_ctime" = xyes; then :
19600
19601else
19602  as_fn_error $? "Unable to find function ctime" "$LINENO" 5
19603fi
19604
19605
19606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime is properly declared" >&5
19607$as_echo_n "checking whether ctime is properly declared... " >&6; }
19608if ${hw_cv_func_ctime_proper+:} false; then :
19609  $as_echo_n "(cached) " >&6
19610else
19611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612/* end confdefs.h.  */
19613
19614int
19615main ()
19616{
19617#error ctime(3) may produce different results on different OSes. Let's have our POSIX-compliant implementation all the time
19618  ;
19619  return 0;
19620}
19621_ACEOF
19622if ac_fn_c_try_compile "$LINENO"; then :
19623  hw_cv_func_ctime_proper=yes
19624else
19625  hw_cv_func_ctime_proper=no
19626fi
19627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628fi
19629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_ctime_proper" >&5
19630$as_echo "$hw_cv_func_ctime_proper" >&6; }
19631
19632
19633
19634  if test "$hw_cv_func_ctime_proper" = yes; then :
19635
19636$as_echo "#define HAVE_ctime_PROPER 1" >>confdefs.h
19637
19638else
19639  post_macros="$post_macros
19640#define ctime rpl_ctime"
19641fi
19642
19643
19644  if test "$hw_cv_func_ctime_proper" = "no"; then :
19645  case " $LIBOBJS " in
19646  *" rpl_ctime.$ac_objext "* ) ;;
19647  *) LIBOBJS="$LIBOBJS rpl_ctime.$ac_objext"
19648 ;;
19649esac
19650
19651
19652fi
19653
19654
19655
19656  ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
19657if test "x$ac_cv_func_mkdir" = xyes; then :
19658
19659else
19660  as_fn_error $? "Unable to find function mkdir" "$LINENO" 5
19661fi
19662
19663
19664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir is properly declared" >&5
19665$as_echo_n "checking whether mkdir is properly declared... " >&6; }
19666if ${hw_cv_func_mkdir_proper+:} false; then :
19667  $as_echo_n "(cached) " >&6
19668else
19669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670/* end confdefs.h.  */
19671#include <sys/stat.h>
19672    #include <sys/types.h>
19673int
19674main ()
19675{
19676int mkdir(const char *pathname, mode_t mode);
19677  ;
19678  return 0;
19679}
19680_ACEOF
19681if ac_fn_c_try_compile "$LINENO"; then :
19682  hw_cv_func_mkdir_proper=yes
19683else
19684  hw_cv_func_mkdir_proper=no
19685fi
19686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687fi
19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_mkdir_proper" >&5
19689$as_echo "$hw_cv_func_mkdir_proper" >&6; }
19690
19691
19692
19693  if test "$hw_cv_func_mkdir_proper" = yes; then :
19694
19695$as_echo "#define HAVE_mkdir_PROPER 1" >>confdefs.h
19696
19697else
19698  post_macros="$post_macros
19699#define mkdir rpl_mkdir"
19700fi
19701
19702
19703
19704
19705  ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
19706if test "x$ac_cv_func_stat" = xyes; then :
19707
19708else
19709  as_fn_error $? "Unable to find function stat" "$LINENO" 5
19710fi
19711
19712
19713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat is properly declared" >&5
19714$as_echo_n "checking whether stat is properly declared... " >&6; }
19715if ${hw_cv_func_stat_proper+:} false; then :
19716  $as_echo_n "(cached) " >&6
19717else
19718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719/* end confdefs.h.  */
19720#include <sys/types.h>
19721    #include <sys/stat.h>
19722int
19723main ()
19724{
19725#if defined(__MINGW32__)
19726    #error stat in Windows CRT ill-behaves
19727    #endif
19728  ;
19729  return 0;
19730}
19731_ACEOF
19732if ac_fn_c_try_compile "$LINENO"; then :
19733  hw_cv_func_stat_proper=yes
19734else
19735  hw_cv_func_stat_proper=no
19736fi
19737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738fi
19739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_stat_proper" >&5
19740$as_echo "$hw_cv_func_stat_proper" >&6; }
19741
19742
19743
19744  if test "$hw_cv_func_stat_proper" = yes; then :
19745
19746$as_echo "#define HAVE_stat_PROPER 1" >>confdefs.h
19747
19748else
19749  post_macros="$post_macros
19750"
19751fi
19752
19753
19754
19755
19756  ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
19757if test "x$ac_cv_func_rename" = xyes; then :
19758
19759else
19760  as_fn_error $? "Unable to find function rename" "$LINENO" 5
19761fi
19762
19763
19764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename is properly declared" >&5
19765$as_echo_n "checking whether rename is properly declared... " >&6; }
19766if ${hw_cv_func_rename_proper+:} false; then :
19767  $as_echo_n "(cached) " >&6
19768else
19769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770/* end confdefs.h.  */
19771
19772int
19773main ()
19774{
19775#if defined(__MINGW32__)
19776    #error rename in Windows CRT ill-behaves
19777    #endif
19778  ;
19779  return 0;
19780}
19781_ACEOF
19782if ac_fn_c_try_compile "$LINENO"; then :
19783  hw_cv_func_rename_proper=yes
19784else
19785  hw_cv_func_rename_proper=no
19786fi
19787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788fi
19789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_rename_proper" >&5
19790$as_echo "$hw_cv_func_rename_proper" >&6; }
19791
19792
19793
19794  if test "$hw_cv_func_rename_proper" = yes; then :
19795
19796$as_echo "#define HAVE_rename_PROPER 1" >>confdefs.h
19797
19798else
19799  post_macros="$post_macros
19800#define rename rpl_rename"
19801fi
19802
19803
19804ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "$ac_includes_default"
19805if test "x$ac_cv_have_decl_mkdtemp" = xyes; then :
19806  ac_have_decl=1
19807else
19808  ac_have_decl=0
19809fi
19810
19811cat >>confdefs.h <<_ACEOF
19812#define HAVE_DECL_MKDTEMP $ac_have_decl
19813_ACEOF
19814
19815ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
19816if test "x$ac_cv_func_mkdtemp" = xyes; then :
19817  $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
19818
19819else
19820  case " $LIBOBJS " in
19821  *" mkdtemp.$ac_objext "* ) ;;
19822  *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
19823 ;;
19824esac
19825
19826fi
19827
19828
19829
19830ac_fn_c_check_decl "$LINENO" "strrstr" "ac_cv_have_decl_strrstr" "$ac_includes_default"
19831if test "x$ac_cv_have_decl_strrstr" = xyes; then :
19832  ac_have_decl=1
19833else
19834  ac_have_decl=0
19835fi
19836
19837cat >>confdefs.h <<_ACEOF
19838#define HAVE_DECL_STRRSTR $ac_have_decl
19839_ACEOF
19840
19841ac_fn_c_check_func "$LINENO" "strrstr" "ac_cv_func_strrstr"
19842if test "x$ac_cv_func_strrstr" = xyes; then :
19843  $as_echo "#define HAVE_STRRSTR 1" >>confdefs.h
19844
19845else
19846  case " $LIBOBJS " in
19847  *" strrstr.$ac_objext "* ) ;;
19848  *) LIBOBJS="$LIBOBJS strrstr.$ac_objext"
19849 ;;
19850esac
19851
19852fi
19853
19854
19855
19856ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default"
19857if test "x$ac_cv_have_decl_stpncpy" = xyes; then :
19858  ac_have_decl=1
19859else
19860  ac_have_decl=0
19861fi
19862
19863cat >>confdefs.h <<_ACEOF
19864#define HAVE_DECL_STPNCPY $ac_have_decl
19865_ACEOF
19866
19867ac_fn_c_check_func "$LINENO" "stpncpy" "ac_cv_func_stpncpy"
19868if test "x$ac_cv_func_stpncpy" = xyes; then :
19869  $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
19870
19871else
19872  case " $LIBOBJS " in
19873  *" stpncpy.$ac_objext "* ) ;;
19874  *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
19875 ;;
19876esac
19877
19878fi
19879
19880
19881
19882for ac_func in seteuid setegid setreuid setregid
19883do :
19884  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19886if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19887  cat >>confdefs.h <<_ACEOF
19888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19889_ACEOF
19890
19891fi
19892done
19893
19894for ac_func in uname gethostname chflags
19895do :
19896  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19897ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19898if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19899  cat >>confdefs.h <<_ACEOF
19900#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19901_ACEOF
19902
19903fi
19904done
19905
19906for ac_func in mkfifo statfs statvfs door
19907do :
19908  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19909ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19910if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19911  cat >>confdefs.h <<_ACEOF
19912#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19913_ACEOF
19914
19915fi
19916done
19917
19918for ac_func in sysinfo setsid sysconf
19919do :
19920  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19921ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19922if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19923  cat >>confdefs.h <<_ACEOF
19924#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19925_ACEOF
19926
19927fi
19928done
19929
19930for ac_func in getzoneid getzonenamebyid
19931do :
19932  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19933ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19934if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19935  cat >>confdefs.h <<_ACEOF
19936#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19937_ACEOF
19938
19939fi
19940done
19941
19942for ac_func in fpathconf
19943do :
19944  ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
19945if test "x$ac_cv_func_fpathconf" = xyes; then :
19946  cat >>confdefs.h <<_ACEOF
19947#define HAVE_FPATHCONF 1
19948_ACEOF
19949
19950fi
19951done
19952
19953
19954ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
19955if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
19956
19957cat >>confdefs.h <<_ACEOF
19958#define HAVE_STRUCT_STAT_ST_MTIM 1
19959_ACEOF
19960
19961
19962fi
19963ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
19964if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
19965
19966cat >>confdefs.h <<_ACEOF
19967#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
19968_ACEOF
19969
19970
19971fi
19972
19973ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
19974if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
19975
19976cat >>confdefs.h <<_ACEOF
19977#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19978_ACEOF
19979
19980
19981fi
19982
19983
19984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRIuMAX/PRIdMAX macros" >&5
19985$as_echo_n "checking for PRIuMAX/PRIdMAX macros... " >&6; }
19986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987/* end confdefs.h.  */
19988$ac_includes_default
19989  #include <inttypes.h>
19990  #if defined(PRIuMAX) && defined(PRIdMAX)
19991    primacros_found
19992  #endif
19993
19994_ACEOF
19995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19996  $EGREP "primacros_found" >/dev/null 2>&1; then :
19997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19998$as_echo "yes" >&6; }
19999else
20000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20001$as_echo "no" >&6; }
20002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find out how to scan intmax_t/uintmax_t types" >&5
20003$as_echo "Unable to find out how to scan intmax_t/uintmax_t types" >&6; }
20004fi
20005rm -f conftest*
20006
20007
20008
20009  for ac_header in stdarg.h
20010do :
20011  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20012if test "x$ac_cv_header_stdarg_h" = xyes; then :
20013  cat >>confdefs.h <<_ACEOF
20014#define HAVE_STDARG_H 1
20015_ACEOF
20016
20017fi
20018
20019done
20020
20021
20022
20023
20024      for ac_header in inttypes.h locale.h stddef.h stdint.h
20025do :
20026  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20027ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20028if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20029  cat >>confdefs.h <<_ACEOF
20030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20031_ACEOF
20032
20033fi
20034
20035done
20036
20037  ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20038"
20039if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20040
20041cat >>confdefs.h <<_ACEOF
20042#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20043_ACEOF
20044
20045
20046fi
20047ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20048"
20049if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20050
20051cat >>confdefs.h <<_ACEOF
20052#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20053_ACEOF
20054
20055
20056fi
20057
20058
20059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20060$as_echo_n "checking for long double... " >&6; }
20061if ${ac_cv_type_long_double+:} false; then :
20062  $as_echo_n "(cached) " >&6
20063else
20064  if test "$GCC" = yes; then
20065       ac_cv_type_long_double=yes
20066     else
20067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068/* end confdefs.h.  */
20069/* The Stardent Vistra knows sizeof (long double), but does
20070                 not support it.  */
20071              long double foo = 0.0L;
20072int
20073main ()
20074{
20075static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20076              sizeof (double) <= sizeof (long double))];
20077test_array [0] = 0;
20078return test_array [0];
20079
20080  ;
20081  return 0;
20082}
20083_ACEOF
20084if ac_fn_c_try_compile "$LINENO"; then :
20085  ac_cv_type_long_double=yes
20086else
20087  ac_cv_type_long_double=no
20088fi
20089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20090     fi
20091fi
20092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20093$as_echo "$ac_cv_type_long_double" >&6; }
20094  if test $ac_cv_type_long_double = yes; then
20095
20096$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20097
20098  fi
20099
20100
20101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20102$as_echo_n "checking for long long int... " >&6; }
20103if ${ac_cv_type_long_long_int+:} false; then :
20104  $as_echo_n "(cached) " >&6
20105else
20106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107/* end confdefs.h.  */
20108
20109  /* For now, do not test the preprocessor; as of 2007 there are too many
20110         implementations with broken preprocessors.  Perhaps this can
20111         be revisited in 2012.  In the meantime, code should not expect
20112         #if to work with literals wider than 32 bits.  */
20113      /* Test literals.  */
20114      long long int ll = 9223372036854775807ll;
20115      long long int nll = -9223372036854775807LL;
20116      unsigned long long int ull = 18446744073709551615ULL;
20117      /* Test constant expressions.   */
20118      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20119                     ? 1 : -1)];
20120      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20121                     ? 1 : -1)];
20122      int i = 63;
20123int
20124main ()
20125{
20126/* Test availability of runtime routines for shift and division.  */
20127      long long int llmax = 9223372036854775807ll;
20128      unsigned long long int ullmax = 18446744073709551615ull;
20129      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20130              | (llmax / ll) | (llmax % ll)
20131              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20132              | (ullmax / ull) | (ullmax % ull));
20133  ;
20134  return 0;
20135}
20136
20137_ACEOF
20138if ac_fn_c_try_link "$LINENO"; then :
20139                          if test "$cross_compiling" = yes; then :
20140  ac_cv_type_long_long_int=yes
20141else
20142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143/* end confdefs.h.  */
20144#include <limits.h>
20145               #ifndef LLONG_MAX
20146               # define HALF \
20147                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20148               # define LLONG_MAX (HALF - 1 + HALF)
20149               #endif
20150int
20151main ()
20152{
20153long long int n = 1;
20154               int i;
20155               for (i = 0; ; i++)
20156                 {
20157                   long long int m = n << i;
20158                   if (m >> i != n)
20159                     return 1;
20160                   if (LLONG_MAX / 2 < m)
20161                     break;
20162                 }
20163               return 0;
20164  ;
20165  return 0;
20166}
20167_ACEOF
20168if ac_fn_c_try_run "$LINENO"; then :
20169  ac_cv_type_long_long_int=yes
20170else
20171  ac_cv_type_long_long_int=no
20172fi
20173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20174  conftest.$ac_objext conftest.beam conftest.$ac_ext
20175fi
20176
20177else
20178  ac_cv_type_long_long_int=no
20179fi
20180rm -f core conftest.err conftest.$ac_objext \
20181    conftest$ac_exeext conftest.$ac_ext
20182fi
20183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20184$as_echo "$ac_cv_type_long_long_int" >&6; }
20185  if test $ac_cv_type_long_long_int = yes; then
20186
20187$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20188
20189  fi
20190
20191
20192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20193$as_echo_n "checking for unsigned long long int... " >&6; }
20194if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20195  $as_echo_n "(cached) " >&6
20196else
20197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198/* end confdefs.h.  */
20199
20200  /* For now, do not test the preprocessor; as of 2007 there are too many
20201         implementations with broken preprocessors.  Perhaps this can
20202         be revisited in 2012.  In the meantime, code should not expect
20203         #if to work with literals wider than 32 bits.  */
20204      /* Test literals.  */
20205      long long int ll = 9223372036854775807ll;
20206      long long int nll = -9223372036854775807LL;
20207      unsigned long long int ull = 18446744073709551615ULL;
20208      /* Test constant expressions.   */
20209      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20210                     ? 1 : -1)];
20211      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20212                     ? 1 : -1)];
20213      int i = 63;
20214int
20215main ()
20216{
20217/* Test availability of runtime routines for shift and division.  */
20218      long long int llmax = 9223372036854775807ll;
20219      unsigned long long int ullmax = 18446744073709551615ull;
20220      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20221              | (llmax / ll) | (llmax % ll)
20222              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20223              | (ullmax / ull) | (ullmax % ull));
20224  ;
20225  return 0;
20226}
20227
20228_ACEOF
20229if ac_fn_c_try_link "$LINENO"; then :
20230  ac_cv_type_unsigned_long_long_int=yes
20231else
20232  ac_cv_type_unsigned_long_long_int=no
20233fi
20234rm -f core conftest.err conftest.$ac_objext \
20235    conftest$ac_exeext conftest.$ac_ext
20236fi
20237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20238$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20239  if test $ac_cv_type_unsigned_long_long_int = yes; then
20240
20241$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20242
20243  fi
20244
20245  ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20246if test "x$ac_cv_type_size_t" = xyes; then :
20247
20248else
20249
20250cat >>confdefs.h <<_ACEOF
20251#define size_t unsigned int
20252_ACEOF
20253
20254fi
20255
20256
20257
20258  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20259if test "x$ac_cv_type_intmax_t" = xyes; then :
20260
20261$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20262
20263else
20264  test $ac_cv_type_long_long_int = yes \
20265       && ac_type='long long int' \
20266       || ac_type='long int'
20267
20268cat >>confdefs.h <<_ACEOF
20269#define intmax_t $ac_type
20270_ACEOF
20271
20272fi
20273
20274
20275
20276
20277  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20278if test "x$ac_cv_type_uintmax_t" = xyes; then :
20279
20280$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20281
20282else
20283  test $ac_cv_type_unsigned_long_long_int = yes \
20284       && ac_type='unsigned long long int' \
20285       || ac_type='unsigned long int'
20286
20287cat >>confdefs.h <<_ACEOF
20288#define uintmax_t $ac_type
20289_ACEOF
20290
20291fi
20292
20293
20294
20295  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20296if test "x$ac_cv_type_uintptr_t" = xyes; then :
20297
20298$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20299
20300else
20301  for ac_type in 'unsigned int' 'unsigned long int' \
20302        'unsigned long long int'; do
20303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304/* end confdefs.h.  */
20305$ac_includes_default
20306int
20307main ()
20308{
20309static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20310test_array [0] = 0;
20311return test_array [0];
20312
20313  ;
20314  return 0;
20315}
20316_ACEOF
20317if ac_fn_c_try_compile "$LINENO"; then :
20318
20319cat >>confdefs.h <<_ACEOF
20320#define uintptr_t $ac_type
20321_ACEOF
20322
20323          ac_type=
20324fi
20325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20326       test -z "$ac_type" && break
20327     done
20328fi
20329
20330
20331  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20332if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20333
20334cat >>confdefs.h <<_ACEOF
20335#define HAVE_PTRDIFF_T 1
20336_ACEOF
20337
20338
20339fi
20340
20341  for ac_func in localeconv
20342do :
20343  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20344if test "x$ac_cv_func_localeconv" = xyes; then :
20345  cat >>confdefs.h <<_ACEOF
20346#define HAVE_LOCALECONV 1
20347_ACEOF
20348
20349fi
20350done
20351
20352
20353  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20354if test "x$ac_cv_func_vsnprintf" = xyes; then :
20355  hw_cv_func_vsnprintf=yes
20356else
20357  hw_cv_func_vsnprintf=no
20358fi
20359
20360  if test "$hw_cv_func_vsnprintf" = yes; then :
20361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20362$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20363if ${hw_cv_func_vsnprintf_c99+:} false; then :
20364  $as_echo_n "(cached) " >&6
20365else
20366  if test "$cross_compiling" = yes; then :
20367  hw_cv_func_vsnprintf_c99=no
20368else
20369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370/* end confdefs.h.  */
20371#if HAVE_STDARG_H
20372          #include <stdarg.h>
20373          #endif
20374          #include <stdio.h>
20375          static int testprintf(char *buf, size_t size, const char *format, ...)
20376          {
20377            int result;
20378            va_list ap;
20379            va_start(ap, format);
20380            result = vsnprintf(buf, size, format, ap);
20381            va_end(ap);
20382            return result;
20383          }
20384int
20385main ()
20386{
20387char buf[43];
20388          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20389              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20390              buf[0] != 'T' || buf[3] != '\0' ||
20391	      testprintf(NULL, 0, "") != 0 ||   /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */
20392	      testprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51)
20393            return 1;
20394  ;
20395  return 0;
20396}
20397_ACEOF
20398if ac_fn_c_try_run "$LINENO"; then :
20399  hw_cv_func_vsnprintf_c99=yes
20400else
20401  hw_cv_func_vsnprintf_c99=no
20402fi
20403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20404  conftest.$ac_objext conftest.beam conftest.$ac_ext
20405fi
20406
20407fi
20408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20409$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20410else
20411  hw_cv_func_snprintf_c99=no
20412fi
20413  if test "$hw_cv_func_vsnprintf_c99" = yes; then :
20414
20415$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20416
20417else
20418
20419
20420$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20421
20422
20423$as_echo "#define vprintf rpl_vprintf" >>confdefs.h
20424
20425
20426$as_echo "#define vfprintf rpl_vfprintf" >>confdefs.h
20427
20428
20429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20430$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20431if ${ac_cv_c_const+:} false; then :
20432  $as_echo_n "(cached) " >&6
20433else
20434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435/* end confdefs.h.  */
20436
20437int
20438main ()
20439{
20440
20441#ifndef __cplusplus
20442  /* Ultrix mips cc rejects this sort of thing.  */
20443  typedef int charset[2];
20444  const charset cs = { 0, 0 };
20445  /* SunOS 4.1.1 cc rejects this.  */
20446  char const *const *pcpcc;
20447  char **ppc;
20448  /* NEC SVR4.0.2 mips cc rejects this.  */
20449  struct point {int x, y;};
20450  static struct point const zero = {0,0};
20451  /* AIX XL C 1.02.0.0 rejects this.
20452     It does not let you subtract one const X* pointer from another in
20453     an arm of an if-expression whose if-part is not a constant
20454     expression */
20455  const char *g = "string";
20456  pcpcc = &g + (g ? g-g : 0);
20457  /* HPUX 7.0 cc rejects these. */
20458  ++pcpcc;
20459  ppc = (char**) pcpcc;
20460  pcpcc = (char const *const *) ppc;
20461  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20462    char tx;
20463    char *t = &tx;
20464    char const *s = 0 ? (char *) 0 : (char const *) 0;
20465
20466    *t++ = 0;
20467    if (s) return 0;
20468  }
20469  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20470    int x[] = {25, 17};
20471    const int *foo = &x[0];
20472    ++foo;
20473  }
20474  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20475    typedef const int *iptr;
20476    iptr p = 0;
20477    ++p;
20478  }
20479  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20480       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20481    struct s { int j; const int *ap[3]; } bx;
20482    struct s *b = &bx; b->j = 5;
20483  }
20484  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20485    const int foo = 10;
20486    if (!foo) return 0;
20487  }
20488  return !cs[0] && !zero.x;
20489#endif
20490
20491  ;
20492  return 0;
20493}
20494_ACEOF
20495if ac_fn_c_try_compile "$LINENO"; then :
20496  ac_cv_c_const=yes
20497else
20498  ac_cv_c_const=no
20499fi
20500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501fi
20502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20503$as_echo "$ac_cv_c_const" >&6; }
20504if test $ac_cv_c_const = no; then
20505
20506$as_echo "#define const /**/" >>confdefs.h
20507
20508fi
20509
20510
20511  for ac_header in stdarg.h
20512do :
20513  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20514if test "x$ac_cv_header_stdarg_h" = xyes; then :
20515  cat >>confdefs.h <<_ACEOF
20516#define HAVE_STDARG_H 1
20517_ACEOF
20518
20519fi
20520
20521done
20522
20523
20524  case " $LIBOBJS " in
20525  *" snprintf.$ac_objext "* ) ;;
20526  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20527 ;;
20528esac
20529
20530
20531
20532fi
20533
20534
20535    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20536if test "x$ac_cv_func_snprintf" = xyes; then :
20537  hw_cv_func_snprintf=yes
20538else
20539  hw_cv_func_snprintf=no
20540fi
20541
20542  if test "$hw_cv_func_snprintf" = yes; then :
20543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20544$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20545if ${hw_cv_func_snprintf_c99+:} false; then :
20546  $as_echo_n "(cached) " >&6
20547else
20548  if test "$cross_compiling" = yes; then :
20549  hw_cv_func_snprintf_c99=no
20550else
20551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552/* end confdefs.h.  */
20553#include <stdio.h>
20554int
20555main ()
20556{
20557char buf[43];
20558          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20559              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20560              buf[0] != 'T' || buf[3] != '\0' ||
20561	      snprintf(NULL, 0, "") != 0 ||     /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */
20562	      snprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51)
20563            return 1;
20564  ;
20565  return 0;
20566}
20567_ACEOF
20568if ac_fn_c_try_run "$LINENO"; then :
20569  hw_cv_func_snprintf_c99=yes
20570else
20571  hw_cv_func_snprintf_c99=no
20572fi
20573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20574  conftest.$ac_objext conftest.beam conftest.$ac_ext
20575fi
20576
20577fi
20578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20579$as_echo "$hw_cv_func_snprintf_c99" >&6; }
20580else
20581  hw_cv_func_snprintf_c99=no
20582fi
20583  if test "$hw_cv_func_snprintf_c99" = yes; then :
20584
20585$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20586
20587else
20588
20589
20590$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20591
20592
20593$as_echo "#define printf rpl_printf" >>confdefs.h
20594
20595
20596$as_echo "#define fprintf rpl_fprintf" >>confdefs.h
20597
20598
20599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20600$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20601if ${ac_cv_c_const+:} false; then :
20602  $as_echo_n "(cached) " >&6
20603else
20604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h.  */
20606
20607int
20608main ()
20609{
20610
20611#ifndef __cplusplus
20612  /* Ultrix mips cc rejects this sort of thing.  */
20613  typedef int charset[2];
20614  const charset cs = { 0, 0 };
20615  /* SunOS 4.1.1 cc rejects this.  */
20616  char const *const *pcpcc;
20617  char **ppc;
20618  /* NEC SVR4.0.2 mips cc rejects this.  */
20619  struct point {int x, y;};
20620  static struct point const zero = {0,0};
20621  /* AIX XL C 1.02.0.0 rejects this.
20622     It does not let you subtract one const X* pointer from another in
20623     an arm of an if-expression whose if-part is not a constant
20624     expression */
20625  const char *g = "string";
20626  pcpcc = &g + (g ? g-g : 0);
20627  /* HPUX 7.0 cc rejects these. */
20628  ++pcpcc;
20629  ppc = (char**) pcpcc;
20630  pcpcc = (char const *const *) ppc;
20631  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20632    char tx;
20633    char *t = &tx;
20634    char const *s = 0 ? (char *) 0 : (char const *) 0;
20635
20636    *t++ = 0;
20637    if (s) return 0;
20638  }
20639  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20640    int x[] = {25, 17};
20641    const int *foo = &x[0];
20642    ++foo;
20643  }
20644  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20645    typedef const int *iptr;
20646    iptr p = 0;
20647    ++p;
20648  }
20649  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20650       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20651    struct s { int j; const int *ap[3]; } bx;
20652    struct s *b = &bx; b->j = 5;
20653  }
20654  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20655    const int foo = 10;
20656    if (!foo) return 0;
20657  }
20658  return !cs[0] && !zero.x;
20659#endif
20660
20661  ;
20662  return 0;
20663}
20664_ACEOF
20665if ac_fn_c_try_compile "$LINENO"; then :
20666  ac_cv_c_const=yes
20667else
20668  ac_cv_c_const=no
20669fi
20670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671fi
20672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20673$as_echo "$ac_cv_c_const" >&6; }
20674if test $ac_cv_c_const = no; then
20675
20676$as_echo "#define const /**/" >>confdefs.h
20677
20678fi
20679
20680
20681  for ac_header in stdarg.h
20682do :
20683  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20684if test "x$ac_cv_header_stdarg_h" = xyes; then :
20685  cat >>confdefs.h <<_ACEOF
20686#define HAVE_STDARG_H 1
20687_ACEOF
20688
20689fi
20690
20691done
20692
20693
20694  case " $LIBOBJS " in
20695  *" snprintf.$ac_objext "* ) ;;
20696  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20697 ;;
20698esac
20699
20700
20701
20702fi
20703
20704
20705  for ac_header in varargs.h
20706do :
20707  ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
20708if test "x$ac_cv_header_varargs_h" = xyes; then :
20709  cat >>confdefs.h <<_ACEOF
20710#define HAVE_VARARGS_H 1
20711_ACEOF
20712
20713fi
20714
20715done
20716
20717
20718
20719    # Don't even bother checking for vasprintf if snprintf was standards
20720  # incompliant, this one is going to be too.
20721  if test "$hw_cv_func_snprintf_c99" = yes; then :
20722  for ac_func in vasprintf
20723do :
20724  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
20725if test "x$ac_cv_func_vasprintf" = xyes; then :
20726  cat >>confdefs.h <<_ACEOF
20727#define HAVE_VASPRINTF 1
20728_ACEOF
20729 hw_cv_func_vasprintf=yes
20730else
20731  hw_cv_func_vasprintf=no
20732fi
20733done
20734
20735
20736else
20737  hw_cv_func_vasprintf=no
20738fi
20739  if test "$hw_cv_func_vasprintf" = no; then :
20740
20741$as_echo "#define vasprintf rpl_vasprintf" >>confdefs.h
20742
20743    for ac_header in stdlib.h
20744do :
20745  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20746if test "x$ac_cv_header_stdlib_h" = xyes; then :
20747  cat >>confdefs.h <<_ACEOF
20748#define HAVE_STDLIB_H 1
20749_ACEOF
20750
20751fi
20752
20753done
20754
20755
20756      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20757$as_echo_n "checking for va_copy... " >&6; }
20758if ${hw_cv_func_va_copy+:} false; then :
20759  $as_echo_n "(cached) " >&6
20760else
20761  if test "$cross_compiling" = yes; then :
20762  hw_cv_func_va_copy=no
20763else
20764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765/* end confdefs.h.  */
20766#if HAVE_STDARG_H
20767        #include <stdarg.h>
20768        #elif HAVE_VARARGS_H
20769        #include <varargs.h>
20770        #endif
20771int
20772main ()
20773{
20774va_list ap, aq; va_copy(aq, ap);
20775  ;
20776  return 0;
20777}
20778_ACEOF
20779if ac_fn_c_try_run "$LINENO"; then :
20780  hw_cv_func_va_copy=yes
20781else
20782  hw_cv_func_va_copy=no
20783fi
20784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20785  conftest.$ac_objext conftest.beam conftest.$ac_ext
20786fi
20787
20788fi
20789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5
20790$as_echo "$hw_cv_func_va_copy" >&6; }
20791  if test "$hw_cv_func_va_copy" = yes; then :
20792
20793$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
20794
20795fi
20796
20797    if test "$hw_cv_func_va_copy" = no; then :
20798
20799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
20800$as_echo_n "checking for __va_copy... " >&6; }
20801if ${hw_cv_func___va_copy+:} false; then :
20802  $as_echo_n "(cached) " >&6
20803else
20804  if test "$cross_compiling" = yes; then :
20805  hw_cv_func___va_copy=no
20806else
20807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20808/* end confdefs.h.  */
20809#if HAVE_STDARG_H
20810        #include <stdarg.h>
20811        #elif HAVE_VARARGS_H
20812        #include <varargs.h>
20813        #endif
20814int
20815main ()
20816{
20817va_list ap, aq; __va_copy(aq, ap);
20818  ;
20819  return 0;
20820}
20821_ACEOF
20822if ac_fn_c_try_run "$LINENO"; then :
20823  hw_cv_func___va_copy=yes
20824else
20825  hw_cv_func___va_copy=no
20826fi
20827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20828  conftest.$ac_objext conftest.beam conftest.$ac_ext
20829fi
20830
20831fi
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5
20833$as_echo "$hw_cv_func___va_copy" >&6; }
20834  if test "$hw_cv_func___va_copy" = yes; then :
20835
20836$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
20837
20838fi
20839
20840fi
20841
20842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20843$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20844if ${ac_cv_c_const+:} false; then :
20845  $as_echo_n "(cached) " >&6
20846else
20847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848/* end confdefs.h.  */
20849
20850int
20851main ()
20852{
20853
20854#ifndef __cplusplus
20855  /* Ultrix mips cc rejects this sort of thing.  */
20856  typedef int charset[2];
20857  const charset cs = { 0, 0 };
20858  /* SunOS 4.1.1 cc rejects this.  */
20859  char const *const *pcpcc;
20860  char **ppc;
20861  /* NEC SVR4.0.2 mips cc rejects this.  */
20862  struct point {int x, y;};
20863  static struct point const zero = {0,0};
20864  /* AIX XL C 1.02.0.0 rejects this.
20865     It does not let you subtract one const X* pointer from another in
20866     an arm of an if-expression whose if-part is not a constant
20867     expression */
20868  const char *g = "string";
20869  pcpcc = &g + (g ? g-g : 0);
20870  /* HPUX 7.0 cc rejects these. */
20871  ++pcpcc;
20872  ppc = (char**) pcpcc;
20873  pcpcc = (char const *const *) ppc;
20874  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20875    char tx;
20876    char *t = &tx;
20877    char const *s = 0 ? (char *) 0 : (char const *) 0;
20878
20879    *t++ = 0;
20880    if (s) return 0;
20881  }
20882  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20883    int x[] = {25, 17};
20884    const int *foo = &x[0];
20885    ++foo;
20886  }
20887  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20888    typedef const int *iptr;
20889    iptr p = 0;
20890    ++p;
20891  }
20892  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20893       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20894    struct s { int j; const int *ap[3]; } bx;
20895    struct s *b = &bx; b->j = 5;
20896  }
20897  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20898    const int foo = 10;
20899    if (!foo) return 0;
20900  }
20901  return !cs[0] && !zero.x;
20902#endif
20903
20904  ;
20905  return 0;
20906}
20907_ACEOF
20908if ac_fn_c_try_compile "$LINENO"; then :
20909  ac_cv_c_const=yes
20910else
20911  ac_cv_c_const=no
20912fi
20913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914fi
20915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20916$as_echo "$ac_cv_c_const" >&6; }
20917if test $ac_cv_c_const = no; then
20918
20919$as_echo "#define const /**/" >>confdefs.h
20920
20921fi
20922
20923
20924  for ac_header in stdarg.h
20925do :
20926  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20927if test "x$ac_cv_header_stdarg_h" = xyes; then :
20928  cat >>confdefs.h <<_ACEOF
20929#define HAVE_STDARG_H 1
20930_ACEOF
20931
20932fi
20933
20934done
20935
20936
20937  case " $LIBOBJS " in
20938  *" snprintf.$ac_objext "* ) ;;
20939  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20940 ;;
20941esac
20942
20943
20944fi
20945
20946
20947    # Don't even bother checking for asprintf if snprintf was standards
20948  # incompliant, this one is going to be too.
20949  if test "$hw_cv_func_snprintf_c99" = yes; then :
20950  for ac_func in asprintf
20951do :
20952  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
20953if test "x$ac_cv_func_asprintf" = xyes; then :
20954  cat >>confdefs.h <<_ACEOF
20955#define HAVE_ASPRINTF 1
20956_ACEOF
20957 hw_cv_func_asprintf=yes
20958else
20959  hw_cv_func_asprintf=no
20960fi
20961done
20962
20963
20964else
20965  hw_cv_func_asprintf=no
20966fi
20967  if test "$hw_cv_func_asprintf" = no; then :
20968
20969$as_echo "#define asprintf rpl_asprintf" >>confdefs.h
20970
20971
20972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20973$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20974if ${ac_cv_c_const+:} false; then :
20975  $as_echo_n "(cached) " >&6
20976else
20977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20978/* end confdefs.h.  */
20979
20980int
20981main ()
20982{
20983
20984#ifndef __cplusplus
20985  /* Ultrix mips cc rejects this sort of thing.  */
20986  typedef int charset[2];
20987  const charset cs = { 0, 0 };
20988  /* SunOS 4.1.1 cc rejects this.  */
20989  char const *const *pcpcc;
20990  char **ppc;
20991  /* NEC SVR4.0.2 mips cc rejects this.  */
20992  struct point {int x, y;};
20993  static struct point const zero = {0,0};
20994  /* AIX XL C 1.02.0.0 rejects this.
20995     It does not let you subtract one const X* pointer from another in
20996     an arm of an if-expression whose if-part is not a constant
20997     expression */
20998  const char *g = "string";
20999  pcpcc = &g + (g ? g-g : 0);
21000  /* HPUX 7.0 cc rejects these. */
21001  ++pcpcc;
21002  ppc = (char**) pcpcc;
21003  pcpcc = (char const *const *) ppc;
21004  { /* SCO 3.2v4 cc rejects this sort of thing.  */
21005    char tx;
21006    char *t = &tx;
21007    char const *s = 0 ? (char *) 0 : (char const *) 0;
21008
21009    *t++ = 0;
21010    if (s) return 0;
21011  }
21012  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21013    int x[] = {25, 17};
21014    const int *foo = &x[0];
21015    ++foo;
21016  }
21017  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21018    typedef const int *iptr;
21019    iptr p = 0;
21020    ++p;
21021  }
21022  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21023       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21024    struct s { int j; const int *ap[3]; } bx;
21025    struct s *b = &bx; b->j = 5;
21026  }
21027  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21028    const int foo = 10;
21029    if (!foo) return 0;
21030  }
21031  return !cs[0] && !zero.x;
21032#endif
21033
21034  ;
21035  return 0;
21036}
21037_ACEOF
21038if ac_fn_c_try_compile "$LINENO"; then :
21039  ac_cv_c_const=yes
21040else
21041  ac_cv_c_const=no
21042fi
21043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044fi
21045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21046$as_echo "$ac_cv_c_const" >&6; }
21047if test $ac_cv_c_const = no; then
21048
21049$as_echo "#define const /**/" >>confdefs.h
21050
21051fi
21052
21053
21054  for ac_header in stdarg.h
21055do :
21056  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
21057if test "x$ac_cv_header_stdarg_h" = xyes; then :
21058  cat >>confdefs.h <<_ACEOF
21059#define HAVE_STDARG_H 1
21060_ACEOF
21061
21062fi
21063
21064done
21065
21066
21067  case " $LIBOBJS " in
21068  *" snprintf.$ac_objext "* ) ;;
21069  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21070 ;;
21071esac
21072
21073
21074fi
21075
21076
21077
21078ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$ac_includes_default
21079#ifdef HAVE_DIRENT_H
21080# include <dirent.h>
21081#endif
21082
21083"
21084if test "x$ac_cv_have_decl_dirfd" = xyes; then :
21085  ac_have_decl=1
21086else
21087  ac_have_decl=0
21088fi
21089
21090cat >>confdefs.h <<_ACEOF
21091#define HAVE_DECL_DIRFD $ac_have_decl
21092_ACEOF
21093
21094
21095for ac_func in dirfd
21096do :
21097  ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
21098if test "x$ac_cv_func_dirfd" = xyes; then :
21099  cat >>confdefs.h <<_ACEOF
21100#define HAVE_DIRFD 1
21101_ACEOF
21102
21103else
21104
21105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd macro" >&5
21106$as_echo_n "checking for dirfd macro... " >&6; }
21107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108/* end confdefs.h.  */
21109$ac_includes_default
21110    #ifdef HAVE_DIRENT_H
21111    # include <dirent.h>
21112    #endif
21113    #ifdef dirfd
21114      dirfd_found
21115    #endif
21116
21117_ACEOF
21118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21119  $EGREP "dirfd_found" >/dev/null 2>&1; then :
21120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21121$as_echo "yes" >&6; }
21122  DIRFD_MACRO_FOUND=1
21123else
21124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21125$as_echo "no" >&6; }
21126fi
21127rm -f conftest*
21128
21129  if test x$DIRFD_MACRO_FOUND = x; then
21130    case " $LIBOBJS " in
21131  *" dirfd.$ac_objext "* ) ;;
21132  *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
21133 ;;
21134esac
21135
21136  fi
21137fi
21138done
21139
21140
21141for ac_func in jail_get
21142do :
21143  ac_fn_c_check_func "$LINENO" "jail_get" "ac_cv_func_jail_get"
21144if test "x$ac_cv_func_jail_get" = xyes; then :
21145  cat >>confdefs.h <<_ACEOF
21146#define HAVE_JAIL_GET 1
21147_ACEOF
21148
21149fi
21150done
21151
21152
21153
21154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
21155$as_echo_n "checking for library containing setsockopt... " >&6; }
21156if ${ac_cv_search_setsockopt+:} false; then :
21157  $as_echo_n "(cached) " >&6
21158else
21159  ac_func_search_save_LIBS=$LIBS
21160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161/* end confdefs.h.  */
21162
21163/* Override any GCC internal prototype to avoid an error.
21164   Use char because int might match the return type of a GCC
21165   builtin and then its argument prototype would still apply.  */
21166#ifdef __cplusplus
21167extern "C"
21168#endif
21169char setsockopt ();
21170int
21171main ()
21172{
21173return setsockopt ();
21174  ;
21175  return 0;
21176}
21177_ACEOF
21178for ac_lib in '' socket; do
21179  if test -z "$ac_lib"; then
21180    ac_res="none required"
21181  else
21182    ac_res=-l$ac_lib
21183    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21184  fi
21185  if ac_fn_c_try_link "$LINENO"; then :
21186  ac_cv_search_setsockopt=$ac_res
21187fi
21188rm -f core conftest.err conftest.$ac_objext \
21189    conftest$ac_exeext
21190  if ${ac_cv_search_setsockopt+:} false; then :
21191  break
21192fi
21193done
21194if ${ac_cv_search_setsockopt+:} false; then :
21195
21196else
21197  ac_cv_search_setsockopt=no
21198fi
21199rm conftest.$ac_ext
21200LIBS=$ac_func_search_save_LIBS
21201fi
21202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
21203$as_echo "$ac_cv_search_setsockopt" >&6; }
21204ac_res=$ac_cv_search_setsockopt
21205if test "$ac_res" != no; then :
21206  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21207
21208fi
21209
21210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
21211$as_echo_n "checking for library containing gethostent... " >&6; }
21212if ${ac_cv_search_gethostent+:} false; then :
21213  $as_echo_n "(cached) " >&6
21214else
21215  ac_func_search_save_LIBS=$LIBS
21216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217/* end confdefs.h.  */
21218
21219/* Override any GCC internal prototype to avoid an error.
21220   Use char because int might match the return type of a GCC
21221   builtin and then its argument prototype would still apply.  */
21222#ifdef __cplusplus
21223extern "C"
21224#endif
21225char gethostent ();
21226int
21227main ()
21228{
21229return gethostent ();
21230  ;
21231  return 0;
21232}
21233_ACEOF
21234for ac_lib in '' nsl; do
21235  if test -z "$ac_lib"; then
21236    ac_res="none required"
21237  else
21238    ac_res=-l$ac_lib
21239    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21240  fi
21241  if ac_fn_c_try_link "$LINENO"; then :
21242  ac_cv_search_gethostent=$ac_res
21243fi
21244rm -f core conftest.err conftest.$ac_objext \
21245    conftest$ac_exeext
21246  if ${ac_cv_search_gethostent+:} false; then :
21247  break
21248fi
21249done
21250if ${ac_cv_search_gethostent+:} false; then :
21251
21252else
21253  ac_cv_search_gethostent=no
21254fi
21255rm conftest.$ac_ext
21256LIBS=$ac_func_search_save_LIBS
21257fi
21258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
21259$as_echo "$ac_cv_search_gethostent" >&6; }
21260ac_res=$ac_cv_search_gethostent
21261if test "$ac_res" != no; then :
21262  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21263
21264fi
21265
21266
21267for ac_func in socket
21268do :
21269  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21270if test "x$ac_cv_func_socket" = xyes; then :
21271  cat >>confdefs.h <<_ACEOF
21272#define HAVE_SOCKET 1
21273_ACEOF
21274
21275fi
21276done
21277
21278for ac_func in setsockopt
21279do :
21280  ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
21281if test "x$ac_cv_func_setsockopt" = xyes; then :
21282  cat >>confdefs.h <<_ACEOF
21283#define HAVE_SETSOCKOPT 1
21284_ACEOF
21285
21286fi
21287done
21288
21289for ac_func in gethostent
21290do :
21291  ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
21292if test "x$ac_cv_func_gethostent" = xyes; then :
21293  cat >>confdefs.h <<_ACEOF
21294#define HAVE_GETHOSTENT 1
21295_ACEOF
21296
21297fi
21298done
21299
21300
21301ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21302#if HAVE_WINSOCK2_H
21303    #include <winsock2.h>
21304#endif
21305#if HAVE_WS2TCPIP_H
21306    #include <ws2tcpip.h>
21307#else
21308    #include <sys/socket.h>
21309    #include <netdb.h>
21310#endif
21311"
21312if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21313
21314cat >>confdefs.h <<_ACEOF
21315#define HAVE_STRUCT_SOCKADDR_STORAGE 1
21316_ACEOF
21317
21318
21319fi
21320
21321
21322ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
21323#if HAVE_WINSOCK2_H
21324    #include <winsock2.h>
21325#endif
21326#if HAVE_WS2TCPIP_H
21327    #include <ws2tcpip.h>
21328#else
21329    #include <sys/socket.h>
21330    #include <netdb.h>
21331#endif
21332
21333"
21334if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
21335  ac_have_decl=1
21336else
21337  ac_have_decl=0
21338fi
21339
21340cat >>confdefs.h <<_ACEOF
21341#define HAVE_DECL_GETADDRINFO $ac_have_decl
21342_ACEOF
21343if test $ac_have_decl = 1; then :
21344
21345else
21346  case " $LIBOBJS " in
21347  *" getaddrinfo.$ac_objext "* ) ;;
21348  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21349 ;;
21350esac
21351
21352fi
21353
21354
21355ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
21356"
21357if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
21358  ac_have_decl=1
21359else
21360  ac_have_decl=0
21361fi
21362
21363cat >>confdefs.h <<_ACEOF
21364#define HAVE_DECL_INET_NTOP $ac_have_decl
21365_ACEOF
21366ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
21367"
21368if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
21369  ac_have_decl=1
21370else
21371  ac_have_decl=0
21372fi
21373
21374cat >>confdefs.h <<_ACEOF
21375#define HAVE_DECL_INET_PTON $ac_have_decl
21376_ACEOF
21377
21378ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21379if test "x$ac_cv_func_inet_ntop" = xyes; then :
21380  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
21381
21382else
21383  case " $LIBOBJS " in
21384  *" inet_ntop.$ac_objext "* ) ;;
21385  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
21386 ;;
21387esac
21388
21389fi
21390
21391ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
21392if test "x$ac_cv_func_inet_pton" = xyes; then :
21393  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
21394
21395else
21396  case " $LIBOBJS " in
21397  *" inet_pton.$ac_objext "* ) ;;
21398  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
21399 ;;
21400esac
21401
21402fi
21403
21404
21405
21406for ac_func in getifaddrs
21407do :
21408  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21409if test "x$ac_cv_func_getifaddrs" = xyes; then :
21410  cat >>confdefs.h <<_ACEOF
21411#define HAVE_GETIFADDRS 1
21412_ACEOF
21413
21414fi
21415done
21416
21417
21418for ac_func in getprocs64
21419do :
21420  ac_fn_c_check_func "$LINENO" "getprocs64" "ac_cv_func_getprocs64"
21421if test "x$ac_cv_func_getprocs64" = xyes; then :
21422  cat >>confdefs.h <<_ACEOF
21423#define HAVE_GETPROCS64 1
21424_ACEOF
21425
21426fi
21427done
21428
21429
21430ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
21431if test "x$ac_cv_func_lchown" = xyes; then :
21432
21433$as_echo "#define HAVE_LCHOWN 1" >>confdefs.h
21434
21435fi
21436
21437
21438ac_fn_c_check_decl "$LINENO" "pthread_attr_setstacksize" "ac_cv_have_decl_pthread_attr_setstacksize" "#include <pthread.h>
21439"
21440if test "x$ac_cv_have_decl_pthread_attr_setstacksize" = xyes; then :
21441  ac_have_decl=1
21442else
21443  ac_have_decl=0
21444fi
21445
21446cat >>confdefs.h <<_ACEOF
21447#define HAVE_DECL_PTHREAD_ATTR_SETSTACKSIZE $ac_have_decl
21448_ACEOF
21449
21450ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
21451if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then :
21452  $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
21453
21454else
21455  case " $LIBOBJS " in
21456  *" pthread_attr_setstacksize.$ac_objext "* ) ;;
21457  *) LIBOBJS="$LIBOBJS pthread_attr_setstacksize.$ac_objext"
21458 ;;
21459esac
21460
21461fi
21462
21463
21464
21465ac_fn_c_check_decl "$LINENO" "pthread_sigmask" "ac_cv_have_decl_pthread_sigmask" "#include <signal.h>
21466"
21467if test "x$ac_cv_have_decl_pthread_sigmask" = xyes; then :
21468  ac_have_decl=1
21469else
21470  ac_have_decl=0
21471fi
21472
21473cat >>confdefs.h <<_ACEOF
21474#define HAVE_DECL_PTHREAD_SIGMASK $ac_have_decl
21475_ACEOF
21476
21477ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
21478if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
21479  $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21480
21481else
21482  case " $LIBOBJS " in
21483  *" pthread_sigmask.$ac_objext "* ) ;;
21484  *) LIBOBJS="$LIBOBJS pthread_sigmask.$ac_objext"
21485 ;;
21486esac
21487
21488fi
21489
21490
21491
21492ac_fn_c_check_decl "$LINENO" "sched_yield" "ac_cv_have_decl_sched_yield" "#include <sched.h>
21493"
21494if test "x$ac_cv_have_decl_sched_yield" = xyes; then :
21495  ac_have_decl=1
21496else
21497  ac_have_decl=0
21498fi
21499
21500cat >>confdefs.h <<_ACEOF
21501#define HAVE_DECL_SCHED_YIELD $ac_have_decl
21502_ACEOF
21503
21504for ac_func in sched_yield
21505do :
21506  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21507if test "x$ac_cv_func_sched_yield" = xyes; then :
21508  cat >>confdefs.h <<_ACEOF
21509#define HAVE_SCHED_YIELD 1
21510_ACEOF
21511
21512fi
21513done
21514
21515
21516ac_fn_c_check_decl "$LINENO" "openat" "ac_cv_have_decl_openat" "#define _GNU_SOURCE 1
21517                                   #include <fcntl.h>
21518"
21519if test "x$ac_cv_have_decl_openat" = xyes; then :
21520  ac_have_decl=1
21521else
21522  ac_have_decl=0
21523fi
21524
21525cat >>confdefs.h <<_ACEOF
21526#define HAVE_DECL_OPENAT $ac_have_decl
21527_ACEOF
21528
21529ac_fn_c_check_decl "$LINENO" "fstatat" "ac_cv_have_decl_fstatat" "#define _GNU_SOURCE 1
21530                                    #include <sys/stat.h>
21531"
21532if test "x$ac_cv_have_decl_fstatat" = xyes; then :
21533  ac_have_decl=1
21534else
21535  ac_have_decl=0
21536fi
21537
21538cat >>confdefs.h <<_ACEOF
21539#define HAVE_DECL_FSTATAT $ac_have_decl
21540_ACEOF
21541
21542ac_fn_c_check_decl "$LINENO" "fchownat" "ac_cv_have_decl_fchownat" "#define _GNU_SOURCE 1
21543                                     #include <unistd.h>
21544"
21545if test "x$ac_cv_have_decl_fchownat" = xyes; then :
21546  ac_have_decl=1
21547else
21548  ac_have_decl=0
21549fi
21550
21551cat >>confdefs.h <<_ACEOF
21552#define HAVE_DECL_FCHOWNAT $ac_have_decl
21553_ACEOF
21554
21555ac_fn_c_check_decl "$LINENO" "fchmodat" "ac_cv_have_decl_fchmodat" "#define _GNU_SOURCE 1
21556                                    #include <sys/stat.h>
21557"
21558if test "x$ac_cv_have_decl_fchmodat" = xyes; then :
21559  ac_have_decl=1
21560else
21561  ac_have_decl=0
21562fi
21563
21564cat >>confdefs.h <<_ACEOF
21565#define HAVE_DECL_FCHMODAT $ac_have_decl
21566_ACEOF
21567
21568ac_fn_c_check_decl "$LINENO" "readlinkat" "ac_cv_have_decl_readlinkat" "#define _GNU_SOURCE 1
21569                                       #include <unistd.h>
21570"
21571if test "x$ac_cv_have_decl_readlinkat" = xyes; then :
21572  ac_have_decl=1
21573else
21574  ac_have_decl=0
21575fi
21576
21577cat >>confdefs.h <<_ACEOF
21578#define HAVE_DECL_READLINKAT $ac_have_decl
21579_ACEOF
21580
21581ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
21582if test "x$ac_cv_func_openat" = xyes; then :
21583  $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
21584
21585else
21586  case " $LIBOBJS " in
21587  *" openat.$ac_objext "* ) ;;
21588  *) LIBOBJS="$LIBOBJS openat.$ac_objext"
21589 ;;
21590esac
21591
21592fi
21593
21594ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
21595if test "x$ac_cv_func_fstatat" = xyes; then :
21596  $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
21597
21598else
21599  case " $LIBOBJS " in
21600  *" fstatat.$ac_objext "* ) ;;
21601  *) LIBOBJS="$LIBOBJS fstatat.$ac_objext"
21602 ;;
21603esac
21604
21605fi
21606
21607ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
21608if test "x$ac_cv_func_fchownat" = xyes; then :
21609  $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
21610
21611else
21612  case " $LIBOBJS " in
21613  *" fchownat.$ac_objext "* ) ;;
21614  *) LIBOBJS="$LIBOBJS fchownat.$ac_objext"
21615 ;;
21616esac
21617
21618fi
21619
21620ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
21621if test "x$ac_cv_func_fchmodat" = xyes; then :
21622  $as_echo "#define HAVE_FCHMODAT 1" >>confdefs.h
21623
21624else
21625  case " $LIBOBJS " in
21626  *" fchmodat.$ac_objext "* ) ;;
21627  *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
21628 ;;
21629esac
21630
21631fi
21632
21633ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
21634if test "x$ac_cv_func_readlinkat" = xyes; then :
21635  $as_echo "#define HAVE_READLINKAT 1" >>confdefs.h
21636
21637else
21638  case " $LIBOBJS " in
21639  *" readlinkat.$ac_objext "* ) ;;
21640  *) LIBOBJS="$LIBOBJS readlinkat.$ac_objext"
21641 ;;
21642esac
21643
21644fi
21645
21646
21647
21648ac_fn_c_check_decl "$LINENO" "log2" "ac_cv_have_decl_log2" "#include <math.h>
21649"
21650if test "x$ac_cv_have_decl_log2" = xyes; then :
21651  ac_have_decl=1
21652else
21653  ac_have_decl=0
21654fi
21655
21656cat >>confdefs.h <<_ACEOF
21657#define HAVE_DECL_LOG2 $ac_have_decl
21658_ACEOF
21659
21660ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2"
21661if test "x$ac_cv_func_log2" = xyes; then :
21662  $as_echo "#define HAVE_LOG2 1" >>confdefs.h
21663
21664else
21665  case " $LIBOBJS " in
21666  *" log2.$ac_objext "* ) ;;
21667  *) LIBOBJS="$LIBOBJS log2.$ac_objext"
21668 ;;
21669esac
21670
21671fi
21672
21673
21674
21675ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
21676if test "x$ac_cv_func_fexecve" = xyes; then :
21677
21678$as_echo "#define HAVE_FEXECVE 1" >>confdefs.h
21679
21680fi
21681
21682
21683
21684ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21685if test "x$ac_cv_have_decl_alarm" = xyes; then :
21686  ac_have_decl=1
21687else
21688  ac_have_decl=0
21689fi
21690
21691cat >>confdefs.h <<_ACEOF
21692#define HAVE_DECL_ALARM $ac_have_decl
21693_ACEOF
21694
21695ac_fn_c_check_decl "$LINENO" "chmod" "ac_cv_have_decl_chmod" "$ac_includes_default"
21696if test "x$ac_cv_have_decl_chmod" = xyes; then :
21697  ac_have_decl=1
21698else
21699  ac_have_decl=0
21700fi
21701
21702cat >>confdefs.h <<_ACEOF
21703#define HAVE_DECL_CHMOD $ac_have_decl
21704_ACEOF
21705
21706ac_fn_c_check_decl "$LINENO" "chown" "ac_cv_have_decl_chown" "$ac_includes_default"
21707if test "x$ac_cv_have_decl_chown" = xyes; then :
21708  ac_have_decl=1
21709else
21710  ac_have_decl=0
21711fi
21712
21713cat >>confdefs.h <<_ACEOF
21714#define HAVE_DECL_CHOWN $ac_have_decl
21715_ACEOF
21716
21717ac_fn_c_check_decl "$LINENO" "fchmod" "ac_cv_have_decl_fchmod" "$ac_includes_default"
21718if test "x$ac_cv_have_decl_fchmod" = xyes; then :
21719  ac_have_decl=1
21720else
21721  ac_have_decl=0
21722fi
21723
21724cat >>confdefs.h <<_ACEOF
21725#define HAVE_DECL_FCHMOD $ac_have_decl
21726_ACEOF
21727
21728for ac_func in fchmod
21729do :
21730  ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
21731if test "x$ac_cv_func_fchmod" = xyes; then :
21732  cat >>confdefs.h <<_ACEOF
21733#define HAVE_FCHMOD 1
21734_ACEOF
21735
21736fi
21737done
21738
21739ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "$ac_includes_default"
21740if test "x$ac_cv_have_decl_uname" = xyes; then :
21741  ac_have_decl=1
21742else
21743  ac_have_decl=0
21744fi
21745
21746cat >>confdefs.h <<_ACEOF
21747#define HAVE_DECL_UNAME $ac_have_decl
21748_ACEOF
21749
21750ac_fn_c_check_decl "$LINENO" "getuid" "ac_cv_have_decl_getuid" "$ac_includes_default"
21751if test "x$ac_cv_have_decl_getuid" = xyes; then :
21752  ac_have_decl=1
21753else
21754  ac_have_decl=0
21755fi
21756
21757cat >>confdefs.h <<_ACEOF
21758#define HAVE_DECL_GETUID $ac_have_decl
21759_ACEOF
21760
21761ac_fn_c_check_decl "$LINENO" "getgid" "ac_cv_have_decl_getgid" "$ac_includes_default"
21762if test "x$ac_cv_have_decl_getgid" = xyes; then :
21763  ac_have_decl=1
21764else
21765  ac_have_decl=0
21766fi
21767
21768cat >>confdefs.h <<_ACEOF
21769#define HAVE_DECL_GETGID $ac_have_decl
21770_ACEOF
21771
21772ac_fn_c_check_decl "$LINENO" "lstat" "ac_cv_have_decl_lstat" "$ac_includes_default"
21773if test "x$ac_cv_have_decl_lstat" = xyes; then :
21774  ac_have_decl=1
21775else
21776  ac_have_decl=0
21777fi
21778
21779cat >>confdefs.h <<_ACEOF
21780#define HAVE_DECL_LSTAT $ac_have_decl
21781_ACEOF
21782
21783for ac_func in sleep
21784do :
21785  ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
21786if test "x$ac_cv_func_sleep" = xyes; then :
21787  cat >>confdefs.h <<_ACEOF
21788#define HAVE_SLEEP 1
21789_ACEOF
21790
21791fi
21792done
21793
21794ac_fn_c_check_decl "$LINENO" "socketpair" "ac_cv_have_decl_socketpair" "#include <sys/socket.h>
21795"
21796if test "x$ac_cv_have_decl_socketpair" = xyes; then :
21797  ac_have_decl=1
21798else
21799  ac_have_decl=0
21800fi
21801
21802cat >>confdefs.h <<_ACEOF
21803#define HAVE_DECL_SOCKETPAIR $ac_have_decl
21804_ACEOF
21805
21806ac_fn_c_check_decl "$LINENO" "fsync" "ac_cv_have_decl_fsync" "$ac_includes_default"
21807if test "x$ac_cv_have_decl_fsync" = xyes; then :
21808  ac_have_decl=1
21809else
21810  ac_have_decl=0
21811fi
21812
21813cat >>confdefs.h <<_ACEOF
21814#define HAVE_DECL_FSYNC $ac_have_decl
21815_ACEOF
21816
21817ac_fn_c_check_decl "$LINENO" "glob" "ac_cv_have_decl_glob" "#include <glob.h>
21818"
21819if test "x$ac_cv_have_decl_glob" = xyes; then :
21820  ac_have_decl=1
21821else
21822  ac_have_decl=0
21823fi
21824
21825cat >>confdefs.h <<_ACEOF
21826#define HAVE_DECL_GLOB $ac_have_decl
21827_ACEOF
21828
21829
21830
21831ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
21832#include <sys/types.h>
21833#include <sys/socket.h>
21834"
21835if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
21836
21837cat >>confdefs.h <<_ACEOF
21838#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
21839_ACEOF
21840
21841
21842fi
21843
21844
21845ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "
21846#include <sys/ioctl.h>
21847#include <net/if.h>
21848"
21849if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
21850
21851cat >>confdefs.h <<_ACEOF
21852#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
21853_ACEOF
21854
21855
21856fi
21857
21858
21859for ac_header in sys/sysctl.h
21860do :
21861  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21862#ifdef HAVE_SYS_PARAM_H
21863# include <sys/param.h>
21864#endif
21865
21866"
21867if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21868  cat >>confdefs.h <<_ACEOF
21869#define HAVE_SYS_SYSCTL_H 1
21870_ACEOF
21871
21872fi
21873
21874done
21875
21876
21877ac_fn_c_check_member "$LINENO" "struct sysinfo" "uptime" "ac_cv_member_struct_sysinfo_uptime" "#include <sys/sysinfo.h>
21878"
21879if test "x$ac_cv_member_struct_sysinfo_uptime" = xyes; then :
21880
21881cat >>confdefs.h <<_ACEOF
21882#define HAVE_STRUCT_SYSINFO_UPTIME 1
21883_ACEOF
21884
21885
21886fi
21887
21888
21889for ac_header in sys/sysctl.h
21890do :
21891  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21892#ifdef HAVE_SYS_PARAM_H
21893# include <sys/param.h>
21894#endif
21895
21896"
21897if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21898  cat >>confdefs.h <<_ACEOF
21899#define HAVE_SYS_SYSCTL_H 1
21900_ACEOF
21901
21902fi
21903
21904done
21905
21906
21907for ac_header in kstat.h
21908do :
21909  ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
21910if test "x$ac_cv_header_kstat_h" = xyes; then :
21911  cat >>confdefs.h <<_ACEOF
21912#define HAVE_KSTAT_H 1
21913_ACEOF
21914
21915fi
21916
21917done
21918
21919for ac_header in utmp.h
21920do :
21921  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
21922if test "x$ac_cv_header_utmp_h" = xyes; then :
21923  cat >>confdefs.h <<_ACEOF
21924#define HAVE_UTMP_H 1
21925_ACEOF
21926
21927fi
21928
21929done
21930
21931for ac_header in utmpx.h
21932do :
21933  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
21934if test "x$ac_cv_header_utmpx_h" = xyes; then :
21935  cat >>confdefs.h <<_ACEOF
21936#define HAVE_UTMPX_H 1
21937_ACEOF
21938
21939fi
21940
21941done
21942
21943
21944
21945rtry=none
21946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for either struct rtentry or struct ortentry" >&5
21947$as_echo_n "checking for either struct rtentry or struct ortentry... " >&6; }
21948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21949/* end confdefs.h.  */
21950#include <net/route.h>
21951
21952_ACEOF
21953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21954  $EGREP "rtentry" >/dev/null 2>&1; then :
21955  rtry=rtentry
21956fi
21957rm -f conftest*
21958
21959if test "$rtry" = rtentry; then
21960
21961$as_echo "#define HAVE_RTENTRY 1" >>confdefs.h
21962
21963fi
21964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21965/* end confdefs.h.  */
21966#include <net/route.h>
21967
21968_ACEOF
21969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21970  $EGREP "ortentry" >/dev/null 2>&1; then :
21971  rtry=ortentry
21972fi
21973rm -f conftest*
21974
21975if test "$rtry" = ortentry; then
21976
21977$as_echo "#define HAVE_ORTENTRY 1" >>confdefs.h
21978
21979fi
21980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtry" >&5
21981$as_echo "$rtry" >&6; }
21982
21983
21984for ac_func in llistxattr
21985do :
21986  ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
21987if test "x$ac_cv_func_llistxattr" = xyes; then :
21988  cat >>confdefs.h <<_ACEOF
21989#define HAVE_LLISTXATTR 1
21990_ACEOF
21991
21992$as_echo "#define WITH_XATTR 1" >>confdefs.h
21993
21994fi
21995done
21996
21997for ac_header in attr/xattr.h sys/xattr.h
21998do :
21999  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22002  cat >>confdefs.h <<_ACEOF
22003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22004_ACEOF
22005
22006fi
22007
22008done
22009
22010
22011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr functions have extra arguments" >&5
22012$as_echo_n "checking whether xattr functions have extra arguments... " >&6; }
22013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014/* end confdefs.h.  */
22015#include <sys/types.h>
22016                                    #include <sys/xattr.h>
22017int
22018main ()
22019{
22020(void)llistxattr("", 0, 0, 0);
22021                                    (void)lgetxattr("", "", 0, 0, 0, 0);
22022                                    (void)lsetxattr("", "", "", 0, 0, 0);
22023                                    (void)lremovexattr("", "", 0);
22024  ;
22025  return 0;
22026}
22027_ACEOF
22028if ac_fn_c_try_compile "$LINENO"; then :
22029
22030$as_echo "#define WITH_XATTR_EXTRA_ARGS 1" >>confdefs.h
22031
22032                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22033$as_echo "yes" >&6; }
22034else
22035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22036$as_echo "no" >&6; }
22037fi
22038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039
22040
22041# Check whether --enable-selinux was given.
22042if test "${enable_selinux+set}" = set; then :
22043  enableval=$enable_selinux;
22044fi
22045
22046
22047
22048CORE_CPPFLAGS="$LMDB_CPPFLAGS $TOKYOCABINET_CPPFLAGS $QDBM_CPPFLAGS $PCRE_CPPFLAGS $OPENSSL_CPPFLAGS $SQLITE3_CPPFLAGS $LIBACL_CPPFLAGS $LIBCURL_CPPFLAGS $LIBYAML_CPPFLAGS $POSTGRESQL_CPPFLAGS $MYSQL_CPPFLAGS $LIBXML2_CPPFLAGS $CPPFLAGS"
22049CORE_CFLAGS="$LMDB_CFLAGS $TOKYOCABINET_CFLAGS $QDBM_CFLAGS $PCRE_CFLAGS $OPENSSL_CFLAGS $SQLITE3_CFLAGS $LIBACL_CFLAGS $LIBCURL_CFLAGS $LIBYAML_CFLAGS $POSTGRESQL_CFLAGS $MYSQL_CFLAGS $LIBXML2_CFLAGS $CFLAGS"
22050CORE_LDFLAGS="$LMDB_LDFLAGS $TOKYOCABINET_LDFLAGS $QDBM_LDFLAGS $PCRE_LDFLAGS $OPENSSL_LDFLAGS $SQLITE3_LDFLAGS $LIBACL_LDFLAGS $LIBCURL_LDFLAGS $LIBYAML_LDFLAGS $POSTGRESQL_LDFLAGS $MYSQL_LDFLAGS $LIBXML2_LDFLAGS $LDFLAGS"
22051CORE_LIBS="$LMDB_LIBS $TOKYOCABINET_LIBS $QDBM_LIBS $PCRE_LIBS $OPENSSL_LIBS $SQLITE3_LIBS $LIBACL_LIBS $LIBCURL_LIBS $LIBYAML_LIBS $POSTGRESQL_LIBS $MYSQL_LIBS $LIBXML2_LIBS $LIBS"
22052
22053
22054
22055
22056
22057
22058ac_config_files="$ac_config_files configure_flags.env"
22059
22060
22061
22062case "$target_os" in
22063
22064   solaris2.8|solaris2.9)
22065
22066$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
22067
22068
22069$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22070
22071        ;;
22072   solaris2.10|solaris2.11)
22073
22074$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
22075
22076
22077$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22078
22079        ;;
22080   hpux*|hp-ux*)
22081
22082$as_echo "#define _PSTAT64 1" >>confdefs.h
22083
22084        ;;
22085   aix*)
22086        CPPFLAGS="$CPPFLAGS -w"
22087        ;;
22088   linux*|*bsd*|*gnu*)
22089        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnss_nis" >&5
22090$as_echo_n "checking for yp_get_default_domain in -lnss_nis... " >&6; }
22091if ${ac_cv_lib_nss_nis_yp_get_default_domain+:} false; then :
22092  $as_echo_n "(cached) " >&6
22093else
22094  ac_check_lib_save_LIBS=$LIBS
22095LIBS="-lnss_nis  $LIBS"
22096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097/* end confdefs.h.  */
22098
22099/* Override any GCC internal prototype to avoid an error.
22100   Use char because int might match the return type of a GCC
22101   builtin and then its argument prototype would still apply.  */
22102#ifdef __cplusplus
22103extern "C"
22104#endif
22105char yp_get_default_domain ();
22106int
22107main ()
22108{
22109return yp_get_default_domain ();
22110  ;
22111  return 0;
22112}
22113_ACEOF
22114if ac_fn_c_try_link "$LINENO"; then :
22115  ac_cv_lib_nss_nis_yp_get_default_domain=yes
22116else
22117  ac_cv_lib_nss_nis_yp_get_default_domain=no
22118fi
22119rm -f core conftest.err conftest.$ac_objext \
22120    conftest$ac_exeext conftest.$ac_ext
22121LIBS=$ac_check_lib_save_LIBS
22122fi
22123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_nis_yp_get_default_domain" >&5
22124$as_echo "$ac_cv_lib_nss_nis_yp_get_default_domain" >&6; }
22125if test "x$ac_cv_lib_nss_nis_yp_get_default_domain" = xyes; then :
22126  cat >>confdefs.h <<_ACEOF
22127#define HAVE_LIBNSS_NIS 1
22128_ACEOF
22129
22130  LIBS="-lnss_nis $LIBS"
22131
22132fi
22133
22134        ;;
22135   freebsd*|dragonfly*)
22136      if true; then
22137  FREEBSD_TRUE=
22138  FREEBSD_FALSE='#'
22139else
22140  FREEBSD_TRUE='#'
22141  FREEBSD_FALSE=
22142fi
22143
22144        ;;
22145   netbsd*)
22146        ;;
22147   unicos*)
22148        ;;
22149   cray*)
22150        ;;
22151   qnx*)
22152        ;;
22153   openbsd*|obsd*)
22154        ;;
22155   sysv4.2MP|unix_sv*)
22156        ;;
22157   cygwin*)
22158        ;;
22159   mingw*)
22160        ;;
22161   sco*)
22162        ;;
22163   darwin*)
22164        ;;
22165   *)
22166        as_fn_error $? "Unknown system type $target_os" "$LINENO" 5
22167        ;;
22168esac
22169
22170#
22171#  Copyright 2020 Northern.tech AS
22172#
22173#  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
22174#
22175#  This program is free software; you can redistribute it and/or modify it
22176#  under the terms of the GNU General Public License as published by the
22177#  Free Software Foundation; version 3.
22178#
22179#  This program is distributed in the hope that it will be useful,
22180#  but WITHOUT ANY WARRANTY; without even the implied warranty of
22181#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22182#  GNU General Public License for more details.
22183#
22184# You should have received a copy of the GNU General Public License
22185# along with this program; if not, write to the Free Software
22186# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
22187#
22188# To the extent this program is licensed as part of the Enterprise
22189# versions of CFEngine, the applicable Commercial Open Source License
22190# (COSL) may apply to this file if you as a licensee so wish it. See
22191# included file COSL.txt.
22192#
22193#
22194# OS kernels conditionals. Don't use those unless it is really needed (if code
22195# depends on the *kernel* feature, and even then -- some kernel features are
22196# shared by different kernels).
22197#
22198# Good example: use LINUX to select code which uses inotify and netlink sockets.
22199# Bad example: use LINUX to select code which parses output of coreutils' ps(1).
22200#
22201 if test -n "`echo ${target_os} | grep linux`"; then
22202  LINUX_TRUE=
22203  LINUX_FALSE='#'
22204else
22205  LINUX_TRUE='#'
22206  LINUX_FALSE=
22207fi
22208
22209 if test -n "`echo ${target_os} | grep darwin`"; then
22210  MACOSX_TRUE=
22211  MACOSX_FALSE='#'
22212else
22213  MACOSX_TRUE='#'
22214  MACOSX_FALSE=
22215fi
22216
22217 if test -n "`(echo ${target_os} | egrep 'solaris|sunos')`"; then
22218  SOLARIS_TRUE=
22219  SOLARIS_FALSE='#'
22220else
22221  SOLARIS_TRUE='#'
22222  SOLARIS_FALSE=
22223fi
22224
22225 if test -n "`(echo ${target_os} | egrep 'mingw|cygwin')`"; then
22226  NT_TRUE=
22227  NT_FALSE='#'
22228else
22229  NT_TRUE='#'
22230  NT_FALSE=
22231fi
22232
22233 if test -n "`(echo ${target_os} | egrep 'cygwin')`"; then
22234  CYGWIN_TRUE=
22235  CYGWIN_FALSE='#'
22236else
22237  CYGWIN_TRUE='#'
22238  CYGWIN_FALSE=
22239fi
22240
22241 if test -n "`(echo ${target_os} | grep aix)`"; then
22242  AIX_TRUE=
22243  AIX_FALSE='#'
22244else
22245  AIX_TRUE='#'
22246  AIX_FALSE=
22247fi
22248
22249 if test -n "`(echo ${target_os} | egrep 'hpux|hp-ux')`"; then
22250  HPUX_TRUE=
22251  HPUX_FALSE='#'
22252else
22253  HPUX_TRUE='#'
22254  HPUX_FALSE=
22255fi
22256
22257 if test -n "`(echo ${target_os} | grep freebsd)`"; then
22258  FREEBSD_TRUE=
22259  FREEBSD_FALSE='#'
22260else
22261  FREEBSD_TRUE='#'
22262  FREEBSD_FALSE=
22263fi
22264
22265 if test -n "`(echo ${target_os} | grep netbsd)`"; then
22266  NETBSD_TRUE=
22267  NETBSD_FALSE='#'
22268else
22269  NETBSD_TRUE='#'
22270  NETBSD_FALSE=
22271fi
22272
22273 if test -n "`(echo ${target_os} | grep darwin)`"; then
22274  XNU_TRUE=
22275  XNU_FALSE='#'
22276else
22277  XNU_TRUE='#'
22278  XNU_FALSE=
22279fi
22280
22281
22282
22283
22284
22285# Check whether --with-workdir was given.
22286if test "${with_workdir+set}" = set; then :
22287  withval=$with_workdir;
22288        if test "x$withval" != x ; then
22289            WORKDIR="$withval"
22290            LOGDIR="$withval"
22291            PIDDIR="$withval"
22292        fi
22293
22294fi
22295
22296
22297
22298_lcl_receval=""${WORKDIR}""
22299WORKDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22300     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22301     _lcl_receval_old=''
22302     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22303       _lcl_receval_old="$_lcl_receval"
22304       eval _lcl_receval="\"$_lcl_receval\""
22305     done
22306     echo "$_lcl_receval")`
22307
22308
22309cat >>confdefs.h <<_ACEOF
22310#define WORKDIR "${WORKDIR}"
22311_ACEOF
22312
22313workdir="${WORKDIR}"
22314
22315
22316
22317# Check whether --with-masterdir was given.
22318if test "${with_masterdir+set}" = set; then :
22319  withval=$with_masterdir;
22320        if test "x$withval" != x ; then
22321            MASTERDIR="$withval"
22322        fi
22323
22324fi
22325
22326
22327
22328_lcl_receval=""${MASTERDIR}""
22329MASTERDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22330     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22331     _lcl_receval_old=''
22332     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22333       _lcl_receval_old="$_lcl_receval"
22334       eval _lcl_receval="\"$_lcl_receval\""
22335     done
22336     echo "$_lcl_receval")`
22337
22338
22339cat >>confdefs.h <<_ACEOF
22340#define MASTERDIR "${MASTERDIR}"
22341_ACEOF
22342
22343masterdir="${MASTERDIR}"
22344
22345
22346
22347# Check whether --with-inputdir was given.
22348if test "${with_inputdir+set}" = set; then :
22349  withval=$with_inputdir;
22350        if test "x$withval" != x ; then
22351            INPUTDIR="$withval"
22352        fi
22353
22354fi
22355
22356
22357
22358_lcl_receval=""${INPUTDIR}""
22359INPUTDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22360     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22361     _lcl_receval_old=''
22362     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22363       _lcl_receval_old="$_lcl_receval"
22364       eval _lcl_receval="\"$_lcl_receval\""
22365     done
22366     echo "$_lcl_receval")`
22367
22368
22369cat >>confdefs.h <<_ACEOF
22370#define INPUTDIR "${INPUTDIR}"
22371_ACEOF
22372
22373inputdir="${INPUTDIR}"
22374
22375
22376
22377# Check whether --with-logdir was given.
22378if test "${with_logdir+set}" = set; then :
22379  withval=$with_logdir;
22380        if test "x$withval" != x ; then
22381            LOGDIR="$withval"
22382        fi
22383
22384fi
22385
22386
22387
22388_lcl_receval=""${LOGDIR}""
22389LOGDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22390     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22391     _lcl_receval_old=''
22392     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22393       _lcl_receval_old="$_lcl_receval"
22394       eval _lcl_receval="\"$_lcl_receval\""
22395     done
22396     echo "$_lcl_receval")`
22397
22398
22399cat >>confdefs.h <<_ACEOF
22400#define LOGDIR "${LOGDIR}"
22401_ACEOF
22402
22403logdir="${LOGDIR}"
22404
22405
22406
22407# Check whether --with-piddir was given.
22408if test "${with_piddir+set}" = set; then :
22409  withval=$with_piddir;
22410        if test "x$withval" != x ; then
22411            PIDDIR="$withval"
22412        fi
22413
22414fi
22415
22416
22417
22418_lcl_receval=""${PIDDIR}""
22419PIDDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22420     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22421     _lcl_receval_old=''
22422     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22423       _lcl_receval_old="$_lcl_receval"
22424       eval _lcl_receval="\"$_lcl_receval\""
22425     done
22426     echo "$_lcl_receval")`
22427
22428
22429cat >>confdefs.h <<_ACEOF
22430#define PIDDIR "${PIDDIR}"
22431_ACEOF
22432
22433piddir="${PIDDIR}"
22434
22435
22436
22437# Check whether --with-statedir was given.
22438if test "${with_statedir+set}" = set; then :
22439  withval=$with_statedir;
22440        if test "x$withval" != x ; then
22441            STATEDIR="$withval"
22442        fi
22443
22444fi
22445
22446
22447
22448_lcl_receval=""${STATEDIR}""
22449STATEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22450     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22451     _lcl_receval_old=''
22452     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22453       _lcl_receval_old="$_lcl_receval"
22454       eval _lcl_receval="\"$_lcl_receval\""
22455     done
22456     echo "$_lcl_receval")`
22457
22458
22459cat >>confdefs.h <<_ACEOF
22460#define STATEDIR "${STATEDIR}"
22461_ACEOF
22462
22463statedir="${STATEDIR}"
22464
22465
22466
22467# Check whether --with-shell was given.
22468if test "${with_shell+set}" = set; then :
22469  withval=$with_shell;
22470else
22471  with_shell=/bin/sh
22472fi
22473
22474
22475_lcl_receval=""${bindir}""
22476bindir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22477     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22478     _lcl_receval_old=''
22479     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22480       _lcl_receval_old="$_lcl_receval"
22481       eval _lcl_receval="\"$_lcl_receval\""
22482     done
22483     echo "$_lcl_receval")`
22484
22485
22486cat >>confdefs.h <<_ACEOF
22487#define BINDIR "${bindir}"
22488_ACEOF
22489
22490bindir="${bindir}"
22491
22492
22493
22494if test "x$with_shell" = "xno"; then
22495   as_fn_error $? "Please specify full path to POSIX-compatible shell" "$LINENO" 5
22496fi
22497
22498cat >>confdefs.h <<_ACEOF
22499#define SHELL_PATH "$with_shell"
22500_ACEOF
22501
22502
22503
22504
22505# Check whether --with-init-script was given.
22506if test "${with_init_script+set}" = set; then :
22507  withval=$with_init_script;
22508    if test -n "$withval" && test "x$withval" != "xno"; then
22509        if test "x$withval" = "xyes"; then
22510            case "$target_os" in #(
22511  aix*) :
22512
22513                INIT_D_PATH=/etc/rc.d/init.d
22514             ;; #(
22515  hpux*) :
22516
22517                INIT_D_PATH=/sbin/init.d
22518             ;; #(
22519  *) :
22520
22521                INIT_D_PATH=/etc/init.d
22522             ;;
22523esac
22524        else
22525            INIT_D_PATH="$withval"
22526        fi
22527
22528        ac_config_files="$ac_config_files misc/init.d/cfengine3"
22529
22530    fi
22531
22532fi
22533
22534 if test -n "$INIT_D_PATH"; then
22535  WITH_INIT_D_SCRIPT_TRUE=
22536  WITH_INIT_D_SCRIPT_FALSE='#'
22537else
22538  WITH_INIT_D_SCRIPT_TRUE='#'
22539  WITH_INIT_D_SCRIPT_FALSE=
22540fi
22541
22542
22543
22544SYSTEMD_SERVICE_PATH=""
22545
22546
22547# Check whether --with-systemd-service was given.
22548if test "${with_systemd_service+set}" = set; then :
22549  withval=$with_systemd_service;
22550    if test -n "$withval" && test "x$withval" != "xno"; then
22551        if test "x$withval" = "xyes"; then
22552            SYSTEMD_SERVICE_PATH=/usr/lib/systemd/system
22553        else
22554            SYSTEMD_SERVICE_PATH="$withval"
22555        fi
22556    fi
22557
22558
22559else
22560
22561    # Extract the first word of "systemctl", so it can be a program name with args.
22562set dummy systemctl; ac_word=$2
22563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22564$as_echo_n "checking for $ac_word... " >&6; }
22565if ${ac_cv_path_systemctl+:} false; then :
22566  $as_echo_n "(cached) " >&6
22567else
22568  case $systemctl in
22569  [\\/]* | ?:[\\/]*)
22570  ac_cv_path_systemctl="$systemctl" # Let the user override the test with a path.
22571  ;;
22572  *)
22573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22574for as_dir in $PATH
22575do
22576  IFS=$as_save_IFS
22577  test -z "$as_dir" && as_dir=.
22578    for ac_exec_ext in '' $ac_executable_extensions; do
22579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22580    ac_cv_path_systemctl="$as_dir/$ac_word$ac_exec_ext"
22581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22582    break 2
22583  fi
22584done
22585  done
22586IFS=$as_save_IFS
22587
22588  test -z "$ac_cv_path_systemctl" && ac_cv_path_systemctl="no"
22589  ;;
22590esac
22591fi
22592systemctl=$ac_cv_path_systemctl
22593if test -n "$systemctl"; then
22594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemctl" >&5
22595$as_echo "$systemctl" >&6; }
22596else
22597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22598$as_echo "no" >&6; }
22599fi
22600
22601
22602    if test "x$systemctl" == "xno"; then :
22603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Not a systemd system" >&5
22604$as_echo_n "checking Not a systemd system... " >&6; }
22605else
22606
22607        SYSTEMD_SERVICE_PATH=/usr/lib/systemd/system
22608
22609fi
22610
22611fi
22612
22613
22614if test "x$SYSTEMD_SERVICE_PATH" = "x"; then :
22615
22616else
22617
22618
22619    ac_config_files="$ac_config_files misc/systemd/cfengine3.service"
22620
22621    ac_config_files="$ac_config_files misc/systemd/cf-apache.service"
22622
22623    ac_config_files="$ac_config_files misc/systemd/cf-execd.service"
22624
22625    ac_config_files="$ac_config_files misc/systemd/cf-hub.service"
22626
22627    ac_config_files="$ac_config_files misc/systemd/cf-monitord.service"
22628
22629    ac_config_files="$ac_config_files misc/systemd/cf-postgres.service"
22630
22631    ac_config_files="$ac_config_files misc/systemd/cf-runalerts.service"
22632
22633    ac_config_files="$ac_config_files misc/systemd/cf-serverd.service"
22634
22635
22636fi
22637
22638 if test -n "$SYSTEMD_SERVICE_PATH"; then
22639  WITH_SYSTEMD_SERVICE_TRUE=
22640  WITH_SYSTEMD_SERVICE_FALSE='#'
22641else
22642  WITH_SYSTEMD_SERVICE_TRUE='#'
22643  WITH_SYSTEMD_SERVICE_FALSE=
22644fi
22645
22646
22647
22648# Check whether --with-environment-path was given.
22649if test "${with_environment_path+set}" = set; then :
22650  withval=$with_environment_path;
22651fi
22652
22653OS_ENVIRONMENT_PATH=
22654if test -z "$with_environment_path" || test "$with_environment_path" = "yes"; then
22655    if test -n "$SYSTEMD_SERVICE_PATH"; then
22656        for i in /etc/sysconfig /etc/default; do
22657            if test -d $i; then
22658                OS_ENVIRONMENT_PATH=$i
22659                break
22660            fi
22661        done
22662        if test -z "$OS_ENVIRONMENT_PATH"; then
22663            as_fn_error $? "Unable to detect location of environment files on the platform (e.g. '/etc/sysconfig'). Please specify it using --with-environment-path, or turn off systemd support." "$LINENO" 5
22664        fi
22665    fi
22666else
22667    if test "$with_environment_path" = "no"; then
22668        if test -n "$SYSTEMD_SERVICE_PATH"; then
22669            as_fn_error $? "It is not possible to both specify systemd support and not provide an environment path with --without-environment-path." "$LINENO" 5
22670        fi
22671    else
22672        OS_ENVIRONMENT_PATH="$with_environment_path"
22673    fi
22674fi
22675
22676
22677
22678# Check whether --with-selinux-policy was given.
22679if test "${with_selinux_policy+set}" = set; then :
22680  withval=$with_selinux_policy;
22681else
22682  with_selinux_policy=no
22683fi
22684
22685 if test "x$with_selinux_policy" != "xno"; then
22686  WITH_SELINUX_TRUE=
22687  WITH_SELINUX_FALSE='#'
22688else
22689  WITH_SELINUX_TRUE='#'
22690  WITH_SELINUX_FALSE=
22691fi
22692
22693
22694
22695
22696# Extract the first word of "hostname", so it can be a program name with args.
22697set dummy hostname; ac_word=$2
22698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22699$as_echo_n "checking for $ac_word... " >&6; }
22700if ${ac_cv_path_HOSTNAME+:} false; then :
22701  $as_echo_n "(cached) " >&6
22702else
22703  case $HOSTNAME in
22704  [\\/]* | ?:[\\/]*)
22705  ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
22706  ;;
22707  *)
22708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22709for as_dir in $PATH
22710do
22711  IFS=$as_save_IFS
22712  test -z "$as_dir" && as_dir=.
22713    for ac_exec_ext in '' $ac_executable_extensions; do
22714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22715    ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
22716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22717    break 2
22718  fi
22719done
22720  done
22721IFS=$as_save_IFS
22722
22723  test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME=""""
22724  ;;
22725esac
22726fi
22727HOSTNAME=$ac_cv_path_HOSTNAME
22728if test -n "$HOSTNAME"; then
22729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5
22730$as_echo "$HOSTNAME" >&6; }
22731else
22732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22733$as_echo "no" >&6; }
22734fi
22735
22736
22737
22738
22739cat >>confdefs.h <<_ACEOF
22740#define AUTOCONF_HOSTNAME "`$HOSTNAME`"
22741_ACEOF
22742
22743
22744cat >>confdefs.h <<_ACEOF
22745#define AUTOCONF_SYSNAME "$target_os"
22746_ACEOF
22747
22748
22749
22750
22751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xen cpuid-based HVM detection" >&5
22752$as_echo_n "checking for Xen cpuid-based HVM detection... " >&6; }
22753if test x"$GCC" = "xyes"; then
22754    case $host_cpu in
22755        i[3456]86*|x86_64*|amd64)
22756
22757$as_echo "#define XEN_CPUID_SUPPORT 1" >>confdefs.h
22758
22759            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22760$as_echo "yes" >&6; }
22761            ;;
22762        *)
22763            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764$as_echo "no" >&6; }
22765            ;;
22766    esac
22767else
22768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22769$as_echo "no" >&6; }
22770fi
22771
22772
22773# Check whether --enable-coverage was given.
22774if test "${enable_coverage+set}" = set; then :
22775  enableval=$enable_coverage; use_coverage=$enableval
22776else
22777  use_coverage=no
22778fi
22779
22780
22781if test "x$use_coverage" = "xyes"; then
22782  if test "$GCC" != "yes"; then
22783    as_fn_error $? "GCC is required for --enable-coverage" "$LINENO" 5
22784  fi
22785
22786  if test "$debug" != "yes"; then
22787    as_fn_error $? "--enable-debug is required for --enable-coverage" "$LINENO" 5
22788  fi
22789
22790  # Extract the first word of "lcov", so it can be a program name with args.
22791set dummy lcov; ac_word=$2
22792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22793$as_echo_n "checking for $ac_word... " >&6; }
22794if ${ac_cv_prog_LCOV+:} false; then :
22795  $as_echo_n "(cached) " >&6
22796else
22797  if test -n "$LCOV"; then
22798  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
22799else
22800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22801for as_dir in $PATH
22802do
22803  IFS=$as_save_IFS
22804  test -z "$as_dir" && as_dir=.
22805    for ac_exec_ext in '' $ac_executable_extensions; do
22806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22807    ac_cv_prog_LCOV="lcov"
22808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22809    break 2
22810  fi
22811done
22812  done
22813IFS=$as_save_IFS
22814
22815fi
22816fi
22817LCOV=$ac_cv_prog_LCOV
22818if test -n "$LCOV"; then
22819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
22820$as_echo "$LCOV" >&6; }
22821else
22822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22823$as_echo "no" >&6; }
22824fi
22825
22826
22827  # Extract the first word of "genhtml", so it can be a program name with args.
22828set dummy genhtml; ac_word=$2
22829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22830$as_echo_n "checking for $ac_word... " >&6; }
22831if ${ac_cv_prog_LCOV_GENHTML+:} false; then :
22832  $as_echo_n "(cached) " >&6
22833else
22834  if test -n "$LCOV_GENHTML"; then
22835  ac_cv_prog_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test.
22836else
22837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22838for as_dir in $PATH
22839do
22840  IFS=$as_save_IFS
22841  test -z "$as_dir" && as_dir=.
22842    for ac_exec_ext in '' $ac_executable_extensions; do
22843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22844    ac_cv_prog_LCOV_GENHTML="genhtml"
22845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22846    break 2
22847  fi
22848done
22849  done
22850IFS=$as_save_IFS
22851
22852fi
22853fi
22854LCOV_GENHTML=$ac_cv_prog_LCOV_GENHTML
22855if test -n "$LCOV_GENHTML"; then
22856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
22857$as_echo "$LCOV_GENHTML" >&6; }
22858else
22859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22860$as_echo "no" >&6; }
22861fi
22862
22863
22864
22865  if test -z "$LCOV"; then
22866    as_fn_error $? "Cannot find lcov from the LTP package" "$LINENO" 5
22867  fi
22868
22869  if test -z "$LCOV_GENHTML"; then
22870    as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
22871  fi
22872
22873
22874  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
22875
22876
22877    CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
22878  LDFLAGS="$LDFLAGS -lgcov"
22879  # Need to set ENABLE_COVERAGE so that tests/unit/Makefile.am can adapt for one
22880  # test which needs gcov stubs if core not built with coverage.
22881   if true; then
22882  ENABLE_COVERAGE_TRUE=
22883  ENABLE_COVERAGE_FALSE='#'
22884else
22885  ENABLE_COVERAGE_TRUE='#'
22886  ENABLE_COVERAGE_FALSE=
22887fi
22888
22889else
22890   if false; then
22891  ENABLE_COVERAGE_TRUE=
22892  ENABLE_COVERAGE_FALSE='#'
22893else
22894  ENABLE_COVERAGE_TRUE='#'
22895  ENABLE_COVERAGE_FALSE=
22896fi
22897
22898fi
22899
22900#
22901# Populate contents of config.post.h
22902#
22903
22904
22905
22906ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#include <sys/types.h>
22907                  #include <sys/socket.h>
22908"
22909if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
22910
22911$as_echo "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h
22912
22913else
22914
22915$as_echo "#define HAVE_NO_MSGHDR_MSG_CONTROL 1" >>confdefs.h
22916
22917fi
22918
22919
22920ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
22921                  #include <sys/socket.h>
22922"
22923if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
22924
22925$as_echo "#define HAVE_MSGHDR_ACCRIGHTS 1" >>confdefs.h
22926
22927else
22928
22929$as_echo "#define HAVE_NO_MSGHDR_ACCRIGHTS 1" >>confdefs.h
22930
22931fi
22932
22933
22934
22935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
22936$as_echo "" >&6; }
22937
22938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Summary:" >&5
22939$as_echo "Summary:" >&6; }
22940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Version: $cfengine_version" >&5
22941$as_echo "> Version: $cfengine_version" >&6; }
22942
22943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Required libraries" >&5
22944$as_echo "> Required libraries" >&6; }
22945
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> OpenSSL: $OPENSSL_PATH" >&5
22947$as_echo "-> OpenSSL: $OPENSSL_PATH" >&6; }
22948
22949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PCRE: $PCRE_PATH" >&5
22950$as_echo "-> PCRE: $PCRE_PATH" >&6; }
22951
22952if test $WITH_TOKYO = 1; then
22953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&5
22954$as_echo "-> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&6; }
22955elif test $WITH_QDBM = 1; then
22956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: QDBM: $QDBM_PATH" >&5
22957$as_echo "-> DB: QDBM: $QDBM_PATH" >&6; }
22958fi
22959
22960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Optional libraries" >&5
22961$as_echo "> Optional libraries" >&6; }
22962
22963if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = "xyes"; then
22964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: $MYSQL_PATH" >&5
22965$as_echo "-> MySQL connector: $MYSQL_PATH" >&6; }
22966else
22967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: disabled" >&5
22968$as_echo "-> MySQL connector: disabled" >&6; }
22969fi
22970
22971if test "x$ac_cv_lib_pq_PQconnectdb" = "xyes"; then
22972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: $POSTGRESQL_PATH" >&5
22973$as_echo "-> PostgreSQL connector: $POSTGRESQL_PATH" >&6; }
22974else
22975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: disabled" >&5
22976$as_echo "-> PostgreSQL connector: disabled" >&6; }
22977fi
22978
22979if test $WITH_LMDB = 1; then
22980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Lightning MDB: $LMDB_PATH" >&5
22981$as_echo "-> DB: Lightning MDB: $LMDB_PATH" >&6; }
22982elif test $WITH_TOKYO = 1; then
22983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&5
22984$as_echo "-> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&6; }
22985elif test $WITH_QDBM = 1; then
22986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: QDBM: $QDBM_PATH" >&5
22987$as_echo "-> DB: QDBM: $QDBM_PATH" >&6; }
22988fi
22989
22990if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then
22991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: $LIBVIRT_PATH" >&5
22992$as_echo "-> libvirt: $LIBVIRT_PATH" >&6; }
22993else
22994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: disabled" >&5
22995$as_echo "-> libvirt: disabled" >&6; }
22996fi
22997
22998if test "x$ac_cv_lib_acl_acl_init" = xyes; then
22999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: $LIBACL_PATH" >&5
23000$as_echo "-> libacl: $LIBACL_PATH" >&6; }
23001else
23002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: disabled" >&5
23003$as_echo "-> libacl: disabled" >&6; }
23004fi
23005
23006if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then
23007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: $LIBCURL_PATH" >&5
23008$as_echo "-> libcurl: $LIBCURL_PATH" >&6; }
23009else
23010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: disabled" >&5
23011$as_echo "-> libcurl: disabled" >&6; }
23012fi
23013
23014if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then
23015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: $LIBYAML_PATH" >&5
23016$as_echo "-> libyaml: $LIBYAML_PATH" >&6; }
23017else
23018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: disabled" >&5
23019$as_echo "-> libyaml: disabled" >&6; }
23020fi
23021
23022if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then
23023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: $LIBXML2_PATH" >&5
23024$as_echo "-> libxml2: $LIBXML2_PATH" >&6; }
23025else
23026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: disabled" >&5
23027$as_echo "-> libxml2: disabled" >&6; }
23028fi
23029
23030if test "x$users_promises_ok" = "xyes"; then
23031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: PAM/user* tools" >&5
23032$as_echo "-> User promises: PAM/user* tools" >&6; }
23033else
23034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: disabled" >&5
23035$as_echo "-> User promises: disabled" >&6; }
23036fi
23037
23038if test "x$enable_builtin_extensions" = "xyes"; then
23039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Built in" >&5
23040$as_echo "-> Enterprise extensions: Built in" >&6; }
23041else
23042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Plugin or not included" >&5
23043$as_echo "-> Enterprise extensions: Plugin or not included" >&6; }
23044fi
23045
23046if test -n "$INIT_D_PATH"; then
23047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> init.d script: $INIT_D_PATH" >&5
23048$as_echo "-> init.d script: $INIT_D_PATH" >&6; }
23049else
23050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> init.d script: disabled" >&5
23051$as_echo "-> init.d script: disabled" >&6; }
23052fi
23053
23054if test -n "$SYSTEMD_SERVICE_PATH"; then
23055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Systemd service: $SYSTEMD_SERVICE_PATH" >&5
23056$as_echo "-> Systemd service: $SYSTEMD_SERVICE_PATH" >&6; }
23057else
23058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Systemd service: disabled" >&5
23059$as_echo "-> Systemd service: disabled" >&6; }
23060fi
23061
23062if test -n "$OS_ENVIRONMENT_PATH"; then
23063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Path of platform environment files: $OS_ENVIRONMENT_PATH" >&5
23064$as_echo "-> Path of platform environment files: $OS_ENVIRONMENT_PATH" >&6; }
23065fi
23066
23067if test "x$with_selinux_policy" != "xno"; then
23068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> SELinux policy: enabled" >&5
23069$as_echo "-> SELinux policy: enabled" >&6; }
23070else
23071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> SELinux policy: disabled" >&5
23072$as_echo "-> SELinux policy: disabled" >&6; }
23073fi
23074
23075
23076
23077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Workdir: $WORKDIR" >&5
23078$as_echo "-> Workdir: $WORKDIR" >&6; }
23079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Masterdir: $MASTERDIR" >&5
23080$as_echo "-> Masterdir: $MASTERDIR" >&6; }
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Inputdir: $INPUTDIR" >&5
23082$as_echo "-> Inputdir: $INPUTDIR" >&6; }
23083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Logdir: $LOGDIR" >&5
23084$as_echo "-> Logdir: $LOGDIR" >&6; }
23085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Piddir: $PIDDIR" >&5
23086$as_echo "-> Piddir: $PIDDIR" >&6; }
23087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Statedir: $STATEDIR" >&5
23088$as_echo "-> Statedir: $STATEDIR" >&6; }
23089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> bindir: $bindir" >&5
23090$as_echo "-> bindir: $bindir" >&6; }
23091
23092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23093$as_echo "" >&6; }
23094
23095
23096ac_config_files="$ac_config_files Makefile libcfnet/Makefile libenv/Makefile libpromises/Makefile cf-agent/Makefile cf-check/Makefile cf-promises/Makefile cf-execd/Makefile cf-key/Makefile cf-monitord/Makefile cf-upgrade/Makefile cf-runagent/Makefile cf-serverd/Makefile cf-testd/Makefile cf-net/Makefile cf-secret/Makefile config.post.h contrib/vagrant-ci/centos-6-x64/Makefile misc/Makefile misc/selinux/Makefile ext/Makefile examples/Makefile tests/Makefile tests/acceptance/Makefile tests/acceptance/25_cf-execd/Makefile tests/unit/Makefile tests/load/Makefile tests/static-check/Makefile tests/valgrind-check/Makefile"
23097
23098
23099# Run autoconf/configure in libutils, generating necessary makefiles:
23100
23101
23102subdirs="$subdirs libntech"
23103
23104
23105cat >confcache <<\_ACEOF
23106# This file is a shell script that caches the results of configure
23107# tests run on this system so they can be shared between configure
23108# scripts and configure runs, see configure's option --config-cache.
23109# It is not useful on other systems.  If it contains results you don't
23110# want to keep, you may remove or edit it.
23111#
23112# config.status only pays attention to the cache file if you give it
23113# the --recheck option to rerun configure.
23114#
23115# `ac_cv_env_foo' variables (set or unset) will be overridden when
23116# loading this file, other *unset* `ac_cv_foo' will be assigned the
23117# following values.
23118
23119_ACEOF
23120
23121# The following way of writing the cache mishandles newlines in values,
23122# but we know of no workaround that is simple, portable, and efficient.
23123# So, we kill variables containing newlines.
23124# Ultrix sh set writes to stderr and can't be redirected directly,
23125# and sets the high bit in the cache file unless we assign to the vars.
23126(
23127  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23128    eval ac_val=\$$ac_var
23129    case $ac_val in #(
23130    *${as_nl}*)
23131      case $ac_var in #(
23132      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23133$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23134      esac
23135      case $ac_var in #(
23136      _ | IFS | as_nl) ;; #(
23137      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23138      *) { eval $ac_var=; unset $ac_var;} ;;
23139      esac ;;
23140    esac
23141  done
23142
23143  (set) 2>&1 |
23144    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23145    *${as_nl}ac_space=\ *)
23146      # `set' does not quote correctly, so add quotes: double-quote
23147      # substitution turns \\\\ into \\, and sed turns \\ into \.
23148      sed -n \
23149	"s/'/'\\\\''/g;
23150	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23151      ;; #(
23152    *)
23153      # `set' quotes correctly as required by POSIX, so do not add quotes.
23154      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23155      ;;
23156    esac |
23157    sort
23158) |
23159  sed '
23160     /^ac_cv_env_/b end
23161     t clear
23162     :clear
23163     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23164     t end
23165     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23166     :end' >>confcache
23167if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23168  if test -w "$cache_file"; then
23169    if test "x$cache_file" != "x/dev/null"; then
23170      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23171$as_echo "$as_me: updating cache $cache_file" >&6;}
23172      if test ! -f "$cache_file" || test -h "$cache_file"; then
23173	cat confcache >"$cache_file"
23174      else
23175        case $cache_file in #(
23176        */* | ?:*)
23177	  mv -f confcache "$cache_file"$$ &&
23178	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23179        *)
23180	  mv -f confcache "$cache_file" ;;
23181	esac
23182      fi
23183    fi
23184  else
23185    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23186$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23187  fi
23188fi
23189rm -f confcache
23190
23191test "x$prefix" = xNONE && prefix=$ac_default_prefix
23192# Let make expand exec_prefix.
23193test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23194
23195DEFS=-DHAVE_CONFIG_H
23196
23197ac_libobjs=
23198ac_ltlibobjs=
23199U=
23200for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23201  # 1. Remove the extension, and $U if already installed.
23202  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23203  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23204  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23205  #    will be set to the directory where LIBOBJS objects are built.
23206  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23207  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23208done
23209LIBOBJS=$ac_libobjs
23210
23211LTLIBOBJS=$ac_ltlibobjs
23212
23213
23214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23215$as_echo_n "checking that generated files are newer than configure... " >&6; }
23216   if test -n "$am_sleep_pid"; then
23217     # Hide warnings about reused PIDs.
23218     wait $am_sleep_pid 2>/dev/null
23219   fi
23220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23221$as_echo "done" >&6; }
23222 if test -n "$EXEEXT"; then
23223  am__EXEEXT_TRUE=
23224  am__EXEEXT_FALSE='#'
23225else
23226  am__EXEEXT_TRUE='#'
23227  am__EXEEXT_FALSE=
23228fi
23229
23230if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23231  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23232Usually this means the macro was only invoked conditionally." "$LINENO" 5
23233fi
23234if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23235  as_fn_error $? "conditional \"AMDEP\" was never defined.
23236Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237fi
23238if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23239  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23240Usually this means the macro was only invoked conditionally." "$LINENO" 5
23241fi
23242if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
23243  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
23244Usually this means the macro was only invoked conditionally." "$LINENO" 5
23245fi
23246if test -z "${BUILTIN_EXTENSIONS_TRUE}" && test -z "${BUILTIN_EXTENSIONS_FALSE}"; then
23247  as_fn_error $? "conditional \"BUILTIN_EXTENSIONS\" was never defined.
23248Usually this means the macro was only invoked conditionally." "$LINENO" 5
23249fi
23250if test -z "${NDEBUG_TRUE}" && test -z "${NDEBUG_FALSE}"; then
23251  as_fn_error $? "conditional \"NDEBUG\" was never defined.
23252Usually this means the macro was only invoked conditionally." "$LINENO" 5
23253fi
23254if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
23255  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
23256Usually this means the macro was only invoked conditionally." "$LINENO" 5
23257fi
23258if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
23259  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
23260Usually this means the macro was only invoked conditionally." "$LINENO" 5
23261fi
23262if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then
23263  as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined.
23264Usually this means the macro was only invoked conditionally." "$LINENO" 5
23265fi
23266if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then
23267  as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined.
23268Usually this means the macro was only invoked conditionally." "$LINENO" 5
23269fi
23270if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then
23271  as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined.
23272Usually this means the macro was only invoked conditionally." "$LINENO" 5
23273fi
23274if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then
23275  as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined.
23276Usually this means the macro was only invoked conditionally." "$LINENO" 5
23277fi
23278
23279if test -z "${HAVE_USERS_PROMISE_DEPS_TRUE}" && test -z "${HAVE_USERS_PROMISE_DEPS_FALSE}"; then
23280  as_fn_error $? "conditional \"HAVE_USERS_PROMISE_DEPS\" was never defined.
23281Usually this means the macro was only invoked conditionally." "$LINENO" 5
23282fi
23283if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
23284  as_fn_error $? "conditional \"FREEBSD\" was never defined.
23285Usually this means the macro was only invoked conditionally." "$LINENO" 5
23286fi
23287if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
23288  as_fn_error $? "conditional \"LINUX\" was never defined.
23289Usually this means the macro was only invoked conditionally." "$LINENO" 5
23290fi
23291if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23292  as_fn_error $? "conditional \"MACOSX\" was never defined.
23293Usually this means the macro was only invoked conditionally." "$LINENO" 5
23294fi
23295if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
23296  as_fn_error $? "conditional \"SOLARIS\" was never defined.
23297Usually this means the macro was only invoked conditionally." "$LINENO" 5
23298fi
23299if test -z "${NT_TRUE}" && test -z "${NT_FALSE}"; then
23300  as_fn_error $? "conditional \"NT\" was never defined.
23301Usually this means the macro was only invoked conditionally." "$LINENO" 5
23302fi
23303if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
23304  as_fn_error $? "conditional \"CYGWIN\" was never defined.
23305Usually this means the macro was only invoked conditionally." "$LINENO" 5
23306fi
23307if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
23308  as_fn_error $? "conditional \"AIX\" was never defined.
23309Usually this means the macro was only invoked conditionally." "$LINENO" 5
23310fi
23311if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
23312  as_fn_error $? "conditional \"HPUX\" was never defined.
23313Usually this means the macro was only invoked conditionally." "$LINENO" 5
23314fi
23315if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
23316  as_fn_error $? "conditional \"FREEBSD\" was never defined.
23317Usually this means the macro was only invoked conditionally." "$LINENO" 5
23318fi
23319if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
23320  as_fn_error $? "conditional \"NETBSD\" was never defined.
23321Usually this means the macro was only invoked conditionally." "$LINENO" 5
23322fi
23323if test -z "${XNU_TRUE}" && test -z "${XNU_FALSE}"; then
23324  as_fn_error $? "conditional \"XNU\" was never defined.
23325Usually this means the macro was only invoked conditionally." "$LINENO" 5
23326fi
23327if test -z "${WITH_INIT_D_SCRIPT_TRUE}" && test -z "${WITH_INIT_D_SCRIPT_FALSE}"; then
23328  as_fn_error $? "conditional \"WITH_INIT_D_SCRIPT\" was never defined.
23329Usually this means the macro was only invoked conditionally." "$LINENO" 5
23330fi
23331if test -z "${WITH_SYSTEMD_SERVICE_TRUE}" && test -z "${WITH_SYSTEMD_SERVICE_FALSE}"; then
23332  as_fn_error $? "conditional \"WITH_SYSTEMD_SERVICE\" was never defined.
23333Usually this means the macro was only invoked conditionally." "$LINENO" 5
23334fi
23335if test -z "${WITH_SELINUX_TRUE}" && test -z "${WITH_SELINUX_FALSE}"; then
23336  as_fn_error $? "conditional \"WITH_SELINUX\" was never defined.
23337Usually this means the macro was only invoked conditionally." "$LINENO" 5
23338fi
23339if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
23340  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
23341Usually this means the macro was only invoked conditionally." "$LINENO" 5
23342fi
23343if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
23344  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
23345Usually this means the macro was only invoked conditionally." "$LINENO" 5
23346fi
23347
23348: "${CONFIG_STATUS=./config.status}"
23349ac_write_fail=0
23350ac_clean_files_save=$ac_clean_files
23351ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23352{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23353$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23354as_write_fail=0
23355cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23356#! $SHELL
23357# Generated by $as_me.
23358# Run this file to recreate the current configuration.
23359# Compiler output produced by configure, useful for debugging
23360# configure, is in config.log if it exists.
23361
23362debug=false
23363ac_cs_recheck=false
23364ac_cs_silent=false
23365
23366SHELL=\${CONFIG_SHELL-$SHELL}
23367export SHELL
23368_ASEOF
23369cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23370## -------------------- ##
23371## M4sh Initialization. ##
23372## -------------------- ##
23373
23374# Be more Bourne compatible
23375DUALCASE=1; export DUALCASE # for MKS sh
23376if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23377  emulate sh
23378  NULLCMD=:
23379  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23380  # is contrary to our usage.  Disable this feature.
23381  alias -g '${1+"$@"}'='"$@"'
23382  setopt NO_GLOB_SUBST
23383else
23384  case `(set -o) 2>/dev/null` in #(
23385  *posix*) :
23386    set -o posix ;; #(
23387  *) :
23388     ;;
23389esac
23390fi
23391
23392
23393as_nl='
23394'
23395export as_nl
23396# Printing a long string crashes Solaris 7 /usr/bin/printf.
23397as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23398as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23399as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23400# Prefer a ksh shell builtin over an external printf program on Solaris,
23401# but without wasting forks for bash or zsh.
23402if test -z "$BASH_VERSION$ZSH_VERSION" \
23403    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23404  as_echo='print -r --'
23405  as_echo_n='print -rn --'
23406elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23407  as_echo='printf %s\n'
23408  as_echo_n='printf %s'
23409else
23410  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23411    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23412    as_echo_n='/usr/ucb/echo -n'
23413  else
23414    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23415    as_echo_n_body='eval
23416      arg=$1;
23417      case $arg in #(
23418      *"$as_nl"*)
23419	expr "X$arg" : "X\\(.*\\)$as_nl";
23420	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23421      esac;
23422      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23423    '
23424    export as_echo_n_body
23425    as_echo_n='sh -c $as_echo_n_body as_echo'
23426  fi
23427  export as_echo_body
23428  as_echo='sh -c $as_echo_body as_echo'
23429fi
23430
23431# The user is always right.
23432if test "${PATH_SEPARATOR+set}" != set; then
23433  PATH_SEPARATOR=:
23434  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23435    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23436      PATH_SEPARATOR=';'
23437  }
23438fi
23439
23440
23441# IFS
23442# We need space, tab and new line, in precisely that order.  Quoting is
23443# there to prevent editors from complaining about space-tab.
23444# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23445# splitting by setting IFS to empty value.)
23446IFS=" ""	$as_nl"
23447
23448# Find who we are.  Look in the path if we contain no directory separator.
23449as_myself=
23450case $0 in #((
23451  *[\\/]* ) as_myself=$0 ;;
23452  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23453for as_dir in $PATH
23454do
23455  IFS=$as_save_IFS
23456  test -z "$as_dir" && as_dir=.
23457    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23458  done
23459IFS=$as_save_IFS
23460
23461     ;;
23462esac
23463# We did not find ourselves, most probably we were run as `sh COMMAND'
23464# in which case we are not to be found in the path.
23465if test "x$as_myself" = x; then
23466  as_myself=$0
23467fi
23468if test ! -f "$as_myself"; then
23469  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23470  exit 1
23471fi
23472
23473# Unset variables that we do not need and which cause bugs (e.g. in
23474# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23475# suppresses any "Segmentation fault" message there.  '((' could
23476# trigger a bug in pdksh 5.2.14.
23477for as_var in BASH_ENV ENV MAIL MAILPATH
23478do eval test x\${$as_var+set} = xset \
23479  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23480done
23481PS1='$ '
23482PS2='> '
23483PS4='+ '
23484
23485# NLS nuisances.
23486LC_ALL=C
23487export LC_ALL
23488LANGUAGE=C
23489export LANGUAGE
23490
23491# CDPATH.
23492(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23493
23494
23495# as_fn_error STATUS ERROR [LINENO LOG_FD]
23496# ----------------------------------------
23497# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23498# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23499# script with STATUS, using 1 if that was 0.
23500as_fn_error ()
23501{
23502  as_status=$1; test $as_status -eq 0 && as_status=1
23503  if test "$4"; then
23504    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23505    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23506  fi
23507  $as_echo "$as_me: error: $2" >&2
23508  as_fn_exit $as_status
23509} # as_fn_error
23510
23511
23512# as_fn_set_status STATUS
23513# -----------------------
23514# Set $? to STATUS, without forking.
23515as_fn_set_status ()
23516{
23517  return $1
23518} # as_fn_set_status
23519
23520# as_fn_exit STATUS
23521# -----------------
23522# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23523as_fn_exit ()
23524{
23525  set +e
23526  as_fn_set_status $1
23527  exit $1
23528} # as_fn_exit
23529
23530# as_fn_unset VAR
23531# ---------------
23532# Portably unset VAR.
23533as_fn_unset ()
23534{
23535  { eval $1=; unset $1;}
23536}
23537as_unset=as_fn_unset
23538# as_fn_append VAR VALUE
23539# ----------------------
23540# Append the text in VALUE to the end of the definition contained in VAR. Take
23541# advantage of any shell optimizations that allow amortized linear growth over
23542# repeated appends, instead of the typical quadratic growth present in naive
23543# implementations.
23544if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23545  eval 'as_fn_append ()
23546  {
23547    eval $1+=\$2
23548  }'
23549else
23550  as_fn_append ()
23551  {
23552    eval $1=\$$1\$2
23553  }
23554fi # as_fn_append
23555
23556# as_fn_arith ARG...
23557# ------------------
23558# Perform arithmetic evaluation on the ARGs, and store the result in the
23559# global $as_val. Take advantage of shells that can avoid forks. The arguments
23560# must be portable across $(()) and expr.
23561if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23562  eval 'as_fn_arith ()
23563  {
23564    as_val=$(( $* ))
23565  }'
23566else
23567  as_fn_arith ()
23568  {
23569    as_val=`expr "$@" || test $? -eq 1`
23570  }
23571fi # as_fn_arith
23572
23573
23574if expr a : '\(a\)' >/dev/null 2>&1 &&
23575   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23576  as_expr=expr
23577else
23578  as_expr=false
23579fi
23580
23581if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23582  as_basename=basename
23583else
23584  as_basename=false
23585fi
23586
23587if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23588  as_dirname=dirname
23589else
23590  as_dirname=false
23591fi
23592
23593as_me=`$as_basename -- "$0" ||
23594$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23595	 X"$0" : 'X\(//\)$' \| \
23596	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23597$as_echo X/"$0" |
23598    sed '/^.*\/\([^/][^/]*\)\/*$/{
23599	    s//\1/
23600	    q
23601	  }
23602	  /^X\/\(\/\/\)$/{
23603	    s//\1/
23604	    q
23605	  }
23606	  /^X\/\(\/\).*/{
23607	    s//\1/
23608	    q
23609	  }
23610	  s/.*/./; q'`
23611
23612# Avoid depending upon Character Ranges.
23613as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23614as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23615as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23616as_cr_digits='0123456789'
23617as_cr_alnum=$as_cr_Letters$as_cr_digits
23618
23619ECHO_C= ECHO_N= ECHO_T=
23620case `echo -n x` in #(((((
23621-n*)
23622  case `echo 'xy\c'` in
23623  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23624  xy)  ECHO_C='\c';;
23625  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23626       ECHO_T='	';;
23627  esac;;
23628*)
23629  ECHO_N='-n';;
23630esac
23631
23632rm -f conf$$ conf$$.exe conf$$.file
23633if test -d conf$$.dir; then
23634  rm -f conf$$.dir/conf$$.file
23635else
23636  rm -f conf$$.dir
23637  mkdir conf$$.dir 2>/dev/null
23638fi
23639if (echo >conf$$.file) 2>/dev/null; then
23640  if ln -s conf$$.file conf$$ 2>/dev/null; then
23641    as_ln_s='ln -s'
23642    # ... but there are two gotchas:
23643    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23644    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23645    # In both cases, we have to default to `cp -pR'.
23646    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23647      as_ln_s='cp -pR'
23648  elif ln conf$$.file conf$$ 2>/dev/null; then
23649    as_ln_s=ln
23650  else
23651    as_ln_s='cp -pR'
23652  fi
23653else
23654  as_ln_s='cp -pR'
23655fi
23656rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23657rmdir conf$$.dir 2>/dev/null
23658
23659
23660# as_fn_mkdir_p
23661# -------------
23662# Create "$as_dir" as a directory, including parents if necessary.
23663as_fn_mkdir_p ()
23664{
23665
23666  case $as_dir in #(
23667  -*) as_dir=./$as_dir;;
23668  esac
23669  test -d "$as_dir" || eval $as_mkdir_p || {
23670    as_dirs=
23671    while :; do
23672      case $as_dir in #(
23673      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23674      *) as_qdir=$as_dir;;
23675      esac
23676      as_dirs="'$as_qdir' $as_dirs"
23677      as_dir=`$as_dirname -- "$as_dir" ||
23678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23679	 X"$as_dir" : 'X\(//\)[^/]' \| \
23680	 X"$as_dir" : 'X\(//\)$' \| \
23681	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23682$as_echo X"$as_dir" |
23683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23684	    s//\1/
23685	    q
23686	  }
23687	  /^X\(\/\/\)[^/].*/{
23688	    s//\1/
23689	    q
23690	  }
23691	  /^X\(\/\/\)$/{
23692	    s//\1/
23693	    q
23694	  }
23695	  /^X\(\/\).*/{
23696	    s//\1/
23697	    q
23698	  }
23699	  s/.*/./; q'`
23700      test -d "$as_dir" && break
23701    done
23702    test -z "$as_dirs" || eval "mkdir $as_dirs"
23703  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23704
23705
23706} # as_fn_mkdir_p
23707if mkdir -p . 2>/dev/null; then
23708  as_mkdir_p='mkdir -p "$as_dir"'
23709else
23710  test -d ./-p && rmdir ./-p
23711  as_mkdir_p=false
23712fi
23713
23714
23715# as_fn_executable_p FILE
23716# -----------------------
23717# Test if FILE is an executable regular file.
23718as_fn_executable_p ()
23719{
23720  test -f "$1" && test -x "$1"
23721} # as_fn_executable_p
23722as_test_x='test -x'
23723as_executable_p=as_fn_executable_p
23724
23725# Sed expression to map a string onto a valid CPP name.
23726as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23727
23728# Sed expression to map a string onto a valid variable name.
23729as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23730
23731
23732exec 6>&1
23733## ----------------------------------- ##
23734## Main body of $CONFIG_STATUS script. ##
23735## ----------------------------------- ##
23736_ASEOF
23737test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23738
23739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23740# Save the log message, to keep $0 and so on meaningful, and to
23741# report actual input values of CONFIG_FILES etc. instead of their
23742# values after options handling.
23743ac_log="
23744This file was extended by cfengine $as_me 3.17.0, which was
23745generated by GNU Autoconf 2.69.  Invocation command line was
23746
23747  CONFIG_FILES    = $CONFIG_FILES
23748  CONFIG_HEADERS  = $CONFIG_HEADERS
23749  CONFIG_LINKS    = $CONFIG_LINKS
23750  CONFIG_COMMANDS = $CONFIG_COMMANDS
23751  $ $0 $@
23752
23753on `(hostname || uname -n) 2>/dev/null | sed 1q`
23754"
23755
23756_ACEOF
23757
23758case $ac_config_files in *"
23759"*) set x $ac_config_files; shift; ac_config_files=$*;;
23760esac
23761
23762case $ac_config_headers in *"
23763"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23764esac
23765
23766
23767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23768# Files that config.status was made for.
23769config_files="$ac_config_files"
23770config_headers="$ac_config_headers"
23771config_commands="$ac_config_commands"
23772
23773_ACEOF
23774
23775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23776ac_cs_usage="\
23777\`$as_me' instantiates files and other configuration actions
23778from templates according to the current configuration.  Unless the files
23779and actions are specified as TAGs, all are instantiated by default.
23780
23781Usage: $0 [OPTION]... [TAG]...
23782
23783  -h, --help       print this help, then exit
23784  -V, --version    print version number and configuration settings, then exit
23785      --config     print configuration, then exit
23786  -q, --quiet, --silent
23787                   do not print progress messages
23788  -d, --debug      don't remove temporary files
23789      --recheck    update $as_me by reconfiguring in the same conditions
23790      --file=FILE[:TEMPLATE]
23791                   instantiate the configuration file FILE
23792      --header=FILE[:TEMPLATE]
23793                   instantiate the configuration header FILE
23794
23795Configuration files:
23796$config_files
23797
23798Configuration headers:
23799$config_headers
23800
23801Configuration commands:
23802$config_commands
23803
23804Report bugs to the package provider."
23805
23806_ACEOF
23807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23808ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23809ac_cs_version="\\
23810cfengine config.status 3.17.0
23811configured by $0, generated by GNU Autoconf 2.69,
23812  with options \\"\$ac_cs_config\\"
23813
23814Copyright (C) 2012 Free Software Foundation, Inc.
23815This config.status script is free software; the Free Software Foundation
23816gives unlimited permission to copy, distribute and modify it."
23817
23818ac_pwd='$ac_pwd'
23819srcdir='$srcdir'
23820INSTALL='$INSTALL'
23821MKDIR_P='$MKDIR_P'
23822AWK='$AWK'
23823test -n "\$AWK" || AWK=awk
23824_ACEOF
23825
23826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23827# The default lists apply if the user does not specify any file.
23828ac_need_defaults=:
23829while test $# != 0
23830do
23831  case $1 in
23832  --*=?*)
23833    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23834    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23835    ac_shift=:
23836    ;;
23837  --*=)
23838    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23839    ac_optarg=
23840    ac_shift=:
23841    ;;
23842  *)
23843    ac_option=$1
23844    ac_optarg=$2
23845    ac_shift=shift
23846    ;;
23847  esac
23848
23849  case $ac_option in
23850  # Handling of the options.
23851  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23852    ac_cs_recheck=: ;;
23853  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23854    $as_echo "$ac_cs_version"; exit ;;
23855  --config | --confi | --conf | --con | --co | --c )
23856    $as_echo "$ac_cs_config"; exit ;;
23857  --debug | --debu | --deb | --de | --d | -d )
23858    debug=: ;;
23859  --file | --fil | --fi | --f )
23860    $ac_shift
23861    case $ac_optarg in
23862    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23863    '') as_fn_error $? "missing file argument" ;;
23864    esac
23865    as_fn_append CONFIG_FILES " '$ac_optarg'"
23866    ac_need_defaults=false;;
23867  --header | --heade | --head | --hea )
23868    $ac_shift
23869    case $ac_optarg in
23870    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23871    esac
23872    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23873    ac_need_defaults=false;;
23874  --he | --h)
23875    # Conflict between --help and --header
23876    as_fn_error $? "ambiguous option: \`$1'
23877Try \`$0 --help' for more information.";;
23878  --help | --hel | -h )
23879    $as_echo "$ac_cs_usage"; exit ;;
23880  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23881  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23882    ac_cs_silent=: ;;
23883
23884  # This is an error.
23885  -*) as_fn_error $? "unrecognized option: \`$1'
23886Try \`$0 --help' for more information." ;;
23887
23888  *) as_fn_append ac_config_targets " $1"
23889     ac_need_defaults=false ;;
23890
23891  esac
23892  shift
23893done
23894
23895ac_configure_extra_args=
23896
23897if $ac_cs_silent; then
23898  exec 6>/dev/null
23899  ac_configure_extra_args="$ac_configure_extra_args --silent"
23900fi
23901
23902_ACEOF
23903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23904if \$ac_cs_recheck; then
23905  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23906  shift
23907  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23908  CONFIG_SHELL='$SHELL'
23909  export CONFIG_SHELL
23910  exec "\$@"
23911fi
23912
23913_ACEOF
23914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23915exec 5>>config.log
23916{
23917  echo
23918  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23919## Running $as_me. ##
23920_ASBOX
23921  $as_echo "$ac_log"
23922} >&5
23923
23924_ACEOF
23925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23926#
23927# INIT-COMMANDS
23928#
23929AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23930
23931
23932# The HP-UX ksh and POSIX shell print the target directory to stdout
23933# if CDPATH is set.
23934(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23935
23936sed_quote_subst='$sed_quote_subst'
23937double_quote_subst='$double_quote_subst'
23938delay_variable_subst='$delay_variable_subst'
23939macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23940macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23941enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23942enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23943pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23944enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23945shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23946SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23947ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23948PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23949host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23950host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23951host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23952build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23953build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23954build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23955SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23956Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23957GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23958EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23959FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23960LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23961NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23962LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23963max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23964ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23965exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23966lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23967lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23968lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23969lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23970lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23971reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23972reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23973OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23974deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23975file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23976file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23977want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23978DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23979sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23980AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23981AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23982archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23983STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23984RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23985old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23986old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23987old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23988lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23989CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23990CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23991compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23992GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23993lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23994lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23995lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23996lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23997lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
23998lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23999nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24000lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24001lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24002objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24003MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24004lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24005lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24006lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24007lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24008lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24009need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24010MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24011DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24012NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24013LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24014OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24015OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24016libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24017shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24018extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24019archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24020enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24021export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24022whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24023compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24024old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24025old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24026archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24027archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24028module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24029module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24030with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24031allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24032no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24033hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24034hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24035hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24036hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24037hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24038hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24039hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24040inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24041link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24042always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24043export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24044exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24045include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24046prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24047postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24048file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24049variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24050need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24051need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24052version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24053runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24054shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24055shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24056libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24057library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24058soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24059install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24060postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24061postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24062finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24063finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24064hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24065sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24066configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24067configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24068hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24069enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24070enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24071enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24072old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24073striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24074
24075LTCC='$LTCC'
24076LTCFLAGS='$LTCFLAGS'
24077compiler='$compiler_DEFAULT'
24078
24079# A function that is used when there is no print builtin or printf.
24080func_fallback_echo ()
24081{
24082  eval 'cat <<_LTECHO_EOF
24083\$1
24084_LTECHO_EOF'
24085}
24086
24087# Quote evaled strings.
24088for var in SHELL \
24089ECHO \
24090PATH_SEPARATOR \
24091SED \
24092GREP \
24093EGREP \
24094FGREP \
24095LD \
24096NM \
24097LN_S \
24098lt_SP2NL \
24099lt_NL2SP \
24100reload_flag \
24101OBJDUMP \
24102deplibs_check_method \
24103file_magic_cmd \
24104file_magic_glob \
24105want_nocaseglob \
24106DLLTOOL \
24107sharedlib_from_linklib_cmd \
24108AR \
24109AR_FLAGS \
24110archiver_list_spec \
24111STRIP \
24112RANLIB \
24113CC \
24114CFLAGS \
24115compiler \
24116lt_cv_sys_global_symbol_pipe \
24117lt_cv_sys_global_symbol_to_cdecl \
24118lt_cv_sys_global_symbol_to_import \
24119lt_cv_sys_global_symbol_to_c_name_address \
24120lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24121lt_cv_nm_interface \
24122nm_file_list_spec \
24123lt_cv_truncate_bin \
24124lt_prog_compiler_no_builtin_flag \
24125lt_prog_compiler_pic \
24126lt_prog_compiler_wl \
24127lt_prog_compiler_static \
24128lt_cv_prog_compiler_c_o \
24129need_locks \
24130MANIFEST_TOOL \
24131DSYMUTIL \
24132NMEDIT \
24133LIPO \
24134OTOOL \
24135OTOOL64 \
24136shrext_cmds \
24137export_dynamic_flag_spec \
24138whole_archive_flag_spec \
24139compiler_needs_object \
24140with_gnu_ld \
24141allow_undefined_flag \
24142no_undefined_flag \
24143hardcode_libdir_flag_spec \
24144hardcode_libdir_separator \
24145exclude_expsyms \
24146include_expsyms \
24147file_list_spec \
24148variables_saved_for_relink \
24149libname_spec \
24150library_names_spec \
24151soname_spec \
24152install_override_mode \
24153finish_eval \
24154old_striplib \
24155striplib; do
24156    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24157    *[\\\\\\\`\\"\\\$]*)
24158      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24159      ;;
24160    *)
24161      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24162      ;;
24163    esac
24164done
24165
24166# Double-quote double-evaled strings.
24167for var in reload_cmds \
24168old_postinstall_cmds \
24169old_postuninstall_cmds \
24170old_archive_cmds \
24171extract_expsyms_cmds \
24172old_archive_from_new_cmds \
24173old_archive_from_expsyms_cmds \
24174archive_cmds \
24175archive_expsym_cmds \
24176module_cmds \
24177module_expsym_cmds \
24178export_symbols_cmds \
24179prelink_cmds \
24180postlink_cmds \
24181postinstall_cmds \
24182postuninstall_cmds \
24183finish_cmds \
24184sys_lib_search_path_spec \
24185configure_time_dlsearch_path \
24186configure_time_lt_sys_library_path; do
24187    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24188    *[\\\\\\\`\\"\\\$]*)
24189      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24190      ;;
24191    *)
24192      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24193      ;;
24194    esac
24195done
24196
24197ac_aux_dir='$ac_aux_dir'
24198
24199# See if we are running on zsh, and set the options that allow our
24200# commands through without removal of \ escapes INIT.
24201if test -n "\${ZSH_VERSION+set}"; then
24202   setopt NO_GLOB_SUBST
24203fi
24204
24205
24206    PACKAGE='$PACKAGE'
24207    VERSION='$VERSION'
24208    RM='$RM'
24209    ofile='$ofile'
24210
24211
24212
24213
24214_ACEOF
24215
24216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24217
24218# Handling of arguments.
24219for ac_config_target in $ac_config_targets
24220do
24221  case $ac_config_target in
24222    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24223    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24224    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24225    "configure_flags.env") CONFIG_FILES="$CONFIG_FILES configure_flags.env" ;;
24226    "misc/init.d/cfengine3") CONFIG_FILES="$CONFIG_FILES misc/init.d/cfengine3" ;;
24227    "misc/systemd/cfengine3.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cfengine3.service" ;;
24228    "misc/systemd/cf-apache.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-apache.service" ;;
24229    "misc/systemd/cf-execd.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-execd.service" ;;
24230    "misc/systemd/cf-hub.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-hub.service" ;;
24231    "misc/systemd/cf-monitord.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-monitord.service" ;;
24232    "misc/systemd/cf-postgres.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-postgres.service" ;;
24233    "misc/systemd/cf-runalerts.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-runalerts.service" ;;
24234    "misc/systemd/cf-serverd.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-serverd.service" ;;
24235    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24236    "libcfnet/Makefile") CONFIG_FILES="$CONFIG_FILES libcfnet/Makefile" ;;
24237    "libenv/Makefile") CONFIG_FILES="$CONFIG_FILES libenv/Makefile" ;;
24238    "libpromises/Makefile") CONFIG_FILES="$CONFIG_FILES libpromises/Makefile" ;;
24239    "cf-agent/Makefile") CONFIG_FILES="$CONFIG_FILES cf-agent/Makefile" ;;
24240    "cf-check/Makefile") CONFIG_FILES="$CONFIG_FILES cf-check/Makefile" ;;
24241    "cf-promises/Makefile") CONFIG_FILES="$CONFIG_FILES cf-promises/Makefile" ;;
24242    "cf-execd/Makefile") CONFIG_FILES="$CONFIG_FILES cf-execd/Makefile" ;;
24243    "cf-key/Makefile") CONFIG_FILES="$CONFIG_FILES cf-key/Makefile" ;;
24244    "cf-monitord/Makefile") CONFIG_FILES="$CONFIG_FILES cf-monitord/Makefile" ;;
24245    "cf-upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES cf-upgrade/Makefile" ;;
24246    "cf-runagent/Makefile") CONFIG_FILES="$CONFIG_FILES cf-runagent/Makefile" ;;
24247    "cf-serverd/Makefile") CONFIG_FILES="$CONFIG_FILES cf-serverd/Makefile" ;;
24248    "cf-testd/Makefile") CONFIG_FILES="$CONFIG_FILES cf-testd/Makefile" ;;
24249    "cf-net/Makefile") CONFIG_FILES="$CONFIG_FILES cf-net/Makefile" ;;
24250    "cf-secret/Makefile") CONFIG_FILES="$CONFIG_FILES cf-secret/Makefile" ;;
24251    "config.post.h") CONFIG_FILES="$CONFIG_FILES config.post.h" ;;
24252    "contrib/vagrant-ci/centos-6-x64/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/vagrant-ci/centos-6-x64/Makefile" ;;
24253    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
24254    "misc/selinux/Makefile") CONFIG_FILES="$CONFIG_FILES misc/selinux/Makefile" ;;
24255    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
24256    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24257    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24258    "tests/acceptance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/acceptance/Makefile" ;;
24259    "tests/acceptance/25_cf-execd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/acceptance/25_cf-execd/Makefile" ;;
24260    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
24261    "tests/load/Makefile") CONFIG_FILES="$CONFIG_FILES tests/load/Makefile" ;;
24262    "tests/static-check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/static-check/Makefile" ;;
24263    "tests/valgrind-check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/valgrind-check/Makefile" ;;
24264
24265  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24266  esac
24267done
24268
24269
24270# If the user did not use the arguments to specify the items to instantiate,
24271# then the envvar interface is used.  Set only those that are not.
24272# We use the long form for the default assignment because of an extremely
24273# bizarre bug on SunOS 4.1.3.
24274if $ac_need_defaults; then
24275  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24276  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24277  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24278fi
24279
24280# Have a temporary directory for convenience.  Make it in the build tree
24281# simply because there is no reason against having it here, and in addition,
24282# creating and moving files from /tmp can sometimes cause problems.
24283# Hook for its removal unless debugging.
24284# Note that there is a small window in which the directory will not be cleaned:
24285# after its creation but before its name has been assigned to `$tmp'.
24286$debug ||
24287{
24288  tmp= ac_tmp=
24289  trap 'exit_status=$?
24290  : "${ac_tmp:=$tmp}"
24291  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24292' 0
24293  trap 'as_fn_exit 1' 1 2 13 15
24294}
24295# Create a (secure) tmp directory for tmp files.
24296
24297{
24298  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24299  test -d "$tmp"
24300}  ||
24301{
24302  tmp=./conf$$-$RANDOM
24303  (umask 077 && mkdir "$tmp")
24304} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24305ac_tmp=$tmp
24306
24307# Set up the scripts for CONFIG_FILES section.
24308# No need to generate them if there are no CONFIG_FILES.
24309# This happens for instance with `./config.status config.h'.
24310if test -n "$CONFIG_FILES"; then
24311
24312
24313ac_cr=`echo X | tr X '\015'`
24314# On cygwin, bash can eat \r inside `` if the user requested igncr.
24315# But we know of no other shell where ac_cr would be empty at this
24316# point, so we can use a bashism as a fallback.
24317if test "x$ac_cr" = x; then
24318  eval ac_cr=\$\'\\r\'
24319fi
24320ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24321if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24322  ac_cs_awk_cr='\\r'
24323else
24324  ac_cs_awk_cr=$ac_cr
24325fi
24326
24327echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24328_ACEOF
24329
24330
24331{
24332  echo "cat >conf$$subs.awk <<_ACEOF" &&
24333  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24334  echo "_ACEOF"
24335} >conf$$subs.sh ||
24336  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24337ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24338ac_delim='%!_!# '
24339for ac_last_try in false false false false false :; do
24340  . ./conf$$subs.sh ||
24341    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24342
24343  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24344  if test $ac_delim_n = $ac_delim_num; then
24345    break
24346  elif $ac_last_try; then
24347    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24348  else
24349    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24350  fi
24351done
24352rm -f conf$$subs.sh
24353
24354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24355cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24356_ACEOF
24357sed -n '
24358h
24359s/^/S["/; s/!.*/"]=/
24360p
24361g
24362s/^[^!]*!//
24363:repl
24364t repl
24365s/'"$ac_delim"'$//
24366t delim
24367:nl
24368h
24369s/\(.\{148\}\)..*/\1/
24370t more1
24371s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24372p
24373n
24374b repl
24375:more1
24376s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24377p
24378g
24379s/.\{148\}//
24380t nl
24381:delim
24382h
24383s/\(.\{148\}\)..*/\1/
24384t more2
24385s/["\\]/\\&/g; s/^/"/; s/$/"/
24386p
24387b
24388:more2
24389s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24390p
24391g
24392s/.\{148\}//
24393t delim
24394' <conf$$subs.awk | sed '
24395/^[^""]/{
24396  N
24397  s/\n//
24398}
24399' >>$CONFIG_STATUS || ac_write_fail=1
24400rm -f conf$$subs.awk
24401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24402_ACAWK
24403cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24404  for (key in S) S_is_set[key] = 1
24405  FS = ""
24406
24407}
24408{
24409  line = $ 0
24410  nfields = split(line, field, "@")
24411  substed = 0
24412  len = length(field[1])
24413  for (i = 2; i < nfields; i++) {
24414    key = field[i]
24415    keylen = length(key)
24416    if (S_is_set[key]) {
24417      value = S[key]
24418      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24419      len += length(value) + length(field[++i])
24420      substed = 1
24421    } else
24422      len += 1 + keylen
24423  }
24424
24425  print line
24426}
24427
24428_ACAWK
24429_ACEOF
24430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24431if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24432  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24433else
24434  cat
24435fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24436  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24437_ACEOF
24438
24439# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24440# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24441# trailing colons and then remove the whole line if VPATH becomes empty
24442# (actually we leave an empty line to preserve line numbers).
24443if test "x$srcdir" = x.; then
24444  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24445h
24446s///
24447s/^/:/
24448s/[	 ]*$/:/
24449s/:\$(srcdir):/:/g
24450s/:\${srcdir}:/:/g
24451s/:@srcdir@:/:/g
24452s/^:*//
24453s/:*$//
24454x
24455s/\(=[	 ]*\).*/\1/
24456G
24457s/\n//
24458s/^[^=]*=[	 ]*$//
24459}'
24460fi
24461
24462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24463fi # test -n "$CONFIG_FILES"
24464
24465# Set up the scripts for CONFIG_HEADERS section.
24466# No need to generate them if there are no CONFIG_HEADERS.
24467# This happens for instance with `./config.status Makefile'.
24468if test -n "$CONFIG_HEADERS"; then
24469cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24470BEGIN {
24471_ACEOF
24472
24473# Transform confdefs.h into an awk script `defines.awk', embedded as
24474# here-document in config.status, that substitutes the proper values into
24475# config.h.in to produce config.h.
24476
24477# Create a delimiter string that does not exist in confdefs.h, to ease
24478# handling of long lines.
24479ac_delim='%!_!# '
24480for ac_last_try in false false :; do
24481  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24482  if test -z "$ac_tt"; then
24483    break
24484  elif $ac_last_try; then
24485    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24486  else
24487    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24488  fi
24489done
24490
24491# For the awk script, D is an array of macro values keyed by name,
24492# likewise P contains macro parameters if any.  Preserve backslash
24493# newline sequences.
24494
24495ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24496sed -n '
24497s/.\{148\}/&'"$ac_delim"'/g
24498t rset
24499:rset
24500s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24501t def
24502d
24503:def
24504s/\\$//
24505t bsnl
24506s/["\\]/\\&/g
24507s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24508D["\1"]=" \3"/p
24509s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24510d
24511:bsnl
24512s/["\\]/\\&/g
24513s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24514D["\1"]=" \3\\\\\\n"\\/p
24515t cont
24516s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24517t cont
24518d
24519:cont
24520n
24521s/.\{148\}/&'"$ac_delim"'/g
24522t clear
24523:clear
24524s/\\$//
24525t bsnlc
24526s/["\\]/\\&/g; s/^/"/; s/$/"/p
24527d
24528:bsnlc
24529s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24530b cont
24531' <confdefs.h | sed '
24532s/'"$ac_delim"'/"\\\
24533"/g' >>$CONFIG_STATUS || ac_write_fail=1
24534
24535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24536  for (key in D) D_is_set[key] = 1
24537  FS = ""
24538}
24539/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24540  line = \$ 0
24541  split(line, arg, " ")
24542  if (arg[1] == "#") {
24543    defundef = arg[2]
24544    mac1 = arg[3]
24545  } else {
24546    defundef = substr(arg[1], 2)
24547    mac1 = arg[2]
24548  }
24549  split(mac1, mac2, "(") #)
24550  macro = mac2[1]
24551  prefix = substr(line, 1, index(line, defundef) - 1)
24552  if (D_is_set[macro]) {
24553    # Preserve the white space surrounding the "#".
24554    print prefix "define", macro P[macro] D[macro]
24555    next
24556  } else {
24557    # Replace #undef with comments.  This is necessary, for example,
24558    # in the case of _POSIX_SOURCE, which is predefined and required
24559    # on some systems where configure will not decide to define it.
24560    if (defundef == "undef") {
24561      print "/*", prefix defundef, macro, "*/"
24562      next
24563    }
24564  }
24565}
24566{ print }
24567_ACAWK
24568_ACEOF
24569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24570  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24571fi # test -n "$CONFIG_HEADERS"
24572
24573
24574eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24575shift
24576for ac_tag
24577do
24578  case $ac_tag in
24579  :[FHLC]) ac_mode=$ac_tag; continue;;
24580  esac
24581  case $ac_mode$ac_tag in
24582  :[FHL]*:*);;
24583  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24584  :[FH]-) ac_tag=-:-;;
24585  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24586  esac
24587  ac_save_IFS=$IFS
24588  IFS=:
24589  set x $ac_tag
24590  IFS=$ac_save_IFS
24591  shift
24592  ac_file=$1
24593  shift
24594
24595  case $ac_mode in
24596  :L) ac_source=$1;;
24597  :[FH])
24598    ac_file_inputs=
24599    for ac_f
24600    do
24601      case $ac_f in
24602      -) ac_f="$ac_tmp/stdin";;
24603      *) # Look for the file first in the build tree, then in the source tree
24604	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24605	 # because $ac_f cannot contain `:'.
24606	 test -f "$ac_f" ||
24607	   case $ac_f in
24608	   [\\/$]*) false;;
24609	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24610	   esac ||
24611	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24612      esac
24613      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24614      as_fn_append ac_file_inputs " '$ac_f'"
24615    done
24616
24617    # Let's still pretend it is `configure' which instantiates (i.e., don't
24618    # use $as_me), people would be surprised to read:
24619    #    /* config.h.  Generated by config.status.  */
24620    configure_input='Generated from '`
24621	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24622	`' by configure.'
24623    if test x"$ac_file" != x-; then
24624      configure_input="$ac_file.  $configure_input"
24625      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24626$as_echo "$as_me: creating $ac_file" >&6;}
24627    fi
24628    # Neutralize special characters interpreted by sed in replacement strings.
24629    case $configure_input in #(
24630    *\&* | *\|* | *\\* )
24631       ac_sed_conf_input=`$as_echo "$configure_input" |
24632       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24633    *) ac_sed_conf_input=$configure_input;;
24634    esac
24635
24636    case $ac_tag in
24637    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24638      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24639    esac
24640    ;;
24641  esac
24642
24643  ac_dir=`$as_dirname -- "$ac_file" ||
24644$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24645	 X"$ac_file" : 'X\(//\)[^/]' \| \
24646	 X"$ac_file" : 'X\(//\)$' \| \
24647	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24648$as_echo X"$ac_file" |
24649    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24650	    s//\1/
24651	    q
24652	  }
24653	  /^X\(\/\/\)[^/].*/{
24654	    s//\1/
24655	    q
24656	  }
24657	  /^X\(\/\/\)$/{
24658	    s//\1/
24659	    q
24660	  }
24661	  /^X\(\/\).*/{
24662	    s//\1/
24663	    q
24664	  }
24665	  s/.*/./; q'`
24666  as_dir="$ac_dir"; as_fn_mkdir_p
24667  ac_builddir=.
24668
24669case "$ac_dir" in
24670.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24671*)
24672  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24673  # A ".." for each directory in $ac_dir_suffix.
24674  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24675  case $ac_top_builddir_sub in
24676  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24677  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24678  esac ;;
24679esac
24680ac_abs_top_builddir=$ac_pwd
24681ac_abs_builddir=$ac_pwd$ac_dir_suffix
24682# for backward compatibility:
24683ac_top_builddir=$ac_top_build_prefix
24684
24685case $srcdir in
24686  .)  # We are building in place.
24687    ac_srcdir=.
24688    ac_top_srcdir=$ac_top_builddir_sub
24689    ac_abs_top_srcdir=$ac_pwd ;;
24690  [\\/]* | ?:[\\/]* )  # Absolute name.
24691    ac_srcdir=$srcdir$ac_dir_suffix;
24692    ac_top_srcdir=$srcdir
24693    ac_abs_top_srcdir=$srcdir ;;
24694  *) # Relative name.
24695    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24696    ac_top_srcdir=$ac_top_build_prefix$srcdir
24697    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24698esac
24699ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24700
24701
24702  case $ac_mode in
24703  :F)
24704  #
24705  # CONFIG_FILE
24706  #
24707
24708  case $INSTALL in
24709  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24710  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24711  esac
24712  ac_MKDIR_P=$MKDIR_P
24713  case $MKDIR_P in
24714  [\\/$]* | ?:[\\/]* ) ;;
24715  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24716  esac
24717_ACEOF
24718
24719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24720# If the template does not know about datarootdir, expand it.
24721# FIXME: This hack should be removed a few years after 2.60.
24722ac_datarootdir_hack=; ac_datarootdir_seen=
24723ac_sed_dataroot='
24724/datarootdir/ {
24725  p
24726  q
24727}
24728/@datadir@/p
24729/@docdir@/p
24730/@infodir@/p
24731/@localedir@/p
24732/@mandir@/p'
24733case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24734*datarootdir*) ac_datarootdir_seen=yes;;
24735*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24736  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24737$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24738_ACEOF
24739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24740  ac_datarootdir_hack='
24741  s&@datadir@&$datadir&g
24742  s&@docdir@&$docdir&g
24743  s&@infodir@&$infodir&g
24744  s&@localedir@&$localedir&g
24745  s&@mandir@&$mandir&g
24746  s&\\\${datarootdir}&$datarootdir&g' ;;
24747esac
24748_ACEOF
24749
24750# Neutralize VPATH when `$srcdir' = `.'.
24751# Shell code in configure.ac might set extrasub.
24752# FIXME: do we really want to maintain this feature?
24753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24754ac_sed_extra="$ac_vpsub
24755$extrasub
24756_ACEOF
24757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24758:t
24759/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24760s|@configure_input@|$ac_sed_conf_input|;t t
24761s&@top_builddir@&$ac_top_builddir_sub&;t t
24762s&@top_build_prefix@&$ac_top_build_prefix&;t t
24763s&@srcdir@&$ac_srcdir&;t t
24764s&@abs_srcdir@&$ac_abs_srcdir&;t t
24765s&@top_srcdir@&$ac_top_srcdir&;t t
24766s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24767s&@builddir@&$ac_builddir&;t t
24768s&@abs_builddir@&$ac_abs_builddir&;t t
24769s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24770s&@INSTALL@&$ac_INSTALL&;t t
24771s&@MKDIR_P@&$ac_MKDIR_P&;t t
24772$ac_datarootdir_hack
24773"
24774eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24775  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24776
24777test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24778  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24779  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24780      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24781  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24782which seems to be undefined.  Please make sure it is defined" >&5
24783$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24784which seems to be undefined.  Please make sure it is defined" >&2;}
24785
24786  rm -f "$ac_tmp/stdin"
24787  case $ac_file in
24788  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24789  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24790  esac \
24791  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24792 ;;
24793  :H)
24794  #
24795  # CONFIG_HEADER
24796  #
24797  if test x"$ac_file" != x-; then
24798    {
24799      $as_echo "/* $configure_input  */" \
24800      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24801    } >"$ac_tmp/config.h" \
24802      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24803    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24804      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24805$as_echo "$as_me: $ac_file is unchanged" >&6;}
24806    else
24807      rm -f "$ac_file"
24808      mv "$ac_tmp/config.h" "$ac_file" \
24809	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24810    fi
24811  else
24812    $as_echo "/* $configure_input  */" \
24813      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24814      || as_fn_error $? "could not create -" "$LINENO" 5
24815  fi
24816# Compute "$ac_file"'s index in $config_headers.
24817_am_arg="$ac_file"
24818_am_stamp_count=1
24819for _am_header in $config_headers :; do
24820  case $_am_header in
24821    $_am_arg | $_am_arg:* )
24822      break ;;
24823    * )
24824      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24825  esac
24826done
24827echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24828$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24829	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24830	 X"$_am_arg" : 'X\(//\)$' \| \
24831	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24832$as_echo X"$_am_arg" |
24833    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24834	    s//\1/
24835	    q
24836	  }
24837	  /^X\(\/\/\)[^/].*/{
24838	    s//\1/
24839	    q
24840	  }
24841	  /^X\(\/\/\)$/{
24842	    s//\1/
24843	    q
24844	  }
24845	  /^X\(\/\).*/{
24846	    s//\1/
24847	    q
24848	  }
24849	  s/.*/./; q'`/stamp-h$_am_stamp_count
24850 ;;
24851
24852  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24853$as_echo "$as_me: executing $ac_file commands" >&6;}
24854 ;;
24855  esac
24856
24857
24858  case $ac_file$ac_mode in
24859    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24860  # Older Autoconf quotes --file arguments for eval, but not when files
24861  # are listed without --file.  Let's play safe and only enable the eval
24862  # if we detect the quoting.
24863  case $CONFIG_FILES in
24864  *\'*) eval set x "$CONFIG_FILES" ;;
24865  *)   set x $CONFIG_FILES ;;
24866  esac
24867  shift
24868  for mf
24869  do
24870    # Strip MF so we end up with the name of the file.
24871    mf=`echo "$mf" | sed -e 's/:.*$//'`
24872    # Check whether this is an Automake generated Makefile or not.
24873    # We used to match only the files named 'Makefile.in', but
24874    # some people rename them; so instead we look at the file content.
24875    # Grep'ing the first line is not enough: some people post-process
24876    # each Makefile.in and add a new line on top of each file to say so.
24877    # Grep'ing the whole file is not good either: AIX grep has a line
24878    # limit of 2048, but all sed's we know have understand at least 4000.
24879    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24880      dirpart=`$as_dirname -- "$mf" ||
24881$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24882	 X"$mf" : 'X\(//\)[^/]' \| \
24883	 X"$mf" : 'X\(//\)$' \| \
24884	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24885$as_echo X"$mf" |
24886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24887	    s//\1/
24888	    q
24889	  }
24890	  /^X\(\/\/\)[^/].*/{
24891	    s//\1/
24892	    q
24893	  }
24894	  /^X\(\/\/\)$/{
24895	    s//\1/
24896	    q
24897	  }
24898	  /^X\(\/\).*/{
24899	    s//\1/
24900	    q
24901	  }
24902	  s/.*/./; q'`
24903    else
24904      continue
24905    fi
24906    # Extract the definition of DEPDIR, am__include, and am__quote
24907    # from the Makefile without running 'make'.
24908    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24909    test -z "$DEPDIR" && continue
24910    am__include=`sed -n 's/^am__include = //p' < "$mf"`
24911    test -z "$am__include" && continue
24912    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24913    # Find all dependency output files, they are included files with
24914    # $(DEPDIR) in their names.  We invoke sed twice because it is the
24915    # simplest approach to changing $(DEPDIR) to its actual value in the
24916    # expansion.
24917    for file in `sed -n "
24918      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24919	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24920      # Make sure the directory exists.
24921      test -f "$dirpart/$file" && continue
24922      fdir=`$as_dirname -- "$file" ||
24923$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924	 X"$file" : 'X\(//\)[^/]' \| \
24925	 X"$file" : 'X\(//\)$' \| \
24926	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24927$as_echo X"$file" |
24928    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24929	    s//\1/
24930	    q
24931	  }
24932	  /^X\(\/\/\)[^/].*/{
24933	    s//\1/
24934	    q
24935	  }
24936	  /^X\(\/\/\)$/{
24937	    s//\1/
24938	    q
24939	  }
24940	  /^X\(\/\).*/{
24941	    s//\1/
24942	    q
24943	  }
24944	  s/.*/./; q'`
24945      as_dir=$dirpart/$fdir; as_fn_mkdir_p
24946      # echo "creating $dirpart/$file"
24947      echo '# dummy' > "$dirpart/$file"
24948    done
24949  done
24950}
24951 ;;
24952    "libtool":C)
24953
24954    # See if we are running on zsh, and set the options that allow our
24955    # commands through without removal of \ escapes.
24956    if test -n "${ZSH_VERSION+set}"; then
24957      setopt NO_GLOB_SUBST
24958    fi
24959
24960    cfgfile=${ofile}T
24961    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24962    $RM "$cfgfile"
24963
24964    cat <<_LT_EOF >> "$cfgfile"
24965#! $SHELL
24966# Generated automatically by $as_me ($PACKAGE) $VERSION
24967# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24968
24969# Provide generalized library-building support services.
24970# Written by Gordon Matzigkeit, 1996
24971
24972# Copyright (C) 2014 Free Software Foundation, Inc.
24973# This is free software; see the source for copying conditions.  There is NO
24974# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24975
24976# GNU Libtool is free software; you can redistribute it and/or modify
24977# it under the terms of the GNU General Public License as published by
24978# the Free Software Foundation; either version 2 of of the License, or
24979# (at your option) any later version.
24980#
24981# As a special exception to the GNU General Public License, if you
24982# distribute this file as part of a program or library that is built
24983# using GNU Libtool, you may include this file under the  same
24984# distribution terms that you use for the rest of that program.
24985#
24986# GNU Libtool is distributed in the hope that it will be useful, but
24987# WITHOUT ANY WARRANTY; without even the implied warranty of
24988# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24989# GNU General Public License for more details.
24990#
24991# You should have received a copy of the GNU General Public License
24992# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24993
24994
24995# The names of the tagged configurations supported by this script.
24996available_tags=''
24997
24998# Configured defaults for sys_lib_dlsearch_path munging.
24999: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25000
25001# ### BEGIN LIBTOOL CONFIG
25002
25003# Which release of libtool.m4 was used?
25004macro_version=$macro_version
25005macro_revision=$macro_revision
25006
25007# Whether or not to build static libraries.
25008build_old_libs=$enable_static
25009
25010# Whether or not to build shared libraries.
25011build_libtool_libs=$enable_shared
25012
25013# What type of objects to build.
25014pic_mode=$pic_mode
25015
25016# Whether or not to optimize for fast installation.
25017fast_install=$enable_fast_install
25018
25019# Shared archive member basename,for filename based shared library versioning on AIX.
25020shared_archive_member_spec=$shared_archive_member_spec
25021
25022# Shell to use when invoking shell scripts.
25023SHELL=$lt_SHELL
25024
25025# An echo program that protects backslashes.
25026ECHO=$lt_ECHO
25027
25028# The PATH separator for the build system.
25029PATH_SEPARATOR=$lt_PATH_SEPARATOR
25030
25031# The host system.
25032host_alias=$host_alias
25033host=$host
25034host_os=$host_os
25035
25036# The build system.
25037build_alias=$build_alias
25038build=$build
25039build_os=$build_os
25040
25041# A sed program that does not truncate output.
25042SED=$lt_SED
25043
25044# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25045Xsed="\$SED -e 1s/^X//"
25046
25047# A grep program that handles long lines.
25048GREP=$lt_GREP
25049
25050# An ERE matcher.
25051EGREP=$lt_EGREP
25052
25053# A literal string matcher.
25054FGREP=$lt_FGREP
25055
25056# A BSD- or MS-compatible name lister.
25057NM=$lt_NM
25058
25059# Whether we need soft or hard links.
25060LN_S=$lt_LN_S
25061
25062# What is the maximum length of a command?
25063max_cmd_len=$max_cmd_len
25064
25065# Object file suffix (normally "o").
25066objext=$ac_objext
25067
25068# Executable file suffix (normally "").
25069exeext=$exeext
25070
25071# whether the shell understands "unset".
25072lt_unset=$lt_unset
25073
25074# turn spaces into newlines.
25075SP2NL=$lt_lt_SP2NL
25076
25077# turn newlines into spaces.
25078NL2SP=$lt_lt_NL2SP
25079
25080# convert \$build file names to \$host format.
25081to_host_file_cmd=$lt_cv_to_host_file_cmd
25082
25083# convert \$build files to toolchain format.
25084to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25085
25086# An object symbol dumper.
25087OBJDUMP=$lt_OBJDUMP
25088
25089# Method to check whether dependent libraries are shared objects.
25090deplibs_check_method=$lt_deplibs_check_method
25091
25092# Command to use when deplibs_check_method = "file_magic".
25093file_magic_cmd=$lt_file_magic_cmd
25094
25095# How to find potential files when deplibs_check_method = "file_magic".
25096file_magic_glob=$lt_file_magic_glob
25097
25098# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25099want_nocaseglob=$lt_want_nocaseglob
25100
25101# DLL creation program.
25102DLLTOOL=$lt_DLLTOOL
25103
25104# Command to associate shared and link libraries.
25105sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25106
25107# The archiver.
25108AR=$lt_AR
25109
25110# Flags to create an archive.
25111AR_FLAGS=$lt_AR_FLAGS
25112
25113# How to feed a file listing to the archiver.
25114archiver_list_spec=$lt_archiver_list_spec
25115
25116# A symbol stripping program.
25117STRIP=$lt_STRIP
25118
25119# Commands used to install an old-style archive.
25120RANLIB=$lt_RANLIB
25121old_postinstall_cmds=$lt_old_postinstall_cmds
25122old_postuninstall_cmds=$lt_old_postuninstall_cmds
25123
25124# Whether to use a lock for old archive extraction.
25125lock_old_archive_extraction=$lock_old_archive_extraction
25126
25127# A C compiler.
25128LTCC=$lt_CC
25129
25130# LTCC compiler flags.
25131LTCFLAGS=$lt_CFLAGS
25132
25133# Take the output of nm and produce a listing of raw symbols and C names.
25134global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25135
25136# Transform the output of nm in a proper C declaration.
25137global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25138
25139# Transform the output of nm into a list of symbols to manually relocate.
25140global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25141
25142# Transform the output of nm in a C name address pair.
25143global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25144
25145# Transform the output of nm in a C name address pair when lib prefix is needed.
25146global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25147
25148# The name lister interface.
25149nm_interface=$lt_lt_cv_nm_interface
25150
25151# Specify filename containing input files for \$NM.
25152nm_file_list_spec=$lt_nm_file_list_spec
25153
25154# The root where to search for dependent libraries,and where our libraries should be installed.
25155lt_sysroot=$lt_sysroot
25156
25157# Command to truncate a binary pipe.
25158lt_truncate_bin=$lt_lt_cv_truncate_bin
25159
25160# The name of the directory that contains temporary libtool files.
25161objdir=$objdir
25162
25163# Used to examine libraries when file_magic_cmd begins with "file".
25164MAGIC_CMD=$MAGIC_CMD
25165
25166# Must we lock files when doing compilation?
25167need_locks=$lt_need_locks
25168
25169# Manifest tool.
25170MANIFEST_TOOL=$lt_MANIFEST_TOOL
25171
25172# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25173DSYMUTIL=$lt_DSYMUTIL
25174
25175# Tool to change global to local symbols on Mac OS X.
25176NMEDIT=$lt_NMEDIT
25177
25178# Tool to manipulate fat objects and archives on Mac OS X.
25179LIPO=$lt_LIPO
25180
25181# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25182OTOOL=$lt_OTOOL
25183
25184# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25185OTOOL64=$lt_OTOOL64
25186
25187# Old archive suffix (normally "a").
25188libext=$libext
25189
25190# Shared library suffix (normally ".so").
25191shrext_cmds=$lt_shrext_cmds
25192
25193# The commands to extract the exported symbol list from a shared archive.
25194extract_expsyms_cmds=$lt_extract_expsyms_cmds
25195
25196# Variables whose values should be saved in libtool wrapper scripts and
25197# restored at link time.
25198variables_saved_for_relink=$lt_variables_saved_for_relink
25199
25200# Do we need the "lib" prefix for modules?
25201need_lib_prefix=$need_lib_prefix
25202
25203# Do we need a version for libraries?
25204need_version=$need_version
25205
25206# Library versioning type.
25207version_type=$version_type
25208
25209# Shared library runtime path variable.
25210runpath_var=$runpath_var
25211
25212# Shared library path variable.
25213shlibpath_var=$shlibpath_var
25214
25215# Is shlibpath searched before the hard-coded library search path?
25216shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25217
25218# Format of library name prefix.
25219libname_spec=$lt_libname_spec
25220
25221# List of archive names.  First name is the real one, the rest are links.
25222# The last name is the one that the linker finds with -lNAME
25223library_names_spec=$lt_library_names_spec
25224
25225# The coded name of the library, if different from the real name.
25226soname_spec=$lt_soname_spec
25227
25228# Permission mode override for installation of shared libraries.
25229install_override_mode=$lt_install_override_mode
25230
25231# Command to use after installation of a shared archive.
25232postinstall_cmds=$lt_postinstall_cmds
25233
25234# Command to use after uninstallation of a shared archive.
25235postuninstall_cmds=$lt_postuninstall_cmds
25236
25237# Commands used to finish a libtool library installation in a directory.
25238finish_cmds=$lt_finish_cmds
25239
25240# As "finish_cmds", except a single script fragment to be evaled but
25241# not shown.
25242finish_eval=$lt_finish_eval
25243
25244# Whether we should hardcode library paths into libraries.
25245hardcode_into_libs=$hardcode_into_libs
25246
25247# Compile-time system search path for libraries.
25248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25249
25250# Detected run-time system search path for libraries.
25251sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25252
25253# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25254configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25255
25256# Whether dlopen is supported.
25257dlopen_support=$enable_dlopen
25258
25259# Whether dlopen of programs is supported.
25260dlopen_self=$enable_dlopen_self
25261
25262# Whether dlopen of statically linked programs is supported.
25263dlopen_self_static=$enable_dlopen_self_static
25264
25265# Commands to strip libraries.
25266old_striplib=$lt_old_striplib
25267striplib=$lt_striplib
25268
25269
25270# The linker used to build libraries.
25271LD=$lt_LD
25272
25273# How to create reloadable object files.
25274reload_flag=$lt_reload_flag
25275reload_cmds=$lt_reload_cmds
25276
25277# Commands used to build an old-style archive.
25278old_archive_cmds=$lt_old_archive_cmds
25279
25280# A language specific compiler.
25281CC=$lt_compiler
25282
25283# Is the compiler the GNU compiler?
25284with_gcc=$GCC
25285
25286# Compiler flag to turn off builtin functions.
25287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25288
25289# Additional compiler flags for building library objects.
25290pic_flag=$lt_lt_prog_compiler_pic
25291
25292# How to pass a linker flag through the compiler.
25293wl=$lt_lt_prog_compiler_wl
25294
25295# Compiler flag to prevent dynamic linking.
25296link_static_flag=$lt_lt_prog_compiler_static
25297
25298# Does compiler simultaneously support -c and -o options?
25299compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25300
25301# Whether or not to add -lc for building shared libraries.
25302build_libtool_need_lc=$archive_cmds_need_lc
25303
25304# Whether or not to disallow shared libs when runtime libs are static.
25305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25306
25307# Compiler flag to allow reflexive dlopens.
25308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25309
25310# Compiler flag to generate shared objects directly from archives.
25311whole_archive_flag_spec=$lt_whole_archive_flag_spec
25312
25313# Whether the compiler copes with passing no objects directly.
25314compiler_needs_object=$lt_compiler_needs_object
25315
25316# Create an old-style archive from a shared archive.
25317old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25318
25319# Create a temporary old-style archive to link instead of a shared archive.
25320old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25321
25322# Commands used to build a shared archive.
25323archive_cmds=$lt_archive_cmds
25324archive_expsym_cmds=$lt_archive_expsym_cmds
25325
25326# Commands used to build a loadable module if different from building
25327# a shared archive.
25328module_cmds=$lt_module_cmds
25329module_expsym_cmds=$lt_module_expsym_cmds
25330
25331# Whether we are building with GNU ld or not.
25332with_gnu_ld=$lt_with_gnu_ld
25333
25334# Flag that allows shared libraries with undefined symbols to be built.
25335allow_undefined_flag=$lt_allow_undefined_flag
25336
25337# Flag that enforces no undefined symbols.
25338no_undefined_flag=$lt_no_undefined_flag
25339
25340# Flag to hardcode \$libdir into a binary during linking.
25341# This must work even if \$libdir does not exist
25342hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25343
25344# Whether we need a single "-rpath" flag with a separated argument.
25345hardcode_libdir_separator=$lt_hardcode_libdir_separator
25346
25347# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25348# DIR into the resulting binary.
25349hardcode_direct=$hardcode_direct
25350
25351# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25352# DIR into the resulting binary and the resulting library dependency is
25353# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25354# library is relocated.
25355hardcode_direct_absolute=$hardcode_direct_absolute
25356
25357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25358# into the resulting binary.
25359hardcode_minus_L=$hardcode_minus_L
25360
25361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25362# into the resulting binary.
25363hardcode_shlibpath_var=$hardcode_shlibpath_var
25364
25365# Set to "yes" if building a shared library automatically hardcodes DIR
25366# into the library and all subsequent libraries and executables linked
25367# against it.
25368hardcode_automatic=$hardcode_automatic
25369
25370# Set to yes if linker adds runtime paths of dependent libraries
25371# to runtime path list.
25372inherit_rpath=$inherit_rpath
25373
25374# Whether libtool must link a program against all its dependency libraries.
25375link_all_deplibs=$link_all_deplibs
25376
25377# Set to "yes" if exported symbols are required.
25378always_export_symbols=$always_export_symbols
25379
25380# The commands to list exported symbols.
25381export_symbols_cmds=$lt_export_symbols_cmds
25382
25383# Symbols that should not be listed in the preloaded symbols.
25384exclude_expsyms=$lt_exclude_expsyms
25385
25386# Symbols that must always be exported.
25387include_expsyms=$lt_include_expsyms
25388
25389# Commands necessary for linking programs (against libraries) with templates.
25390prelink_cmds=$lt_prelink_cmds
25391
25392# Commands necessary for finishing linking programs.
25393postlink_cmds=$lt_postlink_cmds
25394
25395# Specify filename containing input files.
25396file_list_spec=$lt_file_list_spec
25397
25398# How to hardcode a shared library path into an executable.
25399hardcode_action=$hardcode_action
25400
25401# ### END LIBTOOL CONFIG
25402
25403_LT_EOF
25404
25405    cat <<'_LT_EOF' >> "$cfgfile"
25406
25407# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25408
25409# func_munge_path_list VARIABLE PATH
25410# -----------------------------------
25411# VARIABLE is name of variable containing _space_ separated list of
25412# directories to be munged by the contents of PATH, which is string
25413# having a format:
25414# "DIR[:DIR]:"
25415#       string "DIR[ DIR]" will be prepended to VARIABLE
25416# ":DIR[:DIR]"
25417#       string "DIR[ DIR]" will be appended to VARIABLE
25418# "DIRP[:DIRP]::[DIRA:]DIRA"
25419#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25420#       "DIRA[ DIRA]" will be appended to VARIABLE
25421# "DIR[:DIR]"
25422#       VARIABLE will be replaced by "DIR[ DIR]"
25423func_munge_path_list ()
25424{
25425    case x$2 in
25426    x)
25427        ;;
25428    *:)
25429        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25430        ;;
25431    x:*)
25432        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25433        ;;
25434    *::*)
25435        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25436        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25437        ;;
25438    *)
25439        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25440        ;;
25441    esac
25442}
25443
25444
25445# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25446func_cc_basename ()
25447{
25448    for cc_temp in $*""; do
25449      case $cc_temp in
25450        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25451        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25452        \-*) ;;
25453        *) break;;
25454      esac
25455    done
25456    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25457}
25458
25459
25460# ### END FUNCTIONS SHARED WITH CONFIGURE
25461
25462_LT_EOF
25463
25464  case $host_os in
25465  aix3*)
25466    cat <<\_LT_EOF >> "$cfgfile"
25467# AIX sometimes has problems with the GCC collect2 program.  For some
25468# reason, if we set the COLLECT_NAMES environment variable, the problems
25469# vanish in a puff of smoke.
25470if test set != "${COLLECT_NAMES+set}"; then
25471  COLLECT_NAMES=
25472  export COLLECT_NAMES
25473fi
25474_LT_EOF
25475    ;;
25476  esac
25477
25478
25479ltmain=$ac_aux_dir/ltmain.sh
25480
25481
25482  # We use sed instead of cat because bash on DJGPP gets confused if
25483  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25484  # text mode, it properly converts lines to CR/LF.  This bash problem
25485  # is reportedly fixed, but why not run on old versions too?
25486  sed '$q' "$ltmain" >> "$cfgfile" \
25487     || (rm -f "$cfgfile"; exit 1)
25488
25489   mv -f "$cfgfile" "$ofile" ||
25490    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25491  chmod +x "$ofile"
25492
25493 ;;
25494    "misc/init.d/cfengine3":F) chmod +x misc/init.d/cfengine3 ;;
25495
25496  esac
25497done # for ac_tag
25498
25499
25500as_fn_exit 0
25501_ACEOF
25502ac_clean_files=$ac_clean_files_save
25503
25504test $ac_write_fail = 0 ||
25505  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25506
25507
25508# configure is writing to config.log, and then calls config.status.
25509# config.status does its own redirection, appending to config.log.
25510# Unfortunately, on DOS this fails, as config.log is still kept open
25511# by configure, so config.status won't be able to write to it; its
25512# output is simply discarded.  So we exec the FD to /dev/null,
25513# effectively closing config.log, so it can be properly (re)opened and
25514# appended to by config.status.  When coming back to configure, we
25515# need to make the FD available again.
25516if test "$no_create" != yes; then
25517  ac_cs_success=:
25518  ac_config_status_args=
25519  test "$silent" = yes &&
25520    ac_config_status_args="$ac_config_status_args --quiet"
25521  exec 5>/dev/null
25522  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25523  exec 5>>config.log
25524  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25525  # would make configure fail if this is the last instruction.
25526  $ac_cs_success || as_fn_exit 1
25527fi
25528
25529#
25530# CONFIG_SUBDIRS section.
25531#
25532if test "$no_recursion" != yes; then
25533
25534  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25535  # so they do not pile up.
25536  ac_sub_configure_args=
25537  ac_prev=
25538  eval "set x $ac_configure_args"
25539  shift
25540  for ac_arg
25541  do
25542    if test -n "$ac_prev"; then
25543      ac_prev=
25544      continue
25545    fi
25546    case $ac_arg in
25547    -cache-file | --cache-file | --cache-fil | --cache-fi \
25548    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25549      ac_prev=cache_file ;;
25550    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25551    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25552    | --c=*)
25553      ;;
25554    --config-cache | -C)
25555      ;;
25556    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25557      ac_prev=srcdir ;;
25558    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25559      ;;
25560    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25561      ac_prev=prefix ;;
25562    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25563      ;;
25564    --disable-option-checking)
25565      ;;
25566    *)
25567      case $ac_arg in
25568      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25569      esac
25570      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
25571    esac
25572  done
25573
25574  # Always prepend --prefix to ensure using the same prefix
25575  # in subdir configurations.
25576  ac_arg="--prefix=$prefix"
25577  case $ac_arg in
25578  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25579  esac
25580  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25581
25582  # Pass --silent
25583  if test "$silent" = yes; then
25584    ac_sub_configure_args="--silent $ac_sub_configure_args"
25585  fi
25586
25587  # Always prepend --disable-option-checking to silence warnings, since
25588  # different subdirs can have different --enable and --with options.
25589  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
25590
25591  ac_popdir=`pwd`
25592  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25593
25594    # Do not complain, so a configure script can configure whichever
25595    # parts of a large source tree are present.
25596    test -d "$srcdir/$ac_dir" || continue
25597
25598    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25599    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
25600    $as_echo "$ac_msg" >&6
25601    as_dir="$ac_dir"; as_fn_mkdir_p
25602    ac_builddir=.
25603
25604case "$ac_dir" in
25605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25606*)
25607  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25608  # A ".." for each directory in $ac_dir_suffix.
25609  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25610  case $ac_top_builddir_sub in
25611  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25612  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25613  esac ;;
25614esac
25615ac_abs_top_builddir=$ac_pwd
25616ac_abs_builddir=$ac_pwd$ac_dir_suffix
25617# for backward compatibility:
25618ac_top_builddir=$ac_top_build_prefix
25619
25620case $srcdir in
25621  .)  # We are building in place.
25622    ac_srcdir=.
25623    ac_top_srcdir=$ac_top_builddir_sub
25624    ac_abs_top_srcdir=$ac_pwd ;;
25625  [\\/]* | ?:[\\/]* )  # Absolute name.
25626    ac_srcdir=$srcdir$ac_dir_suffix;
25627    ac_top_srcdir=$srcdir
25628    ac_abs_top_srcdir=$srcdir ;;
25629  *) # Relative name.
25630    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25631    ac_top_srcdir=$ac_top_build_prefix$srcdir
25632    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25633esac
25634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25635
25636
25637    cd "$ac_dir"
25638
25639    # Check for guested configure; otherwise get Cygnus style configure.
25640    if test -f "$ac_srcdir/configure.gnu"; then
25641      ac_sub_configure=$ac_srcdir/configure.gnu
25642    elif test -f "$ac_srcdir/configure"; then
25643      ac_sub_configure=$ac_srcdir/configure
25644    elif test -f "$ac_srcdir/configure.in"; then
25645      # This should be Cygnus configure.
25646      ac_sub_configure=$ac_aux_dir/configure
25647    else
25648      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
25649$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25650      ac_sub_configure=
25651    fi
25652
25653    # The recursion is here.
25654    if test -n "$ac_sub_configure"; then
25655      # Make the cache file name correct relative to the subdirectory.
25656      case $cache_file in
25657      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25658      *) # Relative name.
25659	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25660      esac
25661
25662      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25663$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25664      # The eval makes quoting arguments work.
25665      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25666	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25667	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
25668    fi
25669
25670    cd "$ac_popdir"
25671  done
25672fi
25673if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25674  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25675$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25676fi
25677
25678
25679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DONE: Configuration done. Run make/gmake to build CFEngine Community." >&5
25680$as_echo "DONE: Configuration done. Run make/gmake to build CFEngine Community." >&6; }
25681