1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for rsyslog 8.2112.0.
4#
5# Report bugs to <rsyslog@lists.adiscon.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: rsyslog@lists.adiscon.com about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='rsyslog'
592PACKAGE_TARNAME='rsyslog'
593PACKAGE_VERSION='8.2112.0'
594PACKAGE_STRING='rsyslog 8.2112.0'
595PACKAGE_BUGREPORT='rsyslog@lists.adiscon.com'
596PACKAGE_URL=''
597
598ac_unique_file="ChangeLog"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638RST2MAN
639ENABLE_GENERATE_MAN_PAGES_FALSE
640ENABLE_GENERATE_MAN_PAGES_TRUE
641YACC_FOUND
642ENABLE_DISTCHECK_WORKAROUND_FALSE
643ENABLE_DISTCHECK_WORKAROUND_TRUE
644ENABLE_MMTAGHOSTNAME_FALSE
645ENABLE_MMTAGHOSTNAME_TRUE
646ENABLE_MMKUBERNETES_FALSE
647ENABLE_MMKUBERNETES_TRUE
648ENABLE_OMTCL_FALSE
649ENABLE_OMTCL_TRUE
650TCL_INCLUDE_SPEC
651TCL_STUB_LIB_SPEC
652TCL_STUB_LIB_FLAG
653TCL_STUB_LIB_FILE
654TCL_LIB_SPEC
655TCL_LIB_FLAG
656TCL_LIB_FILE
657TCL_SRC_DIR
658TCL_BIN_DIR
659TCL_PATCH_LEVEL
660TCL_VERSION
661ENABLE_OMAMQP1_FALSE
662ENABLE_OMAMQP1_TRUE
663PROTON_LIBS
664PROTON_CFLAGS
665ENABLE_OMHTTPFS_FALSE
666ENABLE_OMHTTPFS_TRUE
667ENABLE_IMHIREDIS_FALSE
668ENABLE_IMHIREDIS_TRUE
669ENABLE_OMHIREDIS_FALSE
670ENABLE_OMHIREDIS_TRUE
671LIBEVENT_LIBS
672LIBEVENT_CFLAGS
673HIREDIS_LIBS
674HIREDIS_CFLAGS
675ENABLE_OMRABBITMQ_FALSE
676ENABLE_OMRABBITMQ_TRUE
677RABBITMQ_LIBS
678RABBITMQ_CFLAGS
679ENABLE_OMCZMQ_FALSE
680ENABLE_OMCZMQ_TRUE
681ENABLE_IMCZMQ_FALSE
682ENABLE_IMCZMQ_TRUE
683CZMQ_LIBS
684CZMQ_CFLAGS
685ENABLE_OMMONGODB_FALSE
686ENABLE_OMMONGODB_TRUE
687LIBMONGOC_LIBS
688LIBMONGOC_CFLAGS
689ENABLE_IMKAFKA_FALSE
690ENABLE_IMKAFKA_TRUE
691ENABLE_OMKAFKA_FALSE
692ENABLE_OMKAFKA_TRUE
693READLINK
694WGET
695JAVA
696JAVAC
697IMKAFKA_USE_DUMMY_FALSE
698IMKAFKA_USE_DUMMY_TRUE
699LIBLZ4_LIBS
700LIBLZ4_CFLAGS
701OMKAFKA_USE_DUMMY_FALSE
702OMKAFKA_USE_DUMMY_TRUE
703LIBRDKAFKA_LIBS
704LIBRDKAFKA_CFLAGS
705ENABLE_KAFKA_STATIC_FALSE
706ENABLE_KAFKA_STATIC_TRUE
707ENABLE_KAFKA_TESTS_FALSE
708ENABLE_KAFKA_TESTS_TRUE
709ENABLE_OMHDFS_FALSE
710ENABLE_OMHDFS_TRUE
711ENABLE_MMSNMPTRAPD_FALSE
712ENABLE_MMSNMPTRAPD_TRUE
713ENABLE_OMUXSOCK_FALSE
714ENABLE_OMUXSOCK_TRUE
715ENABLE_OMRULESET_FALSE
716ENABLE_OMRULESET_TRUE
717ENABLE_PMPANNGFW_FALSE
718ENABLE_PMPANNGFW_TRUE
719ENABLE_PMSNARE_FALSE
720ENABLE_PMSNARE_TRUE
721ENABLE_PMAIXFORWARDEDFROM_FALSE
722ENABLE_PMAIXFORWARDEDFROM_TRUE
723ENABLE_PMNORMALIZE_FALSE
724ENABLE_PMNORMALIZE_TRUE
725ENABLE_PMNULL_FALSE
726ENABLE_PMNULL_TRUE
727ENABLE_PMCISCOIOS_FALSE
728ENABLE_PMCISCOIOS_TRUE
729ENABLE_PMCISCONAMES_FALSE
730ENABLE_PMCISCONAMES_TRUE
731ENABLE_PMLASTMSG_FALSE
732ENABLE_PMLASTMSG_TRUE
733ENABLE_JOURNAL_TESTS_FALSE
734ENABLE_JOURNAL_TESTS_TRUE
735ENABLE_OMJOURNAL_FALSE
736ENABLE_OMJOURNAL_TRUE
737ENABLE_TESTBENCH_FALSE
738ENABLE_TESTBENCH_TRUE
739ENABLE_OMSTDOUT_FALSE
740ENABLE_OMSTDOUT_TRUE
741UDPSPOOF_LIBS
742UDPSPOOF_CFLAGS
743ENABLE_OMUDPSPOOF_FALSE
744ENABLE_OMUDPSPOOF_TRUE
745ENABLE_OMPROG_FALSE
746ENABLE_OMPROG_TRUE
747ENABLE_IMPCAP_FALSE
748ENABLE_IMPCAP_TRUE
749ENABLE_IMPSTATS_FALSE
750ENABLE_IMPSTATS_TRUE
751ENABLE_IMPTCP_FALSE
752ENABLE_IMPTCP_TRUE
753ENABLE_IMSOLARIS_FALSE
754ENABLE_IMSOLARIS_TRUE
755ENABLE_IMHTTP_FALSE
756ENABLE_IMHTTP_TRUE
757CIVETWEB_LIBS
758APU_LIBS
759APU_CFLAGS
760ENABLE_IMPROG_FALSE
761ENABLE_IMPROG_TRUE
762ENABLE_IMTUXEDOULOG_FALSE
763ENABLE_IMTUXEDOULOG_TRUE
764ENABLE_IMDOCKER_TESTS_FALSE
765ENABLE_IMDOCKER_TESTS_TRUE
766ENABLE_IMDOCKER_FALSE
767ENABLE_IMDOCKER_TRUE
768ENABLE_IMFILE_TESTS_FALSE
769ENABLE_IMFILE_TESTS_TRUE
770ENABLE_IMFILE_FALSE
771ENABLE_IMFILE_TRUE
772ENABLE_PMDB2DIAG_FALSE
773ENABLE_PMDB2DIAG_TRUE
774ENABLE_IMBATCHREPORT_FALSE
775ENABLE_IMBATCHREPORT_TRUE
776ENABLE_HELGRIND_FALSE
777ENABLE_HELGRIND_TRUE
778HAVE_VALGRIND_FALSE
779HAVE_VALGRIND_TRUE
780VALGRIND
781ENABLE_IP_FALSE
782ENABLE_IP_TRUE
783IP
784ENABLE_DEFAULT_TESTS_FALSE
785ENABLE_DEFAULT_TESTS_TRUE
786ENABLE_LIBFAKETIME_FALSE
787ENABLE_LIBFAKETIME_TRUE
788ENABLE_RFC3195_FALSE
789ENABLE_RFC3195_TRUE
790LIBLOGGING_LIBS
791LIBLOGGING_CFLAGS
792ENABLE_LIBLOGGING_STDLOG_FALSE
793ENABLE_LIBLOGGING_STDLOG_TRUE
794LIBLOGGING_STDLOG_LIBS
795LIBLOGGING_STDLOG_CFLAGS
796ENABLE_KSI_LS12_FALSE
797ENABLE_KSI_LS12_TRUE
798GT_KSI_LS12_LIBS
799GT_KSI_LS12_CFLAGS
800USE_RELPENGINESETTLSCFGCMD_FALSE
801USE_RELPENGINESETTLSCFGCMD_TRUE
802ENABLE_RELP_FALSE
803ENABLE_RELP_TRUE
804RELP_LIBS
805RELP_CFLAGS
806ENABLE_OMFILE_HARDENED_FALSE
807ENABLE_OMFILE_HARDENED_TRUE
808ENABLE_MMRFC5424ADDHMAC_FALSE
809ENABLE_MMRFC5424ADDHMAC_TRUE
810ENABLE_MMPSTRUCDATA_FALSE
811ENABLE_MMPSTRUCDATA_TRUE
812ENABLE_MMFIELDS_FALSE
813ENABLE_MMFIELDS_TRUE
814ENABLE_MMDARWIN_FALSE
815ENABLE_MMDARWIN_TRUE
816MMDBLOOKUP_USE_DUMMY_FALSE
817MMDBLOOKUP_USE_DUMMY_TRUE
818ENABLE_MMDBLOOKUP_FALSE
819ENABLE_MMDBLOOKUP_TRUE
820ENABLE_MMSEQUENCE_FALSE
821ENABLE_MMSEQUENCE_TRUE
822ENABLE_MMCOUNT_FALSE
823ENABLE_MMCOUNT_TRUE
824ENABLE_MMUTF8FIX_FALSE
825ENABLE_MMUTF8FIX_TRUE
826ENABLE_MMRM1STSPACE_FALSE
827ENABLE_MMRM1STSPACE_TRUE
828ENABLE_MMANON_FALSE
829ENABLE_MMANON_TRUE
830ENABLE_MMAUDIT_FALSE
831ENABLE_MMAUDIT_TRUE
832GLIB_LIBS
833GLIB_CFLAGS
834ENABLE_MMGROK_FALSE
835ENABLE_MMGROK_TRUE
836ENABLE_MMJSONPARSE_FALSE
837ENABLE_MMJSONPARSE_TRUE
838ENABLE_MMNORMALIZE_FALSE
839ENABLE_MMNORMALIZE_TRUE
840LOGNORM_REGEX_SUPPORTED_FALSE
841LOGNORM_REGEX_SUPPORTED_TRUE
842LIBLOGNORM_LIBS
843LIBLOGNORM_CFLAGS
844ENABLE_IMDIAG_FALSE
845ENABLE_IMDIAG_TRUE
846ENABLE_FMHTTP_FALSE
847ENABLE_FMHTTP_TRUE
848ENABLE_MAIL_FALSE
849ENABLE_MAIL_TRUE
850ENABLE_PGSQL_TESTS_FALSE
851ENABLE_PGSQL_TESTS_TRUE
852ENABLE_MYSQL_TESTS_FALSE
853ENABLE_MYSQL_TESTS_TRUE
854ENABLE_EXTENDED_TESTS_FALSE
855ENABLE_EXTENDED_TESTS_TRUE
856ENABLE_RSYSLOGD_FALSE
857ENABLE_RSYSLOGD_TRUE
858RSRT_LIBS
859RSRT_CFLAGS
860RSRT_LIBS1
861RSRT_CFLAGS1
862ENABLE_RSYSLOGRT_FALSE
863ENABLE_RSYSLOGRT_TRUE
864LIBGCRYPT_LIBS
865LIBGCRYPT_CFLAGS
866ENABLE_LIBGCRYPT_FALSE
867ENABLE_LIBGCRYPT_TRUE
868LIBGCRYPT_CONFIG
869ENABLE_GNUTLS_TESTS_FALSE
870ENABLE_GNUTLS_TESTS_TRUE
871ENABLE_GNUTLS_FALSE
872ENABLE_GNUTLS_TRUE
873GNUTLS_LIBS
874GNUTLS_CFLAGS
875ENABLE_OPENSSL_FALSE
876ENABLE_OPENSSL_TRUE
877OPENSSL_LIBS
878OPENSSL_CFLAGS
879ENABLE_CLICKHOUSE_TESTS_FALSE
880ENABLE_CLICKHOUSE_TESTS_TRUE
881ENABLE_ELASTICSEARCH_TESTS_MINIMAL_FALSE
882ENABLE_ELASTICSEARCH_TESTS_MINIMAL_TRUE
883ENABLE_ELASTICSEARCH_TESTS_FALSE
884ENABLE_ELASTICSEARCH_TESTS_TRUE
885ENABLE_OMHTTP_FALSE
886ENABLE_OMHTTP_TRUE
887ENABLE_CLICKHOUSE_FALSE
888ENABLE_CLICKHOUSE_TRUE
889ENABLE_ELASTICSEARCH_FALSE
890ENABLE_ELASTICSEARCH_TRUE
891LIBM
892CURL_LIBS
893CURL_CFLAGS
894ENABLE_UUID_FALSE
895ENABLE_UUID_TRUE
896LIBUUID_LIBS
897LIBUUID_CFLAGS
898ENABLE_SNMP_TESTS_FALSE
899ENABLE_SNMP_TESTS_TRUE
900SNMP_LIBS
901SNMP_CFLAGS
902ENABLE_SNMP_FALSE
903ENABLE_SNMP_TRUE
904LIBDBI_LIBS
905LIBDBI_CFLAGS
906ENABLE_OMLIBDBI_FALSE
907ENABLE_OMLIBDBI_TRUE
908LIBDBI_USE_DUMMY_FALSE
909LIBDBI_USE_DUMMY_TRUE
910ENABLE_PGSQL_FALSE
911ENABLE_PGSQL_TRUE
912PG_CONFIG
913PGSQL_LIBS
914PGSQL_CFLAGS
915ENABLE_MYSQL_FALSE
916ENABLE_MYSQL_TRUE
917MYSQL_CONFIG
918MYSQL_LIBS
919MYSQL_CFLAGS
920ENABLE_USERTOOLS_FALSE
921ENABLE_USERTOOLS_TRUE
922ENABLE_DIAGTOOLS_FALSE
923ENABLE_DIAGTOOLS_TRUE
924HAVE_SYSTEMD_FALSE
925HAVE_SYSTEMD_TRUE
926systemdsystemunitdir
927ENABLE_JEMALLOC_FALSE
928ENABLE_JEMALLOC_TRUE
929ENABLE_INET_FALSE
930ENABLE_INET_TRUE
931LIBSYSTEMD_LIBS
932LIBSYSTEMD_CFLAGS
933ENABLE_IMJOURNAL_FALSE
934ENABLE_IMJOURNAL_TRUE
935IMJOURNAL_USE_DUMMY_FALSE
936IMJOURNAL_USE_DUMMY_TRUE
937LIBSYSTEMD_JOURNAL_LIBS
938LIBSYSTEMD_JOURNAL_CFLAGS
939ENABLE_IMKMSG_FALSE
940ENABLE_IMKMSG_TRUE
941ENABLE_IMKLOG_SOLARIS_FALSE
942ENABLE_IMKLOG_SOLARIS_TRUE
943ENABLE_IMKLOG_LINUX_FALSE
944ENABLE_IMKLOG_LINUX_TRUE
945ENABLE_IMKLOG_BSD_FALSE
946ENABLE_IMKLOG_BSD_TRUE
947ENABLE_IMKLOG_FALSE
948ENABLE_IMKLOG_TRUE
949IMUDP_LIBS
950PTHREADS_CFLAGS
951PTHREADS_LIBS
952ENABLE_ROOT_TESTS_FALSE
953ENABLE_ROOT_TESTS_TRUE
954ENABLE_GSSAPI_FALSE
955ENABLE_GSSAPI_TRUE
956GSS_LIBS
957ENABLE_FMUNFLATTEN_FALSE
958ENABLE_FMUNFLATTEN_TRUE
959FAUP_LIBS
960ENABLE_FFAUP_FALSE
961ENABLE_FFAUP_TRUE
962HASH_XXHASH_LIBS
963ENABLE_FMHASH_XXHASH_FALSE
964ENABLE_FMHASH_XXHASH_TRUE
965ENABLE_FMHASH_FALSE
966ENABLE_FMHASH_TRUE
967ZLIB_LIBS
968ZLIB_CFLAGS
969ENABLE_REGEXP_FALSE
970ENABLE_REGEXP_TRUE
971moddirs
972WITH_MODDIRS_FALSE
973WITH_MODDIRS_TRUE
974ENABLE_INOTIFY_FALSE
975ENABLE_INOTIFY_TRUE
976LIBOBJS
977DL_LIBS
978RT_LIBS
979pkgpyexecdir
980pyexecdir
981pkgpythondir
982pythondir
983PYTHON_PLATFORM
984PYTHON_EXEC_PREFIX
985PYTHON_PREFIX
986PYTHON_VERSION
987PYTHON
988OS_AIX_FALSE
989OS_AIX_TRUE
990OS_LINUX_FALSE
991OS_LINUX_TRUE
992OS_APPLE_FALSE
993OS_APPLE_TRUE
994SOL_LIBS
995LIBFASTJSON_LIBS
996LIBFASTJSON_CFLAGS
997LIBESTR_LIBS
998LIBESTR_CFLAGS
999PID_FILE_PATH
1000CONF_FILE_PATH
1001PKG_CONFIG_LIBDIR
1002PKG_CONFIG_PATH
1003PKG_CONFIG
1004WARN_SCANNERFLAGS
1005WARN_LDFLAGS
1006WARN_CFLAGS
1007LT_SYS_LIBRARY_PATH
1008OTOOL64
1009OTOOL
1010LIPO
1011NMEDIT
1012DSYMUTIL
1013MANIFEST_TOOL
1014RANLIB
1015ac_ct_AR
1016AR
1017DLLTOOL
1018OBJDUMP
1019LN_S
1020NM
1021ac_ct_DUMPBIN
1022DUMPBIN
1023LD
1024FGREP
1025SED
1026host_os
1027host_vendor
1028host_cpu
1029host
1030build_os
1031build_vendor
1032build_cpu
1033build
1034LIBTOOL
1035YFLAGS
1036YACC
1037LEXLIB
1038LEX_OUTPUT_ROOT
1039LEX
1040EGREP
1041GREP
1042CPP
1043am__fastdepCC_FALSE
1044am__fastdepCC_TRUE
1045CCDEPMODE
1046am__nodep
1047AMDEPBACKSLASH
1048AMDEP_FALSE
1049AMDEP_TRUE
1050am__include
1051DEPDIR
1052OBJEXT
1053EXEEXT
1054ac_ct_CC
1055CPPFLAGS
1056LDFLAGS
1057CFLAGS
1058CC
1059AM_BACKSLASH
1060AM_DEFAULT_VERBOSITY
1061AM_DEFAULT_V
1062AM_V
1063am__untar
1064am__tar
1065AMTAR
1066am__leading_dot
1067SET_MAKE
1068AWK
1069mkdir_p
1070MKDIR_P
1071INSTALL_STRIP_PROGRAM
1072STRIP
1073install_sh
1074MAKEINFO
1075AUTOHEADER
1076AUTOMAKE
1077AUTOCONF
1078ACLOCAL
1079VERSION
1080PACKAGE
1081CYGPATH_W
1082am__isrc
1083INSTALL_DATA
1084INSTALL_SCRIPT
1085INSTALL_PROGRAM
1086target_alias
1087host_alias
1088build_alias
1089LIBS
1090ECHO_T
1091ECHO_N
1092ECHO_C
1093DEFS
1094mandir
1095localedir
1096libdir
1097psdir
1098pdfdir
1099dvidir
1100htmldir
1101infodir
1102docdir
1103oldincludedir
1104includedir
1105runstatedir
1106localstatedir
1107sharedstatedir
1108sysconfdir
1109datadir
1110datarootdir
1111libexecdir
1112sbindir
1113bindir
1114program_transform_name
1115prefix
1116exec_prefix
1117PACKAGE_URL
1118PACKAGE_BUGREPORT
1119PACKAGE_STRING
1120PACKAGE_VERSION
1121PACKAGE_TARNAME
1122PACKAGE_NAME
1123PATH_SEPARATOR
1124SHELL
1125am__quote'
1126ac_subst_files=''
1127ac_user_opts='
1128enable_option_checking
1129enable_silent_rules
1130enable_aix64bits
1131enable_dependency_tracking
1132enable_static
1133enable_shared
1134with_pic
1135enable_fast_install
1136with_aix_soname
1137with_gnu_ld
1138with_sysroot
1139enable_libtool_lock
1140enable_compile_warnings
1141enable_Werror
1142enable_atomic_operations
1143with_moddirs
1144enable_largefile
1145enable_regexp
1146enable_fmhash
1147enable_fmhash_xxhash
1148enable_ffaup
1149enable_fmunflatten
1150enable_gssapi_krb5
1151enable_root_tests
1152enable_klog
1153enable_kmsg
1154enable_imjournal
1155enable_libsystemd
1156enable_inet
1157enable_jemalloc
1158enable_unlimited_select
1159with_systemdsystemunitdir
1160enable_debug
1161enable_debug_symbols
1162enable_debugless
1163enable_valgrind
1164enable_diagtools
1165enable_usertools
1166enable_mysql
1167enable_pgsql
1168enable_libdbi
1169enable_snmp
1170enable_snmp_tests
1171enable_uuid
1172enable_elasticsearch
1173enable_clickhouse
1174enable_omhttp
1175enable_elasticsearch_tests
1176enable_clickhouse_tests
1177enable_openssl
1178enable_gnutls
1179enable_gnutls_tests
1180enable_libgcrypt
1181enable_rsyslogrt
1182enable_rsyslogd
1183enable_extended_tests
1184enable_mysql_tests
1185enable_pgsql_tests
1186enable_mail
1187enable_fmhttp
1188enable_imdiag
1189enable_mmnormalize
1190enable_mmjsonparse
1191enable_mmgrok
1192enable_mmaudit
1193enable_mmanon
1194enable_mmrm1stspace
1195enable_mmutf8fix
1196enable_mmcount
1197enable_mmsequence
1198enable_mmdblookup
1199enable_mmdarwin
1200enable_mmfields
1201enable_mmpstrucdata
1202enable_mmrfc5424addhmac
1203enable_omfile_hardened
1204enable_relp
1205enable_omrelp_default_port
1206enable_ksi_ls12
1207enable_liblogging_stdlog
1208enable_rfc3195
1209enable_testbench
1210enable_libfaketime
1211enable_default_tests
1212with_valgrind_testbench
1213enable_helgrind
1214enable_imbatchreport
1215enable_pmdb2diag
1216enable_imfile
1217enable_imfile_tests
1218enable_imdocker
1219enable_imdocker_tests
1220enable_imtuxedoulog
1221enable_improg
1222enable_imhttp
1223enable_imsolaris
1224enable_imptcp
1225enable_impstats
1226enable_impcap
1227enable_omprog
1228enable_omudpspoof
1229enable_omstdout
1230enable_omjournal
1231enable_journal_tests
1232enable_pmlastmsg
1233enable_pmcisconames
1234enable_pmciscoios
1235enable_pmnull
1236enable_pmnormalize
1237enable_pmaixforwardedfrom
1238enable_pmsnare
1239enable_pmpanngfw
1240enable_omruleset
1241enable_omuxsock
1242enable_mmsnmptrapd
1243enable_omhdfs
1244enable_omkafka
1245enable_imkafka
1246enable_kafka_tests
1247enable_kafka_static
1248enable_ommongodb
1249enable_imczmq
1250enable_omczmq
1251enable_omrabbitmq
1252enable_imhiredis
1253enable_omhiredis
1254enable_omhttpfs
1255enable_omamqp1
1256enable_omtcl
1257with_tcl
1258enable_mmkubernetes
1259enable_mmtaghostname
1260enable_generate_man_pages
1261enable_distcheck_workaround
1262'
1263      ac_precious_vars='build_alias
1264host_alias
1265target_alias
1266CC
1267CFLAGS
1268LDFLAGS
1269LIBS
1270CPPFLAGS
1271CPP
1272YACC
1273YFLAGS
1274LT_SYS_LIBRARY_PATH
1275PKG_CONFIG
1276PKG_CONFIG_PATH
1277PKG_CONFIG_LIBDIR
1278CONF_FILE_PATH
1279PID_FILE_PATH
1280LIBESTR_CFLAGS
1281LIBESTR_LIBS
1282LIBFASTJSON_CFLAGS
1283LIBFASTJSON_LIBS
1284PYTHON
1285ZLIB_CFLAGS
1286ZLIB_LIBS
1287LIBSYSTEMD_JOURNAL_CFLAGS
1288LIBSYSTEMD_JOURNAL_LIBS
1289LIBSYSTEMD_CFLAGS
1290LIBSYSTEMD_LIBS
1291MYSQL_CFLAGS
1292MYSQL_LIBS
1293PGSQL_CFLAGS
1294PGSQL_LIBS
1295LIBUUID_CFLAGS
1296LIBUUID_LIBS
1297CURL_CFLAGS
1298CURL_LIBS
1299OPENSSL_CFLAGS
1300OPENSSL_LIBS
1301GNUTLS_CFLAGS
1302GNUTLS_LIBS
1303LIBLOGNORM_CFLAGS
1304LIBLOGNORM_LIBS
1305RELP_CFLAGS
1306RELP_LIBS
1307GT_KSI_LS12_CFLAGS
1308GT_KSI_LS12_LIBS
1309LIBLOGGING_STDLOG_CFLAGS
1310LIBLOGGING_STDLOG_LIBS
1311LIBLOGGING_CFLAGS
1312LIBLOGGING_LIBS
1313APU_CFLAGS
1314APU_LIBS
1315LIBRDKAFKA_CFLAGS
1316LIBRDKAFKA_LIBS
1317LIBLZ4_CFLAGS
1318LIBLZ4_LIBS
1319LIBMONGOC_CFLAGS
1320LIBMONGOC_LIBS
1321CZMQ_CFLAGS
1322CZMQ_LIBS
1323RABBITMQ_CFLAGS
1324RABBITMQ_LIBS
1325HIREDIS_CFLAGS
1326HIREDIS_LIBS
1327LIBEVENT_CFLAGS
1328LIBEVENT_LIBS
1329PROTON_CFLAGS
1330PROTON_LIBS'
1331
1332
1333# Initialize some variables set by options.
1334ac_init_help=
1335ac_init_version=false
1336ac_unrecognized_opts=
1337ac_unrecognized_sep=
1338# The variables have the same names as the options, with
1339# dashes changed to underlines.
1340cache_file=/dev/null
1341exec_prefix=NONE
1342no_create=
1343no_recursion=
1344prefix=NONE
1345program_prefix=NONE
1346program_suffix=NONE
1347program_transform_name=s,x,x,
1348silent=
1349site=
1350srcdir=
1351verbose=
1352x_includes=NONE
1353x_libraries=NONE
1354
1355# Installation directory options.
1356# These are left unexpanded so users can "make install exec_prefix=/foo"
1357# and all the variables that are supposed to be based on exec_prefix
1358# by default will actually change.
1359# Use braces instead of parens because sh, perl, etc. also accept them.
1360# (The list follows the same order as the GNU Coding Standards.)
1361bindir='${exec_prefix}/bin'
1362sbindir='${exec_prefix}/sbin'
1363libexecdir='${exec_prefix}/libexec'
1364datarootdir='${prefix}/share'
1365datadir='${datarootdir}'
1366sysconfdir='${prefix}/etc'
1367sharedstatedir='${prefix}/com'
1368localstatedir='${prefix}/var'
1369runstatedir='${localstatedir}/run'
1370includedir='${prefix}/include'
1371oldincludedir='/usr/include'
1372docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1373infodir='${datarootdir}/info'
1374htmldir='${docdir}'
1375dvidir='${docdir}'
1376pdfdir='${docdir}'
1377psdir='${docdir}'
1378libdir='${exec_prefix}/lib'
1379localedir='${datarootdir}/locale'
1380mandir='${datarootdir}/man'
1381
1382ac_prev=
1383ac_dashdash=
1384for ac_option
1385do
1386  # If the previous option needs an argument, assign it.
1387  if test -n "$ac_prev"; then
1388    eval $ac_prev=\$ac_option
1389    ac_prev=
1390    continue
1391  fi
1392
1393  case $ac_option in
1394  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1395  *=)   ac_optarg= ;;
1396  *)    ac_optarg=yes ;;
1397  esac
1398
1399  # Accept the important Cygnus configure options, so we can diagnose typos.
1400
1401  case $ac_dashdash$ac_option in
1402  --)
1403    ac_dashdash=yes ;;
1404
1405  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1406    ac_prev=bindir ;;
1407  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1408    bindir=$ac_optarg ;;
1409
1410  -build | --build | --buil | --bui | --bu)
1411    ac_prev=build_alias ;;
1412  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1413    build_alias=$ac_optarg ;;
1414
1415  -cache-file | --cache-file | --cache-fil | --cache-fi \
1416  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1417    ac_prev=cache_file ;;
1418  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1419  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1420    cache_file=$ac_optarg ;;
1421
1422  --config-cache | -C)
1423    cache_file=config.cache ;;
1424
1425  -datadir | --datadir | --datadi | --datad)
1426    ac_prev=datadir ;;
1427  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1428    datadir=$ac_optarg ;;
1429
1430  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1431  | --dataroo | --dataro | --datar)
1432    ac_prev=datarootdir ;;
1433  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1434  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1435    datarootdir=$ac_optarg ;;
1436
1437  -disable-* | --disable-*)
1438    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1439    # Reject names that are not valid shell variable names.
1440    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1441      as_fn_error $? "invalid feature name: $ac_useropt"
1442    ac_useropt_orig=$ac_useropt
1443    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1444    case $ac_user_opts in
1445      *"
1446"enable_$ac_useropt"
1447"*) ;;
1448      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1449	 ac_unrecognized_sep=', ';;
1450    esac
1451    eval enable_$ac_useropt=no ;;
1452
1453  -docdir | --docdir | --docdi | --doc | --do)
1454    ac_prev=docdir ;;
1455  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1456    docdir=$ac_optarg ;;
1457
1458  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1459    ac_prev=dvidir ;;
1460  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1461    dvidir=$ac_optarg ;;
1462
1463  -enable-* | --enable-*)
1464    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1465    # Reject names that are not valid shell variable names.
1466    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467      as_fn_error $? "invalid feature name: $ac_useropt"
1468    ac_useropt_orig=$ac_useropt
1469    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470    case $ac_user_opts in
1471      *"
1472"enable_$ac_useropt"
1473"*) ;;
1474      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1475	 ac_unrecognized_sep=', ';;
1476    esac
1477    eval enable_$ac_useropt=\$ac_optarg ;;
1478
1479  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1480  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1481  | --exec | --exe | --ex)
1482    ac_prev=exec_prefix ;;
1483  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1484  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1485  | --exec=* | --exe=* | --ex=*)
1486    exec_prefix=$ac_optarg ;;
1487
1488  -gas | --gas | --ga | --g)
1489    # Obsolete; use --with-gas.
1490    with_gas=yes ;;
1491
1492  -help | --help | --hel | --he | -h)
1493    ac_init_help=long ;;
1494  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1495    ac_init_help=recursive ;;
1496  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1497    ac_init_help=short ;;
1498
1499  -host | --host | --hos | --ho)
1500    ac_prev=host_alias ;;
1501  -host=* | --host=* | --hos=* | --ho=*)
1502    host_alias=$ac_optarg ;;
1503
1504  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1505    ac_prev=htmldir ;;
1506  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1507  | --ht=*)
1508    htmldir=$ac_optarg ;;
1509
1510  -includedir | --includedir | --includedi | --included | --include \
1511  | --includ | --inclu | --incl | --inc)
1512    ac_prev=includedir ;;
1513  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1514  | --includ=* | --inclu=* | --incl=* | --inc=*)
1515    includedir=$ac_optarg ;;
1516
1517  -infodir | --infodir | --infodi | --infod | --info | --inf)
1518    ac_prev=infodir ;;
1519  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1520    infodir=$ac_optarg ;;
1521
1522  -libdir | --libdir | --libdi | --libd)
1523    ac_prev=libdir ;;
1524  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1525    libdir=$ac_optarg ;;
1526
1527  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1528  | --libexe | --libex | --libe)
1529    ac_prev=libexecdir ;;
1530  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1531  | --libexe=* | --libex=* | --libe=*)
1532    libexecdir=$ac_optarg ;;
1533
1534  -localedir | --localedir | --localedi | --localed | --locale)
1535    ac_prev=localedir ;;
1536  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1537    localedir=$ac_optarg ;;
1538
1539  -localstatedir | --localstatedir | --localstatedi | --localstated \
1540  | --localstate | --localstat | --localsta | --localst | --locals)
1541    ac_prev=localstatedir ;;
1542  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1543  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1544    localstatedir=$ac_optarg ;;
1545
1546  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1547    ac_prev=mandir ;;
1548  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1549    mandir=$ac_optarg ;;
1550
1551  -nfp | --nfp | --nf)
1552    # Obsolete; use --without-fp.
1553    with_fp=no ;;
1554
1555  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1556  | --no-cr | --no-c | -n)
1557    no_create=yes ;;
1558
1559  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1560  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1561    no_recursion=yes ;;
1562
1563  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1564  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1565  | --oldin | --oldi | --old | --ol | --o)
1566    ac_prev=oldincludedir ;;
1567  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1568  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1569  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1570    oldincludedir=$ac_optarg ;;
1571
1572  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1573    ac_prev=prefix ;;
1574  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1575    prefix=$ac_optarg ;;
1576
1577  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1578  | --program-pre | --program-pr | --program-p)
1579    ac_prev=program_prefix ;;
1580  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1581  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1582    program_prefix=$ac_optarg ;;
1583
1584  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1585  | --program-suf | --program-su | --program-s)
1586    ac_prev=program_suffix ;;
1587  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1588  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1589    program_suffix=$ac_optarg ;;
1590
1591  -program-transform-name | --program-transform-name \
1592  | --program-transform-nam | --program-transform-na \
1593  | --program-transform-n | --program-transform- \
1594  | --program-transform | --program-transfor \
1595  | --program-transfo | --program-transf \
1596  | --program-trans | --program-tran \
1597  | --progr-tra | --program-tr | --program-t)
1598    ac_prev=program_transform_name ;;
1599  -program-transform-name=* | --program-transform-name=* \
1600  | --program-transform-nam=* | --program-transform-na=* \
1601  | --program-transform-n=* | --program-transform-=* \
1602  | --program-transform=* | --program-transfor=* \
1603  | --program-transfo=* | --program-transf=* \
1604  | --program-trans=* | --program-tran=* \
1605  | --progr-tra=* | --program-tr=* | --program-t=*)
1606    program_transform_name=$ac_optarg ;;
1607
1608  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1609    ac_prev=pdfdir ;;
1610  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1611    pdfdir=$ac_optarg ;;
1612
1613  -psdir | --psdir | --psdi | --psd | --ps)
1614    ac_prev=psdir ;;
1615  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1616    psdir=$ac_optarg ;;
1617
1618  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619  | -silent | --silent | --silen | --sile | --sil)
1620    silent=yes ;;
1621
1622  -runstatedir | --runstatedir | --runstatedi | --runstated \
1623  | --runstate | --runstat | --runsta | --runst | --runs \
1624  | --run | --ru | --r)
1625    ac_prev=runstatedir ;;
1626  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1627  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1628  | --run=* | --ru=* | --r=*)
1629    runstatedir=$ac_optarg ;;
1630
1631  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1632    ac_prev=sbindir ;;
1633  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1634  | --sbi=* | --sb=*)
1635    sbindir=$ac_optarg ;;
1636
1637  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1638  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1639  | --sharedst | --shareds | --shared | --share | --shar \
1640  | --sha | --sh)
1641    ac_prev=sharedstatedir ;;
1642  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1643  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1644  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1645  | --sha=* | --sh=*)
1646    sharedstatedir=$ac_optarg ;;
1647
1648  -site | --site | --sit)
1649    ac_prev=site ;;
1650  -site=* | --site=* | --sit=*)
1651    site=$ac_optarg ;;
1652
1653  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1654    ac_prev=srcdir ;;
1655  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1656    srcdir=$ac_optarg ;;
1657
1658  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1659  | --syscon | --sysco | --sysc | --sys | --sy)
1660    ac_prev=sysconfdir ;;
1661  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1662  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1663    sysconfdir=$ac_optarg ;;
1664
1665  -target | --target | --targe | --targ | --tar | --ta | --t)
1666    ac_prev=target_alias ;;
1667  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1668    target_alias=$ac_optarg ;;
1669
1670  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1671    verbose=yes ;;
1672
1673  -version | --version | --versio | --versi | --vers | -V)
1674    ac_init_version=: ;;
1675
1676  -with-* | --with-*)
1677    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1678    # Reject names that are not valid shell variable names.
1679    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1680      as_fn_error $? "invalid package name: $ac_useropt"
1681    ac_useropt_orig=$ac_useropt
1682    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1683    case $ac_user_opts in
1684      *"
1685"with_$ac_useropt"
1686"*) ;;
1687      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1688	 ac_unrecognized_sep=', ';;
1689    esac
1690    eval with_$ac_useropt=\$ac_optarg ;;
1691
1692  -without-* | --without-*)
1693    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1694    # Reject names that are not valid shell variable names.
1695    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1696      as_fn_error $? "invalid package name: $ac_useropt"
1697    ac_useropt_orig=$ac_useropt
1698    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1699    case $ac_user_opts in
1700      *"
1701"with_$ac_useropt"
1702"*) ;;
1703      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1704	 ac_unrecognized_sep=', ';;
1705    esac
1706    eval with_$ac_useropt=no ;;
1707
1708  --x)
1709    # Obsolete; use --with-x.
1710    with_x=yes ;;
1711
1712  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1713  | --x-incl | --x-inc | --x-in | --x-i)
1714    ac_prev=x_includes ;;
1715  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1716  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1717    x_includes=$ac_optarg ;;
1718
1719  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1720  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1721    ac_prev=x_libraries ;;
1722  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1723  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1724    x_libraries=$ac_optarg ;;
1725
1726  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1727Try \`$0 --help' for more information"
1728    ;;
1729
1730  *=*)
1731    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1732    # Reject names that are not valid shell variable names.
1733    case $ac_envvar in #(
1734      '' | [0-9]* | *[!_$as_cr_alnum]* )
1735      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1736    esac
1737    eval $ac_envvar=\$ac_optarg
1738    export $ac_envvar ;;
1739
1740  *)
1741    # FIXME: should be removed in autoconf 3.0.
1742    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1743    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1744      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1745    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1746    ;;
1747
1748  esac
1749done
1750
1751if test -n "$ac_prev"; then
1752  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1753  as_fn_error $? "missing argument to $ac_option"
1754fi
1755
1756if test -n "$ac_unrecognized_opts"; then
1757  case $enable_option_checking in
1758    no) ;;
1759    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1760    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1761  esac
1762fi
1763
1764# Check all directory arguments for consistency.
1765for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1766		datadir sysconfdir sharedstatedir localstatedir includedir \
1767		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1768		libdir localedir mandir runstatedir
1769do
1770  eval ac_val=\$$ac_var
1771  # Remove trailing slashes.
1772  case $ac_val in
1773    */ )
1774      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1775      eval $ac_var=\$ac_val;;
1776  esac
1777  # Be sure to have absolute directory names.
1778  case $ac_val in
1779    [\\/$]* | ?:[\\/]* )  continue;;
1780    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1781  esac
1782  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1783done
1784
1785# There might be people who depend on the old broken behavior: `$host'
1786# used to hold the argument of --host etc.
1787# FIXME: To remove some day.
1788build=$build_alias
1789host=$host_alias
1790target=$target_alias
1791
1792# FIXME: To remove some day.
1793if test "x$host_alias" != x; then
1794  if test "x$build_alias" = x; then
1795    cross_compiling=maybe
1796  elif test "x$build_alias" != "x$host_alias"; then
1797    cross_compiling=yes
1798  fi
1799fi
1800
1801ac_tool_prefix=
1802test -n "$host_alias" && ac_tool_prefix=$host_alias-
1803
1804test "$silent" = yes && exec 6>/dev/null
1805
1806
1807ac_pwd=`pwd` && test -n "$ac_pwd" &&
1808ac_ls_di=`ls -di .` &&
1809ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1810  as_fn_error $? "working directory cannot be determined"
1811test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1812  as_fn_error $? "pwd does not report name of working directory"
1813
1814
1815# Find the source files, if location was not specified.
1816if test -z "$srcdir"; then
1817  ac_srcdir_defaulted=yes
1818  # Try the directory containing this script, then the parent directory.
1819  ac_confdir=`$as_dirname -- "$as_myself" ||
1820$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1821	 X"$as_myself" : 'X\(//\)[^/]' \| \
1822	 X"$as_myself" : 'X\(//\)$' \| \
1823	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1824$as_echo X"$as_myself" |
1825    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1826	    s//\1/
1827	    q
1828	  }
1829	  /^X\(\/\/\)[^/].*/{
1830	    s//\1/
1831	    q
1832	  }
1833	  /^X\(\/\/\)$/{
1834	    s//\1/
1835	    q
1836	  }
1837	  /^X\(\/\).*/{
1838	    s//\1/
1839	    q
1840	  }
1841	  s/.*/./; q'`
1842  srcdir=$ac_confdir
1843  if test ! -r "$srcdir/$ac_unique_file"; then
1844    srcdir=..
1845  fi
1846else
1847  ac_srcdir_defaulted=no
1848fi
1849if test ! -r "$srcdir/$ac_unique_file"; then
1850  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1851  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1852fi
1853ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1854ac_abs_confdir=`(
1855	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1856	pwd)`
1857# When building in place, set srcdir=.
1858if test "$ac_abs_confdir" = "$ac_pwd"; then
1859  srcdir=.
1860fi
1861# Remove unnecessary trailing slashes from srcdir.
1862# Double slashes in file names in object file debugging info
1863# mess up M-x gdb in Emacs.
1864case $srcdir in
1865*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1866esac
1867for ac_var in $ac_precious_vars; do
1868  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1869  eval ac_env_${ac_var}_value=\$${ac_var}
1870  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1871  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1872done
1873
1874#
1875# Report the --help message.
1876#
1877if test "$ac_init_help" = "long"; then
1878  # Omit some internal or obsolete options to make the list less imposing.
1879  # This message is too long to be a string in the A/UX 3.1 sh.
1880  cat <<_ACEOF
1881\`configure' configures rsyslog 8.2112.0 to adapt to many kinds of systems.
1882
1883Usage: $0 [OPTION]... [VAR=VALUE]...
1884
1885To assign environment variables (e.g., CC, CFLAGS...), specify them as
1886VAR=VALUE.  See below for descriptions of some of the useful variables.
1887
1888Defaults for the options are specified in brackets.
1889
1890Configuration:
1891  -h, --help              display this help and exit
1892      --help=short        display options specific to this package
1893      --help=recursive    display the short help of all the included packages
1894  -V, --version           display version information and exit
1895  -q, --quiet, --silent   do not print \`checking ...' messages
1896      --cache-file=FILE   cache test results in FILE [disabled]
1897  -C, --config-cache      alias for \`--cache-file=config.cache'
1898  -n, --no-create         do not create output files
1899      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1900
1901Installation directories:
1902  --prefix=PREFIX         install architecture-independent files in PREFIX
1903                          [$ac_default_prefix]
1904  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1905                          [PREFIX]
1906
1907By default, \`make install' will install all the files in
1908\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1909an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1910for instance \`--prefix=\$HOME'.
1911
1912For better control, use the options below.
1913
1914Fine tuning of the installation directories:
1915  --bindir=DIR            user executables [EPREFIX/bin]
1916  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1917  --libexecdir=DIR        program executables [EPREFIX/libexec]
1918  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1919  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1920  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1921  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1922  --libdir=DIR            object code libraries [EPREFIX/lib]
1923  --includedir=DIR        C header files [PREFIX/include]
1924  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1925  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1926  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1927  --infodir=DIR           info documentation [DATAROOTDIR/info]
1928  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1929  --mandir=DIR            man documentation [DATAROOTDIR/man]
1930  --docdir=DIR            documentation root [DATAROOTDIR/doc/rsyslog]
1931  --htmldir=DIR           html documentation [DOCDIR]
1932  --dvidir=DIR            dvi documentation [DOCDIR]
1933  --pdfdir=DIR            pdf documentation [DOCDIR]
1934  --psdir=DIR             ps documentation [DOCDIR]
1935_ACEOF
1936
1937  cat <<\_ACEOF
1938
1939Program names:
1940  --program-prefix=PREFIX            prepend PREFIX to installed program names
1941  --program-suffix=SUFFIX            append SUFFIX to installed program names
1942  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1943
1944System types:
1945  --build=BUILD     configure for building on BUILD [guessed]
1946  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1947_ACEOF
1948fi
1949
1950if test -n "$ac_init_help"; then
1951  case $ac_init_help in
1952     short | recursive ) echo "Configuration of rsyslog 8.2112.0:";;
1953   esac
1954  cat <<\_ACEOF
1955
1956Optional Features:
1957  --disable-option-checking  ignore unrecognized --enable/--with options
1958  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1959  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1960  --enable-silent-rules   less verbose build output (undo: "make V=1")
1961  --disable-silent-rules  verbose build output (undo: "make V=0")
1962  --enable-aix64bits      Enable compilation of rsyslog using 64 bits
1963                          [default=no]
1964  --enable-dependency-tracking
1965                          do not reject slow dependency extractors
1966  --disable-dependency-tracking
1967                          speeds up one-time build
1968  --enable-static[=PKGS]  build static libraries [default=no]
1969  --enable-shared[=PKGS]  build shared libraries [default=yes]
1970  --enable-fast-install[=PKGS]
1971                          optimize for fast installation [default=yes]
1972  --disable-libtool-lock  avoid locking (might break parallel builds)
1973  --enable-compile-warnings=[no/yes/error]
1974                          Enable compiler warnings and errors
1975  --disable-Werror        Unconditionally make all compiler warnings non-fatal
1976  --enable-atomic-operations
1977                          Enable atomic operation support [default=yes]
1978  --disable-largefile     omit support for large files
1979  --enable-regexp         Enable regular expressions support [default=yes]
1980  --enable-fmhash         Enable fmhash support [default=yes]
1981  --enable-fmhash-xxhash  Enable xxhash in fmhash support [default=no]
1982  --enable-ffaup          Enable ffaup support [default=no]
1983  --enable-fmunflatten    Enable fmunflatten support [default=no]
1984  --enable-gssapi-krb5    Enable GSSAPI Kerberos 5 support [default=no]
1985  --enable-root-tests     enable root tests in testbench [default=no]
1986  --enable-klog           Integrated klog functionality [default=yes]
1987  --enable-kmsg           Kmsg structured kernel logs functionality
1988                          [default=no]
1989  --enable-imjournal      Systemd journal message import [default=no]
1990  --enable-libsystemd     Enable libsystemd mode [default=auto]
1991  --enable-inet           Enable networking support [default=yes]
1992  --enable-jemalloc       Enable jemalloc support [default=no]
1993  --enable-unlimited-select
1994                          Enable unlimited select() syscall [default=no]
1995  --enable-debug          Enable debug mode [default=auto]
1996  --disable-debug-symbols Disable debugging symbols [default=no]
1997  --enable-debugless      Enable runtime instrumentation mode [default=no]
1998  --enable-valgrind       Enable somes special code that rsyslog core
1999                          developers consider useful for testing. Do NOT use
2000                          if you don't exactly know what you are doing, except
2001                          if told so by rsyslog developers. NOT to be used by
2002                          distro maintainers for building regular packages.
2003                          [default=no]
2004  --enable-diagtools      Enable diagnostic tools [default=no]
2005  --enable-usertools      Enable end user tools [default=no]
2006  --enable-mysql          Enable MySql database support [default=no]
2007  --enable-pgsql          Enable PostgreSQL database support [default=no]
2008  --enable-libdbi         Enable libdbi database support [default=no]
2009  --enable-snmp           Enable SNMP support [default=no]
2010  --enable-snmp-tests     Enable omsnmp tests [default=no]
2011  --enable-uuid           Enable support for uuid generation [default=yes]
2012  --enable-elasticsearch  Enable elasticsearch output module [default=no]
2013  --enable-clickhouse     Enable clickhouse output module [default=no]
2014  --enable-omhttp         Enable http output module [default=no]
2015  --enable-elasticsearch-tests
2016                          enable Elasticsearch specific tests in testbench
2017                          [default=no]
2018  --enable-clickhouse-tests
2019                          enable Elasticsearch specific tests in testbench
2020                          [default=no]
2021  --enable-openssl        Enable openssl support [default=no]
2022  --enable-gnutls         Enable GNU TLS support [default=no]
2023  --enable-gnutls-tests   Enable gnutls tests [default=yes]
2024  --enable-libgcrypt      Enable log file encryption support (libgcrypt)
2025                          [default=yes]
2026  --enable-rsyslogrt      Build rsyslogrt [default=yes]
2027  --enable-rsyslogd       Build rsyslogd [default=yes]
2028  --enable-extended-tests extended testbench [default=no]
2029  --enable-mysql-tests    enable MySQL specific tests in testbench
2030                          [default=no]
2031  --enable-pgsql-tests    enable PostgreSQL specific tests in testbench
2032                          [default=no]
2033  --enable-mail           Enable mail support [default=no]
2034  --enable-fmhttp         Enable fmhttp [default=yes]
2035  --enable-imdiag         Enable imdiag [default=no]
2036  --enable-mmnormalize    Enable building mmnormalize support [default=no]
2037  --enable-mmjsonparse    Enable building mmjsonparse support [default=no]
2038  --enable-mmgrok         Enable building mmgrok support [default=no]
2039  --enable-mmaudit        Enable building mmaudit support [default=no]
2040  --enable-mmanon         Enable building mmanon support [default=no]
2041  --enable-mmrm1stspace   Enable building mmrm1stspace support [default=no]
2042  --enable-mmutf8fix      Enable building mmutf8fix support [default=no]
2043  --enable-mmcount        Enable message counting [default=no]
2044  --enable-mmsequence     Enable sequence generator [default=no]
2045  --enable-mmdblookup     Enable mmdb lookup helper [default=no]
2046  --enable-mmdarwin       Enable mmdb lookup helper [default=no]
2047  --enable-mmfields       Enable building mmfields support [default=no]
2048  --enable-mmpstrucdata   Enable building mmpstrucdata support [default=no]
2049  --enable-mmrfc5424addhmac
2050                          Enable building mmrfc5424addhmac support
2051                          [default=no]
2052  --enable-omfile-hardened
2053                          Enable omfile-hardened support [default=no]
2054  --enable-relp           Enable RELP support [default=no]
2055  --enable-omrelp-default-port
2056                          set omrelp default port [default=514]
2057  --enable-ksi-ls12       Enable log file signing support via GuardTime KSI
2058                          LS12 [default=no]
2059  --enable-liblogging-stdlog
2060                          Enable liblogging-stdlog support [default=no]
2061  --enable-rfc3195        Enable RFC3195 support [default=no]
2062  --enable-testbench      testbench enabled [default=no]
2063  --enable-libfaketime    libfaketime enabled [default=no]
2064  --enable-default-tests  default-tests enabled [default=yes]
2065  --enable-helgrind       valgrind helgrind enabled [default=yes]
2066  --enable-imbatchreport  batch report input module enabled [default=no]
2067  --enable-pmdb2diag      db2diag parser module enabled [default=no]
2068  --enable-imfile         file input module enabled [default=no]
2069  --enable-imfile-tests   Enable imfile tests [default=yes]
2070  --enable-imdocker       input docker module enabled [default=no]
2071  --enable-imdocker-tests Enable imdocker tests [default=no]
2072  --enable-imtuxedoulog   tuxedo ULOG input module enabled [default=no]
2073  --enable-improg         external program input module enabled [default=no]
2074  --enable-imhttp         external http input module enabled [default=no]
2075  --enable-imsolaris      solaris input module enabled [default=no]
2076  --enable-imptcp         plain tcp input module enabled [default=no]
2077  --enable-impstats       periodic statistics module enabled [default=no]
2078  --enable-impcap         libpcap input module enabled [default=no]
2079  --enable-omprog         Compiles omprog module [default=no]
2080  --enable-omudpspoof     Compiles omudpspoof module [default=no]
2081  --enable-omstdout       Compiles stdout module [default=no]
2082  --enable-omjournal      Compiles omjournal [default=no]
2083  --enable-journal-tests  enable systemd journal specific tests in testbench
2084                          [default=no]
2085  --enable-pmlastmsg      Compiles lastmsg parser module [default=no]
2086  --enable-pmcisconames   Compiles cisconames parser module [default=no]
2087  --enable-pmciscoios     Compiles ciscoios parser module [default=no]
2088  --enable-pmnull         Compiles null parser module [default=no]
2089  --enable-pmnormalize    Compiles normalizer parser module [default=no]
2090  --enable-pmaixforwardedfrom
2091                          Compiles aixforwardedfrom parser module [default=no]
2092  --enable-pmsnare        Compiles snare parser module [default=no]
2093  --enable-pmpanngfw      Compiles Palo Alto Networks parser module
2094                          [default=no]
2095  --enable-omruleset      Compiles ruleset forwarding module [default=no]
2096  --enable-omuxsock       Compiles omuxsock module [default=no]
2097  --enable-mmsnmptrapd    Compiles mmsnmptrapd module [default=no]
2098  --enable-omhdfs         Compiles omhdfs module [default=no]
2099  --enable-omkafka        Compiles kafka output module [default=no]
2100  --enable-imkafka        Compiles kafka input and output module [default=no]
2101  --enable-kafka-tests    Enable Kafka tests, needs Java [default=no]
2102  --enable-kafka-static   Enable static library linking for Kafka modules.
2103                          Removes dependency for rdkafka.so. [default=no]
2104  --enable-ommongodb      Compiles ommongodb module [default=no]
2105  --enable-imczmq         Compiles imczmq output module [default=no]
2106  --enable-omczmq         Compiles omczmq output module [default=no]
2107  --enable-omrabbitmq     Compiles omrabbitmq output module [default=no]
2108  --enable-imhiredis      Compiles imhiredis input module [default=no]
2109  --enable-omhiredis      Compiles omhiredis template module [default=no]
2110  --enable-omhttpfs       Compiles omhttpfs template module [default=no]
2111  --enable-omamqp1        Compiles omamqp1 output module [default=no]
2112  --enable-omtcl          Compiles omtcl output module [default=no]
2113  --enable-mmkubernetes   Enable compilation of the mmkubernetes module
2114                          [default=no]
2115  --enable-mmtaghostname  Enable Tag and Hostname messages' modifier
2116                          [default=no]
2117  --enable-generate-man-pages
2118                          Generate man pages from source [default=no]
2119  --enable-distcheck-workaround
2120                          enable to use make distcheck without runing
2121                          testbench inside it [default=no]
2122
2123Optional Packages:
2124  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2125  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2126  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2127                          both]
2128  --with-aix-soname=aix|svr4|both
2129                          shared library versioning (aka "SONAME") variant to
2130                          provide on AIX, [default=aix].
2131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2132  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2133                          compiler's sysroot if not specified).
2134  --with-moddirs=DIRS     Additional module search paths appended to
2135                          [$libdir/rsyslog]
2136  --with-systemdsystemunitdir=DIR
2137                          Directory for systemd service files
2138  --without-valgrind-testbench
2139                          Don't use valgrind in testbench
2140
2141  --with-tcl              directory containing tcl configuration
2142                          (tclConfig.sh)
2143
2144Some influential environment variables:
2145  CC          C compiler command
2146  CFLAGS      C compiler flags
2147  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2148              nonstandard directory <lib dir>
2149  LIBS        libraries to pass to the linker, e.g. -l<library>
2150  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2151              you have headers in a nonstandard directory <include dir>
2152  CPP         C preprocessor
2153  YACC        The `Yet Another Compiler Compiler' implementation to use.
2154              Defaults to the first program found out of: `bison -y', `byacc',
2155              `yacc'.
2156  YFLAGS      The list of arguments that will be passed by default to $YACC.
2157              This script will default YFLAGS to the empty string to avoid a
2158              default value of `-d' given by some make applications.
2159  LT_SYS_LIBRARY_PATH
2160              User-defined run-time library search path.
2161  PKG_CONFIG  path to pkg-config utility
2162  PKG_CONFIG_PATH
2163              directories to add to pkg-config's search path
2164  PKG_CONFIG_LIBDIR
2165              path overriding pkg-config's built-in search path
2166  CONF_FILE_PATH
2167              Configuration file path (default : /usr/local/etc/rsyslog.conf)
2168  PID_FILE_PATH
2169              Pid file path (default : /var/run/rsyslogd.pid)
2170  LIBESTR_CFLAGS
2171              C compiler flags for LIBESTR, overriding pkg-config
2172  LIBESTR_LIBS
2173              linker flags for LIBESTR, overriding pkg-config
2174  LIBFASTJSON_CFLAGS
2175              C compiler flags for LIBFASTJSON, overriding pkg-config
2176  LIBFASTJSON_LIBS
2177              linker flags for LIBFASTJSON, overriding pkg-config
2178  PYTHON      the Python interpreter
2179  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2180  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
2181  LIBSYSTEMD_JOURNAL_CFLAGS
2182              C compiler flags for LIBSYSTEMD_JOURNAL, overriding pkg-config
2183  LIBSYSTEMD_JOURNAL_LIBS
2184              linker flags for LIBSYSTEMD_JOURNAL, overriding pkg-config
2185  LIBSYSTEMD_CFLAGS
2186              C compiler flags for LIBSYSTEMD, overriding pkg-config
2187  LIBSYSTEMD_LIBS
2188              linker flags for LIBSYSTEMD, overriding pkg-config
2189  MYSQL_CFLAGS
2190              C compiler flags for MYSQL, overriding pkg-config
2191  MYSQL_LIBS  linker flags for MYSQL, overriding pkg-config
2192  PGSQL_CFLAGS
2193              C compiler flags for PGSQL, overriding pkg-config
2194  PGSQL_LIBS  linker flags for PGSQL, overriding pkg-config
2195  LIBUUID_CFLAGS
2196              C compiler flags for LIBUUID, overriding pkg-config
2197  LIBUUID_LIBS
2198              linker flags for LIBUUID, overriding pkg-config
2199  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
2200  CURL_LIBS   linker flags for CURL, overriding pkg-config
2201  OPENSSL_CFLAGS
2202              C compiler flags for OPENSSL, overriding pkg-config
2203  OPENSSL_LIBS
2204              linker flags for OPENSSL, overriding pkg-config
2205  GNUTLS_CFLAGS
2206              C compiler flags for GNUTLS, overriding pkg-config
2207  GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
2208  LIBLOGNORM_CFLAGS
2209              C compiler flags for LIBLOGNORM, overriding pkg-config
2210  LIBLOGNORM_LIBS
2211              linker flags for LIBLOGNORM, overriding pkg-config
2212  RELP_CFLAGS C compiler flags for RELP, overriding pkg-config
2213  RELP_LIBS   linker flags for RELP, overriding pkg-config
2214  GT_KSI_LS12_CFLAGS
2215              C compiler flags for GT_KSI_LS12, overriding pkg-config
2216  GT_KSI_LS12_LIBS
2217              linker flags for GT_KSI_LS12, overriding pkg-config
2218  LIBLOGGING_STDLOG_CFLAGS
2219              C compiler flags for LIBLOGGING_STDLOG, overriding pkg-config
2220  LIBLOGGING_STDLOG_LIBS
2221              linker flags for LIBLOGGING_STDLOG, overriding pkg-config
2222  LIBLOGGING_CFLAGS
2223              C compiler flags for LIBLOGGING, overriding pkg-config
2224  LIBLOGGING_LIBS
2225              linker flags for LIBLOGGING, overriding pkg-config
2226  APU_CFLAGS  C compiler flags for APU, overriding pkg-config
2227  APU_LIBS    linker flags for APU, overriding pkg-config
2228  LIBRDKAFKA_CFLAGS
2229              C compiler flags for LIBRDKAFKA, overriding pkg-config
2230  LIBRDKAFKA_LIBS
2231              linker flags for LIBRDKAFKA, overriding pkg-config
2232  LIBLZ4_CFLAGS
2233              C compiler flags for LIBLZ4, overriding pkg-config
2234  LIBLZ4_LIBS linker flags for LIBLZ4, overriding pkg-config
2235  LIBMONGOC_CFLAGS
2236              C compiler flags for LIBMONGOC, overriding pkg-config
2237  LIBMONGOC_LIBS
2238              linker flags for LIBMONGOC, overriding pkg-config
2239  CZMQ_CFLAGS C compiler flags for CZMQ, overriding pkg-config
2240  CZMQ_LIBS   linker flags for CZMQ, overriding pkg-config
2241  RABBITMQ_CFLAGS
2242              C compiler flags for RABBITMQ, overriding pkg-config
2243  RABBITMQ_LIBS
2244              linker flags for RABBITMQ, overriding pkg-config
2245  HIREDIS_CFLAGS
2246              C compiler flags for HIREDIS, overriding pkg-config
2247  HIREDIS_LIBS
2248              linker flags for HIREDIS, overriding pkg-config
2249  LIBEVENT_CFLAGS
2250              C compiler flags for LIBEVENT, overriding pkg-config
2251  LIBEVENT_LIBS
2252              linker flags for LIBEVENT, overriding pkg-config
2253  PROTON_CFLAGS
2254              C compiler flags for PROTON, overriding pkg-config
2255  PROTON_LIBS linker flags for PROTON, overriding pkg-config
2256
2257Use these variables to override the choices made by `configure' or to help
2258it to find libraries and programs with nonstandard names/locations.
2259
2260Report bugs to <rsyslog@lists.adiscon.com>.
2261_ACEOF
2262ac_status=$?
2263fi
2264
2265if test "$ac_init_help" = "recursive"; then
2266  # If there are subdirs, report their specific --help.
2267  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2268    test -d "$ac_dir" ||
2269      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2270      continue
2271    ac_builddir=.
2272
2273case "$ac_dir" in
2274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2275*)
2276  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2277  # A ".." for each directory in $ac_dir_suffix.
2278  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2279  case $ac_top_builddir_sub in
2280  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2281  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2282  esac ;;
2283esac
2284ac_abs_top_builddir=$ac_pwd
2285ac_abs_builddir=$ac_pwd$ac_dir_suffix
2286# for backward compatibility:
2287ac_top_builddir=$ac_top_build_prefix
2288
2289case $srcdir in
2290  .)  # We are building in place.
2291    ac_srcdir=.
2292    ac_top_srcdir=$ac_top_builddir_sub
2293    ac_abs_top_srcdir=$ac_pwd ;;
2294  [\\/]* | ?:[\\/]* )  # Absolute name.
2295    ac_srcdir=$srcdir$ac_dir_suffix;
2296    ac_top_srcdir=$srcdir
2297    ac_abs_top_srcdir=$srcdir ;;
2298  *) # Relative name.
2299    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2300    ac_top_srcdir=$ac_top_build_prefix$srcdir
2301    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2302esac
2303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2304
2305    cd "$ac_dir" || { ac_status=$?; continue; }
2306    # Check for guested configure.
2307    if test -f "$ac_srcdir/configure.gnu"; then
2308      echo &&
2309      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2310    elif test -f "$ac_srcdir/configure"; then
2311      echo &&
2312      $SHELL "$ac_srcdir/configure" --help=recursive
2313    else
2314      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2315    fi || ac_status=$?
2316    cd "$ac_pwd" || { ac_status=$?; break; }
2317  done
2318fi
2319
2320test -n "$ac_init_help" && exit $ac_status
2321if $ac_init_version; then
2322  cat <<\_ACEOF
2323rsyslog configure 8.2112.0
2324generated by GNU Autoconf 2.69
2325
2326Copyright (C) 2012 Free Software Foundation, Inc.
2327This configure script is free software; the Free Software Foundation
2328gives unlimited permission to copy, distribute and modify it.
2329_ACEOF
2330  exit
2331fi
2332
2333## ------------------------ ##
2334## Autoconf initialization. ##
2335## ------------------------ ##
2336
2337# ac_fn_c_try_compile LINENO
2338# --------------------------
2339# Try to compile conftest.$ac_ext, and return whether this succeeded.
2340ac_fn_c_try_compile ()
2341{
2342  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343  rm -f conftest.$ac_objext
2344  if { { ac_try="$ac_compile"
2345case "(($ac_try" in
2346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347  *) ac_try_echo=$ac_try;;
2348esac
2349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350$as_echo "$ac_try_echo"; } >&5
2351  (eval "$ac_compile") 2>conftest.err
2352  ac_status=$?
2353  if test -s conftest.err; then
2354    grep -v '^ *+' conftest.err >conftest.er1
2355    cat conftest.er1 >&5
2356    mv -f conftest.er1 conftest.err
2357  fi
2358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359  test $ac_status = 0; } && {
2360	 test -z "$ac_c_werror_flag" ||
2361	 test ! -s conftest.err
2362       } && test -s conftest.$ac_objext; then :
2363  ac_retval=0
2364else
2365  $as_echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368	ac_retval=1
2369fi
2370  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371  as_fn_set_status $ac_retval
2372
2373} # ac_fn_c_try_compile
2374
2375# ac_fn_c_try_cpp LINENO
2376# ----------------------
2377# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2378ac_fn_c_try_cpp ()
2379{
2380  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381  if { { ac_try="$ac_cpp conftest.$ac_ext"
2382case "(($ac_try" in
2383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384  *) ac_try_echo=$ac_try;;
2385esac
2386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387$as_echo "$ac_try_echo"; } >&5
2388  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2389  ac_status=$?
2390  if test -s conftest.err; then
2391    grep -v '^ *+' conftest.err >conftest.er1
2392    cat conftest.er1 >&5
2393    mv -f conftest.er1 conftest.err
2394  fi
2395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396  test $ac_status = 0; } > conftest.i && {
2397	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2398	 test ! -s conftest.err
2399       }; then :
2400  ac_retval=0
2401else
2402  $as_echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405    ac_retval=1
2406fi
2407  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408  as_fn_set_status $ac_retval
2409
2410} # ac_fn_c_try_cpp
2411
2412# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2413# -------------------------------------------------------
2414# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2415# the include files in INCLUDES and setting the cache variable VAR
2416# accordingly.
2417ac_fn_c_check_header_mongrel ()
2418{
2419  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420  if eval \${$3+:} false; then :
2421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422$as_echo_n "checking for $2... " >&6; }
2423if eval \${$3+:} false; then :
2424  $as_echo_n "(cached) " >&6
2425fi
2426eval ac_res=\$$3
2427	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2428$as_echo "$ac_res" >&6; }
2429else
2430  # Is the header compilable?
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2432$as_echo_n "checking $2 usability... " >&6; }
2433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434/* end confdefs.h.  */
2435$4
2436#include <$2>
2437_ACEOF
2438if ac_fn_c_try_compile "$LINENO"; then :
2439  ac_header_compiler=yes
2440else
2441  ac_header_compiler=no
2442fi
2443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2445$as_echo "$ac_header_compiler" >&6; }
2446
2447# Is the header present?
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2449$as_echo_n "checking $2 presence... " >&6; }
2450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h.  */
2452#include <$2>
2453_ACEOF
2454if ac_fn_c_try_cpp "$LINENO"; then :
2455  ac_header_preproc=yes
2456else
2457  ac_header_preproc=no
2458fi
2459rm -f conftest.err conftest.i conftest.$ac_ext
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2461$as_echo "$ac_header_preproc" >&6; }
2462
2463# So?  What about this header?
2464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2465  yes:no: )
2466    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2467$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2468    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2470    ;;
2471  no:yes:* )
2472    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2473$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2474    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2475$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2476    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2477$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2478    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2479$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2480    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482( $as_echo "## ---------------------------------------- ##
2483## Report this to rsyslog@lists.adiscon.com ##
2484## ---------------------------------------- ##"
2485     ) | sed "s/^/$as_me: WARNING:     /" >&2
2486    ;;
2487esac
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489$as_echo_n "checking for $2... " >&6; }
2490if eval \${$3+:} false; then :
2491  $as_echo_n "(cached) " >&6
2492else
2493  eval "$3=\$ac_header_compiler"
2494fi
2495eval ac_res=\$$3
2496	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497$as_echo "$ac_res" >&6; }
2498fi
2499  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2500
2501} # ac_fn_c_check_header_mongrel
2502
2503# ac_fn_c_try_run LINENO
2504# ----------------------
2505# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2506# that executables *can* be run.
2507ac_fn_c_try_run ()
2508{
2509  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510  if { { ac_try="$ac_link"
2511case "(($ac_try" in
2512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513  *) ac_try_echo=$ac_try;;
2514esac
2515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516$as_echo "$ac_try_echo"; } >&5
2517  (eval "$ac_link") 2>&5
2518  ac_status=$?
2519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2521  { { case "(($ac_try" in
2522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523  *) ac_try_echo=$ac_try;;
2524esac
2525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526$as_echo "$ac_try_echo"; } >&5
2527  (eval "$ac_try") 2>&5
2528  ac_status=$?
2529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530  test $ac_status = 0; }; }; then :
2531  ac_retval=0
2532else
2533  $as_echo "$as_me: program exited with status $ac_status" >&5
2534       $as_echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537       ac_retval=$ac_status
2538fi
2539  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2540  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541  as_fn_set_status $ac_retval
2542
2543} # ac_fn_c_try_run
2544
2545# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2546# -------------------------------------------------------
2547# Tests whether HEADER exists and can be compiled using the include files in
2548# INCLUDES, setting the cache variable VAR accordingly.
2549ac_fn_c_check_header_compile ()
2550{
2551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553$as_echo_n "checking for $2... " >&6; }
2554if eval \${$3+:} false; then :
2555  $as_echo_n "(cached) " >&6
2556else
2557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558/* end confdefs.h.  */
2559$4
2560#include <$2>
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563  eval "$3=yes"
2564else
2565  eval "$3=no"
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568fi
2569eval ac_res=\$$3
2570	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571$as_echo "$ac_res" >&6; }
2572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2573
2574} # ac_fn_c_check_header_compile
2575
2576# ac_fn_c_try_link LINENO
2577# -----------------------
2578# Try to link conftest.$ac_ext, and return whether this succeeded.
2579ac_fn_c_try_link ()
2580{
2581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582  rm -f conftest.$ac_objext conftest$ac_exeext
2583  if { { ac_try="$ac_link"
2584case "(($ac_try" in
2585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586  *) ac_try_echo=$ac_try;;
2587esac
2588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589$as_echo "$ac_try_echo"; } >&5
2590  (eval "$ac_link") 2>conftest.err
2591  ac_status=$?
2592  if test -s conftest.err; then
2593    grep -v '^ *+' conftest.err >conftest.er1
2594    cat conftest.er1 >&5
2595    mv -f conftest.er1 conftest.err
2596  fi
2597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598  test $ac_status = 0; } && {
2599	 test -z "$ac_c_werror_flag" ||
2600	 test ! -s conftest.err
2601       } && test -s conftest$ac_exeext && {
2602	 test "$cross_compiling" = yes ||
2603	 test -x conftest$ac_exeext
2604       }; then :
2605  ac_retval=0
2606else
2607  $as_echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610	ac_retval=1
2611fi
2612  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614  # interfere with the next link command; also delete a directory that is
2615  # left behind by Apple's compiler.  We do this before executing the actions.
2616  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618  as_fn_set_status $ac_retval
2619
2620} # ac_fn_c_try_link
2621
2622# ac_fn_c_check_func LINENO FUNC VAR
2623# ----------------------------------
2624# Tests whether FUNC exists, setting the cache variable VAR accordingly
2625ac_fn_c_check_func ()
2626{
2627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2629$as_echo_n "checking for $2... " >&6; }
2630if eval \${$3+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634/* end confdefs.h.  */
2635/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2636   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2637#define $2 innocuous_$2
2638
2639/* System header to define __stub macros and hopefully few prototypes,
2640    which can conflict with char $2 (); below.
2641    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2642    <limits.h> exists even on freestanding compilers.  */
2643
2644#ifdef __STDC__
2645# include <limits.h>
2646#else
2647# include <assert.h>
2648#endif
2649
2650#undef $2
2651
2652/* Override any GCC internal prototype to avoid an error.
2653   Use char because int might match the return type of a GCC
2654   builtin and then its argument prototype would still apply.  */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658char $2 ();
2659/* The GNU C library defines this for functions which it implements
2660    to always fail with ENOSYS.  Some functions are actually named
2661    something starting with __ and the normal name is an alias.  */
2662#if defined __stub_$2 || defined __stub___$2
2663choke me
2664#endif
2665
2666int
2667main ()
2668{
2669return $2 ();
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_link "$LINENO"; then :
2675  eval "$3=yes"
2676else
2677  eval "$3=no"
2678fi
2679rm -f core conftest.err conftest.$ac_objext \
2680    conftest$ac_exeext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
2685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2686
2687} # ac_fn_c_check_func
2688
2689# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2690# -------------------------------------------
2691# Tests whether TYPE exists after having included INCLUDES, setting cache
2692# variable VAR accordingly.
2693ac_fn_c_check_type ()
2694{
2695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2697$as_echo_n "checking for $2... " >&6; }
2698if eval \${$3+:} false; then :
2699  $as_echo_n "(cached) " >&6
2700else
2701  eval "$3=no"
2702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703/* end confdefs.h.  */
2704$4
2705int
2706main ()
2707{
2708if (sizeof ($2))
2709	 return 0;
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714if ac_fn_c_try_compile "$LINENO"; then :
2715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716/* end confdefs.h.  */
2717$4
2718int
2719main ()
2720{
2721if (sizeof (($2)))
2722	    return 0;
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_compile "$LINENO"; then :
2728
2729else
2730  eval "$3=yes"
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735fi
2736eval ac_res=\$$3
2737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2738$as_echo "$ac_res" >&6; }
2739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2740
2741} # ac_fn_c_check_type
2742
2743# ac_fn_c_find_uintX_t LINENO BITS VAR
2744# ------------------------------------
2745# Finds an unsigned integer type with width BITS, setting cache variable VAR
2746# accordingly.
2747ac_fn_c_find_uintX_t ()
2748{
2749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2751$as_echo_n "checking for uint$2_t... " >&6; }
2752if eval \${$3+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  eval "$3=no"
2756     # Order is important - never check a type that is potentially smaller
2757     # than half of the expected target width.
2758     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2759	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h.  */
2762$ac_includes_default
2763int
2764main ()
2765{
2766static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2767test_array [0] = 0;
2768return test_array [0];
2769
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774if ac_fn_c_try_compile "$LINENO"; then :
2775  case $ac_type in #(
2776  uint$2_t) :
2777    eval "$3=yes" ;; #(
2778  *) :
2779    eval "$3=\$ac_type" ;;
2780esac
2781fi
2782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783       if eval test \"x\$"$3"\" = x"no"; then :
2784
2785else
2786  break
2787fi
2788     done
2789fi
2790eval ac_res=\$$3
2791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792$as_echo "$ac_res" >&6; }
2793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2794
2795} # ac_fn_c_find_uintX_t
2796
2797# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2798# ----------------------------------------------------
2799# Tries to find if the field MEMBER exists in type AGGR, after including
2800# INCLUDES, setting cache variable VAR accordingly.
2801ac_fn_c_check_member ()
2802{
2803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2805$as_echo_n "checking for $2.$3... " >&6; }
2806if eval \${$4+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h.  */
2811$5
2812int
2813main ()
2814{
2815static $2 ac_aggr;
2816if (ac_aggr.$3)
2817return 0;
2818  ;
2819  return 0;
2820}
2821_ACEOF
2822if ac_fn_c_try_compile "$LINENO"; then :
2823  eval "$4=yes"
2824else
2825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826/* end confdefs.h.  */
2827$5
2828int
2829main ()
2830{
2831static $2 ac_aggr;
2832if (sizeof ac_aggr.$3)
2833return 0;
2834  ;
2835  return 0;
2836}
2837_ACEOF
2838if ac_fn_c_try_compile "$LINENO"; then :
2839  eval "$4=yes"
2840else
2841  eval "$4=no"
2842fi
2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844fi
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846fi
2847eval ac_res=\$$4
2848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2849$as_echo "$ac_res" >&6; }
2850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851
2852} # ac_fn_c_check_member
2853
2854# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2855# ---------------------------------------------
2856# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2857# accordingly.
2858ac_fn_c_check_decl ()
2859{
2860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861  as_decl_name=`echo $2|sed 's/ *(.*//'`
2862  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2864$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2865if eval \${$3+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h.  */
2870$4
2871int
2872main ()
2873{
2874#ifndef $as_decl_name
2875#ifdef __cplusplus
2876  (void) $as_decl_use;
2877#else
2878  (void) $as_decl_name;
2879#endif
2880#endif
2881
2882  ;
2883  return 0;
2884}
2885_ACEOF
2886if ac_fn_c_try_compile "$LINENO"; then :
2887  eval "$3=yes"
2888else
2889  eval "$3=no"
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892fi
2893eval ac_res=\$$3
2894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2895$as_echo "$ac_res" >&6; }
2896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2897
2898} # ac_fn_c_check_decl
2899cat >config.log <<_ACEOF
2900This file contains any messages produced by compilers while
2901running configure, to aid debugging if configure makes a mistake.
2902
2903It was created by rsyslog $as_me 8.2112.0, which was
2904generated by GNU Autoconf 2.69.  Invocation command line was
2905
2906  $ $0 $@
2907
2908_ACEOF
2909exec 5>>config.log
2910{
2911cat <<_ASUNAME
2912## --------- ##
2913## Platform. ##
2914## --------- ##
2915
2916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2917uname -m = `(uname -m) 2>/dev/null || echo unknown`
2918uname -r = `(uname -r) 2>/dev/null || echo unknown`
2919uname -s = `(uname -s) 2>/dev/null || echo unknown`
2920uname -v = `(uname -v) 2>/dev/null || echo unknown`
2921
2922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2923/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2924
2925/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2926/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2928/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2929/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2930/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2931/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2932
2933_ASUNAME
2934
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940    $as_echo "PATH: $as_dir"
2941  done
2942IFS=$as_save_IFS
2943
2944} >&5
2945
2946cat >&5 <<_ACEOF
2947
2948
2949## ----------- ##
2950## Core tests. ##
2951## ----------- ##
2952
2953_ACEOF
2954
2955
2956# Keep a trace of the command line.
2957# Strip out --no-create and --no-recursion so they do not pile up.
2958# Strip out --silent because we don't want to record it for future runs.
2959# Also quote any args containing shell meta-characters.
2960# Make two passes to allow for proper duplicate-argument suppression.
2961ac_configure_args=
2962ac_configure_args0=
2963ac_configure_args1=
2964ac_must_keep_next=false
2965for ac_pass in 1 2
2966do
2967  for ac_arg
2968  do
2969    case $ac_arg in
2970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2972    | -silent | --silent | --silen | --sile | --sil)
2973      continue ;;
2974    *\'*)
2975      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2976    esac
2977    case $ac_pass in
2978    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2979    2)
2980      as_fn_append ac_configure_args1 " '$ac_arg'"
2981      if test $ac_must_keep_next = true; then
2982	ac_must_keep_next=false # Got value, back to normal.
2983      else
2984	case $ac_arg in
2985	  *=* | --config-cache | -C | -disable-* | --disable-* \
2986	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2987	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2988	  | -with-* | --with-* | -without-* | --without-* | --x)
2989	    case "$ac_configure_args0 " in
2990	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2991	    esac
2992	    ;;
2993	  -* ) ac_must_keep_next=true ;;
2994	esac
2995      fi
2996      as_fn_append ac_configure_args " '$ac_arg'"
2997      ;;
2998    esac
2999  done
3000done
3001{ ac_configure_args0=; unset ac_configure_args0;}
3002{ ac_configure_args1=; unset ac_configure_args1;}
3003
3004# When interrupted or exit'd, cleanup temporary files, and complete
3005# config.log.  We remove comments because anyway the quotes in there
3006# would cause problems or look ugly.
3007# WARNING: Use '\'' to represent an apostrophe within the trap.
3008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3009trap 'exit_status=$?
3010  # Save into config.log some information that might help in debugging.
3011  {
3012    echo
3013
3014    $as_echo "## ---------------- ##
3015## Cache variables. ##
3016## ---------------- ##"
3017    echo
3018    # The following way of writing the cache mishandles newlines in values,
3019(
3020  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3021    eval ac_val=\$$ac_var
3022    case $ac_val in #(
3023    *${as_nl}*)
3024      case $ac_var in #(
3025      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3027      esac
3028      case $ac_var in #(
3029      _ | IFS | as_nl) ;; #(
3030      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3031      *) { eval $ac_var=; unset $ac_var;} ;;
3032      esac ;;
3033    esac
3034  done
3035  (set) 2>&1 |
3036    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3037    *${as_nl}ac_space=\ *)
3038      sed -n \
3039	"s/'\''/'\''\\\\'\'''\''/g;
3040	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3041      ;; #(
3042    *)
3043      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3044      ;;
3045    esac |
3046    sort
3047)
3048    echo
3049
3050    $as_echo "## ----------------- ##
3051## Output variables. ##
3052## ----------------- ##"
3053    echo
3054    for ac_var in $ac_subst_vars
3055    do
3056      eval ac_val=\$$ac_var
3057      case $ac_val in
3058      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3059      esac
3060      $as_echo "$ac_var='\''$ac_val'\''"
3061    done | sort
3062    echo
3063
3064    if test -n "$ac_subst_files"; then
3065      $as_echo "## ------------------- ##
3066## File substitutions. ##
3067## ------------------- ##"
3068      echo
3069      for ac_var in $ac_subst_files
3070      do
3071	eval ac_val=\$$ac_var
3072	case $ac_val in
3073	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3074	esac
3075	$as_echo "$ac_var='\''$ac_val'\''"
3076      done | sort
3077      echo
3078    fi
3079
3080    if test -s confdefs.h; then
3081      $as_echo "## ----------- ##
3082## confdefs.h. ##
3083## ----------- ##"
3084      echo
3085      cat confdefs.h
3086      echo
3087    fi
3088    test "$ac_signal" != 0 &&
3089      $as_echo "$as_me: caught signal $ac_signal"
3090    $as_echo "$as_me: exit $exit_status"
3091  } >&5
3092  rm -f core *.core core.conftest.* &&
3093    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3094    exit $exit_status
3095' 0
3096for ac_signal in 1 2 13 15; do
3097  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3098done
3099ac_signal=0
3100
3101# confdefs.h avoids OS command line length limits that DEFS can exceed.
3102rm -f -r conftest* confdefs.h
3103
3104$as_echo "/* confdefs.h */" > confdefs.h
3105
3106# Predefined preprocessor variables.
3107
3108cat >>confdefs.h <<_ACEOF
3109#define PACKAGE_NAME "$PACKAGE_NAME"
3110_ACEOF
3111
3112cat >>confdefs.h <<_ACEOF
3113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3114_ACEOF
3115
3116cat >>confdefs.h <<_ACEOF
3117#define PACKAGE_VERSION "$PACKAGE_VERSION"
3118_ACEOF
3119
3120cat >>confdefs.h <<_ACEOF
3121#define PACKAGE_STRING "$PACKAGE_STRING"
3122_ACEOF
3123
3124cat >>confdefs.h <<_ACEOF
3125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3126_ACEOF
3127
3128cat >>confdefs.h <<_ACEOF
3129#define PACKAGE_URL "$PACKAGE_URL"
3130_ACEOF
3131
3132
3133# Let the site file select an alternate cache file if it wants to.
3134# Prefer an explicitly selected file to automatically selected ones.
3135ac_site_file1=NONE
3136ac_site_file2=NONE
3137if test -n "$CONFIG_SITE"; then
3138  # We do not want a PATH search for config.site.
3139  case $CONFIG_SITE in #((
3140    -*)  ac_site_file1=./$CONFIG_SITE;;
3141    */*) ac_site_file1=$CONFIG_SITE;;
3142    *)   ac_site_file1=./$CONFIG_SITE;;
3143  esac
3144elif test "x$prefix" != xNONE; then
3145  ac_site_file1=$prefix/share/config.site
3146  ac_site_file2=$prefix/etc/config.site
3147else
3148  ac_site_file1=$ac_default_prefix/share/config.site
3149  ac_site_file2=$ac_default_prefix/etc/config.site
3150fi
3151for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3152do
3153  test "x$ac_site_file" = xNONE && continue
3154  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3155    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3156$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3157    sed 's/^/| /' "$ac_site_file" >&5
3158    . "$ac_site_file" \
3159      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161as_fn_error $? "failed to load site script $ac_site_file
3162See \`config.log' for more details" "$LINENO" 5; }
3163  fi
3164done
3165
3166if test -r "$cache_file"; then
3167  # Some versions of bash will fail to source /dev/null (special files
3168  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3169  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3170    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3171$as_echo "$as_me: loading cache $cache_file" >&6;}
3172    case $cache_file in
3173      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3174      *)                      . "./$cache_file";;
3175    esac
3176  fi
3177else
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3179$as_echo "$as_me: creating cache $cache_file" >&6;}
3180  >$cache_file
3181fi
3182
3183# Check that the precious variables saved in the cache have kept the same
3184# value.
3185ac_cache_corrupted=false
3186for ac_var in $ac_precious_vars; do
3187  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3188  eval ac_new_set=\$ac_env_${ac_var}_set
3189  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3190  eval ac_new_val=\$ac_env_${ac_var}_value
3191  case $ac_old_set,$ac_new_set in
3192    set,)
3193      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3194$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3195      ac_cache_corrupted=: ;;
3196    ,set)
3197      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3198$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3199      ac_cache_corrupted=: ;;
3200    ,);;
3201    *)
3202      if test "x$ac_old_val" != "x$ac_new_val"; then
3203	# differences in whitespace do not lead to failure.
3204	ac_old_val_w=`echo x $ac_old_val`
3205	ac_new_val_w=`echo x $ac_new_val`
3206	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3207	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3208$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3209	  ac_cache_corrupted=:
3210	else
3211	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3212$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3213	  eval $ac_var=\$ac_old_val
3214	fi
3215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3216$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3217	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3218$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3219      fi;;
3220  esac
3221  # Pass precious variables to config.status.
3222  if test "$ac_new_set" = set; then
3223    case $ac_new_val in
3224    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3225    *) ac_arg=$ac_var=$ac_new_val ;;
3226    esac
3227    case " $ac_configure_args " in
3228      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3229      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3230    esac
3231  fi
3232done
3233if $ac_cache_corrupted; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3237$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3238  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3239fi
3240## -------------------- ##
3241## Main body of script. ##
3242## -------------------- ##
3243
3244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250   # UPDATE on release
3251
3252$as_echo "#define VERSION_YEAR 21" >>confdefs.h
3253  # UPDATE on release
3254
3255$as_echo "#define VERSION_MONTH 12" >>confdefs.h
3256 # UPDATE on release
3257
3258am__api_version='1.16'
3259
3260ac_aux_dir=
3261for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3262  if test -f "$ac_dir/install-sh"; then
3263    ac_aux_dir=$ac_dir
3264    ac_install_sh="$ac_aux_dir/install-sh -c"
3265    break
3266  elif test -f "$ac_dir/install.sh"; then
3267    ac_aux_dir=$ac_dir
3268    ac_install_sh="$ac_aux_dir/install.sh -c"
3269    break
3270  elif test -f "$ac_dir/shtool"; then
3271    ac_aux_dir=$ac_dir
3272    ac_install_sh="$ac_aux_dir/shtool install -c"
3273    break
3274  fi
3275done
3276if test -z "$ac_aux_dir"; then
3277  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3278fi
3279
3280# These three variables are undocumented and unsupported,
3281# and are intended to be withdrawn in a future Autoconf release.
3282# They can cause serious problems if a builder's source tree is in a directory
3283# whose full name contains unusual characters.
3284ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3285ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3286ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3287
3288
3289# Find a good install program.  We prefer a C program (faster),
3290# so one script is as good as another.  But avoid the broken or
3291# incompatible versions:
3292# SysV /etc/install, /usr/sbin/install
3293# SunOS /usr/etc/install
3294# IRIX /sbin/install
3295# AIX /bin/install
3296# AmigaOS /C/install, which installs bootblocks on floppy discs
3297# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3298# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3299# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3300# OS/2's system install, which has a completely different semantic
3301# ./install, which can be erroneously created by make from ./install.sh.
3302# Reject install programs that cannot install multiple files.
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3304$as_echo_n "checking for a BSD-compatible install... " >&6; }
3305if test -z "$INSTALL"; then
3306if ${ac_cv_path_install+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    # Account for people who put trailing slashes in PATH elements.
3315case $as_dir/ in #((
3316  ./ | .// | /[cC]/* | \
3317  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3318  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3319  /usr/ucb/* ) ;;
3320  *)
3321    # OSF1 and SCO ODT 3.0 have their own names for install.
3322    # Don't use installbsd from OSF since it installs stuff as root
3323    # by default.
3324    for ac_prog in ginstall scoinst install; do
3325      for ac_exec_ext in '' $ac_executable_extensions; do
3326	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3327	  if test $ac_prog = install &&
3328	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329	    # AIX install.  It has an incompatible calling convention.
3330	    :
3331	  elif test $ac_prog = install &&
3332	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333	    # program-specific install script used by HP pwplus--don't use.
3334	    :
3335	  else
3336	    rm -rf conftest.one conftest.two conftest.dir
3337	    echo one > conftest.one
3338	    echo two > conftest.two
3339	    mkdir conftest.dir
3340	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3341	      test -s conftest.one && test -s conftest.two &&
3342	      test -s conftest.dir/conftest.one &&
3343	      test -s conftest.dir/conftest.two
3344	    then
3345	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3346	      break 3
3347	    fi
3348	  fi
3349	fi
3350      done
3351    done
3352    ;;
3353esac
3354
3355  done
3356IFS=$as_save_IFS
3357
3358rm -rf conftest.one conftest.two conftest.dir
3359
3360fi
3361  if test "${ac_cv_path_install+set}" = set; then
3362    INSTALL=$ac_cv_path_install
3363  else
3364    # As a last resort, use the slow shell script.  Don't cache a
3365    # value for INSTALL within a source directory, because that will
3366    # break other packages using the cache if that directory is
3367    # removed, or if the value is a relative name.
3368    INSTALL=$ac_install_sh
3369  fi
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3372$as_echo "$INSTALL" >&6; }
3373
3374# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3375# It thinks the first close brace ends the variable substitution.
3376test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3377
3378test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3379
3380test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3381
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3383$as_echo_n "checking whether build environment is sane... " >&6; }
3384# Reject unsafe characters in $srcdir or the absolute working directory
3385# name.  Accept space and tab only in the latter.
3386am_lf='
3387'
3388case `pwd` in
3389  *[\\\"\#\$\&\'\`$am_lf]*)
3390    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3391esac
3392case $srcdir in
3393  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3394    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3395esac
3396
3397# Do 'set' in a subshell so we don't clobber the current shell's
3398# arguments.  Must try -L first in case configure is actually a
3399# symlink; some systems play weird games with the mod time of symlinks
3400# (eg FreeBSD returns the mod time of the symlink's containing
3401# directory).
3402if (
3403   am_has_slept=no
3404   for am_try in 1 2; do
3405     echo "timestamp, slept: $am_has_slept" > conftest.file
3406     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3407     if test "$*" = "X"; then
3408	# -L didn't work.
3409	set X `ls -t "$srcdir/configure" conftest.file`
3410     fi
3411     if test "$*" != "X $srcdir/configure conftest.file" \
3412	&& test "$*" != "X conftest.file $srcdir/configure"; then
3413
3414	# If neither matched, then we have a broken ls.  This can happen
3415	# if, for instance, CONFIG_SHELL is bash and it inherits a
3416	# broken ls alias from the environment.  This has actually
3417	# happened.  Such a system could not be considered "sane".
3418	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3419  alias in your environment" "$LINENO" 5
3420     fi
3421     if test "$2" = conftest.file || test $am_try -eq 2; then
3422       break
3423     fi
3424     # Just in case.
3425     sleep 1
3426     am_has_slept=yes
3427   done
3428   test "$2" = conftest.file
3429   )
3430then
3431   # Ok.
3432   :
3433else
3434   as_fn_error $? "newly created file is older than distributed files!
3435Check your system clock" "$LINENO" 5
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438$as_echo "yes" >&6; }
3439# If we didn't sleep, we still need to ensure time stamps of config.status and
3440# generated files are strictly newer.
3441am_sleep_pid=
3442if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3443  ( sleep 1 ) &
3444  am_sleep_pid=$!
3445fi
3446
3447rm -f conftest.file
3448
3449test "$program_prefix" != NONE &&
3450  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3451# Use a double $ so make ignores it.
3452test "$program_suffix" != NONE &&
3453  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3454# Double any \ or $.
3455# By default was `s,x,x', remove it if useless.
3456ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3457program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3458
3459# Expand $ac_aux_dir to an absolute path.
3460am_aux_dir=`cd "$ac_aux_dir" && pwd`
3461
3462if test x"${MISSING+set}" != xset; then
3463  case $am_aux_dir in
3464  *\ * | *\	*)
3465    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3466  *)
3467    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3468  esac
3469fi
3470# Use eval to expand $SHELL
3471if eval "$MISSING --is-lightweight"; then
3472  am_missing_run="$MISSING "
3473else
3474  am_missing_run=
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3476$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3477fi
3478
3479if test x"${install_sh+set}" != xset; then
3480  case $am_aux_dir in
3481  *\ * | *\	*)
3482    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3483  *)
3484    install_sh="\${SHELL} $am_aux_dir/install-sh"
3485  esac
3486fi
3487
3488# Installed binaries are usually stripped using 'strip' when the user
3489# run "make install-strip".  However 'strip' might not be the right
3490# tool to use in cross-compilation environments, therefore Automake
3491# will honor the 'STRIP' environment variable to overrule this program.
3492if test "$cross_compiling" != no; then
3493  if test -n "$ac_tool_prefix"; then
3494  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3495set dummy ${ac_tool_prefix}strip; ac_word=$2
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497$as_echo_n "checking for $ac_word... " >&6; }
3498if ${ac_cv_prog_STRIP+:} false; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501  if test -n "$STRIP"; then
3502  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3503else
3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  test -z "$as_dir" && as_dir=.
3509    for ac_exec_ext in '' $ac_executable_extensions; do
3510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516  done
3517IFS=$as_save_IFS
3518
3519fi
3520fi
3521STRIP=$ac_cv_prog_STRIP
3522if test -n "$STRIP"; then
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3524$as_echo "$STRIP" >&6; }
3525else
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527$as_echo "no" >&6; }
3528fi
3529
3530
3531fi
3532if test -z "$ac_cv_prog_STRIP"; then
3533  ac_ct_STRIP=$STRIP
3534  # Extract the first word of "strip", so it can be a program name with args.
3535set dummy strip; ac_word=$2
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537$as_echo_n "checking for $ac_word... " >&6; }
3538if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  if test -n "$ac_ct_STRIP"; then
3542  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547  IFS=$as_save_IFS
3548  test -z "$as_dir" && as_dir=.
3549    for ac_exec_ext in '' $ac_executable_extensions; do
3550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551    ac_cv_prog_ac_ct_STRIP="strip"
3552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553    break 2
3554  fi
3555done
3556  done
3557IFS=$as_save_IFS
3558
3559fi
3560fi
3561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3562if test -n "$ac_ct_STRIP"; then
3563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3564$as_echo "$ac_ct_STRIP" >&6; }
3565else
3566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567$as_echo "no" >&6; }
3568fi
3569
3570  if test "x$ac_ct_STRIP" = x; then
3571    STRIP=":"
3572  else
3573    case $cross_compiling:$ac_tool_warned in
3574yes:)
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577ac_tool_warned=yes ;;
3578esac
3579    STRIP=$ac_ct_STRIP
3580  fi
3581else
3582  STRIP="$ac_cv_prog_STRIP"
3583fi
3584
3585fi
3586INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3587
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3589$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3590if test -z "$MKDIR_P"; then
3591  if ${ac_cv_path_mkdir+:} false; then :
3592  $as_echo_n "(cached) " >&6
3593else
3594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_prog in mkdir gmkdir; do
3600	 for ac_exec_ext in '' $ac_executable_extensions; do
3601	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3602	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3603	     'mkdir (GNU coreutils) '* | \
3604	     'mkdir (coreutils) '* | \
3605	     'mkdir (fileutils) '4.1*)
3606	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3607	       break 3;;
3608	   esac
3609	 done
3610       done
3611  done
3612IFS=$as_save_IFS
3613
3614fi
3615
3616  test -d ./--version && rmdir ./--version
3617  if test "${ac_cv_path_mkdir+set}" = set; then
3618    MKDIR_P="$ac_cv_path_mkdir -p"
3619  else
3620    # As a last resort, use the slow shell script.  Don't cache a
3621    # value for MKDIR_P within a source directory, because that will
3622    # break other packages using the cache if that directory is
3623    # removed, or if the value is a relative name.
3624    MKDIR_P="$ac_install_sh -d"
3625  fi
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3628$as_echo "$MKDIR_P" >&6; }
3629
3630for ac_prog in gawk mawk nawk awk
3631do
3632  # Extract the first word of "$ac_prog", so it can be a program name with args.
3633set dummy $ac_prog; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if ${ac_cv_prog_AWK+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  if test -n "$AWK"; then
3640  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  test -z "$as_dir" && as_dir=.
3647    for ac_exec_ext in '' $ac_executable_extensions; do
3648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649    ac_cv_prog_AWK="$ac_prog"
3650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651    break 2
3652  fi
3653done
3654  done
3655IFS=$as_save_IFS
3656
3657fi
3658fi
3659AWK=$ac_cv_prog_AWK
3660if test -n "$AWK"; then
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3662$as_echo "$AWK" >&6; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
3667
3668
3669  test -n "$AWK" && break
3670done
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3673$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3674set x ${MAKE-make}
3675ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3676if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3677  $as_echo_n "(cached) " >&6
3678else
3679  cat >conftest.make <<\_ACEOF
3680SHELL = /bin/sh
3681all:
3682	@echo '@@@%%%=$(MAKE)=@@@%%%'
3683_ACEOF
3684# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3685case `${MAKE-make} -f conftest.make 2>/dev/null` in
3686  *@@@%%%=?*=@@@%%%*)
3687    eval ac_cv_prog_make_${ac_make}_set=yes;;
3688  *)
3689    eval ac_cv_prog_make_${ac_make}_set=no;;
3690esac
3691rm -f conftest.make
3692fi
3693if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695$as_echo "yes" >&6; }
3696  SET_MAKE=
3697else
3698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700  SET_MAKE="MAKE=${MAKE-make}"
3701fi
3702
3703rm -rf .tst 2>/dev/null
3704mkdir .tst 2>/dev/null
3705if test -d .tst; then
3706  am__leading_dot=.
3707else
3708  am__leading_dot=_
3709fi
3710rmdir .tst 2>/dev/null
3711
3712# Check whether --enable-silent-rules was given.
3713if test "${enable_silent_rules+set}" = set; then :
3714  enableval=$enable_silent_rules;
3715fi
3716
3717case $enable_silent_rules in # (((
3718  yes) AM_DEFAULT_VERBOSITY=0;;
3719   no) AM_DEFAULT_VERBOSITY=1;;
3720    *) AM_DEFAULT_VERBOSITY=1;;
3721esac
3722am_make=${MAKE-make}
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3724$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3725if ${am_cv_make_support_nested_variables+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  if $as_echo 'TRUE=$(BAR$(V))
3729BAR0=false
3730BAR1=true
3731V=1
3732am__doit:
3733	@$(TRUE)
3734.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3735  am_cv_make_support_nested_variables=yes
3736else
3737  am_cv_make_support_nested_variables=no
3738fi
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3741$as_echo "$am_cv_make_support_nested_variables" >&6; }
3742if test $am_cv_make_support_nested_variables = yes; then
3743    AM_V='$(V)'
3744  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3745else
3746  AM_V=$AM_DEFAULT_VERBOSITY
3747  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3748fi
3749AM_BACKSLASH='\'
3750
3751if test "`cd $srcdir && pwd`" != "`pwd`"; then
3752  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3753  # is not polluted with repeated "-I."
3754  am__isrc=' -I$(srcdir)'
3755  # test to see if srcdir already configured
3756  if test -f $srcdir/config.status; then
3757    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3758  fi
3759fi
3760
3761# test whether we have cygpath
3762if test -z "$CYGPATH_W"; then
3763  if (cygpath --version) >/dev/null 2>/dev/null; then
3764    CYGPATH_W='cygpath -w'
3765  else
3766    CYGPATH_W=echo
3767  fi
3768fi
3769
3770
3771# Define the identity of the package.
3772 PACKAGE='rsyslog'
3773 VERSION='8.2112.0'
3774
3775
3776cat >>confdefs.h <<_ACEOF
3777#define PACKAGE "$PACKAGE"
3778_ACEOF
3779
3780
3781cat >>confdefs.h <<_ACEOF
3782#define VERSION "$VERSION"
3783_ACEOF
3784
3785# Some tools Automake needs.
3786
3787ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3788
3789
3790AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3791
3792
3793AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3794
3795
3796AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3797
3798
3799MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3800
3801# For better backward compatibility.  To be removed once Automake 1.9.x
3802# dies out for good.  For more background, see:
3803# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3804# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3805mkdir_p='$(MKDIR_P)'
3806
3807# We need awk for the "check" target (and possibly the TAP driver).  The
3808# system "awk" is bad on some platforms.
3809# Always define AMTAR for backward compatibility.  Yes, it's still used
3810# in the wild :-(  We should find a proper way to deprecate it ...
3811AMTAR='$${TAR-tar}'
3812
3813
3814# We'll loop over all known methods to create a tar archive until one works.
3815_am_tools='gnutar  pax cpio none'
3816
3817am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3818
3819
3820
3821
3822
3823
3824# POSIX will say in a future version that running "rm -f" with no argument
3825# is OK; and we want to be able to make that assumption in our Makefile
3826# recipes.  So use an aggressive probe to check that the usage we want is
3827# actually supported "in the wild" to an acceptable degree.
3828# See automake bug#10828.
3829# To make any issue more visible, cause the running configure to be aborted
3830# by default if the 'rm' program in use doesn't match our expectations; the
3831# user can still override this though.
3832if rm -f && rm -fr && rm -rf; then : OK; else
3833  cat >&2 <<'END'
3834Oops!
3835
3836Your 'rm' program seems unable to run without file operands specified
3837on the command line, even when the '-f' option is present.  This is contrary
3838to the behaviour of most rm programs out there, and not conforming with
3839the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3840
3841Please tell bug-automake@gnu.org about your system, including the value
3842of your $PATH and any error possibly output before this message.  This
3843can help us improve future automake versions.
3844
3845END
3846  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3847    echo 'Configuration will proceed anyway, since you have set the' >&2
3848    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3849    echo >&2
3850  else
3851    cat >&2 <<'END'
3852Aborting the configuration process, to ensure you take notice of the issue.
3853
3854You can download and install GNU coreutils to get an 'rm' implementation
3855that behaves properly: <https://www.gnu.org/software/coreutils/>.
3856
3857If you want to complete the configuration process using your problematic
3858'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3859to "yes", and re-run configure.
3860
3861END
3862    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3863  fi
3864fi
3865
3866
3867# Check whether --enable-silent-rules was given.
3868if test "${enable_silent_rules+set}" = set; then :
3869  enableval=$enable_silent_rules;
3870fi
3871
3872case $enable_silent_rules in # (((
3873  yes) AM_DEFAULT_VERBOSITY=0;;
3874   no) AM_DEFAULT_VERBOSITY=1;;
3875    *) AM_DEFAULT_VERBOSITY=0;;
3876esac
3877am_make=${MAKE-make}
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3879$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3880if ${am_cv_make_support_nested_variables+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883  if $as_echo 'TRUE=$(BAR$(V))
3884BAR0=false
3885BAR1=true
3886V=1
3887am__doit:
3888	@$(TRUE)
3889.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3890  am_cv_make_support_nested_variables=yes
3891else
3892  am_cv_make_support_nested_variables=no
3893fi
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3896$as_echo "$am_cv_make_support_nested_variables" >&6; }
3897if test $am_cv_make_support_nested_variables = yes; then
3898    AM_V='$(V)'
3899  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3900else
3901  AM_V=$AM_DEFAULT_VERBOSITY
3902  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3903fi
3904AM_BACKSLASH='\'
3905
3906
3907unamestr=$(uname)
3908if test "$unamestr" = "AIX"; then
3909	# Check whether --enable-aix64bits was given.
3910if test "${enable_aix64bits+set}" = set; then :
3911  enableval=$enable_aix64bits; case "${enableval}" in
3912	         yes) enable_aix64bits="yes" ;;
3913	          no) enable_aix64bits="no" ;;
3914	           *) as_fn_error $? "bad value ${enableval} for --enable-aix64bits" "$LINENO" 5 ;;
3915	         esac
3916else
3917  enable_aix64bits=no
3918
3919fi
3920
3921
3922	CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
3923	LDFLAGS="-brtl"
3924	if test "x$enable_aix64bits" == "xyes"; then
3925		CFLAGS="$CFLAGS -q64"
3926		LDFLAGS="$LDFLAGS -b64"
3927		AR_CFLAGS="-X64 $AR_CFLAGS"
3928		NM="$(which nm) -X64 rcu"
3929	fi
3930fi
3931
3932
3933
3934ac_config_headers="$ac_config_headers config.h"
3935
3936
3937DEPDIR="${am__leading_dot}deps"
3938
3939ac_config_commands="$ac_config_commands depfiles"
3940
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3942$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3943cat > confinc.mk << 'END'
3944am__doit:
3945	@echo this is the am__doit target >confinc.out
3946.PHONY: am__doit
3947END
3948am__include="#"
3949am__quote=
3950# BSD make does it like this.
3951echo '.include "confinc.mk" # ignored' > confmf.BSD
3952# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3953echo 'include confinc.mk # ignored' > confmf.GNU
3954_am_result=no
3955for s in GNU BSD; do
3956  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3957   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }
3961  case $?:`cat confinc.out 2>/dev/null` in #(
3962  '0:this is the am__doit target') :
3963    case $s in #(
3964  BSD) :
3965    am__include='.include' am__quote='"' ;; #(
3966  *) :
3967    am__include='include' am__quote='' ;;
3968esac ;; #(
3969  *) :
3970     ;;
3971esac
3972  if test "$am__include" != "#"; then
3973    _am_result="yes ($s style)"
3974    break
3975  fi
3976done
3977rm -f confinc.* confmf.*
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3979$as_echo "${_am_result}" >&6; }
3980
3981# Check whether --enable-dependency-tracking was given.
3982if test "${enable_dependency_tracking+set}" = set; then :
3983  enableval=$enable_dependency_tracking;
3984fi
3985
3986if test "x$enable_dependency_tracking" != xno; then
3987  am_depcomp="$ac_aux_dir/depcomp"
3988  AMDEPBACKSLASH='\'
3989  am__nodep='_no'
3990fi
3991 if test "x$enable_dependency_tracking" != xno; then
3992  AMDEP_TRUE=
3993  AMDEP_FALSE='#'
3994else
3995  AMDEP_TRUE='#'
3996  AMDEP_FALSE=
3997fi
3998
3999
4000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005if test -n "$ac_tool_prefix"; then
4006  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4007set dummy ${ac_tool_prefix}gcc; ac_word=$2
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
4010if ${ac_cv_prog_CC+:} false; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  if test -n "$CC"; then
4014  ac_cv_prog_CC="$CC" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019  IFS=$as_save_IFS
4020  test -z "$as_dir" && as_dir=.
4021    for ac_exec_ext in '' $ac_executable_extensions; do
4022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025    break 2
4026  fi
4027done
4028  done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033CC=$ac_cv_prog_CC
4034if test -n "$CC"; then
4035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036$as_echo "$CC" >&6; }
4037else
4038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043fi
4044if test -z "$ac_cv_prog_CC"; then
4045  ac_ct_CC=$CC
4046  # Extract the first word of "gcc", so it can be a program name with args.
4047set dummy gcc; ac_word=$2
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
4050if ${ac_cv_prog_ac_ct_CC+:} false; then :
4051  $as_echo_n "(cached) " >&6
4052else
4053  if test -n "$ac_ct_CC"; then
4054  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4055else
4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH
4058do
4059  IFS=$as_save_IFS
4060  test -z "$as_dir" && as_dir=.
4061    for ac_exec_ext in '' $ac_executable_extensions; do
4062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063    ac_cv_prog_ac_ct_CC="gcc"
4064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065    break 2
4066  fi
4067done
4068  done
4069IFS=$as_save_IFS
4070
4071fi
4072fi
4073ac_ct_CC=$ac_cv_prog_ac_ct_CC
4074if test -n "$ac_ct_CC"; then
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076$as_echo "$ac_ct_CC" >&6; }
4077else
4078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079$as_echo "no" >&6; }
4080fi
4081
4082  if test "x$ac_ct_CC" = x; then
4083    CC=""
4084  else
4085    case $cross_compiling:$ac_tool_warned in
4086yes:)
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089ac_tool_warned=yes ;;
4090esac
4091    CC=$ac_ct_CC
4092  fi
4093else
4094  CC="$ac_cv_prog_CC"
4095fi
4096
4097if test -z "$CC"; then
4098          if test -n "$ac_tool_prefix"; then
4099    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4100set dummy ${ac_tool_prefix}cc; ac_word=$2
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
4103if ${ac_cv_prog_CC+:} false; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  if test -n "$CC"; then
4107  ac_cv_prog_CC="$CC" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  test -z "$as_dir" && as_dir=.
4114    for ac_exec_ext in '' $ac_executable_extensions; do
4115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116    ac_cv_prog_CC="${ac_tool_prefix}cc"
4117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118    break 2
4119  fi
4120done
4121  done
4122IFS=$as_save_IFS
4123
4124fi
4125fi
4126CC=$ac_cv_prog_CC
4127if test -n "$CC"; then
4128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129$as_echo "$CC" >&6; }
4130else
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133fi
4134
4135
4136  fi
4137fi
4138if test -z "$CC"; then
4139  # Extract the first word of "cc", so it can be a program name with args.
4140set dummy cc; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
4143if ${ac_cv_prog_CC+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if test -n "$CC"; then
4147  ac_cv_prog_CC="$CC" # Let the user override the test.
4148else
4149  ac_prog_rejected=no
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153  IFS=$as_save_IFS
4154  test -z "$as_dir" && as_dir=.
4155    for ac_exec_ext in '' $ac_executable_extensions; do
4156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4158       ac_prog_rejected=yes
4159       continue
4160     fi
4161    ac_cv_prog_CC="cc"
4162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163    break 2
4164  fi
4165done
4166  done
4167IFS=$as_save_IFS
4168
4169if test $ac_prog_rejected = yes; then
4170  # We found a bogon in the path, so make sure we never use it.
4171  set dummy $ac_cv_prog_CC
4172  shift
4173  if test $# != 0; then
4174    # We chose a different compiler from the bogus one.
4175    # However, it has the same basename, so the bogon will be chosen
4176    # first if we set CC to just the basename; use the full file name.
4177    shift
4178    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4179  fi
4180fi
4181fi
4182fi
4183CC=$ac_cv_prog_CC
4184if test -n "$CC"; then
4185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186$as_echo "$CC" >&6; }
4187else
4188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189$as_echo "no" >&6; }
4190fi
4191
4192
4193fi
4194if test -z "$CC"; then
4195  if test -n "$ac_tool_prefix"; then
4196  for ac_prog in cl.exe
4197  do
4198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201$as_echo_n "checking for $ac_word... " >&6; }
4202if ${ac_cv_prog_CC+:} false; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  if test -n "$CC"; then
4206  ac_cv_prog_CC="$CC" # Let the user override the test.
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211  IFS=$as_save_IFS
4212  test -z "$as_dir" && as_dir=.
4213    for ac_exec_ext in '' $ac_executable_extensions; do
4214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217    break 2
4218  fi
4219done
4220  done
4221IFS=$as_save_IFS
4222
4223fi
4224fi
4225CC=$ac_cv_prog_CC
4226if test -n "$CC"; then
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4228$as_echo "$CC" >&6; }
4229else
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231$as_echo "no" >&6; }
4232fi
4233
4234
4235    test -n "$CC" && break
4236  done
4237fi
4238if test -z "$CC"; then
4239  ac_ct_CC=$CC
4240  for ac_prog in cl.exe
4241do
4242  # Extract the first word of "$ac_prog", so it can be a program name with args.
4243set dummy $ac_prog; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if test -n "$ac_ct_CC"; then
4250  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259    ac_cv_prog_ac_ct_CC="$ac_prog"
4260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264  done
4265IFS=$as_save_IFS
4266
4267fi
4268fi
4269ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270if test -n "$ac_ct_CC"; then
4271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272$as_echo "$ac_ct_CC" >&6; }
4273else
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
4276fi
4277
4278
4279  test -n "$ac_ct_CC" && break
4280done
4281
4282  if test "x$ac_ct_CC" = x; then
4283    CC=""
4284  else
4285    case $cross_compiling:$ac_tool_warned in
4286yes:)
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289ac_tool_warned=yes ;;
4290esac
4291    CC=$ac_ct_CC
4292  fi
4293fi
4294
4295fi
4296
4297
4298test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300as_fn_error $? "no acceptable C compiler found in \$PATH
4301See \`config.log' for more details" "$LINENO" 5; }
4302
4303# Provide some information about the compiler.
4304$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4305set X $ac_compile
4306ac_compiler=$2
4307for ac_option in --version -v -V -qversion; do
4308  { { ac_try="$ac_compiler $ac_option >&5"
4309case "(($ac_try" in
4310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311  *) ac_try_echo=$ac_try;;
4312esac
4313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314$as_echo "$ac_try_echo"; } >&5
4315  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4316  ac_status=$?
4317  if test -s conftest.err; then
4318    sed '10a\
4319... rest of stderr output deleted ...
4320         10q' conftest.err >conftest.er1
4321    cat conftest.er1 >&5
4322  fi
4323  rm -f conftest.er1 conftest.err
4324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325  test $ac_status = 0; }
4326done
4327
4328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330
4331int
4332main ()
4333{
4334
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339ac_clean_files_save=$ac_clean_files
4340ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4341# Try to create an executable without -o first, disregard a.out.
4342# It will help us diagnose broken compilers, and finding out an intuition
4343# of exeext.
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4345$as_echo_n "checking whether the C compiler works... " >&6; }
4346ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4347
4348# The possible output files:
4349ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4350
4351ac_rmfiles=
4352for ac_file in $ac_files
4353do
4354  case $ac_file in
4355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357  esac
4358done
4359rm -f $ac_rmfiles
4360
4361if { { ac_try="$ac_link_default"
4362case "(($ac_try" in
4363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364  *) ac_try_echo=$ac_try;;
4365esac
4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367$as_echo "$ac_try_echo"; } >&5
4368  (eval "$ac_link_default") 2>&5
4369  ac_status=$?
4370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371  test $ac_status = 0; }; then :
4372  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4373# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4374# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4375# so that the user can short-circuit this test for compilers unknown to
4376# Autoconf.
4377for ac_file in $ac_files ''
4378do
4379  test -f "$ac_file" || continue
4380  case $ac_file in
4381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4382	;;
4383    [ab].out )
4384	# We found the default executable, but exeext='' is most
4385	# certainly right.
4386	break;;
4387    *.* )
4388	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4389	then :; else
4390	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4391	fi
4392	# We set ac_cv_exeext here because the later test for it is not
4393	# safe: cross compilers may not add the suffix if given an `-o'
4394	# argument, so we may need to know it at that point already.
4395	# Even if this section looks crufty: it has the advantage of
4396	# actually working.
4397	break;;
4398    * )
4399	break;;
4400  esac
4401done
4402test "$ac_cv_exeext" = no && ac_cv_exeext=
4403
4404else
4405  ac_file=''
4406fi
4407if test -z "$ac_file"; then :
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410$as_echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415as_fn_error 77 "C compiler cannot create executables
4416See \`config.log' for more details" "$LINENO" 5; }
4417else
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419$as_echo "yes" >&6; }
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4422$as_echo_n "checking for C compiler default output file name... " >&6; }
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4424$as_echo "$ac_file" >&6; }
4425ac_exeext=$ac_cv_exeext
4426
4427rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4428ac_clean_files=$ac_clean_files_save
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430$as_echo_n "checking for suffix of executables... " >&6; }
4431if { { ac_try="$ac_link"
4432case "(($ac_try" in
4433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434  *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438  (eval "$ac_link") 2>&5
4439  ac_status=$?
4440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441  test $ac_status = 0; }; then :
4442  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4444# work properly (i.e., refer to `conftest.exe'), while it won't with
4445# `rm'.
4446for ac_file in conftest.exe conftest conftest.*; do
4447  test -f "$ac_file" || continue
4448  case $ac_file in
4449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4451	  break;;
4452    * ) break;;
4453  esac
4454done
4455else
4456  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4459See \`config.log' for more details" "$LINENO" 5; }
4460fi
4461rm -f conftest conftest$ac_cv_exeext
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463$as_echo "$ac_cv_exeext" >&6; }
4464
4465rm -f conftest.$ac_ext
4466EXEEXT=$ac_cv_exeext
4467ac_exeext=$EXEEXT
4468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470#include <stdio.h>
4471int
4472main ()
4473{
4474FILE *f = fopen ("conftest.out", "w");
4475 return ferror (f) || fclose (f) != 0;
4476
4477  ;
4478  return 0;
4479}
4480_ACEOF
4481ac_clean_files="$ac_clean_files conftest.out"
4482# Check that the compiler produces executables we can run.  If not, either
4483# the compiler is broken, or we cross compile.
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485$as_echo_n "checking whether we are cross compiling... " >&6; }
4486if test "$cross_compiling" != yes; then
4487  { { ac_try="$ac_link"
4488case "(($ac_try" in
4489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490  *) ac_try_echo=$ac_try;;
4491esac
4492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493$as_echo "$ac_try_echo"; } >&5
4494  (eval "$ac_link") 2>&5
4495  ac_status=$?
4496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497  test $ac_status = 0; }
4498  if { ac_try='./conftest$ac_cv_exeext'
4499  { { case "(($ac_try" in
4500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501  *) ac_try_echo=$ac_try;;
4502esac
4503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504$as_echo "$ac_try_echo"; } >&5
4505  (eval "$ac_try") 2>&5
4506  ac_status=$?
4507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508  test $ac_status = 0; }; }; then
4509    cross_compiling=no
4510  else
4511    if test "$cross_compiling" = maybe; then
4512	cross_compiling=yes
4513    else
4514	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516as_fn_error $? "cannot run C compiled programs.
4517If you meant to cross compile, use \`--host'.
4518See \`config.log' for more details" "$LINENO" 5; }
4519    fi
4520  fi
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4523$as_echo "$cross_compiling" >&6; }
4524
4525rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4526ac_clean_files=$ac_clean_files_save
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4528$as_echo_n "checking for suffix of object files... " >&6; }
4529if ${ac_cv_objext+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534
4535int
4536main ()
4537{
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543rm -f conftest.o conftest.obj
4544if { { ac_try="$ac_compile"
4545case "(($ac_try" in
4546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547  *) ac_try_echo=$ac_try;;
4548esac
4549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550$as_echo "$ac_try_echo"; } >&5
4551  (eval "$ac_compile") 2>&5
4552  ac_status=$?
4553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554  test $ac_status = 0; }; then :
4555  for ac_file in conftest.o conftest.obj conftest.*; do
4556  test -f "$ac_file" || continue;
4557  case $ac_file in
4558    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4559    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560       break;;
4561  esac
4562done
4563else
4564  $as_echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569as_fn_error $? "cannot compute suffix of object files: cannot compile
4570See \`config.log' for more details" "$LINENO" 5; }
4571fi
4572rm -f conftest.$ac_cv_objext conftest.$ac_ext
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4575$as_echo "$ac_cv_objext" >&6; }
4576OBJEXT=$ac_cv_objext
4577ac_objext=$OBJEXT
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4579$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4580if ${ac_cv_c_compiler_gnu+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h.  */
4585
4586int
4587main ()
4588{
4589#ifndef __GNUC__
4590       choke me
4591#endif
4592
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597if ac_fn_c_try_compile "$LINENO"; then :
4598  ac_compiler_gnu=yes
4599else
4600  ac_compiler_gnu=no
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603ac_cv_c_compiler_gnu=$ac_compiler_gnu
4604
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4608if test $ac_compiler_gnu = yes; then
4609  GCC=yes
4610else
4611  GCC=
4612fi
4613ac_test_CFLAGS=${CFLAGS+set}
4614ac_save_CFLAGS=$CFLAGS
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4616$as_echo_n "checking whether $CC accepts -g... " >&6; }
4617if ${ac_cv_prog_cc_g+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  ac_save_c_werror_flag=$ac_c_werror_flag
4621   ac_c_werror_flag=yes
4622   ac_cv_prog_cc_g=no
4623   CFLAGS="-g"
4624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625/* end confdefs.h.  */
4626
4627int
4628main ()
4629{
4630
4631  ;
4632  return 0;
4633}
4634_ACEOF
4635if ac_fn_c_try_compile "$LINENO"; then :
4636  ac_cv_prog_cc_g=yes
4637else
4638  CFLAGS=""
4639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h.  */
4641
4642int
4643main ()
4644{
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650if ac_fn_c_try_compile "$LINENO"; then :
4651
4652else
4653  ac_c_werror_flag=$ac_save_c_werror_flag
4654	 CFLAGS="-g"
4655	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h.  */
4657
4658int
4659main ()
4660{
4661
4662  ;
4663  return 0;
4664}
4665_ACEOF
4666if ac_fn_c_try_compile "$LINENO"; then :
4667  ac_cv_prog_cc_g=yes
4668fi
4669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670fi
4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674   ac_c_werror_flag=$ac_save_c_werror_flag
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677$as_echo "$ac_cv_prog_cc_g" >&6; }
4678if test "$ac_test_CFLAGS" = set; then
4679  CFLAGS=$ac_save_CFLAGS
4680elif test $ac_cv_prog_cc_g = yes; then
4681  if test "$GCC" = yes; then
4682    CFLAGS="-g -O2"
4683  else
4684    CFLAGS="-g"
4685  fi
4686else
4687  if test "$GCC" = yes; then
4688    CFLAGS="-O2"
4689  else
4690    CFLAGS=
4691  fi
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4694$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4695if ${ac_cv_prog_cc_c89+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  ac_cv_prog_cc_c89=no
4699ac_save_CC=$CC
4700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702#include <stdarg.h>
4703#include <stdio.h>
4704struct stat;
4705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4706struct buf { int x; };
4707FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708static char *e (p, i)
4709     char **p;
4710     int i;
4711{
4712  return p[i];
4713}
4714static char *f (char * (*g) (char **, int), char **p, ...)
4715{
4716  char *s;
4717  va_list v;
4718  va_start (v,p);
4719  s = g (p, va_arg (v,int));
4720  va_end (v);
4721  return s;
4722}
4723
4724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4725   function prototypes and stuff, but not '\xHH' hex character constants.
4726   These don't provoke an error unfortunately, instead are silently treated
4727   as 'x'.  The following induces an error, until -std is added to get
4728   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4729   array size at least.  It's necessary to write '\x00'==0 to get something
4730   that's true only with -std.  */
4731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4732
4733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4734   inside strings and character constants.  */
4735#define FOO(x) 'x'
4736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4737
4738int test (int i, double x);
4739struct s1 {int (*f) (int a);};
4740struct s2 {int (*f) (double a);};
4741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4742int argc;
4743char **argv;
4744int
4745main ()
4746{
4747return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4748  ;
4749  return 0;
4750}
4751_ACEOF
4752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4753	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4754do
4755  CC="$ac_save_CC $ac_arg"
4756  if ac_fn_c_try_compile "$LINENO"; then :
4757  ac_cv_prog_cc_c89=$ac_arg
4758fi
4759rm -f core conftest.err conftest.$ac_objext
4760  test "x$ac_cv_prog_cc_c89" != "xno" && break
4761done
4762rm -f conftest.$ac_ext
4763CC=$ac_save_CC
4764
4765fi
4766# AC_CACHE_VAL
4767case "x$ac_cv_prog_cc_c89" in
4768  x)
4769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4770$as_echo "none needed" >&6; } ;;
4771  xno)
4772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4773$as_echo "unsupported" >&6; } ;;
4774  *)
4775    CC="$CC $ac_cv_prog_cc_c89"
4776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4778esac
4779if test "x$ac_cv_prog_cc_c89" != xno; then :
4780
4781fi
4782
4783ac_ext=c
4784ac_cpp='$CPP $CPPFLAGS'
4785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789ac_ext=c
4790ac_cpp='$CPP $CPPFLAGS'
4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4795$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4796if ${am_cv_prog_cc_c_o+:} false; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801
4802int
4803main ()
4804{
4805
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810  # Make sure it works both with $CC and with simple cc.
4811  # Following AC_PROG_CC_C_O, we do the test twice because some
4812  # compilers refuse to overwrite an existing .o file with -o,
4813  # though they will create one.
4814  am_cv_prog_cc_c_o=yes
4815  for am_i in 1 2; do
4816    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4817   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } \
4821         && test -f conftest2.$ac_objext; then
4822      : OK
4823    else
4824      am_cv_prog_cc_c_o=no
4825      break
4826    fi
4827  done
4828  rm -f core conftest*
4829  unset am_i
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4832$as_echo "$am_cv_prog_cc_c_o" >&6; }
4833if test "$am_cv_prog_cc_c_o" != yes; then
4834   # Losing compiler, so override with the script.
4835   # FIXME: It is wrong to rewrite CC.
4836   # But if we don't then we get into trouble of one sort or another.
4837   # A longer-term fix would be to have automake use am__CC in this case,
4838   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4839   CC="$am_aux_dir/compile $CC"
4840fi
4841ac_ext=c
4842ac_cpp='$CPP $CPPFLAGS'
4843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847
4848depcc="$CC"   am_compiler_list=
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4851$as_echo_n "checking dependency style of $depcc... " >&6; }
4852if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4856  # We make a subdir and do the tests there.  Otherwise we can end up
4857  # making bogus files that we don't know about and never remove.  For
4858  # instance it was reported that on HP-UX the gcc test will end up
4859  # making a dummy file named 'D' -- because '-MD' means "put the output
4860  # in D".
4861  rm -rf conftest.dir
4862  mkdir conftest.dir
4863  # Copy depcomp to subdir because otherwise we won't find it if we're
4864  # using a relative directory.
4865  cp "$am_depcomp" conftest.dir
4866  cd conftest.dir
4867  # We will build objects and dependencies in a subdirectory because
4868  # it helps to detect inapplicable dependency modes.  For instance
4869  # both Tru64's cc and ICC support -MD to output dependencies as a
4870  # side effect of compilation, but ICC will put the dependencies in
4871  # the current directory while Tru64 will put them in the object
4872  # directory.
4873  mkdir sub
4874
4875  am_cv_CC_dependencies_compiler_type=none
4876  if test "$am_compiler_list" = ""; then
4877     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4878  fi
4879  am__universal=false
4880  case " $depcc " in #(
4881     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4882     esac
4883
4884  for depmode in $am_compiler_list; do
4885    # Setup a source with many dependencies, because some compilers
4886    # like to wrap large dependency lists on column 80 (with \), and
4887    # we should not choose a depcomp mode which is confused by this.
4888    #
4889    # We need to recreate these files for each test, as the compiler may
4890    # overwrite some of them when testing with obscure command lines.
4891    # This happens at least with the AIX C compiler.
4892    : > sub/conftest.c
4893    for i in 1 2 3 4 5 6; do
4894      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4896      # Solaris 10 /bin/sh.
4897      echo '/* dummy */' > sub/conftst$i.h
4898    done
4899    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4902    # mode.  It turns out that the SunPro C++ compiler does not properly
4903    # handle '-M -o', and we need to detect this.  Also, some Intel
4904    # versions had trouble with output in subdirs.
4905    am__obj=sub/conftest.${OBJEXT-o}
4906    am__minus_obj="-o $am__obj"
4907    case $depmode in
4908    gcc)
4909      # This depmode causes a compiler race in universal mode.
4910      test "$am__universal" = false || continue
4911      ;;
4912    nosideeffect)
4913      # After this tag, mechanisms are not by side-effect, so they'll
4914      # only be used when explicitly requested.
4915      if test "x$enable_dependency_tracking" = xyes; then
4916	continue
4917      else
4918	break
4919      fi
4920      ;;
4921    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4922      # This compiler won't grok '-c -o', but also, the minuso test has
4923      # not run yet.  These depmodes are late enough in the game, and
4924      # so weak that their functioning should not be impacted.
4925      am__obj=conftest.${OBJEXT-o}
4926      am__minus_obj=
4927      ;;
4928    none) break ;;
4929    esac
4930    if depmode=$depmode \
4931       source=sub/conftest.c object=$am__obj \
4932       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934         >/dev/null 2>conftest.err &&
4935       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939      # icc doesn't choke on unknown options, it will just issue warnings
4940      # or remarks (even with -Werror).  So we grep stderr for any message
4941      # that says an option was ignored or not supported.
4942      # When given -MP, icc 7.0 and 7.1 complain thusly:
4943      #   icc: Command line warning: ignoring option '-M'; no argument required
4944      # The diagnosis changed in icc 8.0:
4945      #   icc: Command line remark: option '-MP' not supported
4946      if (grep 'ignoring option' conftest.err ||
4947          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948        am_cv_CC_dependencies_compiler_type=$depmode
4949        break
4950      fi
4951    fi
4952  done
4953
4954  cd ..
4955  rm -rf conftest.dir
4956else
4957  am_cv_CC_dependencies_compiler_type=none
4958fi
4959
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4962$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4963CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4964
4965 if
4966  test "x$enable_dependency_tracking" != xno \
4967  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4968  am__fastdepCC_TRUE=
4969  am__fastdepCC_FALSE='#'
4970else
4971  am__fastdepCC_TRUE='#'
4972  am__fastdepCC_FALSE=
4973fi
4974
4975
4976
4977ac_ext=c
4978ac_cpp='$CPP $CPPFLAGS'
4979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4983$as_echo_n "checking how to run the C preprocessor... " >&6; }
4984# On Suns, sometimes $CPP names a directory.
4985if test -n "$CPP" && test -d "$CPP"; then
4986  CPP=
4987fi
4988if test -z "$CPP"; then
4989  if ${ac_cv_prog_CPP+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992      # Double quotes because CPP needs to be expanded
4993    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4994    do
4995      ac_preproc_ok=false
4996for ac_c_preproc_warn_flag in '' yes
4997do
4998  # Use a header file that comes with gcc, so configuring glibc
4999  # with a fresh cross-compiler works.
5000  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001  # <limits.h> exists even on freestanding compilers.
5002  # On the NeXT, cc -E runs the code through the compiler's parser,
5003  # not just through cpp. "Syntax error" is here to catch this case.
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006#ifdef __STDC__
5007# include <limits.h>
5008#else
5009# include <assert.h>
5010#endif
5011		     Syntax error
5012_ACEOF
5013if ac_fn_c_try_cpp "$LINENO"; then :
5014
5015else
5016  # Broken: fails on valid input.
5017continue
5018fi
5019rm -f conftest.err conftest.i conftest.$ac_ext
5020
5021  # OK, works on sane cases.  Now check whether nonexistent headers
5022  # can be detected and how.
5023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025#include <ac_nonexistent.h>
5026_ACEOF
5027if ac_fn_c_try_cpp "$LINENO"; then :
5028  # Broken: success on invalid input.
5029continue
5030else
5031  # Passes both tests.
5032ac_preproc_ok=:
5033break
5034fi
5035rm -f conftest.err conftest.i conftest.$ac_ext
5036
5037done
5038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039rm -f conftest.i conftest.err conftest.$ac_ext
5040if $ac_preproc_ok; then :
5041  break
5042fi
5043
5044    done
5045    ac_cv_prog_CPP=$CPP
5046
5047fi
5048  CPP=$ac_cv_prog_CPP
5049else
5050  ac_cv_prog_CPP=$CPP
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5053$as_echo "$CPP" >&6; }
5054ac_preproc_ok=false
5055for ac_c_preproc_warn_flag in '' yes
5056do
5057  # Use a header file that comes with gcc, so configuring glibc
5058  # with a fresh cross-compiler works.
5059  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060  # <limits.h> exists even on freestanding compilers.
5061  # On the NeXT, cc -E runs the code through the compiler's parser,
5062  # not just through cpp. "Syntax error" is here to catch this case.
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065#ifdef __STDC__
5066# include <limits.h>
5067#else
5068# include <assert.h>
5069#endif
5070		     Syntax error
5071_ACEOF
5072if ac_fn_c_try_cpp "$LINENO"; then :
5073
5074else
5075  # Broken: fails on valid input.
5076continue
5077fi
5078rm -f conftest.err conftest.i conftest.$ac_ext
5079
5080  # OK, works on sane cases.  Now check whether nonexistent headers
5081  # can be detected and how.
5082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084#include <ac_nonexistent.h>
5085_ACEOF
5086if ac_fn_c_try_cpp "$LINENO"; then :
5087  # Broken: success on invalid input.
5088continue
5089else
5090  # Passes both tests.
5091ac_preproc_ok=:
5092break
5093fi
5094rm -f conftest.err conftest.i conftest.$ac_ext
5095
5096done
5097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098rm -f conftest.i conftest.err conftest.$ac_ext
5099if $ac_preproc_ok; then :
5100
5101else
5102  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5105See \`config.log' for more details" "$LINENO" 5; }
5106fi
5107
5108ac_ext=c
5109ac_cpp='$CPP $CPPFLAGS'
5110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
5114
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5116$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5117if ${ac_cv_path_GREP+:} false; then :
5118  $as_echo_n "(cached) " >&6
5119else
5120  if test -z "$GREP"; then
5121  ac_path_GREP_found=false
5122  # Loop through the user's path and test for each of PROGNAME-LIST
5123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5125do
5126  IFS=$as_save_IFS
5127  test -z "$as_dir" && as_dir=.
5128    for ac_prog in grep ggrep; do
5129    for ac_exec_ext in '' $ac_executable_extensions; do
5130      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5131      as_fn_executable_p "$ac_path_GREP" || continue
5132# Check for GNU ac_path_GREP and select it if it is found.
5133  # Check for GNU $ac_path_GREP
5134case `"$ac_path_GREP" --version 2>&1` in
5135*GNU*)
5136  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5137*)
5138  ac_count=0
5139  $as_echo_n 0123456789 >"conftest.in"
5140  while :
5141  do
5142    cat "conftest.in" "conftest.in" >"conftest.tmp"
5143    mv "conftest.tmp" "conftest.in"
5144    cp "conftest.in" "conftest.nl"
5145    $as_echo 'GREP' >> "conftest.nl"
5146    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148    as_fn_arith $ac_count + 1 && ac_count=$as_val
5149    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5150      # Best one so far, save it but keep looking for a better one
5151      ac_cv_path_GREP="$ac_path_GREP"
5152      ac_path_GREP_max=$ac_count
5153    fi
5154    # 10*(2^10) chars as input seems more than enough
5155    test $ac_count -gt 10 && break
5156  done
5157  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5158esac
5159
5160      $ac_path_GREP_found && break 3
5161    done
5162  done
5163  done
5164IFS=$as_save_IFS
5165  if test -z "$ac_cv_path_GREP"; then
5166    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5167  fi
5168else
5169  ac_cv_path_GREP=$GREP
5170fi
5171
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5174$as_echo "$ac_cv_path_GREP" >&6; }
5175 GREP="$ac_cv_path_GREP"
5176
5177
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179$as_echo_n "checking for egrep... " >&6; }
5180if ${ac_cv_path_EGREP+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5184   then ac_cv_path_EGREP="$GREP -E"
5185   else
5186     if test -z "$EGREP"; then
5187  ac_path_EGREP_found=false
5188  # Loop through the user's path and test for each of PROGNAME-LIST
5189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194    for ac_prog in egrep; do
5195    for ac_exec_ext in '' $ac_executable_extensions; do
5196      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5197      as_fn_executable_p "$ac_path_EGREP" || continue
5198# Check for GNU ac_path_EGREP and select it if it is found.
5199  # Check for GNU $ac_path_EGREP
5200case `"$ac_path_EGREP" --version 2>&1` in
5201*GNU*)
5202  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5203*)
5204  ac_count=0
5205  $as_echo_n 0123456789 >"conftest.in"
5206  while :
5207  do
5208    cat "conftest.in" "conftest.in" >"conftest.tmp"
5209    mv "conftest.tmp" "conftest.in"
5210    cp "conftest.in" "conftest.nl"
5211    $as_echo 'EGREP' >> "conftest.nl"
5212    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214    as_fn_arith $ac_count + 1 && ac_count=$as_val
5215    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216      # Best one so far, save it but keep looking for a better one
5217      ac_cv_path_EGREP="$ac_path_EGREP"
5218      ac_path_EGREP_max=$ac_count
5219    fi
5220    # 10*(2^10) chars as input seems more than enough
5221    test $ac_count -gt 10 && break
5222  done
5223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224esac
5225
5226      $ac_path_EGREP_found && break 3
5227    done
5228  done
5229  done
5230IFS=$as_save_IFS
5231  if test -z "$ac_cv_path_EGREP"; then
5232    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233  fi
5234else
5235  ac_cv_path_EGREP=$EGREP
5236fi
5237
5238   fi
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241$as_echo "$ac_cv_path_EGREP" >&6; }
5242 EGREP="$ac_cv_path_EGREP"
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5246$as_echo_n "checking for ANSI C header files... " >&6; }
5247if ${ac_cv_header_stdc+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252#include <stdlib.h>
5253#include <stdarg.h>
5254#include <string.h>
5255#include <float.h>
5256
5257int
5258main ()
5259{
5260
5261  ;
5262  return 0;
5263}
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"; then :
5266  ac_cv_header_stdc=yes
5267else
5268  ac_cv_header_stdc=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271
5272if test $ac_cv_header_stdc = yes; then
5273  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275/* end confdefs.h.  */
5276#include <string.h>
5277
5278_ACEOF
5279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280  $EGREP "memchr" >/dev/null 2>&1; then :
5281
5282else
5283  ac_cv_header_stdc=no
5284fi
5285rm -f conftest*
5286
5287fi
5288
5289if test $ac_cv_header_stdc = yes; then
5290  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293#include <stdlib.h>
5294
5295_ACEOF
5296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297  $EGREP "free" >/dev/null 2>&1; then :
5298
5299else
5300  ac_cv_header_stdc=no
5301fi
5302rm -f conftest*
5303
5304fi
5305
5306if test $ac_cv_header_stdc = yes; then
5307  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308  if test "$cross_compiling" = yes; then :
5309  :
5310else
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313#include <ctype.h>
5314#include <stdlib.h>
5315#if ((' ' & 0x0FF) == 0x020)
5316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318#else
5319# define ISLOWER(c) \
5320		   (('a' <= (c) && (c) <= 'i') \
5321		     || ('j' <= (c) && (c) <= 'r') \
5322		     || ('s' <= (c) && (c) <= 'z'))
5323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5324#endif
5325
5326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5327int
5328main ()
5329{
5330  int i;
5331  for (i = 0; i < 256; i++)
5332    if (XOR (islower (i), ISLOWER (i))
5333	|| toupper (i) != TOUPPER (i))
5334      return 2;
5335  return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_run "$LINENO"; then :
5339
5340else
5341  ac_cv_header_stdc=no
5342fi
5343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5344  conftest.$ac_objext conftest.beam conftest.$ac_ext
5345fi
5346
5347fi
5348fi
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5350$as_echo "$ac_cv_header_stdc" >&6; }
5351if test $ac_cv_header_stdc = yes; then
5352
5353$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354
5355fi
5356
5357# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5359		  inttypes.h stdint.h unistd.h
5360do :
5361  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5363"
5364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5365  cat >>confdefs.h <<_ACEOF
5366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367_ACEOF
5368
5369fi
5370
5371done
5372
5373
5374
5375  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5376if test "x$ac_cv_header_minix_config_h" = xyes; then :
5377  MINIX=yes
5378else
5379  MINIX=
5380fi
5381
5382
5383  if test "$MINIX" = yes; then
5384
5385$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386
5387
5388$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389
5390
5391$as_echo "#define _MINIX 1" >>confdefs.h
5392
5393  fi
5394
5395
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5397$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5398if ${ac_cv_safe_to_define___extensions__+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h.  */
5403
5404#         define __EXTENSIONS__ 1
5405          $ac_includes_default
5406int
5407main ()
5408{
5409
5410  ;
5411  return 0;
5412}
5413_ACEOF
5414if ac_fn_c_try_compile "$LINENO"; then :
5415  ac_cv_safe_to_define___extensions__=yes
5416else
5417  ac_cv_safe_to_define___extensions__=no
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420fi
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5422$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5423  test $ac_cv_safe_to_define___extensions__ = yes &&
5424    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5425
5426  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5427
5428  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5429
5430  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5431
5432  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5433
5434
5435
5436# Checks for programs.
5437for ac_prog in flex lex
5438do
5439  # Extract the first word of "$ac_prog", so it can be a program name with args.
5440set dummy $ac_prog; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if ${ac_cv_prog_LEX+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  if test -n "$LEX"; then
5447  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456    ac_cv_prog_LEX="$ac_prog"
5457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461  done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466LEX=$ac_cv_prog_LEX
5467if test -n "$LEX"; then
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5469$as_echo "$LEX" >&6; }
5470else
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476  test -n "$LEX" && break
5477done
5478test -n "$LEX" || LEX=":"
5479
5480if test "x$LEX" != "x:"; then
5481  cat >conftest.l <<_ACEOF
5482%%
5483a { ECHO; }
5484b { REJECT; }
5485c { yymore (); }
5486d { yyless (1); }
5487e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5488    yyless ((input () != 0)); }
5489f { unput (yytext[0]); }
5490. { BEGIN INITIAL; }
5491%%
5492#ifdef YYTEXT_POINTER
5493extern char *yytext;
5494#endif
5495int
5496main (void)
5497{
5498  return ! yylex () + ! yywrap ();
5499}
5500_ACEOF
5501{ { ac_try="$LEX conftest.l"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5507$as_echo "$ac_try_echo"; } >&5
5508  (eval "$LEX conftest.l") 2>&5
5509  ac_status=$?
5510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5511  test $ac_status = 0; }
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5513$as_echo_n "checking lex output file root... " >&6; }
5514if ${ac_cv_prog_lex_root+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517
5518if test -f lex.yy.c; then
5519  ac_cv_prog_lex_root=lex.yy
5520elif test -f lexyy.c; then
5521  ac_cv_prog_lex_root=lexyy
5522else
5523  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5524fi
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5527$as_echo "$ac_cv_prog_lex_root" >&6; }
5528LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5529
5530if test -z "${LEXLIB+set}"; then
5531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5532$as_echo_n "checking lex library... " >&6; }
5533if ${ac_cv_lib_lex+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536
5537    ac_save_LIBS=$LIBS
5538    ac_cv_lib_lex='none needed'
5539    for ac_lib in '' -lfl -ll; do
5540      LIBS="$ac_lib $ac_save_LIBS"
5541      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542/* end confdefs.h.  */
5543`cat $LEX_OUTPUT_ROOT.c`
5544_ACEOF
5545if ac_fn_c_try_link "$LINENO"; then :
5546  ac_cv_lib_lex=$ac_lib
5547fi
5548rm -f core conftest.err conftest.$ac_objext \
5549    conftest$ac_exeext conftest.$ac_ext
5550      test "$ac_cv_lib_lex" != 'none needed' && break
5551    done
5552    LIBS=$ac_save_LIBS
5553
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5556$as_echo "$ac_cv_lib_lex" >&6; }
5557  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5558fi
5559
5560
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5562$as_echo_n "checking whether yytext is a pointer... " >&6; }
5563if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  # POSIX says lex can declare yytext either as a pointer or an array; the
5567# default is implementation-dependent.  Figure out which it is, since
5568# not all implementations provide the %pointer and %array declarations.
5569ac_cv_prog_lex_yytext_pointer=no
5570ac_save_LIBS=$LIBS
5571LIBS="$LEXLIB $ac_save_LIBS"
5572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574
5575  #define YYTEXT_POINTER 1
5576`cat $LEX_OUTPUT_ROOT.c`
5577_ACEOF
5578if ac_fn_c_try_link "$LINENO"; then :
5579  ac_cv_prog_lex_yytext_pointer=yes
5580fi
5581rm -f core conftest.err conftest.$ac_objext \
5582    conftest$ac_exeext conftest.$ac_ext
5583LIBS=$ac_save_LIBS
5584
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5587$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5588if test $ac_cv_prog_lex_yytext_pointer = yes; then
5589
5590$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5591
5592fi
5593rm -f conftest.l $LEX_OUTPUT_ROOT.c
5594
5595fi
5596for ac_prog in 'bison -y' byacc
5597do
5598  # Extract the first word of "$ac_prog", so it can be a program name with args.
5599set dummy $ac_prog; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if ${ac_cv_prog_YACC+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  if test -n "$YACC"; then
5606  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613    for ac_exec_ext in '' $ac_executable_extensions; do
5614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615    ac_cv_prog_YACC="$ac_prog"
5616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617    break 2
5618  fi
5619done
5620  done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625YACC=$ac_cv_prog_YACC
5626if test -n "$YACC"; then
5627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5628$as_echo "$YACC" >&6; }
5629else
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635  test -n "$YACC" && break
5636done
5637test -n "$YACC" || YACC="yacc"
5638
5639ac_ext=c
5640ac_cpp='$CPP $CPPFLAGS'
5641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644if test -n "$ac_tool_prefix"; then
5645  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}gcc; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_CC+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$CC"; then
5653  ac_cv_prog_CC="$CC" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672CC=$ac_cv_prog_CC
5673if test -n "$CC"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5675$as_echo "$CC" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$ac_cv_prog_CC"; then
5684  ac_ct_CC=$CC
5685  # Extract the first word of "gcc", so it can be a program name with args.
5686set dummy gcc; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_CC+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_CC"; then
5693  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_ac_ct_CC="gcc"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_CC=$ac_cv_prog_ac_ct_CC
5713if test -n "$ac_ct_CC"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5715$as_echo "$ac_ct_CC" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721  if test "x$ac_ct_CC" = x; then
5722    CC=""
5723  else
5724    case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730    CC=$ac_ct_CC
5731  fi
5732else
5733  CC="$ac_cv_prog_CC"
5734fi
5735
5736if test -z "$CC"; then
5737          if test -n "$ac_tool_prefix"; then
5738    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5739set dummy ${ac_tool_prefix}cc; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_prog_CC+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  if test -n "$CC"; then
5746  ac_cv_prog_CC="$CC" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751  IFS=$as_save_IFS
5752  test -z "$as_dir" && as_dir=.
5753    for ac_exec_ext in '' $ac_executable_extensions; do
5754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755    ac_cv_prog_CC="${ac_tool_prefix}cc"
5756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757    break 2
5758  fi
5759done
5760  done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765CC=$ac_cv_prog_CC
5766if test -n "$CC"; then
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5768$as_echo "$CC" >&6; }
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774
5775  fi
5776fi
5777if test -z "$CC"; then
5778  # Extract the first word of "cc", so it can be a program name with args.
5779set dummy cc; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
5782if ${ac_cv_prog_CC+:} false; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785  if test -n "$CC"; then
5786  ac_cv_prog_CC="$CC" # Let the user override the test.
5787else
5788  ac_prog_rejected=no
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792  IFS=$as_save_IFS
5793  test -z "$as_dir" && as_dir=.
5794    for ac_exec_ext in '' $ac_executable_extensions; do
5795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5797       ac_prog_rejected=yes
5798       continue
5799     fi
5800    ac_cv_prog_CC="cc"
5801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802    break 2
5803  fi
5804done
5805  done
5806IFS=$as_save_IFS
5807
5808if test $ac_prog_rejected = yes; then
5809  # We found a bogon in the path, so make sure we never use it.
5810  set dummy $ac_cv_prog_CC
5811  shift
5812  if test $# != 0; then
5813    # We chose a different compiler from the bogus one.
5814    # However, it has the same basename, so the bogon will be chosen
5815    # first if we set CC to just the basename; use the full file name.
5816    shift
5817    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5818  fi
5819fi
5820fi
5821fi
5822CC=$ac_cv_prog_CC
5823if test -n "$CC"; then
5824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5825$as_echo "$CC" >&6; }
5826else
5827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831
5832fi
5833if test -z "$CC"; then
5834  if test -n "$ac_tool_prefix"; then
5835  for ac_prog in cl.exe
5836  do
5837    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_CC+:} false; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if test -n "$CC"; then
5845  ac_cv_prog_CC="$CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  test -z "$as_dir" && as_dir=.
5852    for ac_exec_ext in '' $ac_executable_extensions; do
5853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856    break 2
5857  fi
5858done
5859  done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864CC=$ac_cv_prog_CC
5865if test -n "$CC"; then
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5867$as_echo "$CC" >&6; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874    test -n "$CC" && break
5875  done
5876fi
5877if test -z "$CC"; then
5878  ac_ct_CC=$CC
5879  for ac_prog in cl.exe
5880do
5881  # Extract the first word of "$ac_prog", so it can be a program name with args.
5882set dummy $ac_prog; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_prog_ac_ct_CC+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  if test -n "$ac_ct_CC"; then
5889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_ac_ct_CC="$ac_prog"
5899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908ac_ct_CC=$ac_cv_prog_ac_ct_CC
5909if test -n "$ac_ct_CC"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5911$as_echo "$ac_ct_CC" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914$as_echo "no" >&6; }
5915fi
5916
5917
5918  test -n "$ac_ct_CC" && break
5919done
5920
5921  if test "x$ac_ct_CC" = x; then
5922    CC=""
5923  else
5924    case $cross_compiling:$ac_tool_warned in
5925yes:)
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928ac_tool_warned=yes ;;
5929esac
5930    CC=$ac_ct_CC
5931  fi
5932fi
5933
5934fi
5935
5936
5937test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5939as_fn_error $? "no acceptable C compiler found in \$PATH
5940See \`config.log' for more details" "$LINENO" 5; }
5941
5942# Provide some information about the compiler.
5943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5944set X $ac_compile
5945ac_compiler=$2
5946for ac_option in --version -v -V -qversion; do
5947  { { ac_try="$ac_compiler $ac_option >&5"
5948case "(($ac_try" in
5949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950  *) ac_try_echo=$ac_try;;
5951esac
5952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5953$as_echo "$ac_try_echo"; } >&5
5954  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5955  ac_status=$?
5956  if test -s conftest.err; then
5957    sed '10a\
5958... rest of stderr output deleted ...
5959         10q' conftest.err >conftest.er1
5960    cat conftest.er1 >&5
5961  fi
5962  rm -f conftest.er1 conftest.err
5963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964  test $ac_status = 0; }
5965done
5966
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5969if ${ac_cv_c_compiler_gnu+:} false; then :
5970  $as_echo_n "(cached) " >&6
5971else
5972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h.  */
5974
5975int
5976main ()
5977{
5978#ifndef __GNUC__
5979       choke me
5980#endif
5981
5982  ;
5983  return 0;
5984}
5985_ACEOF
5986if ac_fn_c_try_compile "$LINENO"; then :
5987  ac_compiler_gnu=yes
5988else
5989  ac_compiler_gnu=no
5990fi
5991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992ac_cv_c_compiler_gnu=$ac_compiler_gnu
5993
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5996$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5997if test $ac_compiler_gnu = yes; then
5998  GCC=yes
5999else
6000  GCC=
6001fi
6002ac_test_CFLAGS=${CFLAGS+set}
6003ac_save_CFLAGS=$CFLAGS
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6005$as_echo_n "checking whether $CC accepts -g... " >&6; }
6006if ${ac_cv_prog_cc_g+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  ac_save_c_werror_flag=$ac_c_werror_flag
6010   ac_c_werror_flag=yes
6011   ac_cv_prog_cc_g=no
6012   CFLAGS="-g"
6013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015
6016int
6017main ()
6018{
6019
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"; then :
6025  ac_cv_prog_cc_g=yes
6026else
6027  CFLAGS=""
6028      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030
6031int
6032main ()
6033{
6034
6035  ;
6036  return 0;
6037}
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"; then :
6040
6041else
6042  ac_c_werror_flag=$ac_save_c_werror_flag
6043	 CFLAGS="-g"
6044	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046
6047int
6048main ()
6049{
6050
6051  ;
6052  return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_compile "$LINENO"; then :
6056  ac_cv_prog_cc_g=yes
6057fi
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061fi
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063   ac_c_werror_flag=$ac_save_c_werror_flag
6064fi
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6066$as_echo "$ac_cv_prog_cc_g" >&6; }
6067if test "$ac_test_CFLAGS" = set; then
6068  CFLAGS=$ac_save_CFLAGS
6069elif test $ac_cv_prog_cc_g = yes; then
6070  if test "$GCC" = yes; then
6071    CFLAGS="-g -O2"
6072  else
6073    CFLAGS="-g"
6074  fi
6075else
6076  if test "$GCC" = yes; then
6077    CFLAGS="-O2"
6078  else
6079    CFLAGS=
6080  fi
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6084if ${ac_cv_prog_cc_c89+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  ac_cv_prog_cc_c89=no
6088ac_save_CC=$CC
6089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091#include <stdarg.h>
6092#include <stdio.h>
6093struct stat;
6094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6095struct buf { int x; };
6096FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097static char *e (p, i)
6098     char **p;
6099     int i;
6100{
6101  return p[i];
6102}
6103static char *f (char * (*g) (char **, int), char **p, ...)
6104{
6105  char *s;
6106  va_list v;
6107  va_start (v,p);
6108  s = g (p, va_arg (v,int));
6109  va_end (v);
6110  return s;
6111}
6112
6113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6114   function prototypes and stuff, but not '\xHH' hex character constants.
6115   These don't provoke an error unfortunately, instead are silently treated
6116   as 'x'.  The following induces an error, until -std is added to get
6117   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6118   array size at least.  It's necessary to write '\x00'==0 to get something
6119   that's true only with -std.  */
6120int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6121
6122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123   inside strings and character constants.  */
6124#define FOO(x) 'x'
6125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6126
6127int test (int i, double x);
6128struct s1 {int (*f) (int a);};
6129struct s2 {int (*f) (double a);};
6130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131int argc;
6132char **argv;
6133int
6134main ()
6135{
6136return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6143do
6144  CC="$ac_save_CC $ac_arg"
6145  if ac_fn_c_try_compile "$LINENO"; then :
6146  ac_cv_prog_cc_c89=$ac_arg
6147fi
6148rm -f core conftest.err conftest.$ac_objext
6149  test "x$ac_cv_prog_cc_c89" != "xno" && break
6150done
6151rm -f conftest.$ac_ext
6152CC=$ac_save_CC
6153
6154fi
6155# AC_CACHE_VAL
6156case "x$ac_cv_prog_cc_c89" in
6157  x)
6158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6159$as_echo "none needed" >&6; } ;;
6160  xno)
6161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6162$as_echo "unsupported" >&6; } ;;
6163  *)
6164    CC="$CC $ac_cv_prog_cc_c89"
6165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6166$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6167esac
6168if test "x$ac_cv_prog_cc_c89" != xno; then :
6169
6170fi
6171
6172ac_ext=c
6173ac_cpp='$CPP $CPPFLAGS'
6174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177
6178ac_ext=c
6179ac_cpp='$CPP $CPPFLAGS'
6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6184$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6185if ${am_cv_prog_cc_c_o+:} false; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h.  */
6190
6191int
6192main ()
6193{
6194
6195  ;
6196  return 0;
6197}
6198_ACEOF
6199  # Make sure it works both with $CC and with simple cc.
6200  # Following AC_PROG_CC_C_O, we do the test twice because some
6201  # compilers refuse to overwrite an existing .o file with -o,
6202  # though they will create one.
6203  am_cv_prog_cc_c_o=yes
6204  for am_i in 1 2; do
6205    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6206   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } \
6210         && test -f conftest2.$ac_objext; then
6211      : OK
6212    else
6213      am_cv_prog_cc_c_o=no
6214      break
6215    fi
6216  done
6217  rm -f core conftest*
6218  unset am_i
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6221$as_echo "$am_cv_prog_cc_c_o" >&6; }
6222if test "$am_cv_prog_cc_c_o" != yes; then
6223   # Losing compiler, so override with the script.
6224   # FIXME: It is wrong to rewrite CC.
6225   # But if we don't then we get into trouble of one sort or another.
6226   # A longer-term fix would be to have automake use am__CC in this case,
6227   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6228   CC="$am_aux_dir/compile $CC"
6229fi
6230ac_ext=c
6231ac_cpp='$CPP $CPPFLAGS'
6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236
6237depcc="$CC"   am_compiler_list=
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6240$as_echo_n "checking dependency style of $depcc... " >&6; }
6241if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6245  # We make a subdir and do the tests there.  Otherwise we can end up
6246  # making bogus files that we don't know about and never remove.  For
6247  # instance it was reported that on HP-UX the gcc test will end up
6248  # making a dummy file named 'D' -- because '-MD' means "put the output
6249  # in D".
6250  rm -rf conftest.dir
6251  mkdir conftest.dir
6252  # Copy depcomp to subdir because otherwise we won't find it if we're
6253  # using a relative directory.
6254  cp "$am_depcomp" conftest.dir
6255  cd conftest.dir
6256  # We will build objects and dependencies in a subdirectory because
6257  # it helps to detect inapplicable dependency modes.  For instance
6258  # both Tru64's cc and ICC support -MD to output dependencies as a
6259  # side effect of compilation, but ICC will put the dependencies in
6260  # the current directory while Tru64 will put them in the object
6261  # directory.
6262  mkdir sub
6263
6264  am_cv_CC_dependencies_compiler_type=none
6265  if test "$am_compiler_list" = ""; then
6266     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6267  fi
6268  am__universal=false
6269  case " $depcc " in #(
6270     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6271     esac
6272
6273  for depmode in $am_compiler_list; do
6274    # Setup a source with many dependencies, because some compilers
6275    # like to wrap large dependency lists on column 80 (with \), and
6276    # we should not choose a depcomp mode which is confused by this.
6277    #
6278    # We need to recreate these files for each test, as the compiler may
6279    # overwrite some of them when testing with obscure command lines.
6280    # This happens at least with the AIX C compiler.
6281    : > sub/conftest.c
6282    for i in 1 2 3 4 5 6; do
6283      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6284      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6285      # Solaris 10 /bin/sh.
6286      echo '/* dummy */' > sub/conftst$i.h
6287    done
6288    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6289
6290    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6291    # mode.  It turns out that the SunPro C++ compiler does not properly
6292    # handle '-M -o', and we need to detect this.  Also, some Intel
6293    # versions had trouble with output in subdirs.
6294    am__obj=sub/conftest.${OBJEXT-o}
6295    am__minus_obj="-o $am__obj"
6296    case $depmode in
6297    gcc)
6298      # This depmode causes a compiler race in universal mode.
6299      test "$am__universal" = false || continue
6300      ;;
6301    nosideeffect)
6302      # After this tag, mechanisms are not by side-effect, so they'll
6303      # only be used when explicitly requested.
6304      if test "x$enable_dependency_tracking" = xyes; then
6305	continue
6306      else
6307	break
6308      fi
6309      ;;
6310    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6311      # This compiler won't grok '-c -o', but also, the minuso test has
6312      # not run yet.  These depmodes are late enough in the game, and
6313      # so weak that their functioning should not be impacted.
6314      am__obj=conftest.${OBJEXT-o}
6315      am__minus_obj=
6316      ;;
6317    none) break ;;
6318    esac
6319    if depmode=$depmode \
6320       source=sub/conftest.c object=$am__obj \
6321       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6322       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6323         >/dev/null 2>conftest.err &&
6324       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6325       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6326       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6327       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6328      # icc doesn't choke on unknown options, it will just issue warnings
6329      # or remarks (even with -Werror).  So we grep stderr for any message
6330      # that says an option was ignored or not supported.
6331      # When given -MP, icc 7.0 and 7.1 complain thusly:
6332      #   icc: Command line warning: ignoring option '-M'; no argument required
6333      # The diagnosis changed in icc 8.0:
6334      #   icc: Command line remark: option '-MP' not supported
6335      if (grep 'ignoring option' conftest.err ||
6336          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6337        am_cv_CC_dependencies_compiler_type=$depmode
6338        break
6339      fi
6340    fi
6341  done
6342
6343  cd ..
6344  rm -rf conftest.dir
6345else
6346  am_cv_CC_dependencies_compiler_type=none
6347fi
6348
6349fi
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6351$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6352CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6353
6354 if
6355  test "x$enable_dependency_tracking" != xno \
6356  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6357  am__fastdepCC_TRUE=
6358  am__fastdepCC_FALSE='#'
6359else
6360  am__fastdepCC_TRUE='#'
6361  am__fastdepCC_FALSE=
6362fi
6363
6364
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6366$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6367if ${ac_cv_prog_cc_c99+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  ac_cv_prog_cc_c99=no
6371ac_save_CC=$CC
6372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374#include <stdarg.h>
6375#include <stdbool.h>
6376#include <stdlib.h>
6377#include <wchar.h>
6378#include <stdio.h>
6379
6380// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6381#define debug(...) fprintf (stderr, __VA_ARGS__)
6382#define showlist(...) puts (#__VA_ARGS__)
6383#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6384static void
6385test_varargs_macros (void)
6386{
6387  int x = 1234;
6388  int y = 5678;
6389  debug ("Flag");
6390  debug ("X = %d\n", x);
6391  showlist (The first, second, and third items.);
6392  report (x>y, "x is %d but y is %d", x, y);
6393}
6394
6395// Check long long types.
6396#define BIG64 18446744073709551615ull
6397#define BIG32 4294967295ul
6398#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6399#if !BIG_OK
6400  your preprocessor is broken;
6401#endif
6402#if BIG_OK
6403#else
6404  your preprocessor is broken;
6405#endif
6406static long long int bignum = -9223372036854775807LL;
6407static unsigned long long int ubignum = BIG64;
6408
6409struct incomplete_array
6410{
6411  int datasize;
6412  double data[];
6413};
6414
6415struct named_init {
6416  int number;
6417  const wchar_t *name;
6418  double average;
6419};
6420
6421typedef const char *ccp;
6422
6423static inline int
6424test_restrict (ccp restrict text)
6425{
6426  // See if C++-style comments work.
6427  // Iterate through items via the restricted pointer.
6428  // Also check for declarations in for loops.
6429  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6430    continue;
6431  return 0;
6432}
6433
6434// Check varargs and va_copy.
6435static void
6436test_varargs (const char *format, ...)
6437{
6438  va_list args;
6439  va_start (args, format);
6440  va_list args_copy;
6441  va_copy (args_copy, args);
6442
6443  const char *str;
6444  int number;
6445  float fnumber;
6446
6447  while (*format)
6448    {
6449      switch (*format++)
6450	{
6451	case 's': // string
6452	  str = va_arg (args_copy, const char *);
6453	  break;
6454	case 'd': // int
6455	  number = va_arg (args_copy, int);
6456	  break;
6457	case 'f': // float
6458	  fnumber = va_arg (args_copy, double);
6459	  break;
6460	default:
6461	  break;
6462	}
6463    }
6464  va_end (args_copy);
6465  va_end (args);
6466}
6467
6468int
6469main ()
6470{
6471
6472  // Check bool.
6473  _Bool success = false;
6474
6475  // Check restrict.
6476  if (test_restrict ("String literal") == 0)
6477    success = true;
6478  char *restrict newvar = "Another string";
6479
6480  // Check varargs.
6481  test_varargs ("s, d' f .", "string", 65, 34.234);
6482  test_varargs_macros ();
6483
6484  // Check flexible array members.
6485  struct incomplete_array *ia =
6486    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6487  ia->datasize = 10;
6488  for (int i = 0; i < ia->datasize; ++i)
6489    ia->data[i] = i * 1.234;
6490
6491  // Check named initializers.
6492  struct named_init ni = {
6493    .number = 34,
6494    .name = L"Test wide string",
6495    .average = 543.34343,
6496  };
6497
6498  ni.number = 58;
6499
6500  int dynamic_array[ni.number];
6501  dynamic_array[ni.number - 1] = 543;
6502
6503  // work around unused variable warnings
6504  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6505	  || dynamic_array[ni.number - 1] != 543);
6506
6507  ;
6508  return 0;
6509}
6510_ACEOF
6511for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6512do
6513  CC="$ac_save_CC $ac_arg"
6514  if ac_fn_c_try_compile "$LINENO"; then :
6515  ac_cv_prog_cc_c99=$ac_arg
6516fi
6517rm -f core conftest.err conftest.$ac_objext
6518  test "x$ac_cv_prog_cc_c99" != "xno" && break
6519done
6520rm -f conftest.$ac_ext
6521CC=$ac_save_CC
6522
6523fi
6524# AC_CACHE_VAL
6525case "x$ac_cv_prog_cc_c99" in
6526  x)
6527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6528$as_echo "none needed" >&6; } ;;
6529  xno)
6530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6531$as_echo "unsupported" >&6; } ;;
6532  *)
6533    CC="$CC $ac_cv_prog_cc_c99"
6534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6535$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6536esac
6537if test "x$ac_cv_prog_cc_c99" != xno; then :
6538
6539fi
6540
6541
6542# Check whether --enable-static was given.
6543if test "${enable_static+set}" = set; then :
6544  enableval=$enable_static; p=${PACKAGE-default}
6545    case $enableval in
6546    yes) enable_static=yes ;;
6547    no) enable_static=no ;;
6548    *)
6549     enable_static=no
6550      # Look at the argument we got.  We use all the common list separators.
6551      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6552      for pkg in $enableval; do
6553	IFS=$lt_save_ifs
6554	if test "X$pkg" = "X$p"; then
6555	  enable_static=yes
6556	fi
6557      done
6558      IFS=$lt_save_ifs
6559      ;;
6560    esac
6561else
6562  enable_static=no
6563fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573# AIXPORT START: enable dlopen
6574if test "$unamestr" = "AIX"; then
6575	enable_dlopen=yes
6576
6577
6578
6579fi
6580# AIXPORT end
6581case `pwd` in
6582  *\ * | *\	*)
6583    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6584$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6585esac
6586
6587
6588
6589macro_version='2.4.6'
6590macro_revision='2.4.6'
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604ltmain=$ac_aux_dir/ltmain.sh
6605
6606# Make sure we can run config.sub.
6607$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6608  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6611$as_echo_n "checking build system type... " >&6; }
6612if ${ac_cv_build+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  ac_build_alias=$build_alias
6616test "x$ac_build_alias" = x &&
6617  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6618test "x$ac_build_alias" = x &&
6619  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6620ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6621  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6622
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6625$as_echo "$ac_cv_build" >&6; }
6626case $ac_cv_build in
6627*-*-*) ;;
6628*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6629esac
6630build=$ac_cv_build
6631ac_save_IFS=$IFS; IFS='-'
6632set x $ac_cv_build
6633shift
6634build_cpu=$1
6635build_vendor=$2
6636shift; shift
6637# Remember, the first character of IFS is used to create $*,
6638# except with old shells:
6639build_os=$*
6640IFS=$ac_save_IFS
6641case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6642
6643
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6645$as_echo_n "checking host system type... " >&6; }
6646if ${ac_cv_host+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  if test "x$host_alias" = x; then
6650  ac_cv_host=$ac_cv_build
6651else
6652  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6653    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6654fi
6655
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6658$as_echo "$ac_cv_host" >&6; }
6659case $ac_cv_host in
6660*-*-*) ;;
6661*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6662esac
6663host=$ac_cv_host
6664ac_save_IFS=$IFS; IFS='-'
6665set x $ac_cv_host
6666shift
6667host_cpu=$1
6668host_vendor=$2
6669shift; shift
6670# Remember, the first character of IFS is used to create $*,
6671# except with old shells:
6672host_os=$*
6673IFS=$ac_save_IFS
6674case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6675
6676
6677# Backslashify metacharacters that are still active within
6678# double-quoted strings.
6679sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6680
6681# Same as above, but do not quote variable references.
6682double_quote_subst='s/\(["`\\]\)/\\\1/g'
6683
6684# Sed substitution to delay expansion of an escaped shell variable in a
6685# double_quote_subst'ed string.
6686delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6687
6688# Sed substitution to delay expansion of an escaped single quote.
6689delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6690
6691# Sed substitution to avoid accidental globbing in evaled expressions
6692no_glob_subst='s/\*/\\\*/g'
6693
6694ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6695ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6696ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6697
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6699$as_echo_n "checking how to print strings... " >&6; }
6700# Test print first, because it will be a builtin if present.
6701if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6702   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6703  ECHO='print -r --'
6704elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6705  ECHO='printf %s\n'
6706else
6707  # Use this function as a fallback that always works.
6708  func_fallback_echo ()
6709  {
6710    eval 'cat <<_LTECHO_EOF
6711$1
6712_LTECHO_EOF'
6713  }
6714  ECHO='func_fallback_echo'
6715fi
6716
6717# func_echo_all arg...
6718# Invoke $ECHO with all args, space-separated.
6719func_echo_all ()
6720{
6721    $ECHO ""
6722}
6723
6724case $ECHO in
6725  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6726$as_echo "printf" >&6; } ;;
6727  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6728$as_echo "print -r" >&6; } ;;
6729  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6730$as_echo "cat" >&6; } ;;
6731esac
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6747$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6748if ${ac_cv_path_SED+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6752     for ac_i in 1 2 3 4 5 6 7; do
6753       ac_script="$ac_script$as_nl$ac_script"
6754     done
6755     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6756     { ac_script=; unset ac_script;}
6757     if test -z "$SED"; then
6758  ac_path_SED_found=false
6759  # Loop through the user's path and test for each of PROGNAME-LIST
6760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765    for ac_prog in sed gsed; do
6766    for ac_exec_ext in '' $ac_executable_extensions; do
6767      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6768      as_fn_executable_p "$ac_path_SED" || continue
6769# Check for GNU ac_path_SED and select it if it is found.
6770  # Check for GNU $ac_path_SED
6771case `"$ac_path_SED" --version 2>&1` in
6772*GNU*)
6773  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6774*)
6775  ac_count=0
6776  $as_echo_n 0123456789 >"conftest.in"
6777  while :
6778  do
6779    cat "conftest.in" "conftest.in" >"conftest.tmp"
6780    mv "conftest.tmp" "conftest.in"
6781    cp "conftest.in" "conftest.nl"
6782    $as_echo '' >> "conftest.nl"
6783    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6784    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6785    as_fn_arith $ac_count + 1 && ac_count=$as_val
6786    if test $ac_count -gt ${ac_path_SED_max-0}; then
6787      # Best one so far, save it but keep looking for a better one
6788      ac_cv_path_SED="$ac_path_SED"
6789      ac_path_SED_max=$ac_count
6790    fi
6791    # 10*(2^10) chars as input seems more than enough
6792    test $ac_count -gt 10 && break
6793  done
6794  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6795esac
6796
6797      $ac_path_SED_found && break 3
6798    done
6799  done
6800  done
6801IFS=$as_save_IFS
6802  if test -z "$ac_cv_path_SED"; then
6803    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6804  fi
6805else
6806  ac_cv_path_SED=$SED
6807fi
6808
6809fi
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6811$as_echo "$ac_cv_path_SED" >&6; }
6812 SED="$ac_cv_path_SED"
6813  rm -f conftest.sed
6814
6815test -z "$SED" && SED=sed
6816Xsed="$SED -e 1s/^X//"
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6829$as_echo_n "checking for fgrep... " >&6; }
6830if ${ac_cv_path_FGREP+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6834   then ac_cv_path_FGREP="$GREP -F"
6835   else
6836     if test -z "$FGREP"; then
6837  ac_path_FGREP_found=false
6838  # Loop through the user's path and test for each of PROGNAME-LIST
6839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844    for ac_prog in fgrep; do
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6847      as_fn_executable_p "$ac_path_FGREP" || continue
6848# Check for GNU ac_path_FGREP and select it if it is found.
6849  # Check for GNU $ac_path_FGREP
6850case `"$ac_path_FGREP" --version 2>&1` in
6851*GNU*)
6852  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6853*)
6854  ac_count=0
6855  $as_echo_n 0123456789 >"conftest.in"
6856  while :
6857  do
6858    cat "conftest.in" "conftest.in" >"conftest.tmp"
6859    mv "conftest.tmp" "conftest.in"
6860    cp "conftest.in" "conftest.nl"
6861    $as_echo 'FGREP' >> "conftest.nl"
6862    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6863    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6864    as_fn_arith $ac_count + 1 && ac_count=$as_val
6865    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6866      # Best one so far, save it but keep looking for a better one
6867      ac_cv_path_FGREP="$ac_path_FGREP"
6868      ac_path_FGREP_max=$ac_count
6869    fi
6870    # 10*(2^10) chars as input seems more than enough
6871    test $ac_count -gt 10 && break
6872  done
6873  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6874esac
6875
6876      $ac_path_FGREP_found && break 3
6877    done
6878  done
6879  done
6880IFS=$as_save_IFS
6881  if test -z "$ac_cv_path_FGREP"; then
6882    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6883  fi
6884else
6885  ac_cv_path_FGREP=$FGREP
6886fi
6887
6888   fi
6889fi
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6891$as_echo "$ac_cv_path_FGREP" >&6; }
6892 FGREP="$ac_cv_path_FGREP"
6893
6894
6895test -z "$GREP" && GREP=grep
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915# Check whether --with-gnu-ld was given.
6916if test "${with_gnu_ld+set}" = set; then :
6917  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6918else
6919  with_gnu_ld=no
6920fi
6921
6922ac_prog=ld
6923if test yes = "$GCC"; then
6924  # Check if gcc -print-prog-name=ld gives a path.
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6926$as_echo_n "checking for ld used by $CC... " >&6; }
6927  case $host in
6928  *-*-mingw*)
6929    # gcc leaves a trailing carriage return, which upsets mingw
6930    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6931  *)
6932    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6933  esac
6934  case $ac_prog in
6935    # Accept absolute paths.
6936    [\\/]* | ?:[\\/]*)
6937      re_direlt='/[^/][^/]*/\.\./'
6938      # Canonicalize the pathname of ld
6939      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6940      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6941	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6942      done
6943      test -z "$LD" && LD=$ac_prog
6944      ;;
6945  "")
6946    # If it fails, then pretend we aren't using GCC.
6947    ac_prog=ld
6948    ;;
6949  *)
6950    # If it is relative, then search for the first ld in PATH.
6951    with_gnu_ld=unknown
6952    ;;
6953  esac
6954elif test yes = "$with_gnu_ld"; then
6955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6956$as_echo_n "checking for GNU ld... " >&6; }
6957else
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6959$as_echo_n "checking for non-GNU ld... " >&6; }
6960fi
6961if ${lt_cv_path_LD+:} false; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  if test -z "$LD"; then
6965  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6966  for ac_dir in $PATH; do
6967    IFS=$lt_save_ifs
6968    test -z "$ac_dir" && ac_dir=.
6969    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6970      lt_cv_path_LD=$ac_dir/$ac_prog
6971      # Check to see if the program is GNU ld.  I'd rather use --version,
6972      # but apparently some variants of GNU ld only accept -v.
6973      # Break only if it was the GNU/non-GNU ld that we prefer.
6974      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6975      *GNU* | *'with BFD'*)
6976	test no != "$with_gnu_ld" && break
6977	;;
6978      *)
6979	test yes != "$with_gnu_ld" && break
6980	;;
6981      esac
6982    fi
6983  done
6984  IFS=$lt_save_ifs
6985else
6986  lt_cv_path_LD=$LD # Let the user override the test with a path.
6987fi
6988fi
6989
6990LD=$lt_cv_path_LD
6991if test -n "$LD"; then
6992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6993$as_echo "$LD" >&6; }
6994else
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996$as_echo "no" >&6; }
6997fi
6998test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7001if ${lt_cv_prog_gnu_ld+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7005case `$LD -v 2>&1 </dev/null` in
7006*GNU* | *'with BFD'*)
7007  lt_cv_prog_gnu_ld=yes
7008  ;;
7009*)
7010  lt_cv_prog_gnu_ld=no
7011  ;;
7012esac
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7015$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7016with_gnu_ld=$lt_cv_prog_gnu_ld
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7027$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7028if ${lt_cv_path_NM+:} false; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  if test -n "$NM"; then
7032  # Let the user override the test.
7033  lt_cv_path_NM=$NM
7034else
7035  lt_nm_to_check=${ac_tool_prefix}nm
7036  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7037    lt_nm_to_check="$lt_nm_to_check nm"
7038  fi
7039  for lt_tmp_nm in $lt_nm_to_check; do
7040    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7041    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7042      IFS=$lt_save_ifs
7043      test -z "$ac_dir" && ac_dir=.
7044      tmp_nm=$ac_dir/$lt_tmp_nm
7045      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7046	# Check to see if the nm accepts a BSD-compat flag.
7047	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7048	#   nm: unknown option "B" ignored
7049	# Tru64's nm complains that /dev/null is an invalid object file
7050	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7051	case $build_os in
7052	mingw*) lt_bad_file=conftest.nm/nofile ;;
7053	*) lt_bad_file=/dev/null ;;
7054	esac
7055	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7056	*$lt_bad_file* | *'Invalid file or object type'*)
7057	  lt_cv_path_NM="$tmp_nm -B"
7058	  break 2
7059	  ;;
7060	*)
7061	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7062	  */dev/null*)
7063	    lt_cv_path_NM="$tmp_nm -p"
7064	    break 2
7065	    ;;
7066	  *)
7067	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7068	    continue # so that we can try to find one that supports BSD flags
7069	    ;;
7070	  esac
7071	  ;;
7072	esac
7073      fi
7074    done
7075    IFS=$lt_save_ifs
7076  done
7077  : ${lt_cv_path_NM=no}
7078fi
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7081$as_echo "$lt_cv_path_NM" >&6; }
7082if test no != "$lt_cv_path_NM"; then
7083  NM=$lt_cv_path_NM
7084else
7085  # Didn't find any BSD compatible name lister, look for dumpbin.
7086  if test -n "$DUMPBIN"; then :
7087    # Let the user override the test.
7088  else
7089    if test -n "$ac_tool_prefix"; then
7090  for ac_prog in dumpbin "link -dump"
7091  do
7092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if ${ac_cv_prog_DUMPBIN+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test -n "$DUMPBIN"; then
7100  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107    for ac_exec_ext in '' $ac_executable_extensions; do
7108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114  done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119DUMPBIN=$ac_cv_prog_DUMPBIN
7120if test -n "$DUMPBIN"; then
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7122$as_echo "$DUMPBIN" >&6; }
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128
7129    test -n "$DUMPBIN" && break
7130  done
7131fi
7132if test -z "$DUMPBIN"; then
7133  ac_ct_DUMPBIN=$DUMPBIN
7134  for ac_prog in dumpbin "link -dump"
7135do
7136  # Extract the first word of "$ac_prog", so it can be a program name with args.
7137set dummy $ac_prog; ac_word=$2
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
7140if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  if test -n "$ac_ct_DUMPBIN"; then
7144  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149  IFS=$as_save_IFS
7150  test -z "$as_dir" && as_dir=.
7151    for ac_exec_ext in '' $ac_executable_extensions; do
7152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155    break 2
7156  fi
7157done
7158  done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7164if test -n "$ac_ct_DUMPBIN"; then
7165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7166$as_echo "$ac_ct_DUMPBIN" >&6; }
7167else
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172
7173  test -n "$ac_ct_DUMPBIN" && break
7174done
7175
7176  if test "x$ac_ct_DUMPBIN" = x; then
7177    DUMPBIN=":"
7178  else
7179    case $cross_compiling:$ac_tool_warned in
7180yes:)
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183ac_tool_warned=yes ;;
7184esac
7185    DUMPBIN=$ac_ct_DUMPBIN
7186  fi
7187fi
7188
7189    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7190    *COFF*)
7191      DUMPBIN="$DUMPBIN -symbols -headers"
7192      ;;
7193    *)
7194      DUMPBIN=:
7195      ;;
7196    esac
7197  fi
7198
7199  if test : != "$DUMPBIN"; then
7200    NM=$DUMPBIN
7201  fi
7202fi
7203test -z "$NM" && NM=nm
7204
7205
7206
7207
7208
7209
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7211$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7212if ${lt_cv_nm_interface+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  lt_cv_nm_interface="BSD nm"
7216  echo "int some_variable = 0;" > conftest.$ac_ext
7217  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7218  (eval "$ac_compile" 2>conftest.err)
7219  cat conftest.err >&5
7220  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7221  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7222  cat conftest.err >&5
7223  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7224  cat conftest.out >&5
7225  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7226    lt_cv_nm_interface="MS dumpbin"
7227  fi
7228  rm -f conftest*
7229fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7231$as_echo "$lt_cv_nm_interface" >&6; }
7232
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7234$as_echo_n "checking whether ln -s works... " >&6; }
7235LN_S=$as_ln_s
7236if test "$LN_S" = "ln -s"; then
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7238$as_echo "yes" >&6; }
7239else
7240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7241$as_echo "no, using $LN_S" >&6; }
7242fi
7243
7244# find the maximum length of command line arguments
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7246$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7247if ${lt_cv_sys_max_cmd_len+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250    i=0
7251  teststring=ABCD
7252
7253  case $build_os in
7254  msdosdjgpp*)
7255    # On DJGPP, this test can blow up pretty badly due to problems in libc
7256    # (any single argument exceeding 2000 bytes causes a buffer overrun
7257    # during glob expansion).  Even if it were fixed, the result of this
7258    # check would be larger than it should be.
7259    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7260    ;;
7261
7262  gnu*)
7263    # Under GNU Hurd, this test is not required because there is
7264    # no limit to the length of command line arguments.
7265    # Libtool will interpret -1 as no limit whatsoever
7266    lt_cv_sys_max_cmd_len=-1;
7267    ;;
7268
7269  cygwin* | mingw* | cegcc*)
7270    # On Win9x/ME, this test blows up -- it succeeds, but takes
7271    # about 5 minutes as the teststring grows exponentially.
7272    # Worse, since 9x/ME are not pre-emptively multitasking,
7273    # you end up with a "frozen" computer, even though with patience
7274    # the test eventually succeeds (with a max line length of 256k).
7275    # Instead, let's just punt: use the minimum linelength reported by
7276    # all of the supported platforms: 8192 (on NT/2K/XP).
7277    lt_cv_sys_max_cmd_len=8192;
7278    ;;
7279
7280  mint*)
7281    # On MiNT this can take a long time and run out of memory.
7282    lt_cv_sys_max_cmd_len=8192;
7283    ;;
7284
7285  amigaos*)
7286    # On AmigaOS with pdksh, this test takes hours, literally.
7287    # So we just punt and use a minimum line length of 8192.
7288    lt_cv_sys_max_cmd_len=8192;
7289    ;;
7290
7291  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7292    # This has been around since 386BSD, at least.  Likely further.
7293    if test -x /sbin/sysctl; then
7294      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7295    elif test -x /usr/sbin/sysctl; then
7296      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7297    else
7298      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7299    fi
7300    # And add a safety zone
7301    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7302    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7303    ;;
7304
7305  interix*)
7306    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7307    lt_cv_sys_max_cmd_len=196608
7308    ;;
7309
7310  os2*)
7311    # The test takes a long time on OS/2.
7312    lt_cv_sys_max_cmd_len=8192
7313    ;;
7314
7315  osf*)
7316    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7317    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7318    # nice to cause kernel panics so lets avoid the loop below.
7319    # First set a reasonable default.
7320    lt_cv_sys_max_cmd_len=16384
7321    #
7322    if test -x /sbin/sysconfig; then
7323      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7324        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7325      esac
7326    fi
7327    ;;
7328  sco3.2v5*)
7329    lt_cv_sys_max_cmd_len=102400
7330    ;;
7331  sysv5* | sco5v6* | sysv4.2uw2*)
7332    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7333    if test -n "$kargmax"; then
7334      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7335    else
7336      lt_cv_sys_max_cmd_len=32768
7337    fi
7338    ;;
7339  *)
7340    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7341    if test -n "$lt_cv_sys_max_cmd_len" && \
7342       test undefined != "$lt_cv_sys_max_cmd_len"; then
7343      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7344      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7345    else
7346      # Make teststring a little bigger before we do anything with it.
7347      # a 1K string should be a reasonable start.
7348      for i in 1 2 3 4 5 6 7 8; do
7349        teststring=$teststring$teststring
7350      done
7351      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7352      # If test is not a shell built-in, we'll probably end up computing a
7353      # maximum length that is only half of the actual maximum length, but
7354      # we can't tell.
7355      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7356	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357	      test 17 != "$i" # 1/2 MB should be enough
7358      do
7359        i=`expr $i + 1`
7360        teststring=$teststring$teststring
7361      done
7362      # Only check the string length outside the loop.
7363      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7364      teststring=
7365      # Add a significant safety factor because C++ compilers can tack on
7366      # massive amounts of additional arguments before passing them to the
7367      # linker.  It appears as though 1/2 is a usable value.
7368      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7369    fi
7370    ;;
7371  esac
7372
7373fi
7374
7375if test -n "$lt_cv_sys_max_cmd_len"; then
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7377$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7378else
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7380$as_echo "none" >&6; }
7381fi
7382max_cmd_len=$lt_cv_sys_max_cmd_len
7383
7384
7385
7386
7387
7388
7389: ${CP="cp -f"}
7390: ${MV="mv -f"}
7391: ${RM="rm -f"}
7392
7393if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7394  lt_unset=unset
7395else
7396  lt_unset=false
7397fi
7398
7399
7400
7401
7402
7403# test EBCDIC or ASCII
7404case `echo X|tr X '\101'` in
7405 A) # ASCII based system
7406    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7407  lt_SP2NL='tr \040 \012'
7408  lt_NL2SP='tr \015\012 \040\040'
7409  ;;
7410 *) # EBCDIC based system
7411  lt_SP2NL='tr \100 \n'
7412  lt_NL2SP='tr \r\n \100\100'
7413  ;;
7414esac
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7425$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7426if ${lt_cv_to_host_file_cmd+:} false; then :
7427  $as_echo_n "(cached) " >&6
7428else
7429  case $host in
7430  *-*-mingw* )
7431    case $build in
7432      *-*-mingw* ) # actually msys
7433        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7434        ;;
7435      *-*-cygwin* )
7436        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7437        ;;
7438      * ) # otherwise, assume *nix
7439        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7440        ;;
7441    esac
7442    ;;
7443  *-*-cygwin* )
7444    case $build in
7445      *-*-mingw* ) # actually msys
7446        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7447        ;;
7448      *-*-cygwin* )
7449        lt_cv_to_host_file_cmd=func_convert_file_noop
7450        ;;
7451      * ) # otherwise, assume *nix
7452        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7453        ;;
7454    esac
7455    ;;
7456  * ) # unhandled hosts (and "normal" native builds)
7457    lt_cv_to_host_file_cmd=func_convert_file_noop
7458    ;;
7459esac
7460
7461fi
7462
7463to_host_file_cmd=$lt_cv_to_host_file_cmd
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7465$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7466
7467
7468
7469
7470
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7472$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7473if ${lt_cv_to_tool_file_cmd+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  #assume ordinary cross tools, or native build.
7477lt_cv_to_tool_file_cmd=func_convert_file_noop
7478case $host in
7479  *-*-mingw* )
7480    case $build in
7481      *-*-mingw* ) # actually msys
7482        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7483        ;;
7484    esac
7485    ;;
7486esac
7487
7488fi
7489
7490to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7492$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7493
7494
7495
7496
7497
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7499$as_echo_n "checking for $LD option to reload object files... " >&6; }
7500if ${lt_cv_ld_reload_flag+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  lt_cv_ld_reload_flag='-r'
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7506$as_echo "$lt_cv_ld_reload_flag" >&6; }
7507reload_flag=$lt_cv_ld_reload_flag
7508case $reload_flag in
7509"" | " "*) ;;
7510*) reload_flag=" $reload_flag" ;;
7511esac
7512reload_cmds='$LD$reload_flag -o $output$reload_objs'
7513case $host_os in
7514  cygwin* | mingw* | pw32* | cegcc*)
7515    if test yes != "$GCC"; then
7516      reload_cmds=false
7517    fi
7518    ;;
7519  darwin*)
7520    if test yes = "$GCC"; then
7521      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7522    else
7523      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7524    fi
7525    ;;
7526esac
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536if test -n "$ac_tool_prefix"; then
7537  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7538set dummy ${ac_tool_prefix}objdump; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if ${ac_cv_prog_OBJDUMP+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  if test -n "$OBJDUMP"; then
7545  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552    for ac_exec_ext in '' $ac_executable_extensions; do
7553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559  done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564OBJDUMP=$ac_cv_prog_OBJDUMP
7565if test -n "$OBJDUMP"; then
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7567$as_echo "$OBJDUMP" >&6; }
7568else
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573
7574fi
7575if test -z "$ac_cv_prog_OBJDUMP"; then
7576  ac_ct_OBJDUMP=$OBJDUMP
7577  # Extract the first word of "objdump", so it can be a program name with args.
7578set dummy objdump; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  if test -n "$ac_ct_OBJDUMP"; then
7585  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590  IFS=$as_save_IFS
7591  test -z "$as_dir" && as_dir=.
7592    for ac_exec_ext in '' $ac_executable_extensions; do
7593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596    break 2
7597  fi
7598done
7599  done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7605if test -n "$ac_ct_OBJDUMP"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7607$as_echo "$ac_ct_OBJDUMP" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613  if test "x$ac_ct_OBJDUMP" = x; then
7614    OBJDUMP="false"
7615  else
7616    case $cross_compiling:$ac_tool_warned in
7617yes:)
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620ac_tool_warned=yes ;;
7621esac
7622    OBJDUMP=$ac_ct_OBJDUMP
7623  fi
7624else
7625  OBJDUMP="$ac_cv_prog_OBJDUMP"
7626fi
7627
7628test -z "$OBJDUMP" && OBJDUMP=objdump
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7639$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7640if ${lt_cv_deplibs_check_method+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  lt_cv_file_magic_cmd='$MAGIC_CMD'
7644lt_cv_file_magic_test_file=
7645lt_cv_deplibs_check_method='unknown'
7646# Need to set the preceding variable on all platforms that support
7647# interlibrary dependencies.
7648# 'none' -- dependencies not supported.
7649# 'unknown' -- same as none, but documents that we really don't know.
7650# 'pass_all' -- all dependencies passed with no checks.
7651# 'test_compile' -- check by making test program.
7652# 'file_magic [[regex]]' -- check by looking for files in library path
7653# that responds to the $file_magic_cmd with a given extended regex.
7654# If you have 'file' or equivalent on your system and you're not sure
7655# whether 'pass_all' will *always* work, you probably want this one.
7656
7657case $host_os in
7658aix[4-9]*)
7659  lt_cv_deplibs_check_method=pass_all
7660  ;;
7661
7662beos*)
7663  lt_cv_deplibs_check_method=pass_all
7664  ;;
7665
7666bsdi[45]*)
7667  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7668  lt_cv_file_magic_cmd='/usr/bin/file -L'
7669  lt_cv_file_magic_test_file=/shlib/libc.so
7670  ;;
7671
7672cygwin*)
7673  # func_win32_libid is a shell function defined in ltmain.sh
7674  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7675  lt_cv_file_magic_cmd='func_win32_libid'
7676  ;;
7677
7678mingw* | pw32*)
7679  # Base MSYS/MinGW do not provide the 'file' command needed by
7680  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7681  # unless we find 'file', for example because we are cross-compiling.
7682  if ( file / ) >/dev/null 2>&1; then
7683    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7684    lt_cv_file_magic_cmd='func_win32_libid'
7685  else
7686    # Keep this pattern in sync with the one in func_win32_libid.
7687    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7688    lt_cv_file_magic_cmd='$OBJDUMP -f'
7689  fi
7690  ;;
7691
7692cegcc*)
7693  # use the weaker test based on 'objdump'. See mingw*.
7694  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7695  lt_cv_file_magic_cmd='$OBJDUMP -f'
7696  ;;
7697
7698darwin* | rhapsody*)
7699  lt_cv_deplibs_check_method=pass_all
7700  ;;
7701
7702freebsd* | dragonfly*)
7703  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7704    case $host_cpu in
7705    i*86 )
7706      # Not sure whether the presence of OpenBSD here was a mistake.
7707      # Let's accept both of them until this is cleared up.
7708      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7709      lt_cv_file_magic_cmd=/usr/bin/file
7710      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7711      ;;
7712    esac
7713  else
7714    lt_cv_deplibs_check_method=pass_all
7715  fi
7716  ;;
7717
7718haiku*)
7719  lt_cv_deplibs_check_method=pass_all
7720  ;;
7721
7722hpux10.20* | hpux11*)
7723  lt_cv_file_magic_cmd=/usr/bin/file
7724  case $host_cpu in
7725  ia64*)
7726    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7727    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7728    ;;
7729  hppa*64*)
7730    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]'
7731    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7732    ;;
7733  *)
7734    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7735    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7736    ;;
7737  esac
7738  ;;
7739
7740interix[3-9]*)
7741  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7742  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7743  ;;
7744
7745irix5* | irix6* | nonstopux*)
7746  case $LD in
7747  *-32|*"-32 ") libmagic=32-bit;;
7748  *-n32|*"-n32 ") libmagic=N32;;
7749  *-64|*"-64 ") libmagic=64-bit;;
7750  *) libmagic=never-match;;
7751  esac
7752  lt_cv_deplibs_check_method=pass_all
7753  ;;
7754
7755# This must be glibc/ELF.
7756linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7757  lt_cv_deplibs_check_method=pass_all
7758  ;;
7759
7760netbsd* | netbsdelf*-gnu)
7761  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7762    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7763  else
7764    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7765  fi
7766  ;;
7767
7768newos6*)
7769  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7770  lt_cv_file_magic_cmd=/usr/bin/file
7771  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7772  ;;
7773
7774*nto* | *qnx*)
7775  lt_cv_deplibs_check_method=pass_all
7776  ;;
7777
7778openbsd* | bitrig*)
7779  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7780    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7781  else
7782    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7783  fi
7784  ;;
7785
7786osf3* | osf4* | osf5*)
7787  lt_cv_deplibs_check_method=pass_all
7788  ;;
7789
7790rdos*)
7791  lt_cv_deplibs_check_method=pass_all
7792  ;;
7793
7794solaris*)
7795  lt_cv_deplibs_check_method=pass_all
7796  ;;
7797
7798sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7799  lt_cv_deplibs_check_method=pass_all
7800  ;;
7801
7802sysv4 | sysv4.3*)
7803  case $host_vendor in
7804  motorola)
7805    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]'
7806    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7807    ;;
7808  ncr)
7809    lt_cv_deplibs_check_method=pass_all
7810    ;;
7811  sequent)
7812    lt_cv_file_magic_cmd='/bin/file'
7813    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7814    ;;
7815  sni)
7816    lt_cv_file_magic_cmd='/bin/file'
7817    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7818    lt_cv_file_magic_test_file=/lib/libc.so
7819    ;;
7820  siemens)
7821    lt_cv_deplibs_check_method=pass_all
7822    ;;
7823  pc)
7824    lt_cv_deplibs_check_method=pass_all
7825    ;;
7826  esac
7827  ;;
7828
7829tpf*)
7830  lt_cv_deplibs_check_method=pass_all
7831  ;;
7832os2*)
7833  lt_cv_deplibs_check_method=pass_all
7834  ;;
7835esac
7836
7837fi
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7839$as_echo "$lt_cv_deplibs_check_method" >&6; }
7840
7841file_magic_glob=
7842want_nocaseglob=no
7843if test "$build" = "$host"; then
7844  case $host_os in
7845  mingw* | pw32*)
7846    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7847      want_nocaseglob=yes
7848    else
7849      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7850    fi
7851    ;;
7852  esac
7853fi
7854
7855file_magic_cmd=$lt_cv_file_magic_cmd
7856deplibs_check_method=$lt_cv_deplibs_check_method
7857test -z "$deplibs_check_method" && deplibs_check_method=unknown
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880if test -n "$ac_tool_prefix"; then
7881  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_DLLTOOL+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test -n "$DLLTOOL"; then
7889  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896    for ac_exec_ext in '' $ac_executable_extensions; do
7897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903  done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908DLLTOOL=$ac_cv_prog_DLLTOOL
7909if test -n "$DLLTOOL"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7911$as_echo "$DLLTOOL" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917
7918fi
7919if test -z "$ac_cv_prog_DLLTOOL"; then
7920  ac_ct_DLLTOOL=$DLLTOOL
7921  # Extract the first word of "dlltool", so it can be a program name with args.
7922set dummy dlltool; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  if test -n "$ac_ct_DLLTOOL"; then
7929  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934  IFS=$as_save_IFS
7935  test -z "$as_dir" && as_dir=.
7936    for ac_exec_ext in '' $ac_executable_extensions; do
7937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940    break 2
7941  fi
7942done
7943  done
7944IFS=$as_save_IFS
7945
7946fi
7947fi
7948ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7949if test -n "$ac_ct_DLLTOOL"; then
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7951$as_echo "$ac_ct_DLLTOOL" >&6; }
7952else
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957  if test "x$ac_ct_DLLTOOL" = x; then
7958    DLLTOOL="false"
7959  else
7960    case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966    DLLTOOL=$ac_ct_DLLTOOL
7967  fi
7968else
7969  DLLTOOL="$ac_cv_prog_DLLTOOL"
7970fi
7971
7972test -z "$DLLTOOL" && DLLTOOL=dlltool
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7984$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7985if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  lt_cv_sharedlib_from_linklib_cmd='unknown'
7989
7990case $host_os in
7991cygwin* | mingw* | pw32* | cegcc*)
7992  # two different shell functions defined in ltmain.sh;
7993  # decide which one to use based on capabilities of $DLLTOOL
7994  case `$DLLTOOL --help 2>&1` in
7995  *--identify-strict*)
7996    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7997    ;;
7998  *)
7999    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8000    ;;
8001  esac
8002  ;;
8003*)
8004  # fallback: assume linklib IS sharedlib
8005  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8006  ;;
8007esac
8008
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8011$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8012sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8013test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8014
8015
8016
8017
8018
8019
8020
8021if test -n "$ac_tool_prefix"; then
8022  for ac_prog in ar
8023  do
8024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027$as_echo_n "checking for $ac_word... " >&6; }
8028if ${ac_cv_prog_AR+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  if test -n "$AR"; then
8032  ac_cv_prog_AR="$AR" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037  IFS=$as_save_IFS
8038  test -z "$as_dir" && as_dir=.
8039    for ac_exec_ext in '' $ac_executable_extensions; do
8040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043    break 2
8044  fi
8045done
8046  done
8047IFS=$as_save_IFS
8048
8049fi
8050fi
8051AR=$ac_cv_prog_AR
8052if test -n "$AR"; then
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8054$as_echo "$AR" >&6; }
8055else
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
8058fi
8059
8060
8061    test -n "$AR" && break
8062  done
8063fi
8064if test -z "$AR"; then
8065  ac_ct_AR=$AR
8066  for ac_prog in ar
8067do
8068  # Extract the first word of "$ac_prog", so it can be a program name with args.
8069set dummy $ac_prog; ac_word=$2
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071$as_echo_n "checking for $ac_word... " >&6; }
8072if ${ac_cv_prog_ac_ct_AR+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  if test -n "$ac_ct_AR"; then
8076  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081  IFS=$as_save_IFS
8082  test -z "$as_dir" && as_dir=.
8083    for ac_exec_ext in '' $ac_executable_extensions; do
8084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085    ac_cv_prog_ac_ct_AR="$ac_prog"
8086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087    break 2
8088  fi
8089done
8090  done
8091IFS=$as_save_IFS
8092
8093fi
8094fi
8095ac_ct_AR=$ac_cv_prog_ac_ct_AR
8096if test -n "$ac_ct_AR"; then
8097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8098$as_echo "$ac_ct_AR" >&6; }
8099else
8100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101$as_echo "no" >&6; }
8102fi
8103
8104
8105  test -n "$ac_ct_AR" && break
8106done
8107
8108  if test "x$ac_ct_AR" = x; then
8109    AR="false"
8110  else
8111    case $cross_compiling:$ac_tool_warned in
8112yes:)
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115ac_tool_warned=yes ;;
8116esac
8117    AR=$ac_ct_AR
8118  fi
8119fi
8120
8121: ${AR=ar}
8122: ${AR_FLAGS=cr}
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8135$as_echo_n "checking for archiver @FILE support... " >&6; }
8136if ${lt_cv_ar_at_file+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  lt_cv_ar_at_file=no
8140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142
8143int
8144main ()
8145{
8146
8147  ;
8148  return 0;
8149}
8150_ACEOF
8151if ac_fn_c_try_compile "$LINENO"; then :
8152  echo conftest.$ac_objext > conftest.lst
8153      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8154      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8155  (eval $lt_ar_try) 2>&5
8156  ac_status=$?
8157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8158  test $ac_status = 0; }
8159      if test 0 -eq "$ac_status"; then
8160	# Ensure the archiver fails upon bogus file names.
8161	rm -f conftest.$ac_objext libconftest.a
8162	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8163  (eval $lt_ar_try) 2>&5
8164  ac_status=$?
8165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8166  test $ac_status = 0; }
8167	if test 0 -ne "$ac_status"; then
8168          lt_cv_ar_at_file=@
8169        fi
8170      fi
8171      rm -f conftest.* libconftest.a
8172
8173fi
8174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175
8176fi
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8178$as_echo "$lt_cv_ar_at_file" >&6; }
8179
8180if test no = "$lt_cv_ar_at_file"; then
8181  archiver_list_spec=
8182else
8183  archiver_list_spec=$lt_cv_ar_at_file
8184fi
8185
8186
8187
8188
8189
8190
8191
8192if test -n "$ac_tool_prefix"; then
8193  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8194set dummy ${ac_tool_prefix}strip; ac_word=$2
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196$as_echo_n "checking for $ac_word... " >&6; }
8197if ${ac_cv_prog_STRIP+:} false; then :
8198  $as_echo_n "(cached) " >&6
8199else
8200  if test -n "$STRIP"; then
8201  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206  IFS=$as_save_IFS
8207  test -z "$as_dir" && as_dir=.
8208    for ac_exec_ext in '' $ac_executable_extensions; do
8209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212    break 2
8213  fi
8214done
8215  done
8216IFS=$as_save_IFS
8217
8218fi
8219fi
8220STRIP=$ac_cv_prog_STRIP
8221if test -n "$STRIP"; then
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8223$as_echo "$STRIP" >&6; }
8224else
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }
8227fi
8228
8229
8230fi
8231if test -z "$ac_cv_prog_STRIP"; then
8232  ac_ct_STRIP=$STRIP
8233  # Extract the first word of "strip", so it can be a program name with args.
8234set dummy strip; ac_word=$2
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236$as_echo_n "checking for $ac_word... " >&6; }
8237if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  if test -n "$ac_ct_STRIP"; then
8241  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8242else
8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244for as_dir in $PATH
8245do
8246  IFS=$as_save_IFS
8247  test -z "$as_dir" && as_dir=.
8248    for ac_exec_ext in '' $ac_executable_extensions; do
8249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250    ac_cv_prog_ac_ct_STRIP="strip"
8251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252    break 2
8253  fi
8254done
8255  done
8256IFS=$as_save_IFS
8257
8258fi
8259fi
8260ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8261if test -n "$ac_ct_STRIP"; then
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8263$as_echo "$ac_ct_STRIP" >&6; }
8264else
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268
8269  if test "x$ac_ct_STRIP" = x; then
8270    STRIP=":"
8271  else
8272    case $cross_compiling:$ac_tool_warned in
8273yes:)
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276ac_tool_warned=yes ;;
8277esac
8278    STRIP=$ac_ct_STRIP
8279  fi
8280else
8281  STRIP="$ac_cv_prog_STRIP"
8282fi
8283
8284test -z "$STRIP" && STRIP=:
8285
8286
8287
8288
8289
8290
8291if test -n "$ac_tool_prefix"; then
8292  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8293set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if ${ac_cv_prog_RANLIB+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  if test -n "$RANLIB"; then
8300  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305  IFS=$as_save_IFS
8306  test -z "$as_dir" && as_dir=.
8307    for ac_exec_ext in '' $ac_executable_extensions; do
8308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311    break 2
8312  fi
8313done
8314  done
8315IFS=$as_save_IFS
8316
8317fi
8318fi
8319RANLIB=$ac_cv_prog_RANLIB
8320if test -n "$RANLIB"; then
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8322$as_echo "$RANLIB" >&6; }
8323else
8324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
8326fi
8327
8328
8329fi
8330if test -z "$ac_cv_prog_RANLIB"; then
8331  ac_ct_RANLIB=$RANLIB
8332  # Extract the first word of "ranlib", so it can be a program name with args.
8333set dummy ranlib; ac_word=$2
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335$as_echo_n "checking for $ac_word... " >&6; }
8336if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8337  $as_echo_n "(cached) " >&6
8338else
8339  if test -n "$ac_ct_RANLIB"; then
8340  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8341else
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345  IFS=$as_save_IFS
8346  test -z "$as_dir" && as_dir=.
8347    for ac_exec_ext in '' $ac_executable_extensions; do
8348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349    ac_cv_prog_ac_ct_RANLIB="ranlib"
8350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351    break 2
8352  fi
8353done
8354  done
8355IFS=$as_save_IFS
8356
8357fi
8358fi
8359ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8360if test -n "$ac_ct_RANLIB"; then
8361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8362$as_echo "$ac_ct_RANLIB" >&6; }
8363else
8364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365$as_echo "no" >&6; }
8366fi
8367
8368  if test "x$ac_ct_RANLIB" = x; then
8369    RANLIB=":"
8370  else
8371    case $cross_compiling:$ac_tool_warned in
8372yes:)
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375ac_tool_warned=yes ;;
8376esac
8377    RANLIB=$ac_ct_RANLIB
8378  fi
8379else
8380  RANLIB="$ac_cv_prog_RANLIB"
8381fi
8382
8383test -z "$RANLIB" && RANLIB=:
8384
8385
8386
8387
8388
8389
8390# Determine commands to create old-style static archives.
8391old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8392old_postinstall_cmds='chmod 644 $oldlib'
8393old_postuninstall_cmds=
8394
8395if test -n "$RANLIB"; then
8396  case $host_os in
8397  bitrig* | openbsd*)
8398    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8399    ;;
8400  *)
8401    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8402    ;;
8403  esac
8404  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8405fi
8406
8407case $host_os in
8408  darwin*)
8409    lock_old_archive_extraction=yes ;;
8410  *)
8411    lock_old_archive_extraction=no ;;
8412esac
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452# If no C compiler was specified, use CC.
8453LTCC=${LTCC-"$CC"}
8454
8455# If no C compiler flags were specified, use CFLAGS.
8456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8457
8458# Allow CC to be a program name with arguments.
8459compiler=$CC
8460
8461
8462# Check for command to grab the raw symbol name followed by C symbol from nm.
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8464$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8465if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468
8469# These are sane defaults that work on at least a few old systems.
8470# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8471
8472# Character class describing NM global symbol codes.
8473symcode='[BCDEGRST]'
8474
8475# Regexp to match symbols that can be accessed directly from C.
8476sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8477
8478# Define system-specific variables.
8479case $host_os in
8480aix*)
8481  symcode='[BCDT]'
8482  ;;
8483cygwin* | mingw* | pw32* | cegcc*)
8484  symcode='[ABCDGISTW]'
8485  ;;
8486hpux*)
8487  if test ia64 = "$host_cpu"; then
8488    symcode='[ABCDEGRST]'
8489  fi
8490  ;;
8491irix* | nonstopux*)
8492  symcode='[BCDEGRST]'
8493  ;;
8494osf*)
8495  symcode='[BCDEGQRST]'
8496  ;;
8497solaris*)
8498  symcode='[BDRT]'
8499  ;;
8500sco3.2v5*)
8501  symcode='[DT]'
8502  ;;
8503sysv4.2uw2*)
8504  symcode='[DT]'
8505  ;;
8506sysv5* | sco5v6* | unixware* | OpenUNIX*)
8507  symcode='[ABDT]'
8508  ;;
8509sysv4)
8510  symcode='[DFNSTU]'
8511  ;;
8512esac
8513
8514# If we're using GNU nm, then use its standard symbol codes.
8515case `$NM -V 2>&1` in
8516*GNU* | *'with BFD'*)
8517  symcode='[ABCDGIRSTW]' ;;
8518esac
8519
8520if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8521  # Gets list of data symbols to import.
8522  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8523  # Adjust the below global symbol transforms to fixup imported variables.
8524  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8525  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8526  lt_c_name_lib_hook="\
8527  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8528  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8529else
8530  # Disable hooks by default.
8531  lt_cv_sys_global_symbol_to_import=
8532  lt_cdecl_hook=
8533  lt_c_name_hook=
8534  lt_c_name_lib_hook=
8535fi
8536
8537# Transform an extracted symbol line into a proper C declaration.
8538# Some systems (esp. on ia64) link data and code symbols differently,
8539# so use this general approach.
8540lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8541$lt_cdecl_hook\
8542" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8543" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8544
8545# Transform an extracted symbol line into symbol name and symbol address
8546lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8547$lt_c_name_hook\
8548" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8549" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8550
8551# Transform an extracted symbol line into symbol name with lib prefix and
8552# symbol address.
8553lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8554$lt_c_name_lib_hook\
8555" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8556" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8557" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8558
8559# Handle CRLF in mingw tool chain
8560opt_cr=
8561case $build_os in
8562mingw*)
8563  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8564  ;;
8565esac
8566
8567# Try without a prefix underscore, then with it.
8568for ac_symprfx in "" "_"; do
8569
8570  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8571  symxfrm="\\1 $ac_symprfx\\2 \\2"
8572
8573  # Write the raw and C identifiers.
8574  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8575    # Fake it for dumpbin and say T for any non-static function,
8576    # D for any global variable and I for any imported variable.
8577    # Also find C++ and __fastcall symbols from MSVC++,
8578    # which start with @ or ?.
8579    lt_cv_sys_global_symbol_pipe="$AWK '"\
8580"     {last_section=section; section=\$ 3};"\
8581"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8582"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8583"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8584"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8585"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8586"     \$ 0!~/External *\|/{next};"\
8587"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8588"     {if(hide[section]) next};"\
8589"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8590"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8591"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8592"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8593"     ' prfx=^$ac_symprfx"
8594  else
8595    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8596  fi
8597  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8598
8599  # Check to see that the pipe works correctly.
8600  pipe_works=no
8601
8602  rm -f conftest*
8603  cat > conftest.$ac_ext <<_LT_EOF
8604#ifdef __cplusplus
8605extern "C" {
8606#endif
8607char nm_test_var;
8608void nm_test_func(void);
8609void nm_test_func(void){}
8610#ifdef __cplusplus
8611}
8612#endif
8613int main(){nm_test_var='a';nm_test_func();return(0);}
8614_LT_EOF
8615
8616  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8617  (eval $ac_compile) 2>&5
8618  ac_status=$?
8619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8620  test $ac_status = 0; }; then
8621    # Now try to grab the symbols.
8622    nlist=conftest.nm
8623    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8624    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8625      # Try sorting and uniquifying the output.
8626      if sort "$nlist" | uniq > "$nlist"T; then
8627	mv -f "$nlist"T "$nlist"
8628      else
8629	rm -f "$nlist"T
8630      fi
8631
8632      # Make sure that we snagged all the symbols we need.
8633      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8634	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8635	  cat <<_LT_EOF > conftest.$ac_ext
8636/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8637#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8638/* DATA imports from DLLs on WIN32 can't be const, because runtime
8639   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8640# define LT_DLSYM_CONST
8641#elif defined __osf__
8642/* This system does not cope well with relocations in const data.  */
8643# define LT_DLSYM_CONST
8644#else
8645# define LT_DLSYM_CONST const
8646#endif
8647
8648#ifdef __cplusplus
8649extern "C" {
8650#endif
8651
8652_LT_EOF
8653	  # Now generate the symbol file.
8654	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8655
8656	  cat <<_LT_EOF >> conftest.$ac_ext
8657
8658/* The mapping between symbol names and symbols.  */
8659LT_DLSYM_CONST struct {
8660  const char *name;
8661  void       *address;
8662}
8663lt__PROGRAM__LTX_preloaded_symbols[] =
8664{
8665  { "@PROGRAM@", (void *) 0 },
8666_LT_EOF
8667	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8668	  cat <<\_LT_EOF >> conftest.$ac_ext
8669  {0, (void *) 0}
8670};
8671
8672/* This works around a problem in FreeBSD linker */
8673#ifdef FREEBSD_WORKAROUND
8674static const void *lt_preloaded_setup() {
8675  return lt__PROGRAM__LTX_preloaded_symbols;
8676}
8677#endif
8678
8679#ifdef __cplusplus
8680}
8681#endif
8682_LT_EOF
8683	  # Now try linking the two files.
8684	  mv conftest.$ac_objext conftstm.$ac_objext
8685	  lt_globsym_save_LIBS=$LIBS
8686	  lt_globsym_save_CFLAGS=$CFLAGS
8687	  LIBS=conftstm.$ac_objext
8688	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8689	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8690  (eval $ac_link) 2>&5
8691  ac_status=$?
8692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8693  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8694	    pipe_works=yes
8695	  fi
8696	  LIBS=$lt_globsym_save_LIBS
8697	  CFLAGS=$lt_globsym_save_CFLAGS
8698	else
8699	  echo "cannot find nm_test_func in $nlist" >&5
8700	fi
8701      else
8702	echo "cannot find nm_test_var in $nlist" >&5
8703      fi
8704    else
8705      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8706    fi
8707  else
8708    echo "$progname: failed program was:" >&5
8709    cat conftest.$ac_ext >&5
8710  fi
8711  rm -rf conftest* conftst*
8712
8713  # Do not use the global_symbol_pipe unless it works.
8714  if test yes = "$pipe_works"; then
8715    break
8716  else
8717    lt_cv_sys_global_symbol_pipe=
8718  fi
8719done
8720
8721fi
8722
8723if test -z "$lt_cv_sys_global_symbol_pipe"; then
8724  lt_cv_sys_global_symbol_to_cdecl=
8725fi
8726if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8728$as_echo "failed" >&6; }
8729else
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8731$as_echo "ok" >&6; }
8732fi
8733
8734# Response file support.
8735if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8736  nm_file_list_spec='@'
8737elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8738  nm_file_list_spec='@'
8739fi
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8778$as_echo_n "checking for sysroot... " >&6; }
8779
8780# Check whether --with-sysroot was given.
8781if test "${with_sysroot+set}" = set; then :
8782  withval=$with_sysroot;
8783else
8784  with_sysroot=no
8785fi
8786
8787
8788lt_sysroot=
8789case $with_sysroot in #(
8790 yes)
8791   if test yes = "$GCC"; then
8792     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8793   fi
8794   ;; #(
8795 /*)
8796   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8797   ;; #(
8798 no|'')
8799   ;; #(
8800 *)
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8802$as_echo "$with_sysroot" >&6; }
8803   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8804   ;;
8805esac
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8808$as_echo "${lt_sysroot:-no}" >&6; }
8809
8810
8811
8812
8813
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8815$as_echo_n "checking for a working dd... " >&6; }
8816if ${ac_cv_path_lt_DD+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  printf 0123456789abcdef0123456789abcdef >conftest.i
8820cat conftest.i conftest.i >conftest2.i
8821: ${lt_DD:=$DD}
8822if test -z "$lt_DD"; then
8823  ac_path_lt_DD_found=false
8824  # Loop through the user's path and test for each of PROGNAME-LIST
8825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826for as_dir in $PATH
8827do
8828  IFS=$as_save_IFS
8829  test -z "$as_dir" && as_dir=.
8830    for ac_prog in dd; do
8831    for ac_exec_ext in '' $ac_executable_extensions; do
8832      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8833      as_fn_executable_p "$ac_path_lt_DD" || continue
8834if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8835  cmp -s conftest.i conftest.out \
8836  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8837fi
8838      $ac_path_lt_DD_found && break 3
8839    done
8840  done
8841  done
8842IFS=$as_save_IFS
8843  if test -z "$ac_cv_path_lt_DD"; then
8844    :
8845  fi
8846else
8847  ac_cv_path_lt_DD=$lt_DD
8848fi
8849
8850rm -f conftest.i conftest2.i conftest.out
8851fi
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8853$as_echo "$ac_cv_path_lt_DD" >&6; }
8854
8855
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8857$as_echo_n "checking how to truncate binary pipes... " >&6; }
8858if ${lt_cv_truncate_bin+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  printf 0123456789abcdef0123456789abcdef >conftest.i
8862cat conftest.i conftest.i >conftest2.i
8863lt_cv_truncate_bin=
8864if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8865  cmp -s conftest.i conftest.out \
8866  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8867fi
8868rm -f conftest.i conftest2.i conftest.out
8869test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8870fi
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8872$as_echo "$lt_cv_truncate_bin" >&6; }
8873
8874
8875
8876
8877
8878
8879
8880# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8881func_cc_basename ()
8882{
8883    for cc_temp in $*""; do
8884      case $cc_temp in
8885        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8886        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8887        \-*) ;;
8888        *) break;;
8889      esac
8890    done
8891    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8892}
8893
8894# Check whether --enable-libtool-lock was given.
8895if test "${enable_libtool_lock+set}" = set; then :
8896  enableval=$enable_libtool_lock;
8897fi
8898
8899test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8900
8901# Some flags need to be propagated to the compiler or linker for good
8902# libtool support.
8903case $host in
8904ia64-*-hpux*)
8905  # Find out what ABI is being produced by ac_compile, and set mode
8906  # options accordingly.
8907  echo 'int i;' > conftest.$ac_ext
8908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8909  (eval $ac_compile) 2>&5
8910  ac_status=$?
8911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912  test $ac_status = 0; }; then
8913    case `/usr/bin/file conftest.$ac_objext` in
8914      *ELF-32*)
8915	HPUX_IA64_MODE=32
8916	;;
8917      *ELF-64*)
8918	HPUX_IA64_MODE=64
8919	;;
8920    esac
8921  fi
8922  rm -rf conftest*
8923  ;;
8924*-*-irix6*)
8925  # Find out what ABI is being produced by ac_compile, and set linker
8926  # options accordingly.
8927  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8928  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8929  (eval $ac_compile) 2>&5
8930  ac_status=$?
8931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8932  test $ac_status = 0; }; then
8933    if test yes = "$lt_cv_prog_gnu_ld"; then
8934      case `/usr/bin/file conftest.$ac_objext` in
8935	*32-bit*)
8936	  LD="${LD-ld} -melf32bsmip"
8937	  ;;
8938	*N32*)
8939	  LD="${LD-ld} -melf32bmipn32"
8940	  ;;
8941	*64-bit*)
8942	  LD="${LD-ld} -melf64bmip"
8943	;;
8944      esac
8945    else
8946      case `/usr/bin/file conftest.$ac_objext` in
8947	*32-bit*)
8948	  LD="${LD-ld} -32"
8949	  ;;
8950	*N32*)
8951	  LD="${LD-ld} -n32"
8952	  ;;
8953	*64-bit*)
8954	  LD="${LD-ld} -64"
8955	  ;;
8956      esac
8957    fi
8958  fi
8959  rm -rf conftest*
8960  ;;
8961
8962mips64*-*linux*)
8963  # Find out what ABI is being produced by ac_compile, and set linker
8964  # options accordingly.
8965  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8966  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8967  (eval $ac_compile) 2>&5
8968  ac_status=$?
8969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8970  test $ac_status = 0; }; then
8971    emul=elf
8972    case `/usr/bin/file conftest.$ac_objext` in
8973      *32-bit*)
8974	emul="${emul}32"
8975	;;
8976      *64-bit*)
8977	emul="${emul}64"
8978	;;
8979    esac
8980    case `/usr/bin/file conftest.$ac_objext` in
8981      *MSB*)
8982	emul="${emul}btsmip"
8983	;;
8984      *LSB*)
8985	emul="${emul}ltsmip"
8986	;;
8987    esac
8988    case `/usr/bin/file conftest.$ac_objext` in
8989      *N32*)
8990	emul="${emul}n32"
8991	;;
8992    esac
8993    LD="${LD-ld} -m $emul"
8994  fi
8995  rm -rf conftest*
8996  ;;
8997
8998x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8999s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9000  # Find out what ABI is being produced by ac_compile, and set linker
9001  # options accordingly.  Note that the listed cases only cover the
9002  # situations where additional linker options are needed (such as when
9003  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9004  # vice versa); the common cases where no linker options are needed do
9005  # not appear in the list.
9006  echo 'int i;' > conftest.$ac_ext
9007  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9008  (eval $ac_compile) 2>&5
9009  ac_status=$?
9010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9011  test $ac_status = 0; }; then
9012    case `/usr/bin/file conftest.o` in
9013      *32-bit*)
9014	case $host in
9015	  x86_64-*kfreebsd*-gnu)
9016	    LD="${LD-ld} -m elf_i386_fbsd"
9017	    ;;
9018	  x86_64-*linux*)
9019	    case `/usr/bin/file conftest.o` in
9020	      *x86-64*)
9021		LD="${LD-ld} -m elf32_x86_64"
9022		;;
9023	      *)
9024		LD="${LD-ld} -m elf_i386"
9025		;;
9026	    esac
9027	    ;;
9028	  powerpc64le-*linux*)
9029	    LD="${LD-ld} -m elf32lppclinux"
9030	    ;;
9031	  powerpc64-*linux*)
9032	    LD="${LD-ld} -m elf32ppclinux"
9033	    ;;
9034	  s390x-*linux*)
9035	    LD="${LD-ld} -m elf_s390"
9036	    ;;
9037	  sparc64-*linux*)
9038	    LD="${LD-ld} -m elf32_sparc"
9039	    ;;
9040	esac
9041	;;
9042      *64-bit*)
9043	case $host in
9044	  x86_64-*kfreebsd*-gnu)
9045	    LD="${LD-ld} -m elf_x86_64_fbsd"
9046	    ;;
9047	  x86_64-*linux*)
9048	    LD="${LD-ld} -m elf_x86_64"
9049	    ;;
9050	  powerpcle-*linux*)
9051	    LD="${LD-ld} -m elf64lppc"
9052	    ;;
9053	  powerpc-*linux*)
9054	    LD="${LD-ld} -m elf64ppc"
9055	    ;;
9056	  s390*-*linux*|s390*-*tpf*)
9057	    LD="${LD-ld} -m elf64_s390"
9058	    ;;
9059	  sparc*-*linux*)
9060	    LD="${LD-ld} -m elf64_sparc"
9061	    ;;
9062	esac
9063	;;
9064    esac
9065  fi
9066  rm -rf conftest*
9067  ;;
9068
9069*-*-sco3.2v5*)
9070  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9071  SAVE_CFLAGS=$CFLAGS
9072  CFLAGS="$CFLAGS -belf"
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9074$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9075if ${lt_cv_cc_needs_belf+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  ac_ext=c
9079ac_cpp='$CPP $CPPFLAGS'
9080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9082ac_compiler_gnu=$ac_cv_c_compiler_gnu
9083
9084     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h.  */
9086
9087int
9088main ()
9089{
9090
9091  ;
9092  return 0;
9093}
9094_ACEOF
9095if ac_fn_c_try_link "$LINENO"; then :
9096  lt_cv_cc_needs_belf=yes
9097else
9098  lt_cv_cc_needs_belf=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext \
9101    conftest$ac_exeext conftest.$ac_ext
9102     ac_ext=c
9103ac_cpp='$CPP $CPPFLAGS'
9104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
9108fi
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9110$as_echo "$lt_cv_cc_needs_belf" >&6; }
9111  if test yes != "$lt_cv_cc_needs_belf"; then
9112    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9113    CFLAGS=$SAVE_CFLAGS
9114  fi
9115  ;;
9116*-*solaris*)
9117  # Find out what ABI is being produced by ac_compile, and set linker
9118  # options accordingly.
9119  echo 'int i;' > conftest.$ac_ext
9120  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9121  (eval $ac_compile) 2>&5
9122  ac_status=$?
9123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9124  test $ac_status = 0; }; then
9125    case `/usr/bin/file conftest.o` in
9126    *64-bit*)
9127      case $lt_cv_prog_gnu_ld in
9128      yes*)
9129        case $host in
9130        i?86-*-solaris*|x86_64-*-solaris*)
9131          LD="${LD-ld} -m elf_x86_64"
9132          ;;
9133        sparc*-*-solaris*)
9134          LD="${LD-ld} -m elf64_sparc"
9135          ;;
9136        esac
9137        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9138        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9139          LD=${LD-ld}_sol2
9140        fi
9141        ;;
9142      *)
9143	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9144	  LD="${LD-ld} -64"
9145	fi
9146	;;
9147      esac
9148      ;;
9149    esac
9150  fi
9151  rm -rf conftest*
9152  ;;
9153esac
9154
9155need_locks=$enable_libtool_lock
9156
9157if test -n "$ac_tool_prefix"; then
9158  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9159set dummy ${ac_tool_prefix}mt; ac_word=$2
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161$as_echo_n "checking for $ac_word... " >&6; }
9162if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9163  $as_echo_n "(cached) " >&6
9164else
9165  if test -n "$MANIFEST_TOOL"; then
9166  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9167else
9168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169for as_dir in $PATH
9170do
9171  IFS=$as_save_IFS
9172  test -z "$as_dir" && as_dir=.
9173    for ac_exec_ext in '' $ac_executable_extensions; do
9174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177    break 2
9178  fi
9179done
9180  done
9181IFS=$as_save_IFS
9182
9183fi
9184fi
9185MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9186if test -n "$MANIFEST_TOOL"; then
9187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9188$as_echo "$MANIFEST_TOOL" >&6; }
9189else
9190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191$as_echo "no" >&6; }
9192fi
9193
9194
9195fi
9196if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9197  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9198  # Extract the first word of "mt", so it can be a program name with args.
9199set dummy mt; ac_word=$2
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201$as_echo_n "checking for $ac_word... " >&6; }
9202if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9203  $as_echo_n "(cached) " >&6
9204else
9205  if test -n "$ac_ct_MANIFEST_TOOL"; then
9206  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9207else
9208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209for as_dir in $PATH
9210do
9211  IFS=$as_save_IFS
9212  test -z "$as_dir" && as_dir=.
9213    for ac_exec_ext in '' $ac_executable_extensions; do
9214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217    break 2
9218  fi
9219done
9220  done
9221IFS=$as_save_IFS
9222
9223fi
9224fi
9225ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9226if test -n "$ac_ct_MANIFEST_TOOL"; then
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9228$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9229else
9230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231$as_echo "no" >&6; }
9232fi
9233
9234  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9235    MANIFEST_TOOL=":"
9236  else
9237    case $cross_compiling:$ac_tool_warned in
9238yes:)
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9241ac_tool_warned=yes ;;
9242esac
9243    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9244  fi
9245else
9246  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9247fi
9248
9249test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9251$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9252if ${lt_cv_path_mainfest_tool+:} false; then :
9253  $as_echo_n "(cached) " >&6
9254else
9255  lt_cv_path_mainfest_tool=no
9256  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9257  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9258  cat conftest.err >&5
9259  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9260    lt_cv_path_mainfest_tool=yes
9261  fi
9262  rm -f conftest*
9263fi
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9265$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9266if test yes != "$lt_cv_path_mainfest_tool"; then
9267  MANIFEST_TOOL=:
9268fi
9269
9270
9271
9272
9273
9274
9275  case $host_os in
9276    rhapsody* | darwin*)
9277    if test -n "$ac_tool_prefix"; then
9278  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9279set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281$as_echo_n "checking for $ac_word... " >&6; }
9282if ${ac_cv_prog_DSYMUTIL+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  if test -n "$DSYMUTIL"; then
9286  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9287else
9288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in $PATH
9290do
9291  IFS=$as_save_IFS
9292  test -z "$as_dir" && as_dir=.
9293    for ac_exec_ext in '' $ac_executable_extensions; do
9294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297    break 2
9298  fi
9299done
9300  done
9301IFS=$as_save_IFS
9302
9303fi
9304fi
9305DSYMUTIL=$ac_cv_prog_DSYMUTIL
9306if test -n "$DSYMUTIL"; then
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9308$as_echo "$DSYMUTIL" >&6; }
9309else
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311$as_echo "no" >&6; }
9312fi
9313
9314
9315fi
9316if test -z "$ac_cv_prog_DSYMUTIL"; then
9317  ac_ct_DSYMUTIL=$DSYMUTIL
9318  # Extract the first word of "dsymutil", so it can be a program name with args.
9319set dummy dsymutil; ac_word=$2
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321$as_echo_n "checking for $ac_word... " >&6; }
9322if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9323  $as_echo_n "(cached) " >&6
9324else
9325  if test -n "$ac_ct_DSYMUTIL"; then
9326  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9327else
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331  IFS=$as_save_IFS
9332  test -z "$as_dir" && as_dir=.
9333    for ac_exec_ext in '' $ac_executable_extensions; do
9334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337    break 2
9338  fi
9339done
9340  done
9341IFS=$as_save_IFS
9342
9343fi
9344fi
9345ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9346if test -n "$ac_ct_DSYMUTIL"; then
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9348$as_echo "$ac_ct_DSYMUTIL" >&6; }
9349else
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351$as_echo "no" >&6; }
9352fi
9353
9354  if test "x$ac_ct_DSYMUTIL" = x; then
9355    DSYMUTIL=":"
9356  else
9357    case $cross_compiling:$ac_tool_warned in
9358yes:)
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9361ac_tool_warned=yes ;;
9362esac
9363    DSYMUTIL=$ac_ct_DSYMUTIL
9364  fi
9365else
9366  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9367fi
9368
9369    if test -n "$ac_tool_prefix"; then
9370  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9371set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373$as_echo_n "checking for $ac_word... " >&6; }
9374if ${ac_cv_prog_NMEDIT+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  if test -n "$NMEDIT"; then
9378  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9379else
9380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381for as_dir in $PATH
9382do
9383  IFS=$as_save_IFS
9384  test -z "$as_dir" && as_dir=.
9385    for ac_exec_ext in '' $ac_executable_extensions; do
9386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389    break 2
9390  fi
9391done
9392  done
9393IFS=$as_save_IFS
9394
9395fi
9396fi
9397NMEDIT=$ac_cv_prog_NMEDIT
9398if test -n "$NMEDIT"; then
9399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9400$as_echo "$NMEDIT" >&6; }
9401else
9402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
9404fi
9405
9406
9407fi
9408if test -z "$ac_cv_prog_NMEDIT"; then
9409  ac_ct_NMEDIT=$NMEDIT
9410  # Extract the first word of "nmedit", so it can be a program name with args.
9411set dummy nmedit; ac_word=$2
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413$as_echo_n "checking for $ac_word... " >&6; }
9414if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  if test -n "$ac_ct_NMEDIT"; then
9418  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9419else
9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $PATH
9422do
9423  IFS=$as_save_IFS
9424  test -z "$as_dir" && as_dir=.
9425    for ac_exec_ext in '' $ac_executable_extensions; do
9426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429    break 2
9430  fi
9431done
9432  done
9433IFS=$as_save_IFS
9434
9435fi
9436fi
9437ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9438if test -n "$ac_ct_NMEDIT"; then
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9440$as_echo "$ac_ct_NMEDIT" >&6; }
9441else
9442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443$as_echo "no" >&6; }
9444fi
9445
9446  if test "x$ac_ct_NMEDIT" = x; then
9447    NMEDIT=":"
9448  else
9449    case $cross_compiling:$ac_tool_warned in
9450yes:)
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9453ac_tool_warned=yes ;;
9454esac
9455    NMEDIT=$ac_ct_NMEDIT
9456  fi
9457else
9458  NMEDIT="$ac_cv_prog_NMEDIT"
9459fi
9460
9461    if test -n "$ac_tool_prefix"; then
9462  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9463set dummy ${ac_tool_prefix}lipo; ac_word=$2
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465$as_echo_n "checking for $ac_word... " >&6; }
9466if ${ac_cv_prog_LIPO+:} false; then :
9467  $as_echo_n "(cached) " >&6
9468else
9469  if test -n "$LIPO"; then
9470  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9471else
9472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473for as_dir in $PATH
9474do
9475  IFS=$as_save_IFS
9476  test -z "$as_dir" && as_dir=.
9477    for ac_exec_ext in '' $ac_executable_extensions; do
9478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481    break 2
9482  fi
9483done
9484  done
9485IFS=$as_save_IFS
9486
9487fi
9488fi
9489LIPO=$ac_cv_prog_LIPO
9490if test -n "$LIPO"; then
9491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9492$as_echo "$LIPO" >&6; }
9493else
9494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495$as_echo "no" >&6; }
9496fi
9497
9498
9499fi
9500if test -z "$ac_cv_prog_LIPO"; then
9501  ac_ct_LIPO=$LIPO
9502  # Extract the first word of "lipo", so it can be a program name with args.
9503set dummy lipo; ac_word=$2
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505$as_echo_n "checking for $ac_word... " >&6; }
9506if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  if test -n "$ac_ct_LIPO"; then
9510  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9511else
9512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513for as_dir in $PATH
9514do
9515  IFS=$as_save_IFS
9516  test -z "$as_dir" && as_dir=.
9517    for ac_exec_ext in '' $ac_executable_extensions; do
9518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519    ac_cv_prog_ac_ct_LIPO="lipo"
9520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521    break 2
9522  fi
9523done
9524  done
9525IFS=$as_save_IFS
9526
9527fi
9528fi
9529ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9530if test -n "$ac_ct_LIPO"; then
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9532$as_echo "$ac_ct_LIPO" >&6; }
9533else
9534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535$as_echo "no" >&6; }
9536fi
9537
9538  if test "x$ac_ct_LIPO" = x; then
9539    LIPO=":"
9540  else
9541    case $cross_compiling:$ac_tool_warned in
9542yes:)
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9545ac_tool_warned=yes ;;
9546esac
9547    LIPO=$ac_ct_LIPO
9548  fi
9549else
9550  LIPO="$ac_cv_prog_LIPO"
9551fi
9552
9553    if test -n "$ac_tool_prefix"; then
9554  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9555set dummy ${ac_tool_prefix}otool; ac_word=$2
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557$as_echo_n "checking for $ac_word... " >&6; }
9558if ${ac_cv_prog_OTOOL+:} false; then :
9559  $as_echo_n "(cached) " >&6
9560else
9561  if test -n "$OTOOL"; then
9562  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567  IFS=$as_save_IFS
9568  test -z "$as_dir" && as_dir=.
9569    for ac_exec_ext in '' $ac_executable_extensions; do
9570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573    break 2
9574  fi
9575done
9576  done
9577IFS=$as_save_IFS
9578
9579fi
9580fi
9581OTOOL=$ac_cv_prog_OTOOL
9582if test -n "$OTOOL"; then
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9584$as_echo "$OTOOL" >&6; }
9585else
9586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587$as_echo "no" >&6; }
9588fi
9589
9590
9591fi
9592if test -z "$ac_cv_prog_OTOOL"; then
9593  ac_ct_OTOOL=$OTOOL
9594  # Extract the first word of "otool", so it can be a program name with args.
9595set dummy otool; ac_word=$2
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597$as_echo_n "checking for $ac_word... " >&6; }
9598if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9599  $as_echo_n "(cached) " >&6
9600else
9601  if test -n "$ac_ct_OTOOL"; then
9602  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9603else
9604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607  IFS=$as_save_IFS
9608  test -z "$as_dir" && as_dir=.
9609    for ac_exec_ext in '' $ac_executable_extensions; do
9610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611    ac_cv_prog_ac_ct_OTOOL="otool"
9612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613    break 2
9614  fi
9615done
9616  done
9617IFS=$as_save_IFS
9618
9619fi
9620fi
9621ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9622if test -n "$ac_ct_OTOOL"; then
9623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9624$as_echo "$ac_ct_OTOOL" >&6; }
9625else
9626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627$as_echo "no" >&6; }
9628fi
9629
9630  if test "x$ac_ct_OTOOL" = x; then
9631    OTOOL=":"
9632  else
9633    case $cross_compiling:$ac_tool_warned in
9634yes:)
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9637ac_tool_warned=yes ;;
9638esac
9639    OTOOL=$ac_ct_OTOOL
9640  fi
9641else
9642  OTOOL="$ac_cv_prog_OTOOL"
9643fi
9644
9645    if test -n "$ac_tool_prefix"; then
9646  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9647set dummy ${ac_tool_prefix}otool64; ac_word=$2
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649$as_echo_n "checking for $ac_word... " >&6; }
9650if ${ac_cv_prog_OTOOL64+:} false; then :
9651  $as_echo_n "(cached) " >&6
9652else
9653  if test -n "$OTOOL64"; then
9654  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9655else
9656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657for as_dir in $PATH
9658do
9659  IFS=$as_save_IFS
9660  test -z "$as_dir" && as_dir=.
9661    for ac_exec_ext in '' $ac_executable_extensions; do
9662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9663    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9665    break 2
9666  fi
9667done
9668  done
9669IFS=$as_save_IFS
9670
9671fi
9672fi
9673OTOOL64=$ac_cv_prog_OTOOL64
9674if test -n "$OTOOL64"; then
9675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9676$as_echo "$OTOOL64" >&6; }
9677else
9678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679$as_echo "no" >&6; }
9680fi
9681
9682
9683fi
9684if test -z "$ac_cv_prog_OTOOL64"; then
9685  ac_ct_OTOOL64=$OTOOL64
9686  # Extract the first word of "otool64", so it can be a program name with args.
9687set dummy otool64; ac_word=$2
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689$as_echo_n "checking for $ac_word... " >&6; }
9690if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  if test -n "$ac_ct_OTOOL64"; then
9694  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9695else
9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697for as_dir in $PATH
9698do
9699  IFS=$as_save_IFS
9700  test -z "$as_dir" && as_dir=.
9701    for ac_exec_ext in '' $ac_executable_extensions; do
9702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703    ac_cv_prog_ac_ct_OTOOL64="otool64"
9704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705    break 2
9706  fi
9707done
9708  done
9709IFS=$as_save_IFS
9710
9711fi
9712fi
9713ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9714if test -n "$ac_ct_OTOOL64"; then
9715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9716$as_echo "$ac_ct_OTOOL64" >&6; }
9717else
9718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719$as_echo "no" >&6; }
9720fi
9721
9722  if test "x$ac_ct_OTOOL64" = x; then
9723    OTOOL64=":"
9724  else
9725    case $cross_compiling:$ac_tool_warned in
9726yes:)
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9729ac_tool_warned=yes ;;
9730esac
9731    OTOOL64=$ac_ct_OTOOL64
9732  fi
9733else
9734  OTOOL64="$ac_cv_prog_OTOOL64"
9735fi
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9764$as_echo_n "checking for -single_module linker flag... " >&6; }
9765if ${lt_cv_apple_cc_single_mod+:} false; then :
9766  $as_echo_n "(cached) " >&6
9767else
9768  lt_cv_apple_cc_single_mod=no
9769      if test -z "$LT_MULTI_MODULE"; then
9770	# By default we will add the -single_module flag. You can override
9771	# by either setting the environment variable LT_MULTI_MODULE
9772	# non-empty at configure time, or by adding -multi_module to the
9773	# link flags.
9774	rm -rf libconftest.dylib*
9775	echo "int foo(void){return 1;}" > conftest.c
9776	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9777-dynamiclib -Wl,-single_module conftest.c" >&5
9778	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9779	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9780        _lt_result=$?
9781	# If there is a non-empty error log, and "single_module"
9782	# appears in it, assume the flag caused a linker warning
9783        if test -s conftest.err && $GREP single_module conftest.err; then
9784	  cat conftest.err >&5
9785	# Otherwise, if the output was created with a 0 exit code from
9786	# the compiler, it worked.
9787	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9788	  lt_cv_apple_cc_single_mod=yes
9789	else
9790	  cat conftest.err >&5
9791	fi
9792	rm -rf libconftest.dylib*
9793	rm -f conftest.*
9794      fi
9795fi
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9797$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9798
9799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9800$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9801if ${lt_cv_ld_exported_symbols_list+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  lt_cv_ld_exported_symbols_list=no
9805      save_LDFLAGS=$LDFLAGS
9806      echo "_main" > conftest.sym
9807      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9808      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810
9811int
9812main ()
9813{
9814
9815  ;
9816  return 0;
9817}
9818_ACEOF
9819if ac_fn_c_try_link "$LINENO"; then :
9820  lt_cv_ld_exported_symbols_list=yes
9821else
9822  lt_cv_ld_exported_symbols_list=no
9823fi
9824rm -f core conftest.err conftest.$ac_objext \
9825    conftest$ac_exeext conftest.$ac_ext
9826	LDFLAGS=$save_LDFLAGS
9827
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9830$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9831
9832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9833$as_echo_n "checking for -force_load linker flag... " >&6; }
9834if ${lt_cv_ld_force_load+:} false; then :
9835  $as_echo_n "(cached) " >&6
9836else
9837  lt_cv_ld_force_load=no
9838      cat > conftest.c << _LT_EOF
9839int forced_loaded() { return 2;}
9840_LT_EOF
9841      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9842      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9843      echo "$AR cr libconftest.a conftest.o" >&5
9844      $AR cr libconftest.a conftest.o 2>&5
9845      echo "$RANLIB libconftest.a" >&5
9846      $RANLIB libconftest.a 2>&5
9847      cat > conftest.c << _LT_EOF
9848int main() { return 0;}
9849_LT_EOF
9850      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9851      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9852      _lt_result=$?
9853      if test -s conftest.err && $GREP force_load conftest.err; then
9854	cat conftest.err >&5
9855      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9856	lt_cv_ld_force_load=yes
9857      else
9858	cat conftest.err >&5
9859      fi
9860        rm -f conftest.err libconftest.a conftest conftest.c
9861        rm -rf conftest.dSYM
9862
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9865$as_echo "$lt_cv_ld_force_load" >&6; }
9866    case $host_os in
9867    rhapsody* | darwin1.[012])
9868      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9869    darwin1.*)
9870      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9871    darwin*) # darwin 5.x on
9872      # if running on 10.5 or later, the deployment target defaults
9873      # to the OS version, if on x86, and 10.4, the deployment
9874      # target defaults to 10.4. Don't you love it?
9875      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9876	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9877	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9878	10.[012][,.]*)
9879	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9880	10.*)
9881	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9882      esac
9883    ;;
9884  esac
9885    if test yes = "$lt_cv_apple_cc_single_mod"; then
9886      _lt_dar_single_mod='$single_module'
9887    fi
9888    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9889      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9890    else
9891      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9892    fi
9893    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9894      _lt_dsymutil='~$DSYMUTIL $lib || :'
9895    else
9896      _lt_dsymutil=
9897    fi
9898    ;;
9899  esac
9900
9901# func_munge_path_list VARIABLE PATH
9902# -----------------------------------
9903# VARIABLE is name of variable containing _space_ separated list of
9904# directories to be munged by the contents of PATH, which is string
9905# having a format:
9906# "DIR[:DIR]:"
9907#       string "DIR[ DIR]" will be prepended to VARIABLE
9908# ":DIR[:DIR]"
9909#       string "DIR[ DIR]" will be appended to VARIABLE
9910# "DIRP[:DIRP]::[DIRA:]DIRA"
9911#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9912#       "DIRA[ DIRA]" will be appended to VARIABLE
9913# "DIR[:DIR]"
9914#       VARIABLE will be replaced by "DIR[ DIR]"
9915func_munge_path_list ()
9916{
9917    case x$2 in
9918    x)
9919        ;;
9920    *:)
9921        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9922        ;;
9923    x:*)
9924        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9925        ;;
9926    *::*)
9927        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9928        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9929        ;;
9930    *)
9931        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9932        ;;
9933    esac
9934}
9935
9936for ac_header in dlfcn.h
9937do :
9938  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9939"
9940if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9941  cat >>confdefs.h <<_ACEOF
9942#define HAVE_DLFCN_H 1
9943_ACEOF
9944
9945fi
9946
9947done
9948
9949
9950
9951
9952
9953# Set options
9954
9955
9956
9957
9958  enable_win32_dll=no
9959
9960
9961            # Check whether --enable-shared was given.
9962if test "${enable_shared+set}" = set; then :
9963  enableval=$enable_shared; p=${PACKAGE-default}
9964    case $enableval in
9965    yes) enable_shared=yes ;;
9966    no) enable_shared=no ;;
9967    *)
9968      enable_shared=no
9969      # Look at the argument we got.  We use all the common list separators.
9970      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9971      for pkg in $enableval; do
9972	IFS=$lt_save_ifs
9973	if test "X$pkg" = "X$p"; then
9974	  enable_shared=yes
9975	fi
9976      done
9977      IFS=$lt_save_ifs
9978      ;;
9979    esac
9980else
9981  enable_shared=yes
9982fi
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994# Check whether --with-pic was given.
9995if test "${with_pic+set}" = set; then :
9996  withval=$with_pic; lt_p=${PACKAGE-default}
9997    case $withval in
9998    yes|no) pic_mode=$withval ;;
9999    *)
10000      pic_mode=default
10001      # Look at the argument we got.  We use all the common list separators.
10002      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10003      for lt_pkg in $withval; do
10004	IFS=$lt_save_ifs
10005	if test "X$lt_pkg" = "X$lt_p"; then
10006	  pic_mode=yes
10007	fi
10008      done
10009      IFS=$lt_save_ifs
10010      ;;
10011    esac
10012else
10013  pic_mode=default
10014fi
10015
10016
10017
10018
10019
10020
10021
10022
10023  # Check whether --enable-fast-install was given.
10024if test "${enable_fast_install+set}" = set; then :
10025  enableval=$enable_fast_install; p=${PACKAGE-default}
10026    case $enableval in
10027    yes) enable_fast_install=yes ;;
10028    no) enable_fast_install=no ;;
10029    *)
10030      enable_fast_install=no
10031      # Look at the argument we got.  We use all the common list separators.
10032      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10033      for pkg in $enableval; do
10034	IFS=$lt_save_ifs
10035	if test "X$pkg" = "X$p"; then
10036	  enable_fast_install=yes
10037	fi
10038      done
10039      IFS=$lt_save_ifs
10040      ;;
10041    esac
10042else
10043  enable_fast_install=yes
10044fi
10045
10046
10047
10048
10049
10050
10051
10052
10053  shared_archive_member_spec=
10054case $host,$enable_shared in
10055power*-*-aix[5-9]*,yes)
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10057$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10058
10059# Check whether --with-aix-soname was given.
10060if test "${with_aix_soname+set}" = set; then :
10061  withval=$with_aix_soname; case $withval in
10062    aix|svr4|both)
10063      ;;
10064    *)
10065      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10066      ;;
10067    esac
10068    lt_cv_with_aix_soname=$with_aix_soname
10069else
10070  if ${lt_cv_with_aix_soname+:} false; then :
10071  $as_echo_n "(cached) " >&6
10072else
10073  lt_cv_with_aix_soname=aix
10074fi
10075
10076    with_aix_soname=$lt_cv_with_aix_soname
10077fi
10078
10079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10080$as_echo "$with_aix_soname" >&6; }
10081  if test aix != "$with_aix_soname"; then
10082    # For the AIX way of multilib, we name the shared archive member
10083    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10084    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10085    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10086    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10087    if test 64 = "${OBJECT_MODE-32}"; then
10088      shared_archive_member_spec=shr_64
10089    else
10090      shared_archive_member_spec=shr
10091    fi
10092  fi
10093  ;;
10094*)
10095  with_aix_soname=aix
10096  ;;
10097esac
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108# This can be used to rebuild libtool when needed
10109LIBTOOL_DEPS=$ltmain
10110
10111# Always use our own libtool.
10112LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143test -z "$LN_S" && LN_S="ln -s"
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158if test -n "${ZSH_VERSION+set}"; then
10159   setopt NO_GLOB_SUBST
10160fi
10161
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10163$as_echo_n "checking for objdir... " >&6; }
10164if ${lt_cv_objdir+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  rm -f .libs 2>/dev/null
10168mkdir .libs 2>/dev/null
10169if test -d .libs; then
10170  lt_cv_objdir=.libs
10171else
10172  # MS-DOS does not allow filenames that begin with a dot.
10173  lt_cv_objdir=_libs
10174fi
10175rmdir .libs 2>/dev/null
10176fi
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10178$as_echo "$lt_cv_objdir" >&6; }
10179objdir=$lt_cv_objdir
10180
10181
10182
10183
10184
10185cat >>confdefs.h <<_ACEOF
10186#define LT_OBJDIR "$lt_cv_objdir/"
10187_ACEOF
10188
10189
10190
10191
10192case $host_os in
10193aix3*)
10194  # AIX sometimes has problems with the GCC collect2 program.  For some
10195  # reason, if we set the COLLECT_NAMES environment variable, the problems
10196  # vanish in a puff of smoke.
10197  if test set != "${COLLECT_NAMES+set}"; then
10198    COLLECT_NAMES=
10199    export COLLECT_NAMES
10200  fi
10201  ;;
10202esac
10203
10204# Global variables:
10205ofile=libtool
10206can_build_shared=yes
10207
10208# All known linkers require a '.a' archive for static linking (except MSVC,
10209# which needs '.lib').
10210libext=a
10211
10212with_gnu_ld=$lt_cv_prog_gnu_ld
10213
10214old_CC=$CC
10215old_CFLAGS=$CFLAGS
10216
10217# Set sane defaults for various variables
10218test -z "$CC" && CC=cc
10219test -z "$LTCC" && LTCC=$CC
10220test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10221test -z "$LD" && LD=ld
10222test -z "$ac_objext" && ac_objext=o
10223
10224func_cc_basename $compiler
10225cc_basename=$func_cc_basename_result
10226
10227
10228# Only perform the check for file, if the check method requires it
10229test -z "$MAGIC_CMD" && MAGIC_CMD=file
10230case $deplibs_check_method in
10231file_magic*)
10232  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10234$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10235if ${lt_cv_path_MAGIC_CMD+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  case $MAGIC_CMD in
10239[\\/*] |  ?:[\\/]*)
10240  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10241  ;;
10242*)
10243  lt_save_MAGIC_CMD=$MAGIC_CMD
10244  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10245  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10246  for ac_dir in $ac_dummy; do
10247    IFS=$lt_save_ifs
10248    test -z "$ac_dir" && ac_dir=.
10249    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10250      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10251      if test -n "$file_magic_test_file"; then
10252	case $deplibs_check_method in
10253	"file_magic "*)
10254	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10255	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10256	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10257	    $EGREP "$file_magic_regex" > /dev/null; then
10258	    :
10259	  else
10260	    cat <<_LT_EOF 1>&2
10261
10262*** Warning: the command libtool uses to detect shared libraries,
10263*** $file_magic_cmd, produces output that libtool cannot recognize.
10264*** The result is that libtool may fail to recognize shared libraries
10265*** as such.  This will affect the creation of libtool libraries that
10266*** depend on shared libraries, but programs linked with such libtool
10267*** libraries will work regardless of this problem.  Nevertheless, you
10268*** may want to report the problem to your system manager and/or to
10269*** bug-libtool@gnu.org
10270
10271_LT_EOF
10272	  fi ;;
10273	esac
10274      fi
10275      break
10276    fi
10277  done
10278  IFS=$lt_save_ifs
10279  MAGIC_CMD=$lt_save_MAGIC_CMD
10280  ;;
10281esac
10282fi
10283
10284MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10285if test -n "$MAGIC_CMD"; then
10286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10287$as_echo "$MAGIC_CMD" >&6; }
10288else
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290$as_echo "no" >&6; }
10291fi
10292
10293
10294
10295
10296
10297if test -z "$lt_cv_path_MAGIC_CMD"; then
10298  if test -n "$ac_tool_prefix"; then
10299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10300$as_echo_n "checking for file... " >&6; }
10301if ${lt_cv_path_MAGIC_CMD+:} false; then :
10302  $as_echo_n "(cached) " >&6
10303else
10304  case $MAGIC_CMD in
10305[\\/*] |  ?:[\\/]*)
10306  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10307  ;;
10308*)
10309  lt_save_MAGIC_CMD=$MAGIC_CMD
10310  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10311  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10312  for ac_dir in $ac_dummy; do
10313    IFS=$lt_save_ifs
10314    test -z "$ac_dir" && ac_dir=.
10315    if test -f "$ac_dir/file"; then
10316      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10317      if test -n "$file_magic_test_file"; then
10318	case $deplibs_check_method in
10319	"file_magic "*)
10320	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10321	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10322	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10323	    $EGREP "$file_magic_regex" > /dev/null; then
10324	    :
10325	  else
10326	    cat <<_LT_EOF 1>&2
10327
10328*** Warning: the command libtool uses to detect shared libraries,
10329*** $file_magic_cmd, produces output that libtool cannot recognize.
10330*** The result is that libtool may fail to recognize shared libraries
10331*** as such.  This will affect the creation of libtool libraries that
10332*** depend on shared libraries, but programs linked with such libtool
10333*** libraries will work regardless of this problem.  Nevertheless, you
10334*** may want to report the problem to your system manager and/or to
10335*** bug-libtool@gnu.org
10336
10337_LT_EOF
10338	  fi ;;
10339	esac
10340      fi
10341      break
10342    fi
10343  done
10344  IFS=$lt_save_ifs
10345  MAGIC_CMD=$lt_save_MAGIC_CMD
10346  ;;
10347esac
10348fi
10349
10350MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10351if test -n "$MAGIC_CMD"; then
10352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10353$as_echo "$MAGIC_CMD" >&6; }
10354else
10355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356$as_echo "no" >&6; }
10357fi
10358
10359
10360  else
10361    MAGIC_CMD=:
10362  fi
10363fi
10364
10365  fi
10366  ;;
10367esac
10368
10369# Use C for the default configuration in the libtool script
10370
10371lt_save_CC=$CC
10372ac_ext=c
10373ac_cpp='$CPP $CPPFLAGS'
10374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10376ac_compiler_gnu=$ac_cv_c_compiler_gnu
10377
10378
10379# Source file extension for C test sources.
10380ac_ext=c
10381
10382# Object file extension for compiled C test sources.
10383objext=o
10384objext=$objext
10385
10386# Code to be used in simple compile tests
10387lt_simple_compile_test_code="int some_variable = 0;"
10388
10389# Code to be used in simple link tests
10390lt_simple_link_test_code='int main(){return(0);}'
10391
10392
10393
10394
10395
10396
10397
10398# If no C compiler was specified, use CC.
10399LTCC=${LTCC-"$CC"}
10400
10401# If no C compiler flags were specified, use CFLAGS.
10402LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10403
10404# Allow CC to be a program name with arguments.
10405compiler=$CC
10406
10407# Save the default compiler, since it gets overwritten when the other
10408# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10409compiler_DEFAULT=$CC
10410
10411# save warnings/boilerplate of simple test code
10412ac_outfile=conftest.$ac_objext
10413echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10414eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10415_lt_compiler_boilerplate=`cat conftest.err`
10416$RM conftest*
10417
10418ac_outfile=conftest.$ac_objext
10419echo "$lt_simple_link_test_code" >conftest.$ac_ext
10420eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10421_lt_linker_boilerplate=`cat conftest.err`
10422$RM -r conftest*
10423
10424
10425## CAVEAT EMPTOR:
10426## There is no encapsulation within the following macros, do not change
10427## the running order or otherwise move them around unless you know exactly
10428## what you are doing...
10429if test -n "$compiler"; then
10430
10431lt_prog_compiler_no_builtin_flag=
10432
10433if test yes = "$GCC"; then
10434  case $cc_basename in
10435  nvcc*)
10436    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10437  *)
10438    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10439  esac
10440
10441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10442$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10443if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  lt_cv_prog_compiler_rtti_exceptions=no
10447   ac_outfile=conftest.$ac_objext
10448   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10449   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10450   # Insert the option either (1) after the last *FLAGS variable, or
10451   # (2) before a word containing "conftest.", or (3) at the end.
10452   # Note that $ac_compile itself does not contain backslashes and begins
10453   # with a dollar sign (not a hyphen), so the echo should work correctly.
10454   # The option is referenced via a variable to avoid confusing sed.
10455   lt_compile=`echo "$ac_compile" | $SED \
10456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10458   -e 's:$: $lt_compiler_flag:'`
10459   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10460   (eval "$lt_compile" 2>conftest.err)
10461   ac_status=$?
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   if (exit $ac_status) && test -s "$ac_outfile"; then
10465     # The compiler can only warn and ignore the option if not recognized
10466     # So say no if there are warnings other than the usual output.
10467     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10468     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10469     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10470       lt_cv_prog_compiler_rtti_exceptions=yes
10471     fi
10472   fi
10473   $RM conftest*
10474
10475fi
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10477$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10478
10479if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10480    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10481else
10482    :
10483fi
10484
10485fi
10486
10487
10488
10489
10490
10491
10492  lt_prog_compiler_wl=
10493lt_prog_compiler_pic=
10494lt_prog_compiler_static=
10495
10496
10497  if test yes = "$GCC"; then
10498    lt_prog_compiler_wl='-Wl,'
10499    lt_prog_compiler_static='-static'
10500
10501    case $host_os in
10502      aix*)
10503      # All AIX code is PIC.
10504      if test ia64 = "$host_cpu"; then
10505	# AIX 5 now supports IA64 processor
10506	lt_prog_compiler_static='-Bstatic'
10507      fi
10508      lt_prog_compiler_pic='-fPIC'
10509      ;;
10510
10511    amigaos*)
10512      case $host_cpu in
10513      powerpc)
10514            # see comment about AmigaOS4 .so support
10515            lt_prog_compiler_pic='-fPIC'
10516        ;;
10517      m68k)
10518            # FIXME: we need at least 68020 code to build shared libraries, but
10519            # adding the '-m68020' flag to GCC prevents building anything better,
10520            # like '-m68040'.
10521            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10522        ;;
10523      esac
10524      ;;
10525
10526    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10527      # PIC is the default for these OSes.
10528      ;;
10529
10530    mingw* | cygwin* | pw32* | os2* | cegcc*)
10531      # This hack is so that the source file can tell whether it is being
10532      # built for inclusion in a dll (and should export symbols for example).
10533      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10534      # (--disable-auto-import) libraries
10535      lt_prog_compiler_pic='-DDLL_EXPORT'
10536      case $host_os in
10537      os2*)
10538	lt_prog_compiler_static='$wl-static'
10539	;;
10540      esac
10541      ;;
10542
10543    darwin* | rhapsody*)
10544      # PIC is the default on this platform
10545      # Common symbols not allowed in MH_DYLIB files
10546      lt_prog_compiler_pic='-fno-common'
10547      ;;
10548
10549    haiku*)
10550      # PIC is the default for Haiku.
10551      # The "-static" flag exists, but is broken.
10552      lt_prog_compiler_static=
10553      ;;
10554
10555    hpux*)
10556      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10557      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10558      # sets the default TLS model and affects inlining.
10559      case $host_cpu in
10560      hppa*64*)
10561	# +Z the default
10562	;;
10563      *)
10564	lt_prog_compiler_pic='-fPIC'
10565	;;
10566      esac
10567      ;;
10568
10569    interix[3-9]*)
10570      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10571      # Instead, we relocate shared libraries at runtime.
10572      ;;
10573
10574    msdosdjgpp*)
10575      # Just because we use GCC doesn't mean we suddenly get shared libraries
10576      # on systems that don't support them.
10577      lt_prog_compiler_can_build_shared=no
10578      enable_shared=no
10579      ;;
10580
10581    *nto* | *qnx*)
10582      # QNX uses GNU C++, but need to define -shared option too, otherwise
10583      # it will coredump.
10584      lt_prog_compiler_pic='-fPIC -shared'
10585      ;;
10586
10587    sysv4*MP*)
10588      if test -d /usr/nec; then
10589	lt_prog_compiler_pic=-Kconform_pic
10590      fi
10591      ;;
10592
10593    *)
10594      lt_prog_compiler_pic='-fPIC'
10595      ;;
10596    esac
10597
10598    case $cc_basename in
10599    nvcc*) # Cuda Compiler Driver 2.2
10600      lt_prog_compiler_wl='-Xlinker '
10601      if test -n "$lt_prog_compiler_pic"; then
10602        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10603      fi
10604      ;;
10605    esac
10606  else
10607    # PORTME Check for flag to pass linker flags through the system compiler.
10608    case $host_os in
10609    aix*)
10610      lt_prog_compiler_wl='-Wl,'
10611      if test ia64 = "$host_cpu"; then
10612	# AIX 5 now supports IA64 processor
10613	lt_prog_compiler_static='-Bstatic'
10614      else
10615	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10616      fi
10617      ;;
10618
10619    darwin* | rhapsody*)
10620      # PIC is the default on this platform
10621      # Common symbols not allowed in MH_DYLIB files
10622      lt_prog_compiler_pic='-fno-common'
10623      case $cc_basename in
10624      nagfor*)
10625        # NAG Fortran compiler
10626        lt_prog_compiler_wl='-Wl,-Wl,,'
10627        lt_prog_compiler_pic='-PIC'
10628        lt_prog_compiler_static='-Bstatic'
10629        ;;
10630      esac
10631      ;;
10632
10633    mingw* | cygwin* | pw32* | os2* | cegcc*)
10634      # This hack is so that the source file can tell whether it is being
10635      # built for inclusion in a dll (and should export symbols for example).
10636      lt_prog_compiler_pic='-DDLL_EXPORT'
10637      case $host_os in
10638      os2*)
10639	lt_prog_compiler_static='$wl-static'
10640	;;
10641      esac
10642      ;;
10643
10644    hpux9* | hpux10* | hpux11*)
10645      lt_prog_compiler_wl='-Wl,'
10646      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10647      # not for PA HP-UX.
10648      case $host_cpu in
10649      hppa*64*|ia64*)
10650	# +Z the default
10651	;;
10652      *)
10653	lt_prog_compiler_pic='+Z'
10654	;;
10655      esac
10656      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10657      lt_prog_compiler_static='$wl-a ${wl}archive'
10658      ;;
10659
10660    irix5* | irix6* | nonstopux*)
10661      lt_prog_compiler_wl='-Wl,'
10662      # PIC (with -KPIC) is the default.
10663      lt_prog_compiler_static='-non_shared'
10664      ;;
10665
10666    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10667      case $cc_basename in
10668      # old Intel for x86_64, which still supported -KPIC.
10669      ecc*)
10670	lt_prog_compiler_wl='-Wl,'
10671	lt_prog_compiler_pic='-KPIC'
10672	lt_prog_compiler_static='-static'
10673        ;;
10674      # flang / f18. f95 an alias for gfortran or flang on Debian
10675      flang* | f18* | f95*)
10676	lt_prog_compiler_wl='-Wl,'
10677	lt_prog_compiler_pic='-fPIC'
10678	lt_prog_compiler_static='-static'
10679        ;;
10680      # icc used to be incompatible with GCC.
10681      # ICC 10 doesn't accept -KPIC any more.
10682      icc* | ifort*)
10683	lt_prog_compiler_wl='-Wl,'
10684	lt_prog_compiler_pic='-fPIC'
10685	lt_prog_compiler_static='-static'
10686        ;;
10687      # Lahey Fortran 8.1.
10688      lf95*)
10689	lt_prog_compiler_wl='-Wl,'
10690	lt_prog_compiler_pic='--shared'
10691	lt_prog_compiler_static='--static'
10692	;;
10693      nagfor*)
10694	# NAG Fortran compiler
10695	lt_prog_compiler_wl='-Wl,-Wl,,'
10696	lt_prog_compiler_pic='-PIC'
10697	lt_prog_compiler_static='-Bstatic'
10698	;;
10699      tcc*)
10700	# Fabrice Bellard et al's Tiny C Compiler
10701	lt_prog_compiler_wl='-Wl,'
10702	lt_prog_compiler_pic='-fPIC'
10703	lt_prog_compiler_static='-static'
10704	;;
10705      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10706        # Portland Group compilers (*not* the Pentium gcc compiler,
10707	# which looks to be a dead project)
10708	lt_prog_compiler_wl='-Wl,'
10709	lt_prog_compiler_pic='-fpic'
10710	lt_prog_compiler_static='-Bstatic'
10711        ;;
10712      ccc*)
10713        lt_prog_compiler_wl='-Wl,'
10714        # All Alpha code is PIC.
10715        lt_prog_compiler_static='-non_shared'
10716        ;;
10717      xl* | bgxl* | bgf* | mpixl*)
10718	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10719	lt_prog_compiler_wl='-Wl,'
10720	lt_prog_compiler_pic='-qpic'
10721	lt_prog_compiler_static='-qstaticlink'
10722	;;
10723      *)
10724	case `$CC -V 2>&1 | sed 5q` in
10725	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10726	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10727	  lt_prog_compiler_pic='-KPIC'
10728	  lt_prog_compiler_static='-Bstatic'
10729	  lt_prog_compiler_wl=''
10730	  ;;
10731	*Sun\ F* | *Sun*Fortran*)
10732	  lt_prog_compiler_pic='-KPIC'
10733	  lt_prog_compiler_static='-Bstatic'
10734	  lt_prog_compiler_wl='-Qoption ld '
10735	  ;;
10736	*Sun\ C*)
10737	  # Sun C 5.9
10738	  lt_prog_compiler_pic='-KPIC'
10739	  lt_prog_compiler_static='-Bstatic'
10740	  lt_prog_compiler_wl='-Wl,'
10741	  ;;
10742        *Intel*\ [CF]*Compiler*)
10743	  lt_prog_compiler_wl='-Wl,'
10744	  lt_prog_compiler_pic='-fPIC'
10745	  lt_prog_compiler_static='-static'
10746	  ;;
10747	*Portland\ Group*)
10748	  lt_prog_compiler_wl='-Wl,'
10749	  lt_prog_compiler_pic='-fpic'
10750	  lt_prog_compiler_static='-Bstatic'
10751	  ;;
10752	esac
10753	;;
10754      esac
10755      ;;
10756
10757    newsos6)
10758      lt_prog_compiler_pic='-KPIC'
10759      lt_prog_compiler_static='-Bstatic'
10760      ;;
10761
10762    *nto* | *qnx*)
10763      # QNX uses GNU C++, but need to define -shared option too, otherwise
10764      # it will coredump.
10765      lt_prog_compiler_pic='-fPIC -shared'
10766      ;;
10767
10768    osf3* | osf4* | osf5*)
10769      lt_prog_compiler_wl='-Wl,'
10770      # All OSF/1 code is PIC.
10771      lt_prog_compiler_static='-non_shared'
10772      ;;
10773
10774    rdos*)
10775      lt_prog_compiler_static='-non_shared'
10776      ;;
10777
10778    solaris*)
10779      lt_prog_compiler_pic='-KPIC'
10780      lt_prog_compiler_static='-Bstatic'
10781      case $cc_basename in
10782      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10783	lt_prog_compiler_wl='-Qoption ld ';;
10784      *)
10785	lt_prog_compiler_wl='-Wl,';;
10786      esac
10787      ;;
10788
10789    sunos4*)
10790      lt_prog_compiler_wl='-Qoption ld '
10791      lt_prog_compiler_pic='-PIC'
10792      lt_prog_compiler_static='-Bstatic'
10793      ;;
10794
10795    sysv4 | sysv4.2uw2* | sysv4.3*)
10796      lt_prog_compiler_wl='-Wl,'
10797      lt_prog_compiler_pic='-KPIC'
10798      lt_prog_compiler_static='-Bstatic'
10799      ;;
10800
10801    sysv4*MP*)
10802      if test -d /usr/nec; then
10803	lt_prog_compiler_pic='-Kconform_pic'
10804	lt_prog_compiler_static='-Bstatic'
10805      fi
10806      ;;
10807
10808    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10809      lt_prog_compiler_wl='-Wl,'
10810      lt_prog_compiler_pic='-KPIC'
10811      lt_prog_compiler_static='-Bstatic'
10812      ;;
10813
10814    unicos*)
10815      lt_prog_compiler_wl='-Wl,'
10816      lt_prog_compiler_can_build_shared=no
10817      ;;
10818
10819    uts4*)
10820      lt_prog_compiler_pic='-pic'
10821      lt_prog_compiler_static='-Bstatic'
10822      ;;
10823
10824    *)
10825      lt_prog_compiler_can_build_shared=no
10826      ;;
10827    esac
10828  fi
10829
10830case $host_os in
10831  # For platforms that do not support PIC, -DPIC is meaningless:
10832  *djgpp*)
10833    lt_prog_compiler_pic=
10834    ;;
10835  *)
10836    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10837    ;;
10838esac
10839
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10841$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10842if ${lt_cv_prog_compiler_pic+:} false; then :
10843  $as_echo_n "(cached) " >&6
10844else
10845  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10846fi
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10848$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10849lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10850
10851#
10852# Check to make sure the PIC flag actually works.
10853#
10854if test -n "$lt_prog_compiler_pic"; then
10855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10856$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10857if ${lt_cv_prog_compiler_pic_works+:} false; then :
10858  $as_echo_n "(cached) " >&6
10859else
10860  lt_cv_prog_compiler_pic_works=no
10861   ac_outfile=conftest.$ac_objext
10862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10863   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10864   # Insert the option either (1) after the last *FLAGS variable, or
10865   # (2) before a word containing "conftest.", or (3) at the end.
10866   # Note that $ac_compile itself does not contain backslashes and begins
10867   # with a dollar sign (not a hyphen), so the echo should work correctly.
10868   # The option is referenced via a variable to avoid confusing sed.
10869   lt_compile=`echo "$ac_compile" | $SED \
10870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872   -e 's:$: $lt_compiler_flag:'`
10873   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10874   (eval "$lt_compile" 2>conftest.err)
10875   ac_status=$?
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   if (exit $ac_status) && test -s "$ac_outfile"; then
10879     # The compiler can only warn and ignore the option if not recognized
10880     # So say no if there are warnings other than the usual output.
10881     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10882     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10883     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10884       lt_cv_prog_compiler_pic_works=yes
10885     fi
10886   fi
10887   $RM conftest*
10888
10889fi
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10891$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10892
10893if test yes = "$lt_cv_prog_compiler_pic_works"; then
10894    case $lt_prog_compiler_pic in
10895     "" | " "*) ;;
10896     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10897     esac
10898else
10899    lt_prog_compiler_pic=
10900     lt_prog_compiler_can_build_shared=no
10901fi
10902
10903fi
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915#
10916# Check to make sure the static flag actually works.
10917#
10918wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10920$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10921if ${lt_cv_prog_compiler_static_works+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  lt_cv_prog_compiler_static_works=no
10925   save_LDFLAGS=$LDFLAGS
10926   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10927   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10928   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10929     # The linker can only warn and ignore the option if not recognized
10930     # So say no if there are warnings
10931     if test -s conftest.err; then
10932       # Append any errors to the config.log.
10933       cat conftest.err 1>&5
10934       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10935       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10936       if diff conftest.exp conftest.er2 >/dev/null; then
10937         lt_cv_prog_compiler_static_works=yes
10938       fi
10939     else
10940       lt_cv_prog_compiler_static_works=yes
10941     fi
10942   fi
10943   $RM -r conftest*
10944   LDFLAGS=$save_LDFLAGS
10945
10946fi
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10948$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10949
10950if test yes = "$lt_cv_prog_compiler_static_works"; then
10951    :
10952else
10953    lt_prog_compiler_static=
10954fi
10955
10956
10957
10958
10959
10960
10961
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10964if ${lt_cv_prog_compiler_c_o+:} false; then :
10965  $as_echo_n "(cached) " >&6
10966else
10967  lt_cv_prog_compiler_c_o=no
10968   $RM -r conftest 2>/dev/null
10969   mkdir conftest
10970   cd conftest
10971   mkdir out
10972   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10973
10974   lt_compiler_flag="-o out/conftest2.$ac_objext"
10975   # Insert the option either (1) after the last *FLAGS variable, or
10976   # (2) before a word containing "conftest.", or (3) at the end.
10977   # Note that $ac_compile itself does not contain backslashes and begins
10978   # with a dollar sign (not a hyphen), so the echo should work correctly.
10979   lt_compile=`echo "$ac_compile" | $SED \
10980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10982   -e 's:$: $lt_compiler_flag:'`
10983   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10984   (eval "$lt_compile" 2>out/conftest.err)
10985   ac_status=$?
10986   cat out/conftest.err >&5
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10989   then
10990     # The compiler can only warn and ignore the option if not recognized
10991     # So say no if there are warnings
10992     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10993     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10994     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10995       lt_cv_prog_compiler_c_o=yes
10996     fi
10997   fi
10998   chmod u+w . 2>&5
10999   $RM conftest*
11000   # SGI C++ compiler will create directory out/ii_files/ for
11001   # template instantiation
11002   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11003   $RM out/* && rmdir out
11004   cd ..
11005   $RM -r conftest
11006   $RM conftest*
11007
11008fi
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11010$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11011
11012
11013
11014
11015
11016
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11018$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11019if ${lt_cv_prog_compiler_c_o+:} false; then :
11020  $as_echo_n "(cached) " >&6
11021else
11022  lt_cv_prog_compiler_c_o=no
11023   $RM -r conftest 2>/dev/null
11024   mkdir conftest
11025   cd conftest
11026   mkdir out
11027   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11028
11029   lt_compiler_flag="-o out/conftest2.$ac_objext"
11030   # Insert the option either (1) after the last *FLAGS variable, or
11031   # (2) before a word containing "conftest.", or (3) at the end.
11032   # Note that $ac_compile itself does not contain backslashes and begins
11033   # with a dollar sign (not a hyphen), so the echo should work correctly.
11034   lt_compile=`echo "$ac_compile" | $SED \
11035   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11036   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11037   -e 's:$: $lt_compiler_flag:'`
11038   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11039   (eval "$lt_compile" 2>out/conftest.err)
11040   ac_status=$?
11041   cat out/conftest.err >&5
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11044   then
11045     # The compiler can only warn and ignore the option if not recognized
11046     # So say no if there are warnings
11047     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11048     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11049     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11050       lt_cv_prog_compiler_c_o=yes
11051     fi
11052   fi
11053   chmod u+w . 2>&5
11054   $RM conftest*
11055   # SGI C++ compiler will create directory out/ii_files/ for
11056   # template instantiation
11057   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11058   $RM out/* && rmdir out
11059   cd ..
11060   $RM -r conftest
11061   $RM conftest*
11062
11063fi
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11065$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11066
11067
11068
11069
11070hard_links=nottested
11071if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11072  # do not overwrite the value of need_locks provided by the user
11073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11074$as_echo_n "checking if we can lock with hard links... " >&6; }
11075  hard_links=yes
11076  $RM conftest*
11077  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11078  touch conftest.a
11079  ln conftest.a conftest.b 2>&5 || hard_links=no
11080  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11082$as_echo "$hard_links" >&6; }
11083  if test no = "$hard_links"; then
11084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11085$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11086    need_locks=warn
11087  fi
11088else
11089  need_locks=no
11090fi
11091
11092
11093
11094
11095
11096
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11098$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11099
11100  runpath_var=
11101  allow_undefined_flag=
11102  always_export_symbols=no
11103  archive_cmds=
11104  archive_expsym_cmds=
11105  compiler_needs_object=no
11106  enable_shared_with_static_runtimes=no
11107  export_dynamic_flag_spec=
11108  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11109  hardcode_automatic=no
11110  hardcode_direct=no
11111  hardcode_direct_absolute=no
11112  hardcode_libdir_flag_spec=
11113  hardcode_libdir_separator=
11114  hardcode_minus_L=no
11115  hardcode_shlibpath_var=unsupported
11116  inherit_rpath=no
11117  link_all_deplibs=unknown
11118  module_cmds=
11119  module_expsym_cmds=
11120  old_archive_from_new_cmds=
11121  old_archive_from_expsyms_cmds=
11122  thread_safe_flag_spec=
11123  whole_archive_flag_spec=
11124  # include_expsyms should be a list of space-separated symbols to be *always*
11125  # included in the symbol list
11126  include_expsyms=
11127  # exclude_expsyms can be an extended regexp of symbols to exclude
11128  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11129  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11130  # as well as any symbol that contains 'd'.
11131  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11132  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11133  # platforms (ab)use it in PIC code, but their linkers get confused if
11134  # the symbol is explicitly referenced.  Since portable code cannot
11135  # rely on this symbol name, it's probably fine to never include it in
11136  # preloaded symbol tables.
11137  # Exclude shared library initialization/finalization symbols.
11138  extract_expsyms_cmds=
11139
11140  case $host_os in
11141  cygwin* | mingw* | pw32* | cegcc*)
11142    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11143    # When not using gcc, we currently assume that we are using
11144    # Microsoft Visual C++.
11145    if test yes != "$GCC"; then
11146      with_gnu_ld=no
11147    fi
11148    ;;
11149  interix*)
11150    # we just hope/assume this is gcc and not c89 (= MSVC++)
11151    with_gnu_ld=yes
11152    ;;
11153  openbsd* | bitrig*)
11154    with_gnu_ld=no
11155    ;;
11156  linux* | k*bsd*-gnu | gnu*)
11157    link_all_deplibs=no
11158    ;;
11159  esac
11160
11161  ld_shlibs=yes
11162
11163  # On some targets, GNU ld is compatible enough with the native linker
11164  # that we're better off using the native interface for both.
11165  lt_use_gnu_ld_interface=no
11166  if test yes = "$with_gnu_ld"; then
11167    case $host_os in
11168      aix*)
11169	# The AIX port of GNU ld has always aspired to compatibility
11170	# with the native linker.  However, as the warning in the GNU ld
11171	# block says, versions before 2.19.5* couldn't really create working
11172	# shared libraries, regardless of the interface used.
11173	case `$LD -v 2>&1` in
11174	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11175	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11176	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11177	  *)
11178	    lt_use_gnu_ld_interface=yes
11179	    ;;
11180	esac
11181	;;
11182      *)
11183	lt_use_gnu_ld_interface=yes
11184	;;
11185    esac
11186  fi
11187
11188  if test yes = "$lt_use_gnu_ld_interface"; then
11189    # If archive_cmds runs LD, not CC, wlarc should be empty
11190    wlarc='$wl'
11191
11192    # Set some defaults for GNU ld with shared library support. These
11193    # are reset later if shared libraries are not supported. Putting them
11194    # here allows them to be overridden if necessary.
11195    runpath_var=LD_RUN_PATH
11196    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11197    export_dynamic_flag_spec='$wl--export-dynamic'
11198    # ancient GNU ld didn't support --whole-archive et. al.
11199    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11200      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11201    else
11202      whole_archive_flag_spec=
11203    fi
11204    supports_anon_versioning=no
11205    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11206      *GNU\ gold*) supports_anon_versioning=yes ;;
11207      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11208      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11209      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11210      *\ 2.11.*) ;; # other 2.11 versions
11211      *) supports_anon_versioning=yes ;;
11212    esac
11213
11214    # See if GNU ld supports shared libraries.
11215    case $host_os in
11216    aix[3-9]*)
11217      # On AIX/PPC, the GNU linker is very broken
11218      if test ia64 != "$host_cpu"; then
11219	ld_shlibs=no
11220	cat <<_LT_EOF 1>&2
11221
11222*** Warning: the GNU linker, at least up to release 2.19, is reported
11223*** to be unable to reliably create shared libraries on AIX.
11224*** Therefore, libtool is disabling shared libraries support.  If you
11225*** really care for shared libraries, you may want to install binutils
11226*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11227*** You will then need to restart the configuration process.
11228
11229_LT_EOF
11230      fi
11231      ;;
11232
11233    amigaos*)
11234      case $host_cpu in
11235      powerpc)
11236            # see comment about AmigaOS4 .so support
11237            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11238            archive_expsym_cmds=''
11239        ;;
11240      m68k)
11241            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)'
11242            hardcode_libdir_flag_spec='-L$libdir'
11243            hardcode_minus_L=yes
11244        ;;
11245      esac
11246      ;;
11247
11248    beos*)
11249      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11250	allow_undefined_flag=unsupported
11251	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11252	# support --undefined.  This deserves some investigation.  FIXME
11253	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11254      else
11255	ld_shlibs=no
11256      fi
11257      ;;
11258
11259    cygwin* | mingw* | pw32* | cegcc*)
11260      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11261      # as there is no search path for DLLs.
11262      hardcode_libdir_flag_spec='-L$libdir'
11263      export_dynamic_flag_spec='$wl--export-all-symbols'
11264      allow_undefined_flag=unsupported
11265      always_export_symbols=no
11266      enable_shared_with_static_runtimes=yes
11267      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'
11268      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11269
11270      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11271        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11272	# If the export-symbols file already is a .def file, use it as
11273	# is; otherwise, prepend EXPORTS...
11274	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11275          cp $export_symbols $output_objdir/$soname.def;
11276        else
11277          echo EXPORTS > $output_objdir/$soname.def;
11278          cat $export_symbols >> $output_objdir/$soname.def;
11279        fi~
11280        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11281      else
11282	ld_shlibs=no
11283      fi
11284      ;;
11285
11286    haiku*)
11287      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11288      link_all_deplibs=yes
11289      ;;
11290
11291    os2*)
11292      hardcode_libdir_flag_spec='-L$libdir'
11293      hardcode_minus_L=yes
11294      allow_undefined_flag=unsupported
11295      shrext_cmds=.dll
11296      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11297	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11298	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11299	$ECHO EXPORTS >> $output_objdir/$libname.def~
11300	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11301	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11302	emximp -o $lib $output_objdir/$libname.def'
11303      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11304	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11305	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11306	$ECHO EXPORTS >> $output_objdir/$libname.def~
11307	prefix_cmds="$SED"~
11308	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11309	  prefix_cmds="$prefix_cmds -e 1d";
11310	fi~
11311	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11312	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11313	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11314	emximp -o $lib $output_objdir/$libname.def'
11315      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11316      enable_shared_with_static_runtimes=yes
11317      ;;
11318
11319    interix[3-9]*)
11320      hardcode_direct=no
11321      hardcode_shlibpath_var=no
11322      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11323      export_dynamic_flag_spec='$wl-E'
11324      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11325      # Instead, shared libraries are loaded at an image base (0x10000000 by
11326      # default) and relocated if they conflict, which is a slow very memory
11327      # consuming and fragmenting process.  To avoid this, we pick a random,
11328      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11329      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11330      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11331      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'
11332      ;;
11333
11334    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11335      tmp_diet=no
11336      if test linux-dietlibc = "$host_os"; then
11337	case $cc_basename in
11338	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11339	esac
11340      fi
11341      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11342	 && test no = "$tmp_diet"
11343      then
11344	tmp_addflag=' $pic_flag'
11345	tmp_sharedflag='-shared'
11346	case $cc_basename,$host_cpu in
11347        pgcc*)				# Portland Group C compiler
11348	  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'
11349	  tmp_addflag=' $pic_flag'
11350	  ;;
11351	pgf77* | pgf90* | pgf95* | pgfortran*)
11352					# Portland Group f77 and f90 compilers
11353	  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'
11354	  tmp_addflag=' $pic_flag -Mnomain' ;;
11355	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11356	  tmp_addflag=' -i_dynamic' ;;
11357	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11358	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11359	ifc* | ifort*)			# Intel Fortran compiler
11360	  tmp_addflag=' -nofor_main' ;;
11361	lf95*)				# Lahey Fortran 8.1
11362	  whole_archive_flag_spec=
11363	  tmp_sharedflag='--shared' ;;
11364        nagfor*)                        # NAGFOR 5.3
11365          tmp_sharedflag='-Wl,-shared' ;;
11366	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11367	  tmp_sharedflag='-qmkshrobj'
11368	  tmp_addflag= ;;
11369	nvcc*)	# Cuda Compiler Driver 2.2
11370	  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'
11371	  compiler_needs_object=yes
11372	  ;;
11373	esac
11374	case `$CC -V 2>&1 | sed 5q` in
11375	*Sun\ C*)			# Sun C 5.9
11376	  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'
11377	  compiler_needs_object=yes
11378	  tmp_sharedflag='-G' ;;
11379	*Sun\ F*)			# Sun Fortran 8.3
11380	  tmp_sharedflag='-G' ;;
11381	esac
11382	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11383
11384        if test yes = "$supports_anon_versioning"; then
11385          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11386            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11387            echo "local: *; };" >> $output_objdir/$libname.ver~
11388            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11389        fi
11390
11391	case $cc_basename in
11392	tcc*)
11393	  export_dynamic_flag_spec='-rdynamic'
11394	  ;;
11395	xlf* | bgf* | bgxlf* | mpixlf*)
11396	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11397	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11398	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11399	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11400	  if test yes = "$supports_anon_versioning"; then
11401	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11402              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11403              echo "local: *; };" >> $output_objdir/$libname.ver~
11404              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11405	  fi
11406	  ;;
11407	esac
11408      else
11409        ld_shlibs=no
11410      fi
11411      ;;
11412
11413    netbsd* | netbsdelf*-gnu)
11414      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11416	wlarc=
11417      else
11418	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11419	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11420      fi
11421      ;;
11422
11423    solaris*)
11424      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11425	ld_shlibs=no
11426	cat <<_LT_EOF 1>&2
11427
11428*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11429*** create shared libraries on Solaris systems.  Therefore, libtool
11430*** is disabling shared libraries support.  We urge you to upgrade GNU
11431*** binutils to release 2.9.1 or newer.  Another option is to modify
11432*** your PATH or compiler configuration so that the native linker is
11433*** used, and then restart.
11434
11435_LT_EOF
11436      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11437	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11438	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11439      else
11440	ld_shlibs=no
11441      fi
11442      ;;
11443
11444    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11445      case `$LD -v 2>&1` in
11446        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11447	ld_shlibs=no
11448	cat <<_LT_EOF 1>&2
11449
11450*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11451*** reliably create shared libraries on SCO systems.  Therefore, libtool
11452*** is disabling shared libraries support.  We urge you to upgrade GNU
11453*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11454*** your PATH or compiler configuration so that the native linker is
11455*** used, and then restart.
11456
11457_LT_EOF
11458	;;
11459	*)
11460	  # For security reasons, it is highly recommended that you always
11461	  # use absolute paths for naming shared libraries, and exclude the
11462	  # DT_RUNPATH tag from executables and libraries.  But doing so
11463	  # requires that you compile everything twice, which is a pain.
11464	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11465	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11466	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11467	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11468	  else
11469	    ld_shlibs=no
11470	  fi
11471	;;
11472      esac
11473      ;;
11474
11475    sunos4*)
11476      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11477      wlarc=
11478      hardcode_direct=yes
11479      hardcode_shlibpath_var=no
11480      ;;
11481
11482    *)
11483      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11484	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11485	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11486      else
11487	ld_shlibs=no
11488      fi
11489      ;;
11490    esac
11491
11492    if test no = "$ld_shlibs"; then
11493      runpath_var=
11494      hardcode_libdir_flag_spec=
11495      export_dynamic_flag_spec=
11496      whole_archive_flag_spec=
11497    fi
11498  else
11499    # PORTME fill in a description of your system's linker (not GNU ld)
11500    case $host_os in
11501    aix3*)
11502      allow_undefined_flag=unsupported
11503      always_export_symbols=yes
11504      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'
11505      # Note: this linker hardcodes the directories in LIBPATH if there
11506      # are no directories specified by -L.
11507      hardcode_minus_L=yes
11508      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11509	# Neither direct hardcoding nor static linking is supported with a
11510	# broken collect2.
11511	hardcode_direct=unsupported
11512      fi
11513      ;;
11514
11515    aix[4-9]*)
11516      if test ia64 = "$host_cpu"; then
11517	# On IA64, the linker does run time linking by default, so we don't
11518	# have to do anything special.
11519	aix_use_runtimelinking=no
11520	exp_sym_flag='-Bexport'
11521	no_entry_flag=
11522      else
11523	# If we're using GNU nm, then we don't want the "-C" option.
11524	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11525	# Without the "-l" option, or with the "-B" option, AIX nm treats
11526	# weak defined symbols like other global defined symbols, whereas
11527	# GNU nm marks them as "W".
11528	# While the 'weak' keyword is ignored in the Export File, we need
11529	# it in the Import File for the 'aix-soname' feature, so we have
11530	# to replace the "-B" option with "-P" for AIX nm.
11531	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11532	  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'
11533	else
11534	  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'
11535	fi
11536	aix_use_runtimelinking=no
11537
11538	# Test if we are trying to use run time linking or normal
11539	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11540	# have runtime linking enabled, and use it for executables.
11541	# For shared libraries, we enable/disable runtime linking
11542	# depending on the kind of the shared library created -
11543	# when "with_aix_soname,aix_use_runtimelinking" is:
11544	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11545	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11546	#            lib.a           static archive
11547	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11548	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11549	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11550	#            lib.a(lib.so.V) shared, rtl:no
11551	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11552	#            lib.a           static archive
11553	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11554	  for ld_flag in $LDFLAGS; do
11555	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11556	    aix_use_runtimelinking=yes
11557	    break
11558	  fi
11559	  done
11560	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11561	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11562	    # so we don't have lib.a shared libs to link our executables.
11563	    # We have to force runtime linking in this case.
11564	    aix_use_runtimelinking=yes
11565	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11566	  fi
11567	  ;;
11568	esac
11569
11570	exp_sym_flag='-bexport'
11571	no_entry_flag='-bnoentry'
11572      fi
11573
11574      # When large executables or shared objects are built, AIX ld can
11575      # have problems creating the table of contents.  If linking a library
11576      # or program results in "error TOC overflow" add -mminimal-toc to
11577      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11578      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11579
11580      archive_cmds=''
11581      hardcode_direct=yes
11582      hardcode_direct_absolute=yes
11583      hardcode_libdir_separator=':'
11584      link_all_deplibs=yes
11585      file_list_spec='$wl-f,'
11586      case $with_aix_soname,$aix_use_runtimelinking in
11587      aix,*) ;; # traditional, no import file
11588      svr4,* | *,yes) # use import file
11589	# The Import File defines what to hardcode.
11590	hardcode_direct=no
11591	hardcode_direct_absolute=no
11592	;;
11593      esac
11594
11595      if test yes = "$GCC"; then
11596	case $host_os in aix4.[012]|aix4.[012].*)
11597	# We only want to do this on AIX 4.2 and lower, the check
11598	# below for broken collect2 doesn't work under 4.3+
11599	  collect2name=`$CC -print-prog-name=collect2`
11600	  if test -f "$collect2name" &&
11601	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11602	  then
11603	  # We have reworked collect2
11604	  :
11605	  else
11606	  # We have old collect2
11607	  hardcode_direct=unsupported
11608	  # It fails to find uninstalled libraries when the uninstalled
11609	  # path is not listed in the libpath.  Setting hardcode_minus_L
11610	  # to unsupported forces relinking
11611	  hardcode_minus_L=yes
11612	  hardcode_libdir_flag_spec='-L$libdir'
11613	  hardcode_libdir_separator=
11614	  fi
11615	  ;;
11616	esac
11617	shared_flag='-shared'
11618	if test yes = "$aix_use_runtimelinking"; then
11619	  shared_flag="$shared_flag "'$wl-G'
11620	fi
11621	# Need to ensure runtime linking is disabled for the traditional
11622	# shared library, or the linker may eventually find shared libraries
11623	# /with/ Import File - we do not want to mix them.
11624	shared_flag_aix='-shared'
11625	shared_flag_svr4='-shared $wl-G'
11626      else
11627	# not using gcc
11628	if test ia64 = "$host_cpu"; then
11629	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11630	# chokes on -Wl,-G. The following line is correct:
11631	  shared_flag='-G'
11632	else
11633	  if test yes = "$aix_use_runtimelinking"; then
11634	    shared_flag='$wl-G'
11635	  else
11636	    shared_flag='$wl-bM:SRE'
11637	  fi
11638	  shared_flag_aix='$wl-bM:SRE'
11639	  shared_flag_svr4='$wl-G'
11640	fi
11641      fi
11642
11643      export_dynamic_flag_spec='$wl-bexpall'
11644      # It seems that -bexpall does not export symbols beginning with
11645      # underscore (_), so it is better to generate a list of symbols to export.
11646      always_export_symbols=yes
11647      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11648	# Warning - without using the other runtime loading flags (-brtl),
11649	# -berok will link without error, but may produce a broken library.
11650	allow_undefined_flag='-berok'
11651        # Determine the default libpath from the value encoded in an
11652        # empty executable.
11653        if test set = "${lt_cv_aix_libpath+set}"; then
11654  aix_libpath=$lt_cv_aix_libpath
11655else
11656  if ${lt_cv_aix_libpath_+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660/* end confdefs.h.  */
11661
11662int
11663main ()
11664{
11665
11666  ;
11667  return 0;
11668}
11669_ACEOF
11670if ac_fn_c_try_link "$LINENO"; then :
11671
11672  lt_aix_libpath_sed='
11673      /Import File Strings/,/^$/ {
11674	  /^0/ {
11675	      s/^0  *\([^ ]*\) *$/\1/
11676	      p
11677	  }
11678      }'
11679  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680  # Check for a 64-bit object if we didn't find anything.
11681  if test -z "$lt_cv_aix_libpath_"; then
11682    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683  fi
11684fi
11685rm -f core conftest.err conftest.$ac_objext \
11686    conftest$ac_exeext conftest.$ac_ext
11687  if test -z "$lt_cv_aix_libpath_"; then
11688    lt_cv_aix_libpath_=/usr/lib:/lib
11689  fi
11690
11691fi
11692
11693  aix_libpath=$lt_cv_aix_libpath_
11694fi
11695
11696        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11697        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
11698      else
11699	if test ia64 = "$host_cpu"; then
11700	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11701	  allow_undefined_flag="-z nodefs"
11702	  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"
11703	else
11704	 # Determine the default libpath from the value encoded in an
11705	 # empty executable.
11706	 if test set = "${lt_cv_aix_libpath+set}"; then
11707  aix_libpath=$lt_cv_aix_libpath
11708else
11709  if ${lt_cv_aix_libpath_+:} false; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713/* end confdefs.h.  */
11714
11715int
11716main ()
11717{
11718
11719  ;
11720  return 0;
11721}
11722_ACEOF
11723if ac_fn_c_try_link "$LINENO"; then :
11724
11725  lt_aix_libpath_sed='
11726      /Import File Strings/,/^$/ {
11727	  /^0/ {
11728	      s/^0  *\([^ ]*\) *$/\1/
11729	      p
11730	  }
11731      }'
11732  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733  # Check for a 64-bit object if we didn't find anything.
11734  if test -z "$lt_cv_aix_libpath_"; then
11735    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736  fi
11737fi
11738rm -f core conftest.err conftest.$ac_objext \
11739    conftest$ac_exeext conftest.$ac_ext
11740  if test -z "$lt_cv_aix_libpath_"; then
11741    lt_cv_aix_libpath_=/usr/lib:/lib
11742  fi
11743
11744fi
11745
11746  aix_libpath=$lt_cv_aix_libpath_
11747fi
11748
11749	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11750	  # Warning - without using the other run time loading flags,
11751	  # -berok will link without error, but may produce a broken library.
11752	  no_undefined_flag=' $wl-bernotok'
11753	  allow_undefined_flag=' $wl-berok'
11754	  if test yes = "$with_gnu_ld"; then
11755	    # We only use this code for GNU lds that support --whole-archive.
11756	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11757	  else
11758	    # Exported symbols can be pulled into shared objects from archives
11759	    whole_archive_flag_spec='$convenience'
11760	  fi
11761	  archive_cmds_need_lc=yes
11762	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11763	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11764	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11765	  if test svr4 != "$with_aix_soname"; then
11766	    # This is similar to how AIX traditionally builds its shared libraries.
11767	    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'
11768	  fi
11769	  if test aix != "$with_aix_soname"; then
11770	    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'
11771	  else
11772	    # used by -dlpreopen to get the symbols
11773	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11774	  fi
11775	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11776	fi
11777      fi
11778      ;;
11779
11780    amigaos*)
11781      case $host_cpu in
11782      powerpc)
11783            # see comment about AmigaOS4 .so support
11784            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11785            archive_expsym_cmds=''
11786        ;;
11787      m68k)
11788            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)'
11789            hardcode_libdir_flag_spec='-L$libdir'
11790            hardcode_minus_L=yes
11791        ;;
11792      esac
11793      ;;
11794
11795    bsdi[45]*)
11796      export_dynamic_flag_spec=-rdynamic
11797      ;;
11798
11799    cygwin* | mingw* | pw32* | cegcc*)
11800      # When not using gcc, we currently assume that we are using
11801      # Microsoft Visual C++.
11802      # hardcode_libdir_flag_spec is actually meaningless, as there is
11803      # no search path for DLLs.
11804      case $cc_basename in
11805      cl*)
11806	# Native MSVC
11807	hardcode_libdir_flag_spec=' '
11808	allow_undefined_flag=unsupported
11809	always_export_symbols=yes
11810	file_list_spec='@'
11811	# Tell ltmain to make .lib files, not .a files.
11812	libext=lib
11813	# Tell ltmain to make .dll files, not .so files.
11814	shrext_cmds=.dll
11815	# FIXME: Setting linknames here is a bad hack.
11816	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11817	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11818            cp "$export_symbols" "$output_objdir/$soname.def";
11819            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11820          else
11821            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11822          fi~
11823          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11824          linknames='
11825	# The linker will not automatically build a static lib if we build a DLL.
11826	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11827	enable_shared_with_static_runtimes=yes
11828	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11829	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11830	# Don't use ranlib
11831	old_postinstall_cmds='chmod 644 $oldlib'
11832	postlink_cmds='lt_outputfile="@OUTPUT@"~
11833          lt_tool_outputfile="@TOOL_OUTPUT@"~
11834          case $lt_outputfile in
11835            *.exe|*.EXE) ;;
11836            *)
11837              lt_outputfile=$lt_outputfile.exe
11838              lt_tool_outputfile=$lt_tool_outputfile.exe
11839              ;;
11840          esac~
11841          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11842            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11843            $RM "$lt_outputfile.manifest";
11844          fi'
11845	;;
11846      *)
11847	# Assume MSVC wrapper
11848	hardcode_libdir_flag_spec=' '
11849	allow_undefined_flag=unsupported
11850	# Tell ltmain to make .lib files, not .a files.
11851	libext=lib
11852	# Tell ltmain to make .dll files, not .so files.
11853	shrext_cmds=.dll
11854	# FIXME: Setting linknames here is a bad hack.
11855	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11856	# The linker will automatically build a .lib file if we build a DLL.
11857	old_archive_from_new_cmds='true'
11858	# FIXME: Should let the user specify the lib program.
11859	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11860	enable_shared_with_static_runtimes=yes
11861	;;
11862      esac
11863      ;;
11864
11865    darwin* | rhapsody*)
11866
11867
11868  archive_cmds_need_lc=no
11869  hardcode_direct=no
11870  hardcode_automatic=yes
11871  hardcode_shlibpath_var=unsupported
11872  if test yes = "$lt_cv_ld_force_load"; then
11873    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\"`'
11874
11875  else
11876    whole_archive_flag_spec=''
11877  fi
11878  link_all_deplibs=yes
11879  allow_undefined_flag=$_lt_dar_allow_undefined
11880  case $cc_basename in
11881     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11882     *) _lt_dar_can_shared=$GCC ;;
11883  esac
11884  if test yes = "$_lt_dar_can_shared"; then
11885    output_verbose_link_cmd=func_echo_all
11886    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11887    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11888    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"
11889    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"
11890
11891  else
11892  ld_shlibs=no
11893  fi
11894
11895      ;;
11896
11897    dgux*)
11898      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11899      hardcode_libdir_flag_spec='-L$libdir'
11900      hardcode_shlibpath_var=no
11901      ;;
11902
11903    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11904    # support.  Future versions do this automatically, but an explicit c++rt0.o
11905    # does not break anything, and helps significantly (at the cost of a little
11906    # extra space).
11907    freebsd2.2*)
11908      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11909      hardcode_libdir_flag_spec='-R$libdir'
11910      hardcode_direct=yes
11911      hardcode_shlibpath_var=no
11912      ;;
11913
11914    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11915    freebsd2.*)
11916      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11917      hardcode_direct=yes
11918      hardcode_minus_L=yes
11919      hardcode_shlibpath_var=no
11920      ;;
11921
11922    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11923    freebsd* | dragonfly*)
11924      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11925      hardcode_libdir_flag_spec='-R$libdir'
11926      hardcode_direct=yes
11927      hardcode_shlibpath_var=no
11928      ;;
11929
11930    hpux9*)
11931      if test yes = "$GCC"; then
11932	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'
11933      else
11934	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'
11935      fi
11936      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11937      hardcode_libdir_separator=:
11938      hardcode_direct=yes
11939
11940      # hardcode_minus_L: Not really in the search PATH,
11941      # but as the default location of the library.
11942      hardcode_minus_L=yes
11943      export_dynamic_flag_spec='$wl-E'
11944      ;;
11945
11946    hpux10*)
11947      if test yes,no = "$GCC,$with_gnu_ld"; then
11948	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11949      else
11950	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11951      fi
11952      if test no = "$with_gnu_ld"; then
11953	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11954	hardcode_libdir_separator=:
11955	hardcode_direct=yes
11956	hardcode_direct_absolute=yes
11957	export_dynamic_flag_spec='$wl-E'
11958	# hardcode_minus_L: Not really in the search PATH,
11959	# but as the default location of the library.
11960	hardcode_minus_L=yes
11961      fi
11962      ;;
11963
11964    hpux11*)
11965      if test yes,no = "$GCC,$with_gnu_ld"; then
11966	case $host_cpu in
11967	hppa*64*)
11968	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11969	  ;;
11970	ia64*)
11971	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11972	  ;;
11973	*)
11974	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11975	  ;;
11976	esac
11977      else
11978	case $host_cpu in
11979	hppa*64*)
11980	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11981	  ;;
11982	ia64*)
11983	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11984	  ;;
11985	*)
11986
11987	  # Older versions of the 11.00 compiler do not understand -b yet
11988	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11989	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11990$as_echo_n "checking if $CC understands -b... " >&6; }
11991if ${lt_cv_prog_compiler__b+:} false; then :
11992  $as_echo_n "(cached) " >&6
11993else
11994  lt_cv_prog_compiler__b=no
11995   save_LDFLAGS=$LDFLAGS
11996   LDFLAGS="$LDFLAGS -b"
11997   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11998   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11999     # The linker can only warn and ignore the option if not recognized
12000     # So say no if there are warnings
12001     if test -s conftest.err; then
12002       # Append any errors to the config.log.
12003       cat conftest.err 1>&5
12004       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12005       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12006       if diff conftest.exp conftest.er2 >/dev/null; then
12007         lt_cv_prog_compiler__b=yes
12008       fi
12009     else
12010       lt_cv_prog_compiler__b=yes
12011     fi
12012   fi
12013   $RM -r conftest*
12014   LDFLAGS=$save_LDFLAGS
12015
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12018$as_echo "$lt_cv_prog_compiler__b" >&6; }
12019
12020if test yes = "$lt_cv_prog_compiler__b"; then
12021    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12022else
12023    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12024fi
12025
12026	  ;;
12027	esac
12028      fi
12029      if test no = "$with_gnu_ld"; then
12030	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12031	hardcode_libdir_separator=:
12032
12033	case $host_cpu in
12034	hppa*64*|ia64*)
12035	  hardcode_direct=no
12036	  hardcode_shlibpath_var=no
12037	  ;;
12038	*)
12039	  hardcode_direct=yes
12040	  hardcode_direct_absolute=yes
12041	  export_dynamic_flag_spec='$wl-E'
12042
12043	  # hardcode_minus_L: Not really in the search PATH,
12044	  # but as the default location of the library.
12045	  hardcode_minus_L=yes
12046	  ;;
12047	esac
12048      fi
12049      ;;
12050
12051    irix5* | irix6* | nonstopux*)
12052      if test yes = "$GCC"; then
12053	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'
12054	# Try to use the -exported_symbol ld option, if it does not
12055	# work, assume that -exports_file does not work either and
12056	# implicitly export all symbols.
12057	# This should be the same for all languages, so no per-tag cache variable.
12058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12059$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12060if ${lt_cv_irix_exported_symbol+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063  save_LDFLAGS=$LDFLAGS
12064	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12065	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067int foo (void) { return 0; }
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070  lt_cv_irix_exported_symbol=yes
12071else
12072  lt_cv_irix_exported_symbol=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076           LDFLAGS=$save_LDFLAGS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12079$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12080	if test yes = "$lt_cv_irix_exported_symbol"; then
12081          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'
12082	fi
12083	link_all_deplibs=no
12084      else
12085	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'
12086	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'
12087      fi
12088      archive_cmds_need_lc='no'
12089      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12090      hardcode_libdir_separator=:
12091      inherit_rpath=yes
12092      link_all_deplibs=yes
12093      ;;
12094
12095    linux*)
12096      case $cc_basename in
12097      tcc*)
12098	# Fabrice Bellard et al's Tiny C Compiler
12099	ld_shlibs=yes
12100	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12101	;;
12102      esac
12103      ;;
12104
12105    netbsd* | netbsdelf*-gnu)
12106      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12107	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12108      else
12109	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12110      fi
12111      hardcode_libdir_flag_spec='-R$libdir'
12112      hardcode_direct=yes
12113      hardcode_shlibpath_var=no
12114      ;;
12115
12116    newsos6)
12117      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12118      hardcode_direct=yes
12119      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12120      hardcode_libdir_separator=:
12121      hardcode_shlibpath_var=no
12122      ;;
12123
12124    *nto* | *qnx*)
12125      ;;
12126
12127    openbsd* | bitrig*)
12128      if test -f /usr/libexec/ld.so; then
12129	hardcode_direct=yes
12130	hardcode_shlibpath_var=no
12131	hardcode_direct_absolute=yes
12132	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12133	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12134	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12135	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12136	  export_dynamic_flag_spec='$wl-E'
12137	else
12138	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12139	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12140	fi
12141      else
12142	ld_shlibs=no
12143      fi
12144      ;;
12145
12146    os2*)
12147      hardcode_libdir_flag_spec='-L$libdir'
12148      hardcode_minus_L=yes
12149      allow_undefined_flag=unsupported
12150      shrext_cmds=.dll
12151      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12152	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12153	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12154	$ECHO EXPORTS >> $output_objdir/$libname.def~
12155	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12156	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12157	emximp -o $lib $output_objdir/$libname.def'
12158      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12159	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12160	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12161	$ECHO EXPORTS >> $output_objdir/$libname.def~
12162	prefix_cmds="$SED"~
12163	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12164	  prefix_cmds="$prefix_cmds -e 1d";
12165	fi~
12166	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12167	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12168	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12169	emximp -o $lib $output_objdir/$libname.def'
12170      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12171      enable_shared_with_static_runtimes=yes
12172      ;;
12173
12174    osf3*)
12175      if test yes = "$GCC"; then
12176	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12177	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'
12178      else
12179	allow_undefined_flag=' -expect_unresolved \*'
12180	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'
12181      fi
12182      archive_cmds_need_lc='no'
12183      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12184      hardcode_libdir_separator=:
12185      ;;
12186
12187    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12188      if test yes = "$GCC"; then
12189	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12190	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'
12191	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12192      else
12193	allow_undefined_flag=' -expect_unresolved \*'
12194	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'
12195	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~
12196          $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'
12197
12198	# Both c and cxx compiler support -rpath directly
12199	hardcode_libdir_flag_spec='-rpath $libdir'
12200      fi
12201      archive_cmds_need_lc='no'
12202      hardcode_libdir_separator=:
12203      ;;
12204
12205    solaris*)
12206      no_undefined_flag=' -z defs'
12207      if test yes = "$GCC"; then
12208	wlarc='$wl'
12209	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12210	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12211          $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'
12212      else
12213	case `$CC -V 2>&1` in
12214	*"Compilers 5.0"*)
12215	  wlarc=''
12216	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12217	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12218            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12219	  ;;
12220	*)
12221	  wlarc='$wl'
12222	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12223	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12224            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12225	  ;;
12226	esac
12227      fi
12228      hardcode_libdir_flag_spec='-R$libdir'
12229      hardcode_shlibpath_var=no
12230      case $host_os in
12231      solaris2.[0-5] | solaris2.[0-5].*) ;;
12232      *)
12233	# The compiler driver will combine and reorder linker options,
12234	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12235	# but is careful enough not to reorder.
12236	# Supported since Solaris 2.6 (maybe 2.5.1?)
12237	if test yes = "$GCC"; then
12238	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12239	else
12240	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12241	fi
12242	;;
12243      esac
12244      link_all_deplibs=yes
12245      ;;
12246
12247    sunos4*)
12248      if test sequent = "$host_vendor"; then
12249	# Use $CC to link under sequent, because it throws in some extra .o
12250	# files that make .init and .fini sections work.
12251	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12252      else
12253	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12254      fi
12255      hardcode_libdir_flag_spec='-L$libdir'
12256      hardcode_direct=yes
12257      hardcode_minus_L=yes
12258      hardcode_shlibpath_var=no
12259      ;;
12260
12261    sysv4)
12262      case $host_vendor in
12263	sni)
12264	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12265	  hardcode_direct=yes # is this really true???
12266	;;
12267	siemens)
12268	  ## LD is ld it makes a PLAMLIB
12269	  ## CC just makes a GrossModule.
12270	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12271	  reload_cmds='$CC -r -o $output$reload_objs'
12272	  hardcode_direct=no
12273        ;;
12274	motorola)
12275	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12276	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12277	;;
12278      esac
12279      runpath_var='LD_RUN_PATH'
12280      hardcode_shlibpath_var=no
12281      ;;
12282
12283    sysv4.3*)
12284      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12285      hardcode_shlibpath_var=no
12286      export_dynamic_flag_spec='-Bexport'
12287      ;;
12288
12289    sysv4*MP*)
12290      if test -d /usr/nec; then
12291	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12292	hardcode_shlibpath_var=no
12293	runpath_var=LD_RUN_PATH
12294	hardcode_runpath_var=yes
12295	ld_shlibs=yes
12296      fi
12297      ;;
12298
12299    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12300      no_undefined_flag='$wl-z,text'
12301      archive_cmds_need_lc=no
12302      hardcode_shlibpath_var=no
12303      runpath_var='LD_RUN_PATH'
12304
12305      if test yes = "$GCC"; then
12306	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12307	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12308      else
12309	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311      fi
12312      ;;
12313
12314    sysv5* | sco3.2v5* | sco5v6*)
12315      # Note: We CANNOT use -z defs as we might desire, because we do not
12316      # link with -lc, and that would cause any symbols used from libc to
12317      # always be unresolved, which means just about no library would
12318      # ever link correctly.  If we're not using GNU ld we use -z text
12319      # though, which does catch some bad symbols but isn't as heavy-handed
12320      # as -z defs.
12321      no_undefined_flag='$wl-z,text'
12322      allow_undefined_flag='$wl-z,nodefs'
12323      archive_cmds_need_lc=no
12324      hardcode_shlibpath_var=no
12325      hardcode_libdir_flag_spec='$wl-R,$libdir'
12326      hardcode_libdir_separator=':'
12327      link_all_deplibs=yes
12328      export_dynamic_flag_spec='$wl-Bexport'
12329      runpath_var='LD_RUN_PATH'
12330
12331      if test yes = "$GCC"; then
12332	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334      else
12335	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337      fi
12338      ;;
12339
12340    uts4*)
12341      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12342      hardcode_libdir_flag_spec='-L$libdir'
12343      hardcode_shlibpath_var=no
12344      ;;
12345
12346    *)
12347      ld_shlibs=no
12348      ;;
12349    esac
12350
12351    if test sni = "$host_vendor"; then
12352      case $host in
12353      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12354	export_dynamic_flag_spec='$wl-Blargedynsym'
12355	;;
12356      esac
12357    fi
12358  fi
12359
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12361$as_echo "$ld_shlibs" >&6; }
12362test no = "$ld_shlibs" && can_build_shared=no
12363
12364with_gnu_ld=$with_gnu_ld
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380#
12381# Do we need to explicitly link libc?
12382#
12383case "x$archive_cmds_need_lc" in
12384x|xyes)
12385  # Assume -lc should be added
12386  archive_cmds_need_lc=yes
12387
12388  if test yes,yes = "$GCC,$enable_shared"; then
12389    case $archive_cmds in
12390    *'~'*)
12391      # FIXME: we may have to deal with multi-command sequences.
12392      ;;
12393    '$CC '*)
12394      # Test whether the compiler implicitly links with -lc since on some
12395      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12396      # to ld, don't add -lc before -lgcc.
12397      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12398$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12399if ${lt_cv_archive_cmds_need_lc+:} false; then :
12400  $as_echo_n "(cached) " >&6
12401else
12402  $RM conftest*
12403	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12404
12405	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12406  (eval $ac_compile) 2>&5
12407  ac_status=$?
12408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12409  test $ac_status = 0; } 2>conftest.err; then
12410	  soname=conftest
12411	  lib=conftest
12412	  libobjs=conftest.$ac_objext
12413	  deplibs=
12414	  wl=$lt_prog_compiler_wl
12415	  pic_flag=$lt_prog_compiler_pic
12416	  compiler_flags=-v
12417	  linker_flags=-v
12418	  verstring=
12419	  output_objdir=.
12420	  libname=conftest
12421	  lt_save_allow_undefined_flag=$allow_undefined_flag
12422	  allow_undefined_flag=
12423	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12424  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12425  ac_status=$?
12426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427  test $ac_status = 0; }
12428	  then
12429	    lt_cv_archive_cmds_need_lc=no
12430	  else
12431	    lt_cv_archive_cmds_need_lc=yes
12432	  fi
12433	  allow_undefined_flag=$lt_save_allow_undefined_flag
12434	else
12435	  cat conftest.err 1>&5
12436	fi
12437	$RM conftest*
12438
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12441$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12442      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12443      ;;
12444    esac
12445  fi
12446  ;;
12447esac
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12601$as_echo_n "checking dynamic linker characteristics... " >&6; }
12602
12603if test yes = "$GCC"; then
12604  case $host_os in
12605    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12606    *) lt_awk_arg='/^libraries:/' ;;
12607  esac
12608  case $host_os in
12609    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12610    *) lt_sed_strip_eq='s|=/|/|g' ;;
12611  esac
12612  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12613  case $lt_search_path_spec in
12614  *\;*)
12615    # if the path contains ";" then we assume it to be the separator
12616    # otherwise default to the standard path separator (i.e. ":") - it is
12617    # assumed that no part of a normal pathname contains ";" but that should
12618    # okay in the real world where ";" in dirpaths is itself problematic.
12619    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12620    ;;
12621  *)
12622    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12623    ;;
12624  esac
12625  # Ok, now we have the path, separated by spaces, we can step through it
12626  # and add multilib dir if necessary...
12627  lt_tmp_lt_search_path_spec=
12628  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12629  # ...but if some path component already ends with the multilib dir we assume
12630  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12631  case "$lt_multi_os_dir; $lt_search_path_spec " in
12632  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12633    lt_multi_os_dir=
12634    ;;
12635  esac
12636  for lt_sys_path in $lt_search_path_spec; do
12637    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12638      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12639    elif test -n "$lt_multi_os_dir"; then
12640      test -d "$lt_sys_path" && \
12641	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12642    fi
12643  done
12644  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12645BEGIN {RS = " "; FS = "/|\n";} {
12646  lt_foo = "";
12647  lt_count = 0;
12648  for (lt_i = NF; lt_i > 0; lt_i--) {
12649    if ($lt_i != "" && $lt_i != ".") {
12650      if ($lt_i == "..") {
12651        lt_count++;
12652      } else {
12653        if (lt_count == 0) {
12654          lt_foo = "/" $lt_i lt_foo;
12655        } else {
12656          lt_count--;
12657        }
12658      }
12659    }
12660  }
12661  if (lt_foo != "") { lt_freq[lt_foo]++; }
12662  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12663}'`
12664  # AWK program above erroneously prepends '/' to C:/dos/paths
12665  # for these hosts.
12666  case $host_os in
12667    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12668      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12669  esac
12670  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12671else
12672  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12673fi
12674library_names_spec=
12675libname_spec='lib$name'
12676soname_spec=
12677shrext_cmds=.so
12678postinstall_cmds=
12679postuninstall_cmds=
12680finish_cmds=
12681finish_eval=
12682shlibpath_var=
12683shlibpath_overrides_runpath=unknown
12684version_type=none
12685dynamic_linker="$host_os ld.so"
12686sys_lib_dlsearch_path_spec="/lib /usr/lib"
12687need_lib_prefix=unknown
12688hardcode_into_libs=no
12689
12690# when you set need_version to no, make sure it does not cause -set_version
12691# flags to be left without arguments
12692need_version=unknown
12693
12694
12695
12696case $host_os in
12697aix3*)
12698  version_type=linux # correct to gnu/linux during the next big refactor
12699  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12700  shlibpath_var=LIBPATH
12701
12702  # AIX 3 has no versioning support, so we append a major version to the name.
12703  soname_spec='$libname$release$shared_ext$major'
12704  ;;
12705
12706aix[4-9]*)
12707  version_type=linux # correct to gnu/linux during the next big refactor
12708  need_lib_prefix=no
12709  need_version=no
12710  hardcode_into_libs=yes
12711  if test ia64 = "$host_cpu"; then
12712    # AIX 5 supports IA64
12713    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12714    shlibpath_var=LD_LIBRARY_PATH
12715  else
12716    # With GCC up to 2.95.x, collect2 would create an import file
12717    # for dependence libraries.  The import file would start with
12718    # the line '#! .'.  This would cause the generated library to
12719    # depend on '.', always an invalid library.  This was fixed in
12720    # development snapshots of GCC prior to 3.0.
12721    case $host_os in
12722      aix4 | aix4.[01] | aix4.[01].*)
12723      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12724	   echo ' yes '
12725	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12726	:
12727      else
12728	can_build_shared=no
12729      fi
12730      ;;
12731    esac
12732    # Using Import Files as archive members, it is possible to support
12733    # filename-based versioning of shared library archives on AIX. While
12734    # this would work for both with and without runtime linking, it will
12735    # prevent static linking of such archives. So we do filename-based
12736    # shared library versioning with .so extension only, which is used
12737    # when both runtime linking and shared linking is enabled.
12738    # Unfortunately, runtime linking may impact performance, so we do
12739    # not want this to be the default eventually. Also, we use the
12740    # versioned .so libs for executables only if there is the -brtl
12741    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12742    # To allow for filename-based versioning support, we need to create
12743    # libNAME.so.V as an archive file, containing:
12744    # *) an Import File, referring to the versioned filename of the
12745    #    archive as well as the shared archive member, telling the
12746    #    bitwidth (32 or 64) of that shared object, and providing the
12747    #    list of exported symbols of that shared object, eventually
12748    #    decorated with the 'weak' keyword
12749    # *) the shared object with the F_LOADONLY flag set, to really avoid
12750    #    it being seen by the linker.
12751    # At run time we better use the real file rather than another symlink,
12752    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12753
12754    case $with_aix_soname,$aix_use_runtimelinking in
12755    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12756    # soname into executable. Probably we can add versioning support to
12757    # collect2, so additional links can be useful in future.
12758    aix,yes) # traditional libtool
12759      dynamic_linker='AIX unversionable lib.so'
12760      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12761      # instead of lib<name>.a to let people know that these are not
12762      # typical AIX shared libraries.
12763      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12764      ;;
12765    aix,no) # traditional AIX only
12766      dynamic_linker='AIX lib.a(lib.so.V)'
12767      # We preserve .a as extension for shared libraries through AIX4.2
12768      # and later when we are not doing run time linking.
12769      library_names_spec='$libname$release.a $libname.a'
12770      soname_spec='$libname$release$shared_ext$major'
12771      ;;
12772    svr4,*) # full svr4 only
12773      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12774      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12775      # We do not specify a path in Import Files, so LIBPATH fires.
12776      shlibpath_overrides_runpath=yes
12777      ;;
12778    *,yes) # both, prefer svr4
12779      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12780      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12781      # unpreferred sharedlib libNAME.a needs extra handling
12782      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"'
12783      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"'
12784      # We do not specify a path in Import Files, so LIBPATH fires.
12785      shlibpath_overrides_runpath=yes
12786      ;;
12787    *,no) # both, prefer aix
12788      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12789      library_names_spec='$libname$release.a $libname.a'
12790      soname_spec='$libname$release$shared_ext$major'
12791      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12792      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)'
12793      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"'
12794      ;;
12795    esac
12796    shlibpath_var=LIBPATH
12797  fi
12798  ;;
12799
12800amigaos*)
12801  case $host_cpu in
12802  powerpc)
12803    # Since July 2007 AmigaOS4 officially supports .so libraries.
12804    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12805    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12806    ;;
12807  m68k)
12808    library_names_spec='$libname.ixlibrary $libname.a'
12809    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12810    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'
12811    ;;
12812  esac
12813  ;;
12814
12815beos*)
12816  library_names_spec='$libname$shared_ext'
12817  dynamic_linker="$host_os ld.so"
12818  shlibpath_var=LIBRARY_PATH
12819  ;;
12820
12821bsdi[45]*)
12822  version_type=linux # correct to gnu/linux during the next big refactor
12823  need_version=no
12824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12825  soname_spec='$libname$release$shared_ext$major'
12826  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12827  shlibpath_var=LD_LIBRARY_PATH
12828  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12829  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12830  # the default ld.so.conf also contains /usr/contrib/lib and
12831  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12832  # libtool to hard-code these into programs
12833  ;;
12834
12835cygwin* | mingw* | pw32* | cegcc*)
12836  version_type=windows
12837  shrext_cmds=.dll
12838  need_version=no
12839  need_lib_prefix=no
12840
12841  case $GCC,$cc_basename in
12842  yes,*)
12843    # gcc
12844    library_names_spec='$libname.dll.a'
12845    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12846    postinstall_cmds='base_file=`basename \$file`~
12847      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12848      dldir=$destdir/`dirname \$dlpath`~
12849      test -d \$dldir || mkdir -p \$dldir~
12850      $install_prog $dir/$dlname \$dldir/$dlname~
12851      chmod a+x \$dldir/$dlname~
12852      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12853        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12854      fi'
12855    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12856      dlpath=$dir/\$dldll~
12857       $RM \$dlpath'
12858    shlibpath_overrides_runpath=yes
12859
12860    case $host_os in
12861    cygwin*)
12862      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12863      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12864
12865      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12866      ;;
12867    mingw* | cegcc*)
12868      # MinGW DLLs use traditional 'lib' prefix
12869      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12870      ;;
12871    pw32*)
12872      # pw32 DLLs use 'pw' prefix rather than 'lib'
12873      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12874      ;;
12875    esac
12876    dynamic_linker='Win32 ld.exe'
12877    ;;
12878
12879  *,cl*)
12880    # Native MSVC
12881    libname_spec='$name'
12882    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12883    library_names_spec='$libname.dll.lib'
12884
12885    case $build_os in
12886    mingw*)
12887      sys_lib_search_path_spec=
12888      lt_save_ifs=$IFS
12889      IFS=';'
12890      for lt_path in $LIB
12891      do
12892        IFS=$lt_save_ifs
12893        # Let DOS variable expansion print the short 8.3 style file name.
12894        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12895        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12896      done
12897      IFS=$lt_save_ifs
12898      # Convert to MSYS style.
12899      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12900      ;;
12901    cygwin*)
12902      # Convert to unix form, then to dos form, then back to unix form
12903      # but this time dos style (no spaces!) so that the unix form looks
12904      # like /cygdrive/c/PROGRA~1:/cygdr...
12905      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12906      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12907      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12908      ;;
12909    *)
12910      sys_lib_search_path_spec=$LIB
12911      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12912        # It is most probably a Windows format PATH.
12913        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12914      else
12915        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12916      fi
12917      # FIXME: find the short name or the path components, as spaces are
12918      # common. (e.g. "Program Files" -> "PROGRA~1")
12919      ;;
12920    esac
12921
12922    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12923    postinstall_cmds='base_file=`basename \$file`~
12924      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12925      dldir=$destdir/`dirname \$dlpath`~
12926      test -d \$dldir || mkdir -p \$dldir~
12927      $install_prog $dir/$dlname \$dldir/$dlname'
12928    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12929      dlpath=$dir/\$dldll~
12930       $RM \$dlpath'
12931    shlibpath_overrides_runpath=yes
12932    dynamic_linker='Win32 link.exe'
12933    ;;
12934
12935  *)
12936    # Assume MSVC wrapper
12937    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12938    dynamic_linker='Win32 ld.exe'
12939    ;;
12940  esac
12941  # FIXME: first we should search . and the directory the executable is in
12942  shlibpath_var=PATH
12943  ;;
12944
12945darwin* | rhapsody*)
12946  dynamic_linker="$host_os dyld"
12947  version_type=darwin
12948  need_lib_prefix=no
12949  need_version=no
12950  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12951  soname_spec='$libname$release$major$shared_ext'
12952  shlibpath_overrides_runpath=yes
12953  shlibpath_var=DYLD_LIBRARY_PATH
12954  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12955
12956  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12957  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12958  ;;
12959
12960dgux*)
12961  version_type=linux # correct to gnu/linux during the next big refactor
12962  need_lib_prefix=no
12963  need_version=no
12964  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12965  soname_spec='$libname$release$shared_ext$major'
12966  shlibpath_var=LD_LIBRARY_PATH
12967  ;;
12968
12969freebsd* | dragonfly*)
12970  # DragonFly does not have aout.  When/if they implement a new
12971  # versioning mechanism, adjust this.
12972  if test -x /usr/bin/objformat; then
12973    objformat=`/usr/bin/objformat`
12974  else
12975    case $host_os in
12976    freebsd[23].*) objformat=aout ;;
12977    *) objformat=elf ;;
12978    esac
12979  fi
12980  version_type=freebsd-$objformat
12981  case $version_type in
12982    freebsd-elf*)
12983      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12984      soname_spec='$libname$release$shared_ext$major'
12985      need_version=no
12986      need_lib_prefix=no
12987      ;;
12988    freebsd-*)
12989      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12990      need_version=yes
12991      ;;
12992  esac
12993  shlibpath_var=LD_LIBRARY_PATH
12994  case $host_os in
12995  freebsd2.*)
12996    shlibpath_overrides_runpath=yes
12997    ;;
12998  freebsd3.[01]* | freebsdelf3.[01]*)
12999    shlibpath_overrides_runpath=yes
13000    hardcode_into_libs=yes
13001    ;;
13002  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13003  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13004    shlibpath_overrides_runpath=no
13005    hardcode_into_libs=yes
13006    ;;
13007  *) # from 4.6 on, and DragonFly
13008    shlibpath_overrides_runpath=yes
13009    hardcode_into_libs=yes
13010    ;;
13011  esac
13012  ;;
13013
13014haiku*)
13015  version_type=linux # correct to gnu/linux during the next big refactor
13016  need_lib_prefix=no
13017  need_version=no
13018  dynamic_linker="$host_os runtime_loader"
13019  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13020  soname_spec='$libname$release$shared_ext$major'
13021  shlibpath_var=LIBRARY_PATH
13022  shlibpath_overrides_runpath=no
13023  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13024  hardcode_into_libs=yes
13025  ;;
13026
13027hpux9* | hpux10* | hpux11*)
13028  # Give a soname corresponding to the major version so that dld.sl refuses to
13029  # link against other versions.
13030  version_type=sunos
13031  need_lib_prefix=no
13032  need_version=no
13033  case $host_cpu in
13034  ia64*)
13035    shrext_cmds='.so'
13036    hardcode_into_libs=yes
13037    dynamic_linker="$host_os dld.so"
13038    shlibpath_var=LD_LIBRARY_PATH
13039    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13040    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13041    soname_spec='$libname$release$shared_ext$major'
13042    if test 32 = "$HPUX_IA64_MODE"; then
13043      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13044      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13045    else
13046      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13047      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13048    fi
13049    ;;
13050  hppa*64*)
13051    shrext_cmds='.sl'
13052    hardcode_into_libs=yes
13053    dynamic_linker="$host_os dld.sl"
13054    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13055    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13056    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13057    soname_spec='$libname$release$shared_ext$major'
13058    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13059    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13060    ;;
13061  *)
13062    shrext_cmds='.sl'
13063    dynamic_linker="$host_os dld.sl"
13064    shlibpath_var=SHLIB_PATH
13065    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13066    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13067    soname_spec='$libname$release$shared_ext$major'
13068    ;;
13069  esac
13070  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13071  postinstall_cmds='chmod 555 $lib'
13072  # or fails outright, so override atomically:
13073  install_override_mode=555
13074  ;;
13075
13076interix[3-9]*)
13077  version_type=linux # correct to gnu/linux during the next big refactor
13078  need_lib_prefix=no
13079  need_version=no
13080  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13081  soname_spec='$libname$release$shared_ext$major'
13082  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13083  shlibpath_var=LD_LIBRARY_PATH
13084  shlibpath_overrides_runpath=no
13085  hardcode_into_libs=yes
13086  ;;
13087
13088irix5* | irix6* | nonstopux*)
13089  case $host_os in
13090    nonstopux*) version_type=nonstopux ;;
13091    *)
13092	if test yes = "$lt_cv_prog_gnu_ld"; then
13093		version_type=linux # correct to gnu/linux during the next big refactor
13094	else
13095		version_type=irix
13096	fi ;;
13097  esac
13098  need_lib_prefix=no
13099  need_version=no
13100  soname_spec='$libname$release$shared_ext$major'
13101  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13102  case $host_os in
13103  irix5* | nonstopux*)
13104    libsuff= shlibsuff=
13105    ;;
13106  *)
13107    case $LD in # libtool.m4 will add one of these switches to LD
13108    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13109      libsuff= shlibsuff= libmagic=32-bit;;
13110    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13111      libsuff=32 shlibsuff=N32 libmagic=N32;;
13112    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13113      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13114    *) libsuff= shlibsuff= libmagic=never-match;;
13115    esac
13116    ;;
13117  esac
13118  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13119  shlibpath_overrides_runpath=no
13120  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13121  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13122  hardcode_into_libs=yes
13123  ;;
13124
13125# No shared lib support for Linux oldld, aout, or coff.
13126linux*oldld* | linux*aout* | linux*coff*)
13127  dynamic_linker=no
13128  ;;
13129
13130linux*android*)
13131  version_type=none # Android doesn't support versioned libraries.
13132  need_lib_prefix=no
13133  need_version=no
13134  library_names_spec='$libname$release$shared_ext'
13135  soname_spec='$libname$release$shared_ext'
13136  finish_cmds=
13137  shlibpath_var=LD_LIBRARY_PATH
13138  shlibpath_overrides_runpath=yes
13139
13140  # This implies no fast_install, which is unacceptable.
13141  # Some rework will be needed to allow for fast_install
13142  # before this can be enabled.
13143  hardcode_into_libs=yes
13144
13145  dynamic_linker='Android linker'
13146  # Don't embed -rpath directories since the linker doesn't support them.
13147  hardcode_libdir_flag_spec='-L$libdir'
13148  ;;
13149
13150# This must be glibc/ELF.
13151linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13152  version_type=linux # correct to gnu/linux during the next big refactor
13153  need_lib_prefix=no
13154  need_version=no
13155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13156  soname_spec='$libname$release$shared_ext$major'
13157  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13158  shlibpath_var=LD_LIBRARY_PATH
13159  shlibpath_overrides_runpath=no
13160
13161  # Some binutils ld are patched to set DT_RUNPATH
13162  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13163  $as_echo_n "(cached) " >&6
13164else
13165  lt_cv_shlibpath_overrides_runpath=no
13166    save_LDFLAGS=$LDFLAGS
13167    save_libdir=$libdir
13168    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13169	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171/* end confdefs.h.  */
13172
13173int
13174main ()
13175{
13176
13177  ;
13178  return 0;
13179}
13180_ACEOF
13181if ac_fn_c_try_link "$LINENO"; then :
13182  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13183  lt_cv_shlibpath_overrides_runpath=yes
13184fi
13185fi
13186rm -f core conftest.err conftest.$ac_objext \
13187    conftest$ac_exeext conftest.$ac_ext
13188    LDFLAGS=$save_LDFLAGS
13189    libdir=$save_libdir
13190
13191fi
13192
13193  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13194
13195  # This implies no fast_install, which is unacceptable.
13196  # Some rework will be needed to allow for fast_install
13197  # before this can be enabled.
13198  hardcode_into_libs=yes
13199
13200  # Ideally, we could use ldconfig to report *all* directores which are
13201  # searched for libraries, however this is still not possible.  Aside from not
13202  # being certain /sbin/ldconfig is available, command
13203  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13204  # even though it is searched at run-time.  Try to do the best guess by
13205  # appending ld.so.conf contents (and includes) to the search path.
13206  if test -f /etc/ld.so.conf; then
13207    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' ' '`
13208    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13209  fi
13210
13211  # We used to test for /lib/ld.so.1 and disable shared libraries on
13212  # powerpc, because MkLinux only supported shared libraries with the
13213  # GNU dynamic linker.  Since this was broken with cross compilers,
13214  # most powerpc-linux boxes support dynamic linking these days and
13215  # people can always --disable-shared, the test was removed, and we
13216  # assume the GNU/Linux dynamic linker is in use.
13217  dynamic_linker='GNU/Linux ld.so'
13218  ;;
13219
13220netbsdelf*-gnu)
13221  version_type=linux
13222  need_lib_prefix=no
13223  need_version=no
13224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13225  soname_spec='${libname}${release}${shared_ext}$major'
13226  shlibpath_var=LD_LIBRARY_PATH
13227  shlibpath_overrides_runpath=no
13228  hardcode_into_libs=yes
13229  dynamic_linker='NetBSD ld.elf_so'
13230  ;;
13231
13232netbsd*)
13233  version_type=sunos
13234  need_lib_prefix=no
13235  need_version=no
13236  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13237    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13238    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13239    dynamic_linker='NetBSD (a.out) ld.so'
13240  else
13241    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13242    soname_spec='$libname$release$shared_ext$major'
13243    dynamic_linker='NetBSD ld.elf_so'
13244  fi
13245  shlibpath_var=LD_LIBRARY_PATH
13246  shlibpath_overrides_runpath=yes
13247  hardcode_into_libs=yes
13248  ;;
13249
13250newsos6)
13251  version_type=linux # correct to gnu/linux during the next big refactor
13252  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13253  shlibpath_var=LD_LIBRARY_PATH
13254  shlibpath_overrides_runpath=yes
13255  ;;
13256
13257*nto* | *qnx*)
13258  version_type=qnx
13259  need_lib_prefix=no
13260  need_version=no
13261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13262  soname_spec='$libname$release$shared_ext$major'
13263  shlibpath_var=LD_LIBRARY_PATH
13264  shlibpath_overrides_runpath=no
13265  hardcode_into_libs=yes
13266  dynamic_linker='ldqnx.so'
13267  ;;
13268
13269openbsd* | bitrig*)
13270  version_type=sunos
13271  sys_lib_dlsearch_path_spec=/usr/lib
13272  need_lib_prefix=no
13273  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13274    need_version=no
13275  else
13276    need_version=yes
13277  fi
13278  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13279  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13280  shlibpath_var=LD_LIBRARY_PATH
13281  shlibpath_overrides_runpath=yes
13282  ;;
13283
13284os2*)
13285  libname_spec='$name'
13286  version_type=windows
13287  shrext_cmds=.dll
13288  need_version=no
13289  need_lib_prefix=no
13290  # OS/2 can only load a DLL with a base name of 8 characters or less.
13291  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13292    v=$($ECHO $release$versuffix | tr -d .-);
13293    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13294    $ECHO $n$v`$shared_ext'
13295  library_names_spec='${libname}_dll.$libext'
13296  dynamic_linker='OS/2 ld.exe'
13297  shlibpath_var=BEGINLIBPATH
13298  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13299  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13300  postinstall_cmds='base_file=`basename \$file`~
13301    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13302    dldir=$destdir/`dirname \$dlpath`~
13303    test -d \$dldir || mkdir -p \$dldir~
13304    $install_prog $dir/$dlname \$dldir/$dlname~
13305    chmod a+x \$dldir/$dlname~
13306    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13307      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13308    fi'
13309  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13310    dlpath=$dir/\$dldll~
13311    $RM \$dlpath'
13312  ;;
13313
13314osf3* | osf4* | osf5*)
13315  version_type=osf
13316  need_lib_prefix=no
13317  need_version=no
13318  soname_spec='$libname$release$shared_ext$major'
13319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13320  shlibpath_var=LD_LIBRARY_PATH
13321  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13322  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13323  ;;
13324
13325rdos*)
13326  dynamic_linker=no
13327  ;;
13328
13329solaris*)
13330  version_type=linux # correct to gnu/linux during the next big refactor
13331  need_lib_prefix=no
13332  need_version=no
13333  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13334  soname_spec='$libname$release$shared_ext$major'
13335  shlibpath_var=LD_LIBRARY_PATH
13336  shlibpath_overrides_runpath=yes
13337  hardcode_into_libs=yes
13338  # ldd complains unless libraries are executable
13339  postinstall_cmds='chmod +x $lib'
13340  ;;
13341
13342sunos4*)
13343  version_type=sunos
13344  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13345  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13346  shlibpath_var=LD_LIBRARY_PATH
13347  shlibpath_overrides_runpath=yes
13348  if test yes = "$with_gnu_ld"; then
13349    need_lib_prefix=no
13350  fi
13351  need_version=yes
13352  ;;
13353
13354sysv4 | sysv4.3*)
13355  version_type=linux # correct to gnu/linux during the next big refactor
13356  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13357  soname_spec='$libname$release$shared_ext$major'
13358  shlibpath_var=LD_LIBRARY_PATH
13359  case $host_vendor in
13360    sni)
13361      shlibpath_overrides_runpath=no
13362      need_lib_prefix=no
13363      runpath_var=LD_RUN_PATH
13364      ;;
13365    siemens)
13366      need_lib_prefix=no
13367      ;;
13368    motorola)
13369      need_lib_prefix=no
13370      need_version=no
13371      shlibpath_overrides_runpath=no
13372      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13373      ;;
13374  esac
13375  ;;
13376
13377sysv4*MP*)
13378  if test -d /usr/nec; then
13379    version_type=linux # correct to gnu/linux during the next big refactor
13380    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13381    soname_spec='$libname$shared_ext.$major'
13382    shlibpath_var=LD_LIBRARY_PATH
13383  fi
13384  ;;
13385
13386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13387  version_type=sco
13388  need_lib_prefix=no
13389  need_version=no
13390  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13391  soname_spec='$libname$release$shared_ext$major'
13392  shlibpath_var=LD_LIBRARY_PATH
13393  shlibpath_overrides_runpath=yes
13394  hardcode_into_libs=yes
13395  if test yes = "$with_gnu_ld"; then
13396    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13397  else
13398    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13399    case $host_os in
13400      sco3.2v5*)
13401        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13402	;;
13403    esac
13404  fi
13405  sys_lib_dlsearch_path_spec='/usr/lib'
13406  ;;
13407
13408tpf*)
13409  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13410  version_type=linux # correct to gnu/linux during the next big refactor
13411  need_lib_prefix=no
13412  need_version=no
13413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13414  shlibpath_var=LD_LIBRARY_PATH
13415  shlibpath_overrides_runpath=no
13416  hardcode_into_libs=yes
13417  ;;
13418
13419uts4*)
13420  version_type=linux # correct to gnu/linux during the next big refactor
13421  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13422  soname_spec='$libname$release$shared_ext$major'
13423  shlibpath_var=LD_LIBRARY_PATH
13424  ;;
13425
13426*)
13427  dynamic_linker=no
13428  ;;
13429esac
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13431$as_echo "$dynamic_linker" >&6; }
13432test no = "$dynamic_linker" && can_build_shared=no
13433
13434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13435if test yes = "$GCC"; then
13436  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13437fi
13438
13439if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13440  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13441fi
13442
13443if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13444  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13445fi
13446
13447# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13448configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13449
13450# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13451func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13452
13453# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13454configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13553$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13554hardcode_action=
13555if test -n "$hardcode_libdir_flag_spec" ||
13556   test -n "$runpath_var" ||
13557   test yes = "$hardcode_automatic"; then
13558
13559  # We can hardcode non-existent directories.
13560  if test no != "$hardcode_direct" &&
13561     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13562     # have to relink, otherwise we might link with an installed library
13563     # when we should be linking with a yet-to-be-installed one
13564     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13565     test no != "$hardcode_minus_L"; then
13566    # Linking always hardcodes the temporary library directory.
13567    hardcode_action=relink
13568  else
13569    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13570    hardcode_action=immediate
13571  fi
13572else
13573  # We cannot hardcode anything, or else we can only hardcode existing
13574  # directories.
13575  hardcode_action=unsupported
13576fi
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13578$as_echo "$hardcode_action" >&6; }
13579
13580if test relink = "$hardcode_action" ||
13581   test yes = "$inherit_rpath"; then
13582  # Fast installation is not supported
13583  enable_fast_install=no
13584elif test yes = "$shlibpath_overrides_runpath" ||
13585     test no = "$enable_shared"; then
13586  # Fast installation is not necessary
13587  enable_fast_install=needless
13588fi
13589
13590
13591
13592
13593
13594
13595  if test yes != "$enable_dlopen"; then
13596  enable_dlopen=unknown
13597  enable_dlopen_self=unknown
13598  enable_dlopen_self_static=unknown
13599else
13600  lt_cv_dlopen=no
13601  lt_cv_dlopen_libs=
13602
13603  case $host_os in
13604  beos*)
13605    lt_cv_dlopen=load_add_on
13606    lt_cv_dlopen_libs=
13607    lt_cv_dlopen_self=yes
13608    ;;
13609
13610  mingw* | pw32* | cegcc*)
13611    lt_cv_dlopen=LoadLibrary
13612    lt_cv_dlopen_libs=
13613    ;;
13614
13615  cygwin*)
13616    lt_cv_dlopen=dlopen
13617    lt_cv_dlopen_libs=
13618    ;;
13619
13620  darwin*)
13621    # if libdl is installed we need to link against it
13622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13623$as_echo_n "checking for dlopen in -ldl... " >&6; }
13624if ${ac_cv_lib_dl_dlopen+:} false; then :
13625  $as_echo_n "(cached) " >&6
13626else
13627  ac_check_lib_save_LIBS=$LIBS
13628LIBS="-ldl  $LIBS"
13629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h.  */
13631
13632/* Override any GCC internal prototype to avoid an error.
13633   Use char because int might match the return type of a GCC
13634   builtin and then its argument prototype would still apply.  */
13635#ifdef __cplusplus
13636extern "C"
13637#endif
13638char dlopen ();
13639int
13640main ()
13641{
13642return dlopen ();
13643  ;
13644  return 0;
13645}
13646_ACEOF
13647if ac_fn_c_try_link "$LINENO"; then :
13648  ac_cv_lib_dl_dlopen=yes
13649else
13650  ac_cv_lib_dl_dlopen=no
13651fi
13652rm -f core conftest.err conftest.$ac_objext \
13653    conftest$ac_exeext conftest.$ac_ext
13654LIBS=$ac_check_lib_save_LIBS
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13657$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13658if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13659  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13660else
13661
13662    lt_cv_dlopen=dyld
13663    lt_cv_dlopen_libs=
13664    lt_cv_dlopen_self=yes
13665
13666fi
13667
13668    ;;
13669
13670  tpf*)
13671    # Don't try to run any link tests for TPF.  We know it's impossible
13672    # because TPF is a cross-compiler, and we know how we open DSOs.
13673    lt_cv_dlopen=dlopen
13674    lt_cv_dlopen_libs=
13675    lt_cv_dlopen_self=no
13676    ;;
13677
13678  *)
13679    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13680if test "x$ac_cv_func_shl_load" = xyes; then :
13681  lt_cv_dlopen=shl_load
13682else
13683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13684$as_echo_n "checking for shl_load in -ldld... " >&6; }
13685if ${ac_cv_lib_dld_shl_load+:} false; then :
13686  $as_echo_n "(cached) " >&6
13687else
13688  ac_check_lib_save_LIBS=$LIBS
13689LIBS="-ldld  $LIBS"
13690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h.  */
13692
13693/* Override any GCC internal prototype to avoid an error.
13694   Use char because int might match the return type of a GCC
13695   builtin and then its argument prototype would still apply.  */
13696#ifdef __cplusplus
13697extern "C"
13698#endif
13699char shl_load ();
13700int
13701main ()
13702{
13703return shl_load ();
13704  ;
13705  return 0;
13706}
13707_ACEOF
13708if ac_fn_c_try_link "$LINENO"; then :
13709  ac_cv_lib_dld_shl_load=yes
13710else
13711  ac_cv_lib_dld_shl_load=no
13712fi
13713rm -f core conftest.err conftest.$ac_objext \
13714    conftest$ac_exeext conftest.$ac_ext
13715LIBS=$ac_check_lib_save_LIBS
13716fi
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13718$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13719if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13720  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13721else
13722  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13723if test "x$ac_cv_func_dlopen" = xyes; then :
13724  lt_cv_dlopen=dlopen
13725else
13726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13727$as_echo_n "checking for dlopen in -ldl... " >&6; }
13728if ${ac_cv_lib_dl_dlopen+:} false; then :
13729  $as_echo_n "(cached) " >&6
13730else
13731  ac_check_lib_save_LIBS=$LIBS
13732LIBS="-ldl  $LIBS"
13733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734/* end confdefs.h.  */
13735
13736/* Override any GCC internal prototype to avoid an error.
13737   Use char because int might match the return type of a GCC
13738   builtin and then its argument prototype would still apply.  */
13739#ifdef __cplusplus
13740extern "C"
13741#endif
13742char dlopen ();
13743int
13744main ()
13745{
13746return dlopen ();
13747  ;
13748  return 0;
13749}
13750_ACEOF
13751if ac_fn_c_try_link "$LINENO"; then :
13752  ac_cv_lib_dl_dlopen=yes
13753else
13754  ac_cv_lib_dl_dlopen=no
13755fi
13756rm -f core conftest.err conftest.$ac_objext \
13757    conftest$ac_exeext conftest.$ac_ext
13758LIBS=$ac_check_lib_save_LIBS
13759fi
13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13761$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13762if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13763  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13764else
13765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13766$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13767if ${ac_cv_lib_svld_dlopen+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  ac_check_lib_save_LIBS=$LIBS
13771LIBS="-lsvld  $LIBS"
13772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774
13775/* Override any GCC internal prototype to avoid an error.
13776   Use char because int might match the return type of a GCC
13777   builtin and then its argument prototype would still apply.  */
13778#ifdef __cplusplus
13779extern "C"
13780#endif
13781char dlopen ();
13782int
13783main ()
13784{
13785return dlopen ();
13786  ;
13787  return 0;
13788}
13789_ACEOF
13790if ac_fn_c_try_link "$LINENO"; then :
13791  ac_cv_lib_svld_dlopen=yes
13792else
13793  ac_cv_lib_svld_dlopen=no
13794fi
13795rm -f core conftest.err conftest.$ac_objext \
13796    conftest$ac_exeext conftest.$ac_ext
13797LIBS=$ac_check_lib_save_LIBS
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13800$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13801if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13802  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13803else
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13805$as_echo_n "checking for dld_link in -ldld... " >&6; }
13806if ${ac_cv_lib_dld_dld_link+:} false; then :
13807  $as_echo_n "(cached) " >&6
13808else
13809  ac_check_lib_save_LIBS=$LIBS
13810LIBS="-ldld  $LIBS"
13811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h.  */
13813
13814/* Override any GCC internal prototype to avoid an error.
13815   Use char because int might match the return type of a GCC
13816   builtin and then its argument prototype would still apply.  */
13817#ifdef __cplusplus
13818extern "C"
13819#endif
13820char dld_link ();
13821int
13822main ()
13823{
13824return dld_link ();
13825  ;
13826  return 0;
13827}
13828_ACEOF
13829if ac_fn_c_try_link "$LINENO"; then :
13830  ac_cv_lib_dld_dld_link=yes
13831else
13832  ac_cv_lib_dld_dld_link=no
13833fi
13834rm -f core conftest.err conftest.$ac_objext \
13835    conftest$ac_exeext conftest.$ac_ext
13836LIBS=$ac_check_lib_save_LIBS
13837fi
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13839$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13840if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13841  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13842fi
13843
13844
13845fi
13846
13847
13848fi
13849
13850
13851fi
13852
13853
13854fi
13855
13856
13857fi
13858
13859    ;;
13860  esac
13861
13862  if test no = "$lt_cv_dlopen"; then
13863    enable_dlopen=no
13864  else
13865    enable_dlopen=yes
13866  fi
13867
13868  case $lt_cv_dlopen in
13869  dlopen)
13870    save_CPPFLAGS=$CPPFLAGS
13871    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13872
13873    save_LDFLAGS=$LDFLAGS
13874    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13875
13876    save_LIBS=$LIBS
13877    LIBS="$lt_cv_dlopen_libs $LIBS"
13878
13879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13880$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13881if ${lt_cv_dlopen_self+:} false; then :
13882  $as_echo_n "(cached) " >&6
13883else
13884  	  if test yes = "$cross_compiling"; then :
13885  lt_cv_dlopen_self=cross
13886else
13887  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13888  lt_status=$lt_dlunknown
13889  cat > conftest.$ac_ext <<_LT_EOF
13890#line $LINENO "configure"
13891#include "confdefs.h"
13892
13893#if HAVE_DLFCN_H
13894#include <dlfcn.h>
13895#endif
13896
13897#include <stdio.h>
13898
13899#ifdef RTLD_GLOBAL
13900#  define LT_DLGLOBAL		RTLD_GLOBAL
13901#else
13902#  ifdef DL_GLOBAL
13903#    define LT_DLGLOBAL		DL_GLOBAL
13904#  else
13905#    define LT_DLGLOBAL		0
13906#  endif
13907#endif
13908
13909/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13910   find out it does not work in some platform. */
13911#ifndef LT_DLLAZY_OR_NOW
13912#  ifdef RTLD_LAZY
13913#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13914#  else
13915#    ifdef DL_LAZY
13916#      define LT_DLLAZY_OR_NOW		DL_LAZY
13917#    else
13918#      ifdef RTLD_NOW
13919#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13920#      else
13921#        ifdef DL_NOW
13922#          define LT_DLLAZY_OR_NOW	DL_NOW
13923#        else
13924#          define LT_DLLAZY_OR_NOW	0
13925#        endif
13926#      endif
13927#    endif
13928#  endif
13929#endif
13930
13931/* When -fvisibility=hidden is used, assume the code has been annotated
13932   correspondingly for the symbols needed.  */
13933#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13934int fnord () __attribute__((visibility("default")));
13935#endif
13936
13937int fnord () { return 42; }
13938int main ()
13939{
13940  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13941  int status = $lt_dlunknown;
13942
13943  if (self)
13944    {
13945      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13946      else
13947        {
13948	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13949          else puts (dlerror ());
13950	}
13951      /* dlclose (self); */
13952    }
13953  else
13954    puts (dlerror ());
13955
13956  return status;
13957}
13958_LT_EOF
13959  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13960  (eval $ac_link) 2>&5
13961  ac_status=$?
13962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13964    (./conftest; exit; ) >&5 2>/dev/null
13965    lt_status=$?
13966    case x$lt_status in
13967      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13968      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13969      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13970    esac
13971  else :
13972    # compilation failed
13973    lt_cv_dlopen_self=no
13974  fi
13975fi
13976rm -fr conftest*
13977
13978
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13981$as_echo "$lt_cv_dlopen_self" >&6; }
13982
13983    if test yes = "$lt_cv_dlopen_self"; then
13984      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13985      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13986$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13987if ${lt_cv_dlopen_self_static+:} false; then :
13988  $as_echo_n "(cached) " >&6
13989else
13990  	  if test yes = "$cross_compiling"; then :
13991  lt_cv_dlopen_self_static=cross
13992else
13993  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13994  lt_status=$lt_dlunknown
13995  cat > conftest.$ac_ext <<_LT_EOF
13996#line $LINENO "configure"
13997#include "confdefs.h"
13998
13999#if HAVE_DLFCN_H
14000#include <dlfcn.h>
14001#endif
14002
14003#include <stdio.h>
14004
14005#ifdef RTLD_GLOBAL
14006#  define LT_DLGLOBAL		RTLD_GLOBAL
14007#else
14008#  ifdef DL_GLOBAL
14009#    define LT_DLGLOBAL		DL_GLOBAL
14010#  else
14011#    define LT_DLGLOBAL		0
14012#  endif
14013#endif
14014
14015/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14016   find out it does not work in some platform. */
14017#ifndef LT_DLLAZY_OR_NOW
14018#  ifdef RTLD_LAZY
14019#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14020#  else
14021#    ifdef DL_LAZY
14022#      define LT_DLLAZY_OR_NOW		DL_LAZY
14023#    else
14024#      ifdef RTLD_NOW
14025#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14026#      else
14027#        ifdef DL_NOW
14028#          define LT_DLLAZY_OR_NOW	DL_NOW
14029#        else
14030#          define LT_DLLAZY_OR_NOW	0
14031#        endif
14032#      endif
14033#    endif
14034#  endif
14035#endif
14036
14037/* When -fvisibility=hidden is used, assume the code has been annotated
14038   correspondingly for the symbols needed.  */
14039#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14040int fnord () __attribute__((visibility("default")));
14041#endif
14042
14043int fnord () { return 42; }
14044int main ()
14045{
14046  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14047  int status = $lt_dlunknown;
14048
14049  if (self)
14050    {
14051      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14052      else
14053        {
14054	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14055          else puts (dlerror ());
14056	}
14057      /* dlclose (self); */
14058    }
14059  else
14060    puts (dlerror ());
14061
14062  return status;
14063}
14064_LT_EOF
14065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14066  (eval $ac_link) 2>&5
14067  ac_status=$?
14068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14069  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14070    (./conftest; exit; ) >&5 2>/dev/null
14071    lt_status=$?
14072    case x$lt_status in
14073      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14074      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14075      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14076    esac
14077  else :
14078    # compilation failed
14079    lt_cv_dlopen_self_static=no
14080  fi
14081fi
14082rm -fr conftest*
14083
14084
14085fi
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14087$as_echo "$lt_cv_dlopen_self_static" >&6; }
14088    fi
14089
14090    CPPFLAGS=$save_CPPFLAGS
14091    LDFLAGS=$save_LDFLAGS
14092    LIBS=$save_LIBS
14093    ;;
14094  esac
14095
14096  case $lt_cv_dlopen_self in
14097  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14098  *) enable_dlopen_self=unknown ;;
14099  esac
14100
14101  case $lt_cv_dlopen_self_static in
14102  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14103  *) enable_dlopen_self_static=unknown ;;
14104  esac
14105fi
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123striplib=
14124old_striplib=
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14126$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14127if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14128  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14129  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14131$as_echo "yes" >&6; }
14132else
14133# FIXME - insert some real tests, host_os isn't really good enough
14134  case $host_os in
14135  darwin*)
14136    if test -n "$STRIP"; then
14137      striplib="$STRIP -x"
14138      old_striplib="$STRIP -S"
14139      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14140$as_echo "yes" >&6; }
14141    else
14142      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143$as_echo "no" >&6; }
14144    fi
14145    ;;
14146  *)
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148$as_echo "no" >&6; }
14149    ;;
14150  esac
14151fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164  # Report what library types will actually be built
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14166$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14168$as_echo "$can_build_shared" >&6; }
14169
14170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14171$as_echo_n "checking whether to build shared libraries... " >&6; }
14172  test no = "$can_build_shared" && enable_shared=no
14173
14174  # On AIX, shared libraries and static libraries use the same namespace, and
14175  # are all built from PIC.
14176  case $host_os in
14177  aix3*)
14178    test yes = "$enable_shared" && enable_static=no
14179    if test -n "$RANLIB"; then
14180      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14181      postinstall_cmds='$RANLIB $lib'
14182    fi
14183    ;;
14184
14185  aix[4-9]*)
14186    if test ia64 != "$host_cpu"; then
14187      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14188      yes,aix,yes) ;;			# shared object as lib.so file only
14189      yes,svr4,*) ;;			# shared object as lib.so archive member only
14190      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14191      esac
14192    fi
14193    ;;
14194  esac
14195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14196$as_echo "$enable_shared" >&6; }
14197
14198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14199$as_echo_n "checking whether to build static libraries... " >&6; }
14200  # Make sure either enable_shared or enable_static is yes.
14201  test yes = "$enable_shared" || enable_static=yes
14202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14203$as_echo "$enable_static" >&6; }
14204
14205
14206
14207
14208fi
14209ac_ext=c
14210ac_cpp='$CPP $CPPFLAGS'
14211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14213ac_compiler_gnu=$ac_cv_c_compiler_gnu
14214
14215CC=$lt_save_CC
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231        ac_config_commands="$ac_config_commands libtool"
14232
14233
14234
14235
14236# Only expand once:
14237
14238
14239
14240
14241if test "$GCC" = "yes"
14242then
14243
14244
14245
14246
14247
14248        # $is_release = (.git directory does not exist)
14249        if test -d ${srcdir}/.git; then :
14250  ax_is_release=no
14251else
14252  ax_is_release=yes
14253fi
14254
14255
14256
14257
14258    # C support is enabled by default.
14259
14260
14261    # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
14262    # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
14263    # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
14264    # checked.
14265
14266
14267
14268
14269    # Default value for IS-RELEASE is $ax_is_release
14270    ax_compiler_flags_is_release=$ax_is_release
14271
14272    # Check whether --enable-compile-warnings was given.
14273if test "${enable_compile_warnings+set}" = set; then :
14274  enableval=$enable_compile_warnings;
14275else
14276  if test "$ax_compiler_flags_is_release" = "yes"; then :
14277  enable_compile_warnings="yes"
14278else
14279  enable_compile_warnings="error"
14280fi
14281fi
14282
14283    # Check whether --enable-Werror was given.
14284if test "${enable_Werror+set}" = set; then :
14285  enableval=$enable_Werror;
14286else
14287  enable_Werror=maybe
14288fi
14289
14290
14291    # Return the user's chosen warning level
14292    if test "$enable_Werror" = "no" -a \
14293                "$enable_compile_warnings" = "error"; then :
14294
14295        enable_compile_warnings="yes"
14296
14297fi
14298
14299    ax_enable_compile_warnings=$enable_compile_warnings
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310    # Variable names
14311
14312
14313    ac_ext=c
14314ac_cpp='$CPP $CPPFLAGS'
14315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317ac_compiler_gnu=$ac_cv_c_compiler_gnu
14318
14319
14320    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321/* end confdefs.h.  */
14322
14323      #ifndef __cplusplus
14324       #error "no C++"
14325       #endif
14326int
14327main ()
14328{
14329
14330  ;
14331  return 0;
14332}
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"; then :
14335  ax_compiler_cxx=yes;
14336else
14337  ax_compiler_cxx=no;
14338fi
14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340
14341    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
14342    # flags, otherwise they are always appended to the warn_cflags variable, and
14343    # Clang warns on them for every compilation unit.
14344    # If this is passed to GCC, it will explode, so the flag must be enabled
14345    # conditionally.
14346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
14347$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
14348if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
14349  $as_echo_n "(cached) " >&6
14350else
14351
14352  ax_check_save_flags=$CFLAGS
14353  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
14354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356
14357int
14358main ()
14359{
14360
14361  ;
14362  return 0;
14363}
14364_ACEOF
14365if ac_fn_c_try_compile "$LINENO"; then :
14366  ax_cv_check_cflags___Werror_unknown_warning_option=yes
14367else
14368  ax_cv_check_cflags___Werror_unknown_warning_option=no
14369fi
14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371  CFLAGS=$ax_check_save_flags
14372fi
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
14374$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
14375if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
14376
14377        ax_compiler_flags_test="-Werror=unknown-warning-option"
14378
14379else
14380
14381        ax_compiler_flags_test=""
14382
14383fi
14384
14385
14386    # Check that -Wno-suggest-attribute=format is supported
14387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
14388$as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
14389if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
14390  $as_echo_n "(cached) " >&6
14391else
14392
14393  ax_check_save_flags=$CFLAGS
14394  CFLAGS="$CFLAGS  -Wno-suggest-attribute=format"
14395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396/* end confdefs.h.  */
14397
14398int
14399main ()
14400{
14401
14402  ;
14403  return 0;
14404}
14405_ACEOF
14406if ac_fn_c_try_compile "$LINENO"; then :
14407  ax_cv_check_cflags___Wno_suggest_attribute_format=yes
14408else
14409  ax_cv_check_cflags___Wno_suggest_attribute_format=no
14410fi
14411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412  CFLAGS=$ax_check_save_flags
14413fi
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
14415$as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
14416if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
14417
14418        ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
14419
14420else
14421
14422        ax_compiler_no_suggest_attribute_flags=""
14423
14424fi
14425
14426
14427    # Base flags
14428
14429
14430
14431
14432for flag in          -fno-strict-aliasing              ; do
14433  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14435$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14436if eval \${$as_CACHEVAR+:} false; then :
14437  $as_echo_n "(cached) " >&6
14438else
14439
14440  ax_check_save_flags=$CFLAGS
14441  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h.  */
14444
14445int
14446main ()
14447{
14448
14449  ;
14450  return 0;
14451}
14452_ACEOF
14453if ac_fn_c_try_compile "$LINENO"; then :
14454  eval "$as_CACHEVAR=yes"
14455else
14456  eval "$as_CACHEVAR=no"
14457fi
14458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459  CFLAGS=$ax_check_save_flags
14460fi
14461eval ac_res=\$$as_CACHEVAR
14462	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14463$as_echo "$ac_res" >&6; }
14464if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14465
14466if ${WARN_CFLAGS+:} false; then :
14467
14468  case " $WARN_CFLAGS " in #(
14469  *" $flag "*) :
14470    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14471  (: WARN_CFLAGS already contains $flag) 2>&5
14472  ac_status=$?
14473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14474  test $ac_status = 0; } ;; #(
14475  *) :
14476
14477     as_fn_append WARN_CFLAGS " $flag"
14478     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14479  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14480  ac_status=$?
14481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14482  test $ac_status = 0; }
14483     ;;
14484esac
14485
14486else
14487
14488  WARN_CFLAGS=$flag
14489  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14490  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14491  ac_status=$?
14492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14493  test $ac_status = 0; }
14494
14495fi
14496
14497else
14498  :
14499fi
14500
14501done
14502
14503
14504    if test "$ax_enable_compile_warnings" != "no"; then :
14505
14506        if test "$ax_compiler_cxx" = "no" ; then
14507            # C-only flags. Warn in C++
14508
14509
14510
14511
14512for flag in                  -Wnested-externs                 -Wmissing-prototypes                 -Wstrict-prototypes                 -Wdeclaration-after-statement                 -Wimplicit-function-declaration                 -Wold-style-definition                 -Wjump-misses-init             ; do
14513  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14515$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14516if eval \${$as_CACHEVAR+:} false; then :
14517  $as_echo_n "(cached) " >&6
14518else
14519
14520  ax_check_save_flags=$CFLAGS
14521  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524
14525int
14526main ()
14527{
14528
14529  ;
14530  return 0;
14531}
14532_ACEOF
14533if ac_fn_c_try_compile "$LINENO"; then :
14534  eval "$as_CACHEVAR=yes"
14535else
14536  eval "$as_CACHEVAR=no"
14537fi
14538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539  CFLAGS=$ax_check_save_flags
14540fi
14541eval ac_res=\$$as_CACHEVAR
14542	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14543$as_echo "$ac_res" >&6; }
14544if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14545
14546if ${WARN_CFLAGS+:} false; then :
14547
14548  case " $WARN_CFLAGS " in #(
14549  *" $flag "*) :
14550    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14551  (: WARN_CFLAGS already contains $flag) 2>&5
14552  ac_status=$?
14553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554  test $ac_status = 0; } ;; #(
14555  *) :
14556
14557     as_fn_append WARN_CFLAGS " $flag"
14558     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14559  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14560  ac_status=$?
14561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562  test $ac_status = 0; }
14563     ;;
14564esac
14565
14566else
14567
14568  WARN_CFLAGS=$flag
14569  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14570  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14571  ac_status=$?
14572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14573  test $ac_status = 0; }
14574
14575fi
14576
14577else
14578  :
14579fi
14580
14581done
14582
14583        fi
14584
14585        # "yes" flags
14586
14587
14588
14589
14590for flag in              -Wall             -Wextra             -Wundef             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wformat=2             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wreturn-type             -Wswitch-enum             -Wswitch-default             -Wduplicated-cond             -Wduplicated-branches             -Wlogical-op             -Wrestrict             -Wnull-dereference             -Wdouble-promotion             -Wunused-parameter -Wmissing-field-initializers                                                   ; do
14591  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14593$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14594if eval \${$as_CACHEVAR+:} false; then :
14595  $as_echo_n "(cached) " >&6
14596else
14597
14598  ax_check_save_flags=$CFLAGS
14599  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601/* end confdefs.h.  */
14602
14603int
14604main ()
14605{
14606
14607  ;
14608  return 0;
14609}
14610_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then :
14612  eval "$as_CACHEVAR=yes"
14613else
14614  eval "$as_CACHEVAR=no"
14615fi
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617  CFLAGS=$ax_check_save_flags
14618fi
14619eval ac_res=\$$as_CACHEVAR
14620	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14621$as_echo "$ac_res" >&6; }
14622if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14623
14624if ${WARN_CFLAGS+:} false; then :
14625
14626  case " $WARN_CFLAGS " in #(
14627  *" $flag "*) :
14628    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14629  (: WARN_CFLAGS already contains $flag) 2>&5
14630  ac_status=$?
14631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14632  test $ac_status = 0; } ;; #(
14633  *) :
14634
14635     as_fn_append WARN_CFLAGS " $flag"
14636     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14637  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14638  ac_status=$?
14639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640  test $ac_status = 0; }
14641     ;;
14642esac
14643
14644else
14645
14646  WARN_CFLAGS=$flag
14647  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14648  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14649  ac_status=$?
14650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14651  test $ac_status = 0; }
14652
14653fi
14654
14655else
14656  :
14657fi
14658
14659done
14660
14661
14662fi
14663    if test "$ax_enable_compile_warnings" = "error"; then :
14664
14665        # "error" flags; -Werror has to be appended unconditionally because
14666        # it's not possible to test for
14667        #
14668        # suggest-attribute=format is disabled because it gives too many false
14669        # positives
14670
14671if ${WARN_CFLAGS+:} false; then :
14672
14673  case " $WARN_CFLAGS " in #(
14674  *" -Werror "*) :
14675    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
14676  (: WARN_CFLAGS already contains -Werror) 2>&5
14677  ac_status=$?
14678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679  test $ac_status = 0; } ;; #(
14680  *) :
14681
14682     as_fn_append WARN_CFLAGS " -Werror"
14683     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14684  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14685  ac_status=$?
14686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687  test $ac_status = 0; }
14688     ;;
14689esac
14690
14691else
14692
14693  WARN_CFLAGS=-Werror
14694  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14695  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14696  ac_status=$?
14697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14698  test $ac_status = 0; }
14699
14700fi
14701
14702
14703
14704
14705
14706
14707for flag in              $ax_compiler_no_suggest_attribute_flags         ; do
14708  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14710$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14711if eval \${$as_CACHEVAR+:} false; then :
14712  $as_echo_n "(cached) " >&6
14713else
14714
14715  ax_check_save_flags=$CFLAGS
14716  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h.  */
14719
14720int
14721main ()
14722{
14723
14724  ;
14725  return 0;
14726}
14727_ACEOF
14728if ac_fn_c_try_compile "$LINENO"; then :
14729  eval "$as_CACHEVAR=yes"
14730else
14731  eval "$as_CACHEVAR=no"
14732fi
14733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734  CFLAGS=$ax_check_save_flags
14735fi
14736eval ac_res=\$$as_CACHEVAR
14737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14738$as_echo "$ac_res" >&6; }
14739if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14740
14741if ${WARN_CFLAGS+:} false; then :
14742
14743  case " $WARN_CFLAGS " in #(
14744  *" $flag "*) :
14745    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14746  (: WARN_CFLAGS already contains $flag) 2>&5
14747  ac_status=$?
14748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749  test $ac_status = 0; } ;; #(
14750  *) :
14751
14752     as_fn_append WARN_CFLAGS " $flag"
14753     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14754  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14755  ac_status=$?
14756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14757  test $ac_status = 0; }
14758     ;;
14759esac
14760
14761else
14762
14763  WARN_CFLAGS=$flag
14764  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14765  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14766  ac_status=$?
14767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14768  test $ac_status = 0; }
14769
14770fi
14771
14772else
14773  :
14774fi
14775
14776done
14777
14778
14779fi
14780
14781    # In the flags below, when disabling specific flags, always add *both*
14782    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
14783    # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
14784    # which effectively turns that flag back on again as an error.
14785    for flag in $WARN_CFLAGS; do
14786        case $flag in #(
14787  -Wno-*=*) :
14788     ;; #(
14789  -Wno-*) :
14790
14791
14792
14793
14794
14795for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
14796  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14798$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14799if eval \${$as_CACHEVAR+:} false; then :
14800  $as_echo_n "(cached) " >&6
14801else
14802
14803  ax_check_save_flags=$CFLAGS
14804  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806/* end confdefs.h.  */
14807
14808int
14809main ()
14810{
14811
14812  ;
14813  return 0;
14814}
14815_ACEOF
14816if ac_fn_c_try_compile "$LINENO"; then :
14817  eval "$as_CACHEVAR=yes"
14818else
14819  eval "$as_CACHEVAR=no"
14820fi
14821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822  CFLAGS=$ax_check_save_flags
14823fi
14824eval ac_res=\$$as_CACHEVAR
14825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14826$as_echo "$ac_res" >&6; }
14827if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14828
14829if ${WARN_CFLAGS+:} false; then :
14830
14831  case " $WARN_CFLAGS " in #(
14832  *" $flag "*) :
14833    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14834  (: WARN_CFLAGS already contains $flag) 2>&5
14835  ac_status=$?
14836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14837  test $ac_status = 0; } ;; #(
14838  *) :
14839
14840     as_fn_append WARN_CFLAGS " $flag"
14841     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14842  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14843  ac_status=$?
14844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14845  test $ac_status = 0; }
14846     ;;
14847esac
14848
14849else
14850
14851  WARN_CFLAGS=$flag
14852  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14853  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14854  ac_status=$?
14855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14856  test $ac_status = 0; }
14857
14858fi
14859
14860else
14861  :
14862fi
14863
14864done
14865
14866                 ;; #(
14867  *) :
14868     ;;
14869esac
14870    done
14871
14872    ac_ext=c
14873ac_cpp='$CPP $CPPFLAGS'
14874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14876ac_compiler_gnu=$ac_cv_c_compiler_gnu
14877
14878
14879    # Substitute the variables
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893    # Variable names
14894
14895
14896    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
14897    # flags, otherwise they are always appended to the warn_ldflags variable,
14898    # and Clang warns on them for every compilation unit.
14899    # If this is passed to GCC, it will explode, so the flag must be enabled
14900    # conditionally.
14901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
14902$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
14903if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
14904  $as_echo_n "(cached) " >&6
14905else
14906
14907  ax_check_save_flags=$CFLAGS
14908  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
14909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910/* end confdefs.h.  */
14911
14912int
14913main ()
14914{
14915
14916  ;
14917  return 0;
14918}
14919_ACEOF
14920if ac_fn_c_try_compile "$LINENO"; then :
14921  ax_cv_check_cflags___Werror_unknown_warning_option=yes
14922else
14923  ax_cv_check_cflags___Werror_unknown_warning_option=no
14924fi
14925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926  CFLAGS=$ax_check_save_flags
14927fi
14928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
14929$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
14930if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
14931
14932        ax_compiler_flags_test="-Werror=unknown-warning-option"
14933
14934else
14935
14936        ax_compiler_flags_test=""
14937
14938fi
14939
14940
14941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5
14942$as_echo_n "checking whether the linker accepts -Wl,--as-needed... " >&6; }
14943if ${ax_cv_check_ldflags___Wl___as_needed+:} false; then :
14944  $as_echo_n "(cached) " >&6
14945else
14946
14947  ax_check_save_flags=$LDFLAGS
14948  LDFLAGS="$LDFLAGS  -Wl,--as-needed"
14949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950/* end confdefs.h.  */
14951
14952int
14953main ()
14954{
14955
14956  ;
14957  return 0;
14958}
14959_ACEOF
14960if ac_fn_c_try_link "$LINENO"; then :
14961  ax_cv_check_ldflags___Wl___as_needed=yes
14962else
14963  ax_cv_check_ldflags___Wl___as_needed=no
14964fi
14965rm -f core conftest.err conftest.$ac_objext \
14966    conftest$ac_exeext conftest.$ac_ext
14967  LDFLAGS=$ax_check_save_flags
14968fi
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5
14970$as_echo "$ax_cv_check_ldflags___Wl___as_needed" >&6; }
14971if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes; then :
14972
14973
14974
14975
14976
14977for flag in -Wl,--as-needed; do
14978  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14980$as_echo_n "checking whether the linker accepts $flag... " >&6; }
14981if eval \${$as_CACHEVAR+:} false; then :
14982  $as_echo_n "(cached) " >&6
14983else
14984
14985  ax_check_save_flags=$LDFLAGS
14986  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988/* end confdefs.h.  */
14989
14990int
14991main ()
14992{
14993
14994  ;
14995  return 0;
14996}
14997_ACEOF
14998if ac_fn_c_try_link "$LINENO"; then :
14999  eval "$as_CACHEVAR=yes"
15000else
15001  eval "$as_CACHEVAR=no"
15002fi
15003rm -f core conftest.err conftest.$ac_objext \
15004    conftest$ac_exeext conftest.$ac_ext
15005  LDFLAGS=$ax_check_save_flags
15006fi
15007eval ac_res=\$$as_CACHEVAR
15008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15009$as_echo "$ac_res" >&6; }
15010if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15011
15012if ${AM_LDFLAGS+:} false; then :
15013
15014  case " $AM_LDFLAGS " in #(
15015  *" $flag "*) :
15016    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
15017  (: AM_LDFLAGS already contains $flag) 2>&5
15018  ac_status=$?
15019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15020  test $ac_status = 0; } ;; #(
15021  *) :
15022
15023     as_fn_append AM_LDFLAGS " $flag"
15024     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15025  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15026  ac_status=$?
15027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028  test $ac_status = 0; }
15029     ;;
15030esac
15031
15032else
15033
15034  AM_LDFLAGS=$flag
15035  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15036  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15037  ac_status=$?
15038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15039  test $ac_status = 0; }
15040
15041fi
15042
15043else
15044  :
15045fi
15046
15047done
15048
15049
15050else
15051  :
15052fi
15053
15054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
15055$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
15056if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
15057  $as_echo_n "(cached) " >&6
15058else
15059
15060  ax_check_save_flags=$LDFLAGS
15061  LDFLAGS="$LDFLAGS  -Wl,-z,relro"
15062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063/* end confdefs.h.  */
15064
15065int
15066main ()
15067{
15068
15069  ;
15070  return 0;
15071}
15072_ACEOF
15073if ac_fn_c_try_link "$LINENO"; then :
15074  ax_cv_check_ldflags___Wl__z_relro=yes
15075else
15076  ax_cv_check_ldflags___Wl__z_relro=no
15077fi
15078rm -f core conftest.err conftest.$ac_objext \
15079    conftest$ac_exeext conftest.$ac_ext
15080  LDFLAGS=$ax_check_save_flags
15081fi
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
15083$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
15084if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
15085
15086
15087
15088
15089
15090for flag in -Wl,-z,relro; do
15091  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15093$as_echo_n "checking whether the linker accepts $flag... " >&6; }
15094if eval \${$as_CACHEVAR+:} false; then :
15095  $as_echo_n "(cached) " >&6
15096else
15097
15098  ax_check_save_flags=$LDFLAGS
15099  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101/* end confdefs.h.  */
15102
15103int
15104main ()
15105{
15106
15107  ;
15108  return 0;
15109}
15110_ACEOF
15111if ac_fn_c_try_link "$LINENO"; then :
15112  eval "$as_CACHEVAR=yes"
15113else
15114  eval "$as_CACHEVAR=no"
15115fi
15116rm -f core conftest.err conftest.$ac_objext \
15117    conftest$ac_exeext conftest.$ac_ext
15118  LDFLAGS=$ax_check_save_flags
15119fi
15120eval ac_res=\$$as_CACHEVAR
15121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15122$as_echo "$ac_res" >&6; }
15123if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15124
15125if ${AM_LDFLAGS+:} false; then :
15126
15127  case " $AM_LDFLAGS " in #(
15128  *" $flag "*) :
15129    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
15130  (: AM_LDFLAGS already contains $flag) 2>&5
15131  ac_status=$?
15132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15133  test $ac_status = 0; } ;; #(
15134  *) :
15135
15136     as_fn_append AM_LDFLAGS " $flag"
15137     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15138  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15139  ac_status=$?
15140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15141  test $ac_status = 0; }
15142     ;;
15143esac
15144
15145else
15146
15147  AM_LDFLAGS=$flag
15148  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15149  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15150  ac_status=$?
15151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15152  test $ac_status = 0; }
15153
15154fi
15155
15156else
15157  :
15158fi
15159
15160done
15161
15162
15163else
15164  :
15165fi
15166
15167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
15168$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
15169if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
15170  $as_echo_n "(cached) " >&6
15171else
15172
15173  ax_check_save_flags=$LDFLAGS
15174  LDFLAGS="$LDFLAGS  -Wl,-z,now"
15175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h.  */
15177
15178int
15179main ()
15180{
15181
15182  ;
15183  return 0;
15184}
15185_ACEOF
15186if ac_fn_c_try_link "$LINENO"; then :
15187  ax_cv_check_ldflags___Wl__z_now=yes
15188else
15189  ax_cv_check_ldflags___Wl__z_now=no
15190fi
15191rm -f core conftest.err conftest.$ac_objext \
15192    conftest$ac_exeext conftest.$ac_ext
15193  LDFLAGS=$ax_check_save_flags
15194fi
15195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
15196$as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
15197if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
15198
15199
15200
15201
15202
15203for flag in -Wl,-z,now; do
15204  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15206$as_echo_n "checking whether the linker accepts $flag... " >&6; }
15207if eval \${$as_CACHEVAR+:} false; then :
15208  $as_echo_n "(cached) " >&6
15209else
15210
15211  ax_check_save_flags=$LDFLAGS
15212  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214/* end confdefs.h.  */
15215
15216int
15217main ()
15218{
15219
15220  ;
15221  return 0;
15222}
15223_ACEOF
15224if ac_fn_c_try_link "$LINENO"; then :
15225  eval "$as_CACHEVAR=yes"
15226else
15227  eval "$as_CACHEVAR=no"
15228fi
15229rm -f core conftest.err conftest.$ac_objext \
15230    conftest$ac_exeext conftest.$ac_ext
15231  LDFLAGS=$ax_check_save_flags
15232fi
15233eval ac_res=\$$as_CACHEVAR
15234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15235$as_echo "$ac_res" >&6; }
15236if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15237
15238if ${AM_LDFLAGS+:} false; then :
15239
15240  case " $AM_LDFLAGS " in #(
15241  *" $flag "*) :
15242    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
15243  (: AM_LDFLAGS already contains $flag) 2>&5
15244  ac_status=$?
15245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15246  test $ac_status = 0; } ;; #(
15247  *) :
15248
15249     as_fn_append AM_LDFLAGS " $flag"
15250     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15251  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15252  ac_status=$?
15253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254  test $ac_status = 0; }
15255     ;;
15256esac
15257
15258else
15259
15260  AM_LDFLAGS=$flag
15261  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15262  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15263  ac_status=$?
15264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15265  test $ac_status = 0; }
15266
15267fi
15268
15269else
15270  :
15271fi
15272
15273done
15274
15275
15276else
15277  :
15278fi
15279
15280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
15281$as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
15282if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
15283  $as_echo_n "(cached) " >&6
15284else
15285
15286  ax_check_save_flags=$LDFLAGS
15287  LDFLAGS="$LDFLAGS  -Wl,-z,noexecstack"
15288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h.  */
15290
15291int
15292main ()
15293{
15294
15295  ;
15296  return 0;
15297}
15298_ACEOF
15299if ac_fn_c_try_link "$LINENO"; then :
15300  ax_cv_check_ldflags___Wl__z_noexecstack=yes
15301else
15302  ax_cv_check_ldflags___Wl__z_noexecstack=no
15303fi
15304rm -f core conftest.err conftest.$ac_objext \
15305    conftest$ac_exeext conftest.$ac_ext
15306  LDFLAGS=$ax_check_save_flags
15307fi
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
15309$as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
15310if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
15311
15312
15313
15314
15315
15316for flag in -Wl,-z,noexecstack; do
15317  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15319$as_echo_n "checking whether the linker accepts $flag... " >&6; }
15320if eval \${$as_CACHEVAR+:} false; then :
15321  $as_echo_n "(cached) " >&6
15322else
15323
15324  ax_check_save_flags=$LDFLAGS
15325  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328
15329int
15330main ()
15331{
15332
15333  ;
15334  return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"; then :
15338  eval "$as_CACHEVAR=yes"
15339else
15340  eval "$as_CACHEVAR=no"
15341fi
15342rm -f core conftest.err conftest.$ac_objext \
15343    conftest$ac_exeext conftest.$ac_ext
15344  LDFLAGS=$ax_check_save_flags
15345fi
15346eval ac_res=\$$as_CACHEVAR
15347	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15348$as_echo "$ac_res" >&6; }
15349if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15350
15351if ${AM_LDFLAGS+:} false; then :
15352
15353  case " $AM_LDFLAGS " in #(
15354  *" $flag "*) :
15355    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
15356  (: AM_LDFLAGS already contains $flag) 2>&5
15357  ac_status=$?
15358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15359  test $ac_status = 0; } ;; #(
15360  *) :
15361
15362     as_fn_append AM_LDFLAGS " $flag"
15363     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15364  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15365  ac_status=$?
15366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15367  test $ac_status = 0; }
15368     ;;
15369esac
15370
15371else
15372
15373  AM_LDFLAGS=$flag
15374  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
15375  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
15376  ac_status=$?
15377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15378  test $ac_status = 0; }
15379
15380fi
15381
15382else
15383  :
15384fi
15385
15386done
15387
15388
15389else
15390  :
15391fi
15392
15393    # textonly, retpolineplt not yet
15394
15395    # macOS and cygwin linker do not have --as-needed
15396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
15397$as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
15398if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then :
15399  $as_echo_n "(cached) " >&6
15400else
15401
15402  ax_check_save_flags=$LDFLAGS
15403  LDFLAGS="$LDFLAGS  -Wl,--no-as-needed"
15404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405/* end confdefs.h.  */
15406
15407int
15408main ()
15409{
15410
15411  ;
15412  return 0;
15413}
15414_ACEOF
15415if ac_fn_c_try_link "$LINENO"; then :
15416  ax_cv_check_ldflags___Wl___no_as_needed=yes
15417else
15418  ax_cv_check_ldflags___Wl___no_as_needed=no
15419fi
15420rm -f core conftest.err conftest.$ac_objext \
15421    conftest$ac_exeext conftest.$ac_ext
15422  LDFLAGS=$ax_check_save_flags
15423fi
15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
15425$as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
15426if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then :
15427
15428        ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
15429
15430else
15431
15432        ax_compiler_flags_as_needed_option=""
15433
15434fi
15435
15436
15437    # macOS linker speaks with a different accent
15438    ax_compiler_flags_fatal_warnings_option=""
15439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
15440$as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
15441if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then :
15442  $as_echo_n "(cached) " >&6
15443else
15444
15445  ax_check_save_flags=$LDFLAGS
15446  LDFLAGS="$LDFLAGS  -Wl,--fatal-warnings"
15447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448/* end confdefs.h.  */
15449
15450int
15451main ()
15452{
15453
15454  ;
15455  return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_link "$LINENO"; then :
15459  ax_cv_check_ldflags___Wl___fatal_warnings=yes
15460else
15461  ax_cv_check_ldflags___Wl___fatal_warnings=no
15462fi
15463rm -f core conftest.err conftest.$ac_objext \
15464    conftest$ac_exeext conftest.$ac_ext
15465  LDFLAGS=$ax_check_save_flags
15466fi
15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
15468$as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
15469if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then :
15470
15471        ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
15472
15473else
15474  :
15475fi
15476
15477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
15478$as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
15479if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then :
15480  $as_echo_n "(cached) " >&6
15481else
15482
15483  ax_check_save_flags=$LDFLAGS
15484  LDFLAGS="$LDFLAGS  -Wl,-fatal_warnings"
15485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486/* end confdefs.h.  */
15487
15488int
15489main ()
15490{
15491
15492  ;
15493  return 0;
15494}
15495_ACEOF
15496if ac_fn_c_try_link "$LINENO"; then :
15497  ax_cv_check_ldflags___Wl__fatal_warnings=yes
15498else
15499  ax_cv_check_ldflags___Wl__fatal_warnings=no
15500fi
15501rm -f core conftest.err conftest.$ac_objext \
15502    conftest$ac_exeext conftest.$ac_ext
15503  LDFLAGS=$ax_check_save_flags
15504fi
15505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
15506$as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
15507if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then :
15508
15509        ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
15510
15511else
15512  :
15513fi
15514
15515
15516    # Base flags
15517
15518
15519
15520
15521for flag in          $ax_compiler_flags_as_needed_option              ; do
15522  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15524$as_echo_n "checking whether the linker accepts $flag... " >&6; }
15525if eval \${$as_CACHEVAR+:} false; then :
15526  $as_echo_n "(cached) " >&6
15527else
15528
15529  ax_check_save_flags=$LDFLAGS
15530  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532/* end confdefs.h.  */
15533
15534int
15535main ()
15536{
15537
15538  ;
15539  return 0;
15540}
15541_ACEOF
15542if ac_fn_c_try_link "$LINENO"; then :
15543  eval "$as_CACHEVAR=yes"
15544else
15545  eval "$as_CACHEVAR=no"
15546fi
15547rm -f core conftest.err conftest.$ac_objext \
15548    conftest$ac_exeext conftest.$ac_ext
15549  LDFLAGS=$ax_check_save_flags
15550fi
15551eval ac_res=\$$as_CACHEVAR
15552	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15553$as_echo "$ac_res" >&6; }
15554if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15555
15556if ${WARN_LDFLAGS+:} false; then :
15557
15558  case " $WARN_LDFLAGS " in #(
15559  *" $flag "*) :
15560    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15561  (: WARN_LDFLAGS already contains $flag) 2>&5
15562  ac_status=$?
15563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15564  test $ac_status = 0; } ;; #(
15565  *) :
15566
15567     as_fn_append WARN_LDFLAGS " $flag"
15568     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15569  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15570  ac_status=$?
15571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15572  test $ac_status = 0; }
15573     ;;
15574esac
15575
15576else
15577
15578  WARN_LDFLAGS=$flag
15579  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15580  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15581  ac_status=$?
15582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15583  test $ac_status = 0; }
15584
15585fi
15586
15587else
15588  :
15589fi
15590
15591done
15592
15593
15594    if test "$ax_enable_compile_warnings" != "no"; then :
15595
15596        # "yes" flags
15597
15598
15599
15600
15601for flag in       ; do
15602  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15604$as_echo_n "checking whether the linker accepts $flag... " >&6; }
15605if eval \${$as_CACHEVAR+:} false; then :
15606  $as_echo_n "(cached) " >&6
15607else
15608
15609  ax_check_save_flags=$LDFLAGS
15610  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612/* end confdefs.h.  */
15613
15614int
15615main ()
15616{
15617
15618  ;
15619  return 0;
15620}
15621_ACEOF
15622if ac_fn_c_try_link "$LINENO"; then :
15623  eval "$as_CACHEVAR=yes"
15624else
15625  eval "$as_CACHEVAR=no"
15626fi
15627rm -f core conftest.err conftest.$ac_objext \
15628    conftest$ac_exeext conftest.$ac_ext
15629  LDFLAGS=$ax_check_save_flags
15630fi
15631eval ac_res=\$$as_CACHEVAR
15632	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15633$as_echo "$ac_res" >&6; }
15634if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15635
15636if ${WARN_LDFLAGS+:} false; then :
15637
15638  case " $WARN_LDFLAGS " in #(
15639  *" $flag "*) :
15640    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15641  (: WARN_LDFLAGS already contains $flag) 2>&5
15642  ac_status=$?
15643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15644  test $ac_status = 0; } ;; #(
15645  *) :
15646
15647     as_fn_append WARN_LDFLAGS " $flag"
15648     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15649  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15650  ac_status=$?
15651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652  test $ac_status = 0; }
15653     ;;
15654esac
15655
15656else
15657
15658  WARN_LDFLAGS=$flag
15659  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15660  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15661  ac_status=$?
15662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15663  test $ac_status = 0; }
15664
15665fi
15666
15667else
15668  :
15669fi
15670
15671done
15672
15673
15674fi
15675    if test "$ax_enable_compile_warnings" = "error"; then :
15676
15677        # "error" flags; -Werror has to be appended unconditionally because
15678        # it's not possible to test for
15679        #
15680        # suggest-attribute=format is disabled because it gives too many false
15681        # positives
15682
15683
15684
15685
15686for flag in              $ax_compiler_flags_fatal_warnings_option         ; do
15687  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15689$as_echo_n "checking whether the linker accepts $flag... " >&6; }
15690if eval \${$as_CACHEVAR+:} false; then :
15691  $as_echo_n "(cached) " >&6
15692else
15693
15694  ax_check_save_flags=$LDFLAGS
15695  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697/* end confdefs.h.  */
15698
15699int
15700main ()
15701{
15702
15703  ;
15704  return 0;
15705}
15706_ACEOF
15707if ac_fn_c_try_link "$LINENO"; then :
15708  eval "$as_CACHEVAR=yes"
15709else
15710  eval "$as_CACHEVAR=no"
15711fi
15712rm -f core conftest.err conftest.$ac_objext \
15713    conftest$ac_exeext conftest.$ac_ext
15714  LDFLAGS=$ax_check_save_flags
15715fi
15716eval ac_res=\$$as_CACHEVAR
15717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15718$as_echo "$ac_res" >&6; }
15719if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15720
15721if ${WARN_LDFLAGS+:} false; then :
15722
15723  case " $WARN_LDFLAGS " in #(
15724  *" $flag "*) :
15725    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15726  (: WARN_LDFLAGS already contains $flag) 2>&5
15727  ac_status=$?
15728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729  test $ac_status = 0; } ;; #(
15730  *) :
15731
15732     as_fn_append WARN_LDFLAGS " $flag"
15733     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15734  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15735  ac_status=$?
15736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15737  test $ac_status = 0; }
15738     ;;
15739esac
15740
15741else
15742
15743  WARN_LDFLAGS=$flag
15744  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15745  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15746  ac_status=$?
15747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748  test $ac_status = 0; }
15749
15750fi
15751
15752else
15753  :
15754fi
15755
15756done
15757
15758
15759fi
15760
15761    # Substitute the variables
15762
15763
15764
15765
15766
15767
15768    # Variable names
15769
15770
15771    # Base flags
15772
15773if ${WARN_SCANNERFLAGS+:} false; then :
15774
15775  case " $WARN_SCANNERFLAGS " in #(
15776  *"  "*) :
15777    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
15778  (: WARN_SCANNERFLAGS already contains ) 2>&5
15779  ac_status=$?
15780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15781  test $ac_status = 0; } ;; #(
15782  *) :
15783
15784     as_fn_append WARN_SCANNERFLAGS " "
15785     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15786  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15787  ac_status=$?
15788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15789  test $ac_status = 0; }
15790     ;;
15791esac
15792
15793else
15794
15795  WARN_SCANNERFLAGS=
15796  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15797  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15798  ac_status=$?
15799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800  test $ac_status = 0; }
15801
15802fi
15803
15804
15805    if test "$ax_enable_compile_warnings" != "no"; then :
15806
15807        # "yes" flags
15808
15809if ${WARN_SCANNERFLAGS+:} false; then :
15810
15811  case " $WARN_SCANNERFLAGS " in #(
15812  *"              --warn-all                                                              "*) :
15813    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-all                                                             "; } >&5
15814  (: WARN_SCANNERFLAGS already contains              --warn-all                                                             ) 2>&5
15815  ac_status=$?
15816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15817  test $ac_status = 0; } ;; #(
15818  *) :
15819
15820     as_fn_append WARN_SCANNERFLAGS "              --warn-all                                                             "
15821     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15822  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15823  ac_status=$?
15824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15825  test $ac_status = 0; }
15826     ;;
15827esac
15828
15829else
15830
15831  WARN_SCANNERFLAGS=             --warn-all
15832  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15833  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15834  ac_status=$?
15835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836  test $ac_status = 0; }
15837
15838fi
15839
15840
15841fi
15842    if test "$ax_enable_compile_warnings" = "error"; then :
15843
15844        # "error" flags
15845
15846if ${WARN_SCANNERFLAGS+:} false; then :
15847
15848  case " $WARN_SCANNERFLAGS " in #(
15849  *"              --warn-error          "*) :
15850    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-error         "; } >&5
15851  (: WARN_SCANNERFLAGS already contains              --warn-error         ) 2>&5
15852  ac_status=$?
15853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15854  test $ac_status = 0; } ;; #(
15855  *) :
15856
15857     as_fn_append WARN_SCANNERFLAGS "              --warn-error         "
15858     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15859  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15860  ac_status=$?
15861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862  test $ac_status = 0; }
15863     ;;
15864esac
15865
15866else
15867
15868  WARN_SCANNERFLAGS=             --warn-error
15869  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15870  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15871  ac_status=$?
15872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15873  test $ac_status = 0; }
15874
15875fi
15876
15877
15878fi
15879
15880    # Substitute the variables
15881
15882
15883
15884			# unfortunately, AX_COMPILER_FLAGS does not provide a way to override
15885			# the default -Wno-error=warning" flags. So we do this via sed below.
15886			# Note: we *really* want to have this error out during CI testing!
15887			# rgerhards, 2018-05-09
15888			WARN_CFLAGS="$(echo "$WARN_CFLAGS" | sed s/-Wno-error=/-W/g)"
15889
15890
15891else
15892	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&5
15893$as_echo "$as_me: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&2;}
15894fi
15895
15896
15897
15898
15899
15900
15901
15902
15903if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15904	if test -n "$ac_tool_prefix"; then
15905  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15906set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908$as_echo_n "checking for $ac_word... " >&6; }
15909if ${ac_cv_path_PKG_CONFIG+:} false; then :
15910  $as_echo_n "(cached) " >&6
15911else
15912  case $PKG_CONFIG in
15913  [\\/]* | ?:[\\/]*)
15914  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15915  ;;
15916  *)
15917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918for as_dir in $PATH
15919do
15920  IFS=$as_save_IFS
15921  test -z "$as_dir" && as_dir=.
15922    for ac_exec_ext in '' $ac_executable_extensions; do
15923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15926    break 2
15927  fi
15928done
15929  done
15930IFS=$as_save_IFS
15931
15932  ;;
15933esac
15934fi
15935PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15936if test -n "$PKG_CONFIG"; then
15937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15938$as_echo "$PKG_CONFIG" >&6; }
15939else
15940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941$as_echo "no" >&6; }
15942fi
15943
15944
15945fi
15946if test -z "$ac_cv_path_PKG_CONFIG"; then
15947  ac_pt_PKG_CONFIG=$PKG_CONFIG
15948  # Extract the first word of "pkg-config", so it can be a program name with args.
15949set dummy pkg-config; ac_word=$2
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15951$as_echo_n "checking for $ac_word... " >&6; }
15952if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15953  $as_echo_n "(cached) " >&6
15954else
15955  case $ac_pt_PKG_CONFIG in
15956  [\\/]* | ?:[\\/]*)
15957  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15958  ;;
15959  *)
15960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15961for as_dir in $PATH
15962do
15963  IFS=$as_save_IFS
15964  test -z "$as_dir" && as_dir=.
15965    for ac_exec_ext in '' $ac_executable_extensions; do
15966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15967    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15969    break 2
15970  fi
15971done
15972  done
15973IFS=$as_save_IFS
15974
15975  ;;
15976esac
15977fi
15978ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15979if test -n "$ac_pt_PKG_CONFIG"; then
15980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15981$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15982else
15983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984$as_echo "no" >&6; }
15985fi
15986
15987  if test "x$ac_pt_PKG_CONFIG" = x; then
15988    PKG_CONFIG=""
15989  else
15990    case $cross_compiling:$ac_tool_warned in
15991yes:)
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15994ac_tool_warned=yes ;;
15995esac
15996    PKG_CONFIG=$ac_pt_PKG_CONFIG
15997  fi
15998else
15999  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16000fi
16001
16002fi
16003if test -n "$PKG_CONFIG"; then
16004	_pkg_min_version=0.9.0
16005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16006$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16007	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16009$as_echo "yes" >&6; }
16010	else
16011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012$as_echo "no" >&6; }
16013		PKG_CONFIG=""
16014	fi
16015fi
16016
16017
16018if test "$ac_cv_env_CONF_FILE_PATH_set" = "set"; then
16019
16020cat >>confdefs.h <<_ACEOF
16021#define PATH_CONFFILE "${ac_cv_env_CONF_FILE_PATH_value}"
16022_ACEOF
16023
16024fi
16025
16026
16027if test "$ac_cv_env_PID_FILE_PATH_set" = "set"; then
16028
16029cat >>confdefs.h <<_ACEOF
16030#define PATH_PIDFILE "${ac_cv_env_PID_FILE_PATH_value}"
16031_ACEOF
16032
16033fi
16034
16035
16036# modules we require
16037
16038pkg_failed=no
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBESTR" >&5
16040$as_echo_n "checking for LIBESTR... " >&6; }
16041
16042if test -n "$LIBESTR_CFLAGS"; then
16043    pkg_cv_LIBESTR_CFLAGS="$LIBESTR_CFLAGS"
16044 elif test -n "$PKG_CONFIG"; then
16045    if test -n "$PKG_CONFIG" && \
16046    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libestr >= 0.1.9\""; } >&5
16047  ($PKG_CONFIG --exists --print-errors "libestr >= 0.1.9") 2>&5
16048  ac_status=$?
16049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16050  test $ac_status = 0; }; then
16051  pkg_cv_LIBESTR_CFLAGS=`$PKG_CONFIG --cflags "libestr >= 0.1.9" 2>/dev/null`
16052		      test "x$?" != "x0" && pkg_failed=yes
16053else
16054  pkg_failed=yes
16055fi
16056 else
16057    pkg_failed=untried
16058fi
16059if test -n "$LIBESTR_LIBS"; then
16060    pkg_cv_LIBESTR_LIBS="$LIBESTR_LIBS"
16061 elif test -n "$PKG_CONFIG"; then
16062    if test -n "$PKG_CONFIG" && \
16063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libestr >= 0.1.9\""; } >&5
16064  ($PKG_CONFIG --exists --print-errors "libestr >= 0.1.9") 2>&5
16065  ac_status=$?
16066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16067  test $ac_status = 0; }; then
16068  pkg_cv_LIBESTR_LIBS=`$PKG_CONFIG --libs "libestr >= 0.1.9" 2>/dev/null`
16069		      test "x$?" != "x0" && pkg_failed=yes
16070else
16071  pkg_failed=yes
16072fi
16073 else
16074    pkg_failed=untried
16075fi
16076
16077
16078
16079if test $pkg_failed = yes; then
16080   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081$as_echo "no" >&6; }
16082
16083if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16084        _pkg_short_errors_supported=yes
16085else
16086        _pkg_short_errors_supported=no
16087fi
16088        if test $_pkg_short_errors_supported = yes; then
16089	        LIBESTR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libestr >= 0.1.9" 2>&1`
16090        else
16091	        LIBESTR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libestr >= 0.1.9" 2>&1`
16092        fi
16093	# Put the nasty error message in config.log where it belongs
16094	echo "$LIBESTR_PKG_ERRORS" >&5
16095
16096	as_fn_error $? "Package requirements (libestr >= 0.1.9) were not met:
16097
16098$LIBESTR_PKG_ERRORS
16099
16100Consider adjusting the PKG_CONFIG_PATH environment variable if you
16101installed software in a non-standard prefix.
16102
16103Alternatively, you may set the environment variables LIBESTR_CFLAGS
16104and LIBESTR_LIBS to avoid the need to call pkg-config.
16105See the pkg-config man page for more details." "$LINENO" 5
16106elif test $pkg_failed = untried; then
16107     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108$as_echo "no" >&6; }
16109	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16111as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16112is in your PATH or set the PKG_CONFIG environment variable to the full
16113path to pkg-config.
16114
16115Alternatively, you may set the environment variables LIBESTR_CFLAGS
16116and LIBESTR_LIBS to avoid the need to call pkg-config.
16117See the pkg-config man page for more details.
16118
16119To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16120See \`config.log' for more details" "$LINENO" 5; }
16121else
16122	LIBESTR_CFLAGS=$pkg_cv_LIBESTR_CFLAGS
16123	LIBESTR_LIBS=$pkg_cv_LIBESTR_LIBS
16124        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125$as_echo "yes" >&6; }
16126
16127fi
16128
16129
16130pkg_failed=no
16131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFASTJSON" >&5
16132$as_echo_n "checking for LIBFASTJSON... " >&6; }
16133
16134if test -n "$LIBFASTJSON_CFLAGS"; then
16135    pkg_cv_LIBFASTJSON_CFLAGS="$LIBFASTJSON_CFLAGS"
16136 elif test -n "$PKG_CONFIG"; then
16137    if test -n "$PKG_CONFIG" && \
16138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfastjson >= 0.99.8\""; } >&5
16139  ($PKG_CONFIG --exists --print-errors "libfastjson >= 0.99.8") 2>&5
16140  ac_status=$?
16141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16142  test $ac_status = 0; }; then
16143  pkg_cv_LIBFASTJSON_CFLAGS=`$PKG_CONFIG --cflags "libfastjson >= 0.99.8" 2>/dev/null`
16144		      test "x$?" != "x0" && pkg_failed=yes
16145else
16146  pkg_failed=yes
16147fi
16148 else
16149    pkg_failed=untried
16150fi
16151if test -n "$LIBFASTJSON_LIBS"; then
16152    pkg_cv_LIBFASTJSON_LIBS="$LIBFASTJSON_LIBS"
16153 elif test -n "$PKG_CONFIG"; then
16154    if test -n "$PKG_CONFIG" && \
16155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfastjson >= 0.99.8\""; } >&5
16156  ($PKG_CONFIG --exists --print-errors "libfastjson >= 0.99.8") 2>&5
16157  ac_status=$?
16158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16159  test $ac_status = 0; }; then
16160  pkg_cv_LIBFASTJSON_LIBS=`$PKG_CONFIG --libs "libfastjson >= 0.99.8" 2>/dev/null`
16161		      test "x$?" != "x0" && pkg_failed=yes
16162else
16163  pkg_failed=yes
16164fi
16165 else
16166    pkg_failed=untried
16167fi
16168
16169
16170
16171if test $pkg_failed = yes; then
16172   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173$as_echo "no" >&6; }
16174
16175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16176        _pkg_short_errors_supported=yes
16177else
16178        _pkg_short_errors_supported=no
16179fi
16180        if test $_pkg_short_errors_supported = yes; then
16181	        LIBFASTJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfastjson >= 0.99.8" 2>&1`
16182        else
16183	        LIBFASTJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfastjson >= 0.99.8" 2>&1`
16184        fi
16185	# Put the nasty error message in config.log where it belongs
16186	echo "$LIBFASTJSON_PKG_ERRORS" >&5
16187
16188	as_fn_error $? "Package requirements (libfastjson >= 0.99.8) were not met:
16189
16190$LIBFASTJSON_PKG_ERRORS
16191
16192Consider adjusting the PKG_CONFIG_PATH environment variable if you
16193installed software in a non-standard prefix.
16194
16195Alternatively, you may set the environment variables LIBFASTJSON_CFLAGS
16196and LIBFASTJSON_LIBS to avoid the need to call pkg-config.
16197See the pkg-config man page for more details." "$LINENO" 5
16198elif test $pkg_failed = untried; then
16199     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200$as_echo "no" >&6; }
16201	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16203as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16204is in your PATH or set the PKG_CONFIG environment variable to the full
16205path to pkg-config.
16206
16207Alternatively, you may set the environment variables LIBFASTJSON_CFLAGS
16208and LIBFASTJSON_LIBS to avoid the need to call pkg-config.
16209See the pkg-config man page for more details.
16210
16211To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16212See \`config.log' for more details" "$LINENO" 5; }
16213else
16214	LIBFASTJSON_CFLAGS=$pkg_cv_LIBFASTJSON_CFLAGS
16215	LIBFASTJSON_LIBS=$pkg_cv_LIBFASTJSON_LIBS
16216        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16217$as_echo "yes" >&6; }
16218
16219fi
16220
16221
16222cat >>confdefs.h <<_ACEOF
16223#define PLATFORM_ID "${host}"
16224_ACEOF
16225
16226# we don't mind if we don't have the lsb_release utility. But if we have, it's
16227# nice to have the extra information.
16228
16229cat >>confdefs.h <<_ACEOF
16230#define PLATFORM_ID_LSB "`lsb_release -d`"
16231_ACEOF
16232
16233
16234echo HOST: ${host}
16235case "${host}" in
16236  *-*-linux*)
16237
16238$as_echo "#define OS_LINUX 1" >>confdefs.h
16239
16240    os_type="linux"
16241  ;;
16242  *-*-*darwin*|*-*-dragonfly*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
16243
16244$as_echo "#define OS_BSD 1" >>confdefs.h
16245
16246    os_type="bsd"
16247  ;;
16248  *-apple-*)
16249
16250$as_echo "#define OS_APPLE 1" >>confdefs.h
16251
16252    os_type="apple"
16253  ;;
16254  *-*-kfreebsd*)
16255    # kernel is FreeBSD, but userspace is glibc - i.e. like linux
16256    # do not DEFINE OS_BSD
16257    os_type="bsd"
16258  ;;
16259  *-*-solaris*)
16260    os_type="solaris"
16261
16262$as_echo "#define OS_SOLARIS 1" >>confdefs.h
16263
16264
16265$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
16266
16267
16268$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
16269
16270    CPPFLAGS="-std=c99 $CPPFLAGS"
16271    CFLAGS="-std=c99 $CFLAGS"
16272    SOL_LIBS="-lsocket -lnsl"
16273    # Solaris libuuid does not ship with a pkgconfig file so override the appropriate
16274    # variables (but only if they have not been set by the user).
16275    LIBUUID_CFLAGS=${LIBUUID_CFLAGS:= }
16276    LIBUUID_LIBS=${LIBUUID_LIBS:=-luuid}
16277
16278  ;;
16279  *-*-aix*)
16280    os_type="aix"
16281
16282$as_echo "#define OS_AIX 1" >>confdefs.h
16283
16284  ;;
16285esac
16286 if test x$os_type == xapple; then
16287  OS_APPLE_TRUE=
16288  OS_APPLE_FALSE='#'
16289else
16290  OS_APPLE_TRUE='#'
16291  OS_APPLE_FALSE=
16292fi
16293
16294 if test x$os_type == xlinux; then
16295  OS_LINUX_TRUE=
16296  OS_LINUX_FALSE='#'
16297else
16298  OS_LINUX_TRUE='#'
16299  OS_LINUX_FALSE=
16300fi
16301
16302 if test x$os_type == xaix; then
16303  OS_AIX_TRUE=
16304  OS_AIX_FALSE='#'
16305else
16306  OS_AIX_TRUE='#'
16307  OS_AIX_FALSE=
16308fi
16309
16310
16311
16312
16313
16314
16315
16316
16317        # Find any Python interpreter.
16318    if test -z "$PYTHON"; then
16319      for ac_prog in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0
16320do
16321  # Extract the first word of "$ac_prog", so it can be a program name with args.
16322set dummy $ac_prog; ac_word=$2
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16324$as_echo_n "checking for $ac_word... " >&6; }
16325if ${ac_cv_path_PYTHON+:} false; then :
16326  $as_echo_n "(cached) " >&6
16327else
16328  case $PYTHON in
16329  [\\/]* | ?:[\\/]*)
16330  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16331  ;;
16332  *)
16333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16334for as_dir in $PATH
16335do
16336  IFS=$as_save_IFS
16337  test -z "$as_dir" && as_dir=.
16338    for ac_exec_ext in '' $ac_executable_extensions; do
16339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16340    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16342    break 2
16343  fi
16344done
16345  done
16346IFS=$as_save_IFS
16347
16348  ;;
16349esac
16350fi
16351PYTHON=$ac_cv_path_PYTHON
16352if test -n "$PYTHON"; then
16353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16354$as_echo "$PYTHON" >&6; }
16355else
16356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357$as_echo "no" >&6; }
16358fi
16359
16360
16361  test -n "$PYTHON" && break
16362done
16363test -n "$PYTHON" || PYTHON=":"
16364
16365    fi
16366    am_display_PYTHON=python
16367
16368
16369  if test "$PYTHON" = :; then
16370      :
16371  else
16372
16373
16374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16375$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16376if ${am_cv_python_version+:} false; then :
16377  $as_echo_n "(cached) " >&6
16378else
16379  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16380fi
16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16382$as_echo "$am_cv_python_version" >&6; }
16383  PYTHON_VERSION=$am_cv_python_version
16384
16385
16386
16387  PYTHON_PREFIX='${prefix}'
16388
16389  PYTHON_EXEC_PREFIX='${exec_prefix}'
16390
16391
16392
16393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16394$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16395if ${am_cv_python_platform+:} false; then :
16396  $as_echo_n "(cached) " >&6
16397else
16398  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16399fi
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16401$as_echo "$am_cv_python_platform" >&6; }
16402  PYTHON_PLATFORM=$am_cv_python_platform
16403
16404
16405  # Just factor out some code duplication.
16406  am_python_setup_sysconfig="\
16407import sys
16408# Prefer sysconfig over distutils.sysconfig, for better compatibility
16409# with python 3.x.  See automake bug#10227.
16410try:
16411    import sysconfig
16412except ImportError:
16413    can_use_sysconfig = 0
16414else:
16415    can_use_sysconfig = 1
16416# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16417# <https://github.com/pypa/virtualenv/issues/118>
16418try:
16419    from platform import python_implementation
16420    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16421        can_use_sysconfig = 0
16422except ImportError:
16423    pass"
16424
16425
16426            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16427$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16428if ${am_cv_python_pythondir+:} false; then :
16429  $as_echo_n "(cached) " >&6
16430else
16431  if test "x$prefix" = xNONE
16432     then
16433       am_py_prefix=$ac_default_prefix
16434     else
16435       am_py_prefix=$prefix
16436     fi
16437     am_cv_python_pythondir=`$PYTHON -c "
16438$am_python_setup_sysconfig
16439if can_use_sysconfig:
16440    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16441else:
16442    from distutils import sysconfig
16443    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16444sys.stdout.write(sitedir)"`
16445     case $am_cv_python_pythondir in
16446     $am_py_prefix*)
16447       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16448       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16449       ;;
16450     *)
16451       case $am_py_prefix in
16452         /usr|/System*) ;;
16453         *)
16454	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16455	  ;;
16456       esac
16457       ;;
16458     esac
16459
16460fi
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16462$as_echo "$am_cv_python_pythondir" >&6; }
16463  pythondir=$am_cv_python_pythondir
16464
16465
16466
16467  pkgpythondir=\${pythondir}/$PACKAGE
16468
16469
16470        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16471$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16472if ${am_cv_python_pyexecdir+:} false; then :
16473  $as_echo_n "(cached) " >&6
16474else
16475  if test "x$exec_prefix" = xNONE
16476     then
16477       am_py_exec_prefix=$am_py_prefix
16478     else
16479       am_py_exec_prefix=$exec_prefix
16480     fi
16481     am_cv_python_pyexecdir=`$PYTHON -c "
16482$am_python_setup_sysconfig
16483if can_use_sysconfig:
16484    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16485else:
16486    from distutils import sysconfig
16487    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16488sys.stdout.write(sitedir)"`
16489     case $am_cv_python_pyexecdir in
16490     $am_py_exec_prefix*)
16491       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16492       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16493       ;;
16494     *)
16495       case $am_py_exec_prefix in
16496         /usr|/System*) ;;
16497         *)
16498	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16499	   ;;
16500       esac
16501       ;;
16502     esac
16503
16504fi
16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16506$as_echo "$am_cv_python_pyexecdir" >&6; }
16507  pyexecdir=$am_cv_python_pyexecdir
16508
16509
16510
16511  pkgpyexecdir=\${pyexecdir}/$PACKAGE
16512
16513
16514
16515  fi
16516
16517
16518
16519# Running from git source?
16520in_git_src=no
16521if test -d "$srcdir"/.git && ! test -f  "$srcdir"/.tarball-version; then :
16522  in_git_src=yes
16523fi
16524
16525
16526
16527cat >>confdefs.h <<_ACEOF
16528#define HOSTENV "$host"
16529_ACEOF
16530
16531
16532# Some Unix systems, like Gnu Hurd, don't define PATH_MAX
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX" >&5
16534$as_echo_n "checking for PATH_MAX... " >&6; }
16535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536/* end confdefs.h.  */
16537#include <limits.h>
16538int
16539main ()
16540{
16541char checker[PATH_MAX];
16542  ;
16543  return 0;
16544}
16545_ACEOF
16546if ac_fn_c_try_compile "$LINENO"; then :
16547
16548                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16549$as_echo "yes" >&6; }
16550
16551else
16552
16553                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, mocking PATH_MAX = 4096" >&5
16554$as_echo "no, mocking PATH_MAX = 4096" >&6; }
16555
16556$as_echo "#define PATH_MAX 4096" >>confdefs.h
16557
16558
16559$as_echo "#define MAXPATHLEN 4096" >>confdefs.h
16560 # we assume this does not exit
16561
16562
16563fi
16564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565
16566# Checks for libraries.
16567save_LIBS=$LIBS
16568LIBS=
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16570$as_echo_n "checking for library containing clock_gettime... " >&6; }
16571if ${ac_cv_search_clock_gettime+:} false; then :
16572  $as_echo_n "(cached) " >&6
16573else
16574  ac_func_search_save_LIBS=$LIBS
16575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576/* end confdefs.h.  */
16577
16578/* Override any GCC internal prototype to avoid an error.
16579   Use char because int might match the return type of a GCC
16580   builtin and then its argument prototype would still apply.  */
16581#ifdef __cplusplus
16582extern "C"
16583#endif
16584char clock_gettime ();
16585int
16586main ()
16587{
16588return clock_gettime ();
16589  ;
16590  return 0;
16591}
16592_ACEOF
16593for ac_lib in '' rt; do
16594  if test -z "$ac_lib"; then
16595    ac_res="none required"
16596  else
16597    ac_res=-l$ac_lib
16598    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16599  fi
16600  if ac_fn_c_try_link "$LINENO"; then :
16601  ac_cv_search_clock_gettime=$ac_res
16602fi
16603rm -f core conftest.err conftest.$ac_objext \
16604    conftest$ac_exeext
16605  if ${ac_cv_search_clock_gettime+:} false; then :
16606  break
16607fi
16608done
16609if ${ac_cv_search_clock_gettime+:} false; then :
16610
16611else
16612  ac_cv_search_clock_gettime=no
16613fi
16614rm conftest.$ac_ext
16615LIBS=$ac_func_search_save_LIBS
16616fi
16617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16618$as_echo "$ac_cv_search_clock_gettime" >&6; }
16619ac_res=$ac_cv_search_clock_gettime
16620if test "$ac_res" != no; then :
16621  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16622
16623fi
16624
16625RT_LIBS=$LIBS
16626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mq_getattr" >&5
16627$as_echo_n "checking for library containing mq_getattr... " >&6; }
16628if ${ac_cv_search_mq_getattr+:} false; then :
16629  $as_echo_n "(cached) " >&6
16630else
16631  ac_func_search_save_LIBS=$LIBS
16632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633/* end confdefs.h.  */
16634
16635/* Override any GCC internal prototype to avoid an error.
16636   Use char because int might match the return type of a GCC
16637   builtin and then its argument prototype would still apply.  */
16638#ifdef __cplusplus
16639extern "C"
16640#endif
16641char mq_getattr ();
16642int
16643main ()
16644{
16645return mq_getattr ();
16646  ;
16647  return 0;
16648}
16649_ACEOF
16650for ac_lib in '' rt; do
16651  if test -z "$ac_lib"; then
16652    ac_res="none required"
16653  else
16654    ac_res=-l$ac_lib
16655    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16656  fi
16657  if ac_fn_c_try_link "$LINENO"; then :
16658  ac_cv_search_mq_getattr=$ac_res
16659fi
16660rm -f core conftest.err conftest.$ac_objext \
16661    conftest$ac_exeext
16662  if ${ac_cv_search_mq_getattr+:} false; then :
16663  break
16664fi
16665done
16666if ${ac_cv_search_mq_getattr+:} false; then :
16667
16668else
16669  ac_cv_search_mq_getattr=no
16670fi
16671rm conftest.$ac_ext
16672LIBS=$ac_func_search_save_LIBS
16673fi
16674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mq_getattr" >&5
16675$as_echo "$ac_cv_search_mq_getattr" >&6; }
16676ac_res=$ac_cv_search_mq_getattr
16677if test "$ac_res" != no; then :
16678  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16679
16680fi
16681
16682RT_LIBS="$RT_LIBS $LIBS"
16683LIBS=
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16685$as_echo_n "checking for library containing dlopen... " >&6; }
16686if ${ac_cv_search_dlopen+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689  ac_func_search_save_LIBS=$LIBS
16690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h.  */
16692
16693/* Override any GCC internal prototype to avoid an error.
16694   Use char because int might match the return type of a GCC
16695   builtin and then its argument prototype would still apply.  */
16696#ifdef __cplusplus
16697extern "C"
16698#endif
16699char dlopen ();
16700int
16701main ()
16702{
16703return dlopen ();
16704  ;
16705  return 0;
16706}
16707_ACEOF
16708for ac_lib in '' dl; do
16709  if test -z "$ac_lib"; then
16710    ac_res="none required"
16711  else
16712    ac_res=-l$ac_lib
16713    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16714  fi
16715  if ac_fn_c_try_link "$LINENO"; then :
16716  ac_cv_search_dlopen=$ac_res
16717fi
16718rm -f core conftest.err conftest.$ac_objext \
16719    conftest$ac_exeext
16720  if ${ac_cv_search_dlopen+:} false; then :
16721  break
16722fi
16723done
16724if ${ac_cv_search_dlopen+:} false; then :
16725
16726else
16727  ac_cv_search_dlopen=no
16728fi
16729rm conftest.$ac_ext
16730LIBS=$ac_func_search_save_LIBS
16731fi
16732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16733$as_echo "$ac_cv_search_dlopen" >&6; }
16734ac_res=$ac_cv_search_dlopen
16735if test "$ac_res" != no; then :
16736  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16737
16738fi
16739
16740DL_LIBS=$LIBS
16741LIBS=$save_LIBS
16742
16743
16744
16745
16746# Checks for header files.
16747for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
16748do :
16749  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16750ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
16751#  include <sys/types.h>
16752#endif
16753#ifdef HAVE_NETINET_IN_H
16754#  include <netinet/in.h>   /* inet_ functions / structs */
16755#endif
16756#ifdef HAVE_ARPA_NAMESER_H
16757#  include <arpa/nameser.h> /* DNS HEADER struct */
16758#endif
16759#ifdef HAVE_NETDB_H
16760#  include <netdb.h>
16761#endif
16762"
16763if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16764  cat >>confdefs.h <<_ACEOF
16765#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16766_ACEOF
16767
16768fi
16769
16770done
16771
16772
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16774$as_echo_n "checking for ANSI C header files... " >&6; }
16775if ${ac_cv_header_stdc+:} false; then :
16776  $as_echo_n "(cached) " >&6
16777else
16778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h.  */
16780#include <stdlib.h>
16781#include <stdarg.h>
16782#include <string.h>
16783#include <float.h>
16784
16785int
16786main ()
16787{
16788
16789  ;
16790  return 0;
16791}
16792_ACEOF
16793if ac_fn_c_try_compile "$LINENO"; then :
16794  ac_cv_header_stdc=yes
16795else
16796  ac_cv_header_stdc=no
16797fi
16798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799
16800if test $ac_cv_header_stdc = yes; then
16801  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803/* end confdefs.h.  */
16804#include <string.h>
16805
16806_ACEOF
16807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16808  $EGREP "memchr" >/dev/null 2>&1; then :
16809
16810else
16811  ac_cv_header_stdc=no
16812fi
16813rm -f conftest*
16814
16815fi
16816
16817if test $ac_cv_header_stdc = yes; then
16818  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821#include <stdlib.h>
16822
16823_ACEOF
16824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16825  $EGREP "free" >/dev/null 2>&1; then :
16826
16827else
16828  ac_cv_header_stdc=no
16829fi
16830rm -f conftest*
16831
16832fi
16833
16834if test $ac_cv_header_stdc = yes; then
16835  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16836  if test "$cross_compiling" = yes; then :
16837  :
16838else
16839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840/* end confdefs.h.  */
16841#include <ctype.h>
16842#include <stdlib.h>
16843#if ((' ' & 0x0FF) == 0x020)
16844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16846#else
16847# define ISLOWER(c) \
16848		   (('a' <= (c) && (c) <= 'i') \
16849		     || ('j' <= (c) && (c) <= 'r') \
16850		     || ('s' <= (c) && (c) <= 'z'))
16851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16852#endif
16853
16854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16855int
16856main ()
16857{
16858  int i;
16859  for (i = 0; i < 256; i++)
16860    if (XOR (islower (i), ISLOWER (i))
16861	|| toupper (i) != TOUPPER (i))
16862      return 2;
16863  return 0;
16864}
16865_ACEOF
16866if ac_fn_c_try_run "$LINENO"; then :
16867
16868else
16869  ac_cv_header_stdc=no
16870fi
16871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16872  conftest.$ac_objext conftest.beam conftest.$ac_ext
16873fi
16874
16875fi
16876fi
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16878$as_echo "$ac_cv_header_stdc" >&6; }
16879if test $ac_cv_header_stdc = yes; then
16880
16881$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16882
16883fi
16884
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16886$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16887if ${ac_cv_header_sys_wait_h+:} false; then :
16888  $as_echo_n "(cached) " >&6
16889else
16890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892#include <sys/types.h>
16893#include <sys/wait.h>
16894#ifndef WEXITSTATUS
16895# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16896#endif
16897#ifndef WIFEXITED
16898# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16899#endif
16900
16901int
16902main ()
16903{
16904  int s;
16905  wait (&s);
16906  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16907  ;
16908  return 0;
16909}
16910_ACEOF
16911if ac_fn_c_try_compile "$LINENO"; then :
16912  ac_cv_header_sys_wait_h=yes
16913else
16914  ac_cv_header_sys_wait_h=no
16915fi
16916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917fi
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16919$as_echo "$ac_cv_header_sys_wait_h" >&6; }
16920if test $ac_cv_header_sys_wait_h = yes; then
16921
16922$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16923
16924fi
16925
16926ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
16927  #ifdef HAVE_ARPA_INET_H
16928     # include <arpa/inet.h>
16929     #endif
16930
16931
16932"
16933if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16934
16935fi
16936
16937
16938for ac_header in libgen.h
16939do :
16940  ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
16941  #ifdef HAVE_LIBGEN_H
16942     # include <libgen.h>
16943     #endif
16944
16945
16946"
16947if test "x$ac_cv_header_libgen_h" = xyes; then :
16948  cat >>confdefs.h <<_ACEOF
16949#define HAVE_LIBGEN_H 1
16950_ACEOF
16951
16952fi
16953
16954done
16955
16956for ac_header in malloc.h
16957do :
16958  ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "
16959  #ifdef HAVE_MALLOC_H
16960     # include <malloc.h>
16961     #endif
16962
16963
16964"
16965if test "x$ac_cv_header_malloc_h" = xyes; then :
16966  cat >>confdefs.h <<_ACEOF
16967#define HAVE_MALLOC_H 1
16968_ACEOF
16969
16970fi
16971
16972done
16973
16974for ac_header in fcntl.h locale.h netdb.h netinet/in.h paths.h stddef.h stdlib.h string.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h sys/stat.h unistd.h utmp.h utmpx.h sys/epoll.h sys/prctl.h sys/select.h getopt.h
16975do :
16976  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16977ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16978if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16979  cat >>confdefs.h <<_ACEOF
16980#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981_ACEOF
16982
16983fi
16984
16985done
16986
16987
16988# Checks for typedefs, structures, and compiler characteristics.
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16990$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16991if ${ac_cv_c_const+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996
16997int
16998main ()
16999{
17000
17001#ifndef __cplusplus
17002  /* Ultrix mips cc rejects this sort of thing.  */
17003  typedef int charset[2];
17004  const charset cs = { 0, 0 };
17005  /* SunOS 4.1.1 cc rejects this.  */
17006  char const *const *pcpcc;
17007  char **ppc;
17008  /* NEC SVR4.0.2 mips cc rejects this.  */
17009  struct point {int x, y;};
17010  static struct point const zero = {0,0};
17011  /* AIX XL C 1.02.0.0 rejects this.
17012     It does not let you subtract one const X* pointer from another in
17013     an arm of an if-expression whose if-part is not a constant
17014     expression */
17015  const char *g = "string";
17016  pcpcc = &g + (g ? g-g : 0);
17017  /* HPUX 7.0 cc rejects these. */
17018  ++pcpcc;
17019  ppc = (char**) pcpcc;
17020  pcpcc = (char const *const *) ppc;
17021  { /* SCO 3.2v4 cc rejects this sort of thing.  */
17022    char tx;
17023    char *t = &tx;
17024    char const *s = 0 ? (char *) 0 : (char const *) 0;
17025
17026    *t++ = 0;
17027    if (s) return 0;
17028  }
17029  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17030    int x[] = {25, 17};
17031    const int *foo = &x[0];
17032    ++foo;
17033  }
17034  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17035    typedef const int *iptr;
17036    iptr p = 0;
17037    ++p;
17038  }
17039  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17040       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17041    struct s { int j; const int *ap[3]; } bx;
17042    struct s *b = &bx; b->j = 5;
17043  }
17044  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17045    const int foo = 10;
17046    if (!foo) return 0;
17047  }
17048  return !cs[0] && !zero.x;
17049#endif
17050
17051  ;
17052  return 0;
17053}
17054_ACEOF
17055if ac_fn_c_try_compile "$LINENO"; then :
17056  ac_cv_c_const=yes
17057else
17058  ac_cv_c_const=no
17059fi
17060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061fi
17062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17063$as_echo "$ac_cv_c_const" >&6; }
17064if test $ac_cv_c_const = no; then
17065
17066$as_echo "#define const /**/" >>confdefs.h
17067
17068fi
17069
17070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17071$as_echo_n "checking for inline... " >&6; }
17072if ${ac_cv_c_inline+:} false; then :
17073  $as_echo_n "(cached) " >&6
17074else
17075  ac_cv_c_inline=no
17076for ac_kw in inline __inline__ __inline; do
17077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078/* end confdefs.h.  */
17079#ifndef __cplusplus
17080typedef int foo_t;
17081static $ac_kw foo_t static_foo () {return 0; }
17082$ac_kw foo_t foo () {return 0; }
17083#endif
17084
17085_ACEOF
17086if ac_fn_c_try_compile "$LINENO"; then :
17087  ac_cv_c_inline=$ac_kw
17088fi
17089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090  test "$ac_cv_c_inline" != no && break
17091done
17092
17093fi
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17095$as_echo "$ac_cv_c_inline" >&6; }
17096
17097case $ac_cv_c_inline in
17098  inline | yes) ;;
17099  *)
17100    case $ac_cv_c_inline in
17101      no) ac_val=;;
17102      *) ac_val=$ac_cv_c_inline;;
17103    esac
17104    cat >>confdefs.h <<_ACEOF
17105#ifndef __cplusplus
17106#define inline $ac_val
17107#endif
17108_ACEOF
17109    ;;
17110esac
17111
17112ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17113if test "x$ac_cv_type_off_t" = xyes; then :
17114
17115else
17116
17117cat >>confdefs.h <<_ACEOF
17118#define off_t long int
17119_ACEOF
17120
17121fi
17122
17123ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17124if test "x$ac_cv_type_pid_t" = xyes; then :
17125
17126else
17127
17128cat >>confdefs.h <<_ACEOF
17129#define pid_t int
17130_ACEOF
17131
17132fi
17133
17134ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17135if test "x$ac_cv_type_size_t" = xyes; then :
17136
17137else
17138
17139cat >>confdefs.h <<_ACEOF
17140#define size_t unsigned int
17141_ACEOF
17142
17143fi
17144
17145ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17146if test "x$ac_cv_type_ssize_t" = xyes; then :
17147
17148else
17149
17150cat >>confdefs.h <<_ACEOF
17151#define ssize_t int
17152_ACEOF
17153
17154fi
17155
17156ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17157if test "x$ac_cv_type_mode_t" = xyes; then :
17158
17159else
17160
17161cat >>confdefs.h <<_ACEOF
17162#define mode_t int
17163_ACEOF
17164
17165fi
17166
17167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17168$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17169if ${ac_cv_type_uid_t+:} false; then :
17170  $as_echo_n "(cached) " >&6
17171else
17172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173/* end confdefs.h.  */
17174#include <sys/types.h>
17175
17176_ACEOF
17177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17178  $EGREP "uid_t" >/dev/null 2>&1; then :
17179  ac_cv_type_uid_t=yes
17180else
17181  ac_cv_type_uid_t=no
17182fi
17183rm -f conftest*
17184
17185fi
17186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17187$as_echo "$ac_cv_type_uid_t" >&6; }
17188if test $ac_cv_type_uid_t = no; then
17189
17190$as_echo "#define uid_t int" >>confdefs.h
17191
17192
17193$as_echo "#define gid_t int" >>confdefs.h
17194
17195fi
17196
17197ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17198case $ac_cv_c_uint8_t in #(
17199  no|yes) ;; #(
17200  *)
17201
17202$as_echo "#define _UINT8_T 1" >>confdefs.h
17203
17204
17205cat >>confdefs.h <<_ACEOF
17206#define uint8_t $ac_cv_c_uint8_t
17207_ACEOF
17208;;
17209  esac
17210
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17212$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17213if ${ac_cv_header_time+:} false; then :
17214  $as_echo_n "(cached) " >&6
17215else
17216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218#include <sys/types.h>
17219#include <sys/time.h>
17220#include <time.h>
17221
17222int
17223main ()
17224{
17225if ((struct tm *) 0)
17226return 0;
17227  ;
17228  return 0;
17229}
17230_ACEOF
17231if ac_fn_c_try_compile "$LINENO"; then :
17232  ac_cv_header_time=yes
17233else
17234  ac_cv_header_time=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237fi
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17239$as_echo "$ac_cv_header_time" >&6; }
17240if test $ac_cv_header_time = yes; then
17241
17242$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17243
17244fi
17245
17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17247$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17248if ${ac_cv_struct_tm+:} false; then :
17249  $as_echo_n "(cached) " >&6
17250else
17251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253#include <sys/types.h>
17254#include <time.h>
17255
17256int
17257main ()
17258{
17259struct tm tm;
17260				     int *p = &tm.tm_sec;
17261				     return !p;
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_compile "$LINENO"; then :
17267  ac_cv_struct_tm=time.h
17268else
17269  ac_cv_struct_tm=sys/time.h
17270fi
17271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272fi
17273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17274$as_echo "$ac_cv_struct_tm" >&6; }
17275if test $ac_cv_struct_tm = sys/time.h; then
17276
17277$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17278
17279fi
17280
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
17282$as_echo_n "checking for working volatile... " >&6; }
17283if ${ac_cv_c_volatile+:} false; then :
17284  $as_echo_n "(cached) " >&6
17285else
17286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287/* end confdefs.h.  */
17288
17289int
17290main ()
17291{
17292
17293volatile int x;
17294int * volatile y = (int *) 0;
17295return !x && !y;
17296  ;
17297  return 0;
17298}
17299_ACEOF
17300if ac_fn_c_try_compile "$LINENO"; then :
17301  ac_cv_c_volatile=yes
17302else
17303  ac_cv_c_volatile=no
17304fi
17305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17306fi
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
17308$as_echo "$ac_cv_c_volatile" >&6; }
17309if test $ac_cv_c_volatile = no; then
17310
17311$as_echo "#define volatile /**/" >>confdefs.h
17312
17313fi
17314
17315
17316sa_includes="\
17317$ac_includes_default
17318#if HAVE_SYS_SOCKET_H
17319# include <sys/socket.h>
17320#endif
17321"
17322ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "$sa_includes
17323"
17324if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
17325
17326cat >>confdefs.h <<_ACEOF
17327#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17328_ACEOF
17329
17330
17331fi
17332
17333
17334# Checks for library functions.
17335for ac_header in unistd.h
17336do :
17337  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17338if test "x$ac_cv_header_unistd_h" = xyes; then :
17339  cat >>confdefs.h <<_ACEOF
17340#define HAVE_UNISTD_H 1
17341_ACEOF
17342
17343fi
17344
17345done
17346
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
17348$as_echo_n "checking for working chown... " >&6; }
17349if ${ac_cv_func_chown_works+:} false; then :
17350  $as_echo_n "(cached) " >&6
17351else
17352  if test "$cross_compiling" = yes; then :
17353  ac_cv_func_chown_works=no
17354else
17355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356/* end confdefs.h.  */
17357$ac_includes_default
17358#include <fcntl.h>
17359
17360int
17361main ()
17362{
17363  char *f = "conftest.chown";
17364  struct stat before, after;
17365
17366  if (creat (f, 0600) < 0)
17367    return 1;
17368  if (stat (f, &before) < 0)
17369    return 1;
17370  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
17371    return 1;
17372  if (stat (f, &after) < 0)
17373    return 1;
17374  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
17375
17376  ;
17377  return 0;
17378}
17379_ACEOF
17380if ac_fn_c_try_run "$LINENO"; then :
17381  ac_cv_func_chown_works=yes
17382else
17383  ac_cv_func_chown_works=no
17384fi
17385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17386  conftest.$ac_objext conftest.beam conftest.$ac_ext
17387fi
17388
17389rm -f conftest.chown
17390
17391fi
17392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
17393$as_echo "$ac_cv_func_chown_works" >&6; }
17394if test $ac_cv_func_chown_works = yes; then
17395
17396$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
17397
17398fi
17399
17400for ac_header in vfork.h
17401do :
17402  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17403if test "x$ac_cv_header_vfork_h" = xyes; then :
17404  cat >>confdefs.h <<_ACEOF
17405#define HAVE_VFORK_H 1
17406_ACEOF
17407
17408fi
17409
17410done
17411
17412for ac_func in fork vfork
17413do :
17414  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17417  cat >>confdefs.h <<_ACEOF
17418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17419_ACEOF
17420
17421fi
17422done
17423
17424if test "x$ac_cv_func_fork" = xyes; then
17425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17426$as_echo_n "checking for working fork... " >&6; }
17427if ${ac_cv_func_fork_works+:} false; then :
17428  $as_echo_n "(cached) " >&6
17429else
17430  if test "$cross_compiling" = yes; then :
17431  ac_cv_func_fork_works=cross
17432else
17433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434/* end confdefs.h.  */
17435$ac_includes_default
17436int
17437main ()
17438{
17439
17440	  /* By Ruediger Kuhlmann. */
17441	  return fork () < 0;
17442
17443  ;
17444  return 0;
17445}
17446_ACEOF
17447if ac_fn_c_try_run "$LINENO"; then :
17448  ac_cv_func_fork_works=yes
17449else
17450  ac_cv_func_fork_works=no
17451fi
17452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17453  conftest.$ac_objext conftest.beam conftest.$ac_ext
17454fi
17455
17456fi
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17458$as_echo "$ac_cv_func_fork_works" >&6; }
17459
17460else
17461  ac_cv_func_fork_works=$ac_cv_func_fork
17462fi
17463if test "x$ac_cv_func_fork_works" = xcross; then
17464  case $host in
17465    *-*-amigaos* | *-*-msdosdjgpp*)
17466      # Override, as these systems have only a dummy fork() stub
17467      ac_cv_func_fork_works=no
17468      ;;
17469    *)
17470      ac_cv_func_fork_works=yes
17471      ;;
17472  esac
17473  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17474$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17475fi
17476ac_cv_func_vfork_works=$ac_cv_func_vfork
17477if test "x$ac_cv_func_vfork" = xyes; then
17478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17479$as_echo_n "checking for working vfork... " >&6; }
17480if ${ac_cv_func_vfork_works+:} false; then :
17481  $as_echo_n "(cached) " >&6
17482else
17483  if test "$cross_compiling" = yes; then :
17484  ac_cv_func_vfork_works=cross
17485else
17486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487/* end confdefs.h.  */
17488/* Thanks to Paul Eggert for this test.  */
17489$ac_includes_default
17490#include <sys/wait.h>
17491#ifdef HAVE_VFORK_H
17492# include <vfork.h>
17493#endif
17494/* On some sparc systems, changes by the child to local and incoming
17495   argument registers are propagated back to the parent.  The compiler
17496   is told about this with #include <vfork.h>, but some compilers
17497   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
17498   static variable whose address is put into a register that is
17499   clobbered by the vfork.  */
17500static void
17501#ifdef __cplusplus
17502sparc_address_test (int arg)
17503# else
17504sparc_address_test (arg) int arg;
17505#endif
17506{
17507  static pid_t child;
17508  if (!child) {
17509    child = vfork ();
17510    if (child < 0) {
17511      perror ("vfork");
17512      _exit(2);
17513    }
17514    if (!child) {
17515      arg = getpid();
17516      write(-1, "", 0);
17517      _exit (arg);
17518    }
17519  }
17520}
17521
17522int
17523main ()
17524{
17525  pid_t parent = getpid ();
17526  pid_t child;
17527
17528  sparc_address_test (0);
17529
17530  child = vfork ();
17531
17532  if (child == 0) {
17533    /* Here is another test for sparc vfork register problems.  This
17534       test uses lots of local variables, at least as many local
17535       variables as main has allocated so far including compiler
17536       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
17537       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
17538       reuse the register of parent for one of the local variables,
17539       since it will think that parent can't possibly be used any more
17540       in this routine.  Assigning to the local variable will thus
17541       munge parent in the parent process.  */
17542    pid_t
17543      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17544      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17545    /* Convince the compiler that p..p7 are live; otherwise, it might
17546       use the same hardware register for all 8 local variables.  */
17547    if (p != p1 || p != p2 || p != p3 || p != p4
17548	|| p != p5 || p != p6 || p != p7)
17549      _exit(1);
17550
17551    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17552       from child file descriptors.  If the child closes a descriptor
17553       before it execs or exits, this munges the parent's descriptor
17554       as well.  Test for this by closing stdout in the child.  */
17555    _exit(close(fileno(stdout)) != 0);
17556  } else {
17557    int status;
17558    struct stat st;
17559
17560    while (wait(&status) != child)
17561      ;
17562    return (
17563	 /* Was there some problem with vforking?  */
17564	 child < 0
17565
17566	 /* Did the child fail?  (This shouldn't happen.)  */
17567	 || status
17568
17569	 /* Did the vfork/compiler bug occur?  */
17570	 || parent != getpid()
17571
17572	 /* Did the file descriptor bug occur?  */
17573	 || fstat(fileno(stdout), &st) != 0
17574	 );
17575  }
17576}
17577_ACEOF
17578if ac_fn_c_try_run "$LINENO"; then :
17579  ac_cv_func_vfork_works=yes
17580else
17581  ac_cv_func_vfork_works=no
17582fi
17583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17584  conftest.$ac_objext conftest.beam conftest.$ac_ext
17585fi
17586
17587fi
17588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17589$as_echo "$ac_cv_func_vfork_works" >&6; }
17590
17591fi;
17592if test "x$ac_cv_func_fork_works" = xcross; then
17593  ac_cv_func_vfork_works=$ac_cv_func_vfork
17594  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17595$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17596fi
17597
17598if test "x$ac_cv_func_vfork_works" = xyes; then
17599
17600$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17601
17602else
17603
17604$as_echo "#define vfork fork" >>confdefs.h
17605
17606fi
17607if test "x$ac_cv_func_fork_works" = xyes; then
17608
17609$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17610
17611fi
17612
17613if test $ac_cv_c_compiler_gnu = yes; then
17614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
17615$as_echo_n "checking whether $CC needs -traditional... " >&6; }
17616if ${ac_cv_prog_gcc_traditional+:} false; then :
17617  $as_echo_n "(cached) " >&6
17618else
17619    ac_pattern="Autoconf.*'x'"
17620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621/* end confdefs.h.  */
17622#include <sgtty.h>
17623Autoconf TIOCGETP
17624_ACEOF
17625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17626  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17627  ac_cv_prog_gcc_traditional=yes
17628else
17629  ac_cv_prog_gcc_traditional=no
17630fi
17631rm -f conftest*
17632
17633
17634  if test $ac_cv_prog_gcc_traditional = no; then
17635    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636/* end confdefs.h.  */
17637#include <termio.h>
17638Autoconf TCGETA
17639_ACEOF
17640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17641  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17642  ac_cv_prog_gcc_traditional=yes
17643fi
17644rm -f conftest*
17645
17646  fi
17647fi
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
17649$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
17650  if test $ac_cv_prog_gcc_traditional = yes; then
17651    CC="$CC -traditional"
17652  fi
17653fi
17654
17655for ac_header in sys/select.h sys/socket.h
17656do :
17657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17658ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17659if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17660  cat >>confdefs.h <<_ACEOF
17661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17662_ACEOF
17663
17664fi
17665
17666done
17667
17668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
17669$as_echo_n "checking types of arguments for select... " >&6; }
17670if ${ac_cv_func_select_args+:} false; then :
17671  $as_echo_n "(cached) " >&6
17672else
17673  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
17674 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
17675  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
17676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17677/* end confdefs.h.  */
17678$ac_includes_default
17679#ifdef HAVE_SYS_SELECT_H
17680# include <sys/select.h>
17681#endif
17682#ifdef HAVE_SYS_SOCKET_H
17683# include <sys/socket.h>
17684#endif
17685
17686int
17687main ()
17688{
17689extern int select ($ac_arg1,
17690					    $ac_arg234, $ac_arg234, $ac_arg234,
17691					    $ac_arg5);
17692  ;
17693  return 0;
17694}
17695_ACEOF
17696if ac_fn_c_try_compile "$LINENO"; then :
17697  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
17698fi
17699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700  done
17701 done
17702done
17703# Provide a safe default value.
17704: "${ac_cv_func_select_args=int,int *,struct timeval *}"
17705
17706fi
17707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
17708$as_echo "$ac_cv_func_select_args" >&6; }
17709ac_save_IFS=$IFS; IFS=','
17710set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17711IFS=$ac_save_IFS
17712shift
17713
17714cat >>confdefs.h <<_ACEOF
17715#define SELECT_TYPE_ARG1 $1
17716_ACEOF
17717
17718
17719cat >>confdefs.h <<_ACEOF
17720#define SELECT_TYPE_ARG234 ($2)
17721_ACEOF
17722
17723
17724cat >>confdefs.h <<_ACEOF
17725#define SELECT_TYPE_ARG5 ($3)
17726_ACEOF
17727
17728rm -f conftest*
17729
17730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17731$as_echo_n "checking return type of signal handlers... " >&6; }
17732if ${ac_cv_type_signal+:} false; then :
17733  $as_echo_n "(cached) " >&6
17734else
17735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737#include <sys/types.h>
17738#include <signal.h>
17739
17740int
17741main ()
17742{
17743return *(signal (0, 0)) (0) == 1;
17744  ;
17745  return 0;
17746}
17747_ACEOF
17748if ac_fn_c_try_compile "$LINENO"; then :
17749  ac_cv_type_signal=int
17750else
17751  ac_cv_type_signal=void
17752fi
17753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754fi
17755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17756$as_echo "$ac_cv_type_signal" >&6; }
17757
17758cat >>confdefs.h <<_ACEOF
17759#define RETSIGTYPE $ac_cv_type_signal
17760_ACEOF
17761
17762
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17764$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17765if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
17766  $as_echo_n "(cached) " >&6
17767else
17768  rm -f conftest.sym conftest.file
17769echo >conftest.file
17770if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17771  if test "$cross_compiling" = yes; then :
17772  ac_cv_func_lstat_dereferences_slashed_symlink=no
17773else
17774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h.  */
17776$ac_includes_default
17777int
17778main ()
17779{
17780struct stat sbuf;
17781     /* Linux will dereference the symlink and fail, as required by POSIX.
17782	That is better in the sense that it means we will not
17783	have to compile and use the lstat wrapper.  */
17784     return lstat ("conftest.sym/", &sbuf) == 0;
17785  ;
17786  return 0;
17787}
17788_ACEOF
17789if ac_fn_c_try_run "$LINENO"; then :
17790  ac_cv_func_lstat_dereferences_slashed_symlink=yes
17791else
17792  ac_cv_func_lstat_dereferences_slashed_symlink=no
17793fi
17794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17795  conftest.$ac_objext conftest.beam conftest.$ac_ext
17796fi
17797
17798else
17799  # If the `ln -s' command failed, then we probably don't even
17800  # have an lstat function.
17801  ac_cv_func_lstat_dereferences_slashed_symlink=no
17802fi
17803rm -f conftest.sym conftest.file
17804
17805fi
17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
17807$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17808
17809test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
17810
17811cat >>confdefs.h <<_ACEOF
17812#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17813_ACEOF
17814
17815
17816if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
17817  case " $LIBOBJS " in
17818  *" lstat.$ac_objext "* ) ;;
17819  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
17820 ;;
17821esac
17822
17823fi
17824
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
17826$as_echo_n "checking whether stat accepts an empty string... " >&6; }
17827if ${ac_cv_func_stat_empty_string_bug+:} false; then :
17828  $as_echo_n "(cached) " >&6
17829else
17830  if test "$cross_compiling" = yes; then :
17831  ac_cv_func_stat_empty_string_bug=yes
17832else
17833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834/* end confdefs.h.  */
17835$ac_includes_default
17836int
17837main ()
17838{
17839struct stat sbuf;
17840  return stat ("", &sbuf) == 0;
17841  ;
17842  return 0;
17843}
17844_ACEOF
17845if ac_fn_c_try_run "$LINENO"; then :
17846  ac_cv_func_stat_empty_string_bug=no
17847else
17848  ac_cv_func_stat_empty_string_bug=yes
17849fi
17850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17851  conftest.$ac_objext conftest.beam conftest.$ac_ext
17852fi
17853
17854fi
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
17856$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
17857if test $ac_cv_func_stat_empty_string_bug = yes; then
17858  case " $LIBOBJS " in
17859  *" stat.$ac_objext "* ) ;;
17860  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
17861 ;;
17862esac
17863
17864
17865cat >>confdefs.h <<_ACEOF
17866#define HAVE_STAT_EMPTY_STRING_BUG 1
17867_ACEOF
17868
17869fi
17870
17871ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17872if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17873  ac_have_decl=1
17874else
17875  ac_have_decl=0
17876fi
17877
17878cat >>confdefs.h <<_ACEOF
17879#define HAVE_DECL_STRERROR_R $ac_have_decl
17880_ACEOF
17881
17882for ac_func in strerror_r
17883do :
17884  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17885if test "x$ac_cv_func_strerror_r" = xyes; then :
17886  cat >>confdefs.h <<_ACEOF
17887#define HAVE_STRERROR_R 1
17888_ACEOF
17889
17890fi
17891done
17892
17893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17894$as_echo_n "checking whether strerror_r returns char *... " >&6; }
17895if ${ac_cv_func_strerror_r_char_p+:} false; then :
17896  $as_echo_n "(cached) " >&6
17897else
17898
17899    ac_cv_func_strerror_r_char_p=no
17900    if test $ac_cv_have_decl_strerror_r = yes; then
17901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902/* end confdefs.h.  */
17903$ac_includes_default
17904int
17905main ()
17906{
17907
17908	  char buf[100];
17909	  char x = *strerror_r (0, buf, sizeof buf);
17910	  char *p = strerror_r (0, buf, sizeof buf);
17911	  return !p || x;
17912
17913  ;
17914  return 0;
17915}
17916_ACEOF
17917if ac_fn_c_try_compile "$LINENO"; then :
17918  ac_cv_func_strerror_r_char_p=yes
17919fi
17920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921    else
17922      # strerror_r is not declared.  Choose between
17923      # systems that have relatively inaccessible declarations for the
17924      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
17925      # former has a strerror_r that returns char*, while the latter
17926      # has a strerror_r that returns `int'.
17927      # This test should segfault on the DEC system.
17928      if test "$cross_compiling" = yes; then :
17929  :
17930else
17931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h.  */
17933$ac_includes_default
17934	extern char *strerror_r ();
17935int
17936main ()
17937{
17938char buf[100];
17939	  char x = *strerror_r (0, buf, sizeof buf);
17940	  return ! isalpha (x);
17941  ;
17942  return 0;
17943}
17944_ACEOF
17945if ac_fn_c_try_run "$LINENO"; then :
17946  ac_cv_func_strerror_r_char_p=yes
17947fi
17948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17949  conftest.$ac_objext conftest.beam conftest.$ac_ext
17950fi
17951
17952    fi
17953
17954fi
17955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17956$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17957if test $ac_cv_func_strerror_r_char_p = yes; then
17958
17959$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17960
17961fi
17962
17963for ac_func in vprintf
17964do :
17965  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
17966if test "x$ac_cv_func_vprintf" = xyes; then :
17967  cat >>confdefs.h <<_ACEOF
17968#define HAVE_VPRINTF 1
17969_ACEOF
17970
17971ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
17972if test "x$ac_cv_func__doprnt" = xyes; then :
17973
17974$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
17975
17976fi
17977
17978fi
17979done
17980
17981
17982for ac_func in flock recvmmsg basename alarm clock_gettime gethostbyname gethostname gettimeofday localtime_r memset mkdir regcomp select setsid socket strcasecmp strchr strdup strerror strndup strnlen strrchr strstr strtol strtoul uname ttyname_r getline malloc_trim prctl epoll_create epoll_create1 fdatasync syscall lseek64 asprintf
17983do :
17984  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17985ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17986if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17987  cat >>confdefs.h <<_ACEOF
17988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989_ACEOF
17990
17991fi
17992done
17993
17994ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
17995if test "x$ac_cv_func_setns" = xyes; then :
17996
17997$as_echo "#define HAVE_SETNS 1" >>confdefs.h
17998
17999fi
18000
18001ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
18002if test "x$ac_cv_type_off64_t" = xyes; then :
18003
18004cat >>confdefs.h <<_ACEOF
18005#define HAVE_OFF64_T 1
18006_ACEOF
18007
18008
18009fi
18010
18011
18012for ac_header in sys/inotify.h
18013do :
18014  ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
18015if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
18016  cat >>confdefs.h <<_ACEOF
18017#define HAVE_SYS_INOTIFY_H 1
18018_ACEOF
18019 rsyslog_sysinotify=yes
18020fi
18021
18022done
18023
18024for ac_func in inotify_init
18025do :
18026  ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
18027if test "x$ac_cv_func_inotify_init" = xyes; then :
18028  cat >>confdefs.h <<_ACEOF
18029#define HAVE_INOTIFY_INIT 1
18030_ACEOF
18031 rsyslog_inotify_init=yes
18032fi
18033done
18034
18035 if test x$rsyslog_sysinotify = xyes -a x$rsyslog_inotify_init = xyes; then
18036  ENABLE_INOTIFY_TRUE=
18037  ENABLE_INOTIFY_FALSE='#'
18038else
18039  ENABLE_INOTIFY_TRUE='#'
18040  ENABLE_INOTIFY_FALSE=
18041fi
18042
18043
18044# getifaddrs is in libc (mostly) or in libsocket (eg Solaris 11) or not defined (eg Solaris 10)
18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
18046$as_echo_n "checking for library containing getifaddrs... " >&6; }
18047if ${ac_cv_search_getifaddrs+:} false; then :
18048  $as_echo_n "(cached) " >&6
18049else
18050  ac_func_search_save_LIBS=$LIBS
18051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053
18054/* Override any GCC internal prototype to avoid an error.
18055   Use char because int might match the return type of a GCC
18056   builtin and then its argument prototype would still apply.  */
18057#ifdef __cplusplus
18058extern "C"
18059#endif
18060char getifaddrs ();
18061int
18062main ()
18063{
18064return getifaddrs ();
18065  ;
18066  return 0;
18067}
18068_ACEOF
18069for ac_lib in '' socket; do
18070  if test -z "$ac_lib"; then
18071    ac_res="none required"
18072  else
18073    ac_res=-l$ac_lib
18074    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18075  fi
18076  if ac_fn_c_try_link "$LINENO"; then :
18077  ac_cv_search_getifaddrs=$ac_res
18078fi
18079rm -f core conftest.err conftest.$ac_objext \
18080    conftest$ac_exeext
18081  if ${ac_cv_search_getifaddrs+:} false; then :
18082  break
18083fi
18084done
18085if ${ac_cv_search_getifaddrs+:} false; then :
18086
18087else
18088  ac_cv_search_getifaddrs=no
18089fi
18090rm conftest.$ac_ext
18091LIBS=$ac_func_search_save_LIBS
18092fi
18093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
18094$as_echo "$ac_cv_search_getifaddrs" >&6; }
18095ac_res=$ac_cv_search_getifaddrs
18096if test "$ac_res" != no; then :
18097  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18098
18099$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
18100
18101fi
18102
18103
18104# the check below is probably ugly. If someone knows how to do it in a better way, please
18105# let me know! -- rgerhards, 2010-10-06
18106ac_fn_c_check_decl "$LINENO" "SCM_CREDENTIALS" "ac_cv_have_decl_SCM_CREDENTIALS" "#include <sys/types.h>
18107#include <sys/socket.h>
18108"
18109if test "x$ac_cv_have_decl_SCM_CREDENTIALS" = xyes; then :
18110
18111$as_echo "#define HAVE_SCM_CREDENTIALS 1" >>confdefs.h
18112
18113fi
18114
18115ac_fn_c_check_decl "$LINENO" "SO_TIMESTAMP" "ac_cv_have_decl_SO_TIMESTAMP" "#include <sys/types.h>
18116#include <sys/socket.h>
18117"
18118if test "x$ac_cv_have_decl_SO_TIMESTAMP" = xyes; then :
18119
18120$as_echo "#define HAVE_SO_TIMESTAMP 1" >>confdefs.h
18121
18122fi
18123
18124ac_fn_c_check_decl "$LINENO" "SYS_gettid" "ac_cv_have_decl_SYS_gettid" "#include <sys/syscall.h>
18125"
18126if test "x$ac_cv_have_decl_SYS_gettid" = xyes; then :
18127
18128$as_echo "#define HAVE_SYS_gettid 1" >>confdefs.h
18129
18130fi
18131
18132ac_fn_c_check_member "$LINENO" "struct sysinfo" "uptime" "ac_cv_member_struct_sysinfo_uptime" "#include <sys/sysinfo.h>
18133"
18134if test "x$ac_cv_member_struct_sysinfo_uptime" = xyes; then :
18135
18136$as_echo "#define HAVE_SYSINFO_UPTIME 1" >>confdefs.h
18137
18138fi
18139
18140ac_fn_c_check_decl "$LINENO" "GLOB_NOMAGIC" "ac_cv_have_decl_GLOB_NOMAGIC" "#include <glob.h>
18141"
18142if test "x$ac_cv_have_decl_GLOB_NOMAGIC" = xyes; then :
18143
18144$as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
18145
18146fi
18147
18148
18149# Check for MAXHOSTNAMELEN
18150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN" >&5
18151$as_echo_n "checking for MAXHOSTNAMELEN... " >&6; }
18152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153/* end confdefs.h.  */
18154
18155	#include <sys/param.h>
18156	#include <netdb.h>
18157
18158int
18159main ()
18160{
18161
18162	return MAXHOSTNAMELEN;
18163
18164
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169if ac_fn_c_try_compile "$LINENO"; then :
18170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18171$as_echo "yes" >&6; }
18172
18173else
18174  # note: we use 1024 here, which should be far more than needed by any system. If that's too low, we simply
18175	# life with the need to change it. Most of the code doesn't need it anyways, but there are a few places
18176	# where it actually is needed and it makes no sense to change them.
18177
18178$as_echo "#define MAXHOSTNAMELEN 1024" >>confdefs.h
18179
18180	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no; defined as 64" >&5
18181$as_echo "no; defined as 64" >&6; }
18182
18183fi
18184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185
18186# check if GNU's ld is used
18187
18188# Check for __builtin_expect()
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect()" >&5
18190$as_echo_n "checking for __builtin_expect()... " >&6; }
18191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192/* end confdefs.h.  */
18193
18194int
18195main ()
18196{
18197return __builtin_expect(main != 0, 1)
18198  ;
18199  return 0;
18200}
18201_ACEOF
18202if ac_fn_c_try_link "$LINENO"; then :
18203
18204$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18205
18206                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18207$as_echo "yes" >&6; }
18208else
18209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18210$as_echo "no" >&6; }
18211fi
18212rm -f core conftest.err conftest.$ac_objext \
18213    conftest$ac_exeext conftest.$ac_ext
18214
18215# check for availability of atomic operations
18216# Note: this switch is primarily for the testbench, so that we can try
18217# to build w/o automic operations on systems that actually support them.
18218# Usually, atomic operations should be used when available as this
18219# speeds up processig.
18220# note that when automic operations are enabled but not available, they
18221# will silently NOT be used!
18222# Check whether --enable-atomic-operations was given.
18223if test "${enable_atomic_operations+set}" = set; then :
18224  enableval=$enable_atomic_operations; case "${enableval}" in
18225         yes) enable_atomic_operations="yes" ;;
18226          no) enable_atomic_operations="no" ;;
18227           *) as_fn_error $? "bad value ${enableval} for --enable-atomic-operations" "$LINENO" 5 ;;
18228         esac
18229else
18230  enable_atomic_operations=yes
18231
18232fi
18233
18234if test "$enable_atomic_operations" = "yes"; then
18235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18236$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18237if ${ap_cv_atomic_builtins+:} false; then :
18238  $as_echo_n "(cached) " >&6
18239else
18240  if test "$cross_compiling" = yes; then :
18241  ap_cv_atomic_builtins=no
18242else
18243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244/* end confdefs.h.  */
18245
18246int main()
18247{
18248    unsigned long val = 1010, tmp, *mem = &val;
18249
18250    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18251        return 1;
18252
18253    tmp = val;
18254
18255    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18256        return 1;
18257
18258    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18259        return 1;
18260
18261    tmp = 3030;
18262
18263    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18264        return 1;
18265
18266    if (__sync_lock_test_and_set(&val, 4040) != 3030)
18267        return 1;
18268
18269    mem = &tmp;
18270
18271    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18272        return 1;
18273
18274    __sync_synchronize();
18275
18276    if (mem != &val)
18277        return 1;
18278
18279    return 0;
18280}
18281_ACEOF
18282if ac_fn_c_try_run "$LINENO"; then :
18283  ap_cv_atomic_builtins=yes
18284else
18285  ap_cv_atomic_builtins=no
18286fi
18287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18288  conftest.$ac_objext conftest.beam conftest.$ac_ext
18289fi
18290
18291fi
18292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18293$as_echo "$ap_cv_atomic_builtins" >&6; }
18294
18295if test "$ap_cv_atomic_builtins" = "yes"; then
18296
18297$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18298
18299fi
18300
18301
18302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins for 64 bit data types" >&5
18303$as_echo_n "checking whether the compiler provides atomic builtins for 64 bit data types... " >&6; }
18304if ${ap_cv_atomic_builtins_64+:} false; then :
18305  $as_echo_n "(cached) " >&6
18306else
18307  if test "$cross_compiling" = yes; then :
18308  ap_cv_atomic_builtins_64=no
18309else
18310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h.  */
18312
18313int main()
18314{
18315    unsigned long long val = 1010, tmp, *mem = &val;
18316
18317    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18318        return 1;
18319
18320    tmp = val;
18321
18322    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18323        return 1;
18324
18325    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18326        return 1;
18327
18328    tmp = 3030;
18329
18330    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18331        return 1;
18332
18333    if (__sync_lock_test_and_set(&val, 4040) != 3030)
18334        return 1;
18335
18336    mem = &tmp;
18337
18338    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18339        return 1;
18340
18341    __sync_synchronize();
18342
18343    if (mem != &val)
18344        return 1;
18345
18346    return 0;
18347}
18348_ACEOF
18349if ac_fn_c_try_run "$LINENO"; then :
18350  ap_cv_atomic_builtins_64=yes
18351else
18352  ap_cv_atomic_builtins_64=no
18353fi
18354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18355  conftest.$ac_objext conftest.beam conftest.$ac_ext
18356fi
18357
18358fi
18359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins_64" >&5
18360$as_echo "$ap_cv_atomic_builtins_64" >&6; }
18361
18362if test "$ap_cv_atomic_builtins_64" = "yes"; then
18363
18364$as_echo "#define HAVE_ATOMIC_BUILTINS64 1" >>confdefs.h
18365
18366fi
18367
18368
18369fi
18370
18371# fall back to POSIX sems for atomic operations (cpu expensive)
18372for ac_header in semaphore.h sys/syscall.h
18373do :
18374  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18375ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18377  cat >>confdefs.h <<_ACEOF
18378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18379_ACEOF
18380
18381fi
18382
18383done
18384
18385
18386
18387# Additional module directories
18388
18389# Check whether --with-moddirs was given.
18390if test "${with_moddirs+set}" = set; then :
18391  withval=$with_moddirs; _save_IFS=$IFS ; IFS=$PATH_SEPARATOR ; moddirs=""
18392         for w in ${with_moddirs} ;
18393         do
18394                 case $w in
18395                 "") continue ;; */) ;; *)  w="${w}/" ;;
18396                 esac
18397                 for m in ${moddirs} ;
18398                 do
18399                         test "x$w" = "x${libdir}/${PACKAGE}/"   || \
18400                         test "x$w" = "x$m" || test "x$w" = "x/" && \
18401                         continue 2
18402                 done
18403                 case $moddirs in
18404                 "") moddirs="$w" ;; *) moddirs="${moddirs}:${w}" ;;
18405                 esac
18406         done ; IFS=$_save_IFS
18407else
18408  moddirs=""
18409
18410fi
18411
18412 if test x$moddirs != x; then
18413  WITH_MODDIRS_TRUE=
18414  WITH_MODDIRS_FALSE='#'
18415else
18416  WITH_MODDIRS_TRUE='#'
18417  WITH_MODDIRS_FALSE=
18418fi
18419
18420
18421
18422
18423# Large file support
18424# http://www.gnu.org/software/autoconf/manual/html_node/System-Services.html#index-AC_005fSYS_005fLARGEFILE-1028
18425# Check whether --enable-largefile was given.
18426if test "${enable_largefile+set}" = set; then :
18427  enableval=$enable_largefile;
18428fi
18429
18430if test "$enable_largefile" != no; then
18431
18432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18433$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18434if ${ac_cv_sys_largefile_CC+:} false; then :
18435  $as_echo_n "(cached) " >&6
18436else
18437  ac_cv_sys_largefile_CC=no
18438     if test "$GCC" != yes; then
18439       ac_save_CC=$CC
18440       while :; do
18441	 # IRIX 6.2 and later do not support large files by default,
18442	 # so use the C compiler's -n32 option if that helps.
18443	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444/* end confdefs.h.  */
18445#include <sys/types.h>
18446 /* Check that off_t can represent 2**63 - 1 correctly.
18447    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18448    since some C++ compilers masquerading as C compilers
18449    incorrectly reject 9223372036854775807.  */
18450#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18451  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18452		       && LARGE_OFF_T % 2147483647 == 1)
18453		      ? 1 : -1];
18454int
18455main ()
18456{
18457
18458  ;
18459  return 0;
18460}
18461_ACEOF
18462	 if ac_fn_c_try_compile "$LINENO"; then :
18463  break
18464fi
18465rm -f core conftest.err conftest.$ac_objext
18466	 CC="$CC -n32"
18467	 if ac_fn_c_try_compile "$LINENO"; then :
18468  ac_cv_sys_largefile_CC=' -n32'; break
18469fi
18470rm -f core conftest.err conftest.$ac_objext
18471	 break
18472       done
18473       CC=$ac_save_CC
18474       rm -f conftest.$ac_ext
18475    fi
18476fi
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18478$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18479  if test "$ac_cv_sys_largefile_CC" != no; then
18480    CC=$CC$ac_cv_sys_largefile_CC
18481  fi
18482
18483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18484$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18485if ${ac_cv_sys_file_offset_bits+:} false; then :
18486  $as_echo_n "(cached) " >&6
18487else
18488  while :; do
18489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490/* end confdefs.h.  */
18491#include <sys/types.h>
18492 /* Check that off_t can represent 2**63 - 1 correctly.
18493    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18494    since some C++ compilers masquerading as C compilers
18495    incorrectly reject 9223372036854775807.  */
18496#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18497  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18498		       && LARGE_OFF_T % 2147483647 == 1)
18499		      ? 1 : -1];
18500int
18501main ()
18502{
18503
18504  ;
18505  return 0;
18506}
18507_ACEOF
18508if ac_fn_c_try_compile "$LINENO"; then :
18509  ac_cv_sys_file_offset_bits=no; break
18510fi
18511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513/* end confdefs.h.  */
18514#define _FILE_OFFSET_BITS 64
18515#include <sys/types.h>
18516 /* Check that off_t can represent 2**63 - 1 correctly.
18517    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18518    since some C++ compilers masquerading as C compilers
18519    incorrectly reject 9223372036854775807.  */
18520#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18521  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18522		       && LARGE_OFF_T % 2147483647 == 1)
18523		      ? 1 : -1];
18524int
18525main ()
18526{
18527
18528  ;
18529  return 0;
18530}
18531_ACEOF
18532if ac_fn_c_try_compile "$LINENO"; then :
18533  ac_cv_sys_file_offset_bits=64; break
18534fi
18535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536  ac_cv_sys_file_offset_bits=unknown
18537  break
18538done
18539fi
18540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18541$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18542case $ac_cv_sys_file_offset_bits in #(
18543  no | unknown) ;;
18544  *)
18545cat >>confdefs.h <<_ACEOF
18546#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18547_ACEOF
18548;;
18549esac
18550rm -rf conftest*
18551  if test $ac_cv_sys_file_offset_bits = unknown; then
18552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18553$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18554if ${ac_cv_sys_large_files+:} false; then :
18555  $as_echo_n "(cached) " >&6
18556else
18557  while :; do
18558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559/* end confdefs.h.  */
18560#include <sys/types.h>
18561 /* Check that off_t can represent 2**63 - 1 correctly.
18562    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18563    since some C++ compilers masquerading as C compilers
18564    incorrectly reject 9223372036854775807.  */
18565#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18566  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18567		       && LARGE_OFF_T % 2147483647 == 1)
18568		      ? 1 : -1];
18569int
18570main ()
18571{
18572
18573  ;
18574  return 0;
18575}
18576_ACEOF
18577if ac_fn_c_try_compile "$LINENO"; then :
18578  ac_cv_sys_large_files=no; break
18579fi
18580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582/* end confdefs.h.  */
18583#define _LARGE_FILES 1
18584#include <sys/types.h>
18585 /* Check that off_t can represent 2**63 - 1 correctly.
18586    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18587    since some C++ compilers masquerading as C compilers
18588    incorrectly reject 9223372036854775807.  */
18589#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18590  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18591		       && LARGE_OFF_T % 2147483647 == 1)
18592		      ? 1 : -1];
18593int
18594main ()
18595{
18596
18597  ;
18598  return 0;
18599}
18600_ACEOF
18601if ac_fn_c_try_compile "$LINENO"; then :
18602  ac_cv_sys_large_files=1; break
18603fi
18604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18605  ac_cv_sys_large_files=unknown
18606  break
18607done
18608fi
18609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18610$as_echo "$ac_cv_sys_large_files" >&6; }
18611case $ac_cv_sys_large_files in #(
18612  no | unknown) ;;
18613  *)
18614cat >>confdefs.h <<_ACEOF
18615#define _LARGE_FILES $ac_cv_sys_large_files
18616_ACEOF
18617;;
18618esac
18619rm -rf conftest*
18620  fi
18621
18622
18623fi
18624
18625case "${enable_largefile}" in
18626  no) ;;
18627  *) enable_largefile="yes" ;;
18628esac
18629
18630# Regular expressions
18631# Check whether --enable-regexp was given.
18632if test "${enable_regexp+set}" = set; then :
18633  enableval=$enable_regexp; case "${enableval}" in
18634         yes) enable_regexp="yes" ;;
18635          no) enable_regexp="no" ;;
18636           *) as_fn_error $? "bad value ${enableval} for --enable-regexp" "$LINENO" 5 ;;
18637         esac
18638else
18639  enable_regexp=yes
18640
18641fi
18642
18643 if test x$enable_regexp = xyes; then
18644  ENABLE_REGEXP_TRUE=
18645  ENABLE_REGEXP_FALSE='#'
18646else
18647  ENABLE_REGEXP_TRUE='#'
18648  ENABLE_REGEXP_FALSE=
18649fi
18650
18651if test "$enable_regexp" = "yes"; then
18652
18653$as_echo "#define FEATURE_REGEXP 1" >>confdefs.h
18654
18655fi
18656
18657# zlib support
18658
18659pkg_failed=no
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
18661$as_echo_n "checking for ZLIB... " >&6; }
18662
18663if test -n "$ZLIB_CFLAGS"; then
18664    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18665 elif test -n "$PKG_CONFIG"; then
18666    if test -n "$PKG_CONFIG" && \
18667    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18668  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18669  ac_status=$?
18670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18671  test $ac_status = 0; }; then
18672  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
18673		      test "x$?" != "x0" && pkg_failed=yes
18674else
18675  pkg_failed=yes
18676fi
18677 else
18678    pkg_failed=untried
18679fi
18680if test -n "$ZLIB_LIBS"; then
18681    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18682 elif test -n "$PKG_CONFIG"; then
18683    if test -n "$PKG_CONFIG" && \
18684    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18685  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18686  ac_status=$?
18687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18688  test $ac_status = 0; }; then
18689  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
18690		      test "x$?" != "x0" && pkg_failed=yes
18691else
18692  pkg_failed=yes
18693fi
18694 else
18695    pkg_failed=untried
18696fi
18697
18698
18699
18700if test $pkg_failed = yes; then
18701   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702$as_echo "no" >&6; }
18703
18704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18705        _pkg_short_errors_supported=yes
18706else
18707        _pkg_short_errors_supported=no
18708fi
18709        if test $_pkg_short_errors_supported = yes; then
18710	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
18711        else
18712	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
18713        fi
18714	# Put the nasty error message in config.log where it belongs
18715	echo "$ZLIB_PKG_ERRORS" >&5
18716
18717	found_zlib=no
18718elif test $pkg_failed = untried; then
18719     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720$as_echo "no" >&6; }
18721	found_zlib=no
18722else
18723	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18724	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18725        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18726$as_echo "yes" >&6; }
18727	found_zlib=yes
18728fi
18729if test "x$found_zlib" = "xno"; then :
18730
18731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflate" >&5
18732$as_echo_n "checking for library containing inflate... " >&6; }
18733if ${ac_cv_search_inflate+:} false; then :
18734  $as_echo_n "(cached) " >&6
18735else
18736  ac_func_search_save_LIBS=$LIBS
18737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738/* end confdefs.h.  */
18739
18740/* Override any GCC internal prototype to avoid an error.
18741   Use char because int might match the return type of a GCC
18742   builtin and then its argument prototype would still apply.  */
18743#ifdef __cplusplus
18744extern "C"
18745#endif
18746char inflate ();
18747int
18748main ()
18749{
18750return inflate ();
18751  ;
18752  return 0;
18753}
18754_ACEOF
18755for ac_lib in '' z; do
18756  if test -z "$ac_lib"; then
18757    ac_res="none required"
18758  else
18759    ac_res=-l$ac_lib
18760    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18761  fi
18762  if ac_fn_c_try_link "$LINENO"; then :
18763  ac_cv_search_inflate=$ac_res
18764fi
18765rm -f core conftest.err conftest.$ac_objext \
18766    conftest$ac_exeext
18767  if ${ac_cv_search_inflate+:} false; then :
18768  break
18769fi
18770done
18771if ${ac_cv_search_inflate+:} false; then :
18772
18773else
18774  ac_cv_search_inflate=no
18775fi
18776rm conftest.$ac_ext
18777LIBS=$ac_func_search_save_LIBS
18778fi
18779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflate" >&5
18780$as_echo "$ac_cv_search_inflate" >&6; }
18781ac_res=$ac_cv_search_inflate
18782if test "$ac_res" != no; then :
18783  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18784  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18785if test "x$ac_cv_header_zlib_h" = xyes; then :
18786  found_zlib=yes
18787fi
18788
18789
18790fi
18791
18792        if test "x$found_zlib" = "xno" ; then
18793                as_fn_error $? "zlib library and headers not found" "$LINENO" 5
18794        fi
18795        ZLIB_LIBS="-lz"
18796
18797
18798fi
18799
18800
18801#hash implementations header checks
18802# Check whether --enable-fmhash was given.
18803if test "${enable_fmhash+set}" = set; then :
18804  enableval=$enable_fmhash; case "${enableval}" in
18805         yes) enable_fmhash="yes" ;;
18806          no) enable_fmhash="no" ;;
18807           *) as_fn_error $? "bad value ${enableval} for --enable-fmhash" "$LINENO" 5 ;;
18808         esac
18809else
18810  enable_fmhash=yes
18811
18812fi
18813
18814
18815# Check whether --enable-fmhash-xxhash was given.
18816if test "${enable_fmhash_xxhash+set}" = set; then :
18817  enableval=$enable_fmhash_xxhash; case "${enableval}" in
18818         yes) enable_fmhash_xxhash="yes" ;;
18819          no) enable_fmhash_xxhash="no" ;;
18820           *) as_fn_error $? "bad value ${enableval} for --enable-fmhash-xxhash" "$LINENO" 5 ;;
18821         esac
18822else
18823  enable_fmhash_xxhash=no
18824
18825fi
18826
18827
18828 if test "x$enable_fmhash" = "xyes" || test "x$enable_fmhash_xxhash" = "xyes"; then
18829  ENABLE_FMHASH_TRUE=
18830  ENABLE_FMHASH_FALSE='#'
18831else
18832  ENABLE_FMHASH_TRUE='#'
18833  ENABLE_FMHASH_FALSE=
18834fi
18835
18836
18837 if test x$enable_fmhash_xxhash = xyes; then
18838  ENABLE_FMHASH_XXHASH_TRUE=
18839  ENABLE_FMHASH_XXHASH_FALSE='#'
18840else
18841  ENABLE_FMHASH_XXHASH_TRUE='#'
18842  ENABLE_FMHASH_XXHASH_FALSE=
18843fi
18844
18845if test "$enable_fmhash_xxhash" = "yes"; then
18846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXH64 in -lxxhash" >&5
18847$as_echo_n "checking for XXH64 in -lxxhash... " >&6; }
18848if ${ac_cv_lib_xxhash_XXH64+:} false; then :
18849  $as_echo_n "(cached) " >&6
18850else
18851  ac_check_lib_save_LIBS=$LIBS
18852LIBS="-lxxhash  $LIBS"
18853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854/* end confdefs.h.  */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857   Use char because int might match the return type of a GCC
18858   builtin and then its argument prototype would still apply.  */
18859#ifdef __cplusplus
18860extern "C"
18861#endif
18862char XXH64 ();
18863int
18864main ()
18865{
18866return XXH64 ();
18867  ;
18868  return 0;
18869}
18870_ACEOF
18871if ac_fn_c_try_link "$LINENO"; then :
18872  ac_cv_lib_xxhash_XXH64=yes
18873else
18874  ac_cv_lib_xxhash_XXH64=no
18875fi
18876rm -f core conftest.err conftest.$ac_objext \
18877    conftest$ac_exeext conftest.$ac_ext
18878LIBS=$ac_check_lib_save_LIBS
18879fi
18880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xxhash_XXH64" >&5
18881$as_echo "$ac_cv_lib_xxhash_XXH64" >&6; }
18882if test "x$ac_cv_lib_xxhash_XXH64" = xyes; then :
18883
18884		ac_fn_c_check_header_mongrel "$LINENO" "xxhash.h" "ac_cv_header_xxhash_h" "$ac_includes_default"
18885if test "x$ac_cv_header_xxhash_h" = xyes; then :
18886
18887
18888$as_echo "#define USE_HASH_XXHASH 1" >>confdefs.h
18889
18890			HASH_XXHASH_LIBS="-lxxhash"
18891
18892else
18893  as_fn_error $? "Unable to add XXHASH support for hash64." "$LINENO" 5
18894fi
18895
18896
18897
18898fi
18899
18900fi
18901
18902
18903#faup header checks
18904# Check whether --enable-ffaup was given.
18905if test "${enable_ffaup+set}" = set; then :
18906  enableval=$enable_ffaup; case "${enableval}" in
18907         yes) enable_ffaup="yes" ;;
18908          no) enable_ffaup="no" ;;
18909           *) as_fn_error $? "bad value ${enableval} for --enable-ffaup" "$LINENO" 5 ;;
18910         esac
18911else
18912  enable_ffaup=no
18913
18914fi
18915
18916
18917 if test x$enable_ffaup = xyes; then
18918  ENABLE_FFAUP_TRUE=
18919  ENABLE_FFAUP_FALSE='#'
18920else
18921  ENABLE_FFAUP_TRUE='#'
18922  ENABLE_FFAUP_FALSE=
18923fi
18924
18925if test "$enable_ffaup" = "yes"; then
18926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for faup_init in -lfaupl" >&5
18927$as_echo_n "checking for faup_init in -lfaupl... " >&6; }
18928if ${ac_cv_lib_faupl_faup_init+:} false; then :
18929  $as_echo_n "(cached) " >&6
18930else
18931  ac_check_lib_save_LIBS=$LIBS
18932LIBS="-lfaupl  $LIBS"
18933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934/* end confdefs.h.  */
18935
18936/* Override any GCC internal prototype to avoid an error.
18937   Use char because int might match the return type of a GCC
18938   builtin and then its argument prototype would still apply.  */
18939#ifdef __cplusplus
18940extern "C"
18941#endif
18942char faup_init ();
18943int
18944main ()
18945{
18946return faup_init ();
18947  ;
18948  return 0;
18949}
18950_ACEOF
18951if ac_fn_c_try_link "$LINENO"; then :
18952  ac_cv_lib_faupl_faup_init=yes
18953else
18954  ac_cv_lib_faupl_faup_init=no
18955fi
18956rm -f core conftest.err conftest.$ac_objext \
18957    conftest$ac_exeext conftest.$ac_ext
18958LIBS=$ac_check_lib_save_LIBS
18959fi
18960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_faupl_faup_init" >&5
18961$as_echo "$ac_cv_lib_faupl_faup_init" >&6; }
18962if test "x$ac_cv_lib_faupl_faup_init" = xyes; then :
18963
18964		ac_fn_c_check_header_mongrel "$LINENO" "faup/faup.h" "ac_cv_header_faup_faup_h" "$ac_includes_default"
18965if test "x$ac_cv_header_faup_faup_h" = xyes; then :
18966
18967			FAUP_LIBS="-lfaupl"
18968
18969else
18970  as_fn_error $? "Unable to add faup support for URL parsing." "$LINENO" 5
18971fi
18972
18973
18974
18975fi
18976
18977fi
18978
18979
18980# rscript function unflatten
18981# Check whether --enable-fmunflatten was given.
18982if test "${enable_fmunflatten+set}" = set; then :
18983  enableval=$enable_fmunflatten; case "${enableval}" in
18984         yes) enable_fmunflatten="yes" ;;
18985          no) enable_fmunflatten="no" ;;
18986           *) as_fn_error $? "bad value ${enableval} for --enable-fmunflatten" "$LINENO" 5 ;;
18987         esac
18988else
18989  enable_fmunflatten=no
18990
18991fi
18992
18993 if test x$enable_fmunflatten = xyes; then
18994  ENABLE_FMUNFLATTEN_TRUE=
18995  ENABLE_FMUNFLATTEN_FALSE='#'
18996else
18997  ENABLE_FMUNFLATTEN_TRUE='#'
18998  ENABLE_FMUNFLATTEN_FALSE=
18999fi
19000
19001
19002
19003#gssapi
19004# Check whether --enable-gssapi_krb5 was given.
19005if test "${enable_gssapi_krb5+set}" = set; then :
19006  enableval=$enable_gssapi_krb5; case "${enableval}" in
19007         yes) enable_gssapi_krb5="yes" ;;
19008          no) enable_gssapi_krb5="no" ;;
19009           *) as_fn_error $? "bad value ${enableval} for --enable-gssapi-krb5" "$LINENO" 5 ;;
19010         esac
19011else
19012  enable_gssapi_krb5=no
19013
19014fi
19015
19016
19017case "${os_type}" in
19018solaris) GSSLIB=gss ;;
19019*)       GSSLIB=gssapi_krb5 ;;
19020esac
19021
19022if test $enable_gssapi_krb5 = yes; then
19023	as_ac_Lib=`$as_echo "ac_cv_lib_$GSSLIB''_gss_acquire_cred" | $as_tr_sh`
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_acquire_cred in -l$GSSLIB" >&5
19025$as_echo_n "checking for gss_acquire_cred in -l$GSSLIB... " >&6; }
19026if eval \${$as_ac_Lib+:} false; then :
19027  $as_echo_n "(cached) " >&6
19028else
19029  ac_check_lib_save_LIBS=$LIBS
19030LIBS="-l$GSSLIB  $LIBS"
19031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19032/* end confdefs.h.  */
19033
19034/* Override any GCC internal prototype to avoid an error.
19035   Use char because int might match the return type of a GCC
19036   builtin and then its argument prototype would still apply.  */
19037#ifdef __cplusplus
19038extern "C"
19039#endif
19040char gss_acquire_cred ();
19041int
19042main ()
19043{
19044return gss_acquire_cred ();
19045  ;
19046  return 0;
19047}
19048_ACEOF
19049if ac_fn_c_try_link "$LINENO"; then :
19050  eval "$as_ac_Lib=yes"
19051else
19052  eval "$as_ac_Lib=no"
19053fi
19054rm -f core conftest.err conftest.$ac_objext \
19055    conftest$ac_exeext conftest.$ac_ext
19056LIBS=$ac_check_lib_save_LIBS
19057fi
19058eval ac_res=\$$as_ac_Lib
19059	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19060$as_echo "$ac_res" >&6; }
19061if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19062
19063		ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
19064if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
19065
19066
19067$as_echo "#define USE_GSSAPI /**/" >>confdefs.h
19068
19069			GSS_LIBS="-l$GSSLIB"
19070
19071
19072fi
19073
19074
19075
19076fi
19077
19078fi
19079 if test x$enable_gssapi_krb5 = xyes; then
19080  ENABLE_GSSAPI_TRUE=
19081  ENABLE_GSSAPI_FALSE='#'
19082else
19083  ENABLE_GSSAPI_TRUE='#'
19084  ENABLE_GSSAPI_FALSE=
19085fi
19086
19087
19088
19089# shall the testbench try to run test that require root permissions?
19090# This is uncommon. Test skip if run under non-root, but that pollutes the
19091# testbench result. So the default is not to do that.
19092# Check whether --enable-root_tests was given.
19093if test "${enable_root_tests+set}" = set; then :
19094  enableval=$enable_root_tests; case "${enableval}" in
19095         yes) enable_root_tests="yes" ;;
19096          no) enable_root_tests="no" ;;
19097           *) as_fn_error $? "bad value ${enableval} for --enable-root-tests" "$LINENO" 5 ;;
19098         esac
19099else
19100  enable_root_tests=no
19101
19102fi
19103
19104 if test x$enable_root_tests = xyes; then
19105  ENABLE_ROOT_TESTS_TRUE=
19106  ENABLE_ROOT_TESTS_FALSE='#'
19107else
19108  ENABLE_ROOT_TESTS_TRUE='#'
19109  ENABLE_ROOT_TESTS_FALSE=
19110fi
19111
19112
19113# multithreading via pthreads
19114if test "$os_type" != "solaris"
19115then
19116	for ac_header in pthread.h
19117do :
19118  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19119if test "x$ac_cv_header_pthread_h" = xyes; then :
19120  cat >>confdefs.h <<_ACEOF
19121#define HAVE_PTHREAD_H 1
19122_ACEOF
19123
19124			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
19125$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
19126if ${ac_cv_lib_pthread_pthread_create+:} false; then :
19127  $as_echo_n "(cached) " >&6
19128else
19129  ac_check_lib_save_LIBS=$LIBS
19130LIBS="-lpthread -lpthread
19131			 $LIBS"
19132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133/* end confdefs.h.  */
19134
19135/* Override any GCC internal prototype to avoid an error.
19136   Use char because int might match the return type of a GCC
19137   builtin and then its argument prototype would still apply.  */
19138#ifdef __cplusplus
19139extern "C"
19140#endif
19141char pthread_create ();
19142int
19143main ()
19144{
19145return pthread_create ();
19146  ;
19147  return 0;
19148}
19149_ACEOF
19150if ac_fn_c_try_link "$LINENO"; then :
19151  ac_cv_lib_pthread_pthread_create=yes
19152else
19153  ac_cv_lib_pthread_pthread_create=no
19154fi
19155rm -f core conftest.err conftest.$ac_objext \
19156    conftest$ac_exeext conftest.$ac_ext
19157LIBS=$ac_check_lib_save_LIBS
19158fi
19159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
19160$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
19161if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
19162
19163					PTHREADS_LIBS="-lpthread"
19164					if test "$unamestr" = "AIX"; then
19165					case "${CC}" in
19166						*xlc*|*xlC*) PTHREADS_CFLAGS="-qthreaded" ;;
19167						*) PTHREADS_CFLAGS="-lpthreads" ;;
19168					esac
19169					else
19170						PTHREADS_CFLAGS="-pthread"
19171					fi
19172
19173
19174
19175else
19176  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19178as_fn_error $? "pthread is missing
19179See \`config.log' for more details" "$LINENO" 5; }
19180fi
19181
19182
19183else
19184  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19186as_fn_error $? "pthread is missing
19187See \`config.log' for more details" "$LINENO" 5; }
19188
19189fi
19190
19191done
19192
19193fi
19194
19195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlockattr_setkind_np in -lpthread" >&5
19196$as_echo_n "checking for pthread_rwlockattr_setkind_np in -lpthread... " >&6; }
19197if ${ac_cv_lib_pthread_pthread_rwlockattr_setkind_np+:} false; then :
19198  $as_echo_n "(cached) " >&6
19199else
19200  ac_check_lib_save_LIBS=$LIBS
19201LIBS="-lpthread  $LIBS"
19202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203/* end confdefs.h.  */
19204
19205/* Override any GCC internal prototype to avoid an error.
19206   Use char because int might match the return type of a GCC
19207   builtin and then its argument prototype would still apply.  */
19208#ifdef __cplusplus
19209extern "C"
19210#endif
19211char pthread_rwlockattr_setkind_np ();
19212int
19213main ()
19214{
19215return pthread_rwlockattr_setkind_np ();
19216  ;
19217  return 0;
19218}
19219_ACEOF
19220if ac_fn_c_try_link "$LINENO"; then :
19221  ac_cv_lib_pthread_pthread_rwlockattr_setkind_np=yes
19222else
19223  ac_cv_lib_pthread_pthread_rwlockattr_setkind_np=no
19224fi
19225rm -f core conftest.err conftest.$ac_objext \
19226    conftest$ac_exeext conftest.$ac_ext
19227LIBS=$ac_check_lib_save_LIBS
19228fi
19229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlockattr_setkind_np" >&5
19230$as_echo "$ac_cv_lib_pthread_pthread_rwlockattr_setkind_np" >&6; }
19231if test "x$ac_cv_lib_pthread_pthread_rwlockattr_setkind_np" = xyes; then :
19232
19233$as_echo "#define HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP 1" >>confdefs.h
19234
19235fi
19236
19237
19238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np in -lpthread" >&5
19239$as_echo_n "checking for pthread_setname_np in -lpthread... " >&6; }
19240if ${ac_cv_lib_pthread_pthread_setname_np+:} false; then :
19241  $as_echo_n "(cached) " >&6
19242else
19243  ac_check_lib_save_LIBS=$LIBS
19244LIBS="-lpthread  $LIBS"
19245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246/* end confdefs.h.  */
19247
19248/* Override any GCC internal prototype to avoid an error.
19249   Use char because int might match the return type of a GCC
19250   builtin and then its argument prototype would still apply.  */
19251#ifdef __cplusplus
19252extern "C"
19253#endif
19254char pthread_setname_np ();
19255int
19256main ()
19257{
19258return pthread_setname_np ();
19259  ;
19260  return 0;
19261}
19262_ACEOF
19263if ac_fn_c_try_link "$LINENO"; then :
19264  ac_cv_lib_pthread_pthread_setname_np=yes
19265else
19266  ac_cv_lib_pthread_pthread_setname_np=no
19267fi
19268rm -f core conftest.err conftest.$ac_objext \
19269    conftest$ac_exeext conftest.$ac_ext
19270LIBS=$ac_check_lib_save_LIBS
19271fi
19272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setname_np" >&5
19273$as_echo "$ac_cv_lib_pthread_pthread_setname_np" >&6; }
19274if test "x$ac_cv_lib_pthread_pthread_setname_np" = xyes; then :
19275
19276$as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
19277
19278fi
19279
19280
19281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_setschedparam" >&5
19282$as_echo_n "checking for library containing pthread_setschedparam... " >&6; }
19283if ${ac_cv_search_pthread_setschedparam+:} false; then :
19284  $as_echo_n "(cached) " >&6
19285else
19286  ac_func_search_save_LIBS=$LIBS
19287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288/* end confdefs.h.  */
19289
19290/* Override any GCC internal prototype to avoid an error.
19291   Use char because int might match the return type of a GCC
19292   builtin and then its argument prototype would still apply.  */
19293#ifdef __cplusplus
19294extern "C"
19295#endif
19296char pthread_setschedparam ();
19297int
19298main ()
19299{
19300return pthread_setschedparam ();
19301  ;
19302  return 0;
19303}
19304_ACEOF
19305for ac_lib in '' pthread; do
19306  if test -z "$ac_lib"; then
19307    ac_res="none required"
19308  else
19309    ac_res=-l$ac_lib
19310    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19311  fi
19312  if ac_fn_c_try_link "$LINENO"; then :
19313  ac_cv_search_pthread_setschedparam=$ac_res
19314fi
19315rm -f core conftest.err conftest.$ac_objext \
19316    conftest$ac_exeext
19317  if ${ac_cv_search_pthread_setschedparam+:} false; then :
19318  break
19319fi
19320done
19321if ${ac_cv_search_pthread_setschedparam+:} false; then :
19322
19323else
19324  ac_cv_search_pthread_setschedparam=no
19325fi
19326rm conftest.$ac_ext
19327LIBS=$ac_func_search_save_LIBS
19328fi
19329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setschedparam" >&5
19330$as_echo "$ac_cv_search_pthread_setschedparam" >&6; }
19331ac_res=$ac_cv_search_pthread_setschedparam
19332if test "$ac_res" != no; then :
19333  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19334
19335      rsyslog_have_pthread_setschedparam=yes
19336
19337$as_echo "#define HAVE_PTHREAD_SETSCHEDPARAM 1" >>confdefs.h
19338
19339
19340else
19341
19342      rsyslog_have_pthread_setschedparam=no
19343
19344
19345fi
19346
19347for ac_header in sched.h
19348do :
19349  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19350if test "x$ac_cv_header_sched_h" = xyes; then :
19351  cat >>confdefs.h <<_ACEOF
19352#define HAVE_SCHED_H 1
19353_ACEOF
19354
19355      rsyslog_have_sched_h=yes
19356
19357else
19358
19359      rsyslog_have_sched_h=no
19360
19361
19362fi
19363
19364done
19365
19366if test "$rsyslog_have_pthread_setschedparam" = "yes" -a "$rsyslog_have_sched_h" = "yes"; then
19367	save_LIBS=$LIBS
19368	LIBS=
19369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_get_priority_max" >&5
19370$as_echo_n "checking for library containing sched_get_priority_max... " >&6; }
19371if ${ac_cv_search_sched_get_priority_max+:} false; then :
19372  $as_echo_n "(cached) " >&6
19373else
19374  ac_func_search_save_LIBS=$LIBS
19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h.  */
19377
19378/* Override any GCC internal prototype to avoid an error.
19379   Use char because int might match the return type of a GCC
19380   builtin and then its argument prototype would still apply.  */
19381#ifdef __cplusplus
19382extern "C"
19383#endif
19384char sched_get_priority_max ();
19385int
19386main ()
19387{
19388return sched_get_priority_max ();
19389  ;
19390  return 0;
19391}
19392_ACEOF
19393for ac_lib in '' rt; do
19394  if test -z "$ac_lib"; then
19395    ac_res="none required"
19396  else
19397    ac_res=-l$ac_lib
19398    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19399  fi
19400  if ac_fn_c_try_link "$LINENO"; then :
19401  ac_cv_search_sched_get_priority_max=$ac_res
19402fi
19403rm -f core conftest.err conftest.$ac_objext \
19404    conftest$ac_exeext
19405  if ${ac_cv_search_sched_get_priority_max+:} false; then :
19406  break
19407fi
19408done
19409if ${ac_cv_search_sched_get_priority_max+:} false; then :
19410
19411else
19412  ac_cv_search_sched_get_priority_max=no
19413fi
19414rm conftest.$ac_ext
19415LIBS=$ac_func_search_save_LIBS
19416fi
19417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_get_priority_max" >&5
19418$as_echo "$ac_cv_search_sched_get_priority_max" >&6; }
19419ac_res=$ac_cv_search_sched_get_priority_max
19420if test "$ac_res" != no; then :
19421  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19422
19423fi
19424
19425	if test "x$ac_cv_search" != "xno"; then
19426		for ac_func in sched_get_priority_max
19427do :
19428  ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
19429if test "x$ac_cv_func_sched_get_priority_max" = xyes; then :
19430  cat >>confdefs.h <<_ACEOF
19431#define HAVE_SCHED_GET_PRIORITY_MAX 1
19432_ACEOF
19433
19434fi
19435done
19436
19437	fi
19438	IMUDP_LIBS=$LIBS
19439
19440	LIBS=$save_LIBS
19441fi
19442
19443if test "$unamestr" = "AIX"; then
19444enable_klog="no"
19445else
19446# klog
19447# Check whether --enable-klog was given.
19448if test "${enable_klog+set}" = set; then :
19449  enableval=$enable_klog; case "${enableval}" in
19450         yes) enable_klog="yes" ;;
19451          no) enable_klog="no" ;;
19452           *) as_fn_error $? "bad value ${enableval} for --enable-klog" "$LINENO" 5 ;;
19453         esac
19454else
19455  enable_klog="yes"
19456
19457fi
19458
19459fi
19460 if test x$enable_klog = xyes; then
19461  ENABLE_IMKLOG_TRUE=
19462  ENABLE_IMKLOG_FALSE='#'
19463else
19464  ENABLE_IMKLOG_TRUE='#'
19465  ENABLE_IMKLOG_FALSE=
19466fi
19467
19468 if test x$os_type = xbsd; then
19469  ENABLE_IMKLOG_BSD_TRUE=
19470  ENABLE_IMKLOG_BSD_FALSE='#'
19471else
19472  ENABLE_IMKLOG_BSD_TRUE='#'
19473  ENABLE_IMKLOG_BSD_FALSE=
19474fi
19475
19476 if test x$os_type = xlinux; then
19477  ENABLE_IMKLOG_LINUX_TRUE=
19478  ENABLE_IMKLOG_LINUX_FALSE='#'
19479else
19480  ENABLE_IMKLOG_LINUX_TRUE='#'
19481  ENABLE_IMKLOG_LINUX_FALSE=
19482fi
19483
19484 if test x$os_type = xsolaris; then
19485  ENABLE_IMKLOG_SOLARIS_TRUE=
19486  ENABLE_IMKLOG_SOLARIS_FALSE='#'
19487else
19488  ENABLE_IMKLOG_SOLARIS_TRUE='#'
19489  ENABLE_IMKLOG_SOLARIS_FALSE=
19490fi
19491
19492
19493# kmsg
19494# Check whether --enable-kmsg was given.
19495if test "${enable_kmsg+set}" = set; then :
19496  enableval=$enable_kmsg; case "${enableval}" in
19497         yes) enable_kmsg="yes" ;;
19498          no) enable_kmsg="no" ;;
19499           *) as_fn_error $? "bad value ${enableval} for --enable-kmsg" "$LINENO" 5 ;;
19500         esac
19501else
19502  enable_kmsg="no"
19503
19504fi
19505
19506 if test x$enable_kmsg = xyes; then
19507  ENABLE_IMKMSG_TRUE=
19508  ENABLE_IMKMSG_FALSE='#'
19509else
19510  ENABLE_IMKMSG_TRUE='#'
19511  ENABLE_IMKMSG_FALSE=
19512fi
19513
19514
19515# imjournal
19516# Check whether --enable-imjournal was given.
19517if test "${enable_imjournal+set}" = set; then :
19518  enableval=$enable_imjournal; case "${enableval}" in
19519         yes) enable_imjournal="yes" ;;
19520          no) enable_imjournal="no" ;;
19521         optional) enable_imjournal="optional" ;;
19522           *) as_fn_error $? "bad value ${enableval} for --enable-imjournal" "$LINENO" 5 ;;
19523         esac
19524else
19525  enable_imjournal="no"
19526
19527fi
19528
19529imjournal_use_dummy="no"
19530if test "x$enable_imjournal" = "xyes" -o "x$enable_imjournal" = "xoptional"; then
19531
19532pkg_failed=no
19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
19534$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
19535
19536if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
19537    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
19538 elif test -n "$PKG_CONFIG"; then
19539    if test -n "$PKG_CONFIG" && \
19540    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 234 \""; } >&5
19541  ($PKG_CONFIG --exists --print-errors "libsystemd >= 234 ") 2>&5
19542  ac_status=$?
19543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19544  test $ac_status = 0; }; then
19545  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 234 " 2>/dev/null`
19546		      test "x$?" != "x0" && pkg_failed=yes
19547else
19548  pkg_failed=yes
19549fi
19550 else
19551    pkg_failed=untried
19552fi
19553if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
19554    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
19555 elif test -n "$PKG_CONFIG"; then
19556    if test -n "$PKG_CONFIG" && \
19557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 234 \""; } >&5
19558  ($PKG_CONFIG --exists --print-errors "libsystemd >= 234 ") 2>&5
19559  ac_status=$?
19560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19561  test $ac_status = 0; }; then
19562  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd >= 234 " 2>/dev/null`
19563		      test "x$?" != "x0" && pkg_failed=yes
19564else
19565  pkg_failed=yes
19566fi
19567 else
19568    pkg_failed=untried
19569fi
19570
19571
19572
19573if test $pkg_failed = yes; then
19574   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575$as_echo "no" >&6; }
19576
19577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19578        _pkg_short_errors_supported=yes
19579else
19580        _pkg_short_errors_supported=no
19581fi
19582        if test $_pkg_short_errors_supported = yes; then
19583	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 234 " 2>&1`
19584        else
19585	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 234 " 2>&1`
19586        fi
19587	# Put the nasty error message in config.log where it belongs
19588	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
19589
19590
19591
19592pkg_failed=no
19593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
19594$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
19595
19596if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
19597    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
19598 elif test -n "$PKG_CONFIG"; then
19599    if test -n "$PKG_CONFIG" && \
19600    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209 \""; } >&5
19601  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209 ") 2>&5
19602  ac_status=$?
19603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19604  test $ac_status = 0; }; then
19605  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209 " 2>/dev/null`
19606		      test "x$?" != "x0" && pkg_failed=yes
19607else
19608  pkg_failed=yes
19609fi
19610 else
19611    pkg_failed=untried
19612fi
19613if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
19614    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
19615 elif test -n "$PKG_CONFIG"; then
19616    if test -n "$PKG_CONFIG" && \
19617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209 \""; } >&5
19618  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209 ") 2>&5
19619  ac_status=$?
19620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19621  test $ac_status = 0; }; then
19622  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209 " 2>/dev/null`
19623		      test "x$?" != "x0" && pkg_failed=yes
19624else
19625  pkg_failed=yes
19626fi
19627 else
19628    pkg_failed=untried
19629fi
19630
19631
19632
19633if test $pkg_failed = yes; then
19634   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635$as_echo "no" >&6; }
19636
19637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19638        _pkg_short_errors_supported=yes
19639else
19640        _pkg_short_errors_supported=no
19641fi
19642        if test $_pkg_short_errors_supported = yes; then
19643	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209 " 2>&1`
19644        else
19645	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209 " 2>&1`
19646        fi
19647	# Put the nasty error message in config.log where it belongs
19648	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
19649
19650
19651
19652pkg_failed=no
19653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
19654$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
19655
19656if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
19657    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
19658 elif test -n "$PKG_CONFIG"; then
19659    if test -n "$PKG_CONFIG" && \
19660    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
19661  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
19662  ac_status=$?
19663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19664  test $ac_status = 0; }; then
19665  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= 197" 2>/dev/null`
19666		      test "x$?" != "x0" && pkg_failed=yes
19667else
19668  pkg_failed=yes
19669fi
19670 else
19671    pkg_failed=untried
19672fi
19673if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
19674    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
19675 elif test -n "$PKG_CONFIG"; then
19676    if test -n "$PKG_CONFIG" && \
19677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
19678  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
19679  ac_status=$?
19680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681  test $ac_status = 0; }; then
19682  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= 197" 2>/dev/null`
19683		      test "x$?" != "x0" && pkg_failed=yes
19684else
19685  pkg_failed=yes
19686fi
19687 else
19688    pkg_failed=untried
19689fi
19690
19691
19692
19693if test $pkg_failed = yes; then
19694   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19695$as_echo "no" >&6; }
19696
19697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19698        _pkg_short_errors_supported=yes
19699else
19700        _pkg_short_errors_supported=no
19701fi
19702        if test $_pkg_short_errors_supported = yes; then
19703	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
19704        else
19705	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
19706        fi
19707	# Put the nasty error message in config.log where it belongs
19708	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
19709
19710
19711                    if test x$enable_imjournal = xyes; then :
19712  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19714as_fn_error $? "imjournal support libraries are missing
19715See \`config.log' for more details" "$LINENO" 5; }
19716
19717fi
19718                    imjournal_use_dummy="yes"
19719
19720elif test $pkg_failed = untried; then
19721     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19722$as_echo "no" >&6; }
19723
19724                    if test x$enable_imjournal = xyes; then :
19725  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19727as_fn_error $? "imjournal support libraries are missing
19728See \`config.log' for more details" "$LINENO" 5; }
19729
19730fi
19731                    imjournal_use_dummy="yes"
19732
19733else
19734	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
19735	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
19736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19737$as_echo "yes" >&6; }
19738
19739fi
19740
19741elif test $pkg_failed = untried; then
19742     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19743$as_echo "no" >&6; }
19744
19745
19746pkg_failed=no
19747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
19748$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
19749
19750if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
19751    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
19752 elif test -n "$PKG_CONFIG"; then
19753    if test -n "$PKG_CONFIG" && \
19754    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
19755  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
19756  ac_status=$?
19757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19758  test $ac_status = 0; }; then
19759  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= 197" 2>/dev/null`
19760		      test "x$?" != "x0" && pkg_failed=yes
19761else
19762  pkg_failed=yes
19763fi
19764 else
19765    pkg_failed=untried
19766fi
19767if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
19768    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
19769 elif test -n "$PKG_CONFIG"; then
19770    if test -n "$PKG_CONFIG" && \
19771    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
19772  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
19773  ac_status=$?
19774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19775  test $ac_status = 0; }; then
19776  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= 197" 2>/dev/null`
19777		      test "x$?" != "x0" && pkg_failed=yes
19778else
19779  pkg_failed=yes
19780fi
19781 else
19782    pkg_failed=untried
19783fi
19784
19785
19786
19787if test $pkg_failed = yes; then
19788   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19789$as_echo "no" >&6; }
19790
19791if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19792        _pkg_short_errors_supported=yes
19793else
19794        _pkg_short_errors_supported=no
19795fi
19796        if test $_pkg_short_errors_supported = yes; then
19797	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
19798        else
19799	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
19800        fi
19801	# Put the nasty error message in config.log where it belongs
19802	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
19803
19804
19805                    if test x$enable_imjournal = xyes; then :
19806  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19808as_fn_error $? "imjournal support libraries are missing
19809See \`config.log' for more details" "$LINENO" 5; }
19810
19811fi
19812                    imjournal_use_dummy="yes"
19813
19814elif test $pkg_failed = untried; then
19815     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19816$as_echo "no" >&6; }
19817
19818                    if test x$enable_imjournal = xyes; then :
19819  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19821as_fn_error $? "imjournal support libraries are missing
19822See \`config.log' for more details" "$LINENO" 5; }
19823
19824fi
19825                    imjournal_use_dummy="yes"
19826
19827else
19828	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
19829	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
19830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19831$as_echo "yes" >&6; }
19832
19833fi
19834
19835else
19836	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
19837	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
19838        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19839$as_echo "yes" >&6; }
19840
19841fi
19842
19843elif test $pkg_failed = untried; then
19844     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19845$as_echo "no" >&6; }
19846
19847
19848pkg_failed=no
19849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
19850$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
19851
19852if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
19853    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
19854 elif test -n "$PKG_CONFIG"; then
19855    if test -n "$PKG_CONFIG" && \
19856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209 \""; } >&5
19857  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209 ") 2>&5
19858  ac_status=$?
19859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860  test $ac_status = 0; }; then
19861  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209 " 2>/dev/null`
19862		      test "x$?" != "x0" && pkg_failed=yes
19863else
19864  pkg_failed=yes
19865fi
19866 else
19867    pkg_failed=untried
19868fi
19869if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
19870    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
19871 elif test -n "$PKG_CONFIG"; then
19872    if test -n "$PKG_CONFIG" && \
19873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209 \""; } >&5
19874  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209 ") 2>&5
19875  ac_status=$?
19876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19877  test $ac_status = 0; }; then
19878  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209 " 2>/dev/null`
19879		      test "x$?" != "x0" && pkg_failed=yes
19880else
19881  pkg_failed=yes
19882fi
19883 else
19884    pkg_failed=untried
19885fi
19886
19887
19888
19889if test $pkg_failed = yes; then
19890   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19891$as_echo "no" >&6; }
19892
19893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19894        _pkg_short_errors_supported=yes
19895else
19896        _pkg_short_errors_supported=no
19897fi
19898        if test $_pkg_short_errors_supported = yes; then
19899	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209 " 2>&1`
19900        else
19901	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209 " 2>&1`
19902        fi
19903	# Put the nasty error message in config.log where it belongs
19904	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
19905
19906
19907
19908pkg_failed=no
19909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
19910$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
19911
19912if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
19913    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
19914 elif test -n "$PKG_CONFIG"; then
19915    if test -n "$PKG_CONFIG" && \
19916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
19917  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
19918  ac_status=$?
19919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19920  test $ac_status = 0; }; then
19921  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= 197" 2>/dev/null`
19922		      test "x$?" != "x0" && pkg_failed=yes
19923else
19924  pkg_failed=yes
19925fi
19926 else
19927    pkg_failed=untried
19928fi
19929if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
19930    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
19931 elif test -n "$PKG_CONFIG"; then
19932    if test -n "$PKG_CONFIG" && \
19933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
19934  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
19935  ac_status=$?
19936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19937  test $ac_status = 0; }; then
19938  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= 197" 2>/dev/null`
19939		      test "x$?" != "x0" && pkg_failed=yes
19940else
19941  pkg_failed=yes
19942fi
19943 else
19944    pkg_failed=untried
19945fi
19946
19947
19948
19949if test $pkg_failed = yes; then
19950   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19951$as_echo "no" >&6; }
19952
19953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19954        _pkg_short_errors_supported=yes
19955else
19956        _pkg_short_errors_supported=no
19957fi
19958        if test $_pkg_short_errors_supported = yes; then
19959	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
19960        else
19961	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
19962        fi
19963	# Put the nasty error message in config.log where it belongs
19964	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
19965
19966
19967                    if test x$enable_imjournal = xyes; then :
19968  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19970as_fn_error $? "imjournal support libraries are missing
19971See \`config.log' for more details" "$LINENO" 5; }
19972
19973fi
19974                    imjournal_use_dummy="yes"
19975
19976elif test $pkg_failed = untried; then
19977     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978$as_echo "no" >&6; }
19979
19980                    if test x$enable_imjournal = xyes; then :
19981  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19983as_fn_error $? "imjournal support libraries are missing
19984See \`config.log' for more details" "$LINENO" 5; }
19985
19986fi
19987                    imjournal_use_dummy="yes"
19988
19989else
19990	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
19991	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
19992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19993$as_echo "yes" >&6; }
19994
19995fi
19996
19997elif test $pkg_failed = untried; then
19998     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19999$as_echo "no" >&6; }
20000
20001
20002pkg_failed=no
20003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
20004$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
20005
20006if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
20007    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
20008 elif test -n "$PKG_CONFIG"; then
20009    if test -n "$PKG_CONFIG" && \
20010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
20011  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
20012  ac_status=$?
20013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20014  test $ac_status = 0; }; then
20015  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= 197" 2>/dev/null`
20016		      test "x$?" != "x0" && pkg_failed=yes
20017else
20018  pkg_failed=yes
20019fi
20020 else
20021    pkg_failed=untried
20022fi
20023if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
20024    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
20025 elif test -n "$PKG_CONFIG"; then
20026    if test -n "$PKG_CONFIG" && \
20027    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
20028  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
20029  ac_status=$?
20030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20031  test $ac_status = 0; }; then
20032  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= 197" 2>/dev/null`
20033		      test "x$?" != "x0" && pkg_failed=yes
20034else
20035  pkg_failed=yes
20036fi
20037 else
20038    pkg_failed=untried
20039fi
20040
20041
20042
20043if test $pkg_failed = yes; then
20044   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045$as_echo "no" >&6; }
20046
20047if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20048        _pkg_short_errors_supported=yes
20049else
20050        _pkg_short_errors_supported=no
20051fi
20052        if test $_pkg_short_errors_supported = yes; then
20053	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
20054        else
20055	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
20056        fi
20057	# Put the nasty error message in config.log where it belongs
20058	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
20059
20060
20061                    if test x$enable_imjournal = xyes; then :
20062  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20064as_fn_error $? "imjournal support libraries are missing
20065See \`config.log' for more details" "$LINENO" 5; }
20066
20067fi
20068                    imjournal_use_dummy="yes"
20069
20070elif test $pkg_failed = untried; then
20071     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20072$as_echo "no" >&6; }
20073
20074                    if test x$enable_imjournal = xyes; then :
20075  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20077as_fn_error $? "imjournal support libraries are missing
20078See \`config.log' for more details" "$LINENO" 5; }
20079
20080fi
20081                    imjournal_use_dummy="yes"
20082
20083else
20084	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
20085	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
20086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20087$as_echo "yes" >&6; }
20088
20089fi
20090
20091else
20092	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
20093	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
20094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20095$as_echo "yes" >&6; }
20096
20097fi
20098
20099else
20100	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
20101	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
20102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103$as_echo "yes" >&6; }
20104
20105$as_echo "#define NEW_JOURNAL 1" >>confdefs.h
20106
20107fi
20108fi
20109 if test x$imjournal_use_dummy = xyes; then
20110  IMJOURNAL_USE_DUMMY_TRUE=
20111  IMJOURNAL_USE_DUMMY_FALSE='#'
20112else
20113  IMJOURNAL_USE_DUMMY_TRUE='#'
20114  IMJOURNAL_USE_DUMMY_FALSE=
20115fi
20116
20117 if test x$enable_imjournal = xyes -o x$enable_imjournal = xoptional; then
20118  ENABLE_IMJOURNAL_TRUE=
20119  ENABLE_IMJOURNAL_FALSE='#'
20120else
20121  ENABLE_IMJOURNAL_TRUE='#'
20122  ENABLE_IMJOURNAL_FALSE=
20123fi
20124
20125
20126# use libsystemd
20127# Check whether --enable-libsystemd was given.
20128if test "${enable_libsystemd+set}" = set; then :
20129  enableval=$enable_libsystemd; case "${enableval}" in
20130          yes) enable_libsystemd="yes" ;;
20131           no) enable_libsystemd="no" ;;
20132         auto) enable_libsystemd="auto" ;;
20133           *) as_fn_error $? "bad value ${enableval} for --enable-libsystemd" "$LINENO" 5 ;;
20134         esac
20135else
20136  enable_libsystemd="auto"
20137
20138fi
20139
20140if test "$enable_libsystemd" = "yes"; then
20141
20142pkg_failed=no
20143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD" >&5
20144$as_echo_n "checking for LIBSYSTEMD... " >&6; }
20145
20146if test -n "$LIBSYSTEMD_CFLAGS"; then
20147    pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
20148 elif test -n "$PKG_CONFIG"; then
20149    if test -n "$PKG_CONFIG" && \
20150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
20151  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
20152  ac_status=$?
20153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154  test $ac_status = 0; }; then
20155  pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
20156		      test "x$?" != "x0" && pkg_failed=yes
20157else
20158  pkg_failed=yes
20159fi
20160 else
20161    pkg_failed=untried
20162fi
20163if test -n "$LIBSYSTEMD_LIBS"; then
20164    pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
20165 elif test -n "$PKG_CONFIG"; then
20166    if test -n "$PKG_CONFIG" && \
20167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
20168  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
20169  ac_status=$?
20170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20171  test $ac_status = 0; }; then
20172  pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
20173		      test "x$?" != "x0" && pkg_failed=yes
20174else
20175  pkg_failed=yes
20176fi
20177 else
20178    pkg_failed=untried
20179fi
20180
20181
20182
20183if test $pkg_failed = yes; then
20184   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20185$as_echo "no" >&6; }
20186
20187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20188        _pkg_short_errors_supported=yes
20189else
20190        _pkg_short_errors_supported=no
20191fi
20192        if test $_pkg_short_errors_supported = yes; then
20193	        LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
20194        else
20195	        LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
20196        fi
20197	# Put the nasty error message in config.log where it belongs
20198	echo "$LIBSYSTEMD_PKG_ERRORS" >&5
20199
20200	as_fn_error $? "Package requirements (libsystemd) were not met:
20201
20202$LIBSYSTEMD_PKG_ERRORS
20203
20204Consider adjusting the PKG_CONFIG_PATH environment variable if you
20205installed software in a non-standard prefix.
20206
20207Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
20208and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
20209See the pkg-config man page for more details." "$LINENO" 5
20210elif test $pkg_failed = untried; then
20211     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20212$as_echo "no" >&6; }
20213	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20215as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20216is in your PATH or set the PKG_CONFIG environment variable to the full
20217path to pkg-config.
20218
20219Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
20220and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
20221See the pkg-config man page for more details.
20222
20223To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20224See \`config.log' for more details" "$LINENO" 5; }
20225else
20226	LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
20227	LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
20228        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20229$as_echo "yes" >&6; }
20230
20231$as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
20232
20233
20234fi
20235fi
20236if test "$enable_libsystemd" = "auto"; then
20237
20238pkg_failed=no
20239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD" >&5
20240$as_echo_n "checking for LIBSYSTEMD... " >&6; }
20241
20242if test -n "$LIBSYSTEMD_CFLAGS"; then
20243    pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
20244 elif test -n "$PKG_CONFIG"; then
20245    if test -n "$PKG_CONFIG" && \
20246    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
20247  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
20248  ac_status=$?
20249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20250  test $ac_status = 0; }; then
20251  pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
20252		      test "x$?" != "x0" && pkg_failed=yes
20253else
20254  pkg_failed=yes
20255fi
20256 else
20257    pkg_failed=untried
20258fi
20259if test -n "$LIBSYSTEMD_LIBS"; then
20260    pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
20261 elif test -n "$PKG_CONFIG"; then
20262    if test -n "$PKG_CONFIG" && \
20263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
20264  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
20265  ac_status=$?
20266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20267  test $ac_status = 0; }; then
20268  pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
20269		      test "x$?" != "x0" && pkg_failed=yes
20270else
20271  pkg_failed=yes
20272fi
20273 else
20274    pkg_failed=untried
20275fi
20276
20277
20278
20279if test $pkg_failed = yes; then
20280   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281$as_echo "no" >&6; }
20282
20283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20284        _pkg_short_errors_supported=yes
20285else
20286        _pkg_short_errors_supported=no
20287fi
20288        if test $_pkg_short_errors_supported = yes; then
20289	        LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
20290        else
20291	        LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
20292        fi
20293	# Put the nasty error message in config.log where it belongs
20294	echo "$LIBSYSTEMD_PKG_ERRORS" >&5
20295
20296	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsystemd not present - disabling systemd support" >&5
20297$as_echo "$as_me: WARNING: libsystemd not present - disabling systemd support" >&2;}
20298		  enable_libsystemd="no"
20299
20300
20301elif test $pkg_failed = untried; then
20302     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303$as_echo "no" >&6; }
20304	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsystemd not present - disabling systemd support" >&5
20305$as_echo "$as_me: WARNING: libsystemd not present - disabling systemd support" >&2;}
20306		  enable_libsystemd="no"
20307
20308
20309else
20310	LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
20311	LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
20312        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20313$as_echo "yes" >&6; }
20314
20315$as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
20316
20317		  { $as_echo "$as_me:${as_lineno-$LINENO}: --enable-libsystemd in auto mode" >&5
20318$as_echo "$as_me: --enable-libsystemd in auto mode" >&6;}
20319		  enable_libsystemd="yes"
20320
20321fi
20322	{ $as_echo "$as_me:${as_lineno-$LINENO}: --enable-libsystemd in auto mode, enable-libsystemd is set to ${enable_libsystemd}" >&5
20323$as_echo "$as_me: --enable-libsystemd in auto mode, enable-libsystemd is set to ${enable_libsystemd}" >&6;}
20324fi
20325
20326# inet
20327# Check whether --enable-inet was given.
20328if test "${enable_inet+set}" = set; then :
20329  enableval=$enable_inet; case "${enableval}" in
20330         yes) enable_inet="yes" ;;
20331          no) enable_inet="no" ;;
20332           *) as_fn_error $? "bad value ${enableval} for --enable-inet" "$LINENO" 5 ;;
20333         esac
20334else
20335  enable_inet="yes"
20336
20337fi
20338
20339 if test x$enable_inet = xyes; then
20340  ENABLE_INET_TRUE=
20341  ENABLE_INET_FALSE='#'
20342else
20343  ENABLE_INET_TRUE='#'
20344  ENABLE_INET_FALSE=
20345fi
20346
20347if test "$enable_inet" = "yes"; then
20348
20349$as_echo "#define SYSLOG_INET 1" >>confdefs.h
20350
20351fi
20352
20353# jemalloc
20354# Check whether --enable-jemalloc was given.
20355if test "${enable_jemalloc+set}" = set; then :
20356  enableval=$enable_jemalloc; case "${enableval}" in
20357         yes) enable_jemalloc="yes" ;;
20358          no) enable_jemalloc="no" ;;
20359           *) as_fn_error $? "bad value ${enableval} for --enable-jemalloc" "$LINENO" 5 ;;
20360         esac
20361else
20362  enable_jemalloc="no"
20363
20364fi
20365
20366 if test x$enable_jemalloc = xyes; then
20367  ENABLE_JEMALLOC_TRUE=
20368  ENABLE_JEMALLOC_FALSE='#'
20369else
20370  ENABLE_JEMALLOC_TRUE='#'
20371  ENABLE_JEMALLOC_FALSE=
20372fi
20373
20374if test "$enable_jemalloc" = "yes"; then
20375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
20376$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
20377if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
20378  $as_echo_n "(cached) " >&6
20379else
20380  ac_check_lib_save_LIBS=$LIBS
20381LIBS="-ljemalloc
20382     $LIBS"
20383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384/* end confdefs.h.  */
20385
20386/* Override any GCC internal prototype to avoid an error.
20387   Use char because int might match the return type of a GCC
20388   builtin and then its argument prototype would still apply.  */
20389#ifdef __cplusplus
20390extern "C"
20391#endif
20392char malloc_stats_print ();
20393int
20394main ()
20395{
20396return malloc_stats_print ();
20397  ;
20398  return 0;
20399}
20400_ACEOF
20401if ac_fn_c_try_link "$LINENO"; then :
20402  ac_cv_lib_jemalloc_malloc_stats_print=yes
20403else
20404  ac_cv_lib_jemalloc_malloc_stats_print=no
20405fi
20406rm -f core conftest.err conftest.$ac_objext \
20407    conftest$ac_exeext conftest.$ac_ext
20408LIBS=$ac_check_lib_save_LIBS
20409fi
20410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
20411$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
20412if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
20413  RT_LIBS="$RT_LIBS -ljemalloc"
20414
20415$as_echo "#define HAVE_JEMALLOC 1" >>confdefs.h
20416
20417
20418else
20419  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20421as_fn_error $? "jemalloc library is missing
20422See \`config.log' for more details" "$LINENO" 5; }
20423fi
20424
20425fi
20426
20427
20428# support for unlimited select() syscall
20429# Check whether --enable-unlimited_select was given.
20430if test "${enable_unlimited_select+set}" = set; then :
20431  enableval=$enable_unlimited_select; case "${enableval}" in
20432         yes) enable_unlimited_select="yes" ;;
20433          no) enable_unlimited_select="no" ;;
20434           *) as_fn_error $? "bad value ${enableval} for --enable-unlimited-select" "$LINENO" 5 ;;
20435         esac
20436else
20437  enable_unlimited_select="no"
20438
20439fi
20440
20441if test "$enable_unlimited_select" = "yes"; then
20442
20443$as_echo "#define USE_UNLIMITED_SELECT 1" >>confdefs.h
20444
20445fi
20446
20447
20448# support for systemd unit files
20449
20450# Check whether --with-systemdsystemunitdir was given.
20451if test "${with_systemdsystemunitdir+set}" = set; then :
20452  withval=$with_systemdsystemunitdir;
20453else
20454  with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
20455fi
20456
20457if test "x$with_systemdsystemunitdir" != xno; then
20458        systemdsystemunitdir=$with_systemdsystemunitdir
20459
20460fi
20461 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
20462  HAVE_SYSTEMD_TRUE=
20463  HAVE_SYSTEMD_FALSE='#'
20464else
20465  HAVE_SYSTEMD_TRUE='#'
20466  HAVE_SYSTEMD_FALSE=
20467fi
20468
20469
20470
20471# debug
20472# Check whether --enable-debug was given.
20473if test "${enable_debug+set}" = set; then :
20474  enableval=$enable_debug; case "${enableval}" in
20475          yes) enable_debug="yes" ;;
20476           no) enable_debug="no" ;;
20477         auto) enable_debug="auto" ;;
20478           *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
20479         esac
20480else
20481  enable_debug="auto"
20482
20483fi
20484
20485if test "$enable_debug" = "auto"; then
20486	if test "x$in_git_src" = "xyes"; then
20487		enable_debug="yes"
20488	else
20489		enable_debug="no"
20490	fi
20491	{ $as_echo "$as_me:${as_lineno-$LINENO}: enable-debug in auto mode, enable-debug is set to ${enable_debug}" >&5
20492$as_echo "$as_me: enable-debug in auto mode, enable-debug is set to ${enable_debug}" >&6;}
20493fi
20494if test "$enable_debug" = "yes"; then
20495
20496$as_echo "#define DEBUG 1" >>confdefs.h
20497
20498fi
20499if test "$enable_debug" = "no"; then
20500
20501$as_echo "#define NDEBUG 1" >>confdefs.h
20502
20503fi
20504
20505
20506# debug-symbols
20507# Check whether --enable-debug_symbols was given.
20508if test "${enable_debug_symbols+set}" = set; then :
20509  enableval=$enable_debug_symbols; case "${enableval}" in
20510         yes) enable_debug_symbols="yes" ;;
20511          no) enable_debug_symbols="no" ;;
20512           *) as_fn_error $? "bad value ${enableval} for --disable-debug-symbols" "$LINENO" 5 ;;
20513         esac
20514else
20515  enable_debug_symbols="yes"
20516
20517fi
20518
20519
20520
20521# total debugless: highest performance, but no way at all to enable debug
20522# logging
20523# Check whether --enable-debugless was given.
20524if test "${enable_debugless+set}" = set; then :
20525  enableval=$enable_debugless; case "${enableval}" in
20526         yes) enable_debugless="yes" ;;
20527          no) enable_debugless="no" ;;
20528           *) as_fn_error $? "bad value ${enableval} for --enable-debugless" "$LINENO" 5 ;;
20529         esac
20530else
20531  enable_debugless="no"
20532
20533fi
20534
20535if test "$enable_debugless" = "yes"; then
20536
20537$as_echo "#define DEBUGLESS 1" >>confdefs.h
20538
20539fi
20540
20541
20542# valgrind
20543# Check whether --enable-valgrind was given.
20544if test "${enable_valgrind+set}" = set; then :
20545  enableval=$enable_valgrind; case "${enableval}" in
20546         yes) enable_valgrind="yes" ;;
20547          no) enable_valgrind="no" ;;
20548           *) as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
20549         esac
20550else
20551  enable_valgrind="no"
20552
20553fi
20554
20555if test "$enable_valgrind" = "yes"; then
20556
20557$as_echo "#define VALGRIND 1" >>confdefs.h
20558
20559fi
20560
20561
20562# compile diagnostic tools (small helpers usually not needed)
20563# Check whether --enable-diagtools was given.
20564if test "${enable_diagtools+set}" = set; then :
20565  enableval=$enable_diagtools; case "${enableval}" in
20566         yes) enable_diagtools="yes" ;;
20567          no) enable_diagtools="no" ;;
20568           *) as_fn_error $? "bad value ${enableval} for --enable-diagtools" "$LINENO" 5 ;;
20569         esac
20570else
20571  enable_diagtools=no
20572
20573fi
20574
20575 if test x$enable_diagtools = xyes; then
20576  ENABLE_DIAGTOOLS_TRUE=
20577  ENABLE_DIAGTOOLS_FALSE='#'
20578else
20579  ENABLE_DIAGTOOLS_TRUE='#'
20580  ENABLE_DIAGTOOLS_FALSE=
20581fi
20582
20583
20584
20585# compile end-user tools
20586# Check whether --enable-usertools was given.
20587if test "${enable_usertools+set}" = set; then :
20588  enableval=$enable_usertools; case "${enableval}" in
20589         yes) enable_usertools="yes" ;;
20590          no) enable_usertools="no" ;;
20591           *) as_fn_error $? "bad value ${enableval} for --enable-usertools" "$LINENO" 5 ;;
20592         esac
20593else
20594  enable_usertools=no
20595
20596fi
20597
20598 if test x$enable_usertools = xyes; then
20599  ENABLE_USERTOOLS_TRUE=
20600  ENABLE_USERTOOLS_FALSE='#'
20601else
20602  ENABLE_USERTOOLS_TRUE='#'
20603  ENABLE_USERTOOLS_FALSE=
20604fi
20605
20606
20607
20608# MySQL support
20609# Check whether --enable-mysql was given.
20610if test "${enable_mysql+set}" = set; then :
20611  enableval=$enable_mysql; case "${enableval}" in
20612         yes) enable_mysql="yes" ;;
20613          no) enable_mysql="no" ;;
20614           *) as_fn_error $? "bad value ${enableval} for --enable-mysql" "$LINENO" 5 ;;
20615         esac
20616else
20617  enable_mysql=no
20618
20619fi
20620
20621if test "x$enable_mysql" = "xyes"; then :
20622
20623
20624pkg_failed=no
20625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYSQL" >&5
20626$as_echo_n "checking for MYSQL... " >&6; }
20627
20628if test -n "$MYSQL_CFLAGS"; then
20629    pkg_cv_MYSQL_CFLAGS="$MYSQL_CFLAGS"
20630 elif test -n "$PKG_CONFIG"; then
20631    if test -n "$PKG_CONFIG" && \
20632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mysqlclient\""; } >&5
20633  ($PKG_CONFIG --exists --print-errors "mysqlclient") 2>&5
20634  ac_status=$?
20635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20636  test $ac_status = 0; }; then
20637  pkg_cv_MYSQL_CFLAGS=`$PKG_CONFIG --cflags "mysqlclient" 2>/dev/null`
20638		      test "x$?" != "x0" && pkg_failed=yes
20639else
20640  pkg_failed=yes
20641fi
20642 else
20643    pkg_failed=untried
20644fi
20645if test -n "$MYSQL_LIBS"; then
20646    pkg_cv_MYSQL_LIBS="$MYSQL_LIBS"
20647 elif test -n "$PKG_CONFIG"; then
20648    if test -n "$PKG_CONFIG" && \
20649    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mysqlclient\""; } >&5
20650  ($PKG_CONFIG --exists --print-errors "mysqlclient") 2>&5
20651  ac_status=$?
20652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20653  test $ac_status = 0; }; then
20654  pkg_cv_MYSQL_LIBS=`$PKG_CONFIG --libs "mysqlclient" 2>/dev/null`
20655		      test "x$?" != "x0" && pkg_failed=yes
20656else
20657  pkg_failed=yes
20658fi
20659 else
20660    pkg_failed=untried
20661fi
20662
20663
20664
20665if test $pkg_failed = yes; then
20666   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20667$as_echo "no" >&6; }
20668
20669if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20670        _pkg_short_errors_supported=yes
20671else
20672        _pkg_short_errors_supported=no
20673fi
20674        if test $_pkg_short_errors_supported = yes; then
20675	        MYSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mysqlclient" 2>&1`
20676        else
20677	        MYSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mysqlclient" 2>&1`
20678        fi
20679	# Put the nasty error message in config.log where it belongs
20680	echo "$MYSQL_PKG_ERRORS" >&5
20681
20682
20683    # Extract the first word of "mysql_config", so it can be a program name with args.
20684set dummy mysql_config; ac_word=$2
20685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20686$as_echo_n "checking for $ac_word... " >&6; }
20687if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
20688  $as_echo_n "(cached) " >&6
20689else
20690  if test -n "$MYSQL_CONFIG"; then
20691  ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
20692else
20693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20694for as_dir in $PATH
20695do
20696  IFS=$as_save_IFS
20697  test -z "$as_dir" && as_dir=.
20698    for ac_exec_ext in '' $ac_executable_extensions; do
20699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20700    ac_cv_prog_MYSQL_CONFIG="mysql_config"
20701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20702    break 2
20703  fi
20704done
20705  done
20706IFS=$as_save_IFS
20707
20708  test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no"
20709fi
20710fi
20711MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
20712if test -n "$MYSQL_CONFIG"; then
20713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
20714$as_echo "$MYSQL_CONFIG" >&6; }
20715else
20716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717$as_echo "no" >&6; }
20718fi
20719
20720
20721    if test "x${MYSQL_CONFIG}" = "xno"; then :
20722
20723      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20725as_fn_error $? "mysql_config not found - usually a package named mysql-dev, libmysql-dev or similar, is missing - install it to fix this issue
20726See \`config.log' for more details" "$LINENO" 5; }
20727
20728fi
20729    MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags`
20730    MYSQL_LIBS=`$MYSQL_CONFIG --libs`
20731
20732elif test $pkg_failed = untried; then
20733     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734$as_echo "no" >&6; }
20735
20736    # Extract the first word of "mysql_config", so it can be a program name with args.
20737set dummy mysql_config; ac_word=$2
20738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739$as_echo_n "checking for $ac_word... " >&6; }
20740if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
20741  $as_echo_n "(cached) " >&6
20742else
20743  if test -n "$MYSQL_CONFIG"; then
20744  ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
20745else
20746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20747for as_dir in $PATH
20748do
20749  IFS=$as_save_IFS
20750  test -z "$as_dir" && as_dir=.
20751    for ac_exec_ext in '' $ac_executable_extensions; do
20752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20753    ac_cv_prog_MYSQL_CONFIG="mysql_config"
20754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20755    break 2
20756  fi
20757done
20758  done
20759IFS=$as_save_IFS
20760
20761  test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no"
20762fi
20763fi
20764MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
20765if test -n "$MYSQL_CONFIG"; then
20766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
20767$as_echo "$MYSQL_CONFIG" >&6; }
20768else
20769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20770$as_echo "no" >&6; }
20771fi
20772
20773
20774    if test "x${MYSQL_CONFIG}" = "xno"; then :
20775
20776      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20778as_fn_error $? "mysql_config not found - usually a package named mysql-dev, libmysql-dev or similar, is missing - install it to fix this issue
20779See \`config.log' for more details" "$LINENO" 5; }
20780
20781fi
20782    MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags`
20783    MYSQL_LIBS=`$MYSQL_CONFIG --libs`
20784
20785else
20786	MYSQL_CFLAGS=$pkg_cv_MYSQL_CFLAGS
20787	MYSQL_LIBS=$pkg_cv_MYSQL_LIBS
20788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20789$as_echo "yes" >&6; }
20790
20791fi
20792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have mysql_library_init" >&5
20793$as_echo_n "checking if we have mysql_library_init... " >&6; }
20794  save_CFLAGS="$CFLAGS"
20795  CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20796  save_LIBS="$LIBS"
20797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
20798$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
20799if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
20800  $as_echo_n "(cached) " >&6
20801else
20802  ac_check_lib_save_LIBS=$LIBS
20803LIBS="-lmysqlclient $MYSQL_LIBS
20804   $LIBS"
20805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806/* end confdefs.h.  */
20807
20808/* Override any GCC internal prototype to avoid an error.
20809   Use char because int might match the return type of a GCC
20810   builtin and then its argument prototype would still apply.  */
20811#ifdef __cplusplus
20812extern "C"
20813#endif
20814char mysql_init ();
20815int
20816main ()
20817{
20818return mysql_init ();
20819  ;
20820  return 0;
20821}
20822_ACEOF
20823if ac_fn_c_try_link "$LINENO"; then :
20824  ac_cv_lib_mysqlclient_mysql_init=yes
20825else
20826  ac_cv_lib_mysqlclient_mysql_init=no
20827fi
20828rm -f core conftest.err conftest.$ac_objext \
20829    conftest$ac_exeext conftest.$ac_ext
20830LIBS=$ac_check_lib_save_LIBS
20831fi
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
20833$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
20834if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
20835  cat >>confdefs.h <<_ACEOF
20836#define HAVE_LIBMYSQLCLIENT 1
20837_ACEOF
20838
20839  LIBS="-lmysqlclient $LIBS"
20840
20841else
20842  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20844as_fn_error $? "MySQL library is missing
20845See \`config.log' for more details" "$LINENO" 5; }
20846fi
20847
20848  LIBS="$LIBS $MYSQL_LIBS"
20849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850/* end confdefs.h.  */
20851#include <mysql.h>
20852     #include <stdio.h>
20853int
20854main ()
20855{
20856mysql_library_init(0, NULL, NULL)
20857  ;
20858  return 0;
20859}
20860_ACEOF
20861if ac_fn_c_try_link "$LINENO"; then :
20862  have_mysql_library_init=yes
20863else
20864  have_mysql_library_init=no
20865fi
20866rm -f core conftest.err conftest.$ac_objext \
20867    conftest$ac_exeext conftest.$ac_ext
20868  CFLAGS="$save_CFLAGS"
20869  LIBS="$save_LIBS"
20870
20871fi
20872 if test x$enable_mysql = xyes; then
20873  ENABLE_MYSQL_TRUE=
20874  ENABLE_MYSQL_FALSE='#'
20875else
20876  ENABLE_MYSQL_TRUE='#'
20877  ENABLE_MYSQL_FALSE=
20878fi
20879
20880if test "$have_mysql_library_init" = "yes"; then
20881
20882$as_echo "#define HAVE_MYSQL_LIBRARY_INIT 1" >>confdefs.h
20883
20884fi
20885
20886
20887
20888
20889# PostgreSQL support
20890# Check whether --enable-pgsql was given.
20891if test "${enable_pgsql+set}" = set; then :
20892  enableval=$enable_pgsql; case "${enableval}" in
20893         yes) enable_pgsql="yes" ;;
20894          no) enable_pgsql="no" ;;
20895           *) as_fn_error $? "bad value ${enableval} for --enable-pgsql" "$LINENO" 5 ;;
20896         esac
20897else
20898  enable_pgsql=no
20899
20900fi
20901
20902if test "x$enable_pgsql" = "xyes"; then
20903
20904pkg_failed=no
20905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGSQL" >&5
20906$as_echo_n "checking for PGSQL... " >&6; }
20907
20908if test -n "$PGSQL_CFLAGS"; then
20909    pkg_cv_PGSQL_CFLAGS="$PGSQL_CFLAGS"
20910 elif test -n "$PKG_CONFIG"; then
20911    if test -n "$PKG_CONFIG" && \
20912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
20913  ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
20914  ac_status=$?
20915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20916  test $ac_status = 0; }; then
20917  pkg_cv_PGSQL_CFLAGS=`$PKG_CONFIG --cflags "libpq" 2>/dev/null`
20918		      test "x$?" != "x0" && pkg_failed=yes
20919else
20920  pkg_failed=yes
20921fi
20922 else
20923    pkg_failed=untried
20924fi
20925if test -n "$PGSQL_LIBS"; then
20926    pkg_cv_PGSQL_LIBS="$PGSQL_LIBS"
20927 elif test -n "$PKG_CONFIG"; then
20928    if test -n "$PKG_CONFIG" && \
20929    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
20930  ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
20931  ac_status=$?
20932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20933  test $ac_status = 0; }; then
20934  pkg_cv_PGSQL_LIBS=`$PKG_CONFIG --libs "libpq" 2>/dev/null`
20935		      test "x$?" != "x0" && pkg_failed=yes
20936else
20937  pkg_failed=yes
20938fi
20939 else
20940    pkg_failed=untried
20941fi
20942
20943
20944
20945if test $pkg_failed = yes; then
20946   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20947$as_echo "no" >&6; }
20948
20949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20950        _pkg_short_errors_supported=yes
20951else
20952        _pkg_short_errors_supported=no
20953fi
20954        if test $_pkg_short_errors_supported = yes; then
20955	        PGSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpq" 2>&1`
20956        else
20957	        PGSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpq" 2>&1`
20958        fi
20959	# Put the nasty error message in config.log where it belongs
20960	echo "$PGSQL_PKG_ERRORS" >&5
20961
20962
20963	  # Extract the first word of "pg_config", so it can be a program name with args.
20964set dummy pg_config; ac_word=$2
20965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20966$as_echo_n "checking for $ac_word... " >&6; }
20967if ${ac_cv_prog_PG_CONFIG+:} false; then :
20968  $as_echo_n "(cached) " >&6
20969else
20970  if test -n "$PG_CONFIG"; then
20971  ac_cv_prog_PG_CONFIG="$PG_CONFIG" # Let the user override the test.
20972else
20973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20974for as_dir in $PATH
20975do
20976  IFS=$as_save_IFS
20977  test -z "$as_dir" && as_dir=.
20978    for ac_exec_ext in '' $ac_executable_extensions; do
20979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20980    ac_cv_prog_PG_CONFIG="pg_config"
20981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20982    break 2
20983  fi
20984done
20985  done
20986IFS=$as_save_IFS
20987
20988  test -z "$ac_cv_prog_PG_CONFIG" && ac_cv_prog_PG_CONFIG="no"
20989fi
20990fi
20991PG_CONFIG=$ac_cv_prog_PG_CONFIG
20992if test -n "$PG_CONFIG"; then
20993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
20994$as_echo "$PG_CONFIG" >&6; }
20995else
20996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20997$as_echo "no" >&6; }
20998fi
20999
21000
21001	  if test "x${PG_CONFIG}" = "xno"; then
21002	    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21004as_fn_error $? "pg_config not found
21005See \`config.log' for more details" "$LINENO" 5; }
21006	  fi
21007	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
21008$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
21009if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
21010  $as_echo_n "(cached) " >&6
21011else
21012  ac_check_lib_save_LIBS=$LIBS
21013LIBS="-lpq -L`$PG_CONFIG --libdir`
21014	   $LIBS"
21015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016/* end confdefs.h.  */
21017
21018/* Override any GCC internal prototype to avoid an error.
21019   Use char because int might match the return type of a GCC
21020   builtin and then its argument prototype would still apply.  */
21021#ifdef __cplusplus
21022extern "C"
21023#endif
21024char PQconnectdb ();
21025int
21026main ()
21027{
21028return PQconnectdb ();
21029  ;
21030  return 0;
21031}
21032_ACEOF
21033if ac_fn_c_try_link "$LINENO"; then :
21034  ac_cv_lib_pq_PQconnectdb=yes
21035else
21036  ac_cv_lib_pq_PQconnectdb=no
21037fi
21038rm -f core conftest.err conftest.$ac_objext \
21039    conftest$ac_exeext conftest.$ac_ext
21040LIBS=$ac_check_lib_save_LIBS
21041fi
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
21043$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
21044if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
21045  PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
21046	     PGSQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
21047
21048else
21049  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21051as_fn_error $? "PgSQL library is missing
21052See \`config.log' for more details" "$LINENO" 5; }
21053fi
21054
21055
21056elif test $pkg_failed = untried; then
21057     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21058$as_echo "no" >&6; }
21059
21060	  # Extract the first word of "pg_config", so it can be a program name with args.
21061set dummy pg_config; ac_word=$2
21062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21063$as_echo_n "checking for $ac_word... " >&6; }
21064if ${ac_cv_prog_PG_CONFIG+:} false; then :
21065  $as_echo_n "(cached) " >&6
21066else
21067  if test -n "$PG_CONFIG"; then
21068  ac_cv_prog_PG_CONFIG="$PG_CONFIG" # Let the user override the test.
21069else
21070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21071for as_dir in $PATH
21072do
21073  IFS=$as_save_IFS
21074  test -z "$as_dir" && as_dir=.
21075    for ac_exec_ext in '' $ac_executable_extensions; do
21076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21077    ac_cv_prog_PG_CONFIG="pg_config"
21078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21079    break 2
21080  fi
21081done
21082  done
21083IFS=$as_save_IFS
21084
21085  test -z "$ac_cv_prog_PG_CONFIG" && ac_cv_prog_PG_CONFIG="no"
21086fi
21087fi
21088PG_CONFIG=$ac_cv_prog_PG_CONFIG
21089if test -n "$PG_CONFIG"; then
21090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
21091$as_echo "$PG_CONFIG" >&6; }
21092else
21093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21094$as_echo "no" >&6; }
21095fi
21096
21097
21098	  if test "x${PG_CONFIG}" = "xno"; then
21099	    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21101as_fn_error $? "pg_config not found
21102See \`config.log' for more details" "$LINENO" 5; }
21103	  fi
21104	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
21105$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
21106if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
21107  $as_echo_n "(cached) " >&6
21108else
21109  ac_check_lib_save_LIBS=$LIBS
21110LIBS="-lpq -L`$PG_CONFIG --libdir`
21111	   $LIBS"
21112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113/* end confdefs.h.  */
21114
21115/* Override any GCC internal prototype to avoid an error.
21116   Use char because int might match the return type of a GCC
21117   builtin and then its argument prototype would still apply.  */
21118#ifdef __cplusplus
21119extern "C"
21120#endif
21121char PQconnectdb ();
21122int
21123main ()
21124{
21125return PQconnectdb ();
21126  ;
21127  return 0;
21128}
21129_ACEOF
21130if ac_fn_c_try_link "$LINENO"; then :
21131  ac_cv_lib_pq_PQconnectdb=yes
21132else
21133  ac_cv_lib_pq_PQconnectdb=no
21134fi
21135rm -f core conftest.err conftest.$ac_objext \
21136    conftest$ac_exeext conftest.$ac_ext
21137LIBS=$ac_check_lib_save_LIBS
21138fi
21139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
21140$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
21141if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
21142  PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
21143	     PGSQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
21144
21145else
21146  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21148as_fn_error $? "PgSQL library is missing
21149See \`config.log' for more details" "$LINENO" 5; }
21150fi
21151
21152
21153else
21154	PGSQL_CFLAGS=$pkg_cv_PGSQL_CFLAGS
21155	PGSQL_LIBS=$pkg_cv_PGSQL_LIBS
21156        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21157$as_echo "yes" >&6; }
21158
21159fi
21160fi
21161 if test x$enable_pgsql = xyes; then
21162  ENABLE_PGSQL_TRUE=
21163  ENABLE_PGSQL_FALSE='#'
21164else
21165  ENABLE_PGSQL_TRUE='#'
21166  ENABLE_PGSQL_FALSE=
21167fi
21168
21169
21170
21171
21172# libdbi support
21173# Check whether --enable-libdbi was given.
21174if test "${enable_libdbi+set}" = set; then :
21175  enableval=$enable_libdbi; case "${enableval}" in
21176         yes) enable_libdbi="yes" ;;
21177          no) enable_libdbi="no" ;;
21178          optional) enable_libdbi="optional" ;;
21179           *) as_fn_error $? "bad value ${enableval} for --enable-libdbi" "$LINENO" 5 ;;
21180         esac
21181else
21182  enable_libdbi=no
21183
21184fi
21185
21186libdbi_use_dummy="no"
21187if test "x$enable_libdbi" = "xyes" -o x$enable_libdbi = xoptional; then
21188  for ac_header in dbi/dbi.h
21189do :
21190  ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default"
21191if test "x$ac_cv_header_dbi_dbi_h" = xyes; then :
21192  cat >>confdefs.h <<_ACEOF
21193#define HAVE_DBI_DBI_H 1
21194_ACEOF
21195
21196else
21197
21198        if test x$enable_libdbi = xyes; then :
21199  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21201as_fn_error $? "libdbi is missing
21202See \`config.log' for more details" "$LINENO" 5; }
21203
21204fi
21205        libdbi_use_dummy="yes"
21206
21207
21208fi
21209
21210done
21211
21212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5
21213$as_echo_n "checking for dbi_initialize in -ldbi... " >&6; }
21214if ${ac_cv_lib_dbi_dbi_initialize+:} false; then :
21215  $as_echo_n "(cached) " >&6
21216else
21217  ac_check_lib_save_LIBS=$LIBS
21218LIBS="-ldbi  $LIBS"
21219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21220/* end confdefs.h.  */
21221
21222/* Override any GCC internal prototype to avoid an error.
21223   Use char because int might match the return type of a GCC
21224   builtin and then its argument prototype would still apply.  */
21225#ifdef __cplusplus
21226extern "C"
21227#endif
21228char dbi_initialize ();
21229int
21230main ()
21231{
21232return dbi_initialize ();
21233  ;
21234  return 0;
21235}
21236_ACEOF
21237if ac_fn_c_try_link "$LINENO"; then :
21238  ac_cv_lib_dbi_dbi_initialize=yes
21239else
21240  ac_cv_lib_dbi_dbi_initialize=no
21241fi
21242rm -f core conftest.err conftest.$ac_objext \
21243    conftest$ac_exeext conftest.$ac_ext
21244LIBS=$ac_check_lib_save_LIBS
21245fi
21246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5
21247$as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; }
21248if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes; then :
21249  LIBDBI_CFLAGS=""
21250     LIBDBI_LIBS="-ldbi"
21251
21252else
21253
21254        if test x$enable_libdbi = xyes; then :
21255  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21257as_fn_error $? "libdbi is missing
21258See \`config.log' for more details" "$LINENO" 5; }
21259
21260fi
21261        libdbi_use_dummy="yes"
21262
21263
21264fi
21265
21266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize_r in -ldbi" >&5
21267$as_echo_n "checking for dbi_initialize_r in -ldbi... " >&6; }
21268if ${ac_cv_lib_dbi_dbi_initialize_r+:} false; then :
21269  $as_echo_n "(cached) " >&6
21270else
21271  ac_check_lib_save_LIBS=$LIBS
21272LIBS="-ldbi  $LIBS"
21273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274/* end confdefs.h.  */
21275
21276/* Override any GCC internal prototype to avoid an error.
21277   Use char because int might match the return type of a GCC
21278   builtin and then its argument prototype would still apply.  */
21279#ifdef __cplusplus
21280extern "C"
21281#endif
21282char dbi_initialize_r ();
21283int
21284main ()
21285{
21286return dbi_initialize_r ();
21287  ;
21288  return 0;
21289}
21290_ACEOF
21291if ac_fn_c_try_link "$LINENO"; then :
21292  ac_cv_lib_dbi_dbi_initialize_r=yes
21293else
21294  ac_cv_lib_dbi_dbi_initialize_r=no
21295fi
21296rm -f core conftest.err conftest.$ac_objext \
21297    conftest$ac_exeext conftest.$ac_ext
21298LIBS=$ac_check_lib_save_LIBS
21299fi
21300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize_r" >&5
21301$as_echo "$ac_cv_lib_dbi_dbi_initialize_r" >&6; }
21302if test "x$ac_cv_lib_dbi_dbi_initialize_r" = xyes; then :
21303
21304$as_echo "#define HAVE_DBI_R 1" >>confdefs.h
21305
21306
21307fi
21308
21309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_conn_transaction_begin in -ldbi" >&5
21310$as_echo_n "checking for dbi_conn_transaction_begin in -ldbi... " >&6; }
21311if ${ac_cv_lib_dbi_dbi_conn_transaction_begin+:} false; then :
21312  $as_echo_n "(cached) " >&6
21313else
21314  ac_check_lib_save_LIBS=$LIBS
21315LIBS="-ldbi  $LIBS"
21316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317/* end confdefs.h.  */
21318
21319/* Override any GCC internal prototype to avoid an error.
21320   Use char because int might match the return type of a GCC
21321   builtin and then its argument prototype would still apply.  */
21322#ifdef __cplusplus
21323extern "C"
21324#endif
21325char dbi_conn_transaction_begin ();
21326int
21327main ()
21328{
21329return dbi_conn_transaction_begin ();
21330  ;
21331  return 0;
21332}
21333_ACEOF
21334if ac_fn_c_try_link "$LINENO"; then :
21335  ac_cv_lib_dbi_dbi_conn_transaction_begin=yes
21336else
21337  ac_cv_lib_dbi_dbi_conn_transaction_begin=no
21338fi
21339rm -f core conftest.err conftest.$ac_objext \
21340    conftest$ac_exeext conftest.$ac_ext
21341LIBS=$ac_check_lib_save_LIBS
21342fi
21343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_conn_transaction_begin" >&5
21344$as_echo "$ac_cv_lib_dbi_dbi_conn_transaction_begin" >&6; }
21345if test "x$ac_cv_lib_dbi_dbi_conn_transaction_begin" = xyes; then :
21346
21347$as_echo "#define HAVE_DBI_TXSUPP 1" >>confdefs.h
21348
21349
21350fi
21351
21352fi
21353 if test x$libdbi_use_dummy = xyes; then
21354  LIBDBI_USE_DUMMY_TRUE=
21355  LIBDBI_USE_DUMMY_FALSE='#'
21356else
21357  LIBDBI_USE_DUMMY_TRUE='#'
21358  LIBDBI_USE_DUMMY_FALSE=
21359fi
21360
21361 if test x$enable_libdbi = xyes -o x$enable_libdbi = xoptional; then
21362  ENABLE_OMLIBDBI_TRUE=
21363  ENABLE_OMLIBDBI_FALSE='#'
21364else
21365  ENABLE_OMLIBDBI_TRUE='#'
21366  ENABLE_OMLIBDBI_FALSE=
21367fi
21368
21369
21370
21371
21372
21373# SNMP support
21374# Check whether --enable-snmp was given.
21375if test "${enable_snmp+set}" = set; then :
21376  enableval=$enable_snmp; case "${enableval}" in
21377         yes) enable_snmp="yes" ;;
21378          no) enable_snmp="no" ;;
21379           *) as_fn_error $? "bad value ${enableval} for --enable-snmp" "$LINENO" 5 ;;
21380         esac
21381else
21382  enable_snmp=no
21383
21384fi
21385
21386if test "x$enable_snmp" = "xyes"; then
21387  for ac_header in net-snmp/net-snmp-config.h
21388do :
21389  ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
21390if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
21391  cat >>confdefs.h <<_ACEOF
21392#define HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1
21393_ACEOF
21394
21395else
21396  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21398as_fn_error $? "Net-SNMP is missing
21399See \`config.log' for more details" "$LINENO" 5; }
21400
21401fi
21402
21403done
21404
21405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_timeout in -lnetsnmp" >&5
21406$as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; }
21407if ${ac_cv_lib_netsnmp_snmp_timeout+:} false; then :
21408  $as_echo_n "(cached) " >&6
21409else
21410  ac_check_lib_save_LIBS=$LIBS
21411LIBS="-lnetsnmp  $LIBS"
21412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413/* end confdefs.h.  */
21414
21415/* Override any GCC internal prototype to avoid an error.
21416   Use char because int might match the return type of a GCC
21417   builtin and then its argument prototype would still apply.  */
21418#ifdef __cplusplus
21419extern "C"
21420#endif
21421char snmp_timeout ();
21422int
21423main ()
21424{
21425return snmp_timeout ();
21426  ;
21427  return 0;
21428}
21429_ACEOF
21430if ac_fn_c_try_link "$LINENO"; then :
21431  ac_cv_lib_netsnmp_snmp_timeout=yes
21432else
21433  ac_cv_lib_netsnmp_snmp_timeout=no
21434fi
21435rm -f core conftest.err conftest.$ac_objext \
21436    conftest$ac_exeext conftest.$ac_ext
21437LIBS=$ac_check_lib_save_LIBS
21438fi
21439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5
21440$as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; }
21441if test "x$ac_cv_lib_netsnmp_snmp_timeout" = xyes; then :
21442  SNMP_CFLAGS=""
21443     SNMP_LIBS="-lnetsnmp"
21444
21445else
21446  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21448as_fn_error $? "Net-SNMP library is missing
21449See \`config.log' for more details" "$LINENO" 5; }
21450
21451fi
21452
21453fi
21454 if test x$enable_snmp = xyes; then
21455  ENABLE_SNMP_TRUE=
21456  ENABLE_SNMP_FALSE='#'
21457else
21458  ENABLE_SNMP_TRUE='#'
21459  ENABLE_SNMP_FALSE=
21460fi
21461
21462
21463
21464
21465# SNMP Test Support
21466# Check whether --enable-snmp-tests was given.
21467if test "${enable_snmp_tests+set}" = set; then :
21468  enableval=$enable_snmp_tests; case "${enableval}" in
21469         yes) enable_snmp_tests="yes" ;;
21470          no) enable_snmp_tests="no" ;;
21471           *) as_fn_error $? "bad value ${enableval} for --enable-snmp-tests" "$LINENO" 5 ;;
21472         esac
21473else
21474  enable_snmp_tests=no
21475
21476fi
21477
21478 if test x$enable_snmp_tests = xyes; then
21479  ENABLE_SNMP_TESTS_TRUE=
21480  ENABLE_SNMP_TESTS_FALSE='#'
21481else
21482  ENABLE_SNMP_TESTS_TRUE='#'
21483  ENABLE_SNMP_TESTS_FALSE=
21484fi
21485
21486
21487# uuid support
21488# Check whether --enable-uuid was given.
21489if test "${enable_uuid+set}" = set; then :
21490  enableval=$enable_uuid; case "${enableval}" in
21491         yes) enable_uuid="yes" ;;
21492          no) enable_uuid="no" ;;
21493           *) as_fn_error $? "bad value ${enableval} for --enable-uuid" "$LINENO" 5 ;;
21494         esac
21495else
21496  enable_uuid=yes
21497
21498fi
21499
21500if test "x$enable_uuid" = "xyes"; then
21501
21502pkg_failed=no
21503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
21504$as_echo_n "checking for LIBUUID... " >&6; }
21505
21506if test -n "$LIBUUID_CFLAGS"; then
21507    pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
21508 elif test -n "$PKG_CONFIG"; then
21509    if test -n "$PKG_CONFIG" && \
21510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
21511  ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
21512  ac_status=$?
21513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21514  test $ac_status = 0; }; then
21515  pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
21516		      test "x$?" != "x0" && pkg_failed=yes
21517else
21518  pkg_failed=yes
21519fi
21520 else
21521    pkg_failed=untried
21522fi
21523if test -n "$LIBUUID_LIBS"; then
21524    pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
21525 elif test -n "$PKG_CONFIG"; then
21526    if test -n "$PKG_CONFIG" && \
21527    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
21528  ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
21529  ac_status=$?
21530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21531  test $ac_status = 0; }; then
21532  pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
21533		      test "x$?" != "x0" && pkg_failed=yes
21534else
21535  pkg_failed=yes
21536fi
21537 else
21538    pkg_failed=untried
21539fi
21540
21541
21542
21543if test $pkg_failed = yes; then
21544   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21545$as_echo "no" >&6; }
21546
21547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21548        _pkg_short_errors_supported=yes
21549else
21550        _pkg_short_errors_supported=no
21551fi
21552        if test $_pkg_short_errors_supported = yes; then
21553	        LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
21554        else
21555	        LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
21556        fi
21557	# Put the nasty error message in config.log where it belongs
21558	echo "$LIBUUID_PKG_ERRORS" >&5
21559
21560	as_fn_error $? "Package requirements (uuid) were not met:
21561
21562$LIBUUID_PKG_ERRORS
21563
21564Consider adjusting the PKG_CONFIG_PATH environment variable if you
21565installed software in a non-standard prefix.
21566
21567Alternatively, you may set the environment variables LIBUUID_CFLAGS
21568and LIBUUID_LIBS to avoid the need to call pkg-config.
21569See the pkg-config man page for more details." "$LINENO" 5
21570elif test $pkg_failed = untried; then
21571     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572$as_echo "no" >&6; }
21573	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21575as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21576is in your PATH or set the PKG_CONFIG environment variable to the full
21577path to pkg-config.
21578
21579Alternatively, you may set the environment variables LIBUUID_CFLAGS
21580and LIBUUID_LIBS to avoid the need to call pkg-config.
21581See the pkg-config man page for more details.
21582
21583To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21584See \`config.log' for more details" "$LINENO" 5; }
21585else
21586	LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
21587	LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
21588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21589$as_echo "yes" >&6; }
21590
21591fi
21592
21593$as_echo "#define USE_LIBUUID 1" >>confdefs.h
21594
21595fi
21596 if test x$enable_uuid = xyes; then
21597  ENABLE_UUID_TRUE=
21598  ENABLE_UUID_FALSE='#'
21599else
21600  ENABLE_UUID_TRUE='#'
21601  ENABLE_UUID_FALSE=
21602fi
21603
21604
21605
21606# elasticsearch support
21607# Check whether --enable-elasticsearch was given.
21608if test "${enable_elasticsearch+set}" = set; then :
21609  enableval=$enable_elasticsearch; case "${enableval}" in
21610         yes) enable_elasticsearch="yes" ;;
21611          no) enable_elasticsearch="no" ;;
21612           *) as_fn_error $? "bad value ${enableval} for --enable-elasticsearch" "$LINENO" 5 ;;
21613         esac
21614else
21615  enable_elasticsearch=no
21616
21617fi
21618
21619if test "x$enable_elasticsearch" = "xyes"; then
21620
21621pkg_failed=no
21622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
21623$as_echo_n "checking for CURL... " >&6; }
21624
21625if test -n "$CURL_CFLAGS"; then
21626    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
21627 elif test -n "$PKG_CONFIG"; then
21628    if test -n "$PKG_CONFIG" && \
21629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21630  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21631  ac_status=$?
21632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21633  test $ac_status = 0; }; then
21634  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
21635		      test "x$?" != "x0" && pkg_failed=yes
21636else
21637  pkg_failed=yes
21638fi
21639 else
21640    pkg_failed=untried
21641fi
21642if test -n "$CURL_LIBS"; then
21643    pkg_cv_CURL_LIBS="$CURL_LIBS"
21644 elif test -n "$PKG_CONFIG"; then
21645    if test -n "$PKG_CONFIG" && \
21646    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21647  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21648  ac_status=$?
21649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21650  test $ac_status = 0; }; then
21651  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
21652		      test "x$?" != "x0" && pkg_failed=yes
21653else
21654  pkg_failed=yes
21655fi
21656 else
21657    pkg_failed=untried
21658fi
21659
21660
21661
21662if test $pkg_failed = yes; then
21663   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21664$as_echo "no" >&6; }
21665
21666if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21667        _pkg_short_errors_supported=yes
21668else
21669        _pkg_short_errors_supported=no
21670fi
21671        if test $_pkg_short_errors_supported = yes; then
21672	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
21673        else
21674	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
21675        fi
21676	# Put the nasty error message in config.log where it belongs
21677	echo "$CURL_PKG_ERRORS" >&5
21678
21679	as_fn_error $? "Package requirements (libcurl) were not met:
21680
21681$CURL_PKG_ERRORS
21682
21683Consider adjusting the PKG_CONFIG_PATH environment variable if you
21684installed software in a non-standard prefix.
21685
21686Alternatively, you may set the environment variables CURL_CFLAGS
21687and CURL_LIBS to avoid the need to call pkg-config.
21688See the pkg-config man page for more details." "$LINENO" 5
21689elif test $pkg_failed = untried; then
21690     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691$as_echo "no" >&6; }
21692	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21694as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21695is in your PATH or set the PKG_CONFIG environment variable to the full
21696path to pkg-config.
21697
21698Alternatively, you may set the environment variables CURL_CFLAGS
21699and CURL_LIBS to avoid the need to call pkg-config.
21700See the pkg-config man page for more details.
21701
21702To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21703See \`config.log' for more details" "$LINENO" 5; }
21704else
21705	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
21706	CURL_LIBS=$pkg_cv_CURL_LIBS
21707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21708$as_echo "yes" >&6; }
21709
21710fi
21711	LIBM=
21712case $host in
21713*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
21714  # These system don't have libm, or don't need it
21715  ;;
21716*-ncr-sysv4.3*)
21717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
21718$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
21719if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
21720  $as_echo_n "(cached) " >&6
21721else
21722  ac_check_lib_save_LIBS=$LIBS
21723LIBS="-lmw  $LIBS"
21724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21725/* end confdefs.h.  */
21726
21727/* Override any GCC internal prototype to avoid an error.
21728   Use char because int might match the return type of a GCC
21729   builtin and then its argument prototype would still apply.  */
21730#ifdef __cplusplus
21731extern "C"
21732#endif
21733char _mwvalidcheckl ();
21734int
21735main ()
21736{
21737return _mwvalidcheckl ();
21738  ;
21739  return 0;
21740}
21741_ACEOF
21742if ac_fn_c_try_link "$LINENO"; then :
21743  ac_cv_lib_mw__mwvalidcheckl=yes
21744else
21745  ac_cv_lib_mw__mwvalidcheckl=no
21746fi
21747rm -f core conftest.err conftest.$ac_objext \
21748    conftest$ac_exeext conftest.$ac_ext
21749LIBS=$ac_check_lib_save_LIBS
21750fi
21751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
21752$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
21753if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
21754  LIBM=-lmw
21755fi
21756
21757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
21758$as_echo_n "checking for cos in -lm... " >&6; }
21759if ${ac_cv_lib_m_cos+:} false; then :
21760  $as_echo_n "(cached) " >&6
21761else
21762  ac_check_lib_save_LIBS=$LIBS
21763LIBS="-lm  $LIBS"
21764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765/* end confdefs.h.  */
21766
21767/* Override any GCC internal prototype to avoid an error.
21768   Use char because int might match the return type of a GCC
21769   builtin and then its argument prototype would still apply.  */
21770#ifdef __cplusplus
21771extern "C"
21772#endif
21773char cos ();
21774int
21775main ()
21776{
21777return cos ();
21778  ;
21779  return 0;
21780}
21781_ACEOF
21782if ac_fn_c_try_link "$LINENO"; then :
21783  ac_cv_lib_m_cos=yes
21784else
21785  ac_cv_lib_m_cos=no
21786fi
21787rm -f core conftest.err conftest.$ac_objext \
21788    conftest$ac_exeext conftest.$ac_ext
21789LIBS=$ac_check_lib_save_LIBS
21790fi
21791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
21792$as_echo "$ac_cv_lib_m_cos" >&6; }
21793if test "x$ac_cv_lib_m_cos" = xyes; then :
21794  LIBM="$LIBM -lm"
21795fi
21796
21797  ;;
21798*)
21799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
21800$as_echo_n "checking for cos in -lm... " >&6; }
21801if ${ac_cv_lib_m_cos+:} false; then :
21802  $as_echo_n "(cached) " >&6
21803else
21804  ac_check_lib_save_LIBS=$LIBS
21805LIBS="-lm  $LIBS"
21806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807/* end confdefs.h.  */
21808
21809/* Override any GCC internal prototype to avoid an error.
21810   Use char because int might match the return type of a GCC
21811   builtin and then its argument prototype would still apply.  */
21812#ifdef __cplusplus
21813extern "C"
21814#endif
21815char cos ();
21816int
21817main ()
21818{
21819return cos ();
21820  ;
21821  return 0;
21822}
21823_ACEOF
21824if ac_fn_c_try_link "$LINENO"; then :
21825  ac_cv_lib_m_cos=yes
21826else
21827  ac_cv_lib_m_cos=no
21828fi
21829rm -f core conftest.err conftest.$ac_objext \
21830    conftest$ac_exeext conftest.$ac_ext
21831LIBS=$ac_check_lib_save_LIBS
21832fi
21833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
21834$as_echo "$ac_cv_lib_m_cos" >&6; }
21835if test "x$ac_cv_lib_m_cos" = xyes; then :
21836  LIBM=-lm
21837fi
21838
21839  ;;
21840esac
21841
21842
21843fi
21844 if test x$enable_elasticsearch = xyes; then
21845  ENABLE_ELASTICSEARCH_TRUE=
21846  ENABLE_ELASTICSEARCH_FALSE='#'
21847else
21848  ENABLE_ELASTICSEARCH_TRUE='#'
21849  ENABLE_ELASTICSEARCH_FALSE=
21850fi
21851
21852
21853
21854# clickhouse support
21855# Check whether --enable-clickhouse was given.
21856if test "${enable_clickhouse+set}" = set; then :
21857  enableval=$enable_clickhouse; case "${enableval}" in
21858         yes) enable_clickhouse="yes" ;;
21859          no) enable_clickhouse="no" ;;
21860           *) as_fn_error $? "bad value ${enableval} for --enable-clickhouse" "$LINENO" 5 ;;
21861         esac
21862else
21863  enable_clickhouse=no
21864
21865fi
21866
21867if test "x$enable_clickhouse" = "xyes"; then
21868
21869pkg_failed=no
21870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
21871$as_echo_n "checking for CURL... " >&6; }
21872
21873if test -n "$CURL_CFLAGS"; then
21874    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
21875 elif test -n "$PKG_CONFIG"; then
21876    if test -n "$PKG_CONFIG" && \
21877    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21878  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21879  ac_status=$?
21880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881  test $ac_status = 0; }; then
21882  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
21883		      test "x$?" != "x0" && pkg_failed=yes
21884else
21885  pkg_failed=yes
21886fi
21887 else
21888    pkg_failed=untried
21889fi
21890if test -n "$CURL_LIBS"; then
21891    pkg_cv_CURL_LIBS="$CURL_LIBS"
21892 elif test -n "$PKG_CONFIG"; then
21893    if test -n "$PKG_CONFIG" && \
21894    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21895  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21896  ac_status=$?
21897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21898  test $ac_status = 0; }; then
21899  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
21900		      test "x$?" != "x0" && pkg_failed=yes
21901else
21902  pkg_failed=yes
21903fi
21904 else
21905    pkg_failed=untried
21906fi
21907
21908
21909
21910if test $pkg_failed = yes; then
21911   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21912$as_echo "no" >&6; }
21913
21914if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21915        _pkg_short_errors_supported=yes
21916else
21917        _pkg_short_errors_supported=no
21918fi
21919        if test $_pkg_short_errors_supported = yes; then
21920	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
21921        else
21922	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
21923        fi
21924	# Put the nasty error message in config.log where it belongs
21925	echo "$CURL_PKG_ERRORS" >&5
21926
21927	as_fn_error $? "Package requirements (libcurl) were not met:
21928
21929$CURL_PKG_ERRORS
21930
21931Consider adjusting the PKG_CONFIG_PATH environment variable if you
21932installed software in a non-standard prefix.
21933
21934Alternatively, you may set the environment variables CURL_CFLAGS
21935and CURL_LIBS to avoid the need to call pkg-config.
21936See the pkg-config man page for more details." "$LINENO" 5
21937elif test $pkg_failed = untried; then
21938     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21939$as_echo "no" >&6; }
21940	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21942as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21943is in your PATH or set the PKG_CONFIG environment variable to the full
21944path to pkg-config.
21945
21946Alternatively, you may set the environment variables CURL_CFLAGS
21947and CURL_LIBS to avoid the need to call pkg-config.
21948See the pkg-config man page for more details.
21949
21950To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21951See \`config.log' for more details" "$LINENO" 5; }
21952else
21953	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
21954	CURL_LIBS=$pkg_cv_CURL_LIBS
21955        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21956$as_echo "yes" >&6; }
21957
21958fi
21959	LIBM=
21960case $host in
21961*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
21962  # These system don't have libm, or don't need it
21963  ;;
21964*-ncr-sysv4.3*)
21965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
21966$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
21967if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
21968  $as_echo_n "(cached) " >&6
21969else
21970  ac_check_lib_save_LIBS=$LIBS
21971LIBS="-lmw  $LIBS"
21972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973/* end confdefs.h.  */
21974
21975/* Override any GCC internal prototype to avoid an error.
21976   Use char because int might match the return type of a GCC
21977   builtin and then its argument prototype would still apply.  */
21978#ifdef __cplusplus
21979extern "C"
21980#endif
21981char _mwvalidcheckl ();
21982int
21983main ()
21984{
21985return _mwvalidcheckl ();
21986  ;
21987  return 0;
21988}
21989_ACEOF
21990if ac_fn_c_try_link "$LINENO"; then :
21991  ac_cv_lib_mw__mwvalidcheckl=yes
21992else
21993  ac_cv_lib_mw__mwvalidcheckl=no
21994fi
21995rm -f core conftest.err conftest.$ac_objext \
21996    conftest$ac_exeext conftest.$ac_ext
21997LIBS=$ac_check_lib_save_LIBS
21998fi
21999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
22000$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
22001if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
22002  LIBM=-lmw
22003fi
22004
22005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22006$as_echo_n "checking for cos in -lm... " >&6; }
22007if ${ac_cv_lib_m_cos+:} false; then :
22008  $as_echo_n "(cached) " >&6
22009else
22010  ac_check_lib_save_LIBS=$LIBS
22011LIBS="-lm  $LIBS"
22012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013/* end confdefs.h.  */
22014
22015/* Override any GCC internal prototype to avoid an error.
22016   Use char because int might match the return type of a GCC
22017   builtin and then its argument prototype would still apply.  */
22018#ifdef __cplusplus
22019extern "C"
22020#endif
22021char cos ();
22022int
22023main ()
22024{
22025return cos ();
22026  ;
22027  return 0;
22028}
22029_ACEOF
22030if ac_fn_c_try_link "$LINENO"; then :
22031  ac_cv_lib_m_cos=yes
22032else
22033  ac_cv_lib_m_cos=no
22034fi
22035rm -f core conftest.err conftest.$ac_objext \
22036    conftest$ac_exeext conftest.$ac_ext
22037LIBS=$ac_check_lib_save_LIBS
22038fi
22039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22040$as_echo "$ac_cv_lib_m_cos" >&6; }
22041if test "x$ac_cv_lib_m_cos" = xyes; then :
22042  LIBM="$LIBM -lm"
22043fi
22044
22045  ;;
22046*)
22047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22048$as_echo_n "checking for cos in -lm... " >&6; }
22049if ${ac_cv_lib_m_cos+:} false; then :
22050  $as_echo_n "(cached) " >&6
22051else
22052  ac_check_lib_save_LIBS=$LIBS
22053LIBS="-lm  $LIBS"
22054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055/* end confdefs.h.  */
22056
22057/* Override any GCC internal prototype to avoid an error.
22058   Use char because int might match the return type of a GCC
22059   builtin and then its argument prototype would still apply.  */
22060#ifdef __cplusplus
22061extern "C"
22062#endif
22063char cos ();
22064int
22065main ()
22066{
22067return cos ();
22068  ;
22069  return 0;
22070}
22071_ACEOF
22072if ac_fn_c_try_link "$LINENO"; then :
22073  ac_cv_lib_m_cos=yes
22074else
22075  ac_cv_lib_m_cos=no
22076fi
22077rm -f core conftest.err conftest.$ac_objext \
22078    conftest$ac_exeext conftest.$ac_ext
22079LIBS=$ac_check_lib_save_LIBS
22080fi
22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22082$as_echo "$ac_cv_lib_m_cos" >&6; }
22083if test "x$ac_cv_lib_m_cos" = xyes; then :
22084  LIBM=-lm
22085fi
22086
22087  ;;
22088esac
22089
22090
22091fi
22092 if test x$enable_clickhouse = xyes; then
22093  ENABLE_CLICKHOUSE_TRUE=
22094  ENABLE_CLICKHOUSE_FALSE='#'
22095else
22096  ENABLE_CLICKHOUSE_TRUE='#'
22097  ENABLE_CLICKHOUSE_FALSE=
22098fi
22099
22100
22101
22102# omhttp support
22103# Check whether --enable-omhttp was given.
22104if test "${enable_omhttp+set}" = set; then :
22105  enableval=$enable_omhttp; case "${enableval}" in
22106         yes) enable_omhttp="yes" ;;
22107          no) enable_omhttp="no" ;;
22108           *) as_fn_error $? "bad value ${enableval} for --enable-omhttp" "$LINENO" 5 ;;
22109         esac
22110else
22111  enable_omhttp=no
22112
22113fi
22114
22115if test "x$enable_omhttp" = "xyes"; then
22116
22117pkg_failed=no
22118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
22119$as_echo_n "checking for CURL... " >&6; }
22120
22121if test -n "$CURL_CFLAGS"; then
22122    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
22123 elif test -n "$PKG_CONFIG"; then
22124    if test -n "$PKG_CONFIG" && \
22125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
22126  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
22127  ac_status=$?
22128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129  test $ac_status = 0; }; then
22130  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
22131		      test "x$?" != "x0" && pkg_failed=yes
22132else
22133  pkg_failed=yes
22134fi
22135 else
22136    pkg_failed=untried
22137fi
22138if test -n "$CURL_LIBS"; then
22139    pkg_cv_CURL_LIBS="$CURL_LIBS"
22140 elif test -n "$PKG_CONFIG"; then
22141    if test -n "$PKG_CONFIG" && \
22142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
22143  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
22144  ac_status=$?
22145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22146  test $ac_status = 0; }; then
22147  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
22148		      test "x$?" != "x0" && pkg_failed=yes
22149else
22150  pkg_failed=yes
22151fi
22152 else
22153    pkg_failed=untried
22154fi
22155
22156
22157
22158if test $pkg_failed = yes; then
22159   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22160$as_echo "no" >&6; }
22161
22162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22163        _pkg_short_errors_supported=yes
22164else
22165        _pkg_short_errors_supported=no
22166fi
22167        if test $_pkg_short_errors_supported = yes; then
22168	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
22169        else
22170	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
22171        fi
22172	# Put the nasty error message in config.log where it belongs
22173	echo "$CURL_PKG_ERRORS" >&5
22174
22175	as_fn_error $? "Package requirements (libcurl) were not met:
22176
22177$CURL_PKG_ERRORS
22178
22179Consider adjusting the PKG_CONFIG_PATH environment variable if you
22180installed software in a non-standard prefix.
22181
22182Alternatively, you may set the environment variables CURL_CFLAGS
22183and CURL_LIBS to avoid the need to call pkg-config.
22184See the pkg-config man page for more details." "$LINENO" 5
22185elif test $pkg_failed = untried; then
22186     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22187$as_echo "no" >&6; }
22188	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22190as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22191is in your PATH or set the PKG_CONFIG environment variable to the full
22192path to pkg-config.
22193
22194Alternatively, you may set the environment variables CURL_CFLAGS
22195and CURL_LIBS to avoid the need to call pkg-config.
22196See the pkg-config man page for more details.
22197
22198To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22199See \`config.log' for more details" "$LINENO" 5; }
22200else
22201	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
22202	CURL_LIBS=$pkg_cv_CURL_LIBS
22203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22204$as_echo "yes" >&6; }
22205
22206fi
22207        LIBM=
22208case $host in
22209*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
22210  # These system don't have libm, or don't need it
22211  ;;
22212*-ncr-sysv4.3*)
22213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
22214$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
22215if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
22216  $as_echo_n "(cached) " >&6
22217else
22218  ac_check_lib_save_LIBS=$LIBS
22219LIBS="-lmw  $LIBS"
22220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221/* end confdefs.h.  */
22222
22223/* Override any GCC internal prototype to avoid an error.
22224   Use char because int might match the return type of a GCC
22225   builtin and then its argument prototype would still apply.  */
22226#ifdef __cplusplus
22227extern "C"
22228#endif
22229char _mwvalidcheckl ();
22230int
22231main ()
22232{
22233return _mwvalidcheckl ();
22234  ;
22235  return 0;
22236}
22237_ACEOF
22238if ac_fn_c_try_link "$LINENO"; then :
22239  ac_cv_lib_mw__mwvalidcheckl=yes
22240else
22241  ac_cv_lib_mw__mwvalidcheckl=no
22242fi
22243rm -f core conftest.err conftest.$ac_objext \
22244    conftest$ac_exeext conftest.$ac_ext
22245LIBS=$ac_check_lib_save_LIBS
22246fi
22247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
22248$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
22249if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
22250  LIBM=-lmw
22251fi
22252
22253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22254$as_echo_n "checking for cos in -lm... " >&6; }
22255if ${ac_cv_lib_m_cos+:} false; then :
22256  $as_echo_n "(cached) " >&6
22257else
22258  ac_check_lib_save_LIBS=$LIBS
22259LIBS="-lm  $LIBS"
22260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261/* end confdefs.h.  */
22262
22263/* Override any GCC internal prototype to avoid an error.
22264   Use char because int might match the return type of a GCC
22265   builtin and then its argument prototype would still apply.  */
22266#ifdef __cplusplus
22267extern "C"
22268#endif
22269char cos ();
22270int
22271main ()
22272{
22273return cos ();
22274  ;
22275  return 0;
22276}
22277_ACEOF
22278if ac_fn_c_try_link "$LINENO"; then :
22279  ac_cv_lib_m_cos=yes
22280else
22281  ac_cv_lib_m_cos=no
22282fi
22283rm -f core conftest.err conftest.$ac_objext \
22284    conftest$ac_exeext conftest.$ac_ext
22285LIBS=$ac_check_lib_save_LIBS
22286fi
22287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22288$as_echo "$ac_cv_lib_m_cos" >&6; }
22289if test "x$ac_cv_lib_m_cos" = xyes; then :
22290  LIBM="$LIBM -lm"
22291fi
22292
22293  ;;
22294*)
22295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22296$as_echo_n "checking for cos in -lm... " >&6; }
22297if ${ac_cv_lib_m_cos+:} false; then :
22298  $as_echo_n "(cached) " >&6
22299else
22300  ac_check_lib_save_LIBS=$LIBS
22301LIBS="-lm  $LIBS"
22302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303/* end confdefs.h.  */
22304
22305/* Override any GCC internal prototype to avoid an error.
22306   Use char because int might match the return type of a GCC
22307   builtin and then its argument prototype would still apply.  */
22308#ifdef __cplusplus
22309extern "C"
22310#endif
22311char cos ();
22312int
22313main ()
22314{
22315return cos ();
22316  ;
22317  return 0;
22318}
22319_ACEOF
22320if ac_fn_c_try_link "$LINENO"; then :
22321  ac_cv_lib_m_cos=yes
22322else
22323  ac_cv_lib_m_cos=no
22324fi
22325rm -f core conftest.err conftest.$ac_objext \
22326    conftest$ac_exeext conftest.$ac_ext
22327LIBS=$ac_check_lib_save_LIBS
22328fi
22329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22330$as_echo "$ac_cv_lib_m_cos" >&6; }
22331if test "x$ac_cv_lib_m_cos" = xyes; then :
22332  LIBM=-lm
22333fi
22334
22335  ;;
22336esac
22337
22338
22339fi
22340 if test x$enable_omhttp = xyes; then
22341  ENABLE_OMHTTP_TRUE=
22342  ENABLE_OMHTTP_FALSE='#'
22343else
22344  ENABLE_OMHTTP_TRUE='#'
22345  ENABLE_OMHTTP_FALSE=
22346fi
22347
22348
22349
22350# capability to enable elasticsearch testbench tests. This requries that an ES test
22351# environment is present on the local (127.0.0.1) machine.
22352# we support a "minimal" mode to take care of travis where we cannot run all tests
22353# due to runtime constraints
22354# Check whether --enable-elasticsearch_tests was given.
22355if test "${enable_elasticsearch_tests+set}" = set; then :
22356  enableval=$enable_elasticsearch_tests; case "${enableval}" in
22357         yes) enable_elasticsearch_tests="yes" ;;
22358          no) enable_elasticsearch_tests="no" ;;
22359         minimal) enable_elasticsearch_tests="minimal" ;;
22360           *) as_fn_error $? "bad value ${enableval} for --enable-elasticsearch-tests" "$LINENO" 5 ;;
22361         esac
22362else
22363  enable_elasticsearch_tests=no
22364
22365fi
22366
22367 if test x$enable_elasticsearch_tests = xyes; then
22368  ENABLE_ELASTICSEARCH_TESTS_TRUE=
22369  ENABLE_ELASTICSEARCH_TESTS_FALSE='#'
22370else
22371  ENABLE_ELASTICSEARCH_TESTS_TRUE='#'
22372  ENABLE_ELASTICSEARCH_TESTS_FALSE=
22373fi
22374
22375 if test x$enable_elasticsearch_tests = xminimal -o x$enable_elasticsearch_tests = xyes; then
22376  ENABLE_ELASTICSEARCH_TESTS_MINIMAL_TRUE=
22377  ENABLE_ELASTICSEARCH_TESTS_MINIMAL_FALSE='#'
22378else
22379  ENABLE_ELASTICSEARCH_TESTS_MINIMAL_TRUE='#'
22380  ENABLE_ELASTICSEARCH_TESTS_MINIMAL_FALSE=
22381fi
22382
22383
22384
22385# capability to enable clickhouse testbench tests. This requries that a test
22386# environment is present on the local (127.0.0.1) machine.
22387# Check whether --enable-clickhouse_tests was given.
22388if test "${enable_clickhouse_tests+set}" = set; then :
22389  enableval=$enable_clickhouse_tests; case "${enableval}" in
22390         yes) enable_clickhouse_tests="yes" ;;
22391          no) enable_clickhouse_tests="no" ;;
22392           *) as_fn_error $? "bad value ${enableval} for --enable-clickhouse-tests" "$LINENO" 5 ;;
22393         esac
22394else
22395  enable_clickhouse_tests=no
22396
22397fi
22398
22399 if test x$enable_clickhouse_tests = xyes; then
22400  ENABLE_CLICKHOUSE_TESTS_TRUE=
22401  ENABLE_CLICKHOUSE_TESTS_FALSE='#'
22402else
22403  ENABLE_CLICKHOUSE_TESTS_TRUE='#'
22404  ENABLE_CLICKHOUSE_TESTS_FALSE=
22405fi
22406
22407
22408
22409# openssl support
22410# Check whether --enable-openssl was given.
22411if test "${enable_openssl+set}" = set; then :
22412  enableval=$enable_openssl; case "${enableval}" in
22413         yes) enable_openssl="yes" ;;
22414          no) enable_openssl="no" ;;
22415           *) as_fn_error $? "bad value ${enableval} for --enable-openssl" "$LINENO" 5 ;;
22416         esac
22417else
22418  enable_openssl=no
22419
22420fi
22421
22422if test "x$enable_openssl" = "xyes"; then
22423
22424pkg_failed=no
22425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
22426$as_echo_n "checking for OPENSSL... " >&6; }
22427
22428if test -n "$OPENSSL_CFLAGS"; then
22429    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
22430 elif test -n "$PKG_CONFIG"; then
22431    if test -n "$PKG_CONFIG" && \
22432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
22433  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
22434  ac_status=$?
22435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436  test $ac_status = 0; }; then
22437  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
22438		      test "x$?" != "x0" && pkg_failed=yes
22439else
22440  pkg_failed=yes
22441fi
22442 else
22443    pkg_failed=untried
22444fi
22445if test -n "$OPENSSL_LIBS"; then
22446    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
22447 elif test -n "$PKG_CONFIG"; then
22448    if test -n "$PKG_CONFIG" && \
22449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
22450  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
22451  ac_status=$?
22452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22453  test $ac_status = 0; }; then
22454  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
22455		      test "x$?" != "x0" && pkg_failed=yes
22456else
22457  pkg_failed=yes
22458fi
22459 else
22460    pkg_failed=untried
22461fi
22462
22463
22464
22465if test $pkg_failed = yes; then
22466   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22467$as_echo "no" >&6; }
22468
22469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22470        _pkg_short_errors_supported=yes
22471else
22472        _pkg_short_errors_supported=no
22473fi
22474        if test $_pkg_short_errors_supported = yes; then
22475	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
22476        else
22477	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
22478        fi
22479	# Put the nasty error message in config.log where it belongs
22480	echo "$OPENSSL_PKG_ERRORS" >&5
22481
22482	as_fn_error $? "Package requirements (openssl) were not met:
22483
22484$OPENSSL_PKG_ERRORS
22485
22486Consider adjusting the PKG_CONFIG_PATH environment variable if you
22487installed software in a non-standard prefix.
22488
22489Alternatively, you may set the environment variables OPENSSL_CFLAGS
22490and OPENSSL_LIBS to avoid the need to call pkg-config.
22491See the pkg-config man page for more details." "$LINENO" 5
22492elif test $pkg_failed = untried; then
22493     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22494$as_echo "no" >&6; }
22495	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22497as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22498is in your PATH or set the PKG_CONFIG environment variable to the full
22499path to pkg-config.
22500
22501Alternatively, you may set the environment variables OPENSSL_CFLAGS
22502and OPENSSL_LIBS to avoid the need to call pkg-config.
22503See the pkg-config man page for more details.
22504
22505To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22506See \`config.log' for more details" "$LINENO" 5; }
22507else
22508	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
22509	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
22510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22511$as_echo "yes" >&6; }
22512
22513fi
22514
22515$as_echo "#define ENABLE_OPENSSL 1" >>confdefs.h
22516
22517	save_libs=$LIBS
22518fi
22519 if test x$enable_openssl = xyes; then
22520  ENABLE_OPENSSL_TRUE=
22521  ENABLE_OPENSSL_FALSE='#'
22522else
22523  ENABLE_OPENSSL_TRUE='#'
22524  ENABLE_OPENSSL_FALSE=
22525fi
22526
22527
22528
22529# GnuTLS support
22530# Check whether --enable-gnutls was given.
22531if test "${enable_gnutls+set}" = set; then :
22532  enableval=$enable_gnutls; case "${enableval}" in
22533         yes) enable_gnutls="yes" ;;
22534          no) enable_gnutls="no" ;;
22535           *) as_fn_error $? "bad value ${enableval} for --enable-gnutls" "$LINENO" 5 ;;
22536         esac
22537else
22538  enable_gnutls=no
22539
22540fi
22541
22542if test "x$enable_gnutls" = "xyes"; then
22543
22544pkg_failed=no
22545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
22546$as_echo_n "checking for GNUTLS... " >&6; }
22547
22548if test -n "$GNUTLS_CFLAGS"; then
22549    pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
22550 elif test -n "$PKG_CONFIG"; then
22551    if test -n "$PKG_CONFIG" && \
22552    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.0\""; } >&5
22553  ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.0") 2>&5
22554  ac_status=$?
22555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22556  test $ac_status = 0; }; then
22557  pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.4.0" 2>/dev/null`
22558		      test "x$?" != "x0" && pkg_failed=yes
22559else
22560  pkg_failed=yes
22561fi
22562 else
22563    pkg_failed=untried
22564fi
22565if test -n "$GNUTLS_LIBS"; then
22566    pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
22567 elif test -n "$PKG_CONFIG"; then
22568    if test -n "$PKG_CONFIG" && \
22569    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.0\""; } >&5
22570  ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.0") 2>&5
22571  ac_status=$?
22572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22573  test $ac_status = 0; }; then
22574  pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.4.0" 2>/dev/null`
22575		      test "x$?" != "x0" && pkg_failed=yes
22576else
22577  pkg_failed=yes
22578fi
22579 else
22580    pkg_failed=untried
22581fi
22582
22583
22584
22585if test $pkg_failed = yes; then
22586   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22587$as_echo "no" >&6; }
22588
22589if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22590        _pkg_short_errors_supported=yes
22591else
22592        _pkg_short_errors_supported=no
22593fi
22594        if test $_pkg_short_errors_supported = yes; then
22595	        GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 1.4.0" 2>&1`
22596        else
22597	        GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 1.4.0" 2>&1`
22598        fi
22599	# Put the nasty error message in config.log where it belongs
22600	echo "$GNUTLS_PKG_ERRORS" >&5
22601
22602	as_fn_error $? "Package requirements (gnutls >= 1.4.0) were not met:
22603
22604$GNUTLS_PKG_ERRORS
22605
22606Consider adjusting the PKG_CONFIG_PATH environment variable if you
22607installed software in a non-standard prefix.
22608
22609Alternatively, you may set the environment variables GNUTLS_CFLAGS
22610and GNUTLS_LIBS to avoid the need to call pkg-config.
22611See the pkg-config man page for more details." "$LINENO" 5
22612elif test $pkg_failed = untried; then
22613     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22614$as_echo "no" >&6; }
22615	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22617as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22618is in your PATH or set the PKG_CONFIG environment variable to the full
22619path to pkg-config.
22620
22621Alternatively, you may set the environment variables GNUTLS_CFLAGS
22622and GNUTLS_LIBS to avoid the need to call pkg-config.
22623See the pkg-config man page for more details.
22624
22625To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22626See \`config.log' for more details" "$LINENO" 5; }
22627else
22628	GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
22629	GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
22630        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22631$as_echo "yes" >&6; }
22632
22633fi
22634
22635$as_echo "#define ENABLE_GNUTLS 1" >>confdefs.h
22636
22637	save_libs=$LIBS
22638	LIBS="$LIBS $GNUTLS_LIBS"
22639	for ac_func in gnutls_certificate_set_retrieve_function
22640do :
22641  ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_retrieve_function" "ac_cv_func_gnutls_certificate_set_retrieve_function"
22642if test "x$ac_cv_func_gnutls_certificate_set_retrieve_function" = xyes; then :
22643  cat >>confdefs.h <<_ACEOF
22644#define HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION 1
22645_ACEOF
22646
22647fi
22648done
22649
22650	for ac_func in gnutls_certificate_type_set_priority
22651do :
22652  ac_fn_c_check_func "$LINENO" "gnutls_certificate_type_set_priority" "ac_cv_func_gnutls_certificate_type_set_priority"
22653if test "x$ac_cv_func_gnutls_certificate_type_set_priority" = xyes; then :
22654  cat >>confdefs.h <<_ACEOF
22655#define HAVE_GNUTLS_CERTIFICATE_TYPE_SET_PRIORITY 1
22656_ACEOF
22657
22658fi
22659done
22660
22661	LIBS=$save_libs
22662fi
22663
22664 if test x$enable_gnutls = xyes; then
22665  ENABLE_GNUTLS_TRUE=
22666  ENABLE_GNUTLS_FALSE='#'
22667else
22668  ENABLE_GNUTLS_TRUE='#'
22669  ENABLE_GNUTLS_FALSE=
22670fi
22671
22672
22673# Check whether --enable-gnutls-tests was given.
22674if test "${enable_gnutls_tests+set}" = set; then :
22675  enableval=$enable_gnutls_tests; case "${enableval}" in
22676         yes) enable_gnutls_tests="yes" ;;
22677          no) enable_gnutls_tests="no" ;;
22678           *) as_fn_error $? "bad value ${enableval} for --enable-gnutls-tests" "$LINENO" 5 ;;
22679         esac
22680else
22681  if [ "$enable_gnutls" == "yes" ]; then
22682		enable_gnutls_tests=yes
22683	else
22684		enable_gnutls_tests=no
22685	fi
22686
22687fi
22688
22689if  [ "$enable_gnutls_tests" == "yes" ] && [ "$enable_gnutls" != "yes" ]; then
22690		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnutls-tests can not be enabled without gnutls support. Disabling gnutls tests..." >&5
22691$as_echo "$as_me: WARNING: gnutls-tests can not be enabled without gnutls support. Disabling gnutls tests..." >&2;}
22692		enable_gnutls_tests="no"
22693fi
22694
22695 if test x$enable_gnutls_tests = xyes; then
22696  ENABLE_GNUTLS_TESTS_TRUE=
22697  ENABLE_GNUTLS_TESTS_FALSE='#'
22698else
22699  ENABLE_GNUTLS_TESTS_TRUE='#'
22700  ENABLE_GNUTLS_TESTS_FALSE=
22701fi
22702
22703
22704
22705# libgcrypt support
22706# Check whether --enable-libgcrypt was given.
22707if test "${enable_libgcrypt+set}" = set; then :
22708  enableval=$enable_libgcrypt; case "${enableval}" in
22709         yes) enable_libgcrypt="yes" ;;
22710          no) enable_libgcrypt="no" ;;
22711           *) as_fn_error $? "bad value ${enableval} for --enable-libgcrypt" "$LINENO" 5 ;;
22712         esac
22713else
22714  enable_libgcrypt=yes
22715
22716fi
22717
22718if test "x$enable_libgcrypt" = "xyes"; then
22719	# Extract the first word of "libgcrypt-config", so it can be a program name with args.
22720set dummy libgcrypt-config; ac_word=$2
22721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22722$as_echo_n "checking for $ac_word... " >&6; }
22723if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
22724  $as_echo_n "(cached) " >&6
22725else
22726  case $LIBGCRYPT_CONFIG in
22727  [\\/]* | ?:[\\/]*)
22728  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
22729  ;;
22730  *)
22731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22732for as_dir in $PATH
22733do
22734  IFS=$as_save_IFS
22735  test -z "$as_dir" && as_dir=.
22736    for ac_exec_ext in '' $ac_executable_extensions; do
22737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22738    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22740    break 2
22741  fi
22742done
22743  done
22744IFS=$as_save_IFS
22745
22746  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
22747  ;;
22748esac
22749fi
22750LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
22751if test -n "$LIBGCRYPT_CONFIG"; then
22752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
22753$as_echo "$LIBGCRYPT_CONFIG" >&6; }
22754else
22755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22756$as_echo "no" >&6; }
22757fi
22758
22759
22760        if test "x${LIBGCRYPT_CONFIG}" = "xno"; then
22761           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22763as_fn_error $? "libgcrypt-config not found in PATH
22764See \`config.log' for more details" "$LINENO" 5; }
22765        fi
22766        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_cipher_open in -lgcrypt" >&5
22767$as_echo_n "checking for gcry_cipher_open in -lgcrypt... " >&6; }
22768if ${ac_cv_lib_gcrypt_gcry_cipher_open+:} false; then :
22769  $as_echo_n "(cached) " >&6
22770else
22771  ac_check_lib_save_LIBS=$LIBS
22772LIBS="-lgcrypt `${LIBGCRYPT_CONFIG} --libs --cflags`
22773        	 $LIBS"
22774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775/* end confdefs.h.  */
22776
22777/* Override any GCC internal prototype to avoid an error.
22778   Use char because int might match the return type of a GCC
22779   builtin and then its argument prototype would still apply.  */
22780#ifdef __cplusplus
22781extern "C"
22782#endif
22783char gcry_cipher_open ();
22784int
22785main ()
22786{
22787return gcry_cipher_open ();
22788  ;
22789  return 0;
22790}
22791_ACEOF
22792if ac_fn_c_try_link "$LINENO"; then :
22793  ac_cv_lib_gcrypt_gcry_cipher_open=yes
22794else
22795  ac_cv_lib_gcrypt_gcry_cipher_open=no
22796fi
22797rm -f core conftest.err conftest.$ac_objext \
22798    conftest$ac_exeext conftest.$ac_ext
22799LIBS=$ac_check_lib_save_LIBS
22800fi
22801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_cipher_open" >&5
22802$as_echo "$ac_cv_lib_gcrypt_gcry_cipher_open" >&6; }
22803if test "x$ac_cv_lib_gcrypt_gcry_cipher_open" = xyes; then :
22804  LIBGCRYPT_CFLAGS="`${LIBGCRYPT_CONFIG} --cflags`"
22805        	LIBGCRYPT_LIBS="`${LIBGCRYPT_CONFIG} --libs`"
22806
22807else
22808  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22810as_fn_error $? "libgcrypt is missing
22811See \`config.log' for more details" "$LINENO" 5; }
22812fi
22813
22814
22815$as_echo "#define ENABLE_LIBGCRYPT 1" >>confdefs.h
22816
22817fi
22818 if test x$enable_libgcrypt = xyes; then
22819  ENABLE_LIBGCRYPT_TRUE=
22820  ENABLE_LIBGCRYPT_FALSE='#'
22821else
22822  ENABLE_LIBGCRYPT_TRUE='#'
22823  ENABLE_LIBGCRYPT_FALSE=
22824fi
22825
22826
22827
22828
22829
22830# support for building the rsyslogd runtime
22831# Check whether --enable-rsyslogrt was given.
22832if test "${enable_rsyslogrt+set}" = set; then :
22833  enableval=$enable_rsyslogrt; case "${enableval}" in
22834         yes) enable_rsyslogrt="yes" ;;
22835          no) enable_rsyslogrt="no" ;;
22836           *) as_fn_error $? "bad value ${enableval} for --enable-rsyslogrt" "$LINENO" 5 ;;
22837         esac
22838else
22839  enable_rsyslogrt=yes
22840
22841fi
22842
22843if test "x$enable_rsyslogrt" = "xyes"; then
22844  RSRT_CFLAGS1="-I\$(top_srcdir)/runtime -I\$(top_srcdir) -I\$(top_srcdir)/grammar"
22845  RSRT_LIBS1="\$(top_builddir)/runtime/librsyslog.la"
22846fi
22847 if test x$enable_rsyslogrt = xyes; then
22848  ENABLE_RSYSLOGRT_TRUE=
22849  ENABLE_RSYSLOGRT_FALSE='#'
22850else
22851  ENABLE_RSYSLOGRT_TRUE='#'
22852  ENABLE_RSYSLOGRT_FALSE=
22853fi
22854
22855RSRT_CFLAGS="\$(RSRT_CFLAGS1) \$(LIBESTR_CFLAGS) \$(LIBFASTJSON_CFLAGS) \$(LIBSYSTEMD_CFLAGS)"
22856if test "$GCC" = "yes"; then
22857  RSRT_CFLAGS="$RSRT_CFLAGS -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute"
22858  if $CC -Werror=implicit-function-declaration -x c -c /dev/null -o /dev/null 2>/dev/null; then
22859    RSRT_CFLAGS="$RSRT_CFLAGS -Werror=implicit-function-declaration"
22860  elif $CC -Werror-implicit-function-declaration -x c -c /dev/null -o /dev/null 2>/dev/null; then
22861    RSRT_CFLAGS="$RSRT_CFLAGS -Werror-implicit-function-declaration"
22862  fi
22863
22864  if test "x$enable_debug_symbols" = "xyes"; then
22865    RSRT_CFLAGS="$RSRT_CFLAGS -g"
22866  fi
22867fi
22868RSRT_CFLAGS="$RSRT_CFLAGS $WARN_CFLAGS"
22869RSRT_LIBS="\$(RSRT_LIBS1) \$(LIBESTR_LIBS) \$(LIBFASTJSON_LIBS) \$(LIBSYSTEMD_LIBS)"
22870
22871
22872
22873
22874
22875
22876# support for NOT building rsyslogd (useful for source-based packaging systems)
22877# Check whether --enable-rsyslogd was given.
22878if test "${enable_rsyslogd+set}" = set; then :
22879  enableval=$enable_rsyslogd; case "${enableval}" in
22880         yes) enable_rsyslogd="yes" ;;
22881          no) enable_rsyslogd="no" ;;
22882           *) as_fn_error $? "bad value ${enableval} for --enable-rsyslogd" "$LINENO" 5 ;;
22883         esac
22884else
22885  enable_rsyslogd=yes
22886
22887fi
22888
22889 if test x$enable_rsyslogd = xyes; then
22890  ENABLE_RSYSLOGD_TRUE=
22891  ENABLE_RSYSLOGD_FALSE='#'
22892else
22893  ENABLE_RSYSLOGD_TRUE='#'
22894  ENABLE_RSYSLOGD_FALSE=
22895fi
22896
22897
22898
22899# capability to enable an extended testbench. By default, this is off. The reason
22900# for this switch is that some test simply take too long to execute them on a regular
22901# basis. So we enable to skip them, while the majority of tests can still be used. The
22902# idea is that at least "make distcheck" executes the extended testbench, and also
22903# developers should explicitely enable it after important changes. -- rgerhards, 2010-04-12
22904# Check whether --enable-extended_tests was given.
22905if test "${enable_extended_tests+set}" = set; then :
22906  enableval=$enable_extended_tests; case "${enableval}" in
22907         yes) enable_extended_tests="yes" ;;
22908          no) enable_extended_tests="no" ;;
22909           *) as_fn_error $? "bad value ${enableval} for --enable-extended-tests" "$LINENO" 5 ;;
22910         esac
22911else
22912  enable_extended_tests=no
22913
22914fi
22915
22916 if test x$enable_extended_tests = xyes; then
22917  ENABLE_EXTENDED_TESTS_TRUE=
22918  ENABLE_EXTENDED_TESTS_FALSE='#'
22919else
22920  ENABLE_EXTENDED_TESTS_TRUE='#'
22921  ENABLE_EXTENDED_TESTS_FALSE=
22922fi
22923
22924
22925
22926# capability to enable MySQL testbench tests. This requries that a Syslog database
22927# with the default schema has been created on the local (127.0.0.1) MySQL server and
22928# a user "rsyslog" with password "testbench" exists, is able to login with default
22929# parameters and has sufficient (read: all) privileges on that database.
22930# rgerhards, 2011-03-09
22931# Check whether --enable-mysql_tests was given.
22932if test "${enable_mysql_tests+set}" = set; then :
22933  enableval=$enable_mysql_tests; case "${enableval}" in
22934         yes) enable_mysql_tests="yes" ;;
22935          no) enable_mysql_tests="no" ;;
22936           *) as_fn_error $? "bad value ${enableval} for --enable-mysql-tests" "$LINENO" 5 ;;
22937         esac
22938else
22939  enable_mysql_tests=no
22940
22941fi
22942
22943 if test x$enable_mysql_tests = xyes; then
22944  ENABLE_MYSQL_TESTS_TRUE=
22945  ENABLE_MYSQL_TESTS_FALSE='#'
22946else
22947  ENABLE_MYSQL_TESTS_TRUE='#'
22948  ENABLE_MYSQL_TESTS_FALSE=
22949fi
22950
22951
22952
22953# capability to enable PostgreSQL testbench tests. This requries that a Syslog database
22954# with the default schema (see plugins/ompgsql/createDB.sql) has been created on the
22955# local (127.0.0.1) PostgreSQL server and a user "rsyslog" with password "testbench"
22956# exists, is able to login with default parameters and has sufficient (read: all)
22957# privileges on that database
22958# Check whether --enable-pgsql_tests was given.
22959if test "${enable_pgsql_tests+set}" = set; then :
22960  enableval=$enable_pgsql_tests; case "${enableval}" in
22961         yes) enable_pgsql_tests="yes" ;;
22962          no) enable_pgsql_tests="no" ;;
22963           *) as_fn_error $? "bad value ${enableval} for --enable-pgsql-tests" "$LINENO" 5 ;;
22964         esac
22965else
22966  enable_pgsql_tests=no
22967
22968fi
22969
22970 if test x$enable_pgsql_tests = xyes; then
22971  ENABLE_PGSQL_TESTS_TRUE=
22972  ENABLE_PGSQL_TESTS_FALSE='#'
22973else
22974  ENABLE_PGSQL_TESTS_TRUE='#'
22975  ENABLE_PGSQL_TESTS_FALSE=
22976fi
22977
22978
22979
22980# Mail support (so far we do not need a library, but we need to turn this on and off)
22981# Check whether --enable-mail was given.
22982if test "${enable_mail+set}" = set; then :
22983  enableval=$enable_mail; case "${enableval}" in
22984         yes) enable_mail="yes" ;;
22985          no) enable_mail="no" ;;
22986           *) as_fn_error $? "bad value ${enableval} for --enable-mail" "$LINENO" 5 ;;
22987         esac
22988else
22989  enable_mail=no
22990
22991fi
22992
22993 if test x$enable_mail = xyes; then
22994  ENABLE_MAIL_TRUE=
22995  ENABLE_MAIL_FALSE='#'
22996else
22997  ENABLE_MAIL_TRUE='#'
22998  ENABLE_MAIL_FALSE=
22999fi
23000
23001
23002
23003# Check whether --enable-fmhttp was given.
23004if test "${enable_fmhttp+set}" = set; then :
23005  enableval=$enable_fmhttp; case "${enableval}" in
23006         yes) enable_fmhttp="yes" ;;
23007          no) enable_fmhttp="no" ;;
23008           *) as_fn_error $? "bad value ${enableval} for --enable-fmhttp" "$LINENO" 5 ;;
23009         esac
23010else
23011  enable_fmhttp=yes
23012
23013fi
23014
23015if test "$enable_fmhttp" = "yes"; then
23016
23017pkg_failed=no
23018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
23019$as_echo_n "checking for CURL... " >&6; }
23020
23021if test -n "$CURL_CFLAGS"; then
23022    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
23023 elif test -n "$PKG_CONFIG"; then
23024    if test -n "$PKG_CONFIG" && \
23025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
23026  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
23027  ac_status=$?
23028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23029  test $ac_status = 0; }; then
23030  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
23031		      test "x$?" != "x0" && pkg_failed=yes
23032else
23033  pkg_failed=yes
23034fi
23035 else
23036    pkg_failed=untried
23037fi
23038if test -n "$CURL_LIBS"; then
23039    pkg_cv_CURL_LIBS="$CURL_LIBS"
23040 elif test -n "$PKG_CONFIG"; then
23041    if test -n "$PKG_CONFIG" && \
23042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
23043  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
23044  ac_status=$?
23045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046  test $ac_status = 0; }; then
23047  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
23048		      test "x$?" != "x0" && pkg_failed=yes
23049else
23050  pkg_failed=yes
23051fi
23052 else
23053    pkg_failed=untried
23054fi
23055
23056
23057
23058if test $pkg_failed = yes; then
23059   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23060$as_echo "no" >&6; }
23061
23062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23063        _pkg_short_errors_supported=yes
23064else
23065        _pkg_short_errors_supported=no
23066fi
23067        if test $_pkg_short_errors_supported = yes; then
23068	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
23069        else
23070	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
23071        fi
23072	# Put the nasty error message in config.log where it belongs
23073	echo "$CURL_PKG_ERRORS" >&5
23074
23075	as_fn_error $? "Package requirements (libcurl) were not met:
23076
23077$CURL_PKG_ERRORS
23078
23079Consider adjusting the PKG_CONFIG_PATH environment variable if you
23080installed software in a non-standard prefix.
23081
23082Alternatively, you may set the environment variables CURL_CFLAGS
23083and CURL_LIBS to avoid the need to call pkg-config.
23084See the pkg-config man page for more details." "$LINENO" 5
23085elif test $pkg_failed = untried; then
23086     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23087$as_echo "no" >&6; }
23088	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23090as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23091is in your PATH or set the PKG_CONFIG environment variable to the full
23092path to pkg-config.
23093
23094Alternatively, you may set the environment variables CURL_CFLAGS
23095and CURL_LIBS to avoid the need to call pkg-config.
23096See the pkg-config man page for more details.
23097
23098To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23099See \`config.log' for more details" "$LINENO" 5; }
23100else
23101	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
23102	CURL_LIBS=$pkg_cv_CURL_LIBS
23103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23104$as_echo "yes" >&6; }
23105
23106fi
23107fi
23108 if test x$enable_fmhttp = xyes; then
23109  ENABLE_FMHTTP_TRUE=
23110  ENABLE_FMHTTP_FALSE='#'
23111else
23112  ENABLE_FMHTTP_TRUE='#'
23113  ENABLE_FMHTTP_FALSE=
23114fi
23115
23116
23117
23118# imdiag support
23119# This is a core testbench tool. You need to enable it if you want to
23120# use not only a small subset of the testbench.
23121# Check whether --enable-imdiag was given.
23122if test "${enable_imdiag+set}" = set; then :
23123  enableval=$enable_imdiag; case "${enableval}" in
23124         yes) enable_imdiag="yes" ;;
23125          no) enable_imdiag="no" ;;
23126           *) as_fn_error $? "bad value ${enableval} for --enable-imdiag" "$LINENO" 5 ;;
23127         esac
23128else
23129  enable_imdiag=no
23130
23131fi
23132
23133if test "x$enable_imdiag" = "xyes"; then
23134
23135$as_echo "#define ENABLE_IMDIAG 1" >>confdefs.h
23136
23137fi
23138 if test x$enable_imdiag = xyes; then
23139  ENABLE_IMDIAG_TRUE=
23140  ENABLE_IMDIAG_FALSE='#'
23141else
23142  ENABLE_IMDIAG_TRUE='#'
23143  ENABLE_IMDIAG_FALSE=
23144fi
23145
23146
23147
23148# mmnormalize
23149# Check whether --enable-mmnormalize was given.
23150if test "${enable_mmnormalize+set}" = set; then :
23151  enableval=$enable_mmnormalize; case "${enableval}" in
23152         yes) enable_mmnormalize="yes" ;;
23153          no) enable_mmnormalize="no" ;;
23154           *) as_fn_error $? "bad value ${enableval} for --enable-mmnormalize" "$LINENO" 5 ;;
23155         esac
23156else
23157  enable_mmnormalize=no
23158
23159fi
23160
23161if test "x$enable_mmnormalize" = "xyes"; then
23162
23163pkg_failed=no
23164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLOGNORM" >&5
23165$as_echo_n "checking for LIBLOGNORM... " >&6; }
23166
23167if test -n "$LIBLOGNORM_CFLAGS"; then
23168    pkg_cv_LIBLOGNORM_CFLAGS="$LIBLOGNORM_CFLAGS"
23169 elif test -n "$PKG_CONFIG"; then
23170    if test -n "$PKG_CONFIG" && \
23171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lognorm >= 2.0.3\""; } >&5
23172  ($PKG_CONFIG --exists --print-errors "lognorm >= 2.0.3") 2>&5
23173  ac_status=$?
23174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23175  test $ac_status = 0; }; then
23176  pkg_cv_LIBLOGNORM_CFLAGS=`$PKG_CONFIG --cflags "lognorm >= 2.0.3" 2>/dev/null`
23177		      test "x$?" != "x0" && pkg_failed=yes
23178else
23179  pkg_failed=yes
23180fi
23181 else
23182    pkg_failed=untried
23183fi
23184if test -n "$LIBLOGNORM_LIBS"; then
23185    pkg_cv_LIBLOGNORM_LIBS="$LIBLOGNORM_LIBS"
23186 elif test -n "$PKG_CONFIG"; then
23187    if test -n "$PKG_CONFIG" && \
23188    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lognorm >= 2.0.3\""; } >&5
23189  ($PKG_CONFIG --exists --print-errors "lognorm >= 2.0.3") 2>&5
23190  ac_status=$?
23191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192  test $ac_status = 0; }; then
23193  pkg_cv_LIBLOGNORM_LIBS=`$PKG_CONFIG --libs "lognorm >= 2.0.3" 2>/dev/null`
23194		      test "x$?" != "x0" && pkg_failed=yes
23195else
23196  pkg_failed=yes
23197fi
23198 else
23199    pkg_failed=untried
23200fi
23201
23202
23203
23204if test $pkg_failed = yes; then
23205   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206$as_echo "no" >&6; }
23207
23208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23209        _pkg_short_errors_supported=yes
23210else
23211        _pkg_short_errors_supported=no
23212fi
23213        if test $_pkg_short_errors_supported = yes; then
23214	        LIBLOGNORM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lognorm >= 2.0.3" 2>&1`
23215        else
23216	        LIBLOGNORM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lognorm >= 2.0.3" 2>&1`
23217        fi
23218	# Put the nasty error message in config.log where it belongs
23219	echo "$LIBLOGNORM_PKG_ERRORS" >&5
23220
23221	as_fn_error $? "Package requirements (lognorm >= 2.0.3) were not met:
23222
23223$LIBLOGNORM_PKG_ERRORS
23224
23225Consider adjusting the PKG_CONFIG_PATH environment variable if you
23226installed software in a non-standard prefix.
23227
23228Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
23229and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
23230See the pkg-config man page for more details." "$LINENO" 5
23231elif test $pkg_failed = untried; then
23232     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23233$as_echo "no" >&6; }
23234	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23236as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23237is in your PATH or set the PKG_CONFIG environment variable to the full
23238path to pkg-config.
23239
23240Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
23241and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
23242See the pkg-config man page for more details.
23243
23244To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23245See \`config.log' for more details" "$LINENO" 5; }
23246else
23247	LIBLOGNORM_CFLAGS=$pkg_cv_LIBLOGNORM_CFLAGS
23248	LIBLOGNORM_LIBS=$pkg_cv_LIBLOGNORM_LIBS
23249        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23250$as_echo "yes" >&6; }
23251
23252fi
23253
23254	save_CFLAGS="$CFLAGS"
23255	save_LIBS="$LIBS"
23256
23257	CFLAGS="$CFLAGS $LIBLOGNORM_CFLAGS"
23258	LIBS="$LIBS $LIBLOGNORM_LIBS"
23259
23260
23261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOGNORM_REGEX_SUPPORTED defined" >&5
23262$as_echo_n "checking for LOGNORM_REGEX_SUPPORTED defined... " >&6; }
23263if ${ac_cv_defined_LOGNORM_REGEX_SUPPORTED+:} false; then :
23264  $as_echo_n "(cached) " >&6
23265else
23266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23267/* end confdefs.h.  */
23268#include <lognorm-features.h>
23269int
23270main ()
23271{
23272
23273  #ifdef LOGNORM_REGEX_SUPPORTED
23274  int ok;
23275  #else
23276  choke me
23277  #endif
23278
23279  ;
23280  return 0;
23281}
23282_ACEOF
23283if ac_fn_c_try_compile "$LINENO"; then :
23284  ac_cv_defined_LOGNORM_REGEX_SUPPORTED=yes
23285else
23286  ac_cv_defined_LOGNORM_REGEX_SUPPORTED=no
23287fi
23288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23289fi
23290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_LOGNORM_REGEX_SUPPORTED" >&5
23291$as_echo "$ac_cv_defined_LOGNORM_REGEX_SUPPORTED" >&6; }
23292if test $ac_cv_defined_LOGNORM_REGEX_SUPPORTED != "no"; then :
23293  lognorm_regex_supported="yes"
23294fi
23295
23296	CFLAGS="$save_CFLAGS"
23297	LIBS="$save_LIBS"
23298fi
23299 if test x$lognorm_regex_supported = xyes; then
23300  LOGNORM_REGEX_SUPPORTED_TRUE=
23301  LOGNORM_REGEX_SUPPORTED_FALSE='#'
23302else
23303  LOGNORM_REGEX_SUPPORTED_TRUE='#'
23304  LOGNORM_REGEX_SUPPORTED_FALSE=
23305fi
23306
23307 if test x$enable_mmnormalize = xyes; then
23308  ENABLE_MMNORMALIZE_TRUE=
23309  ENABLE_MMNORMALIZE_FALSE='#'
23310else
23311  ENABLE_MMNORMALIZE_TRUE='#'
23312  ENABLE_MMNORMALIZE_FALSE=
23313fi
23314
23315
23316# mmnjsonparse
23317# Check whether --enable-mmjsonparse was given.
23318if test "${enable_mmjsonparse+set}" = set; then :
23319  enableval=$enable_mmjsonparse; case "${enableval}" in
23320         yes) enable_mmjsonparse="yes" ;;
23321          no) enable_mmjsonparse="no" ;;
23322           *) as_fn_error $? "bad value ${enableval} for --enable-mmjsonparse" "$LINENO" 5 ;;
23323         esac
23324else
23325  enable_mmjsonparse=no
23326
23327fi
23328
23329 if test x$enable_mmjsonparse = xyes; then
23330  ENABLE_MMJSONPARSE_TRUE=
23331  ENABLE_MMJSONPARSE_FALSE='#'
23332else
23333  ENABLE_MMJSONPARSE_TRUE='#'
23334  ENABLE_MMJSONPARSE_FALSE=
23335fi
23336
23337
23338# mmgrok
23339# Check whether --enable-mmgrok was given.
23340if test "${enable_mmgrok+set}" = set; then :
23341  enableval=$enable_mmgrok; case "${enableval}" in
23342         yes) enable_mmgrok="yes" ;;
23343          no) enable_mmgrok="no" ;;
23344           *) as_fn_error $? "bad value ${enableval} for --enable-mmgrok" "$LINENO" 5 ;;
23345        esac
23346else
23347  enable_mmgrok=no
23348
23349fi
23350
23351if test "x$enable_mmgrok" = "xyes"; then
23352        for ac_header in grok.h
23353do :
23354  ac_fn_c_check_header_mongrel "$LINENO" "grok.h" "ac_cv_header_grok_h" "$ac_includes_default"
23355if test "x$ac_cv_header_grok_h" = xyes; then :
23356  cat >>confdefs.h <<_ACEOF
23357#define HAVE_GROK_H 1
23358_ACEOF
23359
23360fi
23361
23362done
23363
23364	GLIB_CFLAGS="$(pkg-config --cflags glib-2.0)"
23365	GLIB_LIBS="$(pkg-config --libs glib-2.0)"
23366fi
23367 if test x$enable_mmgrok = xyes; then
23368  ENABLE_MMGROK_TRUE=
23369  ENABLE_MMGROK_FALSE='#'
23370else
23371  ENABLE_MMGROK_TRUE='#'
23372  ENABLE_MMGROK_FALSE=
23373fi
23374
23375
23376
23377
23378# mmaudit
23379# Check whether --enable-mmaudit was given.
23380if test "${enable_mmaudit+set}" = set; then :
23381  enableval=$enable_mmaudit; case "${enableval}" in
23382         yes) enable_mmaudit="yes" ;;
23383          no) enable_mmaudit="no" ;;
23384           *) as_fn_error $? "bad value ${enableval} for --enable-mmaudit" "$LINENO" 5 ;;
23385         esac
23386else
23387  enable_mmaudit=no
23388
23389fi
23390
23391 if test x$enable_mmaudit = xyes; then
23392  ENABLE_MMAUDIT_TRUE=
23393  ENABLE_MMAUDIT_FALSE='#'
23394else
23395  ENABLE_MMAUDIT_TRUE='#'
23396  ENABLE_MMAUDIT_FALSE=
23397fi
23398
23399
23400
23401# mmanon
23402# Check whether --enable-mmanon was given.
23403if test "${enable_mmanon+set}" = set; then :
23404  enableval=$enable_mmanon; case "${enableval}" in
23405         yes) enable_mmanon="yes" ;;
23406          no) enable_mmanon="no" ;;
23407           *) as_fn_error $? "bad value ${enableval} for --enable-mmanon" "$LINENO" 5 ;;
23408         esac
23409else
23410  enable_mmanon=no
23411
23412fi
23413
23414 if test x$enable_mmanon = xyes; then
23415  ENABLE_MMANON_TRUE=
23416  ENABLE_MMANON_FALSE='#'
23417else
23418  ENABLE_MMANON_TRUE='#'
23419  ENABLE_MMANON_FALSE=
23420fi
23421
23422
23423
23424# mmrm1stspace
23425# Check whether --enable-mmrm1stspace was given.
23426if test "${enable_mmrm1stspace+set}" = set; then :
23427  enableval=$enable_mmrm1stspace; case "${enableval}" in
23428         yes) enable_mmrm1stspace="yes" ;;
23429          no) enable_mmrm1stspace="no" ;;
23430           *) as_fn_error $? "bad value ${enableval} for --enable-mmrm1stspace" "$LINENO" 5 ;;
23431         esac
23432else
23433  enable_mmrm1stspace=no
23434
23435fi
23436
23437 if test x$enable_mmrm1stspace = xyes; then
23438  ENABLE_MMRM1STSPACE_TRUE=
23439  ENABLE_MMRM1STSPACE_FALSE='#'
23440else
23441  ENABLE_MMRM1STSPACE_TRUE='#'
23442  ENABLE_MMRM1STSPACE_FALSE=
23443fi
23444
23445
23446
23447# mmutf8fix
23448# Check whether --enable-mmutf8fix was given.
23449if test "${enable_mmutf8fix+set}" = set; then :
23450  enableval=$enable_mmutf8fix; case "${enableval}" in
23451         yes) enable_mmutf8fix="yes" ;;
23452          no) enable_mmutf8fix="no" ;;
23453           *) as_fn_error $? "bad value ${enableval} for --enable-mmutf8fix" "$LINENO" 5 ;;
23454         esac
23455else
23456  enable_mmutf8fix=no
23457
23458fi
23459
23460 if test x$enable_mmutf8fix = xyes; then
23461  ENABLE_MMUTF8FIX_TRUE=
23462  ENABLE_MMUTF8FIX_FALSE='#'
23463else
23464  ENABLE_MMUTF8FIX_TRUE='#'
23465  ENABLE_MMUTF8FIX_FALSE=
23466fi
23467
23468
23469
23470# mmcount
23471# Check whether --enable-mmcount was given.
23472if test "${enable_mmcount+set}" = set; then :
23473  enableval=$enable_mmcount; case "${enableval}" in
23474         yes) enable_mmcount="yes" ;;
23475          no) enable_mmcount="no" ;;
23476           *) as_fn_error $? "bad value ${enableval} for --enable-mmcount" "$LINENO" 5 ;;
23477         esac
23478else
23479  enable_mmcount=no
23480
23481fi
23482
23483 if test x$enable_mmcount = xyes; then
23484  ENABLE_MMCOUNT_TRUE=
23485  ENABLE_MMCOUNT_FALSE='#'
23486else
23487  ENABLE_MMCOUNT_TRUE='#'
23488  ENABLE_MMCOUNT_FALSE=
23489fi
23490
23491
23492
23493# mmsequence
23494# Check whether --enable-mmsequence was given.
23495if test "${enable_mmsequence+set}" = set; then :
23496  enableval=$enable_mmsequence; case "${enableval}" in
23497         yes) enable_mmsequence="yes" ;;
23498          no) enable_mmsequence="no" ;;
23499           *) as_fn_error $? "bad value ${enableval} for --enable-mmsequence" "$LINENO" 5 ;;
23500         esac
23501else
23502  enable_mmsequence=no
23503
23504fi
23505
23506 if test x$enable_mmsequence = xyes; then
23507  ENABLE_MMSEQUENCE_TRUE=
23508  ENABLE_MMSEQUENCE_FALSE='#'
23509else
23510  ENABLE_MMSEQUENCE_TRUE='#'
23511  ENABLE_MMSEQUENCE_FALSE=
23512fi
23513
23514
23515
23516
23517# mmdblookup
23518# Check whether --enable-mmdblookup was given.
23519if test "${enable_mmdblookup+set}" = set; then :
23520  enableval=$enable_mmdblookup; case "${enableval}" in
23521         yes) enable_mmdblookup="yes" ;;
23522          no) enable_mmdblookup="no" ;;
23523         optional) enable_mmdblookup="optional" ;;
23524           *) as_fn_error $? "bad value ${enableval} for --enable-mmdblookup" "$LINENO" 5 ;;
23525         esac
23526else
23527  enable_mmdblookup=no
23528
23529fi
23530
23531 if test x$enable_mmdblookup = xyes -o x$enable_mmdblookup = xoptional; then
23532  ENABLE_MMDBLOOKUP_TRUE=
23533  ENABLE_MMDBLOOKUP_FALSE='#'
23534else
23535  ENABLE_MMDBLOOKUP_TRUE='#'
23536  ENABLE_MMDBLOOKUP_FALSE=
23537fi
23538
23539mmdblookup_use_dummy="no"
23540if test x$enable_mmdblookup = xoptional -o x$enable_mmdblookup = xyes; then
23541        #PKG_CHECK_MODULES(LIBMAXMINDDB, libmaxminddb) -- does not work - later?
23542        for ac_header in maxminddb.h
23543do :
23544  ac_fn_c_check_header_mongrel "$LINENO" "maxminddb.h" "ac_cv_header_maxminddb_h" "$ac_includes_default"
23545if test "x$ac_cv_header_maxminddb_h" = xyes; then :
23546  cat >>confdefs.h <<_ACEOF
23547#define HAVE_MAXMINDDB_H 1
23548_ACEOF
23549
23550
23551else
23552
23553		if test x$enable_mmdblookup = xyes; then :
23554  as_fn_error $? "libmaxminddb library for mmdblookup could not be found" "$LINENO" 5
23555
23556fi
23557		mmdblookup_use_dummy="yes"
23558
23559$as_echo "#define ENABLE_MMBDLOOKUP_DUMMY 1" >>confdefs.h
23560
23561
23562fi
23563
23564done
23565
23566fi
23567 if test x$mmdblookup_use_dummy = xyes; then
23568  MMDBLOOKUP_USE_DUMMY_TRUE=
23569  MMDBLOOKUP_USE_DUMMY_FALSE='#'
23570else
23571  MMDBLOOKUP_USE_DUMMY_TRUE='#'
23572  MMDBLOOKUP_USE_DUMMY_FALSE=
23573fi
23574
23575
23576
23577# mmdarwin
23578# Check whether --enable-mmdarwin was given.
23579if test "${enable_mmdarwin+set}" = set; then :
23580  enableval=$enable_mmdarwin; case "${enableval}" in
23581         yes) enable_mmdarwin="yes" ;;
23582          no) enable_mmdarwin="no" ;;
23583           *) as_fn_error $? "bad value ${enableval} for --enable-mmdarwin" "$LINENO" 5 ;;
23584         esac
23585else
23586  enable_mmdarwin=no
23587
23588fi
23589
23590if test "x$enable_mmdarwin"; then
23591        for ac_header in protocol.h
23592do :
23593  ac_fn_c_check_header_mongrel "$LINENO" "protocol.h" "ac_cv_header_protocol_h" "$ac_includes_default"
23594if test "x$ac_cv_header_protocol_h" = xyes; then :
23595  cat >>confdefs.h <<_ACEOF
23596#define HAVE_PROTOCOL_H 1
23597_ACEOF
23598
23599fi
23600
23601done
23602
23603fi
23604 if test x$enable_mmdarwin = xyes; then
23605  ENABLE_MMDARWIN_TRUE=
23606  ENABLE_MMDARWIN_FALSE='#'
23607else
23608  ENABLE_MMDARWIN_TRUE='#'
23609  ENABLE_MMDARWIN_FALSE=
23610fi
23611
23612
23613
23614
23615
23616# mmfields
23617# Check whether --enable-mmfields was given.
23618if test "${enable_mmfields+set}" = set; then :
23619  enableval=$enable_mmfields; case "${enableval}" in
23620         yes) enable_mmfields="yes" ;;
23621          no) enable_mmfields="no" ;;
23622           *) as_fn_error $? "bad value ${enableval} for --enable-mmfields" "$LINENO" 5 ;;
23623         esac
23624else
23625  enable_mmfields=no
23626
23627fi
23628
23629 if test x$enable_mmfields = xyes; then
23630  ENABLE_MMFIELDS_TRUE=
23631  ENABLE_MMFIELDS_FALSE='#'
23632else
23633  ENABLE_MMFIELDS_TRUE='#'
23634  ENABLE_MMFIELDS_FALSE=
23635fi
23636
23637
23638# mmpstrucdata
23639# Check whether --enable-mmpstrucdata was given.
23640if test "${enable_mmpstrucdata+set}" = set; then :
23641  enableval=$enable_mmpstrucdata; case "${enableval}" in
23642         yes) enable_mmpstrucdata="yes" ;;
23643          no) enable_mmpstrucdata="no" ;;
23644           *) as_fn_error $? "bad value ${enableval} for --enable-mmpstrucdata" "$LINENO" 5 ;;
23645         esac
23646else
23647  enable_mmpstrucdata=no
23648
23649fi
23650
23651 if test x$enable_mmpstrucdata = xyes; then
23652  ENABLE_MMPSTRUCDATA_TRUE=
23653  ENABLE_MMPSTRUCDATA_FALSE='#'
23654else
23655  ENABLE_MMPSTRUCDATA_TRUE='#'
23656  ENABLE_MMPSTRUCDATA_FALSE=
23657fi
23658
23659
23660
23661# mmrfc5424addhmac
23662# Check whether --enable-mmrfc5424addhmac was given.
23663if test "${enable_mmrfc5424addhmac+set}" = set; then :
23664  enableval=$enable_mmrfc5424addhmac; case "${enableval}" in
23665         yes) enable_mmrfc5424addhmac="yes" ;;
23666          no) enable_mmrfc5424addhmac="no" ;;
23667           *) as_fn_error $? "bad value ${enableval} for --enable-mmrfc5424addhmac" "$LINENO" 5 ;;
23668         esac
23669else
23670  enable_mmrfc5424addhmac=no
23671
23672fi
23673
23674if test "x$enable_mmrfc5424addhmac" = "xyes"; then
23675
23676pkg_failed=no
23677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
23678$as_echo_n "checking for OPENSSL... " >&6; }
23679
23680if test -n "$OPENSSL_CFLAGS"; then
23681    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
23682 elif test -n "$PKG_CONFIG"; then
23683    if test -n "$PKG_CONFIG" && \
23684    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
23685  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
23686  ac_status=$?
23687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23688  test $ac_status = 0; }; then
23689  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
23690		      test "x$?" != "x0" && pkg_failed=yes
23691else
23692  pkg_failed=yes
23693fi
23694 else
23695    pkg_failed=untried
23696fi
23697if test -n "$OPENSSL_LIBS"; then
23698    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
23699 elif test -n "$PKG_CONFIG"; then
23700    if test -n "$PKG_CONFIG" && \
23701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
23702  ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
23703  ac_status=$?
23704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705  test $ac_status = 0; }; then
23706  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
23707		      test "x$?" != "x0" && pkg_failed=yes
23708else
23709  pkg_failed=yes
23710fi
23711 else
23712    pkg_failed=untried
23713fi
23714
23715
23716
23717if test $pkg_failed = yes; then
23718   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23719$as_echo "no" >&6; }
23720
23721if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23722        _pkg_short_errors_supported=yes
23723else
23724        _pkg_short_errors_supported=no
23725fi
23726        if test $_pkg_short_errors_supported = yes; then
23727	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
23728        else
23729	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
23730        fi
23731	# Put the nasty error message in config.log where it belongs
23732	echo "$OPENSSL_PKG_ERRORS" >&5
23733
23734	as_fn_error $? "Package requirements (openssl >= 0.9.7) were not met:
23735
23736$OPENSSL_PKG_ERRORS
23737
23738Consider adjusting the PKG_CONFIG_PATH environment variable if you
23739installed software in a non-standard prefix.
23740
23741Alternatively, you may set the environment variables OPENSSL_CFLAGS
23742and OPENSSL_LIBS to avoid the need to call pkg-config.
23743See the pkg-config man page for more details." "$LINENO" 5
23744elif test $pkg_failed = untried; then
23745     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746$as_echo "no" >&6; }
23747	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23749as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23750is in your PATH or set the PKG_CONFIG environment variable to the full
23751path to pkg-config.
23752
23753Alternatively, you may set the environment variables OPENSSL_CFLAGS
23754and OPENSSL_LIBS to avoid the need to call pkg-config.
23755See the pkg-config man page for more details.
23756
23757To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23758See \`config.log' for more details" "$LINENO" 5; }
23759else
23760	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
23761	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
23762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23763$as_echo "yes" >&6; }
23764
23765fi
23766#AC_CHECK_LIB([crypto],[CRYPTO_new_ex_data], [], [AC_MSG_ERROR([OpenSSL libraries required])])
23767#AC_CHECK_LIB([ssl],[SSL_library_init], [], [AC_MSG_ERROR([OpenSSL libraries required])])
23768#AC_CHECK_HEADERS([openssl/crypto.h openssl/x509.h openssl/pem.h openssl/ssl.h openssl/err.h],[],[AC_MSG_ERROR([OpenSSL headers required])])
23769fi
23770 if test x$enable_mmrfc5424addhmac = xyes; then
23771  ENABLE_MMRFC5424ADDHMAC_TRUE=
23772  ENABLE_MMRFC5424ADDHMAC_FALSE='#'
23773else
23774  ENABLE_MMRFC5424ADDHMAC_TRUE='#'
23775  ENABLE_MMRFC5424ADDHMAC_FALSE=
23776fi
23777
23778
23779
23780# experimental omfile-hardened module
23781# Check whether --enable-omfile-hardened was given.
23782if test "${enable_omfile_hardened+set}" = set; then :
23783  enableval=$enable_omfile_hardened; case "${enableval}" in
23784         yes) enable_omfile_hardened="yes" ;;
23785          no) enable_omfile_hardened="no" ;;
23786           *) as_fn_error $? "bad value ${enableval} for --enable-omfile-hardened" "$LINENO" 5 ;;
23787         esac
23788else
23789  enable_omfile_hardened=no
23790
23791fi
23792
23793 if test x$enable_omfile_hardened = xyes; then
23794  ENABLE_OMFILE_HARDENED_TRUE=
23795  ENABLE_OMFILE_HARDENED_FALSE='#'
23796else
23797  ENABLE_OMFILE_HARDENED_TRUE='#'
23798  ENABLE_OMFILE_HARDENED_FALSE=
23799fi
23800
23801
23802
23803# RELP support
23804# Check whether --enable-relp was given.
23805if test "${enable_relp+set}" = set; then :
23806  enableval=$enable_relp; case "${enableval}" in
23807         yes) enable_relp="yes" ;;
23808          no) enable_relp="no" ;;
23809           *) as_fn_error $? "bad value ${enableval} for --enable-relp" "$LINENO" 5 ;;
23810         esac
23811else
23812  enable_relp=no
23813
23814fi
23815
23816if test "x$enable_relp" = "xyes"; then
23817
23818pkg_failed=no
23819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RELP" >&5
23820$as_echo_n "checking for RELP... " >&6; }
23821
23822if test -n "$RELP_CFLAGS"; then
23823    pkg_cv_RELP_CFLAGS="$RELP_CFLAGS"
23824 elif test -n "$PKG_CONFIG"; then
23825    if test -n "$PKG_CONFIG" && \
23826    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"relp >= 1.2.14\""; } >&5
23827  ($PKG_CONFIG --exists --print-errors "relp >= 1.2.14") 2>&5
23828  ac_status=$?
23829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23830  test $ac_status = 0; }; then
23831  pkg_cv_RELP_CFLAGS=`$PKG_CONFIG --cflags "relp >= 1.2.14" 2>/dev/null`
23832		      test "x$?" != "x0" && pkg_failed=yes
23833else
23834  pkg_failed=yes
23835fi
23836 else
23837    pkg_failed=untried
23838fi
23839if test -n "$RELP_LIBS"; then
23840    pkg_cv_RELP_LIBS="$RELP_LIBS"
23841 elif test -n "$PKG_CONFIG"; then
23842    if test -n "$PKG_CONFIG" && \
23843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"relp >= 1.2.14\""; } >&5
23844  ($PKG_CONFIG --exists --print-errors "relp >= 1.2.14") 2>&5
23845  ac_status=$?
23846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23847  test $ac_status = 0; }; then
23848  pkg_cv_RELP_LIBS=`$PKG_CONFIG --libs "relp >= 1.2.14" 2>/dev/null`
23849		      test "x$?" != "x0" && pkg_failed=yes
23850else
23851  pkg_failed=yes
23852fi
23853 else
23854    pkg_failed=untried
23855fi
23856
23857
23858
23859if test $pkg_failed = yes; then
23860   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23861$as_echo "no" >&6; }
23862
23863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23864        _pkg_short_errors_supported=yes
23865else
23866        _pkg_short_errors_supported=no
23867fi
23868        if test $_pkg_short_errors_supported = yes; then
23869	        RELP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "relp >= 1.2.14" 2>&1`
23870        else
23871	        RELP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "relp >= 1.2.14" 2>&1`
23872        fi
23873	# Put the nasty error message in config.log where it belongs
23874	echo "$RELP_PKG_ERRORS" >&5
23875
23876	as_fn_error $? "Package requirements (relp >= 1.2.14) were not met:
23877
23878$RELP_PKG_ERRORS
23879
23880Consider adjusting the PKG_CONFIG_PATH environment variable if you
23881installed software in a non-standard prefix.
23882
23883Alternatively, you may set the environment variables RELP_CFLAGS
23884and RELP_LIBS to avoid the need to call pkg-config.
23885See the pkg-config man page for more details." "$LINENO" 5
23886elif test $pkg_failed = untried; then
23887     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23888$as_echo "no" >&6; }
23889	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23891as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23892is in your PATH or set the PKG_CONFIG environment variable to the full
23893path to pkg-config.
23894
23895Alternatively, you may set the environment variables RELP_CFLAGS
23896and RELP_LIBS to avoid the need to call pkg-config.
23897See the pkg-config man page for more details.
23898
23899To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23900See \`config.log' for more details" "$LINENO" 5; }
23901else
23902	RELP_CFLAGS=$pkg_cv_RELP_CFLAGS
23903	RELP_LIBS=$pkg_cv_RELP_LIBS
23904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23905$as_echo "yes" >&6; }
23906
23907fi
23908
23909$as_echo "#define ENABLE_RELP 1" >>confdefs.h
23910
23911        save_CFLAGS="$CFLAGS"
23912        save_LIBS="$LIBS"
23913
23914        CFLAGS="$CFLAGS $RELP_CFLAGS"
23915        LIBS="$LIBS $RELP_LIBS"
23916	# Export RELP Version for testbench tools
23917	RELP_VERSION="$(pkg-config --modversion relp)"
23918
23919cat >>confdefs.h <<_ACEOF
23920#define RELP_VERSION "${RELP_VERSION}"
23921_ACEOF
23922
23923
23924        ac_fn_c_check_func "$LINENO" "relpSrvSetOversizeMode" "ac_cv_func_relpSrvSetOversizeMode"
23925if test "x$ac_cv_func_relpSrvSetOversizeMode" = xyes; then :
23926
23927$as_echo "#define HAVE_RELPSRVSETOVERSIZEMODE 1" >>confdefs.h
23928
23929fi
23930
23931        ac_fn_c_check_func "$LINENO" "relpSrvSetLstnAddr" "ac_cv_func_relpSrvSetLstnAddr"
23932if test "x$ac_cv_func_relpSrvSetLstnAddr" = xyes; then :
23933
23934$as_echo "#define HAVE_RELPSRVSETLSTNADDR 1" >>confdefs.h
23935
23936fi
23937
23938        ac_fn_c_check_func "$LINENO" "relpEngineSetTLSLibByName" "ac_cv_func_relpEngineSetTLSLibByName"
23939if test "x$ac_cv_func_relpEngineSetTLSLibByName" = xyes; then :
23940
23941$as_echo "#define HAVE_RELPENGINESETTLSLIBBYNAME 1" >>confdefs.h
23942
23943fi
23944
23945        ac_fn_c_check_func "$LINENO" "relpSrvSetTlsConfigCmd" "ac_cv_func_relpSrvSetTlsConfigCmd"
23946if test "x$ac_cv_func_relpSrvSetTlsConfigCmd" = xyes; then :
23947
23948$as_echo "#define HAVE_RELPENGINESETTLSCFGCMD 1" >>confdefs.h
23949
23950fi
23951
23952        ac_fn_c_check_func "$LINENO" "relpSrvSetTlsConfigCmd" "ac_cv_func_relpSrvSetTlsConfigCmd"
23953if test "x$ac_cv_func_relpSrvSetTlsConfigCmd" = xyes; then :
23954  HAVE_RELPENGINESETTLSCFGCMD=1
23955fi
23956
23957
23958        CFLAGS="$save_CFLAGS"
23959        LIBS="$save_LIBS"
23960fi
23961 if test x$enable_relp = xyes; then
23962  ENABLE_RELP_TRUE=
23963  ENABLE_RELP_FALSE='#'
23964else
23965  ENABLE_RELP_TRUE='#'
23966  ENABLE_RELP_FALSE=
23967fi
23968
23969 if test "x$HAVE_RELPENGINESETTLSCFGCMD" = x1; then
23970  USE_RELPENGINESETTLSCFGCMD_TRUE=
23971  USE_RELPENGINESETTLSCFGCMD_FALSE='#'
23972else
23973  USE_RELPENGINESETTLSCFGCMD_TRUE='#'
23974  USE_RELPENGINESETTLSCFGCMD_FALSE=
23975fi
23976
23977
23978# RELP default port
23979# Check whether --enable-omrelp-default-port was given.
23980if test "${enable_omrelp_default_port+set}" = set; then :
23981  enableval=$enable_omrelp_default_port;
23982cat >>confdefs.h <<_ACEOF
23983#define RELP_DFLT_PT "${enableval}"
23984_ACEOF
23985
23986else
23987
23988$as_echo "#define RELP_DFLT_PT \"514\"" >>confdefs.h
23989
23990
23991fi
23992
23993
23994
23995
23996# GuardTime KSI LOGSIG 12 support
23997# Check whether --enable-ksi-ls12 was given.
23998if test "${enable_ksi_ls12+set}" = set; then :
23999  enableval=$enable_ksi_ls12; case "${enableval}" in
24000         yes) enable_ksi_ls12="yes" ;;
24001          no) enable_ksi_ls12="no" ;;
24002           *) as_fn_error $? "bad value ${enableval} for --enable-ksi-ls12" "$LINENO" 5 ;;
24003         esac
24004else
24005  enable_ksi_ls12=no
24006
24007fi
24008
24009if test "x$enable_ksi_ls12" = "xyes"; then
24010
24011pkg_failed=no
24012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GT_KSI_LS12" >&5
24013$as_echo_n "checking for GT_KSI_LS12... " >&6; }
24014
24015if test -n "$GT_KSI_LS12_CFLAGS"; then
24016    pkg_cv_GT_KSI_LS12_CFLAGS="$GT_KSI_LS12_CFLAGS"
24017 elif test -n "$PKG_CONFIG"; then
24018    if test -n "$PKG_CONFIG" && \
24019    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libksi >= 3.19.0\""; } >&5
24020  ($PKG_CONFIG --exists --print-errors "libksi >= 3.19.0") 2>&5
24021  ac_status=$?
24022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023  test $ac_status = 0; }; then
24024  pkg_cv_GT_KSI_LS12_CFLAGS=`$PKG_CONFIG --cflags "libksi >= 3.19.0" 2>/dev/null`
24025		      test "x$?" != "x0" && pkg_failed=yes
24026else
24027  pkg_failed=yes
24028fi
24029 else
24030    pkg_failed=untried
24031fi
24032if test -n "$GT_KSI_LS12_LIBS"; then
24033    pkg_cv_GT_KSI_LS12_LIBS="$GT_KSI_LS12_LIBS"
24034 elif test -n "$PKG_CONFIG"; then
24035    if test -n "$PKG_CONFIG" && \
24036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libksi >= 3.19.0\""; } >&5
24037  ($PKG_CONFIG --exists --print-errors "libksi >= 3.19.0") 2>&5
24038  ac_status=$?
24039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24040  test $ac_status = 0; }; then
24041  pkg_cv_GT_KSI_LS12_LIBS=`$PKG_CONFIG --libs "libksi >= 3.19.0" 2>/dev/null`
24042		      test "x$?" != "x0" && pkg_failed=yes
24043else
24044  pkg_failed=yes
24045fi
24046 else
24047    pkg_failed=untried
24048fi
24049
24050
24051
24052if test $pkg_failed = yes; then
24053   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054$as_echo "no" >&6; }
24055
24056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24057        _pkg_short_errors_supported=yes
24058else
24059        _pkg_short_errors_supported=no
24060fi
24061        if test $_pkg_short_errors_supported = yes; then
24062	        GT_KSI_LS12_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libksi >= 3.19.0" 2>&1`
24063        else
24064	        GT_KSI_LS12_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libksi >= 3.19.0" 2>&1`
24065        fi
24066	# Put the nasty error message in config.log where it belongs
24067	echo "$GT_KSI_LS12_PKG_ERRORS" >&5
24068
24069	as_fn_error $? "Package requirements (libksi >= 3.19.0) were not met:
24070
24071$GT_KSI_LS12_PKG_ERRORS
24072
24073Consider adjusting the PKG_CONFIG_PATH environment variable if you
24074installed software in a non-standard prefix.
24075
24076Alternatively, you may set the environment variables GT_KSI_LS12_CFLAGS
24077and GT_KSI_LS12_LIBS to avoid the need to call pkg-config.
24078See the pkg-config man page for more details." "$LINENO" 5
24079elif test $pkg_failed = untried; then
24080     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24081$as_echo "no" >&6; }
24082	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24084as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24085is in your PATH or set the PKG_CONFIG environment variable to the full
24086path to pkg-config.
24087
24088Alternatively, you may set the environment variables GT_KSI_LS12_CFLAGS
24089and GT_KSI_LS12_LIBS to avoid the need to call pkg-config.
24090See the pkg-config man page for more details.
24091
24092To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24093See \`config.log' for more details" "$LINENO" 5; }
24094else
24095	GT_KSI_LS12_CFLAGS=$pkg_cv_GT_KSI_LS12_CFLAGS
24096	GT_KSI_LS12_LIBS=$pkg_cv_GT_KSI_LS12_LIBS
24097        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24098$as_echo "yes" >&6; }
24099
24100fi
24101fi
24102 if test x$enable_ksi_ls12 = xyes; then
24103  ENABLE_KSI_LS12_TRUE=
24104  ENABLE_KSI_LS12_FALSE='#'
24105else
24106  ENABLE_KSI_LS12_TRUE='#'
24107  ENABLE_KSI_LS12_FALSE=
24108fi
24109
24110
24111# liblogging-stdlog support
24112# we use liblogging-stdlog inside the testbench, which is why we need to check for it in any case
24113
24114pkg_failed=no
24115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLOGGING_STDLOG" >&5
24116$as_echo_n "checking for LIBLOGGING_STDLOG... " >&6; }
24117
24118if test -n "$LIBLOGGING_STDLOG_CFLAGS"; then
24119    pkg_cv_LIBLOGGING_STDLOG_CFLAGS="$LIBLOGGING_STDLOG_CFLAGS"
24120 elif test -n "$PKG_CONFIG"; then
24121    if test -n "$PKG_CONFIG" && \
24122    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblogging-stdlog >= 1.0.3\""; } >&5
24123  ($PKG_CONFIG --exists --print-errors "liblogging-stdlog >= 1.0.3") 2>&5
24124  ac_status=$?
24125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126  test $ac_status = 0; }; then
24127  pkg_cv_LIBLOGGING_STDLOG_CFLAGS=`$PKG_CONFIG --cflags "liblogging-stdlog >= 1.0.3" 2>/dev/null`
24128		      test "x$?" != "x0" && pkg_failed=yes
24129else
24130  pkg_failed=yes
24131fi
24132 else
24133    pkg_failed=untried
24134fi
24135if test -n "$LIBLOGGING_STDLOG_LIBS"; then
24136    pkg_cv_LIBLOGGING_STDLOG_LIBS="$LIBLOGGING_STDLOG_LIBS"
24137 elif test -n "$PKG_CONFIG"; then
24138    if test -n "$PKG_CONFIG" && \
24139    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblogging-stdlog >= 1.0.3\""; } >&5
24140  ($PKG_CONFIG --exists --print-errors "liblogging-stdlog >= 1.0.3") 2>&5
24141  ac_status=$?
24142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143  test $ac_status = 0; }; then
24144  pkg_cv_LIBLOGGING_STDLOG_LIBS=`$PKG_CONFIG --libs "liblogging-stdlog >= 1.0.3" 2>/dev/null`
24145		      test "x$?" != "x0" && pkg_failed=yes
24146else
24147  pkg_failed=yes
24148fi
24149 else
24150    pkg_failed=untried
24151fi
24152
24153
24154
24155if test $pkg_failed = yes; then
24156   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24157$as_echo "no" >&6; }
24158
24159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24160        _pkg_short_errors_supported=yes
24161else
24162        _pkg_short_errors_supported=no
24163fi
24164        if test $_pkg_short_errors_supported = yes; then
24165	        LIBLOGGING_STDLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblogging-stdlog >= 1.0.3" 2>&1`
24166        else
24167	        LIBLOGGING_STDLOG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblogging-stdlog >= 1.0.3" 2>&1`
24168        fi
24169	# Put the nasty error message in config.log where it belongs
24170	echo "$LIBLOGGING_STDLOG_PKG_ERRORS" >&5
24171
24172	{ $as_echo "$as_me:${as_lineno-$LINENO}: liblogging-stdlog not found, parts of the testbench will not run" >&5
24173$as_echo "$as_me: liblogging-stdlog not found, parts of the testbench will not run" >&6;}
24174
24175elif test $pkg_failed = untried; then
24176     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24177$as_echo "no" >&6; }
24178	{ $as_echo "$as_me:${as_lineno-$LINENO}: liblogging-stdlog not found, parts of the testbench will not run" >&5
24179$as_echo "$as_me: liblogging-stdlog not found, parts of the testbench will not run" >&6;}
24180
24181else
24182	LIBLOGGING_STDLOG_CFLAGS=$pkg_cv_LIBLOGGING_STDLOG_CFLAGS
24183	LIBLOGGING_STDLOG_LIBS=$pkg_cv_LIBLOGGING_STDLOG_LIBS
24184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24185$as_echo "yes" >&6; }
24186
24187$as_echo "#define HAVE_LIBLOGGING_STDLOG 1" >>confdefs.h
24188
24189        found_liblogging_stdlog="yes"
24190fi
24191
24192# Check whether --enable-liblogging-stdlog was given.
24193if test "${enable_liblogging_stdlog+set}" = set; then :
24194  enableval=$enable_liblogging_stdlog; case "${enableval}" in
24195         yes) enable_liblogging_stdlog="yes" ;;
24196          no) enable_liblogging_stdlog="no" ;;
24197           *) as_fn_error $? "bad value ${enableval} for --enable-liblogging-stdlog" "$LINENO" 5 ;;
24198         esac
24199else
24200  enable_liblogging_stdlog=no
24201
24202fi
24203
24204if test "x$enable_liblogging_stdlog" = "xyes" -a "x$found_liblogging_stdlog" != "xyes"; then
24205	as_fn_error $? "--enable-liblogging-stdlog set but liblogging-stdlog was not found" "$LINENO" 5
24206fi
24207 if test "x$enable_liblogging_stdlog" = "xyes"; then
24208  ENABLE_LIBLOGGING_STDLOG_TRUE=
24209  ENABLE_LIBLOGGING_STDLOG_FALSE='#'
24210else
24211  ENABLE_LIBLOGGING_STDLOG_TRUE='#'
24212  ENABLE_LIBLOGGING_STDLOG_FALSE=
24213fi
24214
24215
24216# RFC 3195 support
24217# Check whether --enable-rfc3195 was given.
24218if test "${enable_rfc3195+set}" = set; then :
24219  enableval=$enable_rfc3195; case "${enableval}" in
24220         yes) enable_rfc3195="yes" ;;
24221          no) enable_rfc3195="no" ;;
24222           *) as_fn_error $? "bad value ${enableval} for --enable-rfc3195" "$LINENO" 5 ;;
24223         esac
24224else
24225  enable_rfc3195=no
24226
24227fi
24228
24229if test "x$enable_rfc3195" = "xyes"; then
24230
24231pkg_failed=no
24232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLOGGING" >&5
24233$as_echo_n "checking for LIBLOGGING... " >&6; }
24234
24235if test -n "$LIBLOGGING_CFLAGS"; then
24236    pkg_cv_LIBLOGGING_CFLAGS="$LIBLOGGING_CFLAGS"
24237 elif test -n "$PKG_CONFIG"; then
24238    if test -n "$PKG_CONFIG" && \
24239    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblogging-rfc3195 >= 1.0.1\""; } >&5
24240  ($PKG_CONFIG --exists --print-errors "liblogging-rfc3195 >= 1.0.1") 2>&5
24241  ac_status=$?
24242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243  test $ac_status = 0; }; then
24244  pkg_cv_LIBLOGGING_CFLAGS=`$PKG_CONFIG --cflags "liblogging-rfc3195 >= 1.0.1" 2>/dev/null`
24245		      test "x$?" != "x0" && pkg_failed=yes
24246else
24247  pkg_failed=yes
24248fi
24249 else
24250    pkg_failed=untried
24251fi
24252if test -n "$LIBLOGGING_LIBS"; then
24253    pkg_cv_LIBLOGGING_LIBS="$LIBLOGGING_LIBS"
24254 elif test -n "$PKG_CONFIG"; then
24255    if test -n "$PKG_CONFIG" && \
24256    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblogging-rfc3195 >= 1.0.1\""; } >&5
24257  ($PKG_CONFIG --exists --print-errors "liblogging-rfc3195 >= 1.0.1") 2>&5
24258  ac_status=$?
24259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260  test $ac_status = 0; }; then
24261  pkg_cv_LIBLOGGING_LIBS=`$PKG_CONFIG --libs "liblogging-rfc3195 >= 1.0.1" 2>/dev/null`
24262		      test "x$?" != "x0" && pkg_failed=yes
24263else
24264  pkg_failed=yes
24265fi
24266 else
24267    pkg_failed=untried
24268fi
24269
24270
24271
24272if test $pkg_failed = yes; then
24273   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24274$as_echo "no" >&6; }
24275
24276if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24277        _pkg_short_errors_supported=yes
24278else
24279        _pkg_short_errors_supported=no
24280fi
24281        if test $_pkg_short_errors_supported = yes; then
24282	        LIBLOGGING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblogging-rfc3195 >= 1.0.1" 2>&1`
24283        else
24284	        LIBLOGGING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblogging-rfc3195 >= 1.0.1" 2>&1`
24285        fi
24286	# Put the nasty error message in config.log where it belongs
24287	echo "$LIBLOGGING_PKG_ERRORS" >&5
24288
24289	as_fn_error $? "Package requirements (liblogging-rfc3195 >= 1.0.1) were not met:
24290
24291$LIBLOGGING_PKG_ERRORS
24292
24293Consider adjusting the PKG_CONFIG_PATH environment variable if you
24294installed software in a non-standard prefix.
24295
24296Alternatively, you may set the environment variables LIBLOGGING_CFLAGS
24297and LIBLOGGING_LIBS to avoid the need to call pkg-config.
24298See the pkg-config man page for more details." "$LINENO" 5
24299elif test $pkg_failed = untried; then
24300     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24301$as_echo "no" >&6; }
24302	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24304as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24305is in your PATH or set the PKG_CONFIG environment variable to the full
24306path to pkg-config.
24307
24308Alternatively, you may set the environment variables LIBLOGGING_CFLAGS
24309and LIBLOGGING_LIBS to avoid the need to call pkg-config.
24310See the pkg-config man page for more details.
24311
24312To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24313See \`config.log' for more details" "$LINENO" 5; }
24314else
24315	LIBLOGGING_CFLAGS=$pkg_cv_LIBLOGGING_CFLAGS
24316	LIBLOGGING_LIBS=$pkg_cv_LIBLOGGING_LIBS
24317        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24318$as_echo "yes" >&6; }
24319
24320fi
24321fi
24322 if test x$enable_rfc3195 = xyes; then
24323  ENABLE_RFC3195_TRUE=
24324  ENABLE_RFC3195_FALSE='#'
24325else
24326  ENABLE_RFC3195_TRUE='#'
24327  ENABLE_RFC3195_FALSE=
24328fi
24329
24330
24331
24332# enable/disable the testbench (e.g. because some important parts
24333# are missing)
24334# Check whether --enable-testbench was given.
24335if test "${enable_testbench+set}" = set; then :
24336  enableval=$enable_testbench; case "${enableval}" in
24337         yes) enable_testbench="yes" ;;
24338          no) enable_testbench="no" ;;
24339           *) as_fn_error $? "bad value ${enableval} for --enable-testbench" "$LINENO" 5 ;;
24340         esac
24341else
24342  enable_testbench=no
24343
24344fi
24345
24346
24347# Add a capability to turn off libfaketime tests. Unfortunately, libfaketime
24348# becomes more and more problematic in newer versions and causes aborts
24349# on some platforms. This provides the ability to turn it off. In the
24350# longer term, we should consider writing our own replacement.
24351# Check whether --enable-libfaketime was given.
24352if test "${enable_libfaketime+set}" = set; then :
24353  enableval=$enable_libfaketime; case "${enableval}" in
24354         yes) enable_libfaketime="yes" ;;
24355          no) enable_libfaketime="no" ;;
24356           *) as_fn_error $? "bad value ${enableval} for --enable-libfaketime" "$LINENO" 5 ;;
24357         esac
24358else
24359  enable_libfaketime=no
24360
24361fi
24362
24363 if test "x${enable_libfaketime}" = "xyes"; then
24364  ENABLE_LIBFAKETIME_TRUE=
24365  ENABLE_LIBFAKETIME_FALSE='#'
24366else
24367  ENABLE_LIBFAKETIME_TRUE='#'
24368  ENABLE_LIBFAKETIME_FALSE=
24369fi
24370
24371
24372# this permits to control the "default tests" in testbench runs. These
24373# are those tests that do not need a special configure option. There are
24374# some situations where we really want to turn them of so that we can
24375# run tests only for a specific component (e.g. ElasticSearch).
24376# This also enables us to do some parallel testing even while the
24377# testbench is not yet able to support make -j check
24378# Check whether --enable-default-tests was given.
24379if test "${enable_default_tests+set}" = set; then :
24380  enableval=$enable_default_tests; case "${enableval}" in
24381         yes) enable_default_tests="yes" ;;
24382          no) enable_default_tests="no" ;;
24383           *) as_fn_error $? "bad value ${enableval} for --enable-default-tests" "$LINENO" 5 ;;
24384         esac
24385else
24386  enable_default_tests=yes
24387
24388fi
24389
24390 if test "x${enable_default_tests}" = "xyes"; then
24391  ENABLE_DEFAULT_TESTS_TRUE=
24392  ENABLE_DEFAULT_TESTS_FALSE='#'
24393else
24394  ENABLE_DEFAULT_TESTS_TRUE='#'
24395  ENABLE_DEFAULT_TESTS_FALSE=
24396fi
24397
24398
24399# Extract the first word of "ip", so it can be a program name with args.
24400set dummy ip; ac_word=$2
24401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24402$as_echo_n "checking for $ac_word... " >&6; }
24403if ${ac_cv_prog_IP+:} false; then :
24404  $as_echo_n "(cached) " >&6
24405else
24406  if test -n "$IP"; then
24407  ac_cv_prog_IP="$IP" # Let the user override the test.
24408else
24409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24410for as_dir in $PATH
24411do
24412  IFS=$as_save_IFS
24413  test -z "$as_dir" && as_dir=.
24414    for ac_exec_ext in '' $ac_executable_extensions; do
24415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24416    ac_cv_prog_IP="yes"
24417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24418    break 2
24419  fi
24420done
24421  done
24422IFS=$as_save_IFS
24423
24424  test -z "$ac_cv_prog_IP" && ac_cv_prog_IP="no"
24425fi
24426fi
24427IP=$ac_cv_prog_IP
24428if test -n "$IP"; then
24429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IP" >&5
24430$as_echo "$IP" >&6; }
24431else
24432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24433$as_echo "no" >&6; }
24434fi
24435
24436
24437if test "x${IP}" = "xno"; then
24438	{ $as_echo "$as_me:${as_lineno-$LINENO}: Will not check network namespace functionality as 'ip' (part of iproute2) is not available." >&5
24439$as_echo "$as_me: Will not check network namespace functionality as 'ip' (part of iproute2) is not available." >&6;}
24440fi
24441 if test "x${IP}" = "xyes"; then
24442  ENABLE_IP_TRUE=
24443  ENABLE_IP_FALSE='#'
24444else
24445  ENABLE_IP_TRUE='#'
24446  ENABLE_IP_FALSE=
24447fi
24448
24449
24450
24451# valgrind-testbench
24452
24453# Check whether --with-valgrind_testbench was given.
24454if test "${with_valgrind_testbench+set}" = set; then :
24455  withval=$with_valgrind_testbench;
24456fi
24457
24458
24459if test "x$with_valgrind_testbench" != "xno"; then
24460        # Extract the first word of "valgrind", so it can be a program name with args.
24461set dummy valgrind; ac_word=$2
24462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24463$as_echo_n "checking for $ac_word... " >&6; }
24464if ${ac_cv_prog_VALGRIND+:} false; then :
24465  $as_echo_n "(cached) " >&6
24466else
24467  if test -n "$VALGRIND"; then
24468  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
24469else
24470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24471for as_dir in $PATH
24472do
24473  IFS=$as_save_IFS
24474  test -z "$as_dir" && as_dir=.
24475    for ac_exec_ext in '' $ac_executable_extensions; do
24476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24477    ac_cv_prog_VALGRIND="valgrind"
24478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24479    break 2
24480  fi
24481done
24482  done
24483IFS=$as_save_IFS
24484
24485  test -z "$ac_cv_prog_VALGRIND" && ac_cv_prog_VALGRIND="no"
24486fi
24487fi
24488VALGRIND=$ac_cv_prog_VALGRIND
24489if test -n "$VALGRIND"; then
24490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
24491$as_echo "$VALGRIND" >&6; }
24492else
24493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494$as_echo "no" >&6; }
24495fi
24496
24497
24498
24499        if test "x$enable_testbench" = "xyes" && test "x$VALGRIND" = "xno"; then
24500                if test "x$with_valgrind_testbench" = "xyes"; then
24501                        as_fn_error $? "valgrind is missing but forced with --with-valgrind-testbench. Either install valgrind or remove the option!" "$LINENO" 5
24502                else
24503                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: valgrind is missing -- testbench won't use valgrind!" >&5
24504$as_echo "$as_me: WARNING: valgrind is missing -- testbench won't use valgrind!" >&2;}
24505                fi
24506        else
24507                { $as_echo "$as_me:${as_lineno-$LINENO}: testbench will use valgrind" >&5
24508$as_echo "$as_me: testbench will use valgrind" >&6;}
24509        fi
24510else
24511	{ $as_echo "$as_me:${as_lineno-$LINENO}: testbench won't use valgrind due to set --without-valgrind-testbench option" >&5
24512$as_echo "$as_me: testbench won't use valgrind due to set --without-valgrind-testbench option" >&6;}
24513fi
24514 if test "x$with_valgrind_testbench" != "xno" && test "x$VALGRIND" != "xno"; then
24515  HAVE_VALGRIND_TRUE=
24516  HAVE_VALGRIND_FALSE='#'
24517else
24518  HAVE_VALGRIND_TRUE='#'
24519  HAVE_VALGRIND_FALSE=
24520fi
24521
24522
24523# ability to disable helgrind tests - we at least need this for
24524# clang coverage reports, where we cannot suppress the races
24525# Check whether --enable-helgrind was given.
24526if test "${enable_helgrind+set}" = set; then :
24527  enableval=$enable_helgrind; case "${enableval}" in
24528         yes) enable_helgrind="yes" ;;
24529          no) enable_helgrind="no" ;;
24530           *) as_fn_error $? "bad value ${enableval} for --enable-helgrind" "$LINENO" 5 ;;
24531         esac
24532else
24533  enable_helgrind=yes
24534
24535fi
24536
24537 if test x$enable_helgrind = xyes; then
24538  ENABLE_HELGRIND_TRUE=
24539  ENABLE_HELGRIND_FALSE='#'
24540else
24541  ENABLE_HELGRIND_TRUE='#'
24542  ENABLE_HELGRIND_FALSE=
24543fi
24544
24545
24546# settings for the batch report input module
24547# Check whether --enable-imbatchreport was given.
24548if test "${enable_imbatchreport+set}" = set; then :
24549  enableval=$enable_imbatchreport; case "${enableval}" in
24550         yes) enable_imbatchreport="yes" ;;
24551          no) enable_imbatchreport="no" ;;
24552           *) as_fn_error $? "bad value ${enableval} for --enable-imbatchreport" "$LINENO" 5 ;;
24553         esac
24554else
24555  enable_imbatchreport=no
24556
24557fi
24558
24559 if test x$enable_imbatchreport = xyes; then
24560  ENABLE_IMBATCHREPORT_TRUE=
24561  ENABLE_IMBATCHREPORT_FALSE='#'
24562else
24563  ENABLE_IMBATCHREPORT_TRUE='#'
24564  ENABLE_IMBATCHREPORT_FALSE=
24565fi
24566
24567
24568# settings for the db2diag parser module
24569# Check whether --enable-pmdb2diag was given.
24570if test "${enable_pmdb2diag+set}" = set; then :
24571  enableval=$enable_pmdb2diag; case "${enableval}" in
24572         yes) enable_pmdb2diag="yes" ;;
24573          no) enable_pmdb2diag="no" ;;
24574           *) as_fn_error $? "bad value ${enableval} for --enable-pmdb2diag" "$LINENO" 5 ;;
24575         esac
24576else
24577  enable_pmdb2diag=no
24578
24579fi
24580
24581 if test x$enable_pmdb2diag = xyes; then
24582  ENABLE_PMDB2DIAG_TRUE=
24583  ENABLE_PMDB2DIAG_FALSE='#'
24584else
24585  ENABLE_PMDB2DIAG_TRUE='#'
24586  ENABLE_PMDB2DIAG_FALSE=
24587fi
24588
24589
24590# settings for the file input module
24591# Check whether --enable-imfile was given.
24592if test "${enable_imfile+set}" = set; then :
24593  enableval=$enable_imfile; case "${enableval}" in
24594         yes) enable_imfile="yes" ;;
24595          no) enable_imfile="no" ;;
24596           *) as_fn_error $? "bad value ${enableval} for --enable-imfile" "$LINENO" 5 ;;
24597         esac
24598else
24599  enable_imfile=no
24600
24601fi
24602
24603if test "x$enable_imfile" = "xyes"; then
24604	for ac_func in port_create
24605do :
24606  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
24607if test "x$ac_cv_func_port_create" = xyes; then :
24608  cat >>confdefs.h <<_ACEOF
24609#define HAVE_PORT_CREATE 1
24610_ACEOF
24611
24612fi
24613done
24614
24615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris File Events Notification API support" >&5
24616$as_echo_n "checking for Solaris File Events Notification API support... " >&6; }
24617	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24618/* end confdefs.h.  */
24619
24620		#include <port.h>
24621		#include <sys/port.h>
24622
24623int
24624main ()
24625{
24626
24627		return PORT_SOURCE_FILE;
24628
24629
24630  ;
24631  return 0;
24632}
24633_ACEOF
24634if ac_fn_c_try_compile "$LINENO"; then :
24635
24636$as_echo "#define HAVE_PORT_SOURCE_FILE 1" >>confdefs.h
24637
24638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24639$as_echo "yes" >&6; }
24640
24641else
24642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24643$as_echo "no" >&6; }
24644
24645fi
24646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24647fi
24648 if test x$enable_imfile = xyes; then
24649  ENABLE_IMFILE_TRUE=
24650  ENABLE_IMFILE_FALSE='#'
24651else
24652  ENABLE_IMFILE_TRUE='#'
24653  ENABLE_IMFILE_FALSE=
24654fi
24655
24656
24657# Check whether --enable-imfile-tests was given.
24658if test "${enable_imfile_tests+set}" = set; then :
24659  enableval=$enable_imfile_tests; case "${enableval}" in
24660         yes) enable_imfile_tests="yes" ;;
24661          no) enable_imfile_tests="no" ;;
24662           *) as_fn_error $? "bad value ${enableval} for --enable-imfile-tests" "$LINENO" 5 ;;
24663         esac
24664else
24665  enable_imfile_tests=yes
24666
24667fi
24668
24669if  [ "$enable_imfile_tests" == "yes" ] && [ "$enable_imfile" != "yes" ]; then
24670		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: imfile-tests can not be enabled without imfile support. Disabling imfile tests..." >&5
24671$as_echo "$as_me: WARNING: imfile-tests can not be enabled without imfile support. Disabling imfile tests..." >&2;}
24672		enable_imfile_tests="no"
24673fi
24674 if test x$enable_imfile_tests = xyes; then
24675  ENABLE_IMFILE_TESTS_TRUE=
24676  ENABLE_IMFILE_TESTS_FALSE='#'
24677else
24678  ENABLE_IMFILE_TESTS_TRUE='#'
24679  ENABLE_IMFILE_TESTS_FALSE=
24680fi
24681
24682
24683
24684# settings for the docker log input module
24685# Check whether --enable-imdocker was given.
24686if test "${enable_imdocker+set}" = set; then :
24687  enableval=$enable_imdocker; case "${enableval}" in
24688         yes) enable_imdocker="yes" ;;
24689          no) enable_imdocker="no" ;;
24690           *) as_fn_error $? "bad value ${enableval} for --enable-imdocker" "$LINENO" 5 ;;
24691         esac
24692else
24693  enable_imdocker=no
24694
24695fi
24696
24697if test "x$enable_imdocker" = "xyes"; then
24698	for ac_header in curl/curl.h
24699do :
24700  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
24701if test "x$ac_cv_header_curl_curl_h" = xyes; then :
24702  cat >>confdefs.h <<_ACEOF
24703#define HAVE_CURL_CURL_H 1
24704_ACEOF
24705
24706fi
24707
24708done
24709
24710
24711pkg_failed=no
24712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
24713$as_echo_n "checking for CURL... " >&6; }
24714
24715if test -n "$CURL_CFLAGS"; then
24716    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
24717 elif test -n "$PKG_CONFIG"; then
24718    if test -n "$PKG_CONFIG" && \
24719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.40.0\""; } >&5
24720  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.40.0") 2>&5
24721  ac_status=$?
24722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24723  test $ac_status = 0; }; then
24724  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.40.0" 2>/dev/null`
24725		      test "x$?" != "x0" && pkg_failed=yes
24726else
24727  pkg_failed=yes
24728fi
24729 else
24730    pkg_failed=untried
24731fi
24732if test -n "$CURL_LIBS"; then
24733    pkg_cv_CURL_LIBS="$CURL_LIBS"
24734 elif test -n "$PKG_CONFIG"; then
24735    if test -n "$PKG_CONFIG" && \
24736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.40.0\""; } >&5
24737  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.40.0") 2>&5
24738  ac_status=$?
24739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740  test $ac_status = 0; }; then
24741  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.40.0" 2>/dev/null`
24742		      test "x$?" != "x0" && pkg_failed=yes
24743else
24744  pkg_failed=yes
24745fi
24746 else
24747    pkg_failed=untried
24748fi
24749
24750
24751
24752if test $pkg_failed = yes; then
24753   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24754$as_echo "no" >&6; }
24755
24756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24757        _pkg_short_errors_supported=yes
24758else
24759        _pkg_short_errors_supported=no
24760fi
24761        if test $_pkg_short_errors_supported = yes; then
24762	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.40.0" 2>&1`
24763        else
24764	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.40.0" 2>&1`
24765        fi
24766	# Put the nasty error message in config.log where it belongs
24767	echo "$CURL_PKG_ERRORS" >&5
24768
24769	as_fn_error $? "Package requirements (libcurl >= 7.40.0) were not met:
24770
24771$CURL_PKG_ERRORS
24772
24773Consider adjusting the PKG_CONFIG_PATH environment variable if you
24774installed software in a non-standard prefix.
24775
24776Alternatively, you may set the environment variables CURL_CFLAGS
24777and CURL_LIBS to avoid the need to call pkg-config.
24778See the pkg-config man page for more details." "$LINENO" 5
24779elif test $pkg_failed = untried; then
24780     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24781$as_echo "no" >&6; }
24782	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24784as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24785is in your PATH or set the PKG_CONFIG environment variable to the full
24786path to pkg-config.
24787
24788Alternatively, you may set the environment variables CURL_CFLAGS
24789and CURL_LIBS to avoid the need to call pkg-config.
24790See the pkg-config man page for more details.
24791
24792To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24793See \`config.log' for more details" "$LINENO" 5; }
24794else
24795	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
24796	CURL_LIBS=$pkg_cv_CURL_LIBS
24797        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24798$as_echo "yes" >&6; }
24799
24800fi
24801fi
24802 if test x$enable_imdocker = xyes; then
24803  ENABLE_IMDOCKER_TRUE=
24804  ENABLE_IMDOCKER_FALSE='#'
24805else
24806  ENABLE_IMDOCKER_TRUE='#'
24807  ENABLE_IMDOCKER_FALSE=
24808fi
24809
24810
24811# Check whether --enable-imdocker-tests was given.
24812if test "${enable_imdocker_tests+set}" = set; then :
24813  enableval=$enable_imdocker_tests; case "${enableval}" in
24814         yes) enable_imdocker_tests="yes" ;;
24815          no) enable_imdocker_tests="no" ;;
24816           *) as_fn_error $? "bad value ${enableval} for --enable-imdocker-tests" "$LINENO" 5 ;;
24817         esac
24818else
24819  enable_imdocker_tests=no
24820
24821fi
24822
24823
24824 if test x$enable_imdocker_tests = xyes; then
24825  ENABLE_IMDOCKER_TESTS_TRUE=
24826  ENABLE_IMDOCKER_TESTS_FALSE='#'
24827else
24828  ENABLE_IMDOCKER_TESTS_TRUE='#'
24829  ENABLE_IMDOCKER_TESTS_FALSE=
24830fi
24831
24832
24833
24834# settings for the tuxedo ULOG input module
24835# Check whether --enable-imtuxedoulog was given.
24836if test "${enable_imtuxedoulog+set}" = set; then :
24837  enableval=$enable_imtuxedoulog; case "${enableval}" in
24838         yes) enable_imtuxedoulog="yes" ;;
24839          no) enable_imtuxedoulog="no" ;;
24840           *) as_fn_error $? "bad value ${enableval} for --enable-imtuxedoulog" "$LINENO" 5 ;;
24841         esac
24842else
24843  enable_imtuxedoulog=no
24844
24845fi
24846
24847 if test x$enable_imtuxedoulog = xyes; then
24848  ENABLE_IMTUXEDOULOG_TRUE=
24849  ENABLE_IMTUXEDOULOG_FALSE='#'
24850else
24851  ENABLE_IMTUXEDOULOG_TRUE='#'
24852  ENABLE_IMTUXEDOULOG_FALSE=
24853fi
24854
24855
24856# settings for the external program input module
24857# Check whether --enable-improg was given.
24858if test "${enable_improg+set}" = set; then :
24859  enableval=$enable_improg; case "${enableval}" in
24860         yes) enable_improg="yes" ;;
24861          no) enable_improg="no" ;;
24862           *) as_fn_error $? "bad value ${enableval} for --enable-improg" "$LINENO" 5 ;;
24863         esac
24864else
24865  enable_improg=no
24866
24867fi
24868
24869 if test x$enable_improg = xyes; then
24870  ENABLE_IMPROG_TRUE=
24871  ENABLE_IMPROG_FALSE='#'
24872else
24873  ENABLE_IMPROG_TRUE='#'
24874  ENABLE_IMPROG_FALSE=
24875fi
24876
24877
24878# settings for the external http input module
24879# Check whether --enable-imhttp was given.
24880if test "${enable_imhttp+set}" = set; then :
24881  enableval=$enable_imhttp; case "${enableval}" in
24882         yes) enable_imhttp="yes" ;;
24883          no) enable_imhttp="no" ;;
24884           *) as_fn_error $? "bad value ${enableval} for --enable-imhttp" "$LINENO" 5 ;;
24885         esac
24886else
24887  enable_imhttp=no
24888
24889fi
24890
24891if test "x$enable_imhttp" = "xyes"; then
24892  for ac_header in civetweb.h
24893do :
24894  ac_fn_c_check_header_mongrel "$LINENO" "civetweb.h" "ac_cv_header_civetweb_h" "$ac_includes_default"
24895if test "x$ac_cv_header_civetweb_h" = xyes; then :
24896  cat >>confdefs.h <<_ACEOF
24897#define HAVE_CIVETWEB_H 1
24898_ACEOF
24899
24900else
24901  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24903as_fn_error $? "civetweb is missing
24904See \`config.log' for more details" "$LINENO" 5; }
24905
24906fi
24907
24908done
24909
24910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mg_version" >&5
24911$as_echo_n "checking for library containing mg_version... " >&6; }
24912if ${ac_cv_search_mg_version+:} false; then :
24913  $as_echo_n "(cached) " >&6
24914else
24915  ac_func_search_save_LIBS=$LIBS
24916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917/* end confdefs.h.  */
24918
24919/* Override any GCC internal prototype to avoid an error.
24920   Use char because int might match the return type of a GCC
24921   builtin and then its argument prototype would still apply.  */
24922#ifdef __cplusplus
24923extern "C"
24924#endif
24925char mg_version ();
24926int
24927main ()
24928{
24929return mg_version ();
24930  ;
24931  return 0;
24932}
24933_ACEOF
24934for ac_lib in '' civetweb; do
24935  if test -z "$ac_lib"; then
24936    ac_res="none required"
24937  else
24938    ac_res=-l$ac_lib
24939    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24940  fi
24941  if ac_fn_c_try_link "$LINENO"; then :
24942  ac_cv_search_mg_version=$ac_res
24943fi
24944rm -f core conftest.err conftest.$ac_objext \
24945    conftest$ac_exeext
24946  if ${ac_cv_search_mg_version+:} false; then :
24947  break
24948fi
24949done
24950if ${ac_cv_search_mg_version+:} false; then :
24951
24952else
24953  ac_cv_search_mg_version=no
24954fi
24955rm conftest.$ac_ext
24956LIBS=$ac_func_search_save_LIBS
24957fi
24958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mg_version" >&5
24959$as_echo "$ac_cv_search_mg_version" >&6; }
24960ac_res=$ac_cv_search_mg_version
24961if test "$ac_res" != no; then :
24962  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24963
24964fi
24965
24966
24967
24968pkg_failed=no
24969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APU" >&5
24970$as_echo_n "checking for APU... " >&6; }
24971
24972if test -n "$APU_CFLAGS"; then
24973    pkg_cv_APU_CFLAGS="$APU_CFLAGS"
24974 elif test -n "$PKG_CONFIG"; then
24975    if test -n "$PKG_CONFIG" && \
24976    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-util-1 >= 1.0\""; } >&5
24977  ($PKG_CONFIG --exists --print-errors "apr-util-1 >= 1.0") 2>&5
24978  ac_status=$?
24979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980  test $ac_status = 0; }; then
24981  pkg_cv_APU_CFLAGS=`$PKG_CONFIG --cflags "apr-util-1 >= 1.0" 2>/dev/null`
24982		      test "x$?" != "x0" && pkg_failed=yes
24983else
24984  pkg_failed=yes
24985fi
24986 else
24987    pkg_failed=untried
24988fi
24989if test -n "$APU_LIBS"; then
24990    pkg_cv_APU_LIBS="$APU_LIBS"
24991 elif test -n "$PKG_CONFIG"; then
24992    if test -n "$PKG_CONFIG" && \
24993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-util-1 >= 1.0\""; } >&5
24994  ($PKG_CONFIG --exists --print-errors "apr-util-1 >= 1.0") 2>&5
24995  ac_status=$?
24996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997  test $ac_status = 0; }; then
24998  pkg_cv_APU_LIBS=`$PKG_CONFIG --libs "apr-util-1 >= 1.0" 2>/dev/null`
24999		      test "x$?" != "x0" && pkg_failed=yes
25000else
25001  pkg_failed=yes
25002fi
25003 else
25004    pkg_failed=untried
25005fi
25006
25007
25008
25009if test $pkg_failed = yes; then
25010   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25011$as_echo "no" >&6; }
25012
25013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25014        _pkg_short_errors_supported=yes
25015else
25016        _pkg_short_errors_supported=no
25017fi
25018        if test $_pkg_short_errors_supported = yes; then
25019	        APU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "apr-util-1 >= 1.0" 2>&1`
25020        else
25021	        APU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "apr-util-1 >= 1.0" 2>&1`
25022        fi
25023	# Put the nasty error message in config.log where it belongs
25024	echo "$APU_PKG_ERRORS" >&5
25025
25026	as_fn_error $? "Package requirements (apr-util-1 >= 1.0) were not met:
25027
25028$APU_PKG_ERRORS
25029
25030Consider adjusting the PKG_CONFIG_PATH environment variable if you
25031installed software in a non-standard prefix.
25032
25033Alternatively, you may set the environment variables APU_CFLAGS
25034and APU_LIBS to avoid the need to call pkg-config.
25035See the pkg-config man page for more details." "$LINENO" 5
25036elif test $pkg_failed = untried; then
25037     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038$as_echo "no" >&6; }
25039	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25041as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
25042is in your PATH or set the PKG_CONFIG environment variable to the full
25043path to pkg-config.
25044
25045Alternatively, you may set the environment variables APU_CFLAGS
25046and APU_LIBS to avoid the need to call pkg-config.
25047See the pkg-config man page for more details.
25048
25049To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25050See \`config.log' for more details" "$LINENO" 5; }
25051else
25052	APU_CFLAGS=$pkg_cv_APU_CFLAGS
25053	APU_LIBS=$pkg_cv_APU_LIBS
25054        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25055$as_echo "yes" >&6; }
25056
25057fi
25058  save_CFLAGS="$CFLAGS"
25059  save_LIBS="$LIBS"
25060
25061  CFLAGS="$CFLAGS $APU_CFLAGS"
25062  LIBS="$LIBS $APU_LIBS"
25063
25064  for ac_header in apr_md5.h
25065do :
25066  ac_fn_c_check_header_mongrel "$LINENO" "apr_md5.h" "ac_cv_header_apr_md5_h" "$ac_includes_default"
25067if test "x$ac_cv_header_apr_md5_h" = xyes; then :
25068  cat >>confdefs.h <<_ACEOF
25069#define HAVE_APR_MD5_H 1
25070_ACEOF
25071
25072fi
25073
25074done
25075
25076  for ac_header in apr_base64.h
25077do :
25078  ac_fn_c_check_header_mongrel "$LINENO" "apr_base64.h" "ac_cv_header_apr_base64_h" "$ac_includes_default"
25079if test "x$ac_cv_header_apr_base64_h" = xyes; then :
25080  cat >>confdefs.h <<_ACEOF
25081#define HAVE_APR_BASE64_H 1
25082_ACEOF
25083
25084fi
25085
25086done
25087
25088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing apr_base64_decode" >&5
25089$as_echo_n "checking for library containing apr_base64_decode... " >&6; }
25090if ${ac_cv_search_apr_base64_decode+:} false; then :
25091  $as_echo_n "(cached) " >&6
25092else
25093  ac_func_search_save_LIBS=$LIBS
25094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25095/* end confdefs.h.  */
25096
25097/* Override any GCC internal prototype to avoid an error.
25098   Use char because int might match the return type of a GCC
25099   builtin and then its argument prototype would still apply.  */
25100#ifdef __cplusplus
25101extern "C"
25102#endif
25103char apr_base64_decode ();
25104int
25105main ()
25106{
25107return apr_base64_decode ();
25108  ;
25109  return 0;
25110}
25111_ACEOF
25112for ac_lib in '' aprutil-1; do
25113  if test -z "$ac_lib"; then
25114    ac_res="none required"
25115  else
25116    ac_res=-l$ac_lib
25117    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25118  fi
25119  if ac_fn_c_try_link "$LINENO"; then :
25120  ac_cv_search_apr_base64_decode=$ac_res
25121fi
25122rm -f core conftest.err conftest.$ac_objext \
25123    conftest$ac_exeext
25124  if ${ac_cv_search_apr_base64_decode+:} false; then :
25125  break
25126fi
25127done
25128if ${ac_cv_search_apr_base64_decode+:} false; then :
25129
25130else
25131  ac_cv_search_apr_base64_decode=no
25132fi
25133rm conftest.$ac_ext
25134LIBS=$ac_func_search_save_LIBS
25135fi
25136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_apr_base64_decode" >&5
25137$as_echo "$ac_cv_search_apr_base64_decode" >&6; }
25138ac_res=$ac_cv_search_apr_base64_decode
25139if test "$ac_res" != no; then :
25140  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25141
25142fi
25143
25144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing apr_password_validate" >&5
25145$as_echo_n "checking for library containing apr_password_validate... " >&6; }
25146if ${ac_cv_search_apr_password_validate+:} false; then :
25147  $as_echo_n "(cached) " >&6
25148else
25149  ac_func_search_save_LIBS=$LIBS
25150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151/* end confdefs.h.  */
25152
25153/* Override any GCC internal prototype to avoid an error.
25154   Use char because int might match the return type of a GCC
25155   builtin and then its argument prototype would still apply.  */
25156#ifdef __cplusplus
25157extern "C"
25158#endif
25159char apr_password_validate ();
25160int
25161main ()
25162{
25163return apr_password_validate ();
25164  ;
25165  return 0;
25166}
25167_ACEOF
25168for ac_lib in '' aprutil-1; do
25169  if test -z "$ac_lib"; then
25170    ac_res="none required"
25171  else
25172    ac_res=-l$ac_lib
25173    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25174  fi
25175  if ac_fn_c_try_link "$LINENO"; then :
25176  ac_cv_search_apr_password_validate=$ac_res
25177fi
25178rm -f core conftest.err conftest.$ac_objext \
25179    conftest$ac_exeext
25180  if ${ac_cv_search_apr_password_validate+:} false; then :
25181  break
25182fi
25183done
25184if ${ac_cv_search_apr_password_validate+:} false; then :
25185
25186else
25187  ac_cv_search_apr_password_validate=no
25188fi
25189rm conftest.$ac_ext
25190LIBS=$ac_func_search_save_LIBS
25191fi
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_apr_password_validate" >&5
25193$as_echo "$ac_cv_search_apr_password_validate" >&6; }
25194ac_res=$ac_cv_search_apr_password_validate
25195if test "$ac_res" != no; then :
25196  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25197
25198fi
25199
25200
25201  CIVETWEB_LIBS=-lcivetweb
25202
25203
25204  CFLAGS="$save_CFLAGS"
25205  LIBS="$save_LIBS"
25206fi
25207 if test x$enable_imhttp = xyes; then
25208  ENABLE_IMHTTP_TRUE=
25209  ENABLE_IMHTTP_FALSE='#'
25210else
25211  ENABLE_IMHTTP_TRUE='#'
25212  ENABLE_IMHTTP_FALSE=
25213fi
25214
25215
25216# settings for the door input module (under solaris, thus default off)
25217# Check whether --enable-imsolaris was given.
25218if test "${enable_imsolaris+set}" = set; then :
25219  enableval=$enable_imsolaris; case "${enableval}" in
25220         yes) enable_imsolaris="yes" ;;
25221          no) enable_imsolaris="no" ;;
25222           *) as_fn_error $? "bad value ${enableval} for --enable-imsolaris" "$LINENO" 5 ;;
25223         esac
25224else
25225  enable_imsolaris=no
25226
25227fi
25228
25229 if test x$enable_imsolaris = xyes; then
25230  ENABLE_IMSOLARIS_TRUE=
25231  ENABLE_IMSOLARIS_FALSE='#'
25232else
25233  ENABLE_IMSOLARIS_TRUE='#'
25234  ENABLE_IMSOLARIS_FALSE=
25235fi
25236
25237
25238# settings for the ptcp input module
25239# Check whether --enable-imptcp was given.
25240if test "${enable_imptcp+set}" = set; then :
25241  enableval=$enable_imptcp; case "${enableval}" in
25242         yes) enable_imptcp="yes" ;;
25243          no) enable_imptcp="no" ;;
25244           *) as_fn_error $? "bad value ${enableval} for --enable-imptcp" "$LINENO" 5 ;;
25245         esac
25246else
25247  enable_imptcp=no
25248
25249fi
25250
25251 if test x$enable_imptcp = xyes; then
25252  ENABLE_IMPTCP_TRUE=
25253  ENABLE_IMPTCP_FALSE='#'
25254else
25255  ENABLE_IMPTCP_TRUE='#'
25256  ENABLE_IMPTCP_FALSE=
25257fi
25258
25259
25260
25261# settings for the pstats input module
25262# Check whether --enable-impstats was given.
25263if test "${enable_impstats+set}" = set; then :
25264  enableval=$enable_impstats; case "${enableval}" in
25265         yes) enable_impstats="yes" ;;
25266          no) enable_impstats="no" ;;
25267           *) as_fn_error $? "bad value ${enableval} for --enable-impstats" "$LINENO" 5 ;;
25268         esac
25269else
25270  enable_impstats=no
25271
25272fi
25273
25274 if test x$enable_impstats = xyes; then
25275  ENABLE_IMPSTATS_TRUE=
25276  ENABLE_IMPSTATS_FALSE='#'
25277else
25278  ENABLE_IMPSTATS_TRUE='#'
25279  ENABLE_IMPSTATS_FALSE=
25280fi
25281
25282
25283# settings for the pcap input module
25284# Check whether --enable-impcap was given.
25285if test "${enable_impcap+set}" = set; then :
25286  enableval=$enable_impcap; case "${enableval}" in
25287         yes) enable_impcap="yes" ;;
25288          no) enable_impcap="no" ;;
25289           *) as_fn_error $? "bad value ${enableval} for --enable-impcap" "$LINENO" 5 ;;
25290         esac
25291else
25292  enable_impcap=no
25293
25294fi
25295
25296
25297if test "x$enable_impcap" = "xyes"; then
25298				for ac_header in pcap.h
25299do :
25300  ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
25301if test "x$ac_cv_header_pcap_h" = xyes; then :
25302  cat >>confdefs.h <<_ACEOF
25303#define HAVE_PCAP_H 1
25304_ACEOF
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: pcap found" >&5
25306$as_echo "$as_me: pcap found" >&6;}
25307else
25308  as_fn_error $? "libpcap library and headers not found" "$LINENO" 5
25309
25310fi
25311
25312done
25313
25314fi
25315 if test x$enable_impcap = xyes; then
25316  ENABLE_IMPCAP_TRUE=
25317  ENABLE_IMPCAP_FALSE='#'
25318else
25319  ENABLE_IMPCAP_TRUE='#'
25320  ENABLE_IMPCAP_FALSE=
25321fi
25322
25323
25324# settings for the omprog output module
25325# Check whether --enable-omprog was given.
25326if test "${enable_omprog+set}" = set; then :
25327  enableval=$enable_omprog; case "${enableval}" in
25328         yes) enable_omprog="yes" ;;
25329          no) enable_omprog="no" ;;
25330           *) as_fn_error $? "bad value ${enableval} for --enable-omprog" "$LINENO" 5 ;;
25331         esac
25332else
25333  enable_omprog=no
25334
25335fi
25336
25337 if test x$enable_omprog = xyes; then
25338  ENABLE_OMPROG_TRUE=
25339  ENABLE_OMPROG_FALSE='#'
25340else
25341  ENABLE_OMPROG_TRUE='#'
25342  ENABLE_OMPROG_FALSE=
25343fi
25344
25345
25346
25347# settings for omudpspoof
25348# Check whether --enable-omudpspoof was given.
25349if test "${enable_omudpspoof+set}" = set; then :
25350  enableval=$enable_omudpspoof; case "${enableval}" in
25351         yes) enable_omudpspoof="yes" ;;
25352          no) enable_omudpspoof="no" ;;
25353           *) as_fn_error $? "bad value ${enableval} for --enable-omudpspoof" "$LINENO" 5 ;;
25354         esac
25355else
25356  enable_omudpspoof=no
25357
25358fi
25359
25360
25361if test "x$enable_omudpspoof" = "xyes"; then
25362  for ac_header in libnet.h
25363do :
25364  ac_fn_c_check_header_mongrel "$LINENO" "libnet.h" "ac_cv_header_libnet_h" "$ac_includes_default"
25365if test "x$ac_cv_header_libnet_h" = xyes; then :
25366  cat >>confdefs.h <<_ACEOF
25367#define HAVE_LIBNET_H 1
25368_ACEOF
25369
25370else
25371  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25373as_fn_error $? "libnet is missing
25374See \`config.log' for more details" "$LINENO" 5; }
25375
25376fi
25377
25378done
25379
25380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnet_init in -lnet" >&5
25381$as_echo_n "checking for libnet_init in -lnet... " >&6; }
25382if ${ac_cv_lib_net_libnet_init+:} false; then :
25383  $as_echo_n "(cached) " >&6
25384else
25385  ac_check_lib_save_LIBS=$LIBS
25386LIBS="-lnet  $LIBS"
25387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25388/* end confdefs.h.  */
25389
25390/* Override any GCC internal prototype to avoid an error.
25391   Use char because int might match the return type of a GCC
25392   builtin and then its argument prototype would still apply.  */
25393#ifdef __cplusplus
25394extern "C"
25395#endif
25396char libnet_init ();
25397int
25398main ()
25399{
25400return libnet_init ();
25401  ;
25402  return 0;
25403}
25404_ACEOF
25405if ac_fn_c_try_link "$LINENO"; then :
25406  ac_cv_lib_net_libnet_init=yes
25407else
25408  ac_cv_lib_net_libnet_init=no
25409fi
25410rm -f core conftest.err conftest.$ac_objext \
25411    conftest$ac_exeext conftest.$ac_ext
25412LIBS=$ac_check_lib_save_LIBS
25413fi
25414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_libnet_init" >&5
25415$as_echo "$ac_cv_lib_net_libnet_init" >&6; }
25416if test "x$ac_cv_lib_net_libnet_init" = xyes; then :
25417  UDPSPOOF_CFLAGS=""
25418     UDPSPOOF_LIBS="-lnet"
25419
25420else
25421  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25423as_fn_error $? "libnet is missing
25424See \`config.log' for more details" "$LINENO" 5; }
25425
25426fi
25427
25428fi
25429 if test x$enable_omudpspoof = xyes; then
25430  ENABLE_OMUDPSPOOF_TRUE=
25431  ENABLE_OMUDPSPOOF_FALSE='#'
25432else
25433  ENABLE_OMUDPSPOOF_TRUE='#'
25434  ENABLE_OMUDPSPOOF_FALSE=
25435fi
25436
25437
25438
25439
25440
25441# settings for omstdout
25442# Check whether --enable-omstdout was given.
25443if test "${enable_omstdout+set}" = set; then :
25444  enableval=$enable_omstdout; case "${enableval}" in
25445         yes) enable_omstdout="yes" ;;
25446          no) enable_omstdout="no" ;;
25447           *) as_fn_error $? "bad value ${enableval} for --enable-omstdout" "$LINENO" 5 ;;
25448         esac
25449else
25450  enable_omstdout=no
25451
25452fi
25453
25454 if test x$enable_omstdout = xyes; then
25455  ENABLE_OMSTDOUT_TRUE=
25456  ENABLE_OMSTDOUT_FALSE='#'
25457else
25458  ENABLE_OMSTDOUT_TRUE='#'
25459  ENABLE_OMSTDOUT_FALSE=
25460fi
25461
25462
25463 if test x$enable_testbench = xyes; then
25464  ENABLE_TESTBENCH_TRUE=
25465  ENABLE_TESTBENCH_FALSE='#'
25466else
25467  ENABLE_TESTBENCH_TRUE='#'
25468  ENABLE_TESTBENCH_FALSE=
25469fi
25470
25471if test "x$enable_testbench" = "xyes"; then
25472	if test "x$enable_imdiag" != "xyes"; then
25473		as_fn_error $? "\"--enable-testbench requires --enable-imdiag\"" "$LINENO" 5
25474	fi
25475	if test "x$enable_omstdout" != "xyes"; then
25476		as_fn_error $? "\"--enable-testbench requires --enable-omstdout\"" "$LINENO" 5
25477	fi
25478fi
25479
25480
25481# settings for omjournal
25482# Check whether --enable-omjournal was given.
25483if test "${enable_omjournal+set}" = set; then :
25484  enableval=$enable_omjournal; case "${enableval}" in
25485         yes) enable_omjournal="yes" ;;
25486          no) enable_omjournal="no" ;;
25487           *) as_fn_error $? "bad value ${enableval} for --enable-omjournal" "$LINENO" 5 ;;
25488         esac
25489else
25490  enable_omjournal=no
25491
25492fi
25493
25494if test "x$enable_omjournal" = "xyes"; then
25495
25496pkg_failed=no
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
25498$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
25499
25500if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
25501    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
25502 elif test -n "$PKG_CONFIG"; then
25503    if test -n "$PKG_CONFIG" && \
25504    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209 \""; } >&5
25505  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209 ") 2>&5
25506  ac_status=$?
25507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25508  test $ac_status = 0; }; then
25509  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209 " 2>/dev/null`
25510		      test "x$?" != "x0" && pkg_failed=yes
25511else
25512  pkg_failed=yes
25513fi
25514 else
25515    pkg_failed=untried
25516fi
25517if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
25518    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
25519 elif test -n "$PKG_CONFIG"; then
25520    if test -n "$PKG_CONFIG" && \
25521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209 \""; } >&5
25522  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209 ") 2>&5
25523  ac_status=$?
25524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25525  test $ac_status = 0; }; then
25526  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209 " 2>/dev/null`
25527		      test "x$?" != "x0" && pkg_failed=yes
25528else
25529  pkg_failed=yes
25530fi
25531 else
25532    pkg_failed=untried
25533fi
25534
25535
25536
25537if test $pkg_failed = yes; then
25538   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25539$as_echo "no" >&6; }
25540
25541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25542        _pkg_short_errors_supported=yes
25543else
25544        _pkg_short_errors_supported=no
25545fi
25546        if test $_pkg_short_errors_supported = yes; then
25547	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209 " 2>&1`
25548        else
25549	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209 " 2>&1`
25550        fi
25551	# Put the nasty error message in config.log where it belongs
25552	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
25553
25554
25555
25556pkg_failed=no
25557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
25558$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
25559
25560if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
25561    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
25562 elif test -n "$PKG_CONFIG"; then
25563    if test -n "$PKG_CONFIG" && \
25564    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
25565  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
25566  ac_status=$?
25567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568  test $ac_status = 0; }; then
25569  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= 197" 2>/dev/null`
25570		      test "x$?" != "x0" && pkg_failed=yes
25571else
25572  pkg_failed=yes
25573fi
25574 else
25575    pkg_failed=untried
25576fi
25577if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
25578    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
25579 elif test -n "$PKG_CONFIG"; then
25580    if test -n "$PKG_CONFIG" && \
25581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
25582  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
25583  ac_status=$?
25584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25585  test $ac_status = 0; }; then
25586  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= 197" 2>/dev/null`
25587		      test "x$?" != "x0" && pkg_failed=yes
25588else
25589  pkg_failed=yes
25590fi
25591 else
25592    pkg_failed=untried
25593fi
25594
25595
25596
25597if test $pkg_failed = yes; then
25598   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25599$as_echo "no" >&6; }
25600
25601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25602        _pkg_short_errors_supported=yes
25603else
25604        _pkg_short_errors_supported=no
25605fi
25606        if test $_pkg_short_errors_supported = yes; then
25607	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
25608        else
25609	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
25610        fi
25611	# Put the nasty error message in config.log where it belongs
25612	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
25613
25614	as_fn_error $? "Package requirements (libsystemd-journal >= 197) were not met:
25615
25616$LIBSYSTEMD_JOURNAL_PKG_ERRORS
25617
25618Consider adjusting the PKG_CONFIG_PATH environment variable if you
25619installed software in a non-standard prefix.
25620
25621Alternatively, you may set the environment variables LIBSYSTEMD_JOURNAL_CFLAGS
25622and LIBSYSTEMD_JOURNAL_LIBS to avoid the need to call pkg-config.
25623See the pkg-config man page for more details." "$LINENO" 5
25624elif test $pkg_failed = untried; then
25625     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25626$as_echo "no" >&6; }
25627	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25629as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
25630is in your PATH or set the PKG_CONFIG environment variable to the full
25631path to pkg-config.
25632
25633Alternatively, you may set the environment variables LIBSYSTEMD_JOURNAL_CFLAGS
25634and LIBSYSTEMD_JOURNAL_LIBS to avoid the need to call pkg-config.
25635See the pkg-config man page for more details.
25636
25637To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25638See \`config.log' for more details" "$LINENO" 5; }
25639else
25640	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
25641	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
25642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25643$as_echo "yes" >&6; }
25644
25645fi
25646
25647elif test $pkg_failed = untried; then
25648     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25649$as_echo "no" >&6; }
25650
25651
25652pkg_failed=no
25653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_JOURNAL" >&5
25654$as_echo_n "checking for LIBSYSTEMD_JOURNAL... " >&6; }
25655
25656if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then
25657    pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS"
25658 elif test -n "$PKG_CONFIG"; then
25659    if test -n "$PKG_CONFIG" && \
25660    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
25661  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
25662  ac_status=$?
25663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664  test $ac_status = 0; }; then
25665  pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= 197" 2>/dev/null`
25666		      test "x$?" != "x0" && pkg_failed=yes
25667else
25668  pkg_failed=yes
25669fi
25670 else
25671    pkg_failed=untried
25672fi
25673if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then
25674    pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS"
25675 elif test -n "$PKG_CONFIG"; then
25676    if test -n "$PKG_CONFIG" && \
25677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= 197\""; } >&5
25678  ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= 197") 2>&5
25679  ac_status=$?
25680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25681  test $ac_status = 0; }; then
25682  pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= 197" 2>/dev/null`
25683		      test "x$?" != "x0" && pkg_failed=yes
25684else
25685  pkg_failed=yes
25686fi
25687 else
25688    pkg_failed=untried
25689fi
25690
25691
25692
25693if test $pkg_failed = yes; then
25694   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25695$as_echo "no" >&6; }
25696
25697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25698        _pkg_short_errors_supported=yes
25699else
25700        _pkg_short_errors_supported=no
25701fi
25702        if test $_pkg_short_errors_supported = yes; then
25703	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
25704        else
25705	        LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= 197" 2>&1`
25706        fi
25707	# Put the nasty error message in config.log where it belongs
25708	echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5
25709
25710	as_fn_error $? "Package requirements (libsystemd-journal >= 197) were not met:
25711
25712$LIBSYSTEMD_JOURNAL_PKG_ERRORS
25713
25714Consider adjusting the PKG_CONFIG_PATH environment variable if you
25715installed software in a non-standard prefix.
25716
25717Alternatively, you may set the environment variables LIBSYSTEMD_JOURNAL_CFLAGS
25718and LIBSYSTEMD_JOURNAL_LIBS to avoid the need to call pkg-config.
25719See the pkg-config man page for more details." "$LINENO" 5
25720elif test $pkg_failed = untried; then
25721     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25722$as_echo "no" >&6; }
25723	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25725as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
25726is in your PATH or set the PKG_CONFIG environment variable to the full
25727path to pkg-config.
25728
25729Alternatively, you may set the environment variables LIBSYSTEMD_JOURNAL_CFLAGS
25730and LIBSYSTEMD_JOURNAL_LIBS to avoid the need to call pkg-config.
25731See the pkg-config man page for more details.
25732
25733To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25734See \`config.log' for more details" "$LINENO" 5; }
25735else
25736	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
25737	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
25738        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25739$as_echo "yes" >&6; }
25740
25741fi
25742
25743else
25744	LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS
25745	LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS
25746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25747$as_echo "yes" >&6; }
25748
25749fi
25750fi
25751 if test x$enable_omjournal = xyes; then
25752  ENABLE_OMJOURNAL_TRUE=
25753  ENABLE_OMJOURNAL_FALSE='#'
25754else
25755  ENABLE_OMJOURNAL_TRUE='#'
25756  ENABLE_OMJOURNAL_FALSE=
25757fi
25758
25759
25760# capability to enable journal testbench tests. They have very special requirements,
25761# so it does not make sense to have them run by default.
25762# Also note that as of now, they have a pretty high rate of false positives due
25763# to bugs in the journal.
25764# see also https://github.com/rsyslog/rsyslog/issues/2931#issuecomment-416914707
25765# Check whether --enable-journal_tests was given.
25766if test "${enable_journal_tests+set}" = set; then :
25767  enableval=$enable_journal_tests; case "${enableval}" in
25768         yes) enable_journal_tests="yes" ;;
25769          no) enable_journal_tests="no" ;;
25770           *) as_fn_error $? "bad value ${enableval} for --enable-journal-tests" "$LINENO" 5 ;;
25771         esac
25772else
25773  enable_journal_tests=no
25774
25775fi
25776
25777 if test x$enable_journal_tests = xyes; then
25778  ENABLE_JOURNAL_TESTS_TRUE=
25779  ENABLE_JOURNAL_TESTS_FALSE='#'
25780else
25781  ENABLE_JOURNAL_TESTS_TRUE='#'
25782  ENABLE_JOURNAL_TESTS_FALSE=
25783fi
25784
25785
25786
25787# settings for pmlastmsg
25788# Check whether --enable-pmlastmsg was given.
25789if test "${enable_pmlastmsg+set}" = set; then :
25790  enableval=$enable_pmlastmsg; case "${enableval}" in
25791         yes) enable_pmlastmsg="yes" ;;
25792          no) enable_pmlastmsg="no" ;;
25793           *) as_fn_error $? "bad value ${enableval} for --enable-pmlastmsg" "$LINENO" 5 ;;
25794         esac
25795else
25796  enable_pmlastmsg=no
25797
25798fi
25799
25800 if test x$enable_pmlastmsg = xyes; then
25801  ENABLE_PMLASTMSG_TRUE=
25802  ENABLE_PMLASTMSG_FALSE='#'
25803else
25804  ENABLE_PMLASTMSG_TRUE='#'
25805  ENABLE_PMLASTMSG_FALSE=
25806fi
25807
25808
25809
25810# settings for pmcisconames
25811# Check whether --enable-pmcisconames was given.
25812if test "${enable_pmcisconames+set}" = set; then :
25813  enableval=$enable_pmcisconames; case "${enableval}" in
25814         yes) enable_pmcisconames="yes" ;;
25815          no) enable_pmcisconames="no" ;;
25816           *) as_fn_error $? "bad value ${enableval} for --enable-pmcisconames" "$LINENO" 5 ;;
25817         esac
25818else
25819  enable_pmcisconames=no
25820
25821fi
25822
25823 if test x$enable_pmcisconames = xyes; then
25824  ENABLE_PMCISCONAMES_TRUE=
25825  ENABLE_PMCISCONAMES_FALSE='#'
25826else
25827  ENABLE_PMCISCONAMES_TRUE='#'
25828  ENABLE_PMCISCONAMES_FALSE=
25829fi
25830
25831
25832
25833# settings for pmciscoios
25834# Check whether --enable-pmciscoios was given.
25835if test "${enable_pmciscoios+set}" = set; then :
25836  enableval=$enable_pmciscoios; case "${enableval}" in
25837         yes) enable_pmciscoios="yes" ;;
25838          no) enable_pmciscoios="no" ;;
25839           *) as_fn_error $? "bad value ${enableval} for --enable-pmciscoios" "$LINENO" 5 ;;
25840         esac
25841else
25842  enable_pmciscoios=no
25843
25844fi
25845
25846 if test x$enable_pmciscoios = xyes; then
25847  ENABLE_PMCISCOIOS_TRUE=
25848  ENABLE_PMCISCOIOS_FALSE='#'
25849else
25850  ENABLE_PMCISCOIOS_TRUE='#'
25851  ENABLE_PMCISCOIOS_FALSE=
25852fi
25853
25854
25855
25856# settings for pmnull
25857# Check whether --enable-pmnull was given.
25858if test "${enable_pmnull+set}" = set; then :
25859  enableval=$enable_pmnull; case "${enableval}" in
25860         yes) enable_pmnull="yes" ;;
25861          no) enable_pmnull="no" ;;
25862           *) as_fn_error $? "bad value ${enableval} for --enable-pmnull" "$LINENO" 5 ;;
25863         esac
25864else
25865  enable_pmnull=no
25866
25867fi
25868
25869 if test x$enable_pmnull = xyes; then
25870  ENABLE_PMNULL_TRUE=
25871  ENABLE_PMNULL_FALSE='#'
25872else
25873  ENABLE_PMNULL_TRUE='#'
25874  ENABLE_PMNULL_FALSE=
25875fi
25876
25877
25878
25879# settings for pmnormalize
25880# Check whether --enable-pmnormalize was given.
25881if test "${enable_pmnormalize+set}" = set; then :
25882  enableval=$enable_pmnormalize; case "${enableval}" in
25883         yes) enable_pmnormalize="yes" ;;
25884          no) enable_pmnormalize="no" ;;
25885           *) as_fn_error $? "bad value ${enableval} for --enable-pmnormalize" "$LINENO" 5 ;;
25886         esac
25887else
25888  enable_pmnormalize=no
25889
25890fi
25891
25892 if test x$enable_pmnormalize = xyes; then
25893  ENABLE_PMNORMALIZE_TRUE=
25894  ENABLE_PMNORMALIZE_FALSE='#'
25895else
25896  ENABLE_PMNORMALIZE_TRUE='#'
25897  ENABLE_PMNORMALIZE_FALSE=
25898fi
25899
25900
25901
25902# settings for pmaixforwardedfrom
25903# Check whether --enable-pmaixforwardedfrom was given.
25904if test "${enable_pmaixforwardedfrom+set}" = set; then :
25905  enableval=$enable_pmaixforwardedfrom; case "${enableval}" in
25906         yes) enable_pmaixforwardedfrom="yes" ;;
25907          no) enable_pmaixforwardedfrom="no" ;;
25908           *) as_fn_error $? "bad value ${enableval} for --enable-pmaixforwardedfrom" "$LINENO" 5 ;;
25909         esac
25910else
25911  enable_pmaixforwardedfrom=no
25912
25913fi
25914
25915 if test x$enable_pmaixforwardedfrom = xyes; then
25916  ENABLE_PMAIXFORWARDEDFROM_TRUE=
25917  ENABLE_PMAIXFORWARDEDFROM_FALSE='#'
25918else
25919  ENABLE_PMAIXFORWARDEDFROM_TRUE='#'
25920  ENABLE_PMAIXFORWARDEDFROM_FALSE=
25921fi
25922
25923
25924
25925# settings for pmsnare
25926# Check whether --enable-pmsnare was given.
25927if test "${enable_pmsnare+set}" = set; then :
25928  enableval=$enable_pmsnare; case "${enableval}" in
25929         yes) enable_pmsnare="yes" ;;
25930          no) enable_pmsnare="no" ;;
25931           *) as_fn_error $? "bad value ${enableval} for --enable-pmsnare" "$LINENO" 5 ;;
25932         esac
25933else
25934  enable_pmsnare=no
25935
25936fi
25937
25938 if test x$enable_pmsnare = xyes; then
25939  ENABLE_PMSNARE_TRUE=
25940  ENABLE_PMSNARE_FALSE='#'
25941else
25942  ENABLE_PMSNARE_TRUE='#'
25943  ENABLE_PMSNARE_FALSE=
25944fi
25945
25946
25947
25948# settings for pmpanngfw
25949# Check whether --enable-pmpanngfw was given.
25950if test "${enable_pmpanngfw+set}" = set; then :
25951  enableval=$enable_pmpanngfw; case "${enableval}" in
25952         yes) enable_pmpanngfw="yes" ;;
25953          no) enable_pmpanngfw="no" ;;
25954           *) as_fn_error $? "bad value ${enableval} for --enable-pmpanngfw" "$LINENO" 5 ;;
25955         esac
25956else
25957  enable_pmpanngfw=no
25958
25959fi
25960
25961 if test x$enable_pmpanngfw = xyes; then
25962  ENABLE_PMPANNGFW_TRUE=
25963  ENABLE_PMPANNGFW_FALSE='#'
25964else
25965  ENABLE_PMPANNGFW_TRUE='#'
25966  ENABLE_PMPANNGFW_FALSE=
25967fi
25968
25969
25970
25971# settings for omruleset
25972# Check whether --enable-omruleset was given.
25973if test "${enable_omruleset+set}" = set; then :
25974  enableval=$enable_omruleset; case "${enableval}" in
25975         yes) enable_omruleset="yes" ;;
25976          no) enable_omruleset="no" ;;
25977           *) as_fn_error $? "bad value ${enableval} for --enable-omruleset" "$LINENO" 5 ;;
25978         esac
25979else
25980  enable_omruleset=no
25981
25982fi
25983
25984 if test x$enable_omruleset = xyes; then
25985  ENABLE_OMRULESET_TRUE=
25986  ENABLE_OMRULESET_FALSE='#'
25987else
25988  ENABLE_OMRULESET_TRUE='#'
25989  ENABLE_OMRULESET_FALSE=
25990fi
25991
25992
25993
25994# settings for omuxsock
25995# Check whether --enable-omuxsock was given.
25996if test "${enable_omuxsock+set}" = set; then :
25997  enableval=$enable_omuxsock; case "${enableval}" in
25998         yes) enable_omuxsock="yes" ;;
25999          no) enable_omuxsock="no" ;;
26000           *) as_fn_error $? "bad value ${enableval} for --enable-omuxsock" "$LINENO" 5 ;;
26001         esac
26002else
26003  enable_omuxsock=no
26004
26005fi
26006
26007 if test x$enable_omuxsock = xyes; then
26008  ENABLE_OMUXSOCK_TRUE=
26009  ENABLE_OMUXSOCK_FALSE='#'
26010else
26011  ENABLE_OMUXSOCK_TRUE='#'
26012  ENABLE_OMUXSOCK_FALSE=
26013fi
26014
26015
26016
26017# settings for mmsnmptrapd message modification module
26018# Check whether --enable-mmsnmptrapd was given.
26019if test "${enable_mmsnmptrapd+set}" = set; then :
26020  enableval=$enable_mmsnmptrapd; case "${enableval}" in
26021         yes) enable_mmsnmptrapd="yes" ;;
26022          no) enable_mmsnmptrapd="no" ;;
26023           *) as_fn_error $? "bad value ${enableval} for --enable-mmsnmptrapd" "$LINENO" 5 ;;
26024         esac
26025else
26026  enable_mmsnmptrapd=no
26027
26028fi
26029
26030 if test x$enable_mmsnmptrapd = xyes; then
26031  ENABLE_MMSNMPTRAPD_TRUE=
26032  ENABLE_MMSNMPTRAPD_FALSE='#'
26033else
26034  ENABLE_MMSNMPTRAPD_TRUE='#'
26035  ENABLE_MMSNMPTRAPD_FALSE=
26036fi
26037
26038
26039
26040# settings for the omhdfs;
26041# Check whether --enable-omhdfs was given.
26042if test "${enable_omhdfs+set}" = set; then :
26043  enableval=$enable_omhdfs; case "${enableval}" in
26044         yes) enable_omhdfs="yes" ;;
26045          no) enable_omhdfs="no" ;;
26046           *) as_fn_error $? "bad value ${enableval} for --enable-omhdfs" "$LINENO" 5 ;;
26047         esac
26048else
26049  enable_omhdfs=no
26050
26051fi
26052
26053if test "x$enable_omhdfs"; then
26054	for ac_header in hdfs.h hadoop/hdfs.h
26055do :
26056  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26057ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26058if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26059  cat >>confdefs.h <<_ACEOF
26060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26061_ACEOF
26062
26063fi
26064
26065done
26066
26067fi
26068 if test x$enable_omhdfs = xyes; then
26069  ENABLE_OMHDFS_TRUE=
26070  ENABLE_OMHDFS_FALSE='#'
26071else
26072  ENABLE_OMHDFS_TRUE='#'
26073  ENABLE_OMHDFS_FALSE=
26074fi
26075
26076
26077# support for kafka input output
26078# Check whether --enable-omkafka was given.
26079if test "${enable_omkafka+set}" = set; then :
26080  enableval=$enable_omkafka; case "${enableval}" in
26081         yes) enable_omkafka="yes" ;;
26082          no) enable_omkafka="no" ;;
26083         optional) enable_omkafka="optional" ;;
26084           *) as_fn_error $? "bad value ${enableval} for --enable-omkafka" "$LINENO" 5 ;;
26085         esac
26086else
26087  enable_omkafka=no
26088
26089fi
26090
26091# Check whether --enable-imkafka was given.
26092if test "${enable_imkafka+set}" = set; then :
26093  enableval=$enable_imkafka; case "${enableval}" in
26094         yes) enable_imkafka="yes" ;;
26095          no) enable_imkafka="no" ;;
26096         optional) enable_imkafka="optional" ;;
26097           *) as_fn_error $? "bad value ${enableval} for --enable-imkafka" "$LINENO" 5 ;;
26098         esac
26099else
26100  enable_imkafka=no
26101
26102fi
26103
26104
26105# Check whether --enable-kafka_tests was given.
26106if test "${enable_kafka_tests+set}" = set; then :
26107  enableval=$enable_kafka_tests; case "${enableval}" in
26108         yes) enable_kafka_tests="yes" ;;
26109          no) enable_kafka_tests="no" ;;
26110           *) as_fn_error $? "bad value ${enableval} for --enable-kafka-tests" "$LINENO" 5 ;;
26111         esac
26112else
26113  enable_kafka_tests=no
26114
26115fi
26116
26117 if test x$enable_kafka_tests = xyes; then
26118  ENABLE_KAFKA_TESTS_TRUE=
26119  ENABLE_KAFKA_TESTS_FALSE='#'
26120else
26121  ENABLE_KAFKA_TESTS_TRUE='#'
26122  ENABLE_KAFKA_TESTS_FALSE=
26123fi
26124
26125
26126# Check whether --enable-kafka_static was given.
26127if test "${enable_kafka_static+set}" = set; then :
26128  enableval=$enable_kafka_static; case "${enableval}" in
26129         yes) enable_kafka_static="yes" ;;
26130          no) enable_kafka_static="no" ;;
26131           *) as_fn_error $? "bad value ${enableval} for --enable-kafka-static" "$LINENO" 5 ;;
26132         esac
26133else
26134  enable_kafka_static=no
26135
26136fi
26137
26138 if test x$enable_kafka_static = xyes; then
26139  ENABLE_KAFKA_STATIC_TRUE=
26140  ENABLE_KAFKA_STATIC_FALSE='#'
26141else
26142  ENABLE_KAFKA_STATIC_TRUE='#'
26143  ENABLE_KAFKA_STATIC_FALSE=
26144fi
26145
26146
26147# omkafka works with older library
26148omkafka_use_dummy="no"
26149if test "$enable_omkafka" = "yes" -o "$enable_omkafka" = "optional"; then
26150
26151pkg_failed=no
26152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRDKAFKA" >&5
26153$as_echo_n "checking for LIBRDKAFKA... " >&6; }
26154
26155if test -n "$LIBRDKAFKA_CFLAGS"; then
26156    pkg_cv_LIBRDKAFKA_CFLAGS="$LIBRDKAFKA_CFLAGS"
26157 elif test -n "$PKG_CONFIG"; then
26158    if test -n "$PKG_CONFIG" && \
26159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= 0.9.1\""; } >&5
26160  ($PKG_CONFIG --exists --print-errors "rdkafka >= 0.9.1") 2>&5
26161  ac_status=$?
26162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163  test $ac_status = 0; }; then
26164  pkg_cv_LIBRDKAFKA_CFLAGS=`$PKG_CONFIG --cflags "rdkafka >= 0.9.1" 2>/dev/null`
26165		      test "x$?" != "x0" && pkg_failed=yes
26166else
26167  pkg_failed=yes
26168fi
26169 else
26170    pkg_failed=untried
26171fi
26172if test -n "$LIBRDKAFKA_LIBS"; then
26173    pkg_cv_LIBRDKAFKA_LIBS="$LIBRDKAFKA_LIBS"
26174 elif test -n "$PKG_CONFIG"; then
26175    if test -n "$PKG_CONFIG" && \
26176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= 0.9.1\""; } >&5
26177  ($PKG_CONFIG --exists --print-errors "rdkafka >= 0.9.1") 2>&5
26178  ac_status=$?
26179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180  test $ac_status = 0; }; then
26181  pkg_cv_LIBRDKAFKA_LIBS=`$PKG_CONFIG --libs "rdkafka >= 0.9.1" 2>/dev/null`
26182		      test "x$?" != "x0" && pkg_failed=yes
26183else
26184  pkg_failed=yes
26185fi
26186 else
26187    pkg_failed=untried
26188fi
26189
26190
26191
26192if test $pkg_failed = yes; then
26193   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26194$as_echo "no" >&6; }
26195
26196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26197        _pkg_short_errors_supported=yes
26198else
26199        _pkg_short_errors_supported=no
26200fi
26201        if test $_pkg_short_errors_supported = yes; then
26202	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rdkafka >= 0.9.1" 2>&1`
26203        else
26204	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rdkafka >= 0.9.1" 2>&1`
26205        fi
26206	# Put the nasty error message in config.log where it belongs
26207	echo "$LIBRDKAFKA_PKG_ERRORS" >&5
26208
26209
26210
26211pkg_failed=no
26212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRDKAFKA" >&5
26213$as_echo_n "checking for LIBRDKAFKA... " >&6; }
26214
26215if test -n "$LIBRDKAFKA_CFLAGS"; then
26216    pkg_cv_LIBRDKAFKA_CFLAGS="$LIBRDKAFKA_CFLAGS"
26217 elif test -n "$PKG_CONFIG"; then
26218    if test -n "$PKG_CONFIG" && \
26219    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librdkafka\""; } >&5
26220  ($PKG_CONFIG --exists --print-errors "librdkafka") 2>&5
26221  ac_status=$?
26222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26223  test $ac_status = 0; }; then
26224  pkg_cv_LIBRDKAFKA_CFLAGS=`$PKG_CONFIG --cflags "librdkafka" 2>/dev/null`
26225		      test "x$?" != "x0" && pkg_failed=yes
26226else
26227  pkg_failed=yes
26228fi
26229 else
26230    pkg_failed=untried
26231fi
26232if test -n "$LIBRDKAFKA_LIBS"; then
26233    pkg_cv_LIBRDKAFKA_LIBS="$LIBRDKAFKA_LIBS"
26234 elif test -n "$PKG_CONFIG"; then
26235    if test -n "$PKG_CONFIG" && \
26236    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librdkafka\""; } >&5
26237  ($PKG_CONFIG --exists --print-errors "librdkafka") 2>&5
26238  ac_status=$?
26239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240  test $ac_status = 0; }; then
26241  pkg_cv_LIBRDKAFKA_LIBS=`$PKG_CONFIG --libs "librdkafka" 2>/dev/null`
26242		      test "x$?" != "x0" && pkg_failed=yes
26243else
26244  pkg_failed=yes
26245fi
26246 else
26247    pkg_failed=untried
26248fi
26249
26250
26251
26252if test $pkg_failed = yes; then
26253   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26254$as_echo "no" >&6; }
26255
26256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26257        _pkg_short_errors_supported=yes
26258else
26259        _pkg_short_errors_supported=no
26260fi
26261        if test $_pkg_short_errors_supported = yes; then
26262	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librdkafka" 2>&1`
26263        else
26264	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librdkafka" 2>&1`
26265        fi
26266	# Put the nasty error message in config.log where it belongs
26267	echo "$LIBRDKAFKA_PKG_ERRORS" >&5
26268
26269
26270			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_last_error in -lrdkafka" >&5
26271$as_echo_n "checking for rd_kafka_last_error in -lrdkafka... " >&6; }
26272if ${ac_cv_lib_rdkafka_rd_kafka_last_error+:} false; then :
26273  $as_echo_n "(cached) " >&6
26274else
26275  ac_check_lib_save_LIBS=$LIBS
26276LIBS="-lrdkafka  $LIBS"
26277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278/* end confdefs.h.  */
26279
26280/* Override any GCC internal prototype to avoid an error.
26281   Use char because int might match the return type of a GCC
26282   builtin and then its argument prototype would still apply.  */
26283#ifdef __cplusplus
26284extern "C"
26285#endif
26286char rd_kafka_last_error ();
26287int
26288main ()
26289{
26290return rd_kafka_last_error ();
26291  ;
26292  return 0;
26293}
26294_ACEOF
26295if ac_fn_c_try_link "$LINENO"; then :
26296  ac_cv_lib_rdkafka_rd_kafka_last_error=yes
26297else
26298  ac_cv_lib_rdkafka_rd_kafka_last_error=no
26299fi
26300rm -f core conftest.err conftest.$ac_objext \
26301    conftest$ac_exeext conftest.$ac_ext
26302LIBS=$ac_check_lib_save_LIBS
26303fi
26304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_last_error" >&5
26305$as_echo "$ac_cv_lib_rdkafka_rd_kafka_last_error" >&6; }
26306if test "x$ac_cv_lib_rdkafka_rd_kafka_last_error" = xyes; then :
26307
26308				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librdkafka is missing but library present, using -lrdkafka" >&5
26309$as_echo "$as_me: WARNING: librdkafka is missing but library present, using -lrdkafka" >&2;}
26310				LIBRDKAFKA_LIBS=-lrdkafka
26311
26312else
26313
26314				if test "$enable_omkafka" = "yes"; then :
26315  as_fn_error $? "could not find rdkafka library" "$LINENO" 5
26316
26317fi
26318				{ $as_echo "$as_me:${as_lineno-$LINENO}: omkafka: no suiteable build environment, use omkafka dummy" >&5
26319$as_echo "$as_me: omkafka: no suiteable build environment, use omkafka dummy" >&6;}
26320				omkafka_use_dummy=yes
26321
26322$as_echo "#define ENABLE_OMKAFKA_DUMMY 1" >>confdefs.h
26323
26324
26325fi
26326
26327
26328elif test $pkg_failed = untried; then
26329     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26330$as_echo "no" >&6; }
26331
26332			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_last_error in -lrdkafka" >&5
26333$as_echo_n "checking for rd_kafka_last_error in -lrdkafka... " >&6; }
26334if ${ac_cv_lib_rdkafka_rd_kafka_last_error+:} false; then :
26335  $as_echo_n "(cached) " >&6
26336else
26337  ac_check_lib_save_LIBS=$LIBS
26338LIBS="-lrdkafka  $LIBS"
26339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26340/* end confdefs.h.  */
26341
26342/* Override any GCC internal prototype to avoid an error.
26343   Use char because int might match the return type of a GCC
26344   builtin and then its argument prototype would still apply.  */
26345#ifdef __cplusplus
26346extern "C"
26347#endif
26348char rd_kafka_last_error ();
26349int
26350main ()
26351{
26352return rd_kafka_last_error ();
26353  ;
26354  return 0;
26355}
26356_ACEOF
26357if ac_fn_c_try_link "$LINENO"; then :
26358  ac_cv_lib_rdkafka_rd_kafka_last_error=yes
26359else
26360  ac_cv_lib_rdkafka_rd_kafka_last_error=no
26361fi
26362rm -f core conftest.err conftest.$ac_objext \
26363    conftest$ac_exeext conftest.$ac_ext
26364LIBS=$ac_check_lib_save_LIBS
26365fi
26366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_last_error" >&5
26367$as_echo "$ac_cv_lib_rdkafka_rd_kafka_last_error" >&6; }
26368if test "x$ac_cv_lib_rdkafka_rd_kafka_last_error" = xyes; then :
26369
26370				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librdkafka is missing but library present, using -lrdkafka" >&5
26371$as_echo "$as_me: WARNING: librdkafka is missing but library present, using -lrdkafka" >&2;}
26372				LIBRDKAFKA_LIBS=-lrdkafka
26373
26374else
26375
26376				if test "$enable_omkafka" = "yes"; then :
26377  as_fn_error $? "could not find rdkafka library" "$LINENO" 5
26378
26379fi
26380				{ $as_echo "$as_me:${as_lineno-$LINENO}: omkafka: no suiteable build environment, use omkafka dummy" >&5
26381$as_echo "$as_me: omkafka: no suiteable build environment, use omkafka dummy" >&6;}
26382				omkafka_use_dummy=yes
26383
26384$as_echo "#define ENABLE_OMKAFKA_DUMMY 1" >>confdefs.h
26385
26386
26387fi
26388
26389
26390else
26391	LIBRDKAFKA_CFLAGS=$pkg_cv_LIBRDKAFKA_CFLAGS
26392	LIBRDKAFKA_LIBS=$pkg_cv_LIBRDKAFKA_LIBS
26393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26394$as_echo "yes" >&6; }
26395
26396fi
26397
26398elif test $pkg_failed = untried; then
26399     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26400$as_echo "no" >&6; }
26401
26402
26403pkg_failed=no
26404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRDKAFKA" >&5
26405$as_echo_n "checking for LIBRDKAFKA... " >&6; }
26406
26407if test -n "$LIBRDKAFKA_CFLAGS"; then
26408    pkg_cv_LIBRDKAFKA_CFLAGS="$LIBRDKAFKA_CFLAGS"
26409 elif test -n "$PKG_CONFIG"; then
26410    if test -n "$PKG_CONFIG" && \
26411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librdkafka\""; } >&5
26412  ($PKG_CONFIG --exists --print-errors "librdkafka") 2>&5
26413  ac_status=$?
26414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26415  test $ac_status = 0; }; then
26416  pkg_cv_LIBRDKAFKA_CFLAGS=`$PKG_CONFIG --cflags "librdkafka" 2>/dev/null`
26417		      test "x$?" != "x0" && pkg_failed=yes
26418else
26419  pkg_failed=yes
26420fi
26421 else
26422    pkg_failed=untried
26423fi
26424if test -n "$LIBRDKAFKA_LIBS"; then
26425    pkg_cv_LIBRDKAFKA_LIBS="$LIBRDKAFKA_LIBS"
26426 elif test -n "$PKG_CONFIG"; then
26427    if test -n "$PKG_CONFIG" && \
26428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librdkafka\""; } >&5
26429  ($PKG_CONFIG --exists --print-errors "librdkafka") 2>&5
26430  ac_status=$?
26431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432  test $ac_status = 0; }; then
26433  pkg_cv_LIBRDKAFKA_LIBS=`$PKG_CONFIG --libs "librdkafka" 2>/dev/null`
26434		      test "x$?" != "x0" && pkg_failed=yes
26435else
26436  pkg_failed=yes
26437fi
26438 else
26439    pkg_failed=untried
26440fi
26441
26442
26443
26444if test $pkg_failed = yes; then
26445   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26446$as_echo "no" >&6; }
26447
26448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26449        _pkg_short_errors_supported=yes
26450else
26451        _pkg_short_errors_supported=no
26452fi
26453        if test $_pkg_short_errors_supported = yes; then
26454	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librdkafka" 2>&1`
26455        else
26456	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librdkafka" 2>&1`
26457        fi
26458	# Put the nasty error message in config.log where it belongs
26459	echo "$LIBRDKAFKA_PKG_ERRORS" >&5
26460
26461
26462			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_last_error in -lrdkafka" >&5
26463$as_echo_n "checking for rd_kafka_last_error in -lrdkafka... " >&6; }
26464if ${ac_cv_lib_rdkafka_rd_kafka_last_error+:} false; then :
26465  $as_echo_n "(cached) " >&6
26466else
26467  ac_check_lib_save_LIBS=$LIBS
26468LIBS="-lrdkafka  $LIBS"
26469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26470/* end confdefs.h.  */
26471
26472/* Override any GCC internal prototype to avoid an error.
26473   Use char because int might match the return type of a GCC
26474   builtin and then its argument prototype would still apply.  */
26475#ifdef __cplusplus
26476extern "C"
26477#endif
26478char rd_kafka_last_error ();
26479int
26480main ()
26481{
26482return rd_kafka_last_error ();
26483  ;
26484  return 0;
26485}
26486_ACEOF
26487if ac_fn_c_try_link "$LINENO"; then :
26488  ac_cv_lib_rdkafka_rd_kafka_last_error=yes
26489else
26490  ac_cv_lib_rdkafka_rd_kafka_last_error=no
26491fi
26492rm -f core conftest.err conftest.$ac_objext \
26493    conftest$ac_exeext conftest.$ac_ext
26494LIBS=$ac_check_lib_save_LIBS
26495fi
26496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_last_error" >&5
26497$as_echo "$ac_cv_lib_rdkafka_rd_kafka_last_error" >&6; }
26498if test "x$ac_cv_lib_rdkafka_rd_kafka_last_error" = xyes; then :
26499
26500				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librdkafka is missing but library present, using -lrdkafka" >&5
26501$as_echo "$as_me: WARNING: librdkafka is missing but library present, using -lrdkafka" >&2;}
26502				LIBRDKAFKA_LIBS=-lrdkafka
26503
26504else
26505
26506				if test "$enable_omkafka" = "yes"; then :
26507  as_fn_error $? "could not find rdkafka library" "$LINENO" 5
26508
26509fi
26510				{ $as_echo "$as_me:${as_lineno-$LINENO}: omkafka: no suiteable build environment, use omkafka dummy" >&5
26511$as_echo "$as_me: omkafka: no suiteable build environment, use omkafka dummy" >&6;}
26512				omkafka_use_dummy=yes
26513
26514$as_echo "#define ENABLE_OMKAFKA_DUMMY 1" >>confdefs.h
26515
26516
26517fi
26518
26519
26520elif test $pkg_failed = untried; then
26521     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26522$as_echo "no" >&6; }
26523
26524			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_last_error in -lrdkafka" >&5
26525$as_echo_n "checking for rd_kafka_last_error in -lrdkafka... " >&6; }
26526if ${ac_cv_lib_rdkafka_rd_kafka_last_error+:} false; then :
26527  $as_echo_n "(cached) " >&6
26528else
26529  ac_check_lib_save_LIBS=$LIBS
26530LIBS="-lrdkafka  $LIBS"
26531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532/* end confdefs.h.  */
26533
26534/* Override any GCC internal prototype to avoid an error.
26535   Use char because int might match the return type of a GCC
26536   builtin and then its argument prototype would still apply.  */
26537#ifdef __cplusplus
26538extern "C"
26539#endif
26540char rd_kafka_last_error ();
26541int
26542main ()
26543{
26544return rd_kafka_last_error ();
26545  ;
26546  return 0;
26547}
26548_ACEOF
26549if ac_fn_c_try_link "$LINENO"; then :
26550  ac_cv_lib_rdkafka_rd_kafka_last_error=yes
26551else
26552  ac_cv_lib_rdkafka_rd_kafka_last_error=no
26553fi
26554rm -f core conftest.err conftest.$ac_objext \
26555    conftest$ac_exeext conftest.$ac_ext
26556LIBS=$ac_check_lib_save_LIBS
26557fi
26558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_last_error" >&5
26559$as_echo "$ac_cv_lib_rdkafka_rd_kafka_last_error" >&6; }
26560if test "x$ac_cv_lib_rdkafka_rd_kafka_last_error" = xyes; then :
26561
26562				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librdkafka is missing but library present, using -lrdkafka" >&5
26563$as_echo "$as_me: WARNING: librdkafka is missing but library present, using -lrdkafka" >&2;}
26564				LIBRDKAFKA_LIBS=-lrdkafka
26565
26566else
26567
26568				if test "$enable_omkafka" = "yes"; then :
26569  as_fn_error $? "could not find rdkafka library" "$LINENO" 5
26570
26571fi
26572				{ $as_echo "$as_me:${as_lineno-$LINENO}: omkafka: no suiteable build environment, use omkafka dummy" >&5
26573$as_echo "$as_me: omkafka: no suiteable build environment, use omkafka dummy" >&6;}
26574				omkafka_use_dummy=yes
26575
26576$as_echo "#define ENABLE_OMKAFKA_DUMMY 1" >>confdefs.h
26577
26578
26579fi
26580
26581
26582else
26583	LIBRDKAFKA_CFLAGS=$pkg_cv_LIBRDKAFKA_CFLAGS
26584	LIBRDKAFKA_LIBS=$pkg_cv_LIBRDKAFKA_LIBS
26585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26586$as_echo "yes" >&6; }
26587
26588fi
26589
26590else
26591	LIBRDKAFKA_CFLAGS=$pkg_cv_LIBRDKAFKA_CFLAGS
26592	LIBRDKAFKA_LIBS=$pkg_cv_LIBRDKAFKA_LIBS
26593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26594$as_echo "yes" >&6; }
26595
26596fi
26597fi
26598 if test x$omkafka_use_dummy = xyes; then
26599  OMKAFKA_USE_DUMMY_TRUE=
26600  OMKAFKA_USE_DUMMY_FALSE='#'
26601else
26602  OMKAFKA_USE_DUMMY_TRUE='#'
26603  OMKAFKA_USE_DUMMY_FALSE=
26604fi
26605
26606if test "$enable_omkafka" = "yes" -o "$enable_omkafka" = "optional" && test "$omkafka_use_dummy" = "no"; then
26607	for ac_header in librdkafka/rdkafka.h
26608do :
26609  ac_fn_c_check_header_mongrel "$LINENO" "librdkafka/rdkafka.h" "ac_cv_header_librdkafka_rdkafka_h" "$ac_includes_default"
26610if test "x$ac_cv_header_librdkafka_rdkafka_h" = xyes; then :
26611  cat >>confdefs.h <<_ACEOF
26612#define HAVE_LIBRDKAFKA_RDKAFKA_H 1
26613_ACEOF
26614
26615fi
26616
26617done
26618
26619
26620	# Add additional dependencies if statically linking rdkafka
26621	if test "x$enable_kafka_static" = "xyes"; then
26622
26623pkg_failed=no
26624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLZ4" >&5
26625$as_echo_n "checking for LIBLZ4... " >&6; }
26626
26627if test -n "$LIBLZ4_CFLAGS"; then
26628    pkg_cv_LIBLZ4_CFLAGS="$LIBLZ4_CFLAGS"
26629 elif test -n "$PKG_CONFIG"; then
26630    if test -n "$PKG_CONFIG" && \
26631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
26632  ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
26633  ac_status=$?
26634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26635  test $ac_status = 0; }; then
26636  pkg_cv_LIBLZ4_CFLAGS=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
26637		      test "x$?" != "x0" && pkg_failed=yes
26638else
26639  pkg_failed=yes
26640fi
26641 else
26642    pkg_failed=untried
26643fi
26644if test -n "$LIBLZ4_LIBS"; then
26645    pkg_cv_LIBLZ4_LIBS="$LIBLZ4_LIBS"
26646 elif test -n "$PKG_CONFIG"; then
26647    if test -n "$PKG_CONFIG" && \
26648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
26649  ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
26650  ac_status=$?
26651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652  test $ac_status = 0; }; then
26653  pkg_cv_LIBLZ4_LIBS=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
26654		      test "x$?" != "x0" && pkg_failed=yes
26655else
26656  pkg_failed=yes
26657fi
26658 else
26659    pkg_failed=untried
26660fi
26661
26662
26663
26664if test $pkg_failed = yes; then
26665   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26666$as_echo "no" >&6; }
26667
26668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26669        _pkg_short_errors_supported=yes
26670else
26671        _pkg_short_errors_supported=no
26672fi
26673        if test $_pkg_short_errors_supported = yes; then
26674	        LIBLZ4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
26675        else
26676	        LIBLZ4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
26677        fi
26678	# Put the nasty error message in config.log where it belongs
26679	echo "$LIBLZ4_PKG_ERRORS" >&5
26680
26681
26682			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress in -llz4" >&5
26683$as_echo_n "checking for LZ4_compress in -llz4... " >&6; }
26684if ${ac_cv_lib_lz4_LZ4_compress+:} false; then :
26685  $as_echo_n "(cached) " >&6
26686else
26687  ac_check_lib_save_LIBS=$LIBS
26688LIBS="-llz4  $LIBS"
26689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690/* end confdefs.h.  */
26691
26692/* Override any GCC internal prototype to avoid an error.
26693   Use char because int might match the return type of a GCC
26694   builtin and then its argument prototype would still apply.  */
26695#ifdef __cplusplus
26696extern "C"
26697#endif
26698char LZ4_compress ();
26699int
26700main ()
26701{
26702return LZ4_compress ();
26703  ;
26704  return 0;
26705}
26706_ACEOF
26707if ac_fn_c_try_link "$LINENO"; then :
26708  ac_cv_lib_lz4_LZ4_compress=yes
26709else
26710  ac_cv_lib_lz4_LZ4_compress=no
26711fi
26712rm -f core conftest.err conftest.$ac_objext \
26713    conftest$ac_exeext conftest.$ac_ext
26714LIBS=$ac_check_lib_save_LIBS
26715fi
26716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress" >&5
26717$as_echo "$ac_cv_lib_lz4_LZ4_compress" >&6; }
26718if test "x$ac_cv_lib_lz4_LZ4_compress" = xyes; then :
26719
26720				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: liblz4 is missing but library present, using -llz4" >&5
26721$as_echo "$as_me: WARNING: liblz4 is missing but library present, using -llz4" >&2;}
26722				LIBRDKAFKA_LIBS=-llz4
26723
26724else
26725
26726				as_fn_error $? "could not find liblz4 library" "$LINENO" 5
26727
26728fi
26729
26730
26731elif test $pkg_failed = untried; then
26732     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26733$as_echo "no" >&6; }
26734
26735			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress in -llz4" >&5
26736$as_echo_n "checking for LZ4_compress in -llz4... " >&6; }
26737if ${ac_cv_lib_lz4_LZ4_compress+:} false; then :
26738  $as_echo_n "(cached) " >&6
26739else
26740  ac_check_lib_save_LIBS=$LIBS
26741LIBS="-llz4  $LIBS"
26742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26743/* end confdefs.h.  */
26744
26745/* Override any GCC internal prototype to avoid an error.
26746   Use char because int might match the return type of a GCC
26747   builtin and then its argument prototype would still apply.  */
26748#ifdef __cplusplus
26749extern "C"
26750#endif
26751char LZ4_compress ();
26752int
26753main ()
26754{
26755return LZ4_compress ();
26756  ;
26757  return 0;
26758}
26759_ACEOF
26760if ac_fn_c_try_link "$LINENO"; then :
26761  ac_cv_lib_lz4_LZ4_compress=yes
26762else
26763  ac_cv_lib_lz4_LZ4_compress=no
26764fi
26765rm -f core conftest.err conftest.$ac_objext \
26766    conftest$ac_exeext conftest.$ac_ext
26767LIBS=$ac_check_lib_save_LIBS
26768fi
26769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress" >&5
26770$as_echo "$ac_cv_lib_lz4_LZ4_compress" >&6; }
26771if test "x$ac_cv_lib_lz4_LZ4_compress" = xyes; then :
26772
26773				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: liblz4 is missing but library present, using -llz4" >&5
26774$as_echo "$as_me: WARNING: liblz4 is missing but library present, using -llz4" >&2;}
26775				LIBRDKAFKA_LIBS=-llz4
26776
26777else
26778
26779				as_fn_error $? "could not find liblz4 library" "$LINENO" 5
26780
26781fi
26782
26783
26784else
26785	LIBLZ4_CFLAGS=$pkg_cv_LIBLZ4_CFLAGS
26786	LIBLZ4_LIBS=$pkg_cv_LIBLZ4_LIBS
26787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26788$as_echo "yes" >&6; }
26789
26790fi
26791	fi
26792fi
26793
26794imkafka_use_dummy="no"
26795# imkafka needs newer library
26796if test "x$enable_imkafka" = "xyes" -o "$enable_imkafka" = "optional"; then
26797
26798pkg_failed=no
26799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRDKAFKA" >&5
26800$as_echo_n "checking for LIBRDKAFKA... " >&6; }
26801
26802if test -n "$LIBRDKAFKA_CFLAGS"; then
26803    pkg_cv_LIBRDKAFKA_CFLAGS="$LIBRDKAFKA_CFLAGS"
26804 elif test -n "$PKG_CONFIG"; then
26805    if test -n "$PKG_CONFIG" && \
26806    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= 0.9.1\""; } >&5
26807  ($PKG_CONFIG --exists --print-errors "rdkafka >= 0.9.1") 2>&5
26808  ac_status=$?
26809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810  test $ac_status = 0; }; then
26811  pkg_cv_LIBRDKAFKA_CFLAGS=`$PKG_CONFIG --cflags "rdkafka >= 0.9.1" 2>/dev/null`
26812		      test "x$?" != "x0" && pkg_failed=yes
26813else
26814  pkg_failed=yes
26815fi
26816 else
26817    pkg_failed=untried
26818fi
26819if test -n "$LIBRDKAFKA_LIBS"; then
26820    pkg_cv_LIBRDKAFKA_LIBS="$LIBRDKAFKA_LIBS"
26821 elif test -n "$PKG_CONFIG"; then
26822    if test -n "$PKG_CONFIG" && \
26823    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= 0.9.1\""; } >&5
26824  ($PKG_CONFIG --exists --print-errors "rdkafka >= 0.9.1") 2>&5
26825  ac_status=$?
26826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26827  test $ac_status = 0; }; then
26828  pkg_cv_LIBRDKAFKA_LIBS=`$PKG_CONFIG --libs "rdkafka >= 0.9.1" 2>/dev/null`
26829		      test "x$?" != "x0" && pkg_failed=yes
26830else
26831  pkg_failed=yes
26832fi
26833 else
26834    pkg_failed=untried
26835fi
26836
26837
26838
26839if test $pkg_failed = yes; then
26840   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26841$as_echo "no" >&6; }
26842
26843if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26844        _pkg_short_errors_supported=yes
26845else
26846        _pkg_short_errors_supported=no
26847fi
26848        if test $_pkg_short_errors_supported = yes; then
26849	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rdkafka >= 0.9.1" 2>&1`
26850        else
26851	        LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rdkafka >= 0.9.1" 2>&1`
26852        fi
26853	# Put the nasty error message in config.log where it belongs
26854	echo "$LIBRDKAFKA_PKG_ERRORS" >&5
26855
26856
26857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_consumer_poll in -lrdkafka" >&5
26858$as_echo_n "checking for rd_kafka_consumer_poll in -lrdkafka... " >&6; }
26859if ${ac_cv_lib_rdkafka_rd_kafka_consumer_poll+:} false; then :
26860  $as_echo_n "(cached) " >&6
26861else
26862  ac_check_lib_save_LIBS=$LIBS
26863LIBS="-lrdkafka  $LIBS"
26864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865/* end confdefs.h.  */
26866
26867/* Override any GCC internal prototype to avoid an error.
26868   Use char because int might match the return type of a GCC
26869   builtin and then its argument prototype would still apply.  */
26870#ifdef __cplusplus
26871extern "C"
26872#endif
26873char rd_kafka_consumer_poll ();
26874int
26875main ()
26876{
26877return rd_kafka_consumer_poll ();
26878  ;
26879  return 0;
26880}
26881_ACEOF
26882if ac_fn_c_try_link "$LINENO"; then :
26883  ac_cv_lib_rdkafka_rd_kafka_consumer_poll=yes
26884else
26885  ac_cv_lib_rdkafka_rd_kafka_consumer_poll=no
26886fi
26887rm -f core conftest.err conftest.$ac_objext \
26888    conftest$ac_exeext conftest.$ac_ext
26889LIBS=$ac_check_lib_save_LIBS
26890fi
26891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_consumer_poll" >&5
26892$as_echo "$ac_cv_lib_rdkafka_rd_kafka_consumer_poll" >&6; }
26893if test "x$ac_cv_lib_rdkafka_rd_kafka_consumer_poll" = xyes; then :
26894
26895			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librdkafka is missing but library present, using -lrdkafka" >&5
26896$as_echo "$as_me: WARNING: librdkafka is missing but library present, using -lrdkafka" >&2;}
26897			LIBRDKAFKA_LIBS=-lrdkafka
26898
26899else
26900
26901			if test "$enable_imkafka" = "yes"; then :
26902  as_fn_error $? "could not find sufficiently current rdkafka library" "$LINENO" 5
26903
26904fi
26905			{ $as_echo "$as_me:${as_lineno-$LINENO}: imkafka: no suiteable build environment, use imkafka dummy" >&5
26906$as_echo "$as_me: imkafka: no suiteable build environment, use imkafka dummy" >&6;}
26907			imkafka_use_dummy=yes
26908
26909$as_echo "#define ENABLE_IMKAFKA_DUMMY 1" >>confdefs.h
26910
26911
26912fi
26913
26914
26915elif test $pkg_failed = untried; then
26916     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26917$as_echo "no" >&6; }
26918
26919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_consumer_poll in -lrdkafka" >&5
26920$as_echo_n "checking for rd_kafka_consumer_poll in -lrdkafka... " >&6; }
26921if ${ac_cv_lib_rdkafka_rd_kafka_consumer_poll+:} false; then :
26922  $as_echo_n "(cached) " >&6
26923else
26924  ac_check_lib_save_LIBS=$LIBS
26925LIBS="-lrdkafka  $LIBS"
26926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26927/* end confdefs.h.  */
26928
26929/* Override any GCC internal prototype to avoid an error.
26930   Use char because int might match the return type of a GCC
26931   builtin and then its argument prototype would still apply.  */
26932#ifdef __cplusplus
26933extern "C"
26934#endif
26935char rd_kafka_consumer_poll ();
26936int
26937main ()
26938{
26939return rd_kafka_consumer_poll ();
26940  ;
26941  return 0;
26942}
26943_ACEOF
26944if ac_fn_c_try_link "$LINENO"; then :
26945  ac_cv_lib_rdkafka_rd_kafka_consumer_poll=yes
26946else
26947  ac_cv_lib_rdkafka_rd_kafka_consumer_poll=no
26948fi
26949rm -f core conftest.err conftest.$ac_objext \
26950    conftest$ac_exeext conftest.$ac_ext
26951LIBS=$ac_check_lib_save_LIBS
26952fi
26953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_consumer_poll" >&5
26954$as_echo "$ac_cv_lib_rdkafka_rd_kafka_consumer_poll" >&6; }
26955if test "x$ac_cv_lib_rdkafka_rd_kafka_consumer_poll" = xyes; then :
26956
26957			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librdkafka is missing but library present, using -lrdkafka" >&5
26958$as_echo "$as_me: WARNING: librdkafka is missing but library present, using -lrdkafka" >&2;}
26959			LIBRDKAFKA_LIBS=-lrdkafka
26960
26961else
26962
26963			if test "$enable_imkafka" = "yes"; then :
26964  as_fn_error $? "could not find sufficiently current rdkafka library" "$LINENO" 5
26965
26966fi
26967			{ $as_echo "$as_me:${as_lineno-$LINENO}: imkafka: no suiteable build environment, use imkafka dummy" >&5
26968$as_echo "$as_me: imkafka: no suiteable build environment, use imkafka dummy" >&6;}
26969			imkafka_use_dummy=yes
26970
26971$as_echo "#define ENABLE_IMKAFKA_DUMMY 1" >>confdefs.h
26972
26973
26974fi
26975
26976
26977else
26978	LIBRDKAFKA_CFLAGS=$pkg_cv_LIBRDKAFKA_CFLAGS
26979	LIBRDKAFKA_LIBS=$pkg_cv_LIBRDKAFKA_LIBS
26980        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26981$as_echo "yes" >&6; }
26982
26983fi
26984fi
26985 if test x$imkafka_use_dummy = xyes; then
26986  IMKAFKA_USE_DUMMY_TRUE=
26987  IMKAFKA_USE_DUMMY_FALSE='#'
26988else
26989  IMKAFKA_USE_DUMMY_TRUE='#'
26990  IMKAFKA_USE_DUMMY_FALSE=
26991fi
26992
26993if test "$enable_imkafka" = "yes" -o "$enable_imkafka" = "optional" && test "$imkafka_use_dummy" = "no"; then
26994	for ac_header in librdkafka/rdkafka.h
26995do :
26996  ac_fn_c_check_header_mongrel "$LINENO" "librdkafka/rdkafka.h" "ac_cv_header_librdkafka_rdkafka_h" "$ac_includes_default"
26997if test "x$ac_cv_header_librdkafka_rdkafka_h" = xyes; then :
26998  cat >>confdefs.h <<_ACEOF
26999#define HAVE_LIBRDKAFKA_RDKAFKA_H 1
27000_ACEOF
27001
27002fi
27003
27004done
27005
27006
27007	# Add additional dependencies if statically linking rdkafka
27008	if test "x$enable_kafka_static" = "xyes"; then
27009
27010pkg_failed=no
27011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLZ4" >&5
27012$as_echo_n "checking for LIBLZ4... " >&6; }
27013
27014if test -n "$LIBLZ4_CFLAGS"; then
27015    pkg_cv_LIBLZ4_CFLAGS="$LIBLZ4_CFLAGS"
27016 elif test -n "$PKG_CONFIG"; then
27017    if test -n "$PKG_CONFIG" && \
27018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
27019  ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
27020  ac_status=$?
27021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27022  test $ac_status = 0; }; then
27023  pkg_cv_LIBLZ4_CFLAGS=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
27024		      test "x$?" != "x0" && pkg_failed=yes
27025else
27026  pkg_failed=yes
27027fi
27028 else
27029    pkg_failed=untried
27030fi
27031if test -n "$LIBLZ4_LIBS"; then
27032    pkg_cv_LIBLZ4_LIBS="$LIBLZ4_LIBS"
27033 elif test -n "$PKG_CONFIG"; then
27034    if test -n "$PKG_CONFIG" && \
27035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
27036  ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
27037  ac_status=$?
27038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27039  test $ac_status = 0; }; then
27040  pkg_cv_LIBLZ4_LIBS=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
27041		      test "x$?" != "x0" && pkg_failed=yes
27042else
27043  pkg_failed=yes
27044fi
27045 else
27046    pkg_failed=untried
27047fi
27048
27049
27050
27051if test $pkg_failed = yes; then
27052   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27053$as_echo "no" >&6; }
27054
27055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27056        _pkg_short_errors_supported=yes
27057else
27058        _pkg_short_errors_supported=no
27059fi
27060        if test $_pkg_short_errors_supported = yes; then
27061	        LIBLZ4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
27062        else
27063	        LIBLZ4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
27064        fi
27065	# Put the nasty error message in config.log where it belongs
27066	echo "$LIBLZ4_PKG_ERRORS" >&5
27067
27068
27069			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress in -llz4" >&5
27070$as_echo_n "checking for LZ4_compress in -llz4... " >&6; }
27071if ${ac_cv_lib_lz4_LZ4_compress+:} false; then :
27072  $as_echo_n "(cached) " >&6
27073else
27074  ac_check_lib_save_LIBS=$LIBS
27075LIBS="-llz4  $LIBS"
27076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077/* end confdefs.h.  */
27078
27079/* Override any GCC internal prototype to avoid an error.
27080   Use char because int might match the return type of a GCC
27081   builtin and then its argument prototype would still apply.  */
27082#ifdef __cplusplus
27083extern "C"
27084#endif
27085char LZ4_compress ();
27086int
27087main ()
27088{
27089return LZ4_compress ();
27090  ;
27091  return 0;
27092}
27093_ACEOF
27094if ac_fn_c_try_link "$LINENO"; then :
27095  ac_cv_lib_lz4_LZ4_compress=yes
27096else
27097  ac_cv_lib_lz4_LZ4_compress=no
27098fi
27099rm -f core conftest.err conftest.$ac_objext \
27100    conftest$ac_exeext conftest.$ac_ext
27101LIBS=$ac_check_lib_save_LIBS
27102fi
27103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress" >&5
27104$as_echo "$ac_cv_lib_lz4_LZ4_compress" >&6; }
27105if test "x$ac_cv_lib_lz4_LZ4_compress" = xyes; then :
27106
27107				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: liblz4 is missing but library present, using -llz4" >&5
27108$as_echo "$as_me: WARNING: liblz4 is missing but library present, using -llz4" >&2;}
27109				LIBRDKAFKA_LIBS=-llz4
27110
27111else
27112
27113				as_fn_error $? "could not find liblz4 library" "$LINENO" 5
27114
27115fi
27116
27117
27118elif test $pkg_failed = untried; then
27119     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27120$as_echo "no" >&6; }
27121
27122			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress in -llz4" >&5
27123$as_echo_n "checking for LZ4_compress in -llz4... " >&6; }
27124if ${ac_cv_lib_lz4_LZ4_compress+:} false; then :
27125  $as_echo_n "(cached) " >&6
27126else
27127  ac_check_lib_save_LIBS=$LIBS
27128LIBS="-llz4  $LIBS"
27129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27130/* end confdefs.h.  */
27131
27132/* Override any GCC internal prototype to avoid an error.
27133   Use char because int might match the return type of a GCC
27134   builtin and then its argument prototype would still apply.  */
27135#ifdef __cplusplus
27136extern "C"
27137#endif
27138char LZ4_compress ();
27139int
27140main ()
27141{
27142return LZ4_compress ();
27143  ;
27144  return 0;
27145}
27146_ACEOF
27147if ac_fn_c_try_link "$LINENO"; then :
27148  ac_cv_lib_lz4_LZ4_compress=yes
27149else
27150  ac_cv_lib_lz4_LZ4_compress=no
27151fi
27152rm -f core conftest.err conftest.$ac_objext \
27153    conftest$ac_exeext conftest.$ac_ext
27154LIBS=$ac_check_lib_save_LIBS
27155fi
27156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress" >&5
27157$as_echo "$ac_cv_lib_lz4_LZ4_compress" >&6; }
27158if test "x$ac_cv_lib_lz4_LZ4_compress" = xyes; then :
27159
27160				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: liblz4 is missing but library present, using -llz4" >&5
27161$as_echo "$as_me: WARNING: liblz4 is missing but library present, using -llz4" >&2;}
27162				LIBRDKAFKA_LIBS=-llz4
27163
27164else
27165
27166				as_fn_error $? "could not find liblz4 library" "$LINENO" 5
27167
27168fi
27169
27170
27171else
27172	LIBLZ4_CFLAGS=$pkg_cv_LIBLZ4_CFLAGS
27173	LIBLZ4_LIBS=$pkg_cv_LIBLZ4_LIBS
27174        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27175$as_echo "yes" >&6; }
27176
27177fi
27178	fi
27179fi
27180
27181if test "x$enable_omkafka" = "xyes" && test "x$enable_imkafka" = "xyes"; then
27182	if test "x$enable_kafka_tests" = "xyes"; then
27183
27184if test "x$JAVAPREFIX" = x; then :
27185  test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
27186do
27187  # Extract the first word of "$ac_prog", so it can be a program name with args.
27188set dummy $ac_prog; ac_word=$2
27189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27190$as_echo_n "checking for $ac_word... " >&6; }
27191if ${ac_cv_prog_JAVAC+:} false; then :
27192  $as_echo_n "(cached) " >&6
27193else
27194  if test -n "$JAVAC"; then
27195  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
27196else
27197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27198for as_dir in $PATH
27199do
27200  IFS=$as_save_IFS
27201  test -z "$as_dir" && as_dir=.
27202    for ac_exec_ext in '' $ac_executable_extensions; do
27203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27204    ac_cv_prog_JAVAC="$ac_prog"
27205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27206    break 2
27207  fi
27208done
27209  done
27210IFS=$as_save_IFS
27211
27212fi
27213fi
27214JAVAC=$ac_cv_prog_JAVAC
27215if test -n "$JAVAC"; then
27216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
27217$as_echo "$JAVAC" >&6; }
27218else
27219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27220$as_echo "no" >&6; }
27221fi
27222
27223
27224  test -n "$JAVAC" && break
27225done
27226
27227else
27228  test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
27229do
27230  # Extract the first word of "$ac_prog", so it can be a program name with args.
27231set dummy $ac_prog; ac_word=$2
27232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27233$as_echo_n "checking for $ac_word... " >&6; }
27234if ${ac_cv_prog_JAVAC+:} false; then :
27235  $as_echo_n "(cached) " >&6
27236else
27237  if test -n "$JAVAC"; then
27238  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
27239else
27240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27241for as_dir in $JAVAPREFIX/bin
27242do
27243  IFS=$as_save_IFS
27244  test -z "$as_dir" && as_dir=.
27245    for ac_exec_ext in '' $ac_executable_extensions; do
27246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27247    ac_cv_prog_JAVAC="$ac_prog"
27248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27249    break 2
27250  fi
27251done
27252  done
27253IFS=$as_save_IFS
27254
27255fi
27256fi
27257JAVAC=$ac_cv_prog_JAVAC
27258if test -n "$JAVAC"; then
27259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
27260$as_echo "$JAVAC" >&6; }
27261else
27262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27263$as_echo "no" >&6; }
27264fi
27265
27266
27267  test -n "$JAVAC" && break
27268done
27269
27270fi
27271test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
27272
27273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
27274$as_echo_n "checking if $JAVAC works... " >&6; }
27275if ${ac_cv_prog_javac_works+:} false; then :
27276  $as_echo_n "(cached) " >&6
27277else
27278
27279JAVA_TEST=Test.java
27280CLASS_TEST=Test.class
27281cat << \EOF > $JAVA_TEST
27282/* #line 27282 "configure" */
27283public class Test {
27284}
27285EOF
27286if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
27287  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27288  (eval $ac_try) 2>&5
27289  ac_status=$?
27290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27291  test $ac_status = 0; }; } >/dev/null 2>&1; then
27292  ac_cv_prog_javac_works=yes
27293else
27294  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
27295  echo "configure: failed program was:" >&5
27296  cat $JAVA_TEST >&5
27297fi
27298rm -f $JAVA_TEST $CLASS_TEST
27299
27300fi
27301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
27302$as_echo "$ac_cv_prog_javac_works" >&6; }
27303
27304 #we don't need javac, but macro documentation says JAVAC *must* be checked before JAVA
27305
27306if test "x$JAVAPREFIX" = x; then :
27307  test x$JAVA = x && for ac_prog in kaffe java
27308do
27309  # Extract the first word of "$ac_prog", so it can be a program name with args.
27310set dummy $ac_prog; ac_word=$2
27311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27312$as_echo_n "checking for $ac_word... " >&6; }
27313if ${ac_cv_prog_JAVA+:} false; then :
27314  $as_echo_n "(cached) " >&6
27315else
27316  if test -n "$JAVA"; then
27317  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
27318else
27319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27320for as_dir in $PATH
27321do
27322  IFS=$as_save_IFS
27323  test -z "$as_dir" && as_dir=.
27324    for ac_exec_ext in '' $ac_executable_extensions; do
27325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27326    ac_cv_prog_JAVA="$ac_prog"
27327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27328    break 2
27329  fi
27330done
27331  done
27332IFS=$as_save_IFS
27333
27334fi
27335fi
27336JAVA=$ac_cv_prog_JAVA
27337if test -n "$JAVA"; then
27338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
27339$as_echo "$JAVA" >&6; }
27340else
27341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27342$as_echo "no" >&6; }
27343fi
27344
27345
27346  test -n "$JAVA" && break
27347done
27348
27349else
27350  test x$JAVA = x && for ac_prog in kaffe java
27351do
27352  # Extract the first word of "$ac_prog", so it can be a program name with args.
27353set dummy $ac_prog; ac_word=$2
27354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27355$as_echo_n "checking for $ac_word... " >&6; }
27356if ${ac_cv_prog_JAVA+:} false; then :
27357  $as_echo_n "(cached) " >&6
27358else
27359  if test -n "$JAVA"; then
27360  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
27361else
27362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27363for as_dir in $JAVAPREFIX/bin
27364do
27365  IFS=$as_save_IFS
27366  test -z "$as_dir" && as_dir=.
27367    for ac_exec_ext in '' $ac_executable_extensions; do
27368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27369    ac_cv_prog_JAVA="$ac_prog"
27370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27371    break 2
27372  fi
27373done
27374  done
27375IFS=$as_save_IFS
27376
27377fi
27378fi
27379JAVA=$ac_cv_prog_JAVA
27380if test -n "$JAVA"; then
27381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
27382$as_echo "$JAVA" >&6; }
27383else
27384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27385$as_echo "no" >&6; }
27386fi
27387
27388
27389  test -n "$JAVA" && break
27390done
27391
27392fi
27393test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
27394
27395        if test x$ac_cv_prog_javac_works = xno; then
27396                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
27397        fi
27398        if test x$ac_cv_prog_javac_works = x; then
27399
27400if test "x$JAVAPREFIX" = x; then :
27401  test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
27402do
27403  # Extract the first word of "$ac_prog", so it can be a program name with args.
27404set dummy $ac_prog; ac_word=$2
27405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27406$as_echo_n "checking for $ac_word... " >&6; }
27407if ${ac_cv_prog_JAVAC+:} false; then :
27408  $as_echo_n "(cached) " >&6
27409else
27410  if test -n "$JAVAC"; then
27411  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
27412else
27413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27414for as_dir in $PATH
27415do
27416  IFS=$as_save_IFS
27417  test -z "$as_dir" && as_dir=.
27418    for ac_exec_ext in '' $ac_executable_extensions; do
27419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27420    ac_cv_prog_JAVAC="$ac_prog"
27421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27422    break 2
27423  fi
27424done
27425  done
27426IFS=$as_save_IFS
27427
27428fi
27429fi
27430JAVAC=$ac_cv_prog_JAVAC
27431if test -n "$JAVAC"; then
27432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
27433$as_echo "$JAVAC" >&6; }
27434else
27435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27436$as_echo "no" >&6; }
27437fi
27438
27439
27440  test -n "$JAVAC" && break
27441done
27442
27443else
27444  test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
27445do
27446  # Extract the first word of "$ac_prog", so it can be a program name with args.
27447set dummy $ac_prog; ac_word=$2
27448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27449$as_echo_n "checking for $ac_word... " >&6; }
27450if ${ac_cv_prog_JAVAC+:} false; then :
27451  $as_echo_n "(cached) " >&6
27452else
27453  if test -n "$JAVAC"; then
27454  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
27455else
27456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27457for as_dir in $JAVAPREFIX/bin
27458do
27459  IFS=$as_save_IFS
27460  test -z "$as_dir" && as_dir=.
27461    for ac_exec_ext in '' $ac_executable_extensions; do
27462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27463    ac_cv_prog_JAVAC="$ac_prog"
27464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27465    break 2
27466  fi
27467done
27468  done
27469IFS=$as_save_IFS
27470
27471fi
27472fi
27473JAVAC=$ac_cv_prog_JAVAC
27474if test -n "$JAVAC"; then
27475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
27476$as_echo "$JAVAC" >&6; }
27477else
27478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27479$as_echo "no" >&6; }
27480fi
27481
27482
27483  test -n "$JAVAC" && break
27484done
27485
27486fi
27487test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
27488
27489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
27490$as_echo_n "checking if $JAVAC works... " >&6; }
27491if ${ac_cv_prog_javac_works+:} false; then :
27492  $as_echo_n "(cached) " >&6
27493else
27494
27495JAVA_TEST=Test.java
27496CLASS_TEST=Test.class
27497cat << \EOF > $JAVA_TEST
27498/* #line 27498 "configure" */
27499public class Test {
27500}
27501EOF
27502if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
27503  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27504  (eval $ac_try) 2>&5
27505  ac_status=$?
27506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27507  test $ac_status = 0; }; } >/dev/null 2>&1; then
27508  ac_cv_prog_javac_works=yes
27509else
27510  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
27511  echo "configure: failed program was:" >&5
27512  cat $JAVA_TEST >&5
27513fi
27514rm -f $JAVA_TEST $CLASS_TEST
27515
27516fi
27517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
27518$as_echo "$ac_cv_prog_javac_works" >&6; }
27519
27520
27521        fi
27522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
27523$as_echo_n "checking if $JAVA works... " >&6; }
27524if ${ac_cv_prog_java_works+:} false; then :
27525  $as_echo_n "(cached) " >&6
27526else
27527
27528JAVA_TEST=Test.java
27529CLASS_TEST=Test.class
27530TEST=Test
27531cat << \EOF > $JAVA_TEST
27532/* [#]line 27532 "configure" */
27533public class Test {
27534public static void main (String args[]) {
27535        System.exit (0);
27536} }
27537EOF
27538        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
27539  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27540  (eval $ac_try) 2>&5
27541  ac_status=$?
27542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27543  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
27544                :
27545        else
27546          echo "configure: failed program was:" >&5
27547          cat $JAVA_TEST >&5
27548          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
27549        fi
27550if { ac_try='$JAVA -classpath . $JAVAFLAGS $TEST'
27551  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27552  (eval $ac_try) 2>&5
27553  ac_status=$?
27554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27555  test $ac_status = 0; }; } >/dev/null 2>&1; then
27556  ac_cv_prog_java_works=yes
27557else
27558  echo "configure: failed program was:" >&5
27559  cat $JAVA_TEST >&5
27560  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
27561fi
27562rm -f $JAVA_TEST $CLASS_TEST
27563
27564fi
27565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
27566$as_echo "$ac_cv_prog_java_works" >&6; }
27567
27568
27569
27570		# Extract the first word of "wget", so it can be a program name with args.
27571set dummy wget; ac_word=$2
27572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27573$as_echo_n "checking for $ac_word... " >&6; }
27574if ${ac_cv_prog_WGET+:} false; then :
27575  $as_echo_n "(cached) " >&6
27576else
27577  if test -n "$WGET"; then
27578  ac_cv_prog_WGET="$WGET" # Let the user override the test.
27579else
27580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27581for as_dir in $PATH
27582do
27583  IFS=$as_save_IFS
27584  test -z "$as_dir" && as_dir=.
27585    for ac_exec_ext in '' $ac_executable_extensions; do
27586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27587    ac_cv_prog_WGET="yes"
27588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27589    break 2
27590  fi
27591done
27592  done
27593IFS=$as_save_IFS
27594
27595  test -z "$ac_cv_prog_WGET" && ac_cv_prog_WGET="no"
27596fi
27597fi
27598WGET=$ac_cv_prog_WGET
27599if test -n "$WGET"; then
27600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
27601$as_echo "$WGET" >&6; }
27602else
27603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27604$as_echo "no" >&6; }
27605fi
27606
27607
27608		if test "x${WGET}" = "xno"; then
27609			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27611as_fn_error $? "wget, which is a kafka-tests dependency, not found
27612See \`config.log' for more details" "$LINENO" 5; }
27613		fi
27614		# Extract the first word of "readlink", so it can be a program name with args.
27615set dummy readlink; ac_word=$2
27616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27617$as_echo_n "checking for $ac_word... " >&6; }
27618if ${ac_cv_prog_READLINK+:} false; then :
27619  $as_echo_n "(cached) " >&6
27620else
27621  if test -n "$READLINK"; then
27622  ac_cv_prog_READLINK="$READLINK" # Let the user override the test.
27623else
27624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27625for as_dir in $PATH
27626do
27627  IFS=$as_save_IFS
27628  test -z "$as_dir" && as_dir=.
27629    for ac_exec_ext in '' $ac_executable_extensions; do
27630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27631    ac_cv_prog_READLINK="yes"
27632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27633    break 2
27634  fi
27635done
27636  done
27637IFS=$as_save_IFS
27638
27639  test -z "$ac_cv_prog_READLINK" && ac_cv_prog_READLINK="no"
27640fi
27641fi
27642READLINK=$ac_cv_prog_READLINK
27643if test -n "$READLINK"; then
27644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
27645$as_echo "$READLINK" >&6; }
27646else
27647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27648$as_echo "no" >&6; }
27649fi
27650
27651
27652		if test "x${READLINK}" = "xno"; then
27653			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27655as_fn_error $? "readlink, which is a kafka-tests dependency, not found
27656See \`config.log' for more details" "$LINENO" 5; }
27657		fi
27658	fi
27659else
27660	if test "x$enable_kafka_tests" = "xyes"; then
27661		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kafka-tests can not be enabled without omkafka and imkafka support. Disabling enable_kafka_tests..." >&5
27662$as_echo "$as_me: WARNING: kafka-tests can not be enabled without omkafka and imkafka support. Disabling enable_kafka_tests..." >&2;}
27663		enable_kafka_tests="no"
27664	fi
27665fi
27666 if test x$enable_omkafka = xyes -o x$enable_omkafka = xoptional; then
27667  ENABLE_OMKAFKA_TRUE=
27668  ENABLE_OMKAFKA_FALSE='#'
27669else
27670  ENABLE_OMKAFKA_TRUE='#'
27671  ENABLE_OMKAFKA_FALSE=
27672fi
27673
27674 if test x$enable_imkafka = xyes -o x$enable_imkafka = xoptional; then
27675  ENABLE_IMKAFKA_TRUE=
27676  ENABLE_IMKAFKA_FALSE='#'
27677else
27678  ENABLE_IMKAFKA_TRUE='#'
27679  ENABLE_IMKAFKA_FALSE=
27680fi
27681
27682
27683#MONGODB SUPPORT
27684
27685# Check whether --enable-ommongodb was given.
27686if test "${enable_ommongodb+set}" = set; then :
27687  enableval=$enable_ommongodb; case "${enableval}" in
27688         yes) enable_ommongodb="yes" ;;
27689          no) enable_ommongodb="no" ;;
27690           *) as_fn_error $? "bad value ${enableval} for --enable-ommongodb" "$LINENO" 5 ;;
27691         esac
27692else
27693  enable_ommongodb=no
27694
27695fi
27696
27697if test "x$enable_ommongodb" = "xyes"; then
27698
27699pkg_failed=no
27700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMONGOC" >&5
27701$as_echo_n "checking for LIBMONGOC... " >&6; }
27702
27703if test -n "$LIBMONGOC_CFLAGS"; then
27704    pkg_cv_LIBMONGOC_CFLAGS="$LIBMONGOC_CFLAGS"
27705 elif test -n "$PKG_CONFIG"; then
27706    if test -n "$PKG_CONFIG" && \
27707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc-1.0\""; } >&5
27708  ($PKG_CONFIG --exists --print-errors "libmongoc-1.0") 2>&5
27709  ac_status=$?
27710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27711  test $ac_status = 0; }; then
27712  pkg_cv_LIBMONGOC_CFLAGS=`$PKG_CONFIG --cflags "libmongoc-1.0" 2>/dev/null`
27713		      test "x$?" != "x0" && pkg_failed=yes
27714else
27715  pkg_failed=yes
27716fi
27717 else
27718    pkg_failed=untried
27719fi
27720if test -n "$LIBMONGOC_LIBS"; then
27721    pkg_cv_LIBMONGOC_LIBS="$LIBMONGOC_LIBS"
27722 elif test -n "$PKG_CONFIG"; then
27723    if test -n "$PKG_CONFIG" && \
27724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc-1.0\""; } >&5
27725  ($PKG_CONFIG --exists --print-errors "libmongoc-1.0") 2>&5
27726  ac_status=$?
27727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728  test $ac_status = 0; }; then
27729  pkg_cv_LIBMONGOC_LIBS=`$PKG_CONFIG --libs "libmongoc-1.0" 2>/dev/null`
27730		      test "x$?" != "x0" && pkg_failed=yes
27731else
27732  pkg_failed=yes
27733fi
27734 else
27735    pkg_failed=untried
27736fi
27737
27738
27739
27740if test $pkg_failed = yes; then
27741   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27742$as_echo "no" >&6; }
27743
27744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27745        _pkg_short_errors_supported=yes
27746else
27747        _pkg_short_errors_supported=no
27748fi
27749        if test $_pkg_short_errors_supported = yes; then
27750	        LIBMONGOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmongoc-1.0" 2>&1`
27751        else
27752	        LIBMONGOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmongoc-1.0" 2>&1`
27753        fi
27754	# Put the nasty error message in config.log where it belongs
27755	echo "$LIBMONGOC_PKG_ERRORS" >&5
27756
27757	as_fn_error $? "Package requirements (libmongoc-1.0) were not met:
27758
27759$LIBMONGOC_PKG_ERRORS
27760
27761Consider adjusting the PKG_CONFIG_PATH environment variable if you
27762installed software in a non-standard prefix.
27763
27764Alternatively, you may set the environment variables LIBMONGOC_CFLAGS
27765and LIBMONGOC_LIBS to avoid the need to call pkg-config.
27766See the pkg-config man page for more details." "$LINENO" 5
27767elif test $pkg_failed = untried; then
27768     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27769$as_echo "no" >&6; }
27770	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27772as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27773is in your PATH or set the PKG_CONFIG environment variable to the full
27774path to pkg-config.
27775
27776Alternatively, you may set the environment variables LIBMONGOC_CFLAGS
27777and LIBMONGOC_LIBS to avoid the need to call pkg-config.
27778See the pkg-config man page for more details.
27779
27780To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27781See \`config.log' for more details" "$LINENO" 5; }
27782else
27783	LIBMONGOC_CFLAGS=$pkg_cv_LIBMONGOC_CFLAGS
27784	LIBMONGOC_LIBS=$pkg_cv_LIBMONGOC_LIBS
27785        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27786$as_echo "yes" >&6; }
27787
27788fi
27789    for ac_func in mongoc_client_set_ssl_opts
27790do :
27791  ac_fn_c_check_func "$LINENO" "mongoc_client_set_ssl_opts" "ac_cv_func_mongoc_client_set_ssl_opts"
27792if test "x$ac_cv_func_mongoc_client_set_ssl_opts" = xyes; then :
27793  cat >>confdefs.h <<_ACEOF
27794#define HAVE_MONGOC_CLIENT_SET_SSL_OPTS 1
27795_ACEOF
27796
27797fi
27798done
27799
27800
27801fi
27802 if test x$enable_ommongodb = xyes; then
27803  ENABLE_OMMONGODB_TRUE=
27804  ENABLE_OMMONGODB_FALSE='#'
27805else
27806  ENABLE_OMMONGODB_TRUE='#'
27807  ENABLE_OMMONGODB_FALSE=
27808fi
27809
27810# end of mongodb code
27811
27812
27813# BEGIN CZMQ INPUT SUPPORT
27814# Check whether --enable-imczmq was given.
27815if test "${enable_imczmq+set}" = set; then :
27816  enableval=$enable_imczmq; case "${enableval}" in
27817         yes) enable_imczmq="yes" ;;
27818          no) enable_imczmq="no" ;;
27819           *) as_fn_error $? "bad value ${enableval} for --enable-imczmq" "$LINENO" 5 ;;
27820         esac
27821else
27822  enable_imczmq=no
27823
27824fi
27825
27826if test "x$enable_imczmq" = "xyes"; then
27827
27828pkg_failed=no
27829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CZMQ" >&5
27830$as_echo_n "checking for CZMQ... " >&6; }
27831
27832if test -n "$CZMQ_CFLAGS"; then
27833    pkg_cv_CZMQ_CFLAGS="$CZMQ_CFLAGS"
27834 elif test -n "$PKG_CONFIG"; then
27835    if test -n "$PKG_CONFIG" && \
27836    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libczmq >= 4.0.0\""; } >&5
27837  ($PKG_CONFIG --exists --print-errors "libczmq >= 4.0.0") 2>&5
27838  ac_status=$?
27839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27840  test $ac_status = 0; }; then
27841  pkg_cv_CZMQ_CFLAGS=`$PKG_CONFIG --cflags "libczmq >= 4.0.0" 2>/dev/null`
27842		      test "x$?" != "x0" && pkg_failed=yes
27843else
27844  pkg_failed=yes
27845fi
27846 else
27847    pkg_failed=untried
27848fi
27849if test -n "$CZMQ_LIBS"; then
27850    pkg_cv_CZMQ_LIBS="$CZMQ_LIBS"
27851 elif test -n "$PKG_CONFIG"; then
27852    if test -n "$PKG_CONFIG" && \
27853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libczmq >= 4.0.0\""; } >&5
27854  ($PKG_CONFIG --exists --print-errors "libczmq >= 4.0.0") 2>&5
27855  ac_status=$?
27856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857  test $ac_status = 0; }; then
27858  pkg_cv_CZMQ_LIBS=`$PKG_CONFIG --libs "libczmq >= 4.0.0" 2>/dev/null`
27859		      test "x$?" != "x0" && pkg_failed=yes
27860else
27861  pkg_failed=yes
27862fi
27863 else
27864    pkg_failed=untried
27865fi
27866
27867
27868
27869if test $pkg_failed = yes; then
27870   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27871$as_echo "no" >&6; }
27872
27873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27874        _pkg_short_errors_supported=yes
27875else
27876        _pkg_short_errors_supported=no
27877fi
27878        if test $_pkg_short_errors_supported = yes; then
27879	        CZMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libczmq >= 4.0.0" 2>&1`
27880        else
27881	        CZMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libczmq >= 4.0.0" 2>&1`
27882        fi
27883	# Put the nasty error message in config.log where it belongs
27884	echo "$CZMQ_PKG_ERRORS" >&5
27885
27886	as_fn_error $? "Package requirements (libczmq >= 4.0.0) were not met:
27887
27888$CZMQ_PKG_ERRORS
27889
27890Consider adjusting the PKG_CONFIG_PATH environment variable if you
27891installed software in a non-standard prefix.
27892
27893Alternatively, you may set the environment variables CZMQ_CFLAGS
27894and CZMQ_LIBS to avoid the need to call pkg-config.
27895See the pkg-config man page for more details." "$LINENO" 5
27896elif test $pkg_failed = untried; then
27897     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27898$as_echo "no" >&6; }
27899	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27901as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27902is in your PATH or set the PKG_CONFIG environment variable to the full
27903path to pkg-config.
27904
27905Alternatively, you may set the environment variables CZMQ_CFLAGS
27906and CZMQ_LIBS to avoid the need to call pkg-config.
27907See the pkg-config man page for more details.
27908
27909To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27910See \`config.log' for more details" "$LINENO" 5; }
27911else
27912	CZMQ_CFLAGS=$pkg_cv_CZMQ_CFLAGS
27913	CZMQ_LIBS=$pkg_cv_CZMQ_LIBS
27914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27915$as_echo "yes" >&6; }
27916
27917fi
27918fi
27919 if test x$enable_imczmq = xyes; then
27920  ENABLE_IMCZMQ_TRUE=
27921  ENABLE_IMCZMQ_FALSE='#'
27922else
27923  ENABLE_IMCZMQ_TRUE='#'
27924  ENABLE_IMCZMQ_FALSE=
27925fi
27926
27927
27928# END CZMQ INPUT
27929
27930
27931# BEGIN CZMQ OUTPUT SUPPORT
27932# Check whether --enable-omczmq was given.
27933if test "${enable_omczmq+set}" = set; then :
27934  enableval=$enable_omczmq; case "${enableval}" in
27935         yes) enable_omczmq="yes" ;;
27936          no) enable_omczmq="no" ;;
27937           *) as_fn_error $? "bad value ${enableval} for --enable-omczmq" "$LINENO" 5 ;;
27938         esac
27939else
27940  enable_omczmq=no
27941
27942fi
27943
27944if test "x$enable_omczmq" = "xyes"; then
27945
27946pkg_failed=no
27947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CZMQ" >&5
27948$as_echo_n "checking for CZMQ... " >&6; }
27949
27950if test -n "$CZMQ_CFLAGS"; then
27951    pkg_cv_CZMQ_CFLAGS="$CZMQ_CFLAGS"
27952 elif test -n "$PKG_CONFIG"; then
27953    if test -n "$PKG_CONFIG" && \
27954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libczmq >= 4.0.0\""; } >&5
27955  ($PKG_CONFIG --exists --print-errors "libczmq >= 4.0.0") 2>&5
27956  ac_status=$?
27957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958  test $ac_status = 0; }; then
27959  pkg_cv_CZMQ_CFLAGS=`$PKG_CONFIG --cflags "libczmq >= 4.0.0" 2>/dev/null`
27960		      test "x$?" != "x0" && pkg_failed=yes
27961else
27962  pkg_failed=yes
27963fi
27964 else
27965    pkg_failed=untried
27966fi
27967if test -n "$CZMQ_LIBS"; then
27968    pkg_cv_CZMQ_LIBS="$CZMQ_LIBS"
27969 elif test -n "$PKG_CONFIG"; then
27970    if test -n "$PKG_CONFIG" && \
27971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libczmq >= 4.0.0\""; } >&5
27972  ($PKG_CONFIG --exists --print-errors "libczmq >= 4.0.0") 2>&5
27973  ac_status=$?
27974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27975  test $ac_status = 0; }; then
27976  pkg_cv_CZMQ_LIBS=`$PKG_CONFIG --libs "libczmq >= 4.0.0" 2>/dev/null`
27977		      test "x$?" != "x0" && pkg_failed=yes
27978else
27979  pkg_failed=yes
27980fi
27981 else
27982    pkg_failed=untried
27983fi
27984
27985
27986
27987if test $pkg_failed = yes; then
27988   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27989$as_echo "no" >&6; }
27990
27991if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27992        _pkg_short_errors_supported=yes
27993else
27994        _pkg_short_errors_supported=no
27995fi
27996        if test $_pkg_short_errors_supported = yes; then
27997	        CZMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libczmq >= 4.0.0" 2>&1`
27998        else
27999	        CZMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libczmq >= 4.0.0" 2>&1`
28000        fi
28001	# Put the nasty error message in config.log where it belongs
28002	echo "$CZMQ_PKG_ERRORS" >&5
28003
28004	as_fn_error $? "Package requirements (libczmq >= 4.0.0) were not met:
28005
28006$CZMQ_PKG_ERRORS
28007
28008Consider adjusting the PKG_CONFIG_PATH environment variable if you
28009installed software in a non-standard prefix.
28010
28011Alternatively, you may set the environment variables CZMQ_CFLAGS
28012and CZMQ_LIBS to avoid the need to call pkg-config.
28013See the pkg-config man page for more details." "$LINENO" 5
28014elif test $pkg_failed = untried; then
28015     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28016$as_echo "no" >&6; }
28017	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28019as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28020is in your PATH or set the PKG_CONFIG environment variable to the full
28021path to pkg-config.
28022
28023Alternatively, you may set the environment variables CZMQ_CFLAGS
28024and CZMQ_LIBS to avoid the need to call pkg-config.
28025See the pkg-config man page for more details.
28026
28027To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28028See \`config.log' for more details" "$LINENO" 5; }
28029else
28030	CZMQ_CFLAGS=$pkg_cv_CZMQ_CFLAGS
28031	CZMQ_LIBS=$pkg_cv_CZMQ_LIBS
28032        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28033$as_echo "yes" >&6; }
28034
28035fi
28036fi
28037 if test x$enable_omczmq = xyes; then
28038  ENABLE_OMCZMQ_TRUE=
28039  ENABLE_OMCZMQ_FALSE='#'
28040else
28041  ENABLE_OMCZMQ_TRUE='#'
28042  ENABLE_OMCZMQ_FALSE=
28043fi
28044
28045
28046# END CZMQ SUPPORT
28047
28048
28049# BEGIN RABBITMQ OUTPUT SUPPORT
28050
28051# Check whether --enable-omrabbitmq was given.
28052if test "${enable_omrabbitmq+set}" = set; then :
28053  enableval=$enable_omrabbitmq; case "${enableval}" in
28054         yes) enable_omrabbitmq="yes" ;;
28055          no) enable_omrabbitmq="no" ;;
28056           *) as_fn_error $? "bad value ${enableval} for --enable-omrabbitmq" "$LINENO" 5 ;;
28057         esac
28058else
28059  enable_omrabbitmq=no
28060
28061fi
28062
28063if test "x$enable_omrabbitmq" = "xyes"; then
28064
28065pkg_failed=no
28066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RABBITMQ" >&5
28067$as_echo_n "checking for RABBITMQ... " >&6; }
28068
28069if test -n "$RABBITMQ_CFLAGS"; then
28070    pkg_cv_RABBITMQ_CFLAGS="$RABBITMQ_CFLAGS"
28071 elif test -n "$PKG_CONFIG"; then
28072    if test -n "$PKG_CONFIG" && \
28073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librabbitmq >= 0.2.0\""; } >&5
28074  ($PKG_CONFIG --exists --print-errors "librabbitmq >= 0.2.0") 2>&5
28075  ac_status=$?
28076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28077  test $ac_status = 0; }; then
28078  pkg_cv_RABBITMQ_CFLAGS=`$PKG_CONFIG --cflags "librabbitmq >= 0.2.0" 2>/dev/null`
28079		      test "x$?" != "x0" && pkg_failed=yes
28080else
28081  pkg_failed=yes
28082fi
28083 else
28084    pkg_failed=untried
28085fi
28086if test -n "$RABBITMQ_LIBS"; then
28087    pkg_cv_RABBITMQ_LIBS="$RABBITMQ_LIBS"
28088 elif test -n "$PKG_CONFIG"; then
28089    if test -n "$PKG_CONFIG" && \
28090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librabbitmq >= 0.2.0\""; } >&5
28091  ($PKG_CONFIG --exists --print-errors "librabbitmq >= 0.2.0") 2>&5
28092  ac_status=$?
28093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28094  test $ac_status = 0; }; then
28095  pkg_cv_RABBITMQ_LIBS=`$PKG_CONFIG --libs "librabbitmq >= 0.2.0" 2>/dev/null`
28096		      test "x$?" != "x0" && pkg_failed=yes
28097else
28098  pkg_failed=yes
28099fi
28100 else
28101    pkg_failed=untried
28102fi
28103
28104
28105
28106if test $pkg_failed = yes; then
28107   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108$as_echo "no" >&6; }
28109
28110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28111        _pkg_short_errors_supported=yes
28112else
28113        _pkg_short_errors_supported=no
28114fi
28115        if test $_pkg_short_errors_supported = yes; then
28116	        RABBITMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librabbitmq >= 0.2.0" 2>&1`
28117        else
28118	        RABBITMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librabbitmq >= 0.2.0" 2>&1`
28119        fi
28120	# Put the nasty error message in config.log where it belongs
28121	echo "$RABBITMQ_PKG_ERRORS" >&5
28122
28123	as_fn_error $? "Package requirements (librabbitmq >= 0.2.0) were not met:
28124
28125$RABBITMQ_PKG_ERRORS
28126
28127Consider adjusting the PKG_CONFIG_PATH environment variable if you
28128installed software in a non-standard prefix.
28129
28130Alternatively, you may set the environment variables RABBITMQ_CFLAGS
28131and RABBITMQ_LIBS to avoid the need to call pkg-config.
28132See the pkg-config man page for more details." "$LINENO" 5
28133elif test $pkg_failed = untried; then
28134     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28135$as_echo "no" >&6; }
28136	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28138as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28139is in your PATH or set the PKG_CONFIG environment variable to the full
28140path to pkg-config.
28141
28142Alternatively, you may set the environment variables RABBITMQ_CFLAGS
28143and RABBITMQ_LIBS to avoid the need to call pkg-config.
28144See the pkg-config man page for more details.
28145
28146To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28147See \`config.log' for more details" "$LINENO" 5; }
28148else
28149	RABBITMQ_CFLAGS=$pkg_cv_RABBITMQ_CFLAGS
28150	RABBITMQ_LIBS=$pkg_cv_RABBITMQ_LIBS
28151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28152$as_echo "yes" >&6; }
28153
28154fi
28155
28156
28157fi
28158 if test x$enable_omrabbitmq = xyes; then
28159  ENABLE_OMRABBITMQ_TRUE=
28160  ENABLE_OMRABBITMQ_FALSE='#'
28161else
28162  ENABLE_OMRABBITMQ_TRUE='#'
28163  ENABLE_OMRABBITMQ_FALSE=
28164fi
28165
28166
28167# END RABBITMQ SUPPORT
28168
28169# HIREDIS SUPPORT
28170
28171# Check whether --enable-imhiredis was given.
28172if test "${enable_imhiredis+set}" = set; then :
28173  enableval=$enable_imhiredis; case "${enableval}" in
28174          yes) enable_imhiredis="yes" ;;
28175           no) enable_imhiredis="no" ;;
28176          optional) enable_imhiredis="optional" ;;
28177            *) as_fn_error $? "bad value ${enableval} for --enable-imhiredis" "$LINENO" 5 ;;
28178          esac
28179else
28180  enable_imhiredis=no
28181
28182fi
28183
28184# Check whether --enable-omhiredis was given.
28185if test "${enable_omhiredis+set}" = set; then :
28186  enableval=$enable_omhiredis; case "${enableval}" in
28187         yes) enable_omhiredis="yes" ;;
28188          no) enable_omhiredis="no" ;;
28189           *) as_fn_error $? "bad value ${enableval} for --enable-omhiredis" "$LINENO" 5 ;;
28190         esac
28191else
28192  enable_omhiredis=no
28193
28194fi
28195
28196
28197if test "x$enable_omhiredis" = "xyes" -o "x$enable_imhiredis" = "xyes" ; then
28198
28199pkg_failed=no
28200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HIREDIS" >&5
28201$as_echo_n "checking for HIREDIS... " >&6; }
28202
28203if test -n "$HIREDIS_CFLAGS"; then
28204    pkg_cv_HIREDIS_CFLAGS="$HIREDIS_CFLAGS"
28205 elif test -n "$PKG_CONFIG"; then
28206    if test -n "$PKG_CONFIG" && \
28207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis >= 0.10.1\""; } >&5
28208  ($PKG_CONFIG --exists --print-errors "hiredis >= 0.10.1") 2>&5
28209  ac_status=$?
28210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28211  test $ac_status = 0; }; then
28212  pkg_cv_HIREDIS_CFLAGS=`$PKG_CONFIG --cflags "hiredis >= 0.10.1" 2>/dev/null`
28213		      test "x$?" != "x0" && pkg_failed=yes
28214else
28215  pkg_failed=yes
28216fi
28217 else
28218    pkg_failed=untried
28219fi
28220if test -n "$HIREDIS_LIBS"; then
28221    pkg_cv_HIREDIS_LIBS="$HIREDIS_LIBS"
28222 elif test -n "$PKG_CONFIG"; then
28223    if test -n "$PKG_CONFIG" && \
28224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis >= 0.10.1\""; } >&5
28225  ($PKG_CONFIG --exists --print-errors "hiredis >= 0.10.1") 2>&5
28226  ac_status=$?
28227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28228  test $ac_status = 0; }; then
28229  pkg_cv_HIREDIS_LIBS=`$PKG_CONFIG --libs "hiredis >= 0.10.1" 2>/dev/null`
28230		      test "x$?" != "x0" && pkg_failed=yes
28231else
28232  pkg_failed=yes
28233fi
28234 else
28235    pkg_failed=untried
28236fi
28237
28238
28239
28240if test $pkg_failed = yes; then
28241   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28242$as_echo "no" >&6; }
28243
28244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28245        _pkg_short_errors_supported=yes
28246else
28247        _pkg_short_errors_supported=no
28248fi
28249        if test $_pkg_short_errors_supported = yes; then
28250	        HIREDIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hiredis >= 0.10.1" 2>&1`
28251        else
28252	        HIREDIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hiredis >= 0.10.1" 2>&1`
28253        fi
28254	# Put the nasty error message in config.log where it belongs
28255	echo "$HIREDIS_PKG_ERRORS" >&5
28256
28257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing redisConnectWithTimeout" >&5
28258$as_echo_n "checking for library containing redisConnectWithTimeout... " >&6; }
28259if ${ac_cv_search_redisConnectWithTimeout+:} false; then :
28260  $as_echo_n "(cached) " >&6
28261else
28262  ac_func_search_save_LIBS=$LIBS
28263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28264/* end confdefs.h.  */
28265
28266/* Override any GCC internal prototype to avoid an error.
28267   Use char because int might match the return type of a GCC
28268   builtin and then its argument prototype would still apply.  */
28269#ifdef __cplusplus
28270extern "C"
28271#endif
28272char redisConnectWithTimeout ();
28273int
28274main ()
28275{
28276return redisConnectWithTimeout ();
28277  ;
28278  return 0;
28279}
28280_ACEOF
28281for ac_lib in '' hiredis; do
28282  if test -z "$ac_lib"; then
28283    ac_res="none required"
28284  else
28285    ac_res=-l$ac_lib
28286    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28287  fi
28288  if ac_fn_c_try_link "$LINENO"; then :
28289  ac_cv_search_redisConnectWithTimeout=$ac_res
28290fi
28291rm -f core conftest.err conftest.$ac_objext \
28292    conftest$ac_exeext
28293  if ${ac_cv_search_redisConnectWithTimeout+:} false; then :
28294  break
28295fi
28296done
28297if ${ac_cv_search_redisConnectWithTimeout+:} false; then :
28298
28299else
28300  ac_cv_search_redisConnectWithTimeout=no
28301fi
28302rm conftest.$ac_ext
28303LIBS=$ac_func_search_save_LIBS
28304fi
28305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_redisConnectWithTimeout" >&5
28306$as_echo "$ac_cv_search_redisConnectWithTimeout" >&6; }
28307ac_res=$ac_cv_search_redisConnectWithTimeout
28308if test "$ac_res" != no; then :
28309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28311/* end confdefs.h.  */
28312 #include <hiredis/hiredis.h>
28313int
28314main ()
28315{
28316 #define major 0
28317                       #define minor 10
28318                       #define patch 1
28319                       #if (( HIREDIS_MAJOR > major ) || \
28320                         (( HIREDIS_MAJOR == major ) && ( HIREDIS_MINOR > minor )) || \
28321                         (( HIREDIS_MAJOR == major ) && ( HIREDIS_MINOR == minor ) && ( HIREDIS_PATCH >= patch ))) \
28322                       /* OK */
28323                       #else
28324                       # error Hiredis version must be >= major.minor.path
28325                       #endif
28326
28327
28328  ;
28329  return 0;
28330}
28331_ACEOF
28332if ac_fn_c_try_compile "$LINENO"; then :
28333
28334else
28335  as_fn_error $? "hiredis version must be >= 0.10.1" "$LINENO" 5
28336
28337fi
28338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339else
28340  as_fn_error $? "hiredis not found" "$LINENO" 5
28341
28342fi
28343
28344
28345elif test $pkg_failed = untried; then
28346     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28347$as_echo "no" >&6; }
28348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing redisConnectWithTimeout" >&5
28349$as_echo_n "checking for library containing redisConnectWithTimeout... " >&6; }
28350if ${ac_cv_search_redisConnectWithTimeout+:} false; then :
28351  $as_echo_n "(cached) " >&6
28352else
28353  ac_func_search_save_LIBS=$LIBS
28354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28355/* end confdefs.h.  */
28356
28357/* Override any GCC internal prototype to avoid an error.
28358   Use char because int might match the return type of a GCC
28359   builtin and then its argument prototype would still apply.  */
28360#ifdef __cplusplus
28361extern "C"
28362#endif
28363char redisConnectWithTimeout ();
28364int
28365main ()
28366{
28367return redisConnectWithTimeout ();
28368  ;
28369  return 0;
28370}
28371_ACEOF
28372for ac_lib in '' hiredis; do
28373  if test -z "$ac_lib"; then
28374    ac_res="none required"
28375  else
28376    ac_res=-l$ac_lib
28377    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28378  fi
28379  if ac_fn_c_try_link "$LINENO"; then :
28380  ac_cv_search_redisConnectWithTimeout=$ac_res
28381fi
28382rm -f core conftest.err conftest.$ac_objext \
28383    conftest$ac_exeext
28384  if ${ac_cv_search_redisConnectWithTimeout+:} false; then :
28385  break
28386fi
28387done
28388if ${ac_cv_search_redisConnectWithTimeout+:} false; then :
28389
28390else
28391  ac_cv_search_redisConnectWithTimeout=no
28392fi
28393rm conftest.$ac_ext
28394LIBS=$ac_func_search_save_LIBS
28395fi
28396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_redisConnectWithTimeout" >&5
28397$as_echo "$ac_cv_search_redisConnectWithTimeout" >&6; }
28398ac_res=$ac_cv_search_redisConnectWithTimeout
28399if test "$ac_res" != no; then :
28400  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28402/* end confdefs.h.  */
28403 #include <hiredis/hiredis.h>
28404int
28405main ()
28406{
28407 #define major 0
28408                       #define minor 10
28409                       #define patch 1
28410                       #if (( HIREDIS_MAJOR > major ) || \
28411                         (( HIREDIS_MAJOR == major ) && ( HIREDIS_MINOR > minor )) || \
28412                         (( HIREDIS_MAJOR == major ) && ( HIREDIS_MINOR == minor ) && ( HIREDIS_PATCH >= patch ))) \
28413                       /* OK */
28414                       #else
28415                       # error Hiredis version must be >= major.minor.path
28416                       #endif
28417
28418
28419  ;
28420  return 0;
28421}
28422_ACEOF
28423if ac_fn_c_try_compile "$LINENO"; then :
28424
28425else
28426  as_fn_error $? "hiredis version must be >= 0.10.1" "$LINENO" 5
28427
28428fi
28429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28430else
28431  as_fn_error $? "hiredis not found" "$LINENO" 5
28432
28433fi
28434
28435
28436else
28437	HIREDIS_CFLAGS=$pkg_cv_HIREDIS_CFLAGS
28438	HIREDIS_LIBS=$pkg_cv_HIREDIS_LIBS
28439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28440$as_echo "yes" >&6; }
28441
28442fi
28443fi
28444
28445if test "x$enable_imhiredis" = "xyes" ; then
28446
28447pkg_failed=no
28448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
28449$as_echo_n "checking for LIBEVENT... " >&6; }
28450
28451if test -n "$LIBEVENT_CFLAGS"; then
28452    pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
28453 elif test -n "$PKG_CONFIG"; then
28454    if test -n "$PKG_CONFIG" && \
28455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2.0, libevent_pthreads\""; } >&5
28456  ($PKG_CONFIG --exists --print-errors "libevent >= 2.0, libevent_pthreads") 2>&5
28457  ac_status=$?
28458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28459  test $ac_status = 0; }; then
28460  pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= 2.0, libevent_pthreads" 2>/dev/null`
28461		      test "x$?" != "x0" && pkg_failed=yes
28462else
28463  pkg_failed=yes
28464fi
28465 else
28466    pkg_failed=untried
28467fi
28468if test -n "$LIBEVENT_LIBS"; then
28469    pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
28470 elif test -n "$PKG_CONFIG"; then
28471    if test -n "$PKG_CONFIG" && \
28472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2.0, libevent_pthreads\""; } >&5
28473  ($PKG_CONFIG --exists --print-errors "libevent >= 2.0, libevent_pthreads") 2>&5
28474  ac_status=$?
28475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28476  test $ac_status = 0; }; then
28477  pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= 2.0, libevent_pthreads" 2>/dev/null`
28478		      test "x$?" != "x0" && pkg_failed=yes
28479else
28480  pkg_failed=yes
28481fi
28482 else
28483    pkg_failed=untried
28484fi
28485
28486
28487
28488if test $pkg_failed = yes; then
28489   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28490$as_echo "no" >&6; }
28491
28492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28493        _pkg_short_errors_supported=yes
28494else
28495        _pkg_short_errors_supported=no
28496fi
28497        if test $_pkg_short_errors_supported = yes; then
28498	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent >= 2.0, libevent_pthreads" 2>&1`
28499        else
28500	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent >= 2.0, libevent_pthreads" 2>&1`
28501        fi
28502	# Put the nasty error message in config.log where it belongs
28503	echo "$LIBEVENT_PKG_ERRORS" >&5
28504
28505	# libevent not found
28506        as_fn_error $? "no libevent >= 2.0 found with pthreads support, imhiredis cannot use pub/sub" "$LINENO" 5
28507elif test $pkg_failed = untried; then
28508     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28509$as_echo "no" >&6; }
28510	# libevent not found
28511        as_fn_error $? "no libevent >= 2.0 found with pthreads support, imhiredis cannot use pub/sub" "$LINENO" 5
28512else
28513	LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
28514	LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
28515        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28516$as_echo "yes" >&6; }
28517	# libevent found
28518
28519            HIREDIS_LIBS="$HIREDIS_LIBS -levent -levent_pthreads"
28520
28521fi
28522fi
28523
28524 if test x$enable_omhiredis = xyes; then
28525  ENABLE_OMHIREDIS_TRUE=
28526  ENABLE_OMHIREDIS_FALSE='#'
28527else
28528  ENABLE_OMHIREDIS_TRUE='#'
28529  ENABLE_OMHIREDIS_FALSE=
28530fi
28531
28532 if test x$enable_imhiredis = xyes; then
28533  ENABLE_IMHIREDIS_TRUE=
28534  ENABLE_IMHIREDIS_FALSE='#'
28535else
28536  ENABLE_IMHIREDIS_TRUE='#'
28537  ENABLE_IMHIREDIS_FALSE=
28538fi
28539
28540
28541# END HIREDIS SUPPORT
28542
28543
28544# HTTPFS SUPPORT
28545
28546# Check whether --enable-omhttpfs was given.
28547if test "${enable_omhttpfs+set}" = set; then :
28548  enableval=$enable_omhttpfs; case "${enableval}" in
28549         yes) enable_omhttpfs="yes" ;;
28550          no) enable_omhttpfs="no" ;;
28551           *) as_fn_error $? "bad value ${enableval} for --enable-omhttpfs" "$LINENO" 5 ;;
28552         esac
28553else
28554  enable_omhttpfs=no
28555
28556fi
28557
28558
28559if test "x$enable_omhttpfs" = "xyes"; then
28560	for ac_header in curl/curl.h
28561do :
28562  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
28563if test "x$ac_cv_header_curl_curl_h" = xyes; then :
28564  cat >>confdefs.h <<_ACEOF
28565#define HAVE_CURL_CURL_H 1
28566_ACEOF
28567
28568fi
28569
28570done
28571
28572
28573pkg_failed=no
28574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
28575$as_echo_n "checking for CURL... " >&6; }
28576
28577if test -n "$CURL_CFLAGS"; then
28578    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
28579 elif test -n "$PKG_CONFIG"; then
28580    if test -n "$PKG_CONFIG" && \
28581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
28582  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
28583  ac_status=$?
28584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28585  test $ac_status = 0; }; then
28586  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
28587		      test "x$?" != "x0" && pkg_failed=yes
28588else
28589  pkg_failed=yes
28590fi
28591 else
28592    pkg_failed=untried
28593fi
28594if test -n "$CURL_LIBS"; then
28595    pkg_cv_CURL_LIBS="$CURL_LIBS"
28596 elif test -n "$PKG_CONFIG"; then
28597    if test -n "$PKG_CONFIG" && \
28598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
28599  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
28600  ac_status=$?
28601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28602  test $ac_status = 0; }; then
28603  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
28604		      test "x$?" != "x0" && pkg_failed=yes
28605else
28606  pkg_failed=yes
28607fi
28608 else
28609    pkg_failed=untried
28610fi
28611
28612
28613
28614if test $pkg_failed = yes; then
28615   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28616$as_echo "no" >&6; }
28617
28618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28619        _pkg_short_errors_supported=yes
28620else
28621        _pkg_short_errors_supported=no
28622fi
28623        if test $_pkg_short_errors_supported = yes; then
28624	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
28625        else
28626	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
28627        fi
28628	# Put the nasty error message in config.log where it belongs
28629	echo "$CURL_PKG_ERRORS" >&5
28630
28631	as_fn_error $? "Package requirements (libcurl) were not met:
28632
28633$CURL_PKG_ERRORS
28634
28635Consider adjusting the PKG_CONFIG_PATH environment variable if you
28636installed software in a non-standard prefix.
28637
28638Alternatively, you may set the environment variables CURL_CFLAGS
28639and CURL_LIBS to avoid the need to call pkg-config.
28640See the pkg-config man page for more details." "$LINENO" 5
28641elif test $pkg_failed = untried; then
28642     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28643$as_echo "no" >&6; }
28644	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28646as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28647is in your PATH or set the PKG_CONFIG environment variable to the full
28648path to pkg-config.
28649
28650Alternatively, you may set the environment variables CURL_CFLAGS
28651and CURL_LIBS to avoid the need to call pkg-config.
28652See the pkg-config man page for more details.
28653
28654To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28655See \`config.log' for more details" "$LINENO" 5; }
28656else
28657	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
28658	CURL_LIBS=$pkg_cv_CURL_LIBS
28659        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28660$as_echo "yes" >&6; }
28661
28662fi
28663	LIBM=
28664case $host in
28665*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
28666  # These system don't have libm, or don't need it
28667  ;;
28668*-ncr-sysv4.3*)
28669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
28670$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
28671if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
28672  $as_echo_n "(cached) " >&6
28673else
28674  ac_check_lib_save_LIBS=$LIBS
28675LIBS="-lmw  $LIBS"
28676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677/* end confdefs.h.  */
28678
28679/* Override any GCC internal prototype to avoid an error.
28680   Use char because int might match the return type of a GCC
28681   builtin and then its argument prototype would still apply.  */
28682#ifdef __cplusplus
28683extern "C"
28684#endif
28685char _mwvalidcheckl ();
28686int
28687main ()
28688{
28689return _mwvalidcheckl ();
28690  ;
28691  return 0;
28692}
28693_ACEOF
28694if ac_fn_c_try_link "$LINENO"; then :
28695  ac_cv_lib_mw__mwvalidcheckl=yes
28696else
28697  ac_cv_lib_mw__mwvalidcheckl=no
28698fi
28699rm -f core conftest.err conftest.$ac_objext \
28700    conftest$ac_exeext conftest.$ac_ext
28701LIBS=$ac_check_lib_save_LIBS
28702fi
28703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
28704$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
28705if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
28706  LIBM=-lmw
28707fi
28708
28709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
28710$as_echo_n "checking for cos in -lm... " >&6; }
28711if ${ac_cv_lib_m_cos+:} false; then :
28712  $as_echo_n "(cached) " >&6
28713else
28714  ac_check_lib_save_LIBS=$LIBS
28715LIBS="-lm  $LIBS"
28716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717/* end confdefs.h.  */
28718
28719/* Override any GCC internal prototype to avoid an error.
28720   Use char because int might match the return type of a GCC
28721   builtin and then its argument prototype would still apply.  */
28722#ifdef __cplusplus
28723extern "C"
28724#endif
28725char cos ();
28726int
28727main ()
28728{
28729return cos ();
28730  ;
28731  return 0;
28732}
28733_ACEOF
28734if ac_fn_c_try_link "$LINENO"; then :
28735  ac_cv_lib_m_cos=yes
28736else
28737  ac_cv_lib_m_cos=no
28738fi
28739rm -f core conftest.err conftest.$ac_objext \
28740    conftest$ac_exeext conftest.$ac_ext
28741LIBS=$ac_check_lib_save_LIBS
28742fi
28743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
28744$as_echo "$ac_cv_lib_m_cos" >&6; }
28745if test "x$ac_cv_lib_m_cos" = xyes; then :
28746  LIBM="$LIBM -lm"
28747fi
28748
28749  ;;
28750*)
28751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
28752$as_echo_n "checking for cos in -lm... " >&6; }
28753if ${ac_cv_lib_m_cos+:} false; then :
28754  $as_echo_n "(cached) " >&6
28755else
28756  ac_check_lib_save_LIBS=$LIBS
28757LIBS="-lm  $LIBS"
28758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759/* end confdefs.h.  */
28760
28761/* Override any GCC internal prototype to avoid an error.
28762   Use char because int might match the return type of a GCC
28763   builtin and then its argument prototype would still apply.  */
28764#ifdef __cplusplus
28765extern "C"
28766#endif
28767char cos ();
28768int
28769main ()
28770{
28771return cos ();
28772  ;
28773  return 0;
28774}
28775_ACEOF
28776if ac_fn_c_try_link "$LINENO"; then :
28777  ac_cv_lib_m_cos=yes
28778else
28779  ac_cv_lib_m_cos=no
28780fi
28781rm -f core conftest.err conftest.$ac_objext \
28782    conftest$ac_exeext conftest.$ac_ext
28783LIBS=$ac_check_lib_save_LIBS
28784fi
28785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
28786$as_echo "$ac_cv_lib_m_cos" >&6; }
28787if test "x$ac_cv_lib_m_cos" = xyes; then :
28788  LIBM=-lm
28789fi
28790
28791  ;;
28792esac
28793
28794
28795	#PKG_CHECK_MODULES(HTTPFS, curl >= 7.0.0)
28796fi
28797 if test x$enable_omhttpfs = xyes; then
28798  ENABLE_OMHTTPFS_TRUE=
28799  ENABLE_OMHTTPFS_FALSE='#'
28800else
28801  ENABLE_OMHTTPFS_TRUE='#'
28802  ENABLE_OMHTTPFS_FALSE=
28803fi
28804
28805
28806# END HTTPFS SUPPORT
28807
28808# AMQP 1.0 PROTOCOL SUPPORT
28809# uses the Proton protocol library
28810
28811# Check whether --enable-omamqp1 was given.
28812if test "${enable_omamqp1+set}" = set; then :
28813  enableval=$enable_omamqp1; case "${enableval}" in
28814         yes) enable_omamqp1="yes" ;;
28815          no) enable_omamqp1="no" ;;
28816           *) as_fn_error $? "bad value ${enableval} for --enable-omamqp1" "$LINENO" 5 ;;
28817         esac
28818else
28819  enable_omamqp1=no
28820
28821fi
28822
28823if test "x$enable_omamqp1" = "xyes"; then
28824
28825pkg_failed=no
28826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTON" >&5
28827$as_echo_n "checking for PROTON... " >&6; }
28828
28829if test -n "$PROTON_CFLAGS"; then
28830    pkg_cv_PROTON_CFLAGS="$PROTON_CFLAGS"
28831 elif test -n "$PKG_CONFIG"; then
28832    if test -n "$PKG_CONFIG" && \
28833    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpid-proton >= 0.9\""; } >&5
28834  ($PKG_CONFIG --exists --print-errors "libqpid-proton >= 0.9") 2>&5
28835  ac_status=$?
28836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28837  test $ac_status = 0; }; then
28838  pkg_cv_PROTON_CFLAGS=`$PKG_CONFIG --cflags "libqpid-proton >= 0.9" 2>/dev/null`
28839		      test "x$?" != "x0" && pkg_failed=yes
28840else
28841  pkg_failed=yes
28842fi
28843 else
28844    pkg_failed=untried
28845fi
28846if test -n "$PROTON_LIBS"; then
28847    pkg_cv_PROTON_LIBS="$PROTON_LIBS"
28848 elif test -n "$PKG_CONFIG"; then
28849    if test -n "$PKG_CONFIG" && \
28850    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpid-proton >= 0.9\""; } >&5
28851  ($PKG_CONFIG --exists --print-errors "libqpid-proton >= 0.9") 2>&5
28852  ac_status=$?
28853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854  test $ac_status = 0; }; then
28855  pkg_cv_PROTON_LIBS=`$PKG_CONFIG --libs "libqpid-proton >= 0.9" 2>/dev/null`
28856		      test "x$?" != "x0" && pkg_failed=yes
28857else
28858  pkg_failed=yes
28859fi
28860 else
28861    pkg_failed=untried
28862fi
28863
28864
28865
28866if test $pkg_failed = yes; then
28867   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28868$as_echo "no" >&6; }
28869
28870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28871        _pkg_short_errors_supported=yes
28872else
28873        _pkg_short_errors_supported=no
28874fi
28875        if test $_pkg_short_errors_supported = yes; then
28876	        PROTON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqpid-proton >= 0.9" 2>&1`
28877        else
28878	        PROTON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqpid-proton >= 0.9" 2>&1`
28879        fi
28880	# Put the nasty error message in config.log where it belongs
28881	echo "$PROTON_PKG_ERRORS" >&5
28882
28883	as_fn_error $? "Package requirements (libqpid-proton >= 0.9) were not met:
28884
28885$PROTON_PKG_ERRORS
28886
28887Consider adjusting the PKG_CONFIG_PATH environment variable if you
28888installed software in a non-standard prefix.
28889
28890Alternatively, you may set the environment variables PROTON_CFLAGS
28891and PROTON_LIBS to avoid the need to call pkg-config.
28892See the pkg-config man page for more details." "$LINENO" 5
28893elif test $pkg_failed = untried; then
28894     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895$as_echo "no" >&6; }
28896	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28898as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28899is in your PATH or set the PKG_CONFIG environment variable to the full
28900path to pkg-config.
28901
28902Alternatively, you may set the environment variables PROTON_CFLAGS
28903and PROTON_LIBS to avoid the need to call pkg-config.
28904See the pkg-config man page for more details.
28905
28906To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28907See \`config.log' for more details" "$LINENO" 5; }
28908else
28909	PROTON_CFLAGS=$pkg_cv_PROTON_CFLAGS
28910	PROTON_LIBS=$pkg_cv_PROTON_LIBS
28911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28912$as_echo "yes" >&6; }
28913
28914fi
28915
28916
28917fi
28918 if test x$enable_omamqp1 = xyes; then
28919  ENABLE_OMAMQP1_TRUE=
28920  ENABLE_OMAMQP1_FALSE='#'
28921else
28922  ENABLE_OMAMQP1_TRUE='#'
28923  ENABLE_OMAMQP1_FALSE=
28924fi
28925
28926
28927# END AMQP 1.0 PROTOCOL SUPPORT
28928
28929# TCL SUPPORT
28930
28931# Check whether --enable-omtcl was given.
28932if test "${enable_omtcl+set}" = set; then :
28933  enableval=$enable_omtcl; case "${enableval}" in
28934         yes) enable_omtcl="yes" ;;
28935          no) enable_omtcl="no" ;;
28936           *) as_fn_error $? "bad value ${enableval} for --enable-omtcl" "$LINENO" 5 ;;
28937         esac
28938else
28939  enable_omtcl=no
28940
28941fi
28942
28943
28944if test "x$enable_omtcl" = "xyes"; then
28945
28946    #
28947    # Ok, lets find the tcl configuration
28948    # First, look for one uninstalled.
28949    # the alternative search directory is invoked by --with-tcl
28950    #
28951
28952    if test x"${no_tcl}" = x ; then
28953	# we reset no_tcl in case something fails here
28954	no_tcl=true
28955
28956# Check whether --with-tcl was given.
28957if test "${with_tcl+set}" = set; then :
28958  withval=$with_tcl; with_tclconfig="${withval}"
28959fi
28960
28961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
28962$as_echo_n "checking for Tcl configuration... " >&6; }
28963	if ${ac_cv_c_tclconfig+:} false; then :
28964  $as_echo_n "(cached) " >&6
28965else
28966
28967
28968	    # First check to see if --with-tcl was specified.
28969	    if test x"${with_tclconfig}" != x ; then
28970		case "${with_tclconfig}" in
28971		    */tclConfig.sh )
28972			if test -f "${with_tclconfig}"; then
28973			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
28974$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
28975			    with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
28976			fi ;;
28977		esac
28978		if test -f "${with_tclconfig}/tclConfig.sh" ; then
28979		    ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
28980		else
28981		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
28982		fi
28983	    fi
28984
28985	    # then check for a private Tcl installation
28986	    if test x"${ac_cv_c_tclconfig}" = x ; then
28987		for i in \
28988			../tcl \
28989			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
28990			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
28991			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
28992			../../tcl \
28993			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
28994			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
28995			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
28996			../../../tcl \
28997			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
28998			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
28999			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
29000		    if test -f "$i/unix/tclConfig.sh" ; then
29001			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
29002			break
29003		    fi
29004		done
29005	    fi
29006
29007	    # on Darwin, check in Framework installation locations
29008	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
29009		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29010			`ls -d /Library/Frameworks 2>/dev/null` \
29011			`ls -d /Network/Library/Frameworks 2>/dev/null` \
29012			; do
29013		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
29014			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
29015			break
29016		    fi
29017		done
29018	    fi
29019
29020	    # check in a few common install locations
29021	    if test x"${ac_cv_c_tclconfig}" = x ; then
29022		for i in `ls -d ${libdir} 2>/dev/null` \
29023			`ls -d ${exec_prefix}/lib 2>/dev/null` \
29024			`ls -d ${prefix}/lib 2>/dev/null` \
29025			`ls -d /usr/local/lib 2>/dev/null` \
29026			`ls -d /usr/contrib/lib 2>/dev/null` \
29027			`ls -d /usr/pkg/lib 2>/dev/null` \
29028			`ls -d /usr/lib/tcl8.6 2>/dev/null` \
29029			`ls -d /usr/lib 2>/dev/null` \
29030			`ls -d /usr/lib64 2>/dev/null` \
29031			`ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
29032			`ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
29033			; do
29034		    if test -f "$i/tclConfig.sh" ; then
29035			ac_cv_c_tclconfig="`(cd $i; pwd)`"
29036			break
29037		    fi
29038		done
29039	    fi
29040
29041	    # check in a few other private locations
29042	    if test x"${ac_cv_c_tclconfig}" = x ; then
29043		for i in \
29044			${srcdir}/../tcl \
29045			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29046			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29047			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29048		    if test -f "$i/unix/tclConfig.sh" ; then
29049			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
29050			break
29051		    fi
29052		done
29053	    fi
29054
29055fi
29056
29057
29058	if test x"${ac_cv_c_tclconfig}" = x ; then
29059	    TCL_BIN_DIR="# no Tcl configs found"
29060	    as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
29061	else
29062	    no_tcl=
29063	    TCL_BIN_DIR="${ac_cv_c_tclconfig}"
29064	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29065$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29066	fi
29067    fi
29068
29069
29070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29071$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29072
29073    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29074        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29075$as_echo "loading" >&6; }
29076	. "${TCL_BIN_DIR}/tclConfig.sh"
29077    else
29078        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29079$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29080    fi
29081
29082    # eval is required to do the TCL_DBGX substitution
29083    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29084    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29085
29086    # If the TCL_BIN_DIR is the build directory (not the install directory),
29087    # then set the common variable name to the value of the build variables.
29088    # For example, the variable TCL_LIB_SPEC will be set to the value
29089    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29090    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29091    # installed and uninstalled version of Tcl.
29092    if test -f "${TCL_BIN_DIR}/Makefile" ; then
29093        TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
29094        TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
29095        TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
29096    elif test "`uname -s`" = "Darwin"; then
29097	# If Tcl was built as a framework, attempt to use the libraries
29098	# from the framework at the given location so that linking works
29099	# against Tcl.framework installed in an arbitrary location.
29100	case ${TCL_DEFS} in
29101	    *TCL_FRAMEWORK*)
29102		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29103		    for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
29104			     "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
29105			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29106			    TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
29107			    break
29108			fi
29109		    done
29110		fi
29111		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29112		    TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
29113		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29114		fi
29115		;;
29116	esac
29117    fi
29118
29119    # eval is required to do the TCL_DBGX substitution
29120    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29121    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29122    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29123    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139fi
29140 if test x$enable_omtcl = xyes; then
29141  ENABLE_OMTCL_TRUE=
29142  ENABLE_OMTCL_FALSE='#'
29143else
29144  ENABLE_OMTCL_TRUE='#'
29145  ENABLE_OMTCL_FALSE=
29146fi
29147
29148
29149# END TCL SUPPORT
29150
29151# mmkubernetes - Kubernetes metadata support
29152
29153# Check whether --enable-mmkubernetes was given.
29154if test "${enable_mmkubernetes+set}" = set; then :
29155  enableval=$enable_mmkubernetes; case "${enableval}" in
29156         yes) enable_mmkubernetes="yes" ;;
29157          no) enable_mmkubernetes="no" ;;
29158           *) as_fn_error $? "bad value ${enableval} for --enable-mmkubernetes" "$LINENO" 5 ;;
29159         esac
29160else
29161  enable_mmkubernetes=no
29162
29163fi
29164
29165if test "x$enable_mmkubernetes" = "xyes"; then
29166
29167pkg_failed=no
29168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
29169$as_echo_n "checking for CURL... " >&6; }
29170
29171if test -n "$CURL_CFLAGS"; then
29172    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
29173 elif test -n "$PKG_CONFIG"; then
29174    if test -n "$PKG_CONFIG" && \
29175    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
29176  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
29177  ac_status=$?
29178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29179  test $ac_status = 0; }; then
29180  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
29181		      test "x$?" != "x0" && pkg_failed=yes
29182else
29183  pkg_failed=yes
29184fi
29185 else
29186    pkg_failed=untried
29187fi
29188if test -n "$CURL_LIBS"; then
29189    pkg_cv_CURL_LIBS="$CURL_LIBS"
29190 elif test -n "$PKG_CONFIG"; then
29191    if test -n "$PKG_CONFIG" && \
29192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
29193  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
29194  ac_status=$?
29195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29196  test $ac_status = 0; }; then
29197  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
29198		      test "x$?" != "x0" && pkg_failed=yes
29199else
29200  pkg_failed=yes
29201fi
29202 else
29203    pkg_failed=untried
29204fi
29205
29206
29207
29208if test $pkg_failed = yes; then
29209   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29210$as_echo "no" >&6; }
29211
29212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29213        _pkg_short_errors_supported=yes
29214else
29215        _pkg_short_errors_supported=no
29216fi
29217        if test $_pkg_short_errors_supported = yes; then
29218	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
29219        else
29220	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
29221        fi
29222	# Put the nasty error message in config.log where it belongs
29223	echo "$CURL_PKG_ERRORS" >&5
29224
29225	as_fn_error $? "Package requirements (libcurl) were not met:
29226
29227$CURL_PKG_ERRORS
29228
29229Consider adjusting the PKG_CONFIG_PATH environment variable if you
29230installed software in a non-standard prefix.
29231
29232Alternatively, you may set the environment variables CURL_CFLAGS
29233and CURL_LIBS to avoid the need to call pkg-config.
29234See the pkg-config man page for more details." "$LINENO" 5
29235elif test $pkg_failed = untried; then
29236     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29237$as_echo "no" >&6; }
29238	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29240as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29241is in your PATH or set the PKG_CONFIG environment variable to the full
29242path to pkg-config.
29243
29244Alternatively, you may set the environment variables CURL_CFLAGS
29245and CURL_LIBS to avoid the need to call pkg-config.
29246See the pkg-config man page for more details.
29247
29248To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29249See \`config.log' for more details" "$LINENO" 5; }
29250else
29251	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
29252	CURL_LIBS=$pkg_cv_CURL_LIBS
29253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254$as_echo "yes" >&6; }
29255
29256fi
29257
29258pkg_failed=no
29259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLOGNORM" >&5
29260$as_echo_n "checking for LIBLOGNORM... " >&6; }
29261
29262if test -n "$LIBLOGNORM_CFLAGS"; then
29263    pkg_cv_LIBLOGNORM_CFLAGS="$LIBLOGNORM_CFLAGS"
29264 elif test -n "$PKG_CONFIG"; then
29265    if test -n "$PKG_CONFIG" && \
29266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lognorm >= 2.0.3\""; } >&5
29267  ($PKG_CONFIG --exists --print-errors "lognorm >= 2.0.3") 2>&5
29268  ac_status=$?
29269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29270  test $ac_status = 0; }; then
29271  pkg_cv_LIBLOGNORM_CFLAGS=`$PKG_CONFIG --cflags "lognorm >= 2.0.3" 2>/dev/null`
29272		      test "x$?" != "x0" && pkg_failed=yes
29273else
29274  pkg_failed=yes
29275fi
29276 else
29277    pkg_failed=untried
29278fi
29279if test -n "$LIBLOGNORM_LIBS"; then
29280    pkg_cv_LIBLOGNORM_LIBS="$LIBLOGNORM_LIBS"
29281 elif test -n "$PKG_CONFIG"; then
29282    if test -n "$PKG_CONFIG" && \
29283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lognorm >= 2.0.3\""; } >&5
29284  ($PKG_CONFIG --exists --print-errors "lognorm >= 2.0.3") 2>&5
29285  ac_status=$?
29286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29287  test $ac_status = 0; }; then
29288  pkg_cv_LIBLOGNORM_LIBS=`$PKG_CONFIG --libs "lognorm >= 2.0.3" 2>/dev/null`
29289		      test "x$?" != "x0" && pkg_failed=yes
29290else
29291  pkg_failed=yes
29292fi
29293 else
29294    pkg_failed=untried
29295fi
29296
29297
29298
29299if test $pkg_failed = yes; then
29300   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29301$as_echo "no" >&6; }
29302
29303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29304        _pkg_short_errors_supported=yes
29305else
29306        _pkg_short_errors_supported=no
29307fi
29308        if test $_pkg_short_errors_supported = yes; then
29309	        LIBLOGNORM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lognorm >= 2.0.3" 2>&1`
29310        else
29311	        LIBLOGNORM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lognorm >= 2.0.3" 2>&1`
29312        fi
29313	# Put the nasty error message in config.log where it belongs
29314	echo "$LIBLOGNORM_PKG_ERRORS" >&5
29315
29316	as_fn_error $? "Package requirements (lognorm >= 2.0.3) were not met:
29317
29318$LIBLOGNORM_PKG_ERRORS
29319
29320Consider adjusting the PKG_CONFIG_PATH environment variable if you
29321installed software in a non-standard prefix.
29322
29323Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
29324and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
29325See the pkg-config man page for more details." "$LINENO" 5
29326elif test $pkg_failed = untried; then
29327     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29328$as_echo "no" >&6; }
29329	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29331as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29332is in your PATH or set the PKG_CONFIG environment variable to the full
29333path to pkg-config.
29334
29335Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
29336and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
29337See the pkg-config man page for more details.
29338
29339To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29340See \`config.log' for more details" "$LINENO" 5; }
29341else
29342	LIBLOGNORM_CFLAGS=$pkg_cv_LIBLOGNORM_CFLAGS
29343	LIBLOGNORM_LIBS=$pkg_cv_LIBLOGNORM_LIBS
29344        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29345$as_echo "yes" >&6; }
29346
29347fi
29348
29349        save_CFLAGS="$CFLAGS"
29350        save_LIBS="$LIBS"
29351
29352        CFLAGS="$CFLAGS $LIBLOGNORM_CFLAGS"
29353        LIBS="$LIBS $LIBLOGNORM_LIBS"
29354
29355        ac_fn_c_check_func "$LINENO" "ln_loadSamplesFromString" "ac_cv_func_ln_loadSamplesFromString"
29356if test "x$ac_cv_func_ln_loadSamplesFromString" = xyes; then :
29357
29358$as_echo "#define HAVE_LOADSAMPLESFROMSTRING 1" >>confdefs.h
29359
29360else
29361
29362$as_echo "#define NO_LOADSAMPLESFROMSTRING 1" >>confdefs.h
29363
29364fi
29365
29366
29367        CFLAGS="$save_CFLAGS"
29368        LIBS="$save_LIBS"
29369fi
29370 if test x$enable_mmkubernetes = xyes; then
29371  ENABLE_MMKUBERNETES_TRUE=
29372  ENABLE_MMKUBERNETES_FALSE='#'
29373else
29374  ENABLE_MMKUBERNETES_TRUE='#'
29375  ENABLE_MMKUBERNETES_FALSE=
29376fi
29377
29378
29379# END Kubernetes metadata support
29380
29381
29382# mmtaghostname
29383# Check whether --enable-mmtaghostname was given.
29384if test "${enable_mmtaghostname+set}" = set; then :
29385  enableval=$enable_mmtaghostname; case "${enableval}" in
29386         yes) enable_mmtaghostname="yes" ;;
29387          no) enable_mmtaghostname="no" ;;
29388           *) as_fn_error $? "bad value ${enableval} for --enable-mmtaghostname" "$LINENO" 5 ;;
29389         esac
29390else
29391  enable_mmtaghostname=no
29392
29393fi
29394
29395 if test x$enable_mmtaghostname = xyes; then
29396  ENABLE_MMTAGHOSTNAME_TRUE=
29397  ENABLE_MMTAGHOSTNAME_FALSE='#'
29398else
29399  ENABLE_MMTAGHOSTNAME_TRUE='#'
29400  ENABLE_MMTAGHOSTNAME_FALSE=
29401fi
29402
29403#END mmtaghostname
29404
29405# man pages
29406have_to_generate_man_pages="no"
29407git_src_have_to_generate_man_pages="yes" # default to use when building from git source
29408# Check whether --enable-generate-man-pages was given.
29409if test "${enable_generate_man_pages+set}" = set; then :
29410  enableval=$enable_generate_man_pages; case "${enableval}" in
29411         yes) have_to_generate_man_pages="yes" ;;
29412          no) have_to_generate_man_pages="no" ;
29413              git_src_have_to_generate_man_pages="no"
29414	      ;;
29415           *) as_fn_error $? "bad value ${enableval} for --enable-generate-man-pages" "$LINENO" 5 ;;
29416         esac
29417else
29418  have_to_generate_man_pages=no
29419
29420fi
29421
29422
29423
29424# This provides a work-around to use "make distcheck" without
29425# running tests (mode used pre 2018-07-02)
29426# Check whether --enable-distcheck-workaround was given.
29427if test "${enable_distcheck_workaround+set}" = set; then :
29428  enableval=$enable_distcheck_workaround; case "${enableval}" in
29429         yes) enable_distcheck_workaround="yes" ;;
29430          no) enable_distcheck_workaround="no" ;;
29431           *) as_fn_error $? "bad value ${enableval} for --enable-distcheck_workaround" "$LINENO" 5 ;;
29432         esac
29433else
29434  enable_distcheck_workaround="no"
29435
29436fi
29437
29438 if test x$enable_distcheck_workaround = xyes; then
29439  ENABLE_DISTCHECK_WORKAROUND_TRUE=
29440  ENABLE_DISTCHECK_WORKAROUND_FALSE='#'
29441else
29442  ENABLE_DISTCHECK_WORKAROUND_TRUE='#'
29443  ENABLE_DISTCHECK_WORKAROUND_FALSE=
29444fi
29445
29446
29447
29448if test "x$in_git_src" = "xyes"; then
29449        { $as_echo "$as_me:${as_lineno-$LINENO}: Running from git source" >&5
29450$as_echo "$as_me: Running from git source" >&6;}
29451
29452        have_to_generate_man_pages=$git_src_have_to_generate_man_pages
29453
29454        if test "x$LEX" != "xflex"; then
29455                as_fn_error $? "flex program is needed to build rsyslog, please install flex." "$LINENO" 5
29456        fi
29457
29458        if test "x$YACC" = "xyacc"; then
29459                # AC_PROG_YACC only checks for yacc replacements, not for yacc itself
29460                # Extract the first word of "yacc", so it can be a program name with args.
29461set dummy yacc; ac_word=$2
29462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29463$as_echo_n "checking for $ac_word... " >&6; }
29464if ${ac_cv_prog_YACC_FOUND+:} false; then :
29465  $as_echo_n "(cached) " >&6
29466else
29467  if test -n "$YACC_FOUND"; then
29468  ac_cv_prog_YACC_FOUND="$YACC_FOUND" # Let the user override the test.
29469else
29470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29471for as_dir in $PATH
29472do
29473  IFS=$as_save_IFS
29474  test -z "$as_dir" && as_dir=.
29475    for ac_exec_ext in '' $ac_executable_extensions; do
29476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29477    ac_cv_prog_YACC_FOUND="yes"
29478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29479    break 2
29480  fi
29481done
29482  done
29483IFS=$as_save_IFS
29484
29485  test -z "$ac_cv_prog_YACC_FOUND" && ac_cv_prog_YACC_FOUND="no"
29486fi
29487fi
29488YACC_FOUND=$ac_cv_prog_YACC_FOUND
29489if test -n "$YACC_FOUND"; then
29490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_FOUND" >&5
29491$as_echo "$YACC_FOUND" >&6; }
29492else
29493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29494$as_echo "no" >&6; }
29495fi
29496
29497
29498                if test "x$YACC_FOUND" = "xno"; then
29499                        as_fn_error $? "A yacc program is needed to build rsyslog, please install bison." "$LINENO" 5
29500                fi
29501        fi
29502else
29503        { $as_echo "$as_me:${as_lineno-$LINENO}: Not running from git source" >&5
29504$as_echo "$as_me: Not running from git source" >&6;}
29505fi
29506
29507 if test x$have_to_generate_man_pages = xyes; then
29508  ENABLE_GENERATE_MAN_PAGES_TRUE=
29509  ENABLE_GENERATE_MAN_PAGES_FALSE='#'
29510else
29511  ENABLE_GENERATE_MAN_PAGES_TRUE='#'
29512  ENABLE_GENERATE_MAN_PAGES_FALSE=
29513fi
29514
29515
29516# rst2man
29517for ac_prog in rst2man rst2man.py
29518do
29519  # Extract the first word of "$ac_prog", so it can be a program name with args.
29520set dummy $ac_prog; ac_word=$2
29521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29522$as_echo_n "checking for $ac_word... " >&6; }
29523if ${ac_cv_prog_RST2MAN+:} false; then :
29524  $as_echo_n "(cached) " >&6
29525else
29526  if test -n "$RST2MAN"; then
29527  ac_cv_prog_RST2MAN="$RST2MAN" # Let the user override the test.
29528else
29529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29530for as_dir in $PATH
29531do
29532  IFS=$as_save_IFS
29533  test -z "$as_dir" && as_dir=.
29534    for ac_exec_ext in '' $ac_executable_extensions; do
29535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29536    ac_cv_prog_RST2MAN="$ac_prog"
29537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29538    break 2
29539  fi
29540done
29541  done
29542IFS=$as_save_IFS
29543
29544fi
29545fi
29546RST2MAN=$ac_cv_prog_RST2MAN
29547if test -n "$RST2MAN"; then
29548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
29549$as_echo "$RST2MAN" >&6; }
29550else
29551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29552$as_echo "no" >&6; }
29553fi
29554
29555
29556  test -n "$RST2MAN" && break
29557done
29558test -n "$RST2MAN" || RST2MAN="false"
29559
29560if test "x$have_to_generate_man_pages" = "xyes" && test "x$RST2MAN" = "xfalse"; then
29561        as_fn_error $? "rst2man is required when building from git source or --enable-generate-man-pages option was set, please install python-docutils." "$LINENO" 5
29562fi
29563
29564
29565ac_config_files="$ac_config_files Makefile runtime/Makefile compat/Makefile grammar/Makefile tools/Makefile plugins/imudp/Makefile plugins/imtcp/Makefile plugins/im3195/Makefile plugins/imgssapi/Makefile plugins/imuxsock/Makefile plugins/imjournal/Makefile plugins/immark/Makefile plugins/imklog/Makefile plugins/omhdfs/Makefile plugins/omkafka/Makefile plugins/omprog/Makefile plugins/mmexternal/Makefile plugins/omstdout/Makefile plugins/omjournal/Makefile plugins/pmciscoios/Makefile plugins/pmnull/Makefile plugins/pmnormalize/Makefile plugins/omruleset/Makefile plugins/omuxsock/Makefile plugins/imfile/Makefile plugins/imsolaris/Makefile plugins/imptcp/Makefile plugins/impstats/Makefile plugins/imrelp/Makefile plugins/imdiag/Makefile plugins/imkafka/Makefile plugins/omtesting/Makefile plugins/omgssapi/Makefile plugins/ommysql/Makefile plugins/ompgsql/Makefile plugins/omrelp/Makefile plugins/omlibdbi/Makefile plugins/ommail/Makefile plugins/fmhttp/Makefile plugins/omsnmp/Makefile plugins/omudpspoof/Makefile plugins/ommongodb/Makefile plugins/mmnormalize/Makefile plugins/mmjsonparse/Makefile plugins/mmaudit/Makefile plugins/mmanon/Makefile plugins/mmrm1stspace/Makefile plugins/mmutf8fix/Makefile plugins/mmfields/Makefile plugins/mmpstrucdata/Makefile plugins/omelasticsearch/Makefile plugins/omclickhouse/Makefile plugins/mmsnmptrapd/Makefile plugins/pmlastmsg/Makefile plugins/mmdblookup/Makefile contrib/mmdarwin/Makefile contrib/omhttp/Makefile contrib/fmhash/Makefile contrib/fmunflatten/Makefile contrib/ffaup/Makefile contrib/pmsnare/Makefile contrib/pmpanngfw/Makefile contrib/pmaixforwardedfrom/Makefile contrib/omhiredis/Makefile contrib/omrabbitmq/Makefile contrib/imkmsg/Makefile contrib/mmgrok/Makefile contrib/mmcount/Makefile contrib/omczmq/Makefile contrib/imczmq/Makefile contrib/mmsequence/Makefile contrib/mmrfc5424addhmac/Makefile contrib/pmcisconames/Makefile contrib/omhttpfs/Makefile contrib/omamqp1/Makefile contrib/omtcl/Makefile contrib/imbatchreport/Makefile contrib/omfile-hardened/Makefile contrib/mmkubernetes/Makefile contrib/impcap/Makefile contrib/imtuxedoulog/Makefile contrib/improg/Makefile contrib/imhttp/Makefile contrib/mmtaghostname/Makefile contrib/imdocker/Makefile contrib/pmdb2diag/Makefile contrib/imhiredis/Makefile tests/set-envvars tests/Makefile"
29566
29567cat >confcache <<\_ACEOF
29568# This file is a shell script that caches the results of configure
29569# tests run on this system so they can be shared between configure
29570# scripts and configure runs, see configure's option --config-cache.
29571# It is not useful on other systems.  If it contains results you don't
29572# want to keep, you may remove or edit it.
29573#
29574# config.status only pays attention to the cache file if you give it
29575# the --recheck option to rerun configure.
29576#
29577# `ac_cv_env_foo' variables (set or unset) will be overridden when
29578# loading this file, other *unset* `ac_cv_foo' will be assigned the
29579# following values.
29580
29581_ACEOF
29582
29583# The following way of writing the cache mishandles newlines in values,
29584# but we know of no workaround that is simple, portable, and efficient.
29585# So, we kill variables containing newlines.
29586# Ultrix sh set writes to stderr and can't be redirected directly,
29587# and sets the high bit in the cache file unless we assign to the vars.
29588(
29589  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29590    eval ac_val=\$$ac_var
29591    case $ac_val in #(
29592    *${as_nl}*)
29593      case $ac_var in #(
29594      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29595$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29596      esac
29597      case $ac_var in #(
29598      _ | IFS | as_nl) ;; #(
29599      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29600      *) { eval $ac_var=; unset $ac_var;} ;;
29601      esac ;;
29602    esac
29603  done
29604
29605  (set) 2>&1 |
29606    case $as_nl`(ac_space=' '; set) 2>&1` in #(
29607    *${as_nl}ac_space=\ *)
29608      # `set' does not quote correctly, so add quotes: double-quote
29609      # substitution turns \\\\ into \\, and sed turns \\ into \.
29610      sed -n \
29611	"s/'/'\\\\''/g;
29612	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29613      ;; #(
29614    *)
29615      # `set' quotes correctly as required by POSIX, so do not add quotes.
29616      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29617      ;;
29618    esac |
29619    sort
29620) |
29621  sed '
29622     /^ac_cv_env_/b end
29623     t clear
29624     :clear
29625     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29626     t end
29627     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29628     :end' >>confcache
29629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29630  if test -w "$cache_file"; then
29631    if test "x$cache_file" != "x/dev/null"; then
29632      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29633$as_echo "$as_me: updating cache $cache_file" >&6;}
29634      if test ! -f "$cache_file" || test -h "$cache_file"; then
29635	cat confcache >"$cache_file"
29636      else
29637        case $cache_file in #(
29638        */* | ?:*)
29639	  mv -f confcache "$cache_file"$$ &&
29640	  mv -f "$cache_file"$$ "$cache_file" ;; #(
29641        *)
29642	  mv -f confcache "$cache_file" ;;
29643	esac
29644      fi
29645    fi
29646  else
29647    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29648$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29649  fi
29650fi
29651rm -f confcache
29652
29653test "x$prefix" = xNONE && prefix=$ac_default_prefix
29654# Let make expand exec_prefix.
29655test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29656
29657DEFS=-DHAVE_CONFIG_H
29658
29659ac_libobjs=
29660ac_ltlibobjs=
29661U=
29662for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29663  # 1. Remove the extension, and $U if already installed.
29664  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29665  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29666  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29667  #    will be set to the directory where LIBOBJS objects are built.
29668  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29669  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29670done
29671LIBOBJS=$ac_libobjs
29672
29673LTLIBOBJS=$ac_ltlibobjs
29674
29675
29676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29677$as_echo_n "checking that generated files are newer than configure... " >&6; }
29678   if test -n "$am_sleep_pid"; then
29679     # Hide warnings about reused PIDs.
29680     wait $am_sleep_pid 2>/dev/null
29681   fi
29682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
29683$as_echo "done" >&6; }
29684 if test -n "$EXEEXT"; then
29685  am__EXEEXT_TRUE=
29686  am__EXEEXT_FALSE='#'
29687else
29688  am__EXEEXT_TRUE='#'
29689  am__EXEEXT_FALSE=
29690fi
29691
29692if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29693  as_fn_error $? "conditional \"AMDEP\" was never defined.
29694Usually this means the macro was only invoked conditionally." "$LINENO" 5
29695fi
29696if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29697  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29698Usually this means the macro was only invoked conditionally." "$LINENO" 5
29699fi
29700if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29701  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29702Usually this means the macro was only invoked conditionally." "$LINENO" 5
29703fi
29704if test -z "${OS_APPLE_TRUE}" && test -z "${OS_APPLE_FALSE}"; then
29705  as_fn_error $? "conditional \"OS_APPLE\" was never defined.
29706Usually this means the macro was only invoked conditionally." "$LINENO" 5
29707fi
29708if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
29709  as_fn_error $? "conditional \"OS_LINUX\" was never defined.
29710Usually this means the macro was only invoked conditionally." "$LINENO" 5
29711fi
29712if test -z "${OS_AIX_TRUE}" && test -z "${OS_AIX_FALSE}"; then
29713  as_fn_error $? "conditional \"OS_AIX\" was never defined.
29714Usually this means the macro was only invoked conditionally." "$LINENO" 5
29715fi
29716if test -z "${ENABLE_INOTIFY_TRUE}" && test -z "${ENABLE_INOTIFY_FALSE}"; then
29717  as_fn_error $? "conditional \"ENABLE_INOTIFY\" was never defined.
29718Usually this means the macro was only invoked conditionally." "$LINENO" 5
29719fi
29720if test -z "${WITH_MODDIRS_TRUE}" && test -z "${WITH_MODDIRS_FALSE}"; then
29721  as_fn_error $? "conditional \"WITH_MODDIRS\" was never defined.
29722Usually this means the macro was only invoked conditionally." "$LINENO" 5
29723fi
29724if test -z "${ENABLE_REGEXP_TRUE}" && test -z "${ENABLE_REGEXP_FALSE}"; then
29725  as_fn_error $? "conditional \"ENABLE_REGEXP\" was never defined.
29726Usually this means the macro was only invoked conditionally." "$LINENO" 5
29727fi
29728if test -z "${ENABLE_FMHASH_TRUE}" && test -z "${ENABLE_FMHASH_FALSE}"; then
29729  as_fn_error $? "conditional \"ENABLE_FMHASH\" was never defined.
29730Usually this means the macro was only invoked conditionally." "$LINENO" 5
29731fi
29732if test -z "${ENABLE_FMHASH_XXHASH_TRUE}" && test -z "${ENABLE_FMHASH_XXHASH_FALSE}"; then
29733  as_fn_error $? "conditional \"ENABLE_FMHASH_XXHASH\" was never defined.
29734Usually this means the macro was only invoked conditionally." "$LINENO" 5
29735fi
29736if test -z "${ENABLE_FFAUP_TRUE}" && test -z "${ENABLE_FFAUP_FALSE}"; then
29737  as_fn_error $? "conditional \"ENABLE_FFAUP\" was never defined.
29738Usually this means the macro was only invoked conditionally." "$LINENO" 5
29739fi
29740if test -z "${ENABLE_FMUNFLATTEN_TRUE}" && test -z "${ENABLE_FMUNFLATTEN_FALSE}"; then
29741  as_fn_error $? "conditional \"ENABLE_FMUNFLATTEN\" was never defined.
29742Usually this means the macro was only invoked conditionally." "$LINENO" 5
29743fi
29744if test -z "${ENABLE_GSSAPI_TRUE}" && test -z "${ENABLE_GSSAPI_FALSE}"; then
29745  as_fn_error $? "conditional \"ENABLE_GSSAPI\" was never defined.
29746Usually this means the macro was only invoked conditionally." "$LINENO" 5
29747fi
29748if test -z "${ENABLE_ROOT_TESTS_TRUE}" && test -z "${ENABLE_ROOT_TESTS_FALSE}"; then
29749  as_fn_error $? "conditional \"ENABLE_ROOT_TESTS\" was never defined.
29750Usually this means the macro was only invoked conditionally." "$LINENO" 5
29751fi
29752if test -z "${ENABLE_IMKLOG_TRUE}" && test -z "${ENABLE_IMKLOG_FALSE}"; then
29753  as_fn_error $? "conditional \"ENABLE_IMKLOG\" was never defined.
29754Usually this means the macro was only invoked conditionally." "$LINENO" 5
29755fi
29756if test -z "${ENABLE_IMKLOG_BSD_TRUE}" && test -z "${ENABLE_IMKLOG_BSD_FALSE}"; then
29757  as_fn_error $? "conditional \"ENABLE_IMKLOG_BSD\" was never defined.
29758Usually this means the macro was only invoked conditionally." "$LINENO" 5
29759fi
29760if test -z "${ENABLE_IMKLOG_LINUX_TRUE}" && test -z "${ENABLE_IMKLOG_LINUX_FALSE}"; then
29761  as_fn_error $? "conditional \"ENABLE_IMKLOG_LINUX\" was never defined.
29762Usually this means the macro was only invoked conditionally." "$LINENO" 5
29763fi
29764if test -z "${ENABLE_IMKLOG_SOLARIS_TRUE}" && test -z "${ENABLE_IMKLOG_SOLARIS_FALSE}"; then
29765  as_fn_error $? "conditional \"ENABLE_IMKLOG_SOLARIS\" was never defined.
29766Usually this means the macro was only invoked conditionally." "$LINENO" 5
29767fi
29768if test -z "${ENABLE_IMKMSG_TRUE}" && test -z "${ENABLE_IMKMSG_FALSE}"; then
29769  as_fn_error $? "conditional \"ENABLE_IMKMSG\" was never defined.
29770Usually this means the macro was only invoked conditionally." "$LINENO" 5
29771fi
29772if test -z "${IMJOURNAL_USE_DUMMY_TRUE}" && test -z "${IMJOURNAL_USE_DUMMY_FALSE}"; then
29773  as_fn_error $? "conditional \"IMJOURNAL_USE_DUMMY\" was never defined.
29774Usually this means the macro was only invoked conditionally." "$LINENO" 5
29775fi
29776if test -z "${ENABLE_IMJOURNAL_TRUE}" && test -z "${ENABLE_IMJOURNAL_FALSE}"; then
29777  as_fn_error $? "conditional \"ENABLE_IMJOURNAL\" was never defined.
29778Usually this means the macro was only invoked conditionally." "$LINENO" 5
29779fi
29780if test -z "${ENABLE_INET_TRUE}" && test -z "${ENABLE_INET_FALSE}"; then
29781  as_fn_error $? "conditional \"ENABLE_INET\" was never defined.
29782Usually this means the macro was only invoked conditionally." "$LINENO" 5
29783fi
29784if test -z "${ENABLE_JEMALLOC_TRUE}" && test -z "${ENABLE_JEMALLOC_FALSE}"; then
29785  as_fn_error $? "conditional \"ENABLE_JEMALLOC\" was never defined.
29786Usually this means the macro was only invoked conditionally." "$LINENO" 5
29787fi
29788if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
29789  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
29790Usually this means the macro was only invoked conditionally." "$LINENO" 5
29791fi
29792if test -z "${ENABLE_DIAGTOOLS_TRUE}" && test -z "${ENABLE_DIAGTOOLS_FALSE}"; then
29793  as_fn_error $? "conditional \"ENABLE_DIAGTOOLS\" was never defined.
29794Usually this means the macro was only invoked conditionally." "$LINENO" 5
29795fi
29796if test -z "${ENABLE_USERTOOLS_TRUE}" && test -z "${ENABLE_USERTOOLS_FALSE}"; then
29797  as_fn_error $? "conditional \"ENABLE_USERTOOLS\" was never defined.
29798Usually this means the macro was only invoked conditionally." "$LINENO" 5
29799fi
29800if test -z "${ENABLE_MYSQL_TRUE}" && test -z "${ENABLE_MYSQL_FALSE}"; then
29801  as_fn_error $? "conditional \"ENABLE_MYSQL\" was never defined.
29802Usually this means the macro was only invoked conditionally." "$LINENO" 5
29803fi
29804if test -z "${ENABLE_PGSQL_TRUE}" && test -z "${ENABLE_PGSQL_FALSE}"; then
29805  as_fn_error $? "conditional \"ENABLE_PGSQL\" was never defined.
29806Usually this means the macro was only invoked conditionally." "$LINENO" 5
29807fi
29808if test -z "${LIBDBI_USE_DUMMY_TRUE}" && test -z "${LIBDBI_USE_DUMMY_FALSE}"; then
29809  as_fn_error $? "conditional \"LIBDBI_USE_DUMMY\" was never defined.
29810Usually this means the macro was only invoked conditionally." "$LINENO" 5
29811fi
29812if test -z "${ENABLE_OMLIBDBI_TRUE}" && test -z "${ENABLE_OMLIBDBI_FALSE}"; then
29813  as_fn_error $? "conditional \"ENABLE_OMLIBDBI\" was never defined.
29814Usually this means the macro was only invoked conditionally." "$LINENO" 5
29815fi
29816if test -z "${ENABLE_SNMP_TRUE}" && test -z "${ENABLE_SNMP_FALSE}"; then
29817  as_fn_error $? "conditional \"ENABLE_SNMP\" was never defined.
29818Usually this means the macro was only invoked conditionally." "$LINENO" 5
29819fi
29820if test -z "${ENABLE_SNMP_TESTS_TRUE}" && test -z "${ENABLE_SNMP_TESTS_FALSE}"; then
29821  as_fn_error $? "conditional \"ENABLE_SNMP_TESTS\" was never defined.
29822Usually this means the macro was only invoked conditionally." "$LINENO" 5
29823fi
29824if test -z "${ENABLE_UUID_TRUE}" && test -z "${ENABLE_UUID_FALSE}"; then
29825  as_fn_error $? "conditional \"ENABLE_UUID\" was never defined.
29826Usually this means the macro was only invoked conditionally." "$LINENO" 5
29827fi
29828if test -z "${ENABLE_ELASTICSEARCH_TRUE}" && test -z "${ENABLE_ELASTICSEARCH_FALSE}"; then
29829  as_fn_error $? "conditional \"ENABLE_ELASTICSEARCH\" was never defined.
29830Usually this means the macro was only invoked conditionally." "$LINENO" 5
29831fi
29832if test -z "${ENABLE_CLICKHOUSE_TRUE}" && test -z "${ENABLE_CLICKHOUSE_FALSE}"; then
29833  as_fn_error $? "conditional \"ENABLE_CLICKHOUSE\" was never defined.
29834Usually this means the macro was only invoked conditionally." "$LINENO" 5
29835fi
29836if test -z "${ENABLE_OMHTTP_TRUE}" && test -z "${ENABLE_OMHTTP_FALSE}"; then
29837  as_fn_error $? "conditional \"ENABLE_OMHTTP\" was never defined.
29838Usually this means the macro was only invoked conditionally." "$LINENO" 5
29839fi
29840if test -z "${ENABLE_ELASTICSEARCH_TESTS_TRUE}" && test -z "${ENABLE_ELASTICSEARCH_TESTS_FALSE}"; then
29841  as_fn_error $? "conditional \"ENABLE_ELASTICSEARCH_TESTS\" was never defined.
29842Usually this means the macro was only invoked conditionally." "$LINENO" 5
29843fi
29844if test -z "${ENABLE_ELASTICSEARCH_TESTS_MINIMAL_TRUE}" && test -z "${ENABLE_ELASTICSEARCH_TESTS_MINIMAL_FALSE}"; then
29845  as_fn_error $? "conditional \"ENABLE_ELASTICSEARCH_TESTS_MINIMAL\" was never defined.
29846Usually this means the macro was only invoked conditionally." "$LINENO" 5
29847fi
29848if test -z "${ENABLE_CLICKHOUSE_TESTS_TRUE}" && test -z "${ENABLE_CLICKHOUSE_TESTS_FALSE}"; then
29849  as_fn_error $? "conditional \"ENABLE_CLICKHOUSE_TESTS\" was never defined.
29850Usually this means the macro was only invoked conditionally." "$LINENO" 5
29851fi
29852if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
29853  as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
29854Usually this means the macro was only invoked conditionally." "$LINENO" 5
29855fi
29856if test -z "${ENABLE_GNUTLS_TRUE}" && test -z "${ENABLE_GNUTLS_FALSE}"; then
29857  as_fn_error $? "conditional \"ENABLE_GNUTLS\" was never defined.
29858Usually this means the macro was only invoked conditionally." "$LINENO" 5
29859fi
29860if test -z "${ENABLE_GNUTLS_TESTS_TRUE}" && test -z "${ENABLE_GNUTLS_TESTS_FALSE}"; then
29861  as_fn_error $? "conditional \"ENABLE_GNUTLS_TESTS\" was never defined.
29862Usually this means the macro was only invoked conditionally." "$LINENO" 5
29863fi
29864if test -z "${ENABLE_LIBGCRYPT_TRUE}" && test -z "${ENABLE_LIBGCRYPT_FALSE}"; then
29865  as_fn_error $? "conditional \"ENABLE_LIBGCRYPT\" was never defined.
29866Usually this means the macro was only invoked conditionally." "$LINENO" 5
29867fi
29868if test -z "${ENABLE_RSYSLOGRT_TRUE}" && test -z "${ENABLE_RSYSLOGRT_FALSE}"; then
29869  as_fn_error $? "conditional \"ENABLE_RSYSLOGRT\" was never defined.
29870Usually this means the macro was only invoked conditionally." "$LINENO" 5
29871fi
29872if test -z "${ENABLE_RSYSLOGD_TRUE}" && test -z "${ENABLE_RSYSLOGD_FALSE}"; then
29873  as_fn_error $? "conditional \"ENABLE_RSYSLOGD\" was never defined.
29874Usually this means the macro was only invoked conditionally." "$LINENO" 5
29875fi
29876if test -z "${ENABLE_EXTENDED_TESTS_TRUE}" && test -z "${ENABLE_EXTENDED_TESTS_FALSE}"; then
29877  as_fn_error $? "conditional \"ENABLE_EXTENDED_TESTS\" was never defined.
29878Usually this means the macro was only invoked conditionally." "$LINENO" 5
29879fi
29880if test -z "${ENABLE_MYSQL_TESTS_TRUE}" && test -z "${ENABLE_MYSQL_TESTS_FALSE}"; then
29881  as_fn_error $? "conditional \"ENABLE_MYSQL_TESTS\" was never defined.
29882Usually this means the macro was only invoked conditionally." "$LINENO" 5
29883fi
29884if test -z "${ENABLE_PGSQL_TESTS_TRUE}" && test -z "${ENABLE_PGSQL_TESTS_FALSE}"; then
29885  as_fn_error $? "conditional \"ENABLE_PGSQL_TESTS\" was never defined.
29886Usually this means the macro was only invoked conditionally." "$LINENO" 5
29887fi
29888if test -z "${ENABLE_MAIL_TRUE}" && test -z "${ENABLE_MAIL_FALSE}"; then
29889  as_fn_error $? "conditional \"ENABLE_MAIL\" was never defined.
29890Usually this means the macro was only invoked conditionally." "$LINENO" 5
29891fi
29892if test -z "${ENABLE_FMHTTP_TRUE}" && test -z "${ENABLE_FMHTTP_FALSE}"; then
29893  as_fn_error $? "conditional \"ENABLE_FMHTTP\" was never defined.
29894Usually this means the macro was only invoked conditionally." "$LINENO" 5
29895fi
29896if test -z "${ENABLE_IMDIAG_TRUE}" && test -z "${ENABLE_IMDIAG_FALSE}"; then
29897  as_fn_error $? "conditional \"ENABLE_IMDIAG\" was never defined.
29898Usually this means the macro was only invoked conditionally." "$LINENO" 5
29899fi
29900if test -z "${LOGNORM_REGEX_SUPPORTED_TRUE}" && test -z "${LOGNORM_REGEX_SUPPORTED_FALSE}"; then
29901  as_fn_error $? "conditional \"LOGNORM_REGEX_SUPPORTED\" was never defined.
29902Usually this means the macro was only invoked conditionally." "$LINENO" 5
29903fi
29904if test -z "${ENABLE_MMNORMALIZE_TRUE}" && test -z "${ENABLE_MMNORMALIZE_FALSE}"; then
29905  as_fn_error $? "conditional \"ENABLE_MMNORMALIZE\" was never defined.
29906Usually this means the macro was only invoked conditionally." "$LINENO" 5
29907fi
29908if test -z "${ENABLE_MMJSONPARSE_TRUE}" && test -z "${ENABLE_MMJSONPARSE_FALSE}"; then
29909  as_fn_error $? "conditional \"ENABLE_MMJSONPARSE\" was never defined.
29910Usually this means the macro was only invoked conditionally." "$LINENO" 5
29911fi
29912if test -z "${ENABLE_MMGROK_TRUE}" && test -z "${ENABLE_MMGROK_FALSE}"; then
29913  as_fn_error $? "conditional \"ENABLE_MMGROK\" was never defined.
29914Usually this means the macro was only invoked conditionally." "$LINENO" 5
29915fi
29916if test -z "${ENABLE_MMAUDIT_TRUE}" && test -z "${ENABLE_MMAUDIT_FALSE}"; then
29917  as_fn_error $? "conditional \"ENABLE_MMAUDIT\" was never defined.
29918Usually this means the macro was only invoked conditionally." "$LINENO" 5
29919fi
29920if test -z "${ENABLE_MMANON_TRUE}" && test -z "${ENABLE_MMANON_FALSE}"; then
29921  as_fn_error $? "conditional \"ENABLE_MMANON\" was never defined.
29922Usually this means the macro was only invoked conditionally." "$LINENO" 5
29923fi
29924if test -z "${ENABLE_MMRM1STSPACE_TRUE}" && test -z "${ENABLE_MMRM1STSPACE_FALSE}"; then
29925  as_fn_error $? "conditional \"ENABLE_MMRM1STSPACE\" was never defined.
29926Usually this means the macro was only invoked conditionally." "$LINENO" 5
29927fi
29928if test -z "${ENABLE_MMUTF8FIX_TRUE}" && test -z "${ENABLE_MMUTF8FIX_FALSE}"; then
29929  as_fn_error $? "conditional \"ENABLE_MMUTF8FIX\" was never defined.
29930Usually this means the macro was only invoked conditionally." "$LINENO" 5
29931fi
29932if test -z "${ENABLE_MMCOUNT_TRUE}" && test -z "${ENABLE_MMCOUNT_FALSE}"; then
29933  as_fn_error $? "conditional \"ENABLE_MMCOUNT\" was never defined.
29934Usually this means the macro was only invoked conditionally." "$LINENO" 5
29935fi
29936if test -z "${ENABLE_MMSEQUENCE_TRUE}" && test -z "${ENABLE_MMSEQUENCE_FALSE}"; then
29937  as_fn_error $? "conditional \"ENABLE_MMSEQUENCE\" was never defined.
29938Usually this means the macro was only invoked conditionally." "$LINENO" 5
29939fi
29940if test -z "${ENABLE_MMDBLOOKUP_TRUE}" && test -z "${ENABLE_MMDBLOOKUP_FALSE}"; then
29941  as_fn_error $? "conditional \"ENABLE_MMDBLOOKUP\" was never defined.
29942Usually this means the macro was only invoked conditionally." "$LINENO" 5
29943fi
29944if test -z "${MMDBLOOKUP_USE_DUMMY_TRUE}" && test -z "${MMDBLOOKUP_USE_DUMMY_FALSE}"; then
29945  as_fn_error $? "conditional \"MMDBLOOKUP_USE_DUMMY\" was never defined.
29946Usually this means the macro was only invoked conditionally." "$LINENO" 5
29947fi
29948if test -z "${ENABLE_MMDARWIN_TRUE}" && test -z "${ENABLE_MMDARWIN_FALSE}"; then
29949  as_fn_error $? "conditional \"ENABLE_MMDARWIN\" was never defined.
29950Usually this means the macro was only invoked conditionally." "$LINENO" 5
29951fi
29952if test -z "${ENABLE_MMFIELDS_TRUE}" && test -z "${ENABLE_MMFIELDS_FALSE}"; then
29953  as_fn_error $? "conditional \"ENABLE_MMFIELDS\" was never defined.
29954Usually this means the macro was only invoked conditionally." "$LINENO" 5
29955fi
29956if test -z "${ENABLE_MMPSTRUCDATA_TRUE}" && test -z "${ENABLE_MMPSTRUCDATA_FALSE}"; then
29957  as_fn_error $? "conditional \"ENABLE_MMPSTRUCDATA\" was never defined.
29958Usually this means the macro was only invoked conditionally." "$LINENO" 5
29959fi
29960if test -z "${ENABLE_MMRFC5424ADDHMAC_TRUE}" && test -z "${ENABLE_MMRFC5424ADDHMAC_FALSE}"; then
29961  as_fn_error $? "conditional \"ENABLE_MMRFC5424ADDHMAC\" was never defined.
29962Usually this means the macro was only invoked conditionally." "$LINENO" 5
29963fi
29964if test -z "${ENABLE_OMFILE_HARDENED_TRUE}" && test -z "${ENABLE_OMFILE_HARDENED_FALSE}"; then
29965  as_fn_error $? "conditional \"ENABLE_OMFILE_HARDENED\" was never defined.
29966Usually this means the macro was only invoked conditionally." "$LINENO" 5
29967fi
29968if test -z "${ENABLE_RELP_TRUE}" && test -z "${ENABLE_RELP_FALSE}"; then
29969  as_fn_error $? "conditional \"ENABLE_RELP\" was never defined.
29970Usually this means the macro was only invoked conditionally." "$LINENO" 5
29971fi
29972if test -z "${USE_RELPENGINESETTLSCFGCMD_TRUE}" && test -z "${USE_RELPENGINESETTLSCFGCMD_FALSE}"; then
29973  as_fn_error $? "conditional \"USE_RELPENGINESETTLSCFGCMD\" was never defined.
29974Usually this means the macro was only invoked conditionally." "$LINENO" 5
29975fi
29976if test -z "${ENABLE_KSI_LS12_TRUE}" && test -z "${ENABLE_KSI_LS12_FALSE}"; then
29977  as_fn_error $? "conditional \"ENABLE_KSI_LS12\" was never defined.
29978Usually this means the macro was only invoked conditionally." "$LINENO" 5
29979fi
29980if test -z "${ENABLE_LIBLOGGING_STDLOG_TRUE}" && test -z "${ENABLE_LIBLOGGING_STDLOG_FALSE}"; then
29981  as_fn_error $? "conditional \"ENABLE_LIBLOGGING_STDLOG\" was never defined.
29982Usually this means the macro was only invoked conditionally." "$LINENO" 5
29983fi
29984if test -z "${ENABLE_RFC3195_TRUE}" && test -z "${ENABLE_RFC3195_FALSE}"; then
29985  as_fn_error $? "conditional \"ENABLE_RFC3195\" was never defined.
29986Usually this means the macro was only invoked conditionally." "$LINENO" 5
29987fi
29988if test -z "${ENABLE_LIBFAKETIME_TRUE}" && test -z "${ENABLE_LIBFAKETIME_FALSE}"; then
29989  as_fn_error $? "conditional \"ENABLE_LIBFAKETIME\" was never defined.
29990Usually this means the macro was only invoked conditionally." "$LINENO" 5
29991fi
29992if test -z "${ENABLE_DEFAULT_TESTS_TRUE}" && test -z "${ENABLE_DEFAULT_TESTS_FALSE}"; then
29993  as_fn_error $? "conditional \"ENABLE_DEFAULT_TESTS\" was never defined.
29994Usually this means the macro was only invoked conditionally." "$LINENO" 5
29995fi
29996if test -z "${ENABLE_IP_TRUE}" && test -z "${ENABLE_IP_FALSE}"; then
29997  as_fn_error $? "conditional \"ENABLE_IP\" was never defined.
29998Usually this means the macro was only invoked conditionally." "$LINENO" 5
29999fi
30000if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
30001  as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
30002Usually this means the macro was only invoked conditionally." "$LINENO" 5
30003fi
30004if test -z "${ENABLE_HELGRIND_TRUE}" && test -z "${ENABLE_HELGRIND_FALSE}"; then
30005  as_fn_error $? "conditional \"ENABLE_HELGRIND\" was never defined.
30006Usually this means the macro was only invoked conditionally." "$LINENO" 5
30007fi
30008if test -z "${ENABLE_IMBATCHREPORT_TRUE}" && test -z "${ENABLE_IMBATCHREPORT_FALSE}"; then
30009  as_fn_error $? "conditional \"ENABLE_IMBATCHREPORT\" was never defined.
30010Usually this means the macro was only invoked conditionally." "$LINENO" 5
30011fi
30012if test -z "${ENABLE_PMDB2DIAG_TRUE}" && test -z "${ENABLE_PMDB2DIAG_FALSE}"; then
30013  as_fn_error $? "conditional \"ENABLE_PMDB2DIAG\" was never defined.
30014Usually this means the macro was only invoked conditionally." "$LINENO" 5
30015fi
30016if test -z "${ENABLE_IMFILE_TRUE}" && test -z "${ENABLE_IMFILE_FALSE}"; then
30017  as_fn_error $? "conditional \"ENABLE_IMFILE\" was never defined.
30018Usually this means the macro was only invoked conditionally." "$LINENO" 5
30019fi
30020if test -z "${ENABLE_IMFILE_TESTS_TRUE}" && test -z "${ENABLE_IMFILE_TESTS_FALSE}"; then
30021  as_fn_error $? "conditional \"ENABLE_IMFILE_TESTS\" was never defined.
30022Usually this means the macro was only invoked conditionally." "$LINENO" 5
30023fi
30024if test -z "${ENABLE_IMDOCKER_TRUE}" && test -z "${ENABLE_IMDOCKER_FALSE}"; then
30025  as_fn_error $? "conditional \"ENABLE_IMDOCKER\" was never defined.
30026Usually this means the macro was only invoked conditionally." "$LINENO" 5
30027fi
30028if test -z "${ENABLE_IMDOCKER_TESTS_TRUE}" && test -z "${ENABLE_IMDOCKER_TESTS_FALSE}"; then
30029  as_fn_error $? "conditional \"ENABLE_IMDOCKER_TESTS\" was never defined.
30030Usually this means the macro was only invoked conditionally." "$LINENO" 5
30031fi
30032if test -z "${ENABLE_IMTUXEDOULOG_TRUE}" && test -z "${ENABLE_IMTUXEDOULOG_FALSE}"; then
30033  as_fn_error $? "conditional \"ENABLE_IMTUXEDOULOG\" was never defined.
30034Usually this means the macro was only invoked conditionally." "$LINENO" 5
30035fi
30036if test -z "${ENABLE_IMPROG_TRUE}" && test -z "${ENABLE_IMPROG_FALSE}"; then
30037  as_fn_error $? "conditional \"ENABLE_IMPROG\" was never defined.
30038Usually this means the macro was only invoked conditionally." "$LINENO" 5
30039fi
30040if test -z "${ENABLE_IMHTTP_TRUE}" && test -z "${ENABLE_IMHTTP_FALSE}"; then
30041  as_fn_error $? "conditional \"ENABLE_IMHTTP\" was never defined.
30042Usually this means the macro was only invoked conditionally." "$LINENO" 5
30043fi
30044if test -z "${ENABLE_IMSOLARIS_TRUE}" && test -z "${ENABLE_IMSOLARIS_FALSE}"; then
30045  as_fn_error $? "conditional \"ENABLE_IMSOLARIS\" was never defined.
30046Usually this means the macro was only invoked conditionally." "$LINENO" 5
30047fi
30048if test -z "${ENABLE_IMPTCP_TRUE}" && test -z "${ENABLE_IMPTCP_FALSE}"; then
30049  as_fn_error $? "conditional \"ENABLE_IMPTCP\" was never defined.
30050Usually this means the macro was only invoked conditionally." "$LINENO" 5
30051fi
30052if test -z "${ENABLE_IMPSTATS_TRUE}" && test -z "${ENABLE_IMPSTATS_FALSE}"; then
30053  as_fn_error $? "conditional \"ENABLE_IMPSTATS\" was never defined.
30054Usually this means the macro was only invoked conditionally." "$LINENO" 5
30055fi
30056if test -z "${ENABLE_IMPCAP_TRUE}" && test -z "${ENABLE_IMPCAP_FALSE}"; then
30057  as_fn_error $? "conditional \"ENABLE_IMPCAP\" was never defined.
30058Usually this means the macro was only invoked conditionally." "$LINENO" 5
30059fi
30060if test -z "${ENABLE_OMPROG_TRUE}" && test -z "${ENABLE_OMPROG_FALSE}"; then
30061  as_fn_error $? "conditional \"ENABLE_OMPROG\" was never defined.
30062Usually this means the macro was only invoked conditionally." "$LINENO" 5
30063fi
30064if test -z "${ENABLE_OMUDPSPOOF_TRUE}" && test -z "${ENABLE_OMUDPSPOOF_FALSE}"; then
30065  as_fn_error $? "conditional \"ENABLE_OMUDPSPOOF\" was never defined.
30066Usually this means the macro was only invoked conditionally." "$LINENO" 5
30067fi
30068if test -z "${ENABLE_OMSTDOUT_TRUE}" && test -z "${ENABLE_OMSTDOUT_FALSE}"; then
30069  as_fn_error $? "conditional \"ENABLE_OMSTDOUT\" was never defined.
30070Usually this means the macro was only invoked conditionally." "$LINENO" 5
30071fi
30072if test -z "${ENABLE_TESTBENCH_TRUE}" && test -z "${ENABLE_TESTBENCH_FALSE}"; then
30073  as_fn_error $? "conditional \"ENABLE_TESTBENCH\" was never defined.
30074Usually this means the macro was only invoked conditionally." "$LINENO" 5
30075fi
30076if test -z "${ENABLE_OMJOURNAL_TRUE}" && test -z "${ENABLE_OMJOURNAL_FALSE}"; then
30077  as_fn_error $? "conditional \"ENABLE_OMJOURNAL\" was never defined.
30078Usually this means the macro was only invoked conditionally." "$LINENO" 5
30079fi
30080if test -z "${ENABLE_JOURNAL_TESTS_TRUE}" && test -z "${ENABLE_JOURNAL_TESTS_FALSE}"; then
30081  as_fn_error $? "conditional \"ENABLE_JOURNAL_TESTS\" was never defined.
30082Usually this means the macro was only invoked conditionally." "$LINENO" 5
30083fi
30084if test -z "${ENABLE_PMLASTMSG_TRUE}" && test -z "${ENABLE_PMLASTMSG_FALSE}"; then
30085  as_fn_error $? "conditional \"ENABLE_PMLASTMSG\" was never defined.
30086Usually this means the macro was only invoked conditionally." "$LINENO" 5
30087fi
30088if test -z "${ENABLE_PMCISCONAMES_TRUE}" && test -z "${ENABLE_PMCISCONAMES_FALSE}"; then
30089  as_fn_error $? "conditional \"ENABLE_PMCISCONAMES\" was never defined.
30090Usually this means the macro was only invoked conditionally." "$LINENO" 5
30091fi
30092if test -z "${ENABLE_PMCISCOIOS_TRUE}" && test -z "${ENABLE_PMCISCOIOS_FALSE}"; then
30093  as_fn_error $? "conditional \"ENABLE_PMCISCOIOS\" was never defined.
30094Usually this means the macro was only invoked conditionally." "$LINENO" 5
30095fi
30096if test -z "${ENABLE_PMNULL_TRUE}" && test -z "${ENABLE_PMNULL_FALSE}"; then
30097  as_fn_error $? "conditional \"ENABLE_PMNULL\" was never defined.
30098Usually this means the macro was only invoked conditionally." "$LINENO" 5
30099fi
30100if test -z "${ENABLE_PMNORMALIZE_TRUE}" && test -z "${ENABLE_PMNORMALIZE_FALSE}"; then
30101  as_fn_error $? "conditional \"ENABLE_PMNORMALIZE\" was never defined.
30102Usually this means the macro was only invoked conditionally." "$LINENO" 5
30103fi
30104if test -z "${ENABLE_PMAIXFORWARDEDFROM_TRUE}" && test -z "${ENABLE_PMAIXFORWARDEDFROM_FALSE}"; then
30105  as_fn_error $? "conditional \"ENABLE_PMAIXFORWARDEDFROM\" was never defined.
30106Usually this means the macro was only invoked conditionally." "$LINENO" 5
30107fi
30108if test -z "${ENABLE_PMSNARE_TRUE}" && test -z "${ENABLE_PMSNARE_FALSE}"; then
30109  as_fn_error $? "conditional \"ENABLE_PMSNARE\" was never defined.
30110Usually this means the macro was only invoked conditionally." "$LINENO" 5
30111fi
30112if test -z "${ENABLE_PMPANNGFW_TRUE}" && test -z "${ENABLE_PMPANNGFW_FALSE}"; then
30113  as_fn_error $? "conditional \"ENABLE_PMPANNGFW\" was never defined.
30114Usually this means the macro was only invoked conditionally." "$LINENO" 5
30115fi
30116if test -z "${ENABLE_OMRULESET_TRUE}" && test -z "${ENABLE_OMRULESET_FALSE}"; then
30117  as_fn_error $? "conditional \"ENABLE_OMRULESET\" was never defined.
30118Usually this means the macro was only invoked conditionally." "$LINENO" 5
30119fi
30120if test -z "${ENABLE_OMUXSOCK_TRUE}" && test -z "${ENABLE_OMUXSOCK_FALSE}"; then
30121  as_fn_error $? "conditional \"ENABLE_OMUXSOCK\" was never defined.
30122Usually this means the macro was only invoked conditionally." "$LINENO" 5
30123fi
30124if test -z "${ENABLE_MMSNMPTRAPD_TRUE}" && test -z "${ENABLE_MMSNMPTRAPD_FALSE}"; then
30125  as_fn_error $? "conditional \"ENABLE_MMSNMPTRAPD\" was never defined.
30126Usually this means the macro was only invoked conditionally." "$LINENO" 5
30127fi
30128if test -z "${ENABLE_OMHDFS_TRUE}" && test -z "${ENABLE_OMHDFS_FALSE}"; then
30129  as_fn_error $? "conditional \"ENABLE_OMHDFS\" was never defined.
30130Usually this means the macro was only invoked conditionally." "$LINENO" 5
30131fi
30132if test -z "${ENABLE_KAFKA_TESTS_TRUE}" && test -z "${ENABLE_KAFKA_TESTS_FALSE}"; then
30133  as_fn_error $? "conditional \"ENABLE_KAFKA_TESTS\" was never defined.
30134Usually this means the macro was only invoked conditionally." "$LINENO" 5
30135fi
30136if test -z "${ENABLE_KAFKA_STATIC_TRUE}" && test -z "${ENABLE_KAFKA_STATIC_FALSE}"; then
30137  as_fn_error $? "conditional \"ENABLE_KAFKA_STATIC\" was never defined.
30138Usually this means the macro was only invoked conditionally." "$LINENO" 5
30139fi
30140if test -z "${OMKAFKA_USE_DUMMY_TRUE}" && test -z "${OMKAFKA_USE_DUMMY_FALSE}"; then
30141  as_fn_error $? "conditional \"OMKAFKA_USE_DUMMY\" was never defined.
30142Usually this means the macro was only invoked conditionally." "$LINENO" 5
30143fi
30144if test -z "${IMKAFKA_USE_DUMMY_TRUE}" && test -z "${IMKAFKA_USE_DUMMY_FALSE}"; then
30145  as_fn_error $? "conditional \"IMKAFKA_USE_DUMMY\" was never defined.
30146Usually this means the macro was only invoked conditionally." "$LINENO" 5
30147fi
30148if test -z "${ENABLE_OMKAFKA_TRUE}" && test -z "${ENABLE_OMKAFKA_FALSE}"; then
30149  as_fn_error $? "conditional \"ENABLE_OMKAFKA\" was never defined.
30150Usually this means the macro was only invoked conditionally." "$LINENO" 5
30151fi
30152if test -z "${ENABLE_IMKAFKA_TRUE}" && test -z "${ENABLE_IMKAFKA_FALSE}"; then
30153  as_fn_error $? "conditional \"ENABLE_IMKAFKA\" was never defined.
30154Usually this means the macro was only invoked conditionally." "$LINENO" 5
30155fi
30156if test -z "${ENABLE_OMMONGODB_TRUE}" && test -z "${ENABLE_OMMONGODB_FALSE}"; then
30157  as_fn_error $? "conditional \"ENABLE_OMMONGODB\" was never defined.
30158Usually this means the macro was only invoked conditionally." "$LINENO" 5
30159fi
30160if test -z "${ENABLE_IMCZMQ_TRUE}" && test -z "${ENABLE_IMCZMQ_FALSE}"; then
30161  as_fn_error $? "conditional \"ENABLE_IMCZMQ\" was never defined.
30162Usually this means the macro was only invoked conditionally." "$LINENO" 5
30163fi
30164if test -z "${ENABLE_OMCZMQ_TRUE}" && test -z "${ENABLE_OMCZMQ_FALSE}"; then
30165  as_fn_error $? "conditional \"ENABLE_OMCZMQ\" was never defined.
30166Usually this means the macro was only invoked conditionally." "$LINENO" 5
30167fi
30168if test -z "${ENABLE_OMRABBITMQ_TRUE}" && test -z "${ENABLE_OMRABBITMQ_FALSE}"; then
30169  as_fn_error $? "conditional \"ENABLE_OMRABBITMQ\" was never defined.
30170Usually this means the macro was only invoked conditionally." "$LINENO" 5
30171fi
30172if test -z "${ENABLE_OMHIREDIS_TRUE}" && test -z "${ENABLE_OMHIREDIS_FALSE}"; then
30173  as_fn_error $? "conditional \"ENABLE_OMHIREDIS\" was never defined.
30174Usually this means the macro was only invoked conditionally." "$LINENO" 5
30175fi
30176if test -z "${ENABLE_IMHIREDIS_TRUE}" && test -z "${ENABLE_IMHIREDIS_FALSE}"; then
30177  as_fn_error $? "conditional \"ENABLE_IMHIREDIS\" was never defined.
30178Usually this means the macro was only invoked conditionally." "$LINENO" 5
30179fi
30180if test -z "${ENABLE_OMHTTPFS_TRUE}" && test -z "${ENABLE_OMHTTPFS_FALSE}"; then
30181  as_fn_error $? "conditional \"ENABLE_OMHTTPFS\" was never defined.
30182Usually this means the macro was only invoked conditionally." "$LINENO" 5
30183fi
30184if test -z "${ENABLE_OMAMQP1_TRUE}" && test -z "${ENABLE_OMAMQP1_FALSE}"; then
30185  as_fn_error $? "conditional \"ENABLE_OMAMQP1\" was never defined.
30186Usually this means the macro was only invoked conditionally." "$LINENO" 5
30187fi
30188if test -z "${ENABLE_OMTCL_TRUE}" && test -z "${ENABLE_OMTCL_FALSE}"; then
30189  as_fn_error $? "conditional \"ENABLE_OMTCL\" was never defined.
30190Usually this means the macro was only invoked conditionally." "$LINENO" 5
30191fi
30192if test -z "${ENABLE_MMKUBERNETES_TRUE}" && test -z "${ENABLE_MMKUBERNETES_FALSE}"; then
30193  as_fn_error $? "conditional \"ENABLE_MMKUBERNETES\" was never defined.
30194Usually this means the macro was only invoked conditionally." "$LINENO" 5
30195fi
30196if test -z "${ENABLE_MMTAGHOSTNAME_TRUE}" && test -z "${ENABLE_MMTAGHOSTNAME_FALSE}"; then
30197  as_fn_error $? "conditional \"ENABLE_MMTAGHOSTNAME\" was never defined.
30198Usually this means the macro was only invoked conditionally." "$LINENO" 5
30199fi
30200if test -z "${ENABLE_DISTCHECK_WORKAROUND_TRUE}" && test -z "${ENABLE_DISTCHECK_WORKAROUND_FALSE}"; then
30201  as_fn_error $? "conditional \"ENABLE_DISTCHECK_WORKAROUND\" was never defined.
30202Usually this means the macro was only invoked conditionally." "$LINENO" 5
30203fi
30204if test -z "${ENABLE_GENERATE_MAN_PAGES_TRUE}" && test -z "${ENABLE_GENERATE_MAN_PAGES_FALSE}"; then
30205  as_fn_error $? "conditional \"ENABLE_GENERATE_MAN_PAGES\" was never defined.
30206Usually this means the macro was only invoked conditionally." "$LINENO" 5
30207fi
30208
30209: "${CONFIG_STATUS=./config.status}"
30210ac_write_fail=0
30211ac_clean_files_save=$ac_clean_files
30212ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30213{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30214$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30215as_write_fail=0
30216cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30217#! $SHELL
30218# Generated by $as_me.
30219# Run this file to recreate the current configuration.
30220# Compiler output produced by configure, useful for debugging
30221# configure, is in config.log if it exists.
30222
30223debug=false
30224ac_cs_recheck=false
30225ac_cs_silent=false
30226
30227SHELL=\${CONFIG_SHELL-$SHELL}
30228export SHELL
30229_ASEOF
30230cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30231## -------------------- ##
30232## M4sh Initialization. ##
30233## -------------------- ##
30234
30235# Be more Bourne compatible
30236DUALCASE=1; export DUALCASE # for MKS sh
30237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30238  emulate sh
30239  NULLCMD=:
30240  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30241  # is contrary to our usage.  Disable this feature.
30242  alias -g '${1+"$@"}'='"$@"'
30243  setopt NO_GLOB_SUBST
30244else
30245  case `(set -o) 2>/dev/null` in #(
30246  *posix*) :
30247    set -o posix ;; #(
30248  *) :
30249     ;;
30250esac
30251fi
30252
30253
30254as_nl='
30255'
30256export as_nl
30257# Printing a long string crashes Solaris 7 /usr/bin/printf.
30258as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30259as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30261# Prefer a ksh shell builtin over an external printf program on Solaris,
30262# but without wasting forks for bash or zsh.
30263if test -z "$BASH_VERSION$ZSH_VERSION" \
30264    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30265  as_echo='print -r --'
30266  as_echo_n='print -rn --'
30267elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30268  as_echo='printf %s\n'
30269  as_echo_n='printf %s'
30270else
30271  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30272    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30273    as_echo_n='/usr/ucb/echo -n'
30274  else
30275    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30276    as_echo_n_body='eval
30277      arg=$1;
30278      case $arg in #(
30279      *"$as_nl"*)
30280	expr "X$arg" : "X\\(.*\\)$as_nl";
30281	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30282      esac;
30283      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30284    '
30285    export as_echo_n_body
30286    as_echo_n='sh -c $as_echo_n_body as_echo'
30287  fi
30288  export as_echo_body
30289  as_echo='sh -c $as_echo_body as_echo'
30290fi
30291
30292# The user is always right.
30293if test "${PATH_SEPARATOR+set}" != set; then
30294  PATH_SEPARATOR=:
30295  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30296    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30297      PATH_SEPARATOR=';'
30298  }
30299fi
30300
30301
30302# IFS
30303# We need space, tab and new line, in precisely that order.  Quoting is
30304# there to prevent editors from complaining about space-tab.
30305# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30306# splitting by setting IFS to empty value.)
30307IFS=" ""	$as_nl"
30308
30309# Find who we are.  Look in the path if we contain no directory separator.
30310as_myself=
30311case $0 in #((
30312  *[\\/]* ) as_myself=$0 ;;
30313  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30314for as_dir in $PATH
30315do
30316  IFS=$as_save_IFS
30317  test -z "$as_dir" && as_dir=.
30318    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30319  done
30320IFS=$as_save_IFS
30321
30322     ;;
30323esac
30324# We did not find ourselves, most probably we were run as `sh COMMAND'
30325# in which case we are not to be found in the path.
30326if test "x$as_myself" = x; then
30327  as_myself=$0
30328fi
30329if test ! -f "$as_myself"; then
30330  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30331  exit 1
30332fi
30333
30334# Unset variables that we do not need and which cause bugs (e.g. in
30335# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30336# suppresses any "Segmentation fault" message there.  '((' could
30337# trigger a bug in pdksh 5.2.14.
30338for as_var in BASH_ENV ENV MAIL MAILPATH
30339do eval test x\${$as_var+set} = xset \
30340  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30341done
30342PS1='$ '
30343PS2='> '
30344PS4='+ '
30345
30346# NLS nuisances.
30347LC_ALL=C
30348export LC_ALL
30349LANGUAGE=C
30350export LANGUAGE
30351
30352# CDPATH.
30353(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30354
30355
30356# as_fn_error STATUS ERROR [LINENO LOG_FD]
30357# ----------------------------------------
30358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30360# script with STATUS, using 1 if that was 0.
30361as_fn_error ()
30362{
30363  as_status=$1; test $as_status -eq 0 && as_status=1
30364  if test "$4"; then
30365    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30366    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30367  fi
30368  $as_echo "$as_me: error: $2" >&2
30369  as_fn_exit $as_status
30370} # as_fn_error
30371
30372
30373# as_fn_set_status STATUS
30374# -----------------------
30375# Set $? to STATUS, without forking.
30376as_fn_set_status ()
30377{
30378  return $1
30379} # as_fn_set_status
30380
30381# as_fn_exit STATUS
30382# -----------------
30383# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30384as_fn_exit ()
30385{
30386  set +e
30387  as_fn_set_status $1
30388  exit $1
30389} # as_fn_exit
30390
30391# as_fn_unset VAR
30392# ---------------
30393# Portably unset VAR.
30394as_fn_unset ()
30395{
30396  { eval $1=; unset $1;}
30397}
30398as_unset=as_fn_unset
30399# as_fn_append VAR VALUE
30400# ----------------------
30401# Append the text in VALUE to the end of the definition contained in VAR. Take
30402# advantage of any shell optimizations that allow amortized linear growth over
30403# repeated appends, instead of the typical quadratic growth present in naive
30404# implementations.
30405if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30406  eval 'as_fn_append ()
30407  {
30408    eval $1+=\$2
30409  }'
30410else
30411  as_fn_append ()
30412  {
30413    eval $1=\$$1\$2
30414  }
30415fi # as_fn_append
30416
30417# as_fn_arith ARG...
30418# ------------------
30419# Perform arithmetic evaluation on the ARGs, and store the result in the
30420# global $as_val. Take advantage of shells that can avoid forks. The arguments
30421# must be portable across $(()) and expr.
30422if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30423  eval 'as_fn_arith ()
30424  {
30425    as_val=$(( $* ))
30426  }'
30427else
30428  as_fn_arith ()
30429  {
30430    as_val=`expr "$@" || test $? -eq 1`
30431  }
30432fi # as_fn_arith
30433
30434
30435if expr a : '\(a\)' >/dev/null 2>&1 &&
30436   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30437  as_expr=expr
30438else
30439  as_expr=false
30440fi
30441
30442if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30443  as_basename=basename
30444else
30445  as_basename=false
30446fi
30447
30448if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30449  as_dirname=dirname
30450else
30451  as_dirname=false
30452fi
30453
30454as_me=`$as_basename -- "$0" ||
30455$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30456	 X"$0" : 'X\(//\)$' \| \
30457	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30458$as_echo X/"$0" |
30459    sed '/^.*\/\([^/][^/]*\)\/*$/{
30460	    s//\1/
30461	    q
30462	  }
30463	  /^X\/\(\/\/\)$/{
30464	    s//\1/
30465	    q
30466	  }
30467	  /^X\/\(\/\).*/{
30468	    s//\1/
30469	    q
30470	  }
30471	  s/.*/./; q'`
30472
30473# Avoid depending upon Character Ranges.
30474as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30475as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30476as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30477as_cr_digits='0123456789'
30478as_cr_alnum=$as_cr_Letters$as_cr_digits
30479
30480ECHO_C= ECHO_N= ECHO_T=
30481case `echo -n x` in #(((((
30482-n*)
30483  case `echo 'xy\c'` in
30484  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30485  xy)  ECHO_C='\c';;
30486  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30487       ECHO_T='	';;
30488  esac;;
30489*)
30490  ECHO_N='-n';;
30491esac
30492
30493rm -f conf$$ conf$$.exe conf$$.file
30494if test -d conf$$.dir; then
30495  rm -f conf$$.dir/conf$$.file
30496else
30497  rm -f conf$$.dir
30498  mkdir conf$$.dir 2>/dev/null
30499fi
30500if (echo >conf$$.file) 2>/dev/null; then
30501  if ln -s conf$$.file conf$$ 2>/dev/null; then
30502    as_ln_s='ln -s'
30503    # ... but there are two gotchas:
30504    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30505    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30506    # In both cases, we have to default to `cp -pR'.
30507    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30508      as_ln_s='cp -pR'
30509  elif ln conf$$.file conf$$ 2>/dev/null; then
30510    as_ln_s=ln
30511  else
30512    as_ln_s='cp -pR'
30513  fi
30514else
30515  as_ln_s='cp -pR'
30516fi
30517rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30518rmdir conf$$.dir 2>/dev/null
30519
30520
30521# as_fn_mkdir_p
30522# -------------
30523# Create "$as_dir" as a directory, including parents if necessary.
30524as_fn_mkdir_p ()
30525{
30526
30527  case $as_dir in #(
30528  -*) as_dir=./$as_dir;;
30529  esac
30530  test -d "$as_dir" || eval $as_mkdir_p || {
30531    as_dirs=
30532    while :; do
30533      case $as_dir in #(
30534      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30535      *) as_qdir=$as_dir;;
30536      esac
30537      as_dirs="'$as_qdir' $as_dirs"
30538      as_dir=`$as_dirname -- "$as_dir" ||
30539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30540	 X"$as_dir" : 'X\(//\)[^/]' \| \
30541	 X"$as_dir" : 'X\(//\)$' \| \
30542	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30543$as_echo X"$as_dir" |
30544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30545	    s//\1/
30546	    q
30547	  }
30548	  /^X\(\/\/\)[^/].*/{
30549	    s//\1/
30550	    q
30551	  }
30552	  /^X\(\/\/\)$/{
30553	    s//\1/
30554	    q
30555	  }
30556	  /^X\(\/\).*/{
30557	    s//\1/
30558	    q
30559	  }
30560	  s/.*/./; q'`
30561      test -d "$as_dir" && break
30562    done
30563    test -z "$as_dirs" || eval "mkdir $as_dirs"
30564  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30565
30566
30567} # as_fn_mkdir_p
30568if mkdir -p . 2>/dev/null; then
30569  as_mkdir_p='mkdir -p "$as_dir"'
30570else
30571  test -d ./-p && rmdir ./-p
30572  as_mkdir_p=false
30573fi
30574
30575
30576# as_fn_executable_p FILE
30577# -----------------------
30578# Test if FILE is an executable regular file.
30579as_fn_executable_p ()
30580{
30581  test -f "$1" && test -x "$1"
30582} # as_fn_executable_p
30583as_test_x='test -x'
30584as_executable_p=as_fn_executable_p
30585
30586# Sed expression to map a string onto a valid CPP name.
30587as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30588
30589# Sed expression to map a string onto a valid variable name.
30590as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30591
30592
30593exec 6>&1
30594## ----------------------------------- ##
30595## Main body of $CONFIG_STATUS script. ##
30596## ----------------------------------- ##
30597_ASEOF
30598test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30599
30600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30601# Save the log message, to keep $0 and so on meaningful, and to
30602# report actual input values of CONFIG_FILES etc. instead of their
30603# values after options handling.
30604ac_log="
30605This file was extended by rsyslog $as_me 8.2112.0, which was
30606generated by GNU Autoconf 2.69.  Invocation command line was
30607
30608  CONFIG_FILES    = $CONFIG_FILES
30609  CONFIG_HEADERS  = $CONFIG_HEADERS
30610  CONFIG_LINKS    = $CONFIG_LINKS
30611  CONFIG_COMMANDS = $CONFIG_COMMANDS
30612  $ $0 $@
30613
30614on `(hostname || uname -n) 2>/dev/null | sed 1q`
30615"
30616
30617_ACEOF
30618
30619case $ac_config_files in *"
30620"*) set x $ac_config_files; shift; ac_config_files=$*;;
30621esac
30622
30623case $ac_config_headers in *"
30624"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30625esac
30626
30627
30628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30629# Files that config.status was made for.
30630config_files="$ac_config_files"
30631config_headers="$ac_config_headers"
30632config_commands="$ac_config_commands"
30633
30634_ACEOF
30635
30636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30637ac_cs_usage="\
30638\`$as_me' instantiates files and other configuration actions
30639from templates according to the current configuration.  Unless the files
30640and actions are specified as TAGs, all are instantiated by default.
30641
30642Usage: $0 [OPTION]... [TAG]...
30643
30644  -h, --help       print this help, then exit
30645  -V, --version    print version number and configuration settings, then exit
30646      --config     print configuration, then exit
30647  -q, --quiet, --silent
30648                   do not print progress messages
30649  -d, --debug      don't remove temporary files
30650      --recheck    update $as_me by reconfiguring in the same conditions
30651      --file=FILE[:TEMPLATE]
30652                   instantiate the configuration file FILE
30653      --header=FILE[:TEMPLATE]
30654                   instantiate the configuration header FILE
30655
30656Configuration files:
30657$config_files
30658
30659Configuration headers:
30660$config_headers
30661
30662Configuration commands:
30663$config_commands
30664
30665Report bugs to <rsyslog@lists.adiscon.com>."
30666
30667_ACEOF
30668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30669ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30670ac_cs_version="\\
30671rsyslog config.status 8.2112.0
30672configured by $0, generated by GNU Autoconf 2.69,
30673  with options \\"\$ac_cs_config\\"
30674
30675Copyright (C) 2012 Free Software Foundation, Inc.
30676This config.status script is free software; the Free Software Foundation
30677gives unlimited permission to copy, distribute and modify it."
30678
30679ac_pwd='$ac_pwd'
30680srcdir='$srcdir'
30681INSTALL='$INSTALL'
30682MKDIR_P='$MKDIR_P'
30683AWK='$AWK'
30684test -n "\$AWK" || AWK=awk
30685_ACEOF
30686
30687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30688# The default lists apply if the user does not specify any file.
30689ac_need_defaults=:
30690while test $# != 0
30691do
30692  case $1 in
30693  --*=?*)
30694    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30695    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30696    ac_shift=:
30697    ;;
30698  --*=)
30699    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30700    ac_optarg=
30701    ac_shift=:
30702    ;;
30703  *)
30704    ac_option=$1
30705    ac_optarg=$2
30706    ac_shift=shift
30707    ;;
30708  esac
30709
30710  case $ac_option in
30711  # Handling of the options.
30712  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30713    ac_cs_recheck=: ;;
30714  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30715    $as_echo "$ac_cs_version"; exit ;;
30716  --config | --confi | --conf | --con | --co | --c )
30717    $as_echo "$ac_cs_config"; exit ;;
30718  --debug | --debu | --deb | --de | --d | -d )
30719    debug=: ;;
30720  --file | --fil | --fi | --f )
30721    $ac_shift
30722    case $ac_optarg in
30723    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30724    '') as_fn_error $? "missing file argument" ;;
30725    esac
30726    as_fn_append CONFIG_FILES " '$ac_optarg'"
30727    ac_need_defaults=false;;
30728  --header | --heade | --head | --hea )
30729    $ac_shift
30730    case $ac_optarg in
30731    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30732    esac
30733    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30734    ac_need_defaults=false;;
30735  --he | --h)
30736    # Conflict between --help and --header
30737    as_fn_error $? "ambiguous option: \`$1'
30738Try \`$0 --help' for more information.";;
30739  --help | --hel | -h )
30740    $as_echo "$ac_cs_usage"; exit ;;
30741  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30742  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30743    ac_cs_silent=: ;;
30744
30745  # This is an error.
30746  -*) as_fn_error $? "unrecognized option: \`$1'
30747Try \`$0 --help' for more information." ;;
30748
30749  *) as_fn_append ac_config_targets " $1"
30750     ac_need_defaults=false ;;
30751
30752  esac
30753  shift
30754done
30755
30756ac_configure_extra_args=
30757
30758if $ac_cs_silent; then
30759  exec 6>/dev/null
30760  ac_configure_extra_args="$ac_configure_extra_args --silent"
30761fi
30762
30763_ACEOF
30764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30765if \$ac_cs_recheck; then
30766  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30767  shift
30768  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30769  CONFIG_SHELL='$SHELL'
30770  export CONFIG_SHELL
30771  exec "\$@"
30772fi
30773
30774_ACEOF
30775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30776exec 5>>config.log
30777{
30778  echo
30779  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30780## Running $as_me. ##
30781_ASBOX
30782  $as_echo "$ac_log"
30783} >&5
30784
30785_ACEOF
30786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787#
30788# INIT-COMMANDS
30789#
30790AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
30791
30792
30793# The HP-UX ksh and POSIX shell print the target directory to stdout
30794# if CDPATH is set.
30795(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30796
30797sed_quote_subst='$sed_quote_subst'
30798double_quote_subst='$double_quote_subst'
30799delay_variable_subst='$delay_variable_subst'
30800enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30801macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30802macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30803enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30804pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30805enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30806shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
30807SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30808ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30809PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30810host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30811host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30812host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30813build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30814build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30815build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30816SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30817Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30818GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30819EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30820FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30821LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30822NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30823LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30824max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30825ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30826exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30827lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30828lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30829lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30830lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30831lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30832reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30833reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30834OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30835deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30836file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30837file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30838want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30839DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30840sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30841AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30842AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30843archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30844STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30845RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30846old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30847old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30848old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30849lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30850CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30851CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30852compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30853GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30854lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30855lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30856lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
30857lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30858lt_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"`'
30859lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
30860nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30861lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30862lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
30863objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30864MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30865lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30866lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30867lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30868lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30869lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30870need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30871MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30872DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30873NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30874LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30875OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30876OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30877libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30878shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30879extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30880archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30881enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30882export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30883whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30884compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30885old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30886old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30887archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30888archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30889module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30890module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30891with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30892allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30893no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30894hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30895hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30896hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30897hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30898hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30899hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30900hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30901inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30902link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30903always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30904export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30905exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30906include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30907prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30908postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30909file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30910variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30911need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30912need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30913version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30914runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30915shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30916shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30917libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30918library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30919soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30920install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30921postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30922postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30923finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30924finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30925hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30926sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30927configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
30928configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
30929hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30930enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30931enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30932enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30933old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30934striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30935
30936LTCC='$LTCC'
30937LTCFLAGS='$LTCFLAGS'
30938compiler='$compiler_DEFAULT'
30939
30940# A function that is used when there is no print builtin or printf.
30941func_fallback_echo ()
30942{
30943  eval 'cat <<_LTECHO_EOF
30944\$1
30945_LTECHO_EOF'
30946}
30947
30948# Quote evaled strings.
30949for var in SHELL \
30950ECHO \
30951PATH_SEPARATOR \
30952SED \
30953GREP \
30954EGREP \
30955FGREP \
30956LD \
30957NM \
30958LN_S \
30959lt_SP2NL \
30960lt_NL2SP \
30961reload_flag \
30962OBJDUMP \
30963deplibs_check_method \
30964file_magic_cmd \
30965file_magic_glob \
30966want_nocaseglob \
30967DLLTOOL \
30968sharedlib_from_linklib_cmd \
30969AR \
30970AR_FLAGS \
30971archiver_list_spec \
30972STRIP \
30973RANLIB \
30974CC \
30975CFLAGS \
30976compiler \
30977lt_cv_sys_global_symbol_pipe \
30978lt_cv_sys_global_symbol_to_cdecl \
30979lt_cv_sys_global_symbol_to_import \
30980lt_cv_sys_global_symbol_to_c_name_address \
30981lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30982lt_cv_nm_interface \
30983nm_file_list_spec \
30984lt_cv_truncate_bin \
30985lt_prog_compiler_no_builtin_flag \
30986lt_prog_compiler_pic \
30987lt_prog_compiler_wl \
30988lt_prog_compiler_static \
30989lt_cv_prog_compiler_c_o \
30990need_locks \
30991MANIFEST_TOOL \
30992DSYMUTIL \
30993NMEDIT \
30994LIPO \
30995OTOOL \
30996OTOOL64 \
30997shrext_cmds \
30998export_dynamic_flag_spec \
30999whole_archive_flag_spec \
31000compiler_needs_object \
31001with_gnu_ld \
31002allow_undefined_flag \
31003no_undefined_flag \
31004hardcode_libdir_flag_spec \
31005hardcode_libdir_separator \
31006exclude_expsyms \
31007include_expsyms \
31008file_list_spec \
31009variables_saved_for_relink \
31010libname_spec \
31011library_names_spec \
31012soname_spec \
31013install_override_mode \
31014finish_eval \
31015old_striplib \
31016striplib; do
31017    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31018    *[\\\\\\\`\\"\\\$]*)
31019      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31020      ;;
31021    *)
31022      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31023      ;;
31024    esac
31025done
31026
31027# Double-quote double-evaled strings.
31028for var in reload_cmds \
31029old_postinstall_cmds \
31030old_postuninstall_cmds \
31031old_archive_cmds \
31032extract_expsyms_cmds \
31033old_archive_from_new_cmds \
31034old_archive_from_expsyms_cmds \
31035archive_cmds \
31036archive_expsym_cmds \
31037module_cmds \
31038module_expsym_cmds \
31039export_symbols_cmds \
31040prelink_cmds \
31041postlink_cmds \
31042postinstall_cmds \
31043postuninstall_cmds \
31044finish_cmds \
31045sys_lib_search_path_spec \
31046configure_time_dlsearch_path \
31047configure_time_lt_sys_library_path; do
31048    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31049    *[\\\\\\\`\\"\\\$]*)
31050      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31051      ;;
31052    *)
31053      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31054      ;;
31055    esac
31056done
31057
31058ac_aux_dir='$ac_aux_dir'
31059
31060# See if we are running on zsh, and set the options that allow our
31061# commands through without removal of \ escapes INIT.
31062if test -n "\${ZSH_VERSION+set}"; then
31063   setopt NO_GLOB_SUBST
31064fi
31065
31066
31067    PACKAGE='$PACKAGE'
31068    VERSION='$VERSION'
31069    RM='$RM'
31070    ofile='$ofile'
31071
31072
31073
31074
31075_ACEOF
31076
31077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31078
31079# Handling of arguments.
31080for ac_config_target in $ac_config_targets
31081do
31082  case $ac_config_target in
31083    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31084    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31085    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31086    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31087    "runtime/Makefile") CONFIG_FILES="$CONFIG_FILES runtime/Makefile" ;;
31088    "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
31089    "grammar/Makefile") CONFIG_FILES="$CONFIG_FILES grammar/Makefile" ;;
31090    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31091    "plugins/imudp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imudp/Makefile" ;;
31092    "plugins/imtcp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imtcp/Makefile" ;;
31093    "plugins/im3195/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/im3195/Makefile" ;;
31094    "plugins/imgssapi/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imgssapi/Makefile" ;;
31095    "plugins/imuxsock/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imuxsock/Makefile" ;;
31096    "plugins/imjournal/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imjournal/Makefile" ;;
31097    "plugins/immark/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/immark/Makefile" ;;
31098    "plugins/imklog/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imklog/Makefile" ;;
31099    "plugins/omhdfs/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omhdfs/Makefile" ;;
31100    "plugins/omkafka/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omkafka/Makefile" ;;
31101    "plugins/omprog/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omprog/Makefile" ;;
31102    "plugins/mmexternal/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmexternal/Makefile" ;;
31103    "plugins/omstdout/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omstdout/Makefile" ;;
31104    "plugins/omjournal/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omjournal/Makefile" ;;
31105    "plugins/pmciscoios/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pmciscoios/Makefile" ;;
31106    "plugins/pmnull/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pmnull/Makefile" ;;
31107    "plugins/pmnormalize/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pmnormalize/Makefile" ;;
31108    "plugins/omruleset/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omruleset/Makefile" ;;
31109    "plugins/omuxsock/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omuxsock/Makefile" ;;
31110    "plugins/imfile/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imfile/Makefile" ;;
31111    "plugins/imsolaris/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imsolaris/Makefile" ;;
31112    "plugins/imptcp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imptcp/Makefile" ;;
31113    "plugins/impstats/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/impstats/Makefile" ;;
31114    "plugins/imrelp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imrelp/Makefile" ;;
31115    "plugins/imdiag/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imdiag/Makefile" ;;
31116    "plugins/imkafka/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imkafka/Makefile" ;;
31117    "plugins/omtesting/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omtesting/Makefile" ;;
31118    "plugins/omgssapi/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omgssapi/Makefile" ;;
31119    "plugins/ommysql/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ommysql/Makefile" ;;
31120    "plugins/ompgsql/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ompgsql/Makefile" ;;
31121    "plugins/omrelp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omrelp/Makefile" ;;
31122    "plugins/omlibdbi/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omlibdbi/Makefile" ;;
31123    "plugins/ommail/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ommail/Makefile" ;;
31124    "plugins/fmhttp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fmhttp/Makefile" ;;
31125    "plugins/omsnmp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omsnmp/Makefile" ;;
31126    "plugins/omudpspoof/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omudpspoof/Makefile" ;;
31127    "plugins/ommongodb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ommongodb/Makefile" ;;
31128    "plugins/mmnormalize/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmnormalize/Makefile" ;;
31129    "plugins/mmjsonparse/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmjsonparse/Makefile" ;;
31130    "plugins/mmaudit/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmaudit/Makefile" ;;
31131    "plugins/mmanon/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmanon/Makefile" ;;
31132    "plugins/mmrm1stspace/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmrm1stspace/Makefile" ;;
31133    "plugins/mmutf8fix/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmutf8fix/Makefile" ;;
31134    "plugins/mmfields/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmfields/Makefile" ;;
31135    "plugins/mmpstrucdata/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmpstrucdata/Makefile" ;;
31136    "plugins/omelasticsearch/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omelasticsearch/Makefile" ;;
31137    "plugins/omclickhouse/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/omclickhouse/Makefile" ;;
31138    "plugins/mmsnmptrapd/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmsnmptrapd/Makefile" ;;
31139    "plugins/pmlastmsg/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pmlastmsg/Makefile" ;;
31140    "plugins/mmdblookup/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mmdblookup/Makefile" ;;
31141    "contrib/mmdarwin/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmdarwin/Makefile" ;;
31142    "contrib/omhttp/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omhttp/Makefile" ;;
31143    "contrib/fmhash/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/fmhash/Makefile" ;;
31144    "contrib/fmunflatten/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/fmunflatten/Makefile" ;;
31145    "contrib/ffaup/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ffaup/Makefile" ;;
31146    "contrib/pmsnare/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pmsnare/Makefile" ;;
31147    "contrib/pmpanngfw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pmpanngfw/Makefile" ;;
31148    "contrib/pmaixforwardedfrom/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pmaixforwardedfrom/Makefile" ;;
31149    "contrib/omhiredis/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omhiredis/Makefile" ;;
31150    "contrib/omrabbitmq/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omrabbitmq/Makefile" ;;
31151    "contrib/imkmsg/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imkmsg/Makefile" ;;
31152    "contrib/mmgrok/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmgrok/Makefile" ;;
31153    "contrib/mmcount/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmcount/Makefile" ;;
31154    "contrib/omczmq/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omczmq/Makefile" ;;
31155    "contrib/imczmq/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imczmq/Makefile" ;;
31156    "contrib/mmsequence/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmsequence/Makefile" ;;
31157    "contrib/mmrfc5424addhmac/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmrfc5424addhmac/Makefile" ;;
31158    "contrib/pmcisconames/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pmcisconames/Makefile" ;;
31159    "contrib/omhttpfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omhttpfs/Makefile" ;;
31160    "contrib/omamqp1/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omamqp1/Makefile" ;;
31161    "contrib/omtcl/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omtcl/Makefile" ;;
31162    "contrib/imbatchreport/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imbatchreport/Makefile" ;;
31163    "contrib/omfile-hardened/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/omfile-hardened/Makefile" ;;
31164    "contrib/mmkubernetes/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmkubernetes/Makefile" ;;
31165    "contrib/impcap/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/impcap/Makefile" ;;
31166    "contrib/imtuxedoulog/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imtuxedoulog/Makefile" ;;
31167    "contrib/improg/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/improg/Makefile" ;;
31168    "contrib/imhttp/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imhttp/Makefile" ;;
31169    "contrib/mmtaghostname/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mmtaghostname/Makefile" ;;
31170    "contrib/imdocker/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imdocker/Makefile" ;;
31171    "contrib/pmdb2diag/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pmdb2diag/Makefile" ;;
31172    "contrib/imhiredis/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imhiredis/Makefile" ;;
31173    "tests/set-envvars") CONFIG_FILES="$CONFIG_FILES tests/set-envvars" ;;
31174    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31175
31176  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31177  esac
31178done
31179
31180
31181# If the user did not use the arguments to specify the items to instantiate,
31182# then the envvar interface is used.  Set only those that are not.
31183# We use the long form for the default assignment because of an extremely
31184# bizarre bug on SunOS 4.1.3.
31185if $ac_need_defaults; then
31186  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31187  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31188  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31189fi
31190
31191# Have a temporary directory for convenience.  Make it in the build tree
31192# simply because there is no reason against having it here, and in addition,
31193# creating and moving files from /tmp can sometimes cause problems.
31194# Hook for its removal unless debugging.
31195# Note that there is a small window in which the directory will not be cleaned:
31196# after its creation but before its name has been assigned to `$tmp'.
31197$debug ||
31198{
31199  tmp= ac_tmp=
31200  trap 'exit_status=$?
31201  : "${ac_tmp:=$tmp}"
31202  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31203' 0
31204  trap 'as_fn_exit 1' 1 2 13 15
31205}
31206# Create a (secure) tmp directory for tmp files.
31207
31208{
31209  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31210  test -d "$tmp"
31211}  ||
31212{
31213  tmp=./conf$$-$RANDOM
31214  (umask 077 && mkdir "$tmp")
31215} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31216ac_tmp=$tmp
31217
31218# Set up the scripts for CONFIG_FILES section.
31219# No need to generate them if there are no CONFIG_FILES.
31220# This happens for instance with `./config.status config.h'.
31221if test -n "$CONFIG_FILES"; then
31222
31223
31224ac_cr=`echo X | tr X '\015'`
31225# On cygwin, bash can eat \r inside `` if the user requested igncr.
31226# But we know of no other shell where ac_cr would be empty at this
31227# point, so we can use a bashism as a fallback.
31228if test "x$ac_cr" = x; then
31229  eval ac_cr=\$\'\\r\'
31230fi
31231ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31232if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31233  ac_cs_awk_cr='\\r'
31234else
31235  ac_cs_awk_cr=$ac_cr
31236fi
31237
31238echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31239_ACEOF
31240
31241
31242{
31243  echo "cat >conf$$subs.awk <<_ACEOF" &&
31244  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31245  echo "_ACEOF"
31246} >conf$$subs.sh ||
31247  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31248ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31249ac_delim='%!_!# '
31250for ac_last_try in false false false false false :; do
31251  . ./conf$$subs.sh ||
31252    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31253
31254  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31255  if test $ac_delim_n = $ac_delim_num; then
31256    break
31257  elif $ac_last_try; then
31258    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31259  else
31260    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31261  fi
31262done
31263rm -f conf$$subs.sh
31264
31265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31266cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31267_ACEOF
31268sed -n '
31269h
31270s/^/S["/; s/!.*/"]=/
31271p
31272g
31273s/^[^!]*!//
31274:repl
31275t repl
31276s/'"$ac_delim"'$//
31277t delim
31278:nl
31279h
31280s/\(.\{148\}\)..*/\1/
31281t more1
31282s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31283p
31284n
31285b repl
31286:more1
31287s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31288p
31289g
31290s/.\{148\}//
31291t nl
31292:delim
31293h
31294s/\(.\{148\}\)..*/\1/
31295t more2
31296s/["\\]/\\&/g; s/^/"/; s/$/"/
31297p
31298b
31299:more2
31300s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31301p
31302g
31303s/.\{148\}//
31304t delim
31305' <conf$$subs.awk | sed '
31306/^[^""]/{
31307  N
31308  s/\n//
31309}
31310' >>$CONFIG_STATUS || ac_write_fail=1
31311rm -f conf$$subs.awk
31312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31313_ACAWK
31314cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31315  for (key in S) S_is_set[key] = 1
31316  FS = ""
31317
31318}
31319{
31320  line = $ 0
31321  nfields = split(line, field, "@")
31322  substed = 0
31323  len = length(field[1])
31324  for (i = 2; i < nfields; i++) {
31325    key = field[i]
31326    keylen = length(key)
31327    if (S_is_set[key]) {
31328      value = S[key]
31329      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31330      len += length(value) + length(field[++i])
31331      substed = 1
31332    } else
31333      len += 1 + keylen
31334  }
31335
31336  print line
31337}
31338
31339_ACAWK
31340_ACEOF
31341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31342if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31343  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31344else
31345  cat
31346fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31347  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31348_ACEOF
31349
31350# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31351# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31352# trailing colons and then remove the whole line if VPATH becomes empty
31353# (actually we leave an empty line to preserve line numbers).
31354if test "x$srcdir" = x.; then
31355  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
31356h
31357s///
31358s/^/:/
31359s/[	 ]*$/:/
31360s/:\$(srcdir):/:/g
31361s/:\${srcdir}:/:/g
31362s/:@srcdir@:/:/g
31363s/^:*//
31364s/:*$//
31365x
31366s/\(=[	 ]*\).*/\1/
31367G
31368s/\n//
31369s/^[^=]*=[	 ]*$//
31370}'
31371fi
31372
31373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31374fi # test -n "$CONFIG_FILES"
31375
31376# Set up the scripts for CONFIG_HEADERS section.
31377# No need to generate them if there are no CONFIG_HEADERS.
31378# This happens for instance with `./config.status Makefile'.
31379if test -n "$CONFIG_HEADERS"; then
31380cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31381BEGIN {
31382_ACEOF
31383
31384# Transform confdefs.h into an awk script `defines.awk', embedded as
31385# here-document in config.status, that substitutes the proper values into
31386# config.h.in to produce config.h.
31387
31388# Create a delimiter string that does not exist in confdefs.h, to ease
31389# handling of long lines.
31390ac_delim='%!_!# '
31391for ac_last_try in false false :; do
31392  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31393  if test -z "$ac_tt"; then
31394    break
31395  elif $ac_last_try; then
31396    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31397  else
31398    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31399  fi
31400done
31401
31402# For the awk script, D is an array of macro values keyed by name,
31403# likewise P contains macro parameters if any.  Preserve backslash
31404# newline sequences.
31405
31406ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31407sed -n '
31408s/.\{148\}/&'"$ac_delim"'/g
31409t rset
31410:rset
31411s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31412t def
31413d
31414:def
31415s/\\$//
31416t bsnl
31417s/["\\]/\\&/g
31418s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31419D["\1"]=" \3"/p
31420s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31421d
31422:bsnl
31423s/["\\]/\\&/g
31424s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31425D["\1"]=" \3\\\\\\n"\\/p
31426t cont
31427s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31428t cont
31429d
31430:cont
31431n
31432s/.\{148\}/&'"$ac_delim"'/g
31433t clear
31434:clear
31435s/\\$//
31436t bsnlc
31437s/["\\]/\\&/g; s/^/"/; s/$/"/p
31438d
31439:bsnlc
31440s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31441b cont
31442' <confdefs.h | sed '
31443s/'"$ac_delim"'/"\\\
31444"/g' >>$CONFIG_STATUS || ac_write_fail=1
31445
31446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31447  for (key in D) D_is_set[key] = 1
31448  FS = ""
31449}
31450/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31451  line = \$ 0
31452  split(line, arg, " ")
31453  if (arg[1] == "#") {
31454    defundef = arg[2]
31455    mac1 = arg[3]
31456  } else {
31457    defundef = substr(arg[1], 2)
31458    mac1 = arg[2]
31459  }
31460  split(mac1, mac2, "(") #)
31461  macro = mac2[1]
31462  prefix = substr(line, 1, index(line, defundef) - 1)
31463  if (D_is_set[macro]) {
31464    # Preserve the white space surrounding the "#".
31465    print prefix "define", macro P[macro] D[macro]
31466    next
31467  } else {
31468    # Replace #undef with comments.  This is necessary, for example,
31469    # in the case of _POSIX_SOURCE, which is predefined and required
31470    # on some systems where configure will not decide to define it.
31471    if (defundef == "undef") {
31472      print "/*", prefix defundef, macro, "*/"
31473      next
31474    }
31475  }
31476}
31477{ print }
31478_ACAWK
31479_ACEOF
31480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31481  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31482fi # test -n "$CONFIG_HEADERS"
31483
31484
31485eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31486shift
31487for ac_tag
31488do
31489  case $ac_tag in
31490  :[FHLC]) ac_mode=$ac_tag; continue;;
31491  esac
31492  case $ac_mode$ac_tag in
31493  :[FHL]*:*);;
31494  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31495  :[FH]-) ac_tag=-:-;;
31496  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31497  esac
31498  ac_save_IFS=$IFS
31499  IFS=:
31500  set x $ac_tag
31501  IFS=$ac_save_IFS
31502  shift
31503  ac_file=$1
31504  shift
31505
31506  case $ac_mode in
31507  :L) ac_source=$1;;
31508  :[FH])
31509    ac_file_inputs=
31510    for ac_f
31511    do
31512      case $ac_f in
31513      -) ac_f="$ac_tmp/stdin";;
31514      *) # Look for the file first in the build tree, then in the source tree
31515	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31516	 # because $ac_f cannot contain `:'.
31517	 test -f "$ac_f" ||
31518	   case $ac_f in
31519	   [\\/$]*) false;;
31520	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31521	   esac ||
31522	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31523      esac
31524      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31525      as_fn_append ac_file_inputs " '$ac_f'"
31526    done
31527
31528    # Let's still pretend it is `configure' which instantiates (i.e., don't
31529    # use $as_me), people would be surprised to read:
31530    #    /* config.h.  Generated by config.status.  */
31531    configure_input='Generated from '`
31532	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31533	`' by configure.'
31534    if test x"$ac_file" != x-; then
31535      configure_input="$ac_file.  $configure_input"
31536      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31537$as_echo "$as_me: creating $ac_file" >&6;}
31538    fi
31539    # Neutralize special characters interpreted by sed in replacement strings.
31540    case $configure_input in #(
31541    *\&* | *\|* | *\\* )
31542       ac_sed_conf_input=`$as_echo "$configure_input" |
31543       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31544    *) ac_sed_conf_input=$configure_input;;
31545    esac
31546
31547    case $ac_tag in
31548    *:-:* | *:-) cat >"$ac_tmp/stdin" \
31549      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31550    esac
31551    ;;
31552  esac
31553
31554  ac_dir=`$as_dirname -- "$ac_file" ||
31555$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31556	 X"$ac_file" : 'X\(//\)[^/]' \| \
31557	 X"$ac_file" : 'X\(//\)$' \| \
31558	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31559$as_echo X"$ac_file" |
31560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31561	    s//\1/
31562	    q
31563	  }
31564	  /^X\(\/\/\)[^/].*/{
31565	    s//\1/
31566	    q
31567	  }
31568	  /^X\(\/\/\)$/{
31569	    s//\1/
31570	    q
31571	  }
31572	  /^X\(\/\).*/{
31573	    s//\1/
31574	    q
31575	  }
31576	  s/.*/./; q'`
31577  as_dir="$ac_dir"; as_fn_mkdir_p
31578  ac_builddir=.
31579
31580case "$ac_dir" in
31581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31582*)
31583  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31584  # A ".." for each directory in $ac_dir_suffix.
31585  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31586  case $ac_top_builddir_sub in
31587  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31588  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31589  esac ;;
31590esac
31591ac_abs_top_builddir=$ac_pwd
31592ac_abs_builddir=$ac_pwd$ac_dir_suffix
31593# for backward compatibility:
31594ac_top_builddir=$ac_top_build_prefix
31595
31596case $srcdir in
31597  .)  # We are building in place.
31598    ac_srcdir=.
31599    ac_top_srcdir=$ac_top_builddir_sub
31600    ac_abs_top_srcdir=$ac_pwd ;;
31601  [\\/]* | ?:[\\/]* )  # Absolute name.
31602    ac_srcdir=$srcdir$ac_dir_suffix;
31603    ac_top_srcdir=$srcdir
31604    ac_abs_top_srcdir=$srcdir ;;
31605  *) # Relative name.
31606    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31607    ac_top_srcdir=$ac_top_build_prefix$srcdir
31608    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31609esac
31610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31611
31612
31613  case $ac_mode in
31614  :F)
31615  #
31616  # CONFIG_FILE
31617  #
31618
31619  case $INSTALL in
31620  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31621  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31622  esac
31623  ac_MKDIR_P=$MKDIR_P
31624  case $MKDIR_P in
31625  [\\/$]* | ?:[\\/]* ) ;;
31626  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31627  esac
31628_ACEOF
31629
31630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31631# If the template does not know about datarootdir, expand it.
31632# FIXME: This hack should be removed a few years after 2.60.
31633ac_datarootdir_hack=; ac_datarootdir_seen=
31634ac_sed_dataroot='
31635/datarootdir/ {
31636  p
31637  q
31638}
31639/@datadir@/p
31640/@docdir@/p
31641/@infodir@/p
31642/@localedir@/p
31643/@mandir@/p'
31644case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31645*datarootdir*) ac_datarootdir_seen=yes;;
31646*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31647  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31648$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31649_ACEOF
31650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31651  ac_datarootdir_hack='
31652  s&@datadir@&$datadir&g
31653  s&@docdir@&$docdir&g
31654  s&@infodir@&$infodir&g
31655  s&@localedir@&$localedir&g
31656  s&@mandir@&$mandir&g
31657  s&\\\${datarootdir}&$datarootdir&g' ;;
31658esac
31659_ACEOF
31660
31661# Neutralize VPATH when `$srcdir' = `.'.
31662# Shell code in configure.ac might set extrasub.
31663# FIXME: do we really want to maintain this feature?
31664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31665ac_sed_extra="$ac_vpsub
31666$extrasub
31667_ACEOF
31668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31669:t
31670/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31671s|@configure_input@|$ac_sed_conf_input|;t t
31672s&@top_builddir@&$ac_top_builddir_sub&;t t
31673s&@top_build_prefix@&$ac_top_build_prefix&;t t
31674s&@srcdir@&$ac_srcdir&;t t
31675s&@abs_srcdir@&$ac_abs_srcdir&;t t
31676s&@top_srcdir@&$ac_top_srcdir&;t t
31677s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31678s&@builddir@&$ac_builddir&;t t
31679s&@abs_builddir@&$ac_abs_builddir&;t t
31680s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31681s&@INSTALL@&$ac_INSTALL&;t t
31682s&@MKDIR_P@&$ac_MKDIR_P&;t t
31683$ac_datarootdir_hack
31684"
31685eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31686  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31687
31688test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31689  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31690  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
31691      "$ac_tmp/out"`; test -z "$ac_out"; } &&
31692  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31693which seems to be undefined.  Please make sure it is defined" >&5
31694$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31695which seems to be undefined.  Please make sure it is defined" >&2;}
31696
31697  rm -f "$ac_tmp/stdin"
31698  case $ac_file in
31699  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31700  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31701  esac \
31702  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31703 ;;
31704  :H)
31705  #
31706  # CONFIG_HEADER
31707  #
31708  if test x"$ac_file" != x-; then
31709    {
31710      $as_echo "/* $configure_input  */" \
31711      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31712    } >"$ac_tmp/config.h" \
31713      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31714    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31715      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31716$as_echo "$as_me: $ac_file is unchanged" >&6;}
31717    else
31718      rm -f "$ac_file"
31719      mv "$ac_tmp/config.h" "$ac_file" \
31720	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
31721    fi
31722  else
31723    $as_echo "/* $configure_input  */" \
31724      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31725      || as_fn_error $? "could not create -" "$LINENO" 5
31726  fi
31727# Compute "$ac_file"'s index in $config_headers.
31728_am_arg="$ac_file"
31729_am_stamp_count=1
31730for _am_header in $config_headers :; do
31731  case $_am_header in
31732    $_am_arg | $_am_arg:* )
31733      break ;;
31734    * )
31735      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31736  esac
31737done
31738echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31739$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31740	 X"$_am_arg" : 'X\(//\)[^/]' \| \
31741	 X"$_am_arg" : 'X\(//\)$' \| \
31742	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31743$as_echo X"$_am_arg" |
31744    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31745	    s//\1/
31746	    q
31747	  }
31748	  /^X\(\/\/\)[^/].*/{
31749	    s//\1/
31750	    q
31751	  }
31752	  /^X\(\/\/\)$/{
31753	    s//\1/
31754	    q
31755	  }
31756	  /^X\(\/\).*/{
31757	    s//\1/
31758	    q
31759	  }
31760	  s/.*/./; q'`/stamp-h$_am_stamp_count
31761 ;;
31762
31763  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31764$as_echo "$as_me: executing $ac_file commands" >&6;}
31765 ;;
31766  esac
31767
31768
31769  case $ac_file$ac_mode in
31770    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31771  # Older Autoconf quotes --file arguments for eval, but not when files
31772  # are listed without --file.  Let's play safe and only enable the eval
31773  # if we detect the quoting.
31774  # TODO: see whether this extra hack can be removed once we start
31775  # requiring Autoconf 2.70 or later.
31776  case $CONFIG_FILES in #(
31777  *\'*) :
31778    eval set x "$CONFIG_FILES" ;; #(
31779  *) :
31780    set x $CONFIG_FILES ;; #(
31781  *) :
31782     ;;
31783esac
31784  shift
31785  # Used to flag and report bootstrapping failures.
31786  am_rc=0
31787  for am_mf
31788  do
31789    # Strip MF so we end up with the name of the file.
31790    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
31791    # Check whether this is an Automake generated Makefile which includes
31792    # dependency-tracking related rules and includes.
31793    # Grep'ing the whole file directly is not great: AIX grep has a line
31794    # limit of 2048, but all sed's we know have understand at least 4000.
31795    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
31796      || continue
31797    am_dirpart=`$as_dirname -- "$am_mf" ||
31798$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31799	 X"$am_mf" : 'X\(//\)[^/]' \| \
31800	 X"$am_mf" : 'X\(//\)$' \| \
31801	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31802$as_echo X"$am_mf" |
31803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31804	    s//\1/
31805	    q
31806	  }
31807	  /^X\(\/\/\)[^/].*/{
31808	    s//\1/
31809	    q
31810	  }
31811	  /^X\(\/\/\)$/{
31812	    s//\1/
31813	    q
31814	  }
31815	  /^X\(\/\).*/{
31816	    s//\1/
31817	    q
31818	  }
31819	  s/.*/./; q'`
31820    am_filepart=`$as_basename -- "$am_mf" ||
31821$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
31822	 X"$am_mf" : 'X\(//\)$' \| \
31823	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31824$as_echo X/"$am_mf" |
31825    sed '/^.*\/\([^/][^/]*\)\/*$/{
31826	    s//\1/
31827	    q
31828	  }
31829	  /^X\/\(\/\/\)$/{
31830	    s//\1/
31831	    q
31832	  }
31833	  /^X\/\(\/\).*/{
31834	    s//\1/
31835	    q
31836	  }
31837	  s/.*/./; q'`
31838    { echo "$as_me:$LINENO: cd "$am_dirpart" \
31839      && sed -e '/# am--include-marker/d' "$am_filepart" \
31840        | $MAKE -f - am--depfiles" >&5
31841   (cd "$am_dirpart" \
31842      && sed -e '/# am--include-marker/d' "$am_filepart" \
31843        | $MAKE -f - am--depfiles) >&5 2>&5
31844   ac_status=$?
31845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846   (exit $ac_status); } || am_rc=$?
31847  done
31848  if test $am_rc -ne 0; then
31849    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31851as_fn_error $? "Something went wrong bootstrapping makefile fragments
31852    for automatic dependency tracking.  Try re-running configure with the
31853    '--disable-dependency-tracking' option to at least be able to build
31854    the package (albeit without support for automatic dependency tracking).
31855See \`config.log' for more details" "$LINENO" 5; }
31856  fi
31857  { am_dirpart=; unset am_dirpart;}
31858  { am_filepart=; unset am_filepart;}
31859  { am_mf=; unset am_mf;}
31860  { am_rc=; unset am_rc;}
31861  rm -f conftest-deps.mk
31862}
31863 ;;
31864    "libtool":C)
31865
31866    # See if we are running on zsh, and set the options that allow our
31867    # commands through without removal of \ escapes.
31868    if test -n "${ZSH_VERSION+set}"; then
31869      setopt NO_GLOB_SUBST
31870    fi
31871
31872    cfgfile=${ofile}T
31873    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31874    $RM "$cfgfile"
31875
31876    cat <<_LT_EOF >> "$cfgfile"
31877#! $SHELL
31878# Generated automatically by $as_me ($PACKAGE) $VERSION
31879# NOTE: Changes made to this file will be lost: look at ltmain.sh.
31880
31881# Provide generalized library-building support services.
31882# Written by Gordon Matzigkeit, 1996
31883
31884# Copyright (C) 2014 Free Software Foundation, Inc.
31885# This is free software; see the source for copying conditions.  There is NO
31886# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
31887
31888# GNU Libtool is free software; you can redistribute it and/or modify
31889# it under the terms of the GNU General Public License as published by
31890# the Free Software Foundation; either version 2 of of the License, or
31891# (at your option) any later version.
31892#
31893# As a special exception to the GNU General Public License, if you
31894# distribute this file as part of a program or library that is built
31895# using GNU Libtool, you may include this file under the  same
31896# distribution terms that you use for the rest of that program.
31897#
31898# GNU Libtool is distributed in the hope that it will be useful, but
31899# WITHOUT ANY WARRANTY; without even the implied warranty of
31900# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31901# GNU General Public License for more details.
31902#
31903# You should have received a copy of the GNU General Public License
31904# along with this program.  If not, see <http://www.gnu.org/licenses/>.
31905
31906
31907# The names of the tagged configurations supported by this script.
31908available_tags=''
31909
31910# Configured defaults for sys_lib_dlsearch_path munging.
31911: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
31912
31913# ### BEGIN LIBTOOL CONFIG
31914
31915# Whether or not to build static libraries.
31916build_old_libs=$enable_static
31917
31918# Which release of libtool.m4 was used?
31919macro_version=$macro_version
31920macro_revision=$macro_revision
31921
31922# Whether or not to build shared libraries.
31923build_libtool_libs=$enable_shared
31924
31925# What type of objects to build.
31926pic_mode=$pic_mode
31927
31928# Whether or not to optimize for fast installation.
31929fast_install=$enable_fast_install
31930
31931# Shared archive member basename,for filename based shared library versioning on AIX.
31932shared_archive_member_spec=$shared_archive_member_spec
31933
31934# Shell to use when invoking shell scripts.
31935SHELL=$lt_SHELL
31936
31937# An echo program that protects backslashes.
31938ECHO=$lt_ECHO
31939
31940# The PATH separator for the build system.
31941PATH_SEPARATOR=$lt_PATH_SEPARATOR
31942
31943# The host system.
31944host_alias=$host_alias
31945host=$host
31946host_os=$host_os
31947
31948# The build system.
31949build_alias=$build_alias
31950build=$build
31951build_os=$build_os
31952
31953# A sed program that does not truncate output.
31954SED=$lt_SED
31955
31956# Sed that helps us avoid accidentally triggering echo(1) options like -n.
31957Xsed="\$SED -e 1s/^X//"
31958
31959# A grep program that handles long lines.
31960GREP=$lt_GREP
31961
31962# An ERE matcher.
31963EGREP=$lt_EGREP
31964
31965# A literal string matcher.
31966FGREP=$lt_FGREP
31967
31968# A BSD- or MS-compatible name lister.
31969NM=$lt_NM
31970
31971# Whether we need soft or hard links.
31972LN_S=$lt_LN_S
31973
31974# What is the maximum length of a command?
31975max_cmd_len=$max_cmd_len
31976
31977# Object file suffix (normally "o").
31978objext=$ac_objext
31979
31980# Executable file suffix (normally "").
31981exeext=$exeext
31982
31983# whether the shell understands "unset".
31984lt_unset=$lt_unset
31985
31986# turn spaces into newlines.
31987SP2NL=$lt_lt_SP2NL
31988
31989# turn newlines into spaces.
31990NL2SP=$lt_lt_NL2SP
31991
31992# convert \$build file names to \$host format.
31993to_host_file_cmd=$lt_cv_to_host_file_cmd
31994
31995# convert \$build files to toolchain format.
31996to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31997
31998# An object symbol dumper.
31999OBJDUMP=$lt_OBJDUMP
32000
32001# Method to check whether dependent libraries are shared objects.
32002deplibs_check_method=$lt_deplibs_check_method
32003
32004# Command to use when deplibs_check_method = "file_magic".
32005file_magic_cmd=$lt_file_magic_cmd
32006
32007# How to find potential files when deplibs_check_method = "file_magic".
32008file_magic_glob=$lt_file_magic_glob
32009
32010# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32011want_nocaseglob=$lt_want_nocaseglob
32012
32013# DLL creation program.
32014DLLTOOL=$lt_DLLTOOL
32015
32016# Command to associate shared and link libraries.
32017sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32018
32019# The archiver.
32020AR=$lt_AR
32021
32022# Flags to create an archive.
32023AR_FLAGS=$lt_AR_FLAGS
32024
32025# How to feed a file listing to the archiver.
32026archiver_list_spec=$lt_archiver_list_spec
32027
32028# A symbol stripping program.
32029STRIP=$lt_STRIP
32030
32031# Commands used to install an old-style archive.
32032RANLIB=$lt_RANLIB
32033old_postinstall_cmds=$lt_old_postinstall_cmds
32034old_postuninstall_cmds=$lt_old_postuninstall_cmds
32035
32036# Whether to use a lock for old archive extraction.
32037lock_old_archive_extraction=$lock_old_archive_extraction
32038
32039# A C compiler.
32040LTCC=$lt_CC
32041
32042# LTCC compiler flags.
32043LTCFLAGS=$lt_CFLAGS
32044
32045# Take the output of nm and produce a listing of raw symbols and C names.
32046global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32047
32048# Transform the output of nm in a proper C declaration.
32049global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32050
32051# Transform the output of nm into a list of symbols to manually relocate.
32052global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
32053
32054# Transform the output of nm in a C name address pair.
32055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32056
32057# Transform the output of nm in a C name address pair when lib prefix is needed.
32058global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32059
32060# The name lister interface.
32061nm_interface=$lt_lt_cv_nm_interface
32062
32063# Specify filename containing input files for \$NM.
32064nm_file_list_spec=$lt_nm_file_list_spec
32065
32066# The root where to search for dependent libraries,and where our libraries should be installed.
32067lt_sysroot=$lt_sysroot
32068
32069# Command to truncate a binary pipe.
32070lt_truncate_bin=$lt_lt_cv_truncate_bin
32071
32072# The name of the directory that contains temporary libtool files.
32073objdir=$objdir
32074
32075# Used to examine libraries when file_magic_cmd begins with "file".
32076MAGIC_CMD=$MAGIC_CMD
32077
32078# Must we lock files when doing compilation?
32079need_locks=$lt_need_locks
32080
32081# Manifest tool.
32082MANIFEST_TOOL=$lt_MANIFEST_TOOL
32083
32084# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32085DSYMUTIL=$lt_DSYMUTIL
32086
32087# Tool to change global to local symbols on Mac OS X.
32088NMEDIT=$lt_NMEDIT
32089
32090# Tool to manipulate fat objects and archives on Mac OS X.
32091LIPO=$lt_LIPO
32092
32093# ldd/readelf like tool for Mach-O binaries on Mac OS X.
32094OTOOL=$lt_OTOOL
32095
32096# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32097OTOOL64=$lt_OTOOL64
32098
32099# Old archive suffix (normally "a").
32100libext=$libext
32101
32102# Shared library suffix (normally ".so").
32103shrext_cmds=$lt_shrext_cmds
32104
32105# The commands to extract the exported symbol list from a shared archive.
32106extract_expsyms_cmds=$lt_extract_expsyms_cmds
32107
32108# Variables whose values should be saved in libtool wrapper scripts and
32109# restored at link time.
32110variables_saved_for_relink=$lt_variables_saved_for_relink
32111
32112# Do we need the "lib" prefix for modules?
32113need_lib_prefix=$need_lib_prefix
32114
32115# Do we need a version for libraries?
32116need_version=$need_version
32117
32118# Library versioning type.
32119version_type=$version_type
32120
32121# Shared library runtime path variable.
32122runpath_var=$runpath_var
32123
32124# Shared library path variable.
32125shlibpath_var=$shlibpath_var
32126
32127# Is shlibpath searched before the hard-coded library search path?
32128shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32129
32130# Format of library name prefix.
32131libname_spec=$lt_libname_spec
32132
32133# List of archive names.  First name is the real one, the rest are links.
32134# The last name is the one that the linker finds with -lNAME
32135library_names_spec=$lt_library_names_spec
32136
32137# The coded name of the library, if different from the real name.
32138soname_spec=$lt_soname_spec
32139
32140# Permission mode override for installation of shared libraries.
32141install_override_mode=$lt_install_override_mode
32142
32143# Command to use after installation of a shared archive.
32144postinstall_cmds=$lt_postinstall_cmds
32145
32146# Command to use after uninstallation of a shared archive.
32147postuninstall_cmds=$lt_postuninstall_cmds
32148
32149# Commands used to finish a libtool library installation in a directory.
32150finish_cmds=$lt_finish_cmds
32151
32152# As "finish_cmds", except a single script fragment to be evaled but
32153# not shown.
32154finish_eval=$lt_finish_eval
32155
32156# Whether we should hardcode library paths into libraries.
32157hardcode_into_libs=$hardcode_into_libs
32158
32159# Compile-time system search path for libraries.
32160sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32161
32162# Detected run-time system search path for libraries.
32163sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
32164
32165# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
32166configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
32167
32168# Whether dlopen is supported.
32169dlopen_support=$enable_dlopen
32170
32171# Whether dlopen of programs is supported.
32172dlopen_self=$enable_dlopen_self
32173
32174# Whether dlopen of statically linked programs is supported.
32175dlopen_self_static=$enable_dlopen_self_static
32176
32177# Commands to strip libraries.
32178old_striplib=$lt_old_striplib
32179striplib=$lt_striplib
32180
32181
32182# The linker used to build libraries.
32183LD=$lt_LD
32184
32185# How to create reloadable object files.
32186reload_flag=$lt_reload_flag
32187reload_cmds=$lt_reload_cmds
32188
32189# Commands used to build an old-style archive.
32190old_archive_cmds=$lt_old_archive_cmds
32191
32192# A language specific compiler.
32193CC=$lt_compiler
32194
32195# Is the compiler the GNU compiler?
32196with_gcc=$GCC
32197
32198# Compiler flag to turn off builtin functions.
32199no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32200
32201# Additional compiler flags for building library objects.
32202pic_flag=$lt_lt_prog_compiler_pic
32203
32204# How to pass a linker flag through the compiler.
32205wl=$lt_lt_prog_compiler_wl
32206
32207# Compiler flag to prevent dynamic linking.
32208link_static_flag=$lt_lt_prog_compiler_static
32209
32210# Does compiler simultaneously support -c and -o options?
32211compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32212
32213# Whether or not to add -lc for building shared libraries.
32214build_libtool_need_lc=$archive_cmds_need_lc
32215
32216# Whether or not to disallow shared libs when runtime libs are static.
32217allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32218
32219# Compiler flag to allow reflexive dlopens.
32220export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32221
32222# Compiler flag to generate shared objects directly from archives.
32223whole_archive_flag_spec=$lt_whole_archive_flag_spec
32224
32225# Whether the compiler copes with passing no objects directly.
32226compiler_needs_object=$lt_compiler_needs_object
32227
32228# Create an old-style archive from a shared archive.
32229old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32230
32231# Create a temporary old-style archive to link instead of a shared archive.
32232old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32233
32234# Commands used to build a shared archive.
32235archive_cmds=$lt_archive_cmds
32236archive_expsym_cmds=$lt_archive_expsym_cmds
32237
32238# Commands used to build a loadable module if different from building
32239# a shared archive.
32240module_cmds=$lt_module_cmds
32241module_expsym_cmds=$lt_module_expsym_cmds
32242
32243# Whether we are building with GNU ld or not.
32244with_gnu_ld=$lt_with_gnu_ld
32245
32246# Flag that allows shared libraries with undefined symbols to be built.
32247allow_undefined_flag=$lt_allow_undefined_flag
32248
32249# Flag that enforces no undefined symbols.
32250no_undefined_flag=$lt_no_undefined_flag
32251
32252# Flag to hardcode \$libdir into a binary during linking.
32253# This must work even if \$libdir does not exist
32254hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32255
32256# Whether we need a single "-rpath" flag with a separated argument.
32257hardcode_libdir_separator=$lt_hardcode_libdir_separator
32258
32259# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32260# DIR into the resulting binary.
32261hardcode_direct=$hardcode_direct
32262
32263# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32264# DIR into the resulting binary and the resulting library dependency is
32265# "absolute",i.e impossible to change by setting \$shlibpath_var if the
32266# library is relocated.
32267hardcode_direct_absolute=$hardcode_direct_absolute
32268
32269# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32270# into the resulting binary.
32271hardcode_minus_L=$hardcode_minus_L
32272
32273# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32274# into the resulting binary.
32275hardcode_shlibpath_var=$hardcode_shlibpath_var
32276
32277# Set to "yes" if building a shared library automatically hardcodes DIR
32278# into the library and all subsequent libraries and executables linked
32279# against it.
32280hardcode_automatic=$hardcode_automatic
32281
32282# Set to yes if linker adds runtime paths of dependent libraries
32283# to runtime path list.
32284inherit_rpath=$inherit_rpath
32285
32286# Whether libtool must link a program against all its dependency libraries.
32287link_all_deplibs=$link_all_deplibs
32288
32289# Set to "yes" if exported symbols are required.
32290always_export_symbols=$always_export_symbols
32291
32292# The commands to list exported symbols.
32293export_symbols_cmds=$lt_export_symbols_cmds
32294
32295# Symbols that should not be listed in the preloaded symbols.
32296exclude_expsyms=$lt_exclude_expsyms
32297
32298# Symbols that must always be exported.
32299include_expsyms=$lt_include_expsyms
32300
32301# Commands necessary for linking programs (against libraries) with templates.
32302prelink_cmds=$lt_prelink_cmds
32303
32304# Commands necessary for finishing linking programs.
32305postlink_cmds=$lt_postlink_cmds
32306
32307# Specify filename containing input files.
32308file_list_spec=$lt_file_list_spec
32309
32310# How to hardcode a shared library path into an executable.
32311hardcode_action=$hardcode_action
32312
32313# ### END LIBTOOL CONFIG
32314
32315_LT_EOF
32316
32317    cat <<'_LT_EOF' >> "$cfgfile"
32318
32319# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
32320
32321# func_munge_path_list VARIABLE PATH
32322# -----------------------------------
32323# VARIABLE is name of variable containing _space_ separated list of
32324# directories to be munged by the contents of PATH, which is string
32325# having a format:
32326# "DIR[:DIR]:"
32327#       string "DIR[ DIR]" will be prepended to VARIABLE
32328# ":DIR[:DIR]"
32329#       string "DIR[ DIR]" will be appended to VARIABLE
32330# "DIRP[:DIRP]::[DIRA:]DIRA"
32331#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
32332#       "DIRA[ DIRA]" will be appended to VARIABLE
32333# "DIR[:DIR]"
32334#       VARIABLE will be replaced by "DIR[ DIR]"
32335func_munge_path_list ()
32336{
32337    case x$2 in
32338    x)
32339        ;;
32340    *:)
32341        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
32342        ;;
32343    x:*)
32344        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
32345        ;;
32346    *::*)
32347        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
32348        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
32349        ;;
32350    *)
32351        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
32352        ;;
32353    esac
32354}
32355
32356
32357# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
32358func_cc_basename ()
32359{
32360    for cc_temp in $*""; do
32361      case $cc_temp in
32362        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32363        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32364        \-*) ;;
32365        *) break;;
32366      esac
32367    done
32368    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32369}
32370
32371
32372# ### END FUNCTIONS SHARED WITH CONFIGURE
32373
32374_LT_EOF
32375
32376  case $host_os in
32377  aix3*)
32378    cat <<\_LT_EOF >> "$cfgfile"
32379# AIX sometimes has problems with the GCC collect2 program.  For some
32380# reason, if we set the COLLECT_NAMES environment variable, the problems
32381# vanish in a puff of smoke.
32382if test set != "${COLLECT_NAMES+set}"; then
32383  COLLECT_NAMES=
32384  export COLLECT_NAMES
32385fi
32386_LT_EOF
32387    ;;
32388  esac
32389
32390
32391ltmain=$ac_aux_dir/ltmain.sh
32392
32393
32394  # We use sed instead of cat because bash on DJGPP gets confused if
32395  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32396  # text mode, it properly converts lines to CR/LF.  This bash problem
32397  # is reportedly fixed, but why not run on old versions too?
32398  sed '$q' "$ltmain" >> "$cfgfile" \
32399     || (rm -f "$cfgfile"; exit 1)
32400
32401   mv -f "$cfgfile" "$ofile" ||
32402    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32403  chmod +x "$ofile"
32404
32405 ;;
32406
32407  esac
32408done # for ac_tag
32409
32410
32411as_fn_exit 0
32412_ACEOF
32413ac_clean_files=$ac_clean_files_save
32414
32415test $ac_write_fail = 0 ||
32416  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32417
32418
32419# configure is writing to config.log, and then calls config.status.
32420# config.status does its own redirection, appending to config.log.
32421# Unfortunately, on DOS this fails, as config.log is still kept open
32422# by configure, so config.status won't be able to write to it; its
32423# output is simply discarded.  So we exec the FD to /dev/null,
32424# effectively closing config.log, so it can be properly (re)opened and
32425# appended to by config.status.  When coming back to configure, we
32426# need to make the FD available again.
32427if test "$no_create" != yes; then
32428  ac_cs_success=:
32429  ac_config_status_args=
32430  test "$silent" = yes &&
32431    ac_config_status_args="$ac_config_status_args --quiet"
32432  exec 5>/dev/null
32433  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32434  exec 5>>config.log
32435  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32436  # would make configure fail if this is the last instruction.
32437  $ac_cs_success || as_fn_exit 1
32438fi
32439if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32440  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32441$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32442fi
32443
32444
32445echo "****************************************************"
32446echo "rsyslog will be compiled with the following settings:"
32447echo
32448echo "    Large file support enabled:               $enable_largefile"
32449echo "    Networking support enabled:               $enable_inet"
32450echo "    Regular expressions support enabled:      $enable_regexp"
32451echo "    rsyslog runtime will be built:            $enable_rsyslogrt"
32452echo "    rsyslogd will be built:                   $enable_rsyslogd"
32453echo "    have to generate man pages:               $have_to_generate_man_pages"
32454echo "    Unlimited select() support enabled:       $enable_unlimited_select"
32455echo "    uuid support enabled:                     $enable_uuid"
32456echo "    Log file signing support via KSI LS12:    $enable_ksi_ls12"
32457echo "    Log file encryption support:              $enable_libgcrypt"
32458echo "    anonymization support enabled:            $enable_mmanon"
32459echo "    message counting support enabled:         $enable_mmcount"
32460echo "    liblogging-stdlog support enabled:        $enable_liblogging_stdlog"
32461echo "    libsystemd enabled:                       $enable_libsystemd"
32462echo "    kafka static linking enabled:             $enable_kafka_static"
32463echo "    atomic operations enabled:                $enable_atomic_operations"
32464echo
32465echo "---{ input plugins }---"
32466if test "$unamestr" != "AIX"; then
32467echo "    Klog functionality enabled:               $enable_klog ($os_type)"
32468fi
32469echo "    /dev/kmsg functionality enabled:          $enable_kmsg"
32470echo "    plain tcp input module enabled:           $enable_imptcp"
32471echo "    imdiag enabled:                           $enable_imdiag"
32472echo "    file input module enabled:                $enable_imfile"
32473echo "    docker log input module enabled:          $enable_imdocker"
32474echo "    Solaris input module enabled:             $enable_imsolaris"
32475echo "    periodic statistics module enabled:       $enable_impstats"
32476echo "    imczmq input module enabled:              $enable_imczmq"
32477echo "    imjournal input module enabled:           $enable_imjournal"
32478if test "$enable_imjournal" = "optional"; then
32479echo "        imjournal use dummy:                  $imjournal_use_dummy"
32480fi
32481echo "    imbatchreport input module enabled:       $enable_imbatchreport"
32482echo "    imkafka module will be compiled:          $enable_imkafka"
32483if test "$enable_imkafka" = "optional"; then
32484echo "        imkafka use dummy:                    $imkafka_use_dummy"
32485fi
32486echo "    impcap input module enabled:              $enable_impcap"
32487echo "    imtuxedoulog module will be compiled:     $enable_imtuxedoulog"
32488echo "    improg input module enabled:              $enable_improg"
32489echo "    imhttp input module enabled:              $enable_imhttp"
32490echo "    imhiredis input module enabled:           $enable_imhiredis"
32491echo
32492echo "---{ output plugins }---"
32493echo "    Mail support enabled:                     $enable_mail"
32494echo "    omfile-hardened module will be compiled:  $enable_omfile_hardened"
32495echo "    omprog module will be compiled:           $enable_omprog"
32496echo "    omstdout module will be compiled:         $enable_omstdout"
32497echo "    omjournal module will be compiled:        $enable_omjournal"
32498echo "    omhdfs module will be compiled:           $enable_omhdfs"
32499echo "    omelasticsearch module will be compiled:  $enable_elasticsearch"
32500echo "    omclickhouse module will be compiled:     $enable_clickhouse"
32501echo "    omhttp module will be compiled:           $enable_omhttp"
32502echo "    omruleset module will be compiled:        $enable_omruleset"
32503echo "    omudpspoof module will be compiled:       $enable_omudpspoof"
32504echo "    omuxsock module will be compiled:         $enable_omuxsock"
32505echo "    omczmq module will be compiled:           $enable_omczmq"
32506echo "    omrabbitmq module will be compiled:       $enable_omrabbitmq"
32507echo "    omhttpfs module will be compiled:         $enable_omhttpfs"
32508echo "    omamqp1 module will be compiled:          $enable_omamqp1"
32509echo "    omtcl module will be compiled:            $enable_omtcl"
32510echo "    omkafka module will be compiled:          $enable_omkafka"
32511echo
32512echo "---{ parser modules }---"
32513echo "    pmlastmsg module will be compiled:        $enable_pmlastmsg"
32514echo "    pmcisconames module will be compiled:     $enable_pmcisconames"
32515echo "    pmciscoios module will be compiled:       $enable_pmciscoios"
32516echo "    pmnull module will be compiled:           $enable_pmnull"
32517echo "    pmnormalize module will be compiled:      $enable_pmnormalize"
32518echo "    pmaixforwardedfrom module w.be compiled:  $enable_pmaixforwardedfrom"
32519echo "    pmsnare module will be compiled:          $enable_pmsnare"
32520echo "    pmdb2diag module will be compiled:        $enable_pmdb2diag"
32521echo "    pmpanngfw module will be compiled:        $enable_pmpanngfw"
32522echo
32523echo "---{ message modification modules }---"
32524echo "    mmnormalize module will be compiled:      $enable_mmnormalize"
32525echo "    mmjsonparse module will be compiled:      $enable_mmjsonparse"
32526echo "    mmgrok module will be compiled:           $enable_mmgrok"
32527echo "    mmjaduit module will be compiled:         $enable_mmaudit"
32528echo "    mmsnmptrapd module will be compiled:      $enable_mmsnmptrapd"
32529echo "    mmutf8fix enabled:                        $enable_mmutf8fix"
32530echo "    mmrfc5424addhmac enabled:                 $enable_mmrfc5424addhmac"
32531echo "    mmpstrucdata enabled:                     $enable_mmpstrucdata"
32532echo "    mmsequence enabled:                       $enable_mmsequence"
32533echo "    mmdblookup enabled:                       $enable_mmdblookup"
32534echo "    mmdarwin enabled:                         $enable_mmdarwin"
32535echo "    mmfields enabled:                         $enable_mmfields"
32536echo "    mmrm1stspace module enabled:              $enable_mmrm1stspace"
32537echo "    mmkubernetes enabled:                     $enable_mmkubernetes"
32538echo "    mmtaghostname enabled:                    $enable_mmtaghostname"
32539echo
32540echo "---{ database support }---"
32541echo "    MySql support enabled:                    $enable_mysql"
32542echo "    libdbi support enabled:                   $enable_libdbi"
32543if test "$enable_libdbi" = "optional"; then
32544echo "        libdbi use dummy:                     $libdbi_use_dummy"
32545fi
32546echo "    PostgreSQL support enabled:               $enable_pgsql"
32547echo "    mongodb support enabled:                  $enable_ommongodb"
32548echo "    hiredis support enabled:                  $enable_omhiredis"
32549echo
32550echo "---{ protocol support }---"
32551echo "    openssl network stream driver enabled:    $enable_openssl"
32552echo "    GnuTLS network stream driver enabled:     $enable_gnutls"
32553echo "    GSSAPI Kerberos 5 support enabled:        $enable_gssapi_krb5"
32554echo "    RELP support enabled:                     $enable_relp"
32555echo "    SNMP support enabled:                     $enable_snmp"
32556echo
32557echo "---{ function modules }---"
32558echo "    fmhttp enabled:                           $enable_fmhttp"
32559echo "    fmhash enabled:                           $enable_fmhash"
32560echo "    fmhash with xxhash enabled:               $enable_fmhash_xxhash"
32561echo "    fmunflatten enabled:                      $enable_fmunflatten"
32562echo "    ffaup enabled:                            $enable_ffaup"
32563echo
32564echo "---{ debugging support }---"
32565echo "    distcheck workaround enabled:             $enable_distcheck_workaround"
32566echo "    Testbench enabled:                        $enable_testbench"
32567echo "    valgrind tests enabled:                   $with_valgrind_testbench"
32568echo "    valgrind helgrind tests enabled:          $enable_helgrind"
32569echo "    Default tests enabled:                    $enable_default_tests"
32570echo "    Testbench libfaketime tests enabled:      $enable_libfaketime"
32571echo "    Extended Testbench enabled:               $enable_extended_tests"
32572echo "    MySQL Tests enabled:                      $enable_mysql_tests"
32573echo "    Elasticsearch Tests:                      $enable_elasticsearch_tests"
32574echo "    ClickHouse Tests:                         $enable_clickhouse_tests"
32575echo "    PostgreSQL Tests enabled:                 $enable_pgsql_tests"
32576echo "    Kafka Tests enabled:                      $enable_kafka_tests"
32577echo "    Imdocker Tests enabled:                   $enable_imdocker_tests"
32578echo "    gnutls tests enabled:                     $enable_gnutls_tests"
32579echo "    imfile tests enabled:                     $enable_imfile_tests"
32580echo "    systemd journal tests enabled:            $enable_journal_tests"
32581echo "    SNMP Tests enabled:                       $enable_snmp_tests"
32582echo "    Debug mode enabled:                       $enable_debug"
32583echo "    (total) debugless mode enabled:           $enable_debugless"
32584echo "    Diagnostic tools enabled:                 $enable_diagtools"
32585echo "    End-User tools enabled:                   $enable_usertools"
32586echo "    Valgrind support settings enabled:        $enable_valgrind"
32587echo
32588