1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for rrdtool 1.7.2.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='rrdtool'
589PACKAGE_TARNAME='rrdtool'
590PACKAGE_VERSION='1.7.2'
591PACKAGE_STRING='rrdtool 1.7.2'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_default_prefix=/opt/rrdtool-$PACKAGE_VERSION
632ac_header_list=
633gt_needs=
634ac_subst_vars='HAVE_SYSTEMD_FALSE
635HAVE_SYSTEMD_TRUE
636am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639systemdsystemunitdir
640PKG_CONFIG_LIBDIR
641PKG_CONFIG_PATH
642PKG_CONFIG
643MINGW_W64_FALSE
644MINGW_W64_TRUE
645RRDDOCDIR
646TROFF
647NROFF
648COMP_PYTHON
649PYTHON_INCLUDES
650pkgpyexecdir
651pyexecdir
652pkgpythondir
653pythondir
654PYTHON_PLATFORM
655PYTHON_EXEC_PREFIX
656PYTHON_PREFIX
657PYTHON_VERSION
658PYTHON
659TCL_INCLUDE_SPEC
660TCL_PACKAGE_DIR
661TCL_VERSION
662TCL_STUB_LIB_SPEC
663TCL_LD_SEARCH_FLAGS
664TCL_PACKAGE_PATH
665TCL_SHLIB_SUFFIX
666TCL_SHLIB_LD
667TCL_SHLIB_CFLAGS
668TCL_PREFIX
669BUILD_TCL_SITE_FALSE
670BUILD_TCL_SITE_TRUE
671BUILD_TCL_FALSE
672BUILD_TCL_TRUE
673BUILD_LUA_FALSE
674BUILD_LUA_TRUE
675LUA50_FALSE
676LUA50_TRUE
677LUA_SITE_LINSTALL_FALSE
678LUA_SITE_LINSTALL_TRUE
679LUA_SITE_CINSTALL_FALSE
680LUA_SITE_CINSTALL_TRUE
681LUA_NEED_OUR_COMPAT51_FALSE
682LUA_NEED_OUR_COMPAT51_TRUE
683LUA_DEFINES
684LUA_LFLAGS
685LUA_CFLAGS
686LUA_INSTALL_LMOD
687LUA_INSTALL_CMOD
688COMP_LUA
689LUA
690COMP_RUBY
691RUBY_MAKE_OPTIONS
692RUBY
693PERL_VERSION
694COMP_PERL
695PERL_MAKE_OPTIONS
696PERL_CC
697PERLLDFLAGS
698PERLLD
699PERLCCFLAGS
700PERLCC
701NUMVERS
702POD2HTML
703POD2MAN
704PERL
705ENABLE_RPATH_FALSE
706ENABLE_RPATH_TRUE
707ALL_LIBS
708CORE_LIBS
709PKGCONFIG
710BUILD_RRDRESTORE_FALSE
711BUILD_RRDRESTORE_TRUE
712BUILD_RRDGRAPH_FALSE
713BUILD_RRDGRAPH_TRUE
714BUILD_LIBWRAP_FALSE
715BUILD_LIBWRAP_TRUE
716BUILD_LIBRADOS_FALSE
717BUILD_LIBRADOS_TRUE
718BUILD_LIBDBI_FALSE
719BUILD_LIBDBI_TRUE
720BUILD_MULTITHREAD_FALSE
721BUILD_MULTITHREAD_TRUE
722PTHREAD_CFLAGS
723PTHREAD_LIBS
724PTHREAD_CC
725acx_pthread_config
726MULTITHREAD_LDFLAGS
727MULTITHREAD_CFLAGS
728POSUB
729LTLIBINTL
730LIBINTL
731INTLLIBS
732LTLIBICONV
733LIBICONV
734INTL_MACOSX_LIBS
735XGETTEXT_EXTRA_OPTIONS
736MSGMERGE
737XGETTEXT_015
738XGETTEXT
739GMSGFMT_015
740MSGFMT_015
741GMSGFMT
742MSGFMT
743GETTEXT_MACRO_VERSION
744USE_NLS
745LIBOBJS
746RRD_DEFAULT_FONT
747WERROR
748LT_SYS_LIBRARY_PATH
749OTOOL64
750OTOOL
751LIPO
752NMEDIT
753DSYMUTIL
754MANIFEST_TOOL
755RANLIB
756ac_ct_AR
757AR
758DLLTOOL
759OBJDUMP
760LN_S
761NM
762ac_ct_DUMPBIN
763DUMPBIN
764LD
765FGREP
766SED
767LIBTOOL
768STATIC_PROGRAMS_FALSE
769STATIC_PROGRAMS_TRUE
770BUILD_RRDCACHED_FALSE
771BUILD_RRDCACHED_TRUE
772BUILD_RRDCGI_FALSE
773BUILD_RRDCGI_TRUE
774BUILD_EXAMPLES_FALSE
775BUILD_EXAMPLES_TRUE
776BUILD_DOCS_FALSE
777BUILD_DOCS_TRUE
778RRDGRAPH_YLEGEND_ANGLE
779MAINT
780MAINTAINER_MODE_FALSE
781MAINTAINER_MODE_TRUE
782AM_BACKSLASH
783AM_DEFAULT_VERBOSITY
784AM_DEFAULT_V
785AM_V
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789am__nodep
790AMDEPBACKSLASH
791AMDEP_FALSE
792AMDEP_TRUE
793am__quote
794am__include
795DEPDIR
796am__untar
797am__tar
798AMTAR
799am__leading_dot
800SET_MAKE
801AWK
802mkdir_p
803MKDIR_P
804INSTALL_STRIP_PROGRAM
805STRIP
806install_sh
807MAKEINFO
808AUTOHEADER
809AUTOMAKE
810AUTOCONF
811ACLOCAL
812VERSION
813PACKAGE
814CYGPATH_W
815am__isrc
816INSTALL_DATA
817INSTALL_SCRIPT
818INSTALL_PROGRAM
819EGREP
820GREP
821CPP
822OBJEXT
823EXEEXT
824ac_ct_CC
825CPPFLAGS
826LDFLAGS
827CFLAGS
828CC
829target_os
830target_vendor
831target_cpu
832target
833host_os
834host_vendor
835host_cpu
836host
837build_os
838build_vendor
839build_cpu
840build
841LIBVERS
842target_alias
843host_alias
844build_alias
845LIBS
846ECHO_T
847ECHO_N
848ECHO_C
849DEFS
850mandir
851localedir
852libdir
853psdir
854pdfdir
855dvidir
856htmldir
857infodir
858docdir
859oldincludedir
860includedir
861runstatedir
862localstatedir
863sharedstatedir
864sysconfdir
865datadir
866datarootdir
867libexecdir
868sbindir
869bindir
870program_transform_name
871prefix
872exec_prefix
873PACKAGE_URL
874PACKAGE_BUGREPORT
875PACKAGE_STRING
876PACKAGE_VERSION
877PACKAGE_TARNAME
878PACKAGE_NAME
879PATH_SEPARATOR
880SHELL
881PERLFLAGS'
882ac_subst_files=''
883ac_user_opts='
884enable_option_checking
885enable_dependency_tracking
886enable_silent_rules
887enable_maintainer_mode
888enable_docs
889enable_examples
890enable_rrdcached
891enable_rrdcgi
892enable_rrd_graph
893enable_rrd_restore
894with_rrd_default_font
895enable_mmap
896enable_pthread
897enable_flock
898enable_static_programs
899enable_shared
900enable_static
901with_pic
902enable_fast_install
903with_aix_soname
904with_gnu_ld
905with_sysroot
906enable_libtool_lock
907enable_nls
908enable_rpath
909with_libiconv_prefix
910with_libintl_prefix
911enable_libdbi
912enable_librados
913enable_libwrap
914enable_perl
915enable_perl_site_install
916with_perl_options
917enable_ruby
918enable_ruby_site_install
919with_ruby_options
920enable_lua
921enable_lua_site_install
922enable_tcl
923with_tcllib
924enable_tcl_site
925enable_python
926with_systemdsystemunitdir
927'
928      ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
936CPP
937RRDGRAPH_YLEGEND_ANGLE
938LT_SYS_LIBRARY_PATH
939PERLCC
940PERLCCFLAGS
941PERLLD
942PERLLDFLAGS
943PYTHON
944NROFF
945TROFF
946RRDDOCDIR
947PKG_CONFIG
948PKG_CONFIG_PATH
949PKG_CONFIG_LIBDIR'
950
951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955ac_unrecognized_opts=
956ac_unrecognized_sep=
957# The variables have the same names as the options, with
958# dashes changed to underlines.
959cache_file=/dev/null
960exec_prefix=NONE
961no_create=
962no_recursion=
963prefix=NONE
964program_prefix=NONE
965program_suffix=NONE
966program_transform_name=s,x,x,
967silent=
968site=
969srcdir=
970verbose=
971x_includes=NONE
972x_libraries=NONE
973
974# Installation directory options.
975# These are left unexpanded so users can "make install exec_prefix=/foo"
976# and all the variables that are supposed to be based on exec_prefix
977# by default will actually change.
978# Use braces instead of parens because sh, perl, etc. also accept them.
979# (The list follows the same order as the GNU Coding Standards.)
980bindir='${exec_prefix}/bin'
981sbindir='${exec_prefix}/sbin'
982libexecdir='${exec_prefix}/libexec'
983datarootdir='${prefix}/share'
984datadir='${datarootdir}'
985sysconfdir='${prefix}/etc'
986sharedstatedir='${prefix}/com'
987localstatedir='${prefix}/var'
988runstatedir='${localstatedir}/run'
989includedir='${prefix}/include'
990oldincludedir='/usr/include'
991docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992infodir='${datarootdir}/info'
993htmldir='${docdir}'
994dvidir='${docdir}'
995pdfdir='${docdir}'
996psdir='${docdir}'
997libdir='${exec_prefix}/lib'
998localedir='${datarootdir}/locale'
999mandir='${datarootdir}/man'
1000
1001ac_prev=
1002ac_dashdash=
1003for ac_option
1004do
1005  # If the previous option needs an argument, assign it.
1006  if test -n "$ac_prev"; then
1007    eval $ac_prev=\$ac_option
1008    ac_prev=
1009    continue
1010  fi
1011
1012  case $ac_option in
1013  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014  *=)   ac_optarg= ;;
1015  *)    ac_optarg=yes ;;
1016  esac
1017
1018  # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020  case $ac_dashdash$ac_option in
1021  --)
1022    ac_dashdash=yes ;;
1023
1024  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025    ac_prev=bindir ;;
1026  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027    bindir=$ac_optarg ;;
1028
1029  -build | --build | --buil | --bui | --bu)
1030    ac_prev=build_alias ;;
1031  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032    build_alias=$ac_optarg ;;
1033
1034  -cache-file | --cache-file | --cache-fil | --cache-fi \
1035  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036    ac_prev=cache_file ;;
1037  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039    cache_file=$ac_optarg ;;
1040
1041  --config-cache | -C)
1042    cache_file=config.cache ;;
1043
1044  -datadir | --datadir | --datadi | --datad)
1045    ac_prev=datadir ;;
1046  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047    datadir=$ac_optarg ;;
1048
1049  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050  | --dataroo | --dataro | --datar)
1051    ac_prev=datarootdir ;;
1052  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054    datarootdir=$ac_optarg ;;
1055
1056  -disable-* | --disable-*)
1057    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058    # Reject names that are not valid shell variable names.
1059    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060      as_fn_error $? "invalid feature name: $ac_useropt"
1061    ac_useropt_orig=$ac_useropt
1062    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063    case $ac_user_opts in
1064      *"
1065"enable_$ac_useropt"
1066"*) ;;
1067      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068	 ac_unrecognized_sep=', ';;
1069    esac
1070    eval enable_$ac_useropt=no ;;
1071
1072  -docdir | --docdir | --docdi | --doc | --do)
1073    ac_prev=docdir ;;
1074  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075    docdir=$ac_optarg ;;
1076
1077  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078    ac_prev=dvidir ;;
1079  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080    dvidir=$ac_optarg ;;
1081
1082  -enable-* | --enable-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid feature name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"enable_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100  | --exec | --exe | --ex)
1101    ac_prev=exec_prefix ;;
1102  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104  | --exec=* | --exe=* | --ex=*)
1105    exec_prefix=$ac_optarg ;;
1106
1107  -gas | --gas | --ga | --g)
1108    # Obsolete; use --with-gas.
1109    with_gas=yes ;;
1110
1111  -help | --help | --hel | --he | -h)
1112    ac_init_help=long ;;
1113  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114    ac_init_help=recursive ;;
1115  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116    ac_init_help=short ;;
1117
1118  -host | --host | --hos | --ho)
1119    ac_prev=host_alias ;;
1120  -host=* | --host=* | --hos=* | --ho=*)
1121    host_alias=$ac_optarg ;;
1122
1123  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124    ac_prev=htmldir ;;
1125  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126  | --ht=*)
1127    htmldir=$ac_optarg ;;
1128
1129  -includedir | --includedir | --includedi | --included | --include \
1130  | --includ | --inclu | --incl | --inc)
1131    ac_prev=includedir ;;
1132  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133  | --includ=* | --inclu=* | --incl=* | --inc=*)
1134    includedir=$ac_optarg ;;
1135
1136  -infodir | --infodir | --infodi | --infod | --info | --inf)
1137    ac_prev=infodir ;;
1138  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139    infodir=$ac_optarg ;;
1140
1141  -libdir | --libdir | --libdi | --libd)
1142    ac_prev=libdir ;;
1143  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144    libdir=$ac_optarg ;;
1145
1146  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147  | --libexe | --libex | --libe)
1148    ac_prev=libexecdir ;;
1149  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150  | --libexe=* | --libex=* | --libe=*)
1151    libexecdir=$ac_optarg ;;
1152
1153  -localedir | --localedir | --localedi | --localed | --locale)
1154    ac_prev=localedir ;;
1155  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156    localedir=$ac_optarg ;;
1157
1158  -localstatedir | --localstatedir | --localstatedi | --localstated \
1159  | --localstate | --localstat | --localsta | --localst | --locals)
1160    ac_prev=localstatedir ;;
1161  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163    localstatedir=$ac_optarg ;;
1164
1165  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166    ac_prev=mandir ;;
1167  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168    mandir=$ac_optarg ;;
1169
1170  -nfp | --nfp | --nf)
1171    # Obsolete; use --without-fp.
1172    with_fp=no ;;
1173
1174  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175  | --no-cr | --no-c | -n)
1176    no_create=yes ;;
1177
1178  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180    no_recursion=yes ;;
1181
1182  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184  | --oldin | --oldi | --old | --ol | --o)
1185    ac_prev=oldincludedir ;;
1186  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189    oldincludedir=$ac_optarg ;;
1190
1191  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192    ac_prev=prefix ;;
1193  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194    prefix=$ac_optarg ;;
1195
1196  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197  | --program-pre | --program-pr | --program-p)
1198    ac_prev=program_prefix ;;
1199  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201    program_prefix=$ac_optarg ;;
1202
1203  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204  | --program-suf | --program-su | --program-s)
1205    ac_prev=program_suffix ;;
1206  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208    program_suffix=$ac_optarg ;;
1209
1210  -program-transform-name | --program-transform-name \
1211  | --program-transform-nam | --program-transform-na \
1212  | --program-transform-n | --program-transform- \
1213  | --program-transform | --program-transfor \
1214  | --program-transfo | --program-transf \
1215  | --program-trans | --program-tran \
1216  | --progr-tra | --program-tr | --program-t)
1217    ac_prev=program_transform_name ;;
1218  -program-transform-name=* | --program-transform-name=* \
1219  | --program-transform-nam=* | --program-transform-na=* \
1220  | --program-transform-n=* | --program-transform-=* \
1221  | --program-transform=* | --program-transfor=* \
1222  | --program-transfo=* | --program-transf=* \
1223  | --program-trans=* | --program-tran=* \
1224  | --progr-tra=* | --program-tr=* | --program-t=*)
1225    program_transform_name=$ac_optarg ;;
1226
1227  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228    ac_prev=pdfdir ;;
1229  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230    pdfdir=$ac_optarg ;;
1231
1232  -psdir | --psdir | --psdi | --psd | --ps)
1233    ac_prev=psdir ;;
1234  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235    psdir=$ac_optarg ;;
1236
1237  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238  | -silent | --silent | --silen | --sile | --sil)
1239    silent=yes ;;
1240
1241  -runstatedir | --runstatedir | --runstatedi | --runstated \
1242  | --runstate | --runstat | --runsta | --runst | --runs \
1243  | --run | --ru | --r)
1244    ac_prev=runstatedir ;;
1245  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1246  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1247  | --run=* | --ru=* | --r=*)
1248    runstatedir=$ac_optarg ;;
1249
1250  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251    ac_prev=sbindir ;;
1252  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253  | --sbi=* | --sb=*)
1254    sbindir=$ac_optarg ;;
1255
1256  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258  | --sharedst | --shareds | --shared | --share | --shar \
1259  | --sha | --sh)
1260    ac_prev=sharedstatedir ;;
1261  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264  | --sha=* | --sh=*)
1265    sharedstatedir=$ac_optarg ;;
1266
1267  -site | --site | --sit)
1268    ac_prev=site ;;
1269  -site=* | --site=* | --sit=*)
1270    site=$ac_optarg ;;
1271
1272  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273    ac_prev=srcdir ;;
1274  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275    srcdir=$ac_optarg ;;
1276
1277  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278  | --syscon | --sysco | --sysc | --sys | --sy)
1279    ac_prev=sysconfdir ;;
1280  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282    sysconfdir=$ac_optarg ;;
1283
1284  -target | --target | --targe | --targ | --tar | --ta | --t)
1285    ac_prev=target_alias ;;
1286  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287    target_alias=$ac_optarg ;;
1288
1289  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290    verbose=yes ;;
1291
1292  -version | --version | --versio | --versi | --vers | -V)
1293    ac_init_version=: ;;
1294
1295  -with-* | --with-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      as_fn_error $? "invalid package name: $ac_useropt"
1300    ac_useropt_orig=$ac_useropt
1301    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302    case $ac_user_opts in
1303      *"
1304"with_$ac_useropt"
1305"*) ;;
1306      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307	 ac_unrecognized_sep=', ';;
1308    esac
1309    eval with_$ac_useropt=\$ac_optarg ;;
1310
1311  -without-* | --without-*)
1312    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313    # Reject names that are not valid shell variable names.
1314    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315      as_fn_error $? "invalid package name: $ac_useropt"
1316    ac_useropt_orig=$ac_useropt
1317    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318    case $ac_user_opts in
1319      *"
1320"with_$ac_useropt"
1321"*) ;;
1322      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323	 ac_unrecognized_sep=', ';;
1324    esac
1325    eval with_$ac_useropt=no ;;
1326
1327  --x)
1328    # Obsolete; use --with-x.
1329    with_x=yes ;;
1330
1331  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332  | --x-incl | --x-inc | --x-in | --x-i)
1333    ac_prev=x_includes ;;
1334  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336    x_includes=$ac_optarg ;;
1337
1338  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340    ac_prev=x_libraries ;;
1341  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343    x_libraries=$ac_optarg ;;
1344
1345  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346Try \`$0 --help' for more information"
1347    ;;
1348
1349  *=*)
1350    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351    # Reject names that are not valid shell variable names.
1352    case $ac_envvar in #(
1353      '' | [0-9]* | *[!_$as_cr_alnum]* )
1354      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355    esac
1356    eval $ac_envvar=\$ac_optarg
1357    export $ac_envvar ;;
1358
1359  *)
1360    # FIXME: should be removed in autoconf 3.0.
1361    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365    ;;
1366
1367  esac
1368done
1369
1370if test -n "$ac_prev"; then
1371  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372  as_fn_error $? "missing argument to $ac_option"
1373fi
1374
1375if test -n "$ac_unrecognized_opts"; then
1376  case $enable_option_checking in
1377    no) ;;
1378    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380  esac
1381fi
1382
1383# Check all directory arguments for consistency.
1384for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385		datadir sysconfdir sharedstatedir localstatedir includedir \
1386		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387		libdir localedir mandir runstatedir
1388do
1389  eval ac_val=\$$ac_var
1390  # Remove trailing slashes.
1391  case $ac_val in
1392    */ )
1393      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394      eval $ac_var=\$ac_val;;
1395  esac
1396  # Be sure to have absolute directory names.
1397  case $ac_val in
1398    [\\/$]* | ?:[\\/]* )  continue;;
1399    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400  esac
1401  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1402done
1403
1404# There might be people who depend on the old broken behavior: `$host'
1405# used to hold the argument of --host etc.
1406# FIXME: To remove some day.
1407build=$build_alias
1408host=$host_alias
1409target=$target_alias
1410
1411# FIXME: To remove some day.
1412if test "x$host_alias" != x; then
1413  if test "x$build_alias" = x; then
1414    cross_compiling=maybe
1415  elif test "x$build_alias" != "x$host_alias"; then
1416    cross_compiling=yes
1417  fi
1418fi
1419
1420ac_tool_prefix=
1421test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422
1423test "$silent" = yes && exec 6>/dev/null
1424
1425
1426ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427ac_ls_di=`ls -di .` &&
1428ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429  as_fn_error $? "working directory cannot be determined"
1430test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431  as_fn_error $? "pwd does not report name of working directory"
1432
1433
1434# Find the source files, if location was not specified.
1435if test -z "$srcdir"; then
1436  ac_srcdir_defaulted=yes
1437  # Try the directory containing this script, then the parent directory.
1438  ac_confdir=`$as_dirname -- "$as_myself" ||
1439$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440	 X"$as_myself" : 'X\(//\)[^/]' \| \
1441	 X"$as_myself" : 'X\(//\)$' \| \
1442	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443$as_echo X"$as_myself" |
1444    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445	    s//\1/
1446	    q
1447	  }
1448	  /^X\(\/\/\)[^/].*/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)$/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\).*/{
1457	    s//\1/
1458	    q
1459	  }
1460	  s/.*/./; q'`
1461  srcdir=$ac_confdir
1462  if test ! -r "$srcdir/$ac_unique_file"; then
1463    srcdir=..
1464  fi
1465else
1466  ac_srcdir_defaulted=no
1467fi
1468if test ! -r "$srcdir/$ac_unique_file"; then
1469  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471fi
1472ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473ac_abs_confdir=`(
1474	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475	pwd)`
1476# When building in place, set srcdir=.
1477if test "$ac_abs_confdir" = "$ac_pwd"; then
1478  srcdir=.
1479fi
1480# Remove unnecessary trailing slashes from srcdir.
1481# Double slashes in file names in object file debugging info
1482# mess up M-x gdb in Emacs.
1483case $srcdir in
1484*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485esac
1486for ac_var in $ac_precious_vars; do
1487  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488  eval ac_env_${ac_var}_value=\$${ac_var}
1489  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491done
1492
1493#
1494# Report the --help message.
1495#
1496if test "$ac_init_help" = "long"; then
1497  # Omit some internal or obsolete options to make the list less imposing.
1498  # This message is too long to be a string in the A/UX 3.1 sh.
1499  cat <<_ACEOF
1500\`configure' configures rrdtool 1.7.2 to adapt to many kinds of systems.
1501
1502Usage: $0 [OPTION]... [VAR=VALUE]...
1503
1504To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505VAR=VALUE.  See below for descriptions of some of the useful variables.
1506
1507Defaults for the options are specified in brackets.
1508
1509Configuration:
1510  -h, --help              display this help and exit
1511      --help=short        display options specific to this package
1512      --help=recursive    display the short help of all the included packages
1513  -V, --version           display version information and exit
1514  -q, --quiet, --silent   do not print \`checking ...' messages
1515      --cache-file=FILE   cache test results in FILE [disabled]
1516  -C, --config-cache      alias for \`--cache-file=config.cache'
1517  -n, --no-create         do not create output files
1518      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1519
1520Installation directories:
1521  --prefix=PREFIX         install architecture-independent files in PREFIX
1522                          [$ac_default_prefix]
1523  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1524                          [PREFIX]
1525
1526By default, \`make install' will install all the files in
1527\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1528an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529for instance \`--prefix=\$HOME'.
1530
1531For better control, use the options below.
1532
1533Fine tuning of the installation directories:
1534  --bindir=DIR            user executables [EPREFIX/bin]
1535  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1536  --libexecdir=DIR        program executables [EPREFIX/libexec]
1537  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1538  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1539  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1540  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1541  --libdir=DIR            object code libraries [EPREFIX/lib]
1542  --includedir=DIR        C header files [PREFIX/include]
1543  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1544  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1545  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1546  --infodir=DIR           info documentation [DATAROOTDIR/info]
1547  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1548  --mandir=DIR            man documentation [DATAROOTDIR/man]
1549  --docdir=DIR            documentation root [DATAROOTDIR/doc/rrdtool]
1550  --htmldir=DIR           html documentation [DOCDIR]
1551  --dvidir=DIR            dvi documentation [DOCDIR]
1552  --pdfdir=DIR            pdf documentation [DOCDIR]
1553  --psdir=DIR             ps documentation [DOCDIR]
1554_ACEOF
1555
1556  cat <<\_ACEOF
1557
1558Program names:
1559  --program-prefix=PREFIX            prepend PREFIX to installed program names
1560  --program-suffix=SUFFIX            append SUFFIX to installed program names
1561  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1562
1563System types:
1564  --build=BUILD     configure for building on BUILD [guessed]
1565  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1566  --target=TARGET   configure for building compilers for TARGET [HOST]
1567_ACEOF
1568fi
1569
1570if test -n "$ac_init_help"; then
1571  case $ac_init_help in
1572     short | recursive ) echo "Configuration of rrdtool 1.7.2:";;
1573   esac
1574  cat <<\_ACEOF
1575
1576Optional Features:
1577  --disable-option-checking  ignore unrecognized --enable/--with options
1578  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1579  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1580  --enable-dependency-tracking
1581                          do not reject slow dependency extractors
1582  --disable-dependency-tracking
1583                          speeds up one-time build
1584  --enable-silent-rules   less verbose build output (undo: "make V=1")
1585  --disable-silent-rules  verbose build output (undo: "make V=0")
1586  --enable-maintainer-mode
1587                          enable make rules and dependencies not useful (and
1588                          sometimes confusing) to the casual installer
1589  --disable-docs          disable building documentation
1590  --disable-examples      disable building of examples
1591  --disable-rrdcached     disable building of rrdcached
1592  --disable-rrdcgi        disable building of rrdcgi
1593  --disable-rrd_graph     disable all rrd_graph functions
1594  --disable-rrd_restore   disable rrd_restore XML import functions
1595  --disable-mmap          disable mmap in rrd_update, use seek+write instead
1596  --disable-pthread       disable multithread support
1597  --disable-flock         disable file locking
1598  --enable-static-programs
1599                          Build static programs
1600  --enable-shared[=PKGS]  build shared libraries [default=yes]
1601  --enable-static[=PKGS]  build static libraries [default=yes]
1602  --enable-fast-install[=PKGS]
1603                          optimize for fast installation [default=yes]
1604  --disable-libtool-lock  avoid locking (might break parallel builds)
1605  --disable-nls           do not use Native Language Support
1606  --disable-rpath         do not hardcode runtime library paths
1607  --disable-libdbi        do not build in support for libdbi
1608  --disable-librados      do not build in support for librados
1609  --disable-libwrap       do not build in support for libwrap (tcp wrapper)
1610  --disable-perl          do not build the perl modules
1611  --enable-perl-site-install
1612                          by default the rrdtool perl modules are installed
1613                          together with rrdtool in $prefix/lib/perl. You have
1614                          to put a 'use lib qw($prefix/lib/perl)' into your
1615                          scripts when you want to use them. When you set this
1616                          option the perl modules will get installed wherever
1617                          your perl setup thinks it is best.
1618  --disable-ruby          do not build the ruby modules
1619  --enable-ruby-site-install
1620                          by default the rrdtool ruby modules are installed
1621                          together with rrdtool in $prefix/lib/ruby. You have
1622                          to add $prefix/lib/ruby/$ruby_version/$sitearch to
1623                          your $: variable for ruby to find the RRD.so file.
1624  --disable-lua           do not build the lua modules
1625  --enable-lua-site-install
1626                          by default the lua module is installed together with
1627                          rrdtool in $prefix/lib/lua/$lua_version. You have to
1628                          add $prefix/lib/lua/$lua_version/?.so to
1629                          package.cpath for lua to find 'rrd.so'. For lua 5.0
1630                          you may also need to change LUA_PATH to the same
1631                          dir, to require 'compat-5.1'. When you set this
1632                          option the lua modules will get installed wherever
1633                          your Lua setup thinks it is best. WARNING: if you
1634                          set this option, system lua modules compat-5.1.lua
1635                          and rrd.so, if any, may be overwritten.
1636  --disable-tcl           do not build the tcl modules
1637  --enable-tcl-site       install the tcl extension in the tcl tree
1638  --disable-python        do not build the python modules
1639
1640Optional Packages:
1641  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1642  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1643  --with-rrd-default-font=OPTIONS  set the full path to your default font.
1644  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1645                          both]
1646  --with-aix-soname=aix|svr4|both
1647                          shared library versioning (aka "SONAME") variant to
1648                          provide on AIX, [default=aix].
1649  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1650  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1651                          compiler's sysroot if not specified).
1652  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1653  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1654  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1655  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1656  --without-libintl-prefix     don't search for libintl in includedir and libdir
1657  --with-perl-options=OPTIONS  options to pass on command-line when
1658                          generating Makefile from Makefile.PL. If you set this
1659                          option, interesting things may happen unless you know
1660                          what you are doing!
1661  --with-ruby-options=OPTIONS  options to pass on command-line when
1662                          generating Makefile from extconf.rb. If you set this
1663                          option, interesting things may happen unless you know
1664                          what you are doing!
1665  --with-tcllib=DIR       location of the tclConfig.sh
1666  --with-systemdsystemunitdir=DIR
1667                          Directory for systemd service files
1668
1669Some influential environment variables:
1670  CC          C compiler command
1671  CFLAGS      C compiler flags
1672  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1673              nonstandard directory <lib dir>
1674  LIBS        libraries to pass to the linker, e.g. -l<library>
1675  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1676              you have headers in a nonstandard directory <include dir>
1677  CPP         C preprocessor
1678  RRDGRAPH_YLEGEND_ANGLE
1679              Vertical label angle: -90.0 (default) or 90.0
1680  LT_SYS_LIBRARY_PATH
1681              User-defined run-time library search path.
1682  PERLCC      C compiler for Perl modules
1683  PERLCCFLAGS CC flags for Perl modules
1684  PERLLD      Linker for Perl modules
1685  PERLLDFLAGS LD flags for Perl modules
1686  PYTHON      the Python interpreter
1687  NROFF       path to the local nroff version
1688  TROFF       path to the local troff version
1689  RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1690  PKG_CONFIG  path to pkg-config utility
1691  PKG_CONFIG_PATH
1692              directories to add to pkg-config's search path
1693  PKG_CONFIG_LIBDIR
1694              path overriding pkg-config's built-in search path
1695
1696Use these variables to override the choices made by `configure' or to help
1697it to find libraries and programs with nonstandard names/locations.
1698
1699Report bugs to the package provider.
1700_ACEOF
1701ac_status=$?
1702fi
1703
1704if test "$ac_init_help" = "recursive"; then
1705  # If there are subdirs, report their specific --help.
1706  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707    test -d "$ac_dir" ||
1708      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709      continue
1710    ac_builddir=.
1711
1712case "$ac_dir" in
1713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714*)
1715  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716  # A ".." for each directory in $ac_dir_suffix.
1717  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718  case $ac_top_builddir_sub in
1719  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721  esac ;;
1722esac
1723ac_abs_top_builddir=$ac_pwd
1724ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725# for backward compatibility:
1726ac_top_builddir=$ac_top_build_prefix
1727
1728case $srcdir in
1729  .)  # We are building in place.
1730    ac_srcdir=.
1731    ac_top_srcdir=$ac_top_builddir_sub
1732    ac_abs_top_srcdir=$ac_pwd ;;
1733  [\\/]* | ?:[\\/]* )  # Absolute name.
1734    ac_srcdir=$srcdir$ac_dir_suffix;
1735    ac_top_srcdir=$srcdir
1736    ac_abs_top_srcdir=$srcdir ;;
1737  *) # Relative name.
1738    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739    ac_top_srcdir=$ac_top_build_prefix$srcdir
1740    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741esac
1742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743
1744    cd "$ac_dir" || { ac_status=$?; continue; }
1745    # Check for guested configure.
1746    if test -f "$ac_srcdir/configure.gnu"; then
1747      echo &&
1748      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749    elif test -f "$ac_srcdir/configure"; then
1750      echo &&
1751      $SHELL "$ac_srcdir/configure" --help=recursive
1752    else
1753      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754    fi || ac_status=$?
1755    cd "$ac_pwd" || { ac_status=$?; break; }
1756  done
1757fi
1758
1759test -n "$ac_init_help" && exit $ac_status
1760if $ac_init_version; then
1761  cat <<\_ACEOF
1762rrdtool configure 1.7.2
1763generated by GNU Autoconf 2.69
1764
1765Copyright (C) 2012 Free Software Foundation, Inc.
1766This configure script is free software; the Free Software Foundation
1767gives unlimited permission to copy, distribute and modify it.
1768_ACEOF
1769  exit
1770fi
1771
1772## ------------------------ ##
1773## Autoconf initialization. ##
1774## ------------------------ ##
1775
1776# ac_fn_c_try_compile LINENO
1777# --------------------------
1778# Try to compile conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_compile ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  rm -f conftest.$ac_objext
1783  if { { ac_try="$ac_compile"
1784case "(($ac_try" in
1785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786  *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790  (eval "$ac_compile") 2>conftest.err
1791  ac_status=$?
1792  if test -s conftest.err; then
1793    grep -v '^ *+' conftest.err >conftest.er1
1794    cat conftest.er1 >&5
1795    mv -f conftest.er1 conftest.err
1796  fi
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; } && {
1799	 test -z "$ac_c_werror_flag" ||
1800	 test ! -s conftest.err
1801       } && test -s conftest.$ac_objext; then :
1802  ac_retval=0
1803else
1804  $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807	ac_retval=1
1808fi
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810  as_fn_set_status $ac_retval
1811
1812} # ac_fn_c_try_compile
1813
1814# ac_fn_c_try_cpp LINENO
1815# ----------------------
1816# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817ac_fn_c_try_cpp ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if { { ac_try="$ac_cpp conftest.$ac_ext"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828  ac_status=$?
1829  if test -s conftest.err; then
1830    grep -v '^ *+' conftest.err >conftest.er1
1831    cat conftest.er1 >&5
1832    mv -f conftest.er1 conftest.err
1833  fi
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } > conftest.i && {
1836	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837	 test ! -s conftest.err
1838       }; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844    ac_retval=1
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_cpp
1850
1851# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854# the include files in INCLUDES and setting the cache variable VAR
1855# accordingly.
1856ac_fn_c_check_header_mongrel ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  if eval \${$3+:} false; then :
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868else
1869  # Is the header compilable?
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871$as_echo_n "checking $2 usability... " >&6; }
1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  ac_header_compiler=yes
1879else
1880  ac_header_compiler=no
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884$as_echo "$ac_header_compiler" >&6; }
1885
1886# Is the header present?
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888$as_echo_n "checking $2 presence... " >&6; }
1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_cpp "$LINENO"; then :
1894  ac_header_preproc=yes
1895else
1896  ac_header_preproc=no
1897fi
1898rm -f conftest.err conftest.i conftest.$ac_ext
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900$as_echo "$ac_header_preproc" >&6; }
1901
1902# So?  What about this header?
1903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904  yes:no: )
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909    ;;
1910  no:yes:* )
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1914$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1918$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921    ;;
1922esac
1923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if eval \${$3+:} false; then :
1926  $as_echo_n "(cached) " >&6
1927else
1928  eval "$3=\$ac_header_compiler"
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933fi
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_header_mongrel
1937
1938# ac_fn_c_try_run LINENO
1939# ----------------------
1940# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941# that executables *can* be run.
1942ac_fn_c_try_run ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  if { { ac_try="$ac_link"
1946case "(($ac_try" in
1947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948  *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952  (eval "$ac_link") 2>&5
1953  ac_status=$?
1954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956  { { case "(($ac_try" in
1957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958  *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962  (eval "$ac_try") 2>&5
1963  ac_status=$?
1964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965  test $ac_status = 0; }; }; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: program exited with status $ac_status" >&5
1969       $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972       ac_retval=$ac_status
1973fi
1974  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976  as_fn_set_status $ac_retval
1977
1978} # ac_fn_c_try_run
1979
1980# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981# -------------------------------------------------------
1982# Tests whether HEADER exists and can be compiled using the include files in
1983# INCLUDES, setting the cache variable VAR accordingly.
1984ac_fn_c_check_header_compile ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval \${$3+:} false; then :
1990  $as_echo_n "(cached) " >&6
1991else
1992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h.  */
1994$4
1995#include <$2>
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998  eval "$3=yes"
1999else
2000  eval "$3=no"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_c_check_header_compile
2010
2011# ac_fn_c_try_link LINENO
2012# -----------------------
2013# Try to link conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_c_try_link ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  rm -f conftest.$ac_objext conftest$ac_exeext
2018  if { { ac_try="$ac_link"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025  (eval "$ac_link") 2>conftest.err
2026  ac_status=$?
2027  if test -s conftest.err; then
2028    grep -v '^ *+' conftest.err >conftest.er1
2029    cat conftest.er1 >&5
2030    mv -f conftest.er1 conftest.err
2031  fi
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; } && {
2034	 test -z "$ac_c_werror_flag" ||
2035	 test ! -s conftest.err
2036       } && test -s conftest$ac_exeext && {
2037	 test "$cross_compiling" = yes ||
2038	 test -x conftest$ac_exeext
2039       }; then :
2040  ac_retval=0
2041else
2042  $as_echo "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045	ac_retval=1
2046fi
2047  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049  # interfere with the next link command; also delete a directory that is
2050  # left behind by Apple's compiler.  We do this before executing the actions.
2051  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053  as_fn_set_status $ac_retval
2054
2055} # ac_fn_c_try_link
2056
2057# ac_fn_c_check_func LINENO FUNC VAR
2058# ----------------------------------
2059# Tests whether FUNC exists, setting the cache variable VAR accordingly
2060ac_fn_c_check_func ()
2061{
2062  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064$as_echo_n "checking for $2... " >&6; }
2065if eval \${$3+:} false; then :
2066  $as_echo_n "(cached) " >&6
2067else
2068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h.  */
2070/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2072#define $2 innocuous_$2
2073
2074/* System header to define __stub macros and hopefully few prototypes,
2075    which can conflict with char $2 (); below.
2076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077    <limits.h> exists even on freestanding compilers.  */
2078
2079#ifdef __STDC__
2080# include <limits.h>
2081#else
2082# include <assert.h>
2083#endif
2084
2085#undef $2
2086
2087/* Override any GCC internal prototype to avoid an error.
2088   Use char because int might match the return type of a GCC
2089   builtin and then its argument prototype would still apply.  */
2090#ifdef __cplusplus
2091extern "C"
2092#endif
2093char $2 ();
2094/* The GNU C library defines this for functions which it implements
2095    to always fail with ENOSYS.  Some functions are actually named
2096    something starting with __ and the normal name is an alias.  */
2097#if defined __stub_$2 || defined __stub___$2
2098choke me
2099#endif
2100
2101int
2102main ()
2103{
2104return $2 ();
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_link "$LINENO"; then :
2110  eval "$3=yes"
2111else
2112  eval "$3=no"
2113fi
2114rm -f core conftest.err conftest.$ac_objext \
2115    conftest$ac_exeext conftest.$ac_ext
2116fi
2117eval ac_res=\$$3
2118	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119$as_echo "$ac_res" >&6; }
2120  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122} # ac_fn_c_check_func
2123
2124# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2125# ----------------------------------------------------
2126# Tries to find if the field MEMBER exists in type AGGR, after including
2127# INCLUDES, setting cache variable VAR accordingly.
2128ac_fn_c_check_member ()
2129{
2130  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2132$as_echo_n "checking for $2.$3... " >&6; }
2133if eval \${$4+:} false; then :
2134  $as_echo_n "(cached) " >&6
2135else
2136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$5
2139int
2140main ()
2141{
2142static $2 ac_aggr;
2143if (ac_aggr.$3)
2144return 0;
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  eval "$4=yes"
2151else
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$5
2155int
2156main ()
2157{
2158static $2 ac_aggr;
2159if (sizeof ac_aggr.$3)
2160return 0;
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  eval "$4=yes"
2167else
2168  eval "$4=no"
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173fi
2174eval ac_res=\$$4
2175	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176$as_echo "$ac_res" >&6; }
2177  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179} # ac_fn_c_check_member
2180
2181# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2182# -------------------------------------------
2183# Tests whether TYPE exists after having included INCLUDES, setting cache
2184# variable VAR accordingly.
2185ac_fn_c_check_type ()
2186{
2187  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189$as_echo_n "checking for $2... " >&6; }
2190if eval \${$3+:} false; then :
2191  $as_echo_n "(cached) " >&6
2192else
2193  eval "$3=no"
2194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195/* end confdefs.h.  */
2196$4
2197int
2198main ()
2199{
2200if (sizeof ($2))
2201	 return 0;
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210int
2211main ()
2212{
2213if (sizeof (($2)))
2214	    return 0;
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_compile "$LINENO"; then :
2220
2221else
2222  eval "$3=yes"
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227fi
2228eval ac_res=\$$3
2229	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230$as_echo "$ac_res" >&6; }
2231  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232
2233} # ac_fn_c_check_type
2234
2235# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2236# ---------------------------------------------
2237# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2238# accordingly.
2239ac_fn_c_check_decl ()
2240{
2241  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242  as_decl_name=`echo $2|sed 's/ *(.*//'`
2243  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2245$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2246if eval \${$3+:} false; then :
2247  $as_echo_n "(cached) " >&6
2248else
2249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$4
2252int
2253main ()
2254{
2255#ifndef $as_decl_name
2256#ifdef __cplusplus
2257  (void) $as_decl_use;
2258#else
2259  (void) $as_decl_name;
2260#endif
2261#endif
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"; then :
2268  eval "$3=yes"
2269else
2270  eval "$3=no"
2271fi
2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273fi
2274eval ac_res=\$$3
2275	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278
2279} # ac_fn_c_check_decl
2280
2281# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2282# --------------------------------------------
2283# Tries to find the compile-time value of EXPR in a program that includes
2284# INCLUDES, setting VAR accordingly. Returns whether the value could be
2285# computed
2286ac_fn_c_compute_int ()
2287{
2288  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289  if test "$cross_compiling" = yes; then
2290    # Depending upon the size, compute the lo and hi bounds.
2291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h.  */
2293$4
2294int
2295main ()
2296{
2297static int test_array [1 - 2 * !(($2) >= 0)];
2298test_array [0] = 0;
2299return test_array [0];
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306  ac_lo=0 ac_mid=0
2307  while :; do
2308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309/* end confdefs.h.  */
2310$4
2311int
2312main ()
2313{
2314static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2315test_array [0] = 0;
2316return test_array [0];
2317
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323  ac_hi=$ac_mid; break
2324else
2325  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2326			if test $ac_lo -le $ac_mid; then
2327			  ac_lo= ac_hi=
2328			  break
2329			fi
2330			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333  done
2334else
2335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336/* end confdefs.h.  */
2337$4
2338int
2339main ()
2340{
2341static int test_array [1 - 2 * !(($2) < 0)];
2342test_array [0] = 0;
2343return test_array [0];
2344
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350  ac_hi=-1 ac_mid=-1
2351  while :; do
2352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353/* end confdefs.h.  */
2354$4
2355int
2356main ()
2357{
2358static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2359test_array [0] = 0;
2360return test_array [0];
2361
2362  ;
2363  return 0;
2364}
2365_ACEOF
2366if ac_fn_c_try_compile "$LINENO"; then :
2367  ac_lo=$ac_mid; break
2368else
2369  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2370			if test $ac_mid -le $ac_hi; then
2371			  ac_lo= ac_hi=
2372			  break
2373			fi
2374			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2375fi
2376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377  done
2378else
2379  ac_lo= ac_hi=
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384# Binary search between lo and hi bounds.
2385while test "x$ac_lo" != "x$ac_hi"; do
2386  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h.  */
2389$4
2390int
2391main ()
2392{
2393static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2394test_array [0] = 0;
2395return test_array [0];
2396
2397  ;
2398  return 0;
2399}
2400_ACEOF
2401if ac_fn_c_try_compile "$LINENO"; then :
2402  ac_hi=$ac_mid
2403else
2404  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2405fi
2406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407done
2408case $ac_lo in #((
2409?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2410'') ac_retval=1 ;;
2411esac
2412  else
2413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h.  */
2415$4
2416static long int longval () { return $2; }
2417static unsigned long int ulongval () { return $2; }
2418#include <stdio.h>
2419#include <stdlib.h>
2420int
2421main ()
2422{
2423
2424  FILE *f = fopen ("conftest.val", "w");
2425  if (! f)
2426    return 1;
2427  if (($2) < 0)
2428    {
2429      long int i = longval ();
2430      if (i != ($2))
2431	return 1;
2432      fprintf (f, "%ld", i);
2433    }
2434  else
2435    {
2436      unsigned long int i = ulongval ();
2437      if (i != ($2))
2438	return 1;
2439      fprintf (f, "%lu", i);
2440    }
2441  /* Do not output a trailing newline, as this causes \r\n confusion
2442     on some platforms.  */
2443  return ferror (f) || fclose (f) != 0;
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449if ac_fn_c_try_run "$LINENO"; then :
2450  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2451else
2452  ac_retval=1
2453fi
2454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2455  conftest.$ac_objext conftest.beam conftest.$ac_ext
2456rm -f conftest.val
2457
2458  fi
2459  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460  as_fn_set_status $ac_retval
2461
2462} # ac_fn_c_compute_int
2463cat >config.log <<_ACEOF
2464This file contains any messages produced by compilers while
2465running configure, to aid debugging if configure makes a mistake.
2466
2467It was created by rrdtool $as_me 1.7.2, which was
2468generated by GNU Autoconf 2.69.  Invocation command line was
2469
2470  $ $0 $@
2471
2472_ACEOF
2473exec 5>>config.log
2474{
2475cat <<_ASUNAME
2476## --------- ##
2477## Platform. ##
2478## --------- ##
2479
2480hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2481uname -m = `(uname -m) 2>/dev/null || echo unknown`
2482uname -r = `(uname -r) 2>/dev/null || echo unknown`
2483uname -s = `(uname -s) 2>/dev/null || echo unknown`
2484uname -v = `(uname -v) 2>/dev/null || echo unknown`
2485
2486/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2487/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2488
2489/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2490/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2491/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2492/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2493/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2494/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2495/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2496
2497_ASUNAME
2498
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502  IFS=$as_save_IFS
2503  test -z "$as_dir" && as_dir=.
2504    $as_echo "PATH: $as_dir"
2505  done
2506IFS=$as_save_IFS
2507
2508} >&5
2509
2510cat >&5 <<_ACEOF
2511
2512
2513## ----------- ##
2514## Core tests. ##
2515## ----------- ##
2516
2517_ACEOF
2518
2519
2520# Keep a trace of the command line.
2521# Strip out --no-create and --no-recursion so they do not pile up.
2522# Strip out --silent because we don't want to record it for future runs.
2523# Also quote any args containing shell meta-characters.
2524# Make two passes to allow for proper duplicate-argument suppression.
2525ac_configure_args=
2526ac_configure_args0=
2527ac_configure_args1=
2528ac_must_keep_next=false
2529for ac_pass in 1 2
2530do
2531  for ac_arg
2532  do
2533    case $ac_arg in
2534    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2535    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2536    | -silent | --silent | --silen | --sile | --sil)
2537      continue ;;
2538    *\'*)
2539      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2540    esac
2541    case $ac_pass in
2542    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2543    2)
2544      as_fn_append ac_configure_args1 " '$ac_arg'"
2545      if test $ac_must_keep_next = true; then
2546	ac_must_keep_next=false # Got value, back to normal.
2547      else
2548	case $ac_arg in
2549	  *=* | --config-cache | -C | -disable-* | --disable-* \
2550	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2551	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2552	  | -with-* | --with-* | -without-* | --without-* | --x)
2553	    case "$ac_configure_args0 " in
2554	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2555	    esac
2556	    ;;
2557	  -* ) ac_must_keep_next=true ;;
2558	esac
2559      fi
2560      as_fn_append ac_configure_args " '$ac_arg'"
2561      ;;
2562    esac
2563  done
2564done
2565{ ac_configure_args0=; unset ac_configure_args0;}
2566{ ac_configure_args1=; unset ac_configure_args1;}
2567
2568# When interrupted or exit'd, cleanup temporary files, and complete
2569# config.log.  We remove comments because anyway the quotes in there
2570# would cause problems or look ugly.
2571# WARNING: Use '\'' to represent an apostrophe within the trap.
2572# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2573trap 'exit_status=$?
2574  # Save into config.log some information that might help in debugging.
2575  {
2576    echo
2577
2578    $as_echo "## ---------------- ##
2579## Cache variables. ##
2580## ---------------- ##"
2581    echo
2582    # The following way of writing the cache mishandles newlines in values,
2583(
2584  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2585    eval ac_val=\$$ac_var
2586    case $ac_val in #(
2587    *${as_nl}*)
2588      case $ac_var in #(
2589      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2590$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2591      esac
2592      case $ac_var in #(
2593      _ | IFS | as_nl) ;; #(
2594      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2595      *) { eval $ac_var=; unset $ac_var;} ;;
2596      esac ;;
2597    esac
2598  done
2599  (set) 2>&1 |
2600    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2601    *${as_nl}ac_space=\ *)
2602      sed -n \
2603	"s/'\''/'\''\\\\'\'''\''/g;
2604	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2605      ;; #(
2606    *)
2607      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2608      ;;
2609    esac |
2610    sort
2611)
2612    echo
2613
2614    $as_echo "## ----------------- ##
2615## Output variables. ##
2616## ----------------- ##"
2617    echo
2618    for ac_var in $ac_subst_vars
2619    do
2620      eval ac_val=\$$ac_var
2621      case $ac_val in
2622      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2623      esac
2624      $as_echo "$ac_var='\''$ac_val'\''"
2625    done | sort
2626    echo
2627
2628    if test -n "$ac_subst_files"; then
2629      $as_echo "## ------------------- ##
2630## File substitutions. ##
2631## ------------------- ##"
2632      echo
2633      for ac_var in $ac_subst_files
2634      do
2635	eval ac_val=\$$ac_var
2636	case $ac_val in
2637	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2638	esac
2639	$as_echo "$ac_var='\''$ac_val'\''"
2640      done | sort
2641      echo
2642    fi
2643
2644    if test -s confdefs.h; then
2645      $as_echo "## ----------- ##
2646## confdefs.h. ##
2647## ----------- ##"
2648      echo
2649      cat confdefs.h
2650      echo
2651    fi
2652    test "$ac_signal" != 0 &&
2653      $as_echo "$as_me: caught signal $ac_signal"
2654    $as_echo "$as_me: exit $exit_status"
2655  } >&5
2656  rm -f core *.core core.conftest.* &&
2657    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2658    exit $exit_status
2659' 0
2660for ac_signal in 1 2 13 15; do
2661  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2662done
2663ac_signal=0
2664
2665# confdefs.h avoids OS command line length limits that DEFS can exceed.
2666rm -f -r conftest* confdefs.h
2667
2668$as_echo "/* confdefs.h */" > confdefs.h
2669
2670# Predefined preprocessor variables.
2671
2672cat >>confdefs.h <<_ACEOF
2673#define PACKAGE_NAME "$PACKAGE_NAME"
2674_ACEOF
2675
2676cat >>confdefs.h <<_ACEOF
2677#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2678_ACEOF
2679
2680cat >>confdefs.h <<_ACEOF
2681#define PACKAGE_VERSION "$PACKAGE_VERSION"
2682_ACEOF
2683
2684cat >>confdefs.h <<_ACEOF
2685#define PACKAGE_STRING "$PACKAGE_STRING"
2686_ACEOF
2687
2688cat >>confdefs.h <<_ACEOF
2689#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2690_ACEOF
2691
2692cat >>confdefs.h <<_ACEOF
2693#define PACKAGE_URL "$PACKAGE_URL"
2694_ACEOF
2695
2696
2697# Let the site file select an alternate cache file if it wants to.
2698# Prefer an explicitly selected file to automatically selected ones.
2699ac_site_file1=NONE
2700ac_site_file2=NONE
2701if test -n "$CONFIG_SITE"; then
2702  # We do not want a PATH search for config.site.
2703  case $CONFIG_SITE in #((
2704    -*)  ac_site_file1=./$CONFIG_SITE;;
2705    */*) ac_site_file1=$CONFIG_SITE;;
2706    *)   ac_site_file1=./$CONFIG_SITE;;
2707  esac
2708elif test "x$prefix" != xNONE; then
2709  ac_site_file1=$prefix/share/config.site
2710  ac_site_file2=$prefix/etc/config.site
2711else
2712  ac_site_file1=$ac_default_prefix/share/config.site
2713  ac_site_file2=$ac_default_prefix/etc/config.site
2714fi
2715for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2716do
2717  test "x$ac_site_file" = xNONE && continue
2718  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2719    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2720$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2721    sed 's/^/| /' "$ac_site_file" >&5
2722    . "$ac_site_file" \
2723      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725as_fn_error $? "failed to load site script $ac_site_file
2726See \`config.log' for more details" "$LINENO" 5; }
2727  fi
2728done
2729
2730if test -r "$cache_file"; then
2731  # Some versions of bash will fail to source /dev/null (special files
2732  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2733  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2734    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2735$as_echo "$as_me: loading cache $cache_file" >&6;}
2736    case $cache_file in
2737      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2738      *)                      . "./$cache_file";;
2739    esac
2740  fi
2741else
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2743$as_echo "$as_me: creating cache $cache_file" >&6;}
2744  >$cache_file
2745fi
2746
2747as_fn_append ac_header_list " stdarg.h"
2748as_fn_append ac_header_list " varargs.h"
2749as_fn_append ac_header_list " stdlib.h"
2750as_fn_append ac_header_list " unistd.h"
2751as_fn_append ac_header_list " sys/param.h"
2752gt_needs="$gt_needs "
2753# Check that the precious variables saved in the cache have kept the same
2754# value.
2755ac_cache_corrupted=false
2756for ac_var in $ac_precious_vars; do
2757  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2758  eval ac_new_set=\$ac_env_${ac_var}_set
2759  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2760  eval ac_new_val=\$ac_env_${ac_var}_value
2761  case $ac_old_set,$ac_new_set in
2762    set,)
2763      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2764$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2765      ac_cache_corrupted=: ;;
2766    ,set)
2767      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2768$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2769      ac_cache_corrupted=: ;;
2770    ,);;
2771    *)
2772      if test "x$ac_old_val" != "x$ac_new_val"; then
2773	# differences in whitespace do not lead to failure.
2774	ac_old_val_w=`echo x $ac_old_val`
2775	ac_new_val_w=`echo x $ac_new_val`
2776	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2777	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2778$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2779	  ac_cache_corrupted=:
2780	else
2781	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2782$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2783	  eval $ac_var=\$ac_old_val
2784	fi
2785	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2786$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2787	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2788$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2789      fi;;
2790  esac
2791  # Pass precious variables to config.status.
2792  if test "$ac_new_set" = set; then
2793    case $ac_new_val in
2794    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2795    *) ac_arg=$ac_var=$ac_new_val ;;
2796    esac
2797    case " $ac_configure_args " in
2798      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2799      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2800    esac
2801  fi
2802done
2803if $ac_cache_corrupted; then
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2807$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2808  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2809fi
2810## -------------------- ##
2811## Main body of script. ##
2812## -------------------- ##
2813
2814ac_ext=c
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819
2820
2821ac_aux_dir=
2822for ac_dir in conftools "$srcdir"/conftools; do
2823  if test -f "$ac_dir/install-sh"; then
2824    ac_aux_dir=$ac_dir
2825    ac_install_sh="$ac_aux_dir/install-sh -c"
2826    break
2827  elif test -f "$ac_dir/install.sh"; then
2828    ac_aux_dir=$ac_dir
2829    ac_install_sh="$ac_aux_dir/install.sh -c"
2830    break
2831  elif test -f "$ac_dir/shtool"; then
2832    ac_aux_dir=$ac_dir
2833    ac_install_sh="$ac_aux_dir/shtool install -c"
2834    break
2835  fi
2836done
2837if test -z "$ac_aux_dir"; then
2838  as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2839fi
2840
2841# These three variables are undocumented and unsupported,
2842# and are intended to be withdrawn in a future Autoconf release.
2843# They can cause serious problems if a builder's source tree is in a directory
2844# whose full name contains unusual characters.
2845ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2846ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2847ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2848
2849
2850
2851
2852LIBVERS=10:1:2
2853
2854
2855# Make sure we can run config.sub.
2856$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2858
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860$as_echo_n "checking build system type... " >&6; }
2861if ${ac_cv_build+:} false; then :
2862  $as_echo_n "(cached) " >&6
2863else
2864  ac_build_alias=$build_alias
2865test "x$ac_build_alias" = x &&
2866  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867test "x$ac_build_alias" = x &&
2868  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2869ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2871
2872fi
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874$as_echo "$ac_cv_build" >&6; }
2875case $ac_cv_build in
2876*-*-*) ;;
2877*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2878esac
2879build=$ac_cv_build
2880ac_save_IFS=$IFS; IFS='-'
2881set x $ac_cv_build
2882shift
2883build_cpu=$1
2884build_vendor=$2
2885shift; shift
2886# Remember, the first character of IFS is used to create $*,
2887# except with old shells:
2888build_os=$*
2889IFS=$ac_save_IFS
2890case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2891
2892
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894$as_echo_n "checking host system type... " >&6; }
2895if ${ac_cv_host+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test "x$host_alias" = x; then
2899  ac_cv_host=$ac_cv_build
2900else
2901  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2903fi
2904
2905fi
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907$as_echo "$ac_cv_host" >&6; }
2908case $ac_cv_host in
2909*-*-*) ;;
2910*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2911esac
2912host=$ac_cv_host
2913ac_save_IFS=$IFS; IFS='-'
2914set x $ac_cv_host
2915shift
2916host_cpu=$1
2917host_vendor=$2
2918shift; shift
2919# Remember, the first character of IFS is used to create $*,
2920# except with old shells:
2921host_os=$*
2922IFS=$ac_save_IFS
2923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2924
2925
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2927$as_echo_n "checking target system type... " >&6; }
2928if ${ac_cv_target+:} false; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  if test "x$target_alias" = x; then
2932  ac_cv_target=$ac_cv_host
2933else
2934  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2935    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2936fi
2937
2938fi
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2940$as_echo "$ac_cv_target" >&6; }
2941case $ac_cv_target in
2942*-*-*) ;;
2943*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2944esac
2945target=$ac_cv_target
2946ac_save_IFS=$IFS; IFS='-'
2947set x $ac_cv_target
2948shift
2949target_cpu=$1
2950target_vendor=$2
2951shift; shift
2952# Remember, the first character of IFS is used to create $*,
2953# except with old shells:
2954target_os=$*
2955IFS=$ac_save_IFS
2956case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2957
2958
2959# The aliases save the names the user supplied, while $host etc.
2960# will get canonicalized.
2961test -n "$target_alias" &&
2962  test "$program_prefix$program_suffix$program_transform_name" = \
2963    NONENONEs,x,x, &&
2964  program_prefix=${target_alias}-
2965# Expand $ac_aux_dir to an absolute path.
2966am_aux_dir=`cd "$ac_aux_dir" && pwd`
2967
2968ac_ext=c
2969ac_cpp='$CPP $CPPFLAGS'
2970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973if test -n "$ac_tool_prefix"; then
2974  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2975set dummy ${ac_tool_prefix}gcc; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if ${ac_cv_prog_CC+:} false; then :
2979  $as_echo_n "(cached) " >&6
2980else
2981  if test -n "$CC"; then
2982  ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    for ac_exec_ext in '' $ac_executable_extensions; do
2990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993    break 2
2994  fi
2995done
2996  done
2997IFS=$as_save_IFS
2998
2999fi
3000fi
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004$as_echo "$CC" >&6; }
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010
3011fi
3012if test -z "$ac_cv_prog_CC"; then
3013  ac_ct_CC=$CC
3014  # Extract the first word of "gcc", so it can be a program name with args.
3015set dummy gcc; ac_word=$2
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
3018if ${ac_cv_prog_ac_ct_CC+:} false; then :
3019  $as_echo_n "(cached) " >&6
3020else
3021  if test -n "$ac_ct_CC"; then
3022  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027  IFS=$as_save_IFS
3028  test -z "$as_dir" && as_dir=.
3029    for ac_exec_ext in '' $ac_executable_extensions; do
3030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031    ac_cv_prog_ac_ct_CC="gcc"
3032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033    break 2
3034  fi
3035done
3036  done
3037IFS=$as_save_IFS
3038
3039fi
3040fi
3041ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042if test -n "$ac_ct_CC"; then
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044$as_echo "$ac_ct_CC" >&6; }
3045else
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048fi
3049
3050  if test "x$ac_ct_CC" = x; then
3051    CC=""
3052  else
3053    case $cross_compiling:$ac_tool_warned in
3054yes:)
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057ac_tool_warned=yes ;;
3058esac
3059    CC=$ac_ct_CC
3060  fi
3061else
3062  CC="$ac_cv_prog_CC"
3063fi
3064
3065if test -z "$CC"; then
3066          if test -n "$ac_tool_prefix"; then
3067    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3068set dummy ${ac_tool_prefix}cc; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if ${ac_cv_prog_CC+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test -n "$CC"; then
3075  ac_cv_prog_CC="$CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_CC="${ac_tool_prefix}cc"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094CC=$ac_cv_prog_CC
3095if test -n "$CC"; then
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097$as_echo "$CC" >&6; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103
3104  fi
3105fi
3106if test -z "$CC"; then
3107  # Extract the first word of "cc", so it can be a program name with args.
3108set dummy cc; ac_word=$2
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if ${ac_cv_prog_CC+:} false; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$CC"; then
3115  ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117  ac_prog_rejected=no
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3126       ac_prog_rejected=yes
3127       continue
3128     fi
3129    ac_cv_prog_CC="cc"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137if test $ac_prog_rejected = yes; then
3138  # We found a bogon in the path, so make sure we never use it.
3139  set dummy $ac_cv_prog_CC
3140  shift
3141  if test $# != 0; then
3142    # We chose a different compiler from the bogus one.
3143    # However, it has the same basename, so the bogon will be chosen
3144    # first if we set CC to just the basename; use the full file name.
3145    shift
3146    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3147  fi
3148fi
3149fi
3150fi
3151CC=$ac_cv_prog_CC
3152if test -n "$CC"; then
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154$as_echo "$CC" >&6; }
3155else
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158fi
3159
3160
3161fi
3162if test -z "$CC"; then
3163  if test -n "$ac_tool_prefix"; then
3164  for ac_prog in cl.exe
3165  do
3166    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169$as_echo_n "checking for $ac_word... " >&6; }
3170if ${ac_cv_prog_CC+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  if test -n "$CC"; then
3174  ac_cv_prog_CC="$CC" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181    for ac_exec_ext in '' $ac_executable_extensions; do
3182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191fi
3192fi
3193CC=$ac_cv_prog_CC
3194if test -n "$CC"; then
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196$as_echo "$CC" >&6; }
3197else
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200fi
3201
3202
3203    test -n "$CC" && break
3204  done
3205fi
3206if test -z "$CC"; then
3207  ac_ct_CC=$CC
3208  for ac_prog in cl.exe
3209do
3210  # Extract the first word of "$ac_prog", so it can be a program name with args.
3211set dummy $ac_prog; ac_word=$2
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213$as_echo_n "checking for $ac_word... " >&6; }
3214if ${ac_cv_prog_ac_ct_CC+:} false; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  if test -n "$ac_ct_CC"; then
3218  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223  IFS=$as_save_IFS
3224  test -z "$as_dir" && as_dir=.
3225    for ac_exec_ext in '' $ac_executable_extensions; do
3226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227    ac_cv_prog_ac_ct_CC="$ac_prog"
3228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229    break 2
3230  fi
3231done
3232  done
3233IFS=$as_save_IFS
3234
3235fi
3236fi
3237ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238if test -n "$ac_ct_CC"; then
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240$as_echo "$ac_ct_CC" >&6; }
3241else
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
3246
3247  test -n "$ac_ct_CC" && break
3248done
3249
3250  if test "x$ac_ct_CC" = x; then
3251    CC=""
3252  else
3253    case $cross_compiling:$ac_tool_warned in
3254yes:)
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3257ac_tool_warned=yes ;;
3258esac
3259    CC=$ac_ct_CC
3260  fi
3261fi
3262
3263fi
3264
3265
3266test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "no acceptable C compiler found in \$PATH
3269See \`config.log' for more details" "$LINENO" 5; }
3270
3271# Provide some information about the compiler.
3272$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3273set X $ac_compile
3274ac_compiler=$2
3275for ac_option in --version -v -V -qversion; do
3276  { { ac_try="$ac_compiler $ac_option >&5"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
3283  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3284  ac_status=$?
3285  if test -s conftest.err; then
3286    sed '10a\
3287... rest of stderr output deleted ...
3288         10q' conftest.err >conftest.er1
3289    cat conftest.er1 >&5
3290  fi
3291  rm -f conftest.er1 conftest.err
3292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293  test $ac_status = 0; }
3294done
3295
3296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h.  */
3298
3299int
3300main ()
3301{
3302
3303  ;
3304  return 0;
3305}
3306_ACEOF
3307ac_clean_files_save=$ac_clean_files
3308ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3309# Try to create an executable without -o first, disregard a.out.
3310# It will help us diagnose broken compilers, and finding out an intuition
3311# of exeext.
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3313$as_echo_n "checking whether the C compiler works... " >&6; }
3314ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3315
3316# The possible output files:
3317ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3318
3319ac_rmfiles=
3320for ac_file in $ac_files
3321do
3322  case $ac_file in
3323    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3324    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3325  esac
3326done
3327rm -f $ac_rmfiles
3328
3329if { { ac_try="$ac_link_default"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_link_default") 2>&5
3337  ac_status=$?
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }; then :
3340  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3341# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3342# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3343# so that the user can short-circuit this test for compilers unknown to
3344# Autoconf.
3345for ac_file in $ac_files ''
3346do
3347  test -f "$ac_file" || continue
3348  case $ac_file in
3349    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3350	;;
3351    [ab].out )
3352	# We found the default executable, but exeext='' is most
3353	# certainly right.
3354	break;;
3355    *.* )
3356	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3357	then :; else
3358	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359	fi
3360	# We set ac_cv_exeext here because the later test for it is not
3361	# safe: cross compilers may not add the suffix if given an `-o'
3362	# argument, so we may need to know it at that point already.
3363	# Even if this section looks crufty: it has the advantage of
3364	# actually working.
3365	break;;
3366    * )
3367	break;;
3368  esac
3369done
3370test "$ac_cv_exeext" = no && ac_cv_exeext=
3371
3372else
3373  ac_file=''
3374fi
3375if test -z "$ac_file"; then :
3376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
3378$as_echo "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
3381{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383as_fn_error 77 "C compiler cannot create executables
3384See \`config.log' for more details" "$LINENO" 5; }
3385else
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387$as_echo "yes" >&6; }
3388fi
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3390$as_echo_n "checking for C compiler default output file name... " >&6; }
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3392$as_echo "$ac_file" >&6; }
3393ac_exeext=$ac_cv_exeext
3394
3395rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3396ac_clean_files=$ac_clean_files_save
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3398$as_echo_n "checking for suffix of executables... " >&6; }
3399if { { ac_try="$ac_link"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406  (eval "$ac_link") 2>&5
3407  ac_status=$?
3408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409  test $ac_status = 0; }; then :
3410  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3411# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3412# work properly (i.e., refer to `conftest.exe'), while it won't with
3413# `rm'.
3414for ac_file in conftest.exe conftest conftest.*; do
3415  test -f "$ac_file" || continue
3416  case $ac_file in
3417    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3418    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419	  break;;
3420    * ) break;;
3421  esac
3422done
3423else
3424  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3427See \`config.log' for more details" "$LINENO" 5; }
3428fi
3429rm -f conftest conftest$ac_cv_exeext
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3431$as_echo "$ac_cv_exeext" >&6; }
3432
3433rm -f conftest.$ac_ext
3434EXEEXT=$ac_cv_exeext
3435ac_exeext=$EXEEXT
3436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437/* end confdefs.h.  */
3438#include <stdio.h>
3439int
3440main ()
3441{
3442FILE *f = fopen ("conftest.out", "w");
3443 return ferror (f) || fclose (f) != 0;
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449ac_clean_files="$ac_clean_files conftest.out"
3450# Check that the compiler produces executables we can run.  If not, either
3451# the compiler is broken, or we cross compile.
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3453$as_echo_n "checking whether we are cross compiling... " >&6; }
3454if test "$cross_compiling" != yes; then
3455  { { ac_try="$ac_link"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_link") 2>&5
3463  ac_status=$?
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }
3466  if { ac_try='./conftest$ac_cv_exeext'
3467  { { case "(($ac_try" in
3468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469  *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
3473  (eval "$ac_try") 2>&5
3474  ac_status=$?
3475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476  test $ac_status = 0; }; }; then
3477    cross_compiling=no
3478  else
3479    if test "$cross_compiling" = maybe; then
3480	cross_compiling=yes
3481    else
3482	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484as_fn_error $? "cannot run C compiled programs.
3485If you meant to cross compile, use \`--host'.
3486See \`config.log' for more details" "$LINENO" 5; }
3487    fi
3488  fi
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3491$as_echo "$cross_compiling" >&6; }
3492
3493rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3494ac_clean_files=$ac_clean_files_save
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3496$as_echo_n "checking for suffix of object files... " >&6; }
3497if ${ac_cv_objext+:} false; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511rm -f conftest.o conftest.obj
3512if { { ac_try="$ac_compile"
3513case "(($ac_try" in
3514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515  *) ac_try_echo=$ac_try;;
3516esac
3517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518$as_echo "$ac_try_echo"; } >&5
3519  (eval "$ac_compile") 2>&5
3520  ac_status=$?
3521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522  test $ac_status = 0; }; then :
3523  for ac_file in conftest.o conftest.obj conftest.*; do
3524  test -f "$ac_file" || continue;
3525  case $ac_file in
3526    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3527    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3528       break;;
3529  esac
3530done
3531else
3532  $as_echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537as_fn_error $? "cannot compute suffix of object files: cannot compile
3538See \`config.log' for more details" "$LINENO" 5; }
3539fi
3540rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3543$as_echo "$ac_cv_objext" >&6; }
3544OBJEXT=$ac_cv_objext
3545ac_objext=$OBJEXT
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3547$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3548if ${ac_cv_c_compiler_gnu+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553
3554int
3555main ()
3556{
3557#ifndef __GNUC__
3558       choke me
3559#endif
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565if ac_fn_c_try_compile "$LINENO"; then :
3566  ac_compiler_gnu=yes
3567else
3568  ac_compiler_gnu=no
3569fi
3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572
3573fi
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3575$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3576if test $ac_compiler_gnu = yes; then
3577  GCC=yes
3578else
3579  GCC=
3580fi
3581ac_test_CFLAGS=${CFLAGS+set}
3582ac_save_CFLAGS=$CFLAGS
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3584$as_echo_n "checking whether $CC accepts -g... " >&6; }
3585if ${ac_cv_prog_cc_g+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  ac_save_c_werror_flag=$ac_c_werror_flag
3589   ac_c_werror_flag=yes
3590   ac_cv_prog_cc_g=no
3591   CFLAGS="-g"
3592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h.  */
3594
3595int
3596main ()
3597{
3598
3599  ;
3600  return 0;
3601}
3602_ACEOF
3603if ac_fn_c_try_compile "$LINENO"; then :
3604  ac_cv_prog_cc_g=yes
3605else
3606  CFLAGS=""
3607      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618if ac_fn_c_try_compile "$LINENO"; then :
3619
3620else
3621  ac_c_werror_flag=$ac_save_c_werror_flag
3622	 CFLAGS="-g"
3623	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625
3626int
3627main ()
3628{
3629
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634if ac_fn_c_try_compile "$LINENO"; then :
3635  ac_cv_prog_cc_g=yes
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638fi
3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640fi
3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642   ac_c_werror_flag=$ac_save_c_werror_flag
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3645$as_echo "$ac_cv_prog_cc_g" >&6; }
3646if test "$ac_test_CFLAGS" = set; then
3647  CFLAGS=$ac_save_CFLAGS
3648elif test $ac_cv_prog_cc_g = yes; then
3649  if test "$GCC" = yes; then
3650    CFLAGS="-g -O2"
3651  else
3652    CFLAGS="-g"
3653  fi
3654else
3655  if test "$GCC" = yes; then
3656    CFLAGS="-O2"
3657  else
3658    CFLAGS=
3659  fi
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3662$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3663if ${ac_cv_prog_cc_c89+:} false; then :
3664  $as_echo_n "(cached) " >&6
3665else
3666  ac_cv_prog_cc_c89=no
3667ac_save_CC=$CC
3668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h.  */
3670#include <stdarg.h>
3671#include <stdio.h>
3672struct stat;
3673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3674struct buf { int x; };
3675FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676static char *e (p, i)
3677     char **p;
3678     int i;
3679{
3680  return p[i];
3681}
3682static char *f (char * (*g) (char **, int), char **p, ...)
3683{
3684  char *s;
3685  va_list v;
3686  va_start (v,p);
3687  s = g (p, va_arg (v,int));
3688  va_end (v);
3689  return s;
3690}
3691
3692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3693   function prototypes and stuff, but not '\xHH' hex character constants.
3694   These don't provoke an error unfortunately, instead are silently treated
3695   as 'x'.  The following induces an error, until -std is added to get
3696   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3697   array size at least.  It's necessary to write '\x00'==0 to get something
3698   that's true only with -std.  */
3699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700
3701/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702   inside strings and character constants.  */
3703#define FOO(x) 'x'
3704int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705
3706int test (int i, double x);
3707struct s1 {int (*f) (int a);};
3708struct s2 {int (*f) (double a);};
3709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710int argc;
3711char **argv;
3712int
3713main ()
3714{
3715return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722do
3723  CC="$ac_save_CC $ac_arg"
3724  if ac_fn_c_try_compile "$LINENO"; then :
3725  ac_cv_prog_cc_c89=$ac_arg
3726fi
3727rm -f core conftest.err conftest.$ac_objext
3728  test "x$ac_cv_prog_cc_c89" != "xno" && break
3729done
3730rm -f conftest.$ac_ext
3731CC=$ac_save_CC
3732
3733fi
3734# AC_CACHE_VAL
3735case "x$ac_cv_prog_cc_c89" in
3736  x)
3737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3738$as_echo "none needed" >&6; } ;;
3739  xno)
3740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3741$as_echo "unsupported" >&6; } ;;
3742  *)
3743    CC="$CC $ac_cv_prog_cc_c89"
3744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3745$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3746esac
3747if test "x$ac_cv_prog_cc_c89" != xno; then :
3748
3749fi
3750
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757ac_ext=c
3758ac_cpp='$CPP $CPPFLAGS'
3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3763$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3764if ${am_cv_prog_cc_c_o+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769
3770int
3771main ()
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778  # Make sure it works both with $CC and with simple cc.
3779  # Following AC_PROG_CC_C_O, we do the test twice because some
3780  # compilers refuse to overwrite an existing .o file with -o,
3781  # though they will create one.
3782  am_cv_prog_cc_c_o=yes
3783  for am_i in 1 2; do
3784    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3785   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); } \
3789         && test -f conftest2.$ac_objext; then
3790      : OK
3791    else
3792      am_cv_prog_cc_c_o=no
3793      break
3794    fi
3795  done
3796  rm -f core conftest*
3797  unset am_i
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3800$as_echo "$am_cv_prog_cc_c_o" >&6; }
3801if test "$am_cv_prog_cc_c_o" != yes; then
3802   # Losing compiler, so override with the script.
3803   # FIXME: It is wrong to rewrite CC.
3804   # But if we don't then we get into trouble of one sort or another.
3805   # A longer-term fix would be to have automake use am__CC in this case,
3806   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3807   CC="$am_aux_dir/compile $CC"
3808fi
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815
3816
3817ac_ext=c
3818ac_cpp='$CPP $CPPFLAGS'
3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3823$as_echo_n "checking how to run the C preprocessor... " >&6; }
3824# On Suns, sometimes $CPP names a directory.
3825if test -n "$CPP" && test -d "$CPP"; then
3826  CPP=
3827fi
3828if test -z "$CPP"; then
3829  if ${ac_cv_prog_CPP+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832      # Double quotes because CPP needs to be expanded
3833    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3834    do
3835      ac_preproc_ok=false
3836for ac_c_preproc_warn_flag in '' yes
3837do
3838  # Use a header file that comes with gcc, so configuring glibc
3839  # with a fresh cross-compiler works.
3840  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841  # <limits.h> exists even on freestanding compilers.
3842  # On the NeXT, cc -E runs the code through the compiler's parser,
3843  # not just through cpp. "Syntax error" is here to catch this case.
3844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846#ifdef __STDC__
3847# include <limits.h>
3848#else
3849# include <assert.h>
3850#endif
3851		     Syntax error
3852_ACEOF
3853if ac_fn_c_try_cpp "$LINENO"; then :
3854
3855else
3856  # Broken: fails on valid input.
3857continue
3858fi
3859rm -f conftest.err conftest.i conftest.$ac_ext
3860
3861  # OK, works on sane cases.  Now check whether nonexistent headers
3862  # can be detected and how.
3863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#include <ac_nonexistent.h>
3866_ACEOF
3867if ac_fn_c_try_cpp "$LINENO"; then :
3868  # Broken: success on invalid input.
3869continue
3870else
3871  # Passes both tests.
3872ac_preproc_ok=:
3873break
3874fi
3875rm -f conftest.err conftest.i conftest.$ac_ext
3876
3877done
3878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3879rm -f conftest.i conftest.err conftest.$ac_ext
3880if $ac_preproc_ok; then :
3881  break
3882fi
3883
3884    done
3885    ac_cv_prog_CPP=$CPP
3886
3887fi
3888  CPP=$ac_cv_prog_CPP
3889else
3890  ac_cv_prog_CPP=$CPP
3891fi
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3893$as_echo "$CPP" >&6; }
3894ac_preproc_ok=false
3895for ac_c_preproc_warn_flag in '' yes
3896do
3897  # Use a header file that comes with gcc, so configuring glibc
3898  # with a fresh cross-compiler works.
3899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900  # <limits.h> exists even on freestanding compilers.
3901  # On the NeXT, cc -E runs the code through the compiler's parser,
3902  # not just through cpp. "Syntax error" is here to catch this case.
3903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905#ifdef __STDC__
3906# include <limits.h>
3907#else
3908# include <assert.h>
3909#endif
3910		     Syntax error
3911_ACEOF
3912if ac_fn_c_try_cpp "$LINENO"; then :
3913
3914else
3915  # Broken: fails on valid input.
3916continue
3917fi
3918rm -f conftest.err conftest.i conftest.$ac_ext
3919
3920  # OK, works on sane cases.  Now check whether nonexistent headers
3921  # can be detected and how.
3922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924#include <ac_nonexistent.h>
3925_ACEOF
3926if ac_fn_c_try_cpp "$LINENO"; then :
3927  # Broken: success on invalid input.
3928continue
3929else
3930  # Passes both tests.
3931ac_preproc_ok=:
3932break
3933fi
3934rm -f conftest.err conftest.i conftest.$ac_ext
3935
3936done
3937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938rm -f conftest.i conftest.err conftest.$ac_ext
3939if $ac_preproc_ok; then :
3940
3941else
3942  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3945See \`config.log' for more details" "$LINENO" 5; }
3946fi
3947
3948ac_ext=c
3949ac_cpp='$CPP $CPPFLAGS'
3950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953
3954
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3956$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3957if ${ac_cv_path_GREP+:} false; then :
3958  $as_echo_n "(cached) " >&6
3959else
3960  if test -z "$GREP"; then
3961  ac_path_GREP_found=false
3962  # Loop through the user's path and test for each of PROGNAME-LIST
3963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965do
3966  IFS=$as_save_IFS
3967  test -z "$as_dir" && as_dir=.
3968    for ac_prog in grep ggrep; do
3969    for ac_exec_ext in '' $ac_executable_extensions; do
3970      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3971      as_fn_executable_p "$ac_path_GREP" || continue
3972# Check for GNU ac_path_GREP and select it if it is found.
3973  # Check for GNU $ac_path_GREP
3974case `"$ac_path_GREP" --version 2>&1` in
3975*GNU*)
3976  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3977*)
3978  ac_count=0
3979  $as_echo_n 0123456789 >"conftest.in"
3980  while :
3981  do
3982    cat "conftest.in" "conftest.in" >"conftest.tmp"
3983    mv "conftest.tmp" "conftest.in"
3984    cp "conftest.in" "conftest.nl"
3985    $as_echo 'GREP' >> "conftest.nl"
3986    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988    as_fn_arith $ac_count + 1 && ac_count=$as_val
3989    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3990      # Best one so far, save it but keep looking for a better one
3991      ac_cv_path_GREP="$ac_path_GREP"
3992      ac_path_GREP_max=$ac_count
3993    fi
3994    # 10*(2^10) chars as input seems more than enough
3995    test $ac_count -gt 10 && break
3996  done
3997  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998esac
3999
4000      $ac_path_GREP_found && break 3
4001    done
4002  done
4003  done
4004IFS=$as_save_IFS
4005  if test -z "$ac_cv_path_GREP"; then
4006    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4007  fi
4008else
4009  ac_cv_path_GREP=$GREP
4010fi
4011
4012fi
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4014$as_echo "$ac_cv_path_GREP" >&6; }
4015 GREP="$ac_cv_path_GREP"
4016
4017
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4019$as_echo_n "checking for egrep... " >&6; }
4020if ${ac_cv_path_EGREP+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4024   then ac_cv_path_EGREP="$GREP -E"
4025   else
4026     if test -z "$EGREP"; then
4027  ac_path_EGREP_found=false
4028  # Loop through the user's path and test for each of PROGNAME-LIST
4029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4031do
4032  IFS=$as_save_IFS
4033  test -z "$as_dir" && as_dir=.
4034    for ac_prog in egrep; do
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4037      as_fn_executable_p "$ac_path_EGREP" || continue
4038# Check for GNU ac_path_EGREP and select it if it is found.
4039  # Check for GNU $ac_path_EGREP
4040case `"$ac_path_EGREP" --version 2>&1` in
4041*GNU*)
4042  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4043*)
4044  ac_count=0
4045  $as_echo_n 0123456789 >"conftest.in"
4046  while :
4047  do
4048    cat "conftest.in" "conftest.in" >"conftest.tmp"
4049    mv "conftest.tmp" "conftest.in"
4050    cp "conftest.in" "conftest.nl"
4051    $as_echo 'EGREP' >> "conftest.nl"
4052    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4053    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4054    as_fn_arith $ac_count + 1 && ac_count=$as_val
4055    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4056      # Best one so far, save it but keep looking for a better one
4057      ac_cv_path_EGREP="$ac_path_EGREP"
4058      ac_path_EGREP_max=$ac_count
4059    fi
4060    # 10*(2^10) chars as input seems more than enough
4061    test $ac_count -gt 10 && break
4062  done
4063  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064esac
4065
4066      $ac_path_EGREP_found && break 3
4067    done
4068  done
4069  done
4070IFS=$as_save_IFS
4071  if test -z "$ac_cv_path_EGREP"; then
4072    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4073  fi
4074else
4075  ac_cv_path_EGREP=$EGREP
4076fi
4077
4078   fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4081$as_echo "$ac_cv_path_EGREP" >&6; }
4082 EGREP="$ac_cv_path_EGREP"
4083
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4086$as_echo_n "checking for ANSI C header files... " >&6; }
4087if ${ac_cv_header_stdc+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h.  */
4092#include <stdlib.h>
4093#include <stdarg.h>
4094#include <string.h>
4095#include <float.h>
4096
4097int
4098main ()
4099{
4100
4101  ;
4102  return 0;
4103}
4104_ACEOF
4105if ac_fn_c_try_compile "$LINENO"; then :
4106  ac_cv_header_stdc=yes
4107else
4108  ac_cv_header_stdc=no
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111
4112if test $ac_cv_header_stdc = yes; then
4113  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116#include <string.h>
4117
4118_ACEOF
4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120  $EGREP "memchr" >/dev/null 2>&1; then :
4121
4122else
4123  ac_cv_header_stdc=no
4124fi
4125rm -f conftest*
4126
4127fi
4128
4129if test $ac_cv_header_stdc = yes; then
4130  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133#include <stdlib.h>
4134
4135_ACEOF
4136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137  $EGREP "free" >/dev/null 2>&1; then :
4138
4139else
4140  ac_cv_header_stdc=no
4141fi
4142rm -f conftest*
4143
4144fi
4145
4146if test $ac_cv_header_stdc = yes; then
4147  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148  if test "$cross_compiling" = yes; then :
4149  :
4150else
4151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h.  */
4153#include <ctype.h>
4154#include <stdlib.h>
4155#if ((' ' & 0x0FF) == 0x020)
4156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4158#else
4159# define ISLOWER(c) \
4160		   (('a' <= (c) && (c) <= 'i') \
4161		     || ('j' <= (c) && (c) <= 'r') \
4162		     || ('s' <= (c) && (c) <= 'z'))
4163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4164#endif
4165
4166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167int
4168main ()
4169{
4170  int i;
4171  for (i = 0; i < 256; i++)
4172    if (XOR (islower (i), ISLOWER (i))
4173	|| toupper (i) != TOUPPER (i))
4174      return 2;
4175  return 0;
4176}
4177_ACEOF
4178if ac_fn_c_try_run "$LINENO"; then :
4179
4180else
4181  ac_cv_header_stdc=no
4182fi
4183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4184  conftest.$ac_objext conftest.beam conftest.$ac_ext
4185fi
4186
4187fi
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4190$as_echo "$ac_cv_header_stdc" >&6; }
4191if test $ac_cv_header_stdc = yes; then
4192
4193$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4194
4195fi
4196
4197# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4199		  inttypes.h stdint.h unistd.h
4200do :
4201  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4202ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4203"
4204if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4205  cat >>confdefs.h <<_ACEOF
4206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207_ACEOF
4208
4209fi
4210
4211done
4212
4213
4214
4215  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4216if test "x$ac_cv_header_minix_config_h" = xyes; then :
4217  MINIX=yes
4218else
4219  MINIX=
4220fi
4221
4222
4223  if test "$MINIX" = yes; then
4224
4225$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4226
4227
4228$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4229
4230
4231$as_echo "#define _MINIX 1" >>confdefs.h
4232
4233  fi
4234
4235
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4237$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4238if ${ac_cv_safe_to_define___extensions__+:} false; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243
4244#         define __EXTENSIONS__ 1
4245          $ac_includes_default
4246int
4247main ()
4248{
4249
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254if ac_fn_c_try_compile "$LINENO"; then :
4255  ac_cv_safe_to_define___extensions__=yes
4256else
4257  ac_cv_safe_to_define___extensions__=no
4258fi
4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4262$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4263  test $ac_cv_safe_to_define___extensions__ = yes &&
4264    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4265
4266  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4267
4268  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4269
4270  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4271
4272  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4273
4274
4275am__api_version='1.15'
4276
4277# Find a good install program.  We prefer a C program (faster),
4278# so one script is as good as another.  But avoid the broken or
4279# incompatible versions:
4280# SysV /etc/install, /usr/sbin/install
4281# SunOS /usr/etc/install
4282# IRIX /sbin/install
4283# AIX /bin/install
4284# AmigaOS /C/install, which installs bootblocks on floppy discs
4285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4286# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4288# OS/2's system install, which has a completely different semantic
4289# ./install, which can be erroneously created by make from ./install.sh.
4290# Reject install programs that cannot install multiple files.
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4292$as_echo_n "checking for a BSD-compatible install... " >&6; }
4293if test -z "$INSTALL"; then
4294if ${ac_cv_path_install+:} false; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH
4299do
4300  IFS=$as_save_IFS
4301  test -z "$as_dir" && as_dir=.
4302    # Account for people who put trailing slashes in PATH elements.
4303case $as_dir/ in #((
4304  ./ | .// | /[cC]/* | \
4305  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4306  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4307  /usr/ucb/* ) ;;
4308  *)
4309    # OSF1 and SCO ODT 3.0 have their own names for install.
4310    # Don't use installbsd from OSF since it installs stuff as root
4311    # by default.
4312    for ac_prog in ginstall scoinst install; do
4313      for ac_exec_ext in '' $ac_executable_extensions; do
4314	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4315	  if test $ac_prog = install &&
4316	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317	    # AIX install.  It has an incompatible calling convention.
4318	    :
4319	  elif test $ac_prog = install &&
4320	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4321	    # program-specific install script used by HP pwplus--don't use.
4322	    :
4323	  else
4324	    rm -rf conftest.one conftest.two conftest.dir
4325	    echo one > conftest.one
4326	    echo two > conftest.two
4327	    mkdir conftest.dir
4328	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4329	      test -s conftest.one && test -s conftest.two &&
4330	      test -s conftest.dir/conftest.one &&
4331	      test -s conftest.dir/conftest.two
4332	    then
4333	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4334	      break 3
4335	    fi
4336	  fi
4337	fi
4338      done
4339    done
4340    ;;
4341esac
4342
4343  done
4344IFS=$as_save_IFS
4345
4346rm -rf conftest.one conftest.two conftest.dir
4347
4348fi
4349  if test "${ac_cv_path_install+set}" = set; then
4350    INSTALL=$ac_cv_path_install
4351  else
4352    # As a last resort, use the slow shell script.  Don't cache a
4353    # value for INSTALL within a source directory, because that will
4354    # break other packages using the cache if that directory is
4355    # removed, or if the value is a relative name.
4356    INSTALL=$ac_install_sh
4357  fi
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4360$as_echo "$INSTALL" >&6; }
4361
4362# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4363# It thinks the first close brace ends the variable substitution.
4364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4365
4366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4367
4368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4369
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4371$as_echo_n "checking whether build environment is sane... " >&6; }
4372# Reject unsafe characters in $srcdir or the absolute working directory
4373# name.  Accept space and tab only in the latter.
4374am_lf='
4375'
4376case `pwd` in
4377  *[\\\"\#\$\&\'\`$am_lf]*)
4378    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4379esac
4380case $srcdir in
4381  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4382    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4383esac
4384
4385# Do 'set' in a subshell so we don't clobber the current shell's
4386# arguments.  Must try -L first in case configure is actually a
4387# symlink; some systems play weird games with the mod time of symlinks
4388# (eg FreeBSD returns the mod time of the symlink's containing
4389# directory).
4390if (
4391   am_has_slept=no
4392   for am_try in 1 2; do
4393     echo "timestamp, slept: $am_has_slept" > conftest.file
4394     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4395     if test "$*" = "X"; then
4396	# -L didn't work.
4397	set X `ls -t "$srcdir/configure" conftest.file`
4398     fi
4399     if test "$*" != "X $srcdir/configure conftest.file" \
4400	&& test "$*" != "X conftest.file $srcdir/configure"; then
4401
4402	# If neither matched, then we have a broken ls.  This can happen
4403	# if, for instance, CONFIG_SHELL is bash and it inherits a
4404	# broken ls alias from the environment.  This has actually
4405	# happened.  Such a system could not be considered "sane".
4406	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4407  alias in your environment" "$LINENO" 5
4408     fi
4409     if test "$2" = conftest.file || test $am_try -eq 2; then
4410       break
4411     fi
4412     # Just in case.
4413     sleep 1
4414     am_has_slept=yes
4415   done
4416   test "$2" = conftest.file
4417   )
4418then
4419   # Ok.
4420   :
4421else
4422   as_fn_error $? "newly created file is older than distributed files!
4423Check your system clock" "$LINENO" 5
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426$as_echo "yes" >&6; }
4427# If we didn't sleep, we still need to ensure time stamps of config.status and
4428# generated files are strictly newer.
4429am_sleep_pid=
4430if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4431  ( sleep 1 ) &
4432  am_sleep_pid=$!
4433fi
4434
4435rm -f conftest.file
4436
4437test "$program_prefix" != NONE &&
4438  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4439# Use a double $ so make ignores it.
4440test "$program_suffix" != NONE &&
4441  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4442# Double any \ or $.
4443# By default was `s,x,x', remove it if useless.
4444ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4445program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4446
4447if test x"${MISSING+set}" != xset; then
4448  case $am_aux_dir in
4449  *\ * | *\	*)
4450    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4451  *)
4452    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4453  esac
4454fi
4455# Use eval to expand $SHELL
4456if eval "$MISSING --is-lightweight"; then
4457  am_missing_run="$MISSING "
4458else
4459  am_missing_run=
4460  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4461$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4462fi
4463
4464if test x"${install_sh+set}" != xset; then
4465  case $am_aux_dir in
4466  *\ * | *\	*)
4467    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4468  *)
4469    install_sh="\${SHELL} $am_aux_dir/install-sh"
4470  esac
4471fi
4472
4473# Installed binaries are usually stripped using 'strip' when the user
4474# run "make install-strip".  However 'strip' might not be the right
4475# tool to use in cross-compilation environments, therefore Automake
4476# will honor the 'STRIP' environment variable to overrule this program.
4477if test "$cross_compiling" != no; then
4478  if test -n "$ac_tool_prefix"; then
4479  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4480set dummy ${ac_tool_prefix}strip; ac_word=$2
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482$as_echo_n "checking for $ac_word... " >&6; }
4483if ${ac_cv_prog_STRIP+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  if test -n "$STRIP"; then
4487  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4488else
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492  IFS=$as_save_IFS
4493  test -z "$as_dir" && as_dir=.
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498    break 2
4499  fi
4500done
4501  done
4502IFS=$as_save_IFS
4503
4504fi
4505fi
4506STRIP=$ac_cv_prog_STRIP
4507if test -n "$STRIP"; then
4508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4509$as_echo "$STRIP" >&6; }
4510else
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512$as_echo "no" >&6; }
4513fi
4514
4515
4516fi
4517if test -z "$ac_cv_prog_STRIP"; then
4518  ac_ct_STRIP=$STRIP
4519  # Extract the first word of "strip", so it can be a program name with args.
4520set dummy strip; ac_word=$2
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522$as_echo_n "checking for $ac_word... " >&6; }
4523if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  if test -n "$ac_ct_STRIP"; then
4527  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534    for ac_exec_ext in '' $ac_executable_extensions; do
4535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536    ac_cv_prog_ac_ct_STRIP="strip"
4537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538    break 2
4539  fi
4540done
4541  done
4542IFS=$as_save_IFS
4543
4544fi
4545fi
4546ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4547if test -n "$ac_ct_STRIP"; then
4548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4549$as_echo "$ac_ct_STRIP" >&6; }
4550else
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552$as_echo "no" >&6; }
4553fi
4554
4555  if test "x$ac_ct_STRIP" = x; then
4556    STRIP=":"
4557  else
4558    case $cross_compiling:$ac_tool_warned in
4559yes:)
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4562ac_tool_warned=yes ;;
4563esac
4564    STRIP=$ac_ct_STRIP
4565  fi
4566else
4567  STRIP="$ac_cv_prog_STRIP"
4568fi
4569
4570fi
4571INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4574$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4575if test -z "$MKDIR_P"; then
4576  if ${ac_cv_path_mkdir+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584    for ac_prog in mkdir gmkdir; do
4585	 for ac_exec_ext in '' $ac_executable_extensions; do
4586	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4587	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4588	     'mkdir (GNU coreutils) '* | \
4589	     'mkdir (coreutils) '* | \
4590	     'mkdir (fileutils) '4.1*)
4591	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4592	       break 3;;
4593	   esac
4594	 done
4595       done
4596  done
4597IFS=$as_save_IFS
4598
4599fi
4600
4601  test -d ./--version && rmdir ./--version
4602  if test "${ac_cv_path_mkdir+set}" = set; then
4603    MKDIR_P="$ac_cv_path_mkdir -p"
4604  else
4605    # As a last resort, use the slow shell script.  Don't cache a
4606    # value for MKDIR_P within a source directory, because that will
4607    # break other packages using the cache if that directory is
4608    # removed, or if the value is a relative name.
4609    MKDIR_P="$ac_install_sh -d"
4610  fi
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4613$as_echo "$MKDIR_P" >&6; }
4614
4615for ac_prog in gawk mawk nawk awk
4616do
4617  # Extract the first word of "$ac_prog", so it can be a program name with args.
4618set dummy $ac_prog; ac_word=$2
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620$as_echo_n "checking for $ac_word... " >&6; }
4621if ${ac_cv_prog_AWK+:} false; then :
4622  $as_echo_n "(cached) " >&6
4623else
4624  if test -n "$AWK"; then
4625  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4626else
4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630  IFS=$as_save_IFS
4631  test -z "$as_dir" && as_dir=.
4632    for ac_exec_ext in '' $ac_executable_extensions; do
4633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634    ac_cv_prog_AWK="$ac_prog"
4635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636    break 2
4637  fi
4638done
4639  done
4640IFS=$as_save_IFS
4641
4642fi
4643fi
4644AWK=$ac_cv_prog_AWK
4645if test -n "$AWK"; then
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4647$as_echo "$AWK" >&6; }
4648else
4649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650$as_echo "no" >&6; }
4651fi
4652
4653
4654  test -n "$AWK" && break
4655done
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4658$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4659set x ${MAKE-make}
4660ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4661if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  cat >conftest.make <<\_ACEOF
4665SHELL = /bin/sh
4666all:
4667	@echo '@@@%%%=$(MAKE)=@@@%%%'
4668_ACEOF
4669# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4670case `${MAKE-make} -f conftest.make 2>/dev/null` in
4671  *@@@%%%=?*=@@@%%%*)
4672    eval ac_cv_prog_make_${ac_make}_set=yes;;
4673  *)
4674    eval ac_cv_prog_make_${ac_make}_set=no;;
4675esac
4676rm -f conftest.make
4677fi
4678if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4680$as_echo "yes" >&6; }
4681  SET_MAKE=
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685  SET_MAKE="MAKE=${MAKE-make}"
4686fi
4687
4688rm -rf .tst 2>/dev/null
4689mkdir .tst 2>/dev/null
4690if test -d .tst; then
4691  am__leading_dot=.
4692else
4693  am__leading_dot=_
4694fi
4695rmdir .tst 2>/dev/null
4696
4697DEPDIR="${am__leading_dot}deps"
4698
4699ac_config_commands="$ac_config_commands depfiles"
4700
4701
4702am_make=${MAKE-make}
4703cat > confinc << 'END'
4704am__doit:
4705	@echo this is the am__doit target
4706.PHONY: am__doit
4707END
4708# If we don't find an include directive, just comment out the code.
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4710$as_echo_n "checking for style of include used by $am_make... " >&6; }
4711am__include="#"
4712am__quote=
4713_am_result=none
4714# First try GNU make style include.
4715echo "include confinc" > confmf
4716# Ignore all kinds of additional output from 'make'.
4717case `$am_make -s -f confmf 2> /dev/null` in #(
4718*the\ am__doit\ target*)
4719  am__include=include
4720  am__quote=
4721  _am_result=GNU
4722  ;;
4723esac
4724# Now try BSD make style include.
4725if test "$am__include" = "#"; then
4726   echo '.include "confinc"' > confmf
4727   case `$am_make -s -f confmf 2> /dev/null` in #(
4728   *the\ am__doit\ target*)
4729     am__include=.include
4730     am__quote="\""
4731     _am_result=BSD
4732     ;;
4733   esac
4734fi
4735
4736
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4738$as_echo "$_am_result" >&6; }
4739rm -f confinc confmf
4740
4741# Check whether --enable-dependency-tracking was given.
4742if test "${enable_dependency_tracking+set}" = set; then :
4743  enableval=$enable_dependency_tracking;
4744fi
4745
4746if test "x$enable_dependency_tracking" != xno; then
4747  am_depcomp="$ac_aux_dir/depcomp"
4748  AMDEPBACKSLASH='\'
4749  am__nodep='_no'
4750fi
4751 if test "x$enable_dependency_tracking" != xno; then
4752  AMDEP_TRUE=
4753  AMDEP_FALSE='#'
4754else
4755  AMDEP_TRUE='#'
4756  AMDEP_FALSE=
4757fi
4758
4759
4760# Check whether --enable-silent-rules was given.
4761if test "${enable_silent_rules+set}" = set; then :
4762  enableval=$enable_silent_rules;
4763fi
4764
4765case $enable_silent_rules in # (((
4766  yes) AM_DEFAULT_VERBOSITY=0;;
4767   no) AM_DEFAULT_VERBOSITY=1;;
4768    *) AM_DEFAULT_VERBOSITY=1;;
4769esac
4770am_make=${MAKE-make}
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4772$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4773if ${am_cv_make_support_nested_variables+:} false; then :
4774  $as_echo_n "(cached) " >&6
4775else
4776  if $as_echo 'TRUE=$(BAR$(V))
4777BAR0=false
4778BAR1=true
4779V=1
4780am__doit:
4781	@$(TRUE)
4782.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4783  am_cv_make_support_nested_variables=yes
4784else
4785  am_cv_make_support_nested_variables=no
4786fi
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4789$as_echo "$am_cv_make_support_nested_variables" >&6; }
4790if test $am_cv_make_support_nested_variables = yes; then
4791    AM_V='$(V)'
4792  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4793else
4794  AM_V=$AM_DEFAULT_VERBOSITY
4795  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4796fi
4797AM_BACKSLASH='\'
4798
4799if test "`cd $srcdir && pwd`" != "`pwd`"; then
4800  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4801  # is not polluted with repeated "-I."
4802  am__isrc=' -I$(srcdir)'
4803  # test to see if srcdir already configured
4804  if test -f $srcdir/config.status; then
4805    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4806  fi
4807fi
4808
4809# test whether we have cygpath
4810if test -z "$CYGPATH_W"; then
4811  if (cygpath --version) >/dev/null 2>/dev/null; then
4812    CYGPATH_W='cygpath -w'
4813  else
4814    CYGPATH_W=echo
4815  fi
4816fi
4817
4818
4819# Define the identity of the package.
4820 PACKAGE='rrdtool'
4821 VERSION='1.7.2'
4822
4823
4824cat >>confdefs.h <<_ACEOF
4825#define PACKAGE "$PACKAGE"
4826_ACEOF
4827
4828
4829cat >>confdefs.h <<_ACEOF
4830#define VERSION "$VERSION"
4831_ACEOF
4832
4833# Some tools Automake needs.
4834
4835ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4836
4837
4838AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4839
4840
4841AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4842
4843
4844AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4845
4846
4847MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4848
4849# For better backward compatibility.  To be removed once Automake 1.9.x
4850# dies out for good.  For more background, see:
4851# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4852# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4853mkdir_p='$(MKDIR_P)'
4854
4855# We need awk for the "check" target (and possibly the TAP driver).  The
4856# system "awk" is bad on some platforms.
4857# Always define AMTAR for backward compatibility.  Yes, it's still used
4858# in the wild :-(  We should find a proper way to deprecate it ...
4859AMTAR='$${TAR-tar}'
4860
4861
4862# We'll loop over all known methods to create a tar archive until one works.
4863_am_tools='gnutar  pax cpio none'
4864
4865am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4866
4867
4868
4869
4870
4871depcc="$CC"   am_compiler_list=
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4874$as_echo_n "checking dependency style of $depcc... " >&6; }
4875if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4879  # We make a subdir and do the tests there.  Otherwise we can end up
4880  # making bogus files that we don't know about and never remove.  For
4881  # instance it was reported that on HP-UX the gcc test will end up
4882  # making a dummy file named 'D' -- because '-MD' means "put the output
4883  # in D".
4884  rm -rf conftest.dir
4885  mkdir conftest.dir
4886  # Copy depcomp to subdir because otherwise we won't find it if we're
4887  # using a relative directory.
4888  cp "$am_depcomp" conftest.dir
4889  cd conftest.dir
4890  # We will build objects and dependencies in a subdirectory because
4891  # it helps to detect inapplicable dependency modes.  For instance
4892  # both Tru64's cc and ICC support -MD to output dependencies as a
4893  # side effect of compilation, but ICC will put the dependencies in
4894  # the current directory while Tru64 will put them in the object
4895  # directory.
4896  mkdir sub
4897
4898  am_cv_CC_dependencies_compiler_type=none
4899  if test "$am_compiler_list" = ""; then
4900     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4901  fi
4902  am__universal=false
4903  case " $depcc " in #(
4904     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4905     esac
4906
4907  for depmode in $am_compiler_list; do
4908    # Setup a source with many dependencies, because some compilers
4909    # like to wrap large dependency lists on column 80 (with \), and
4910    # we should not choose a depcomp mode which is confused by this.
4911    #
4912    # We need to recreate these files for each test, as the compiler may
4913    # overwrite some of them when testing with obscure command lines.
4914    # This happens at least with the AIX C compiler.
4915    : > sub/conftest.c
4916    for i in 1 2 3 4 5 6; do
4917      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4918      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4919      # Solaris 10 /bin/sh.
4920      echo '/* dummy */' > sub/conftst$i.h
4921    done
4922    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4923
4924    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4925    # mode.  It turns out that the SunPro C++ compiler does not properly
4926    # handle '-M -o', and we need to detect this.  Also, some Intel
4927    # versions had trouble with output in subdirs.
4928    am__obj=sub/conftest.${OBJEXT-o}
4929    am__minus_obj="-o $am__obj"
4930    case $depmode in
4931    gcc)
4932      # This depmode causes a compiler race in universal mode.
4933      test "$am__universal" = false || continue
4934      ;;
4935    nosideeffect)
4936      # After this tag, mechanisms are not by side-effect, so they'll
4937      # only be used when explicitly requested.
4938      if test "x$enable_dependency_tracking" = xyes; then
4939	continue
4940      else
4941	break
4942      fi
4943      ;;
4944    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4945      # This compiler won't grok '-c -o', but also, the minuso test has
4946      # not run yet.  These depmodes are late enough in the game, and
4947      # so weak that their functioning should not be impacted.
4948      am__obj=conftest.${OBJEXT-o}
4949      am__minus_obj=
4950      ;;
4951    none) break ;;
4952    esac
4953    if depmode=$depmode \
4954       source=sub/conftest.c object=$am__obj \
4955       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4956       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4957         >/dev/null 2>conftest.err &&
4958       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4959       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4960       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4961       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4962      # icc doesn't choke on unknown options, it will just issue warnings
4963      # or remarks (even with -Werror).  So we grep stderr for any message
4964      # that says an option was ignored or not supported.
4965      # When given -MP, icc 7.0 and 7.1 complain thusly:
4966      #   icc: Command line warning: ignoring option '-M'; no argument required
4967      # The diagnosis changed in icc 8.0:
4968      #   icc: Command line remark: option '-MP' not supported
4969      if (grep 'ignoring option' conftest.err ||
4970          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4971        am_cv_CC_dependencies_compiler_type=$depmode
4972        break
4973      fi
4974    fi
4975  done
4976
4977  cd ..
4978  rm -rf conftest.dir
4979else
4980  am_cv_CC_dependencies_compiler_type=none
4981fi
4982
4983fi
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4985$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4986CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4987
4988 if
4989  test "x$enable_dependency_tracking" != xno \
4990  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4991  am__fastdepCC_TRUE=
4992  am__fastdepCC_FALSE='#'
4993else
4994  am__fastdepCC_TRUE='#'
4995  am__fastdepCC_FALSE=
4996fi
4997
4998
4999
5000# POSIX will say in a future version that running "rm -f" with no argument
5001# is OK; and we want to be able to make that assumption in our Makefile
5002# recipes.  So use an aggressive probe to check that the usage we want is
5003# actually supported "in the wild" to an acceptable degree.
5004# See automake bug#10828.
5005# To make any issue more visible, cause the running configure to be aborted
5006# by default if the 'rm' program in use doesn't match our expectations; the
5007# user can still override this though.
5008if rm -f && rm -fr && rm -rf; then : OK; else
5009  cat >&2 <<'END'
5010Oops!
5011
5012Your 'rm' program seems unable to run without file operands specified
5013on the command line, even when the '-f' option is present.  This is contrary
5014to the behaviour of most rm programs out there, and not conforming with
5015the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5016
5017Please tell bug-automake@gnu.org about your system, including the value
5018of your $PATH and any error possibly output before this message.  This
5019can help us improve future automake versions.
5020
5021END
5022  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5023    echo 'Configuration will proceed anyway, since you have set the' >&2
5024    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5025    echo >&2
5026  else
5027    cat >&2 <<'END'
5028Aborting the configuration process, to ensure you take notice of the issue.
5029
5030You can download and install GNU coreutils to get an 'rm' implementation
5031that behaves properly: <http://www.gnu.org/software/coreutils/>.
5032
5033If you want to complete the configuration process using your problematic
5034'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5035to "yes", and re-run configure.
5036
5037END
5038    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5039  fi
5040fi
5041
5042
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5044$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5045    # Check whether --enable-maintainer-mode was given.
5046if test "${enable_maintainer_mode+set}" = set; then :
5047  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5048else
5049  USE_MAINTAINER_MODE=no
5050fi
5051
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5053$as_echo "$USE_MAINTAINER_MODE" >&6; }
5054   if test $USE_MAINTAINER_MODE = yes; then
5055  MAINTAINER_MODE_TRUE=
5056  MAINTAINER_MODE_FALSE='#'
5057else
5058  MAINTAINER_MODE_TRUE='#'
5059  MAINTAINER_MODE_FALSE=
5060fi
5061
5062  MAINT=$MAINTAINER_MODE_TRUE
5063
5064
5065# Enable silent build rules by default, requires at least
5066# Automake-1.11. Disable by either passing --disable-silent-rules to
5067# configure or passing V=1 to make
5068# Check whether --enable-silent-rules was given.
5069if test "${enable_silent_rules+set}" = set; then :
5070  enableval=$enable_silent_rules;
5071fi
5072
5073case $enable_silent_rules in # (((
5074  yes) AM_DEFAULT_VERBOSITY=0;;
5075   no) AM_DEFAULT_VERBOSITY=1;;
5076    *) AM_DEFAULT_VERBOSITY=0;;
5077esac
5078am_make=${MAKE-make}
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5080$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5081if ${am_cv_make_support_nested_variables+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  if $as_echo 'TRUE=$(BAR$(V))
5085BAR0=false
5086BAR1=true
5087V=1
5088am__doit:
5089	@$(TRUE)
5090.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5091  am_cv_make_support_nested_variables=yes
5092else
5093  am_cv_make_support_nested_variables=no
5094fi
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5097$as_echo "$am_cv_make_support_nested_variables" >&6; }
5098if test $am_cv_make_support_nested_variables = yes; then
5099    AM_V='$(V)'
5100  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5101else
5102  AM_V=$AM_DEFAULT_VERBOSITY
5103  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5104fi
5105AM_BACKSLASH='\'
5106
5107ac_config_headers="$ac_config_headers src/rrd_config.h"
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126cat >>confdefs.h <<_ACEOF
5127#define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
5128_ACEOF
5129
5130
5131# Check whether --enable-docs was given.
5132if test "${enable_docs+set}" = set; then :
5133  enableval=$enable_docs;
5134else
5135  enable_docs=yes
5136fi
5137
5138
5139# Check whether --enable-examples was given.
5140if test "${enable_examples+set}" = set; then :
5141  enableval=$enable_examples;
5142else
5143  enable_examples=yes
5144fi
5145
5146
5147# Check whether --enable-rrdcached was given.
5148if test "${enable_rrdcached+set}" = set; then :
5149  enableval=$enable_rrdcached;
5150else
5151  enable_rrdcached=yes
5152fi
5153
5154
5155# Check whether --enable-rrdcgi was given.
5156if test "${enable_rrdcgi+set}" = set; then :
5157  enableval=$enable_rrdcgi;
5158else
5159  enable_rrdcgi=yes
5160fi
5161
5162
5163# Check whether --enable-rrd_graph was given.
5164if test "${enable_rrd_graph+set}" = set; then :
5165  enableval=$enable_rrd_graph; enable_rrdcgi=$enableval
5166else
5167  enable_rrd_graph=yes
5168fi
5169
5170
5171# Check whether --enable-rrd_restore was given.
5172if test "${enable_rrd_restore+set}" = set; then :
5173  enableval=$enable_rrd_restore;
5174else
5175  enable_rrd_restore=yes
5176fi
5177
5178
5179 if test $enable_docs != no; then
5180  BUILD_DOCS_TRUE=
5181  BUILD_DOCS_FALSE='#'
5182else
5183  BUILD_DOCS_TRUE='#'
5184  BUILD_DOCS_FALSE=
5185fi
5186
5187 if test $enable_examples != no; then
5188  BUILD_EXAMPLES_TRUE=
5189  BUILD_EXAMPLES_FALSE='#'
5190else
5191  BUILD_EXAMPLES_TRUE='#'
5192  BUILD_EXAMPLES_FALSE=
5193fi
5194
5195 if test $enable_rrdcgi != no; then
5196  BUILD_RRDCGI_TRUE=
5197  BUILD_RRDCGI_FALSE='#'
5198else
5199  BUILD_RRDCGI_TRUE='#'
5200  BUILD_RRDCGI_FALSE=
5201fi
5202
5203 if test $enable_rrdcached != no; then
5204  BUILD_RRDCACHED_TRUE=
5205  BUILD_RRDCACHED_FALSE='#'
5206else
5207  BUILD_RRDCACHED_TRUE='#'
5208  BUILD_RRDCACHED_FALSE=
5209fi
5210
5211
5212
5213if test $enable_rrd_graph != no; then
5214
5215$as_echo "#define HAVE_RRD_GRAPH /**/" >>confdefs.h
5216
5217fi
5218
5219if test $enable_rrd_restore != no; then
5220
5221$as_echo "#define HAVE_RRD_RESTORE /**/" >>confdefs.h
5222
5223fi
5224
5225
5226# Check whether --with-rrd-default-font was given.
5227if test "${with_rrd_default_font+set}" = set; then :
5228  withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
5229else
5230
5231  if test -d ${WINDIR:-nodir}/cour.ttf ; then
5232	RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
5233  else
5234	RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
5235  fi
5236
5237fi
5238
5239
5240# Check whether --enable-mmap was given.
5241if test "${enable_mmap+set}" = set; then :
5242  enableval=$enable_mmap;
5243else
5244  enable_mmap=yes
5245fi
5246
5247
5248# Check whether --enable-pthread was given.
5249if test "${enable_pthread+set}" = set; then :
5250  enableval=$enable_pthread;
5251else
5252  enable_pthread=yes
5253fi
5254
5255
5256# Check whether --enable-flock was given.
5257if test "${enable_flock+set}" = set; then :
5258  enableval=$enable_flock;
5259else
5260  enable_flock=yes
5261fi
5262
5263if test x$enable_flock != xyes; then
5264
5265$as_echo "#define DISABLE_FLOCK /**/" >>confdefs.h
5266
5267fi
5268
5269# Check whether --enable-static-programs was given.
5270if test "${enable_static_programs+set}" = set; then :
5271  enableval=$enable_static_programs; case "${enableval}" in
5272       yes) staticprogs=yes ;;
5273       no)  staticprogs=no ;;
5274       *) as_fn_error $? "bad value ${enableval} for --enable-static-programs" "$LINENO" 5 ;;
5275     esac
5276else
5277  staticprogs=no
5278fi
5279
5280 if test "x$staticprogs" = "xyes"; then
5281  STATIC_PROGRAMS_TRUE=
5282  STATIC_PROGRAMS_FALSE='#'
5283else
5284  STATIC_PROGRAMS_TRUE='#'
5285  STATIC_PROGRAMS_FALSE=
5286fi
5287
5288
5289
5290
5291case $TERM in
5292       #   for the most important terminal types we directly know the sequences
5293       xterm|xterm*|vt220|vt220*)
5294               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
5295               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
5296       ;;
5297       vt100|vt100*|cygwin)
5298               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
5299               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
5300       ;;
5301       *)
5302               T_MD=''
5303               T_ME=''
5304       ;;
5305esac
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5307$as_echo "" >&6; }
5308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
5309$as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
5310
5311
5312
5313ac_ext=c
5314ac_cpp='$CPP $CPPFLAGS'
5315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5319$as_echo_n "checking how to run the C preprocessor... " >&6; }
5320# On Suns, sometimes $CPP names a directory.
5321if test -n "$CPP" && test -d "$CPP"; then
5322  CPP=
5323fi
5324if test -z "$CPP"; then
5325  if ${ac_cv_prog_CPP+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328      # Double quotes because CPP needs to be expanded
5329    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5330    do
5331      ac_preproc_ok=false
5332for ac_c_preproc_warn_flag in '' yes
5333do
5334  # Use a header file that comes with gcc, so configuring glibc
5335  # with a fresh cross-compiler works.
5336  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5337  # <limits.h> exists even on freestanding compilers.
5338  # On the NeXT, cc -E runs the code through the compiler's parser,
5339  # not just through cpp. "Syntax error" is here to catch this case.
5340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h.  */
5342#ifdef __STDC__
5343# include <limits.h>
5344#else
5345# include <assert.h>
5346#endif
5347		     Syntax error
5348_ACEOF
5349if ac_fn_c_try_cpp "$LINENO"; then :
5350
5351else
5352  # Broken: fails on valid input.
5353continue
5354fi
5355rm -f conftest.err conftest.i conftest.$ac_ext
5356
5357  # OK, works on sane cases.  Now check whether nonexistent headers
5358  # can be detected and how.
5359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h.  */
5361#include <ac_nonexistent.h>
5362_ACEOF
5363if ac_fn_c_try_cpp "$LINENO"; then :
5364  # Broken: success on invalid input.
5365continue
5366else
5367  # Passes both tests.
5368ac_preproc_ok=:
5369break
5370fi
5371rm -f conftest.err conftest.i conftest.$ac_ext
5372
5373done
5374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375rm -f conftest.i conftest.err conftest.$ac_ext
5376if $ac_preproc_ok; then :
5377  break
5378fi
5379
5380    done
5381    ac_cv_prog_CPP=$CPP
5382
5383fi
5384  CPP=$ac_cv_prog_CPP
5385else
5386  ac_cv_prog_CPP=$CPP
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5389$as_echo "$CPP" >&6; }
5390ac_preproc_ok=false
5391for ac_c_preproc_warn_flag in '' yes
5392do
5393  # Use a header file that comes with gcc, so configuring glibc
5394  # with a fresh cross-compiler works.
5395  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396  # <limits.h> exists even on freestanding compilers.
5397  # On the NeXT, cc -E runs the code through the compiler's parser,
5398  # not just through cpp. "Syntax error" is here to catch this case.
5399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401#ifdef __STDC__
5402# include <limits.h>
5403#else
5404# include <assert.h>
5405#endif
5406		     Syntax error
5407_ACEOF
5408if ac_fn_c_try_cpp "$LINENO"; then :
5409
5410else
5411  # Broken: fails on valid input.
5412continue
5413fi
5414rm -f conftest.err conftest.i conftest.$ac_ext
5415
5416  # OK, works on sane cases.  Now check whether nonexistent headers
5417  # can be detected and how.
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420#include <ac_nonexistent.h>
5421_ACEOF
5422if ac_fn_c_try_cpp "$LINENO"; then :
5423  # Broken: success on invalid input.
5424continue
5425else
5426  # Passes both tests.
5427ac_preproc_ok=:
5428break
5429fi
5430rm -f conftest.err conftest.i conftest.$ac_ext
5431
5432done
5433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5434rm -f conftest.i conftest.err conftest.$ac_ext
5435if $ac_preproc_ok; then :
5436
5437else
5438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5441See \`config.log' for more details" "$LINENO" 5; }
5442fi
5443
5444ac_ext=c
5445ac_cpp='$CPP $CPPFLAGS'
5446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449
5450ac_ext=c
5451ac_cpp='$CPP $CPPFLAGS'
5452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455if test -n "$ac_tool_prefix"; then
5456  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}gcc; ac_word=$2
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if ${ac_cv_prog_CC+:} false; then :
5461  $as_echo_n "(cached) " >&6
5462else
5463  if test -n "$CC"; then
5464  ac_cv_prog_CC="$CC" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469  IFS=$as_save_IFS
5470  test -z "$as_dir" && as_dir=.
5471    for ac_exec_ext in '' $ac_executable_extensions; do
5472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475    break 2
5476  fi
5477done
5478  done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483CC=$ac_cv_prog_CC
5484if test -n "$CC"; then
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5486$as_echo "$CC" >&6; }
5487else
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492
5493fi
5494if test -z "$ac_cv_prog_CC"; then
5495  ac_ct_CC=$CC
5496  # Extract the first word of "gcc", so it can be a program name with args.
5497set dummy gcc; ac_word=$2
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if ${ac_cv_prog_ac_ct_CC+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  if test -n "$ac_ct_CC"; then
5504  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  test -z "$as_dir" && as_dir=.
5511    for ac_exec_ext in '' $ac_executable_extensions; do
5512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513    ac_cv_prog_ac_ct_CC="gcc"
5514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515    break 2
5516  fi
5517done
5518  done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_CC=$ac_cv_prog_ac_ct_CC
5524if test -n "$ac_ct_CC"; then
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5526$as_echo "$ac_ct_CC" >&6; }
5527else
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532  if test "x$ac_ct_CC" = x; then
5533    CC=""
5534  else
5535    case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541    CC=$ac_ct_CC
5542  fi
5543else
5544  CC="$ac_cv_prog_CC"
5545fi
5546
5547if test -z "$CC"; then
5548          if test -n "$ac_tool_prefix"; then
5549    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5550set dummy ${ac_tool_prefix}cc; ac_word=$2
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552$as_echo_n "checking for $ac_word... " >&6; }
5553if ${ac_cv_prog_CC+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  if test -n "$CC"; then
5557  ac_cv_prog_CC="$CC" # Let the user override the test.
5558else
5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562  IFS=$as_save_IFS
5563  test -z "$as_dir" && as_dir=.
5564    for ac_exec_ext in '' $ac_executable_extensions; do
5565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566    ac_cv_prog_CC="${ac_tool_prefix}cc"
5567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568    break 2
5569  fi
5570done
5571  done
5572IFS=$as_save_IFS
5573
5574fi
5575fi
5576CC=$ac_cv_prog_CC
5577if test -n "$CC"; then
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5579$as_echo "$CC" >&6; }
5580else
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
5585
5586  fi
5587fi
5588if test -z "$CC"; then
5589  # Extract the first word of "cc", so it can be a program name with args.
5590set dummy cc; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if ${ac_cv_prog_CC+:} false; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  if test -n "$CC"; then
5597  ac_cv_prog_CC="$CC" # Let the user override the test.
5598else
5599  ac_prog_rejected=no
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603  IFS=$as_save_IFS
5604  test -z "$as_dir" && as_dir=.
5605    for ac_exec_ext in '' $ac_executable_extensions; do
5606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5608       ac_prog_rejected=yes
5609       continue
5610     fi
5611    ac_cv_prog_CC="cc"
5612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613    break 2
5614  fi
5615done
5616  done
5617IFS=$as_save_IFS
5618
5619if test $ac_prog_rejected = yes; then
5620  # We found a bogon in the path, so make sure we never use it.
5621  set dummy $ac_cv_prog_CC
5622  shift
5623  if test $# != 0; then
5624    # We chose a different compiler from the bogus one.
5625    # However, it has the same basename, so the bogon will be chosen
5626    # first if we set CC to just the basename; use the full file name.
5627    shift
5628    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5629  fi
5630fi
5631fi
5632fi
5633CC=$ac_cv_prog_CC
5634if test -n "$CC"; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5636$as_echo "$CC" >&6; }
5637else
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642
5643fi
5644if test -z "$CC"; then
5645  if test -n "$ac_tool_prefix"; then
5646  for ac_prog in cl.exe
5647  do
5648    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651$as_echo_n "checking for $ac_word... " >&6; }
5652if ${ac_cv_prog_CC+:} false; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  if test -n "$CC"; then
5656  ac_cv_prog_CC="$CC" # Let the user override the test.
5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661  IFS=$as_save_IFS
5662  test -z "$as_dir" && as_dir=.
5663    for ac_exec_ext in '' $ac_executable_extensions; do
5664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667    break 2
5668  fi
5669done
5670  done
5671IFS=$as_save_IFS
5672
5673fi
5674fi
5675CC=$ac_cv_prog_CC
5676if test -n "$CC"; then
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5678$as_echo "$CC" >&6; }
5679else
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683
5684
5685    test -n "$CC" && break
5686  done
5687fi
5688if test -z "$CC"; then
5689  ac_ct_CC=$CC
5690  for ac_prog in cl.exe
5691do
5692  # Extract the first word of "$ac_prog", so it can be a program name with args.
5693set dummy $ac_prog; ac_word=$2
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695$as_echo_n "checking for $ac_word... " >&6; }
5696if ${ac_cv_prog_ac_ct_CC+:} false; then :
5697  $as_echo_n "(cached) " >&6
5698else
5699  if test -n "$ac_ct_CC"; then
5700  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705  IFS=$as_save_IFS
5706  test -z "$as_dir" && as_dir=.
5707    for ac_exec_ext in '' $ac_executable_extensions; do
5708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709    ac_cv_prog_ac_ct_CC="$ac_prog"
5710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711    break 2
5712  fi
5713done
5714  done
5715IFS=$as_save_IFS
5716
5717fi
5718fi
5719ac_ct_CC=$ac_cv_prog_ac_ct_CC
5720if test -n "$ac_ct_CC"; then
5721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5722$as_echo "$ac_ct_CC" >&6; }
5723else
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726fi
5727
5728
5729  test -n "$ac_ct_CC" && break
5730done
5731
5732  if test "x$ac_ct_CC" = x; then
5733    CC=""
5734  else
5735    case $cross_compiling:$ac_tool_warned in
5736yes:)
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5739ac_tool_warned=yes ;;
5740esac
5741    CC=$ac_ct_CC
5742  fi
5743fi
5744
5745fi
5746
5747
5748test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5750as_fn_error $? "no acceptable C compiler found in \$PATH
5751See \`config.log' for more details" "$LINENO" 5; }
5752
5753# Provide some information about the compiler.
5754$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5755set X $ac_compile
5756ac_compiler=$2
5757for ac_option in --version -v -V -qversion; do
5758  { { ac_try="$ac_compiler $ac_option >&5"
5759case "(($ac_try" in
5760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761  *) ac_try_echo=$ac_try;;
5762esac
5763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5764$as_echo "$ac_try_echo"; } >&5
5765  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5766  ac_status=$?
5767  if test -s conftest.err; then
5768    sed '10a\
5769... rest of stderr output deleted ...
5770         10q' conftest.err >conftest.er1
5771    cat conftest.er1 >&5
5772  fi
5773  rm -f conftest.er1 conftest.err
5774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775  test $ac_status = 0; }
5776done
5777
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5779$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5780if ${ac_cv_c_compiler_gnu+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784/* end confdefs.h.  */
5785
5786int
5787main ()
5788{
5789#ifndef __GNUC__
5790       choke me
5791#endif
5792
5793  ;
5794  return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798  ac_compiler_gnu=yes
5799else
5800  ac_compiler_gnu=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803ac_cv_c_compiler_gnu=$ac_compiler_gnu
5804
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5807$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5808if test $ac_compiler_gnu = yes; then
5809  GCC=yes
5810else
5811  GCC=
5812fi
5813ac_test_CFLAGS=${CFLAGS+set}
5814ac_save_CFLAGS=$CFLAGS
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5816$as_echo_n "checking whether $CC accepts -g... " >&6; }
5817if ${ac_cv_prog_cc_g+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  ac_save_c_werror_flag=$ac_c_werror_flag
5821   ac_c_werror_flag=yes
5822   ac_cv_prog_cc_g=no
5823   CFLAGS="-g"
5824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826
5827int
5828main ()
5829{
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836  ac_cv_prog_cc_g=yes
5837else
5838  CFLAGS=""
5839      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851
5852else
5853  ac_c_werror_flag=$ac_save_c_werror_flag
5854	 CFLAGS="-g"
5855	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856/* end confdefs.h.  */
5857
5858int
5859main ()
5860{
5861
5862  ;
5863  return 0;
5864}
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"; then :
5867  ac_cv_prog_cc_g=yes
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874   ac_c_werror_flag=$ac_save_c_werror_flag
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5877$as_echo "$ac_cv_prog_cc_g" >&6; }
5878if test "$ac_test_CFLAGS" = set; then
5879  CFLAGS=$ac_save_CFLAGS
5880elif test $ac_cv_prog_cc_g = yes; then
5881  if test "$GCC" = yes; then
5882    CFLAGS="-g -O2"
5883  else
5884    CFLAGS="-g"
5885  fi
5886else
5887  if test "$GCC" = yes; then
5888    CFLAGS="-O2"
5889  else
5890    CFLAGS=
5891  fi
5892fi
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5894$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5895if ${ac_cv_prog_cc_c89+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  ac_cv_prog_cc_c89=no
5899ac_save_CC=$CC
5900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902#include <stdarg.h>
5903#include <stdio.h>
5904struct stat;
5905/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5906struct buf { int x; };
5907FILE * (*rcsopen) (struct buf *, struct stat *, int);
5908static char *e (p, i)
5909     char **p;
5910     int i;
5911{
5912  return p[i];
5913}
5914static char *f (char * (*g) (char **, int), char **p, ...)
5915{
5916  char *s;
5917  va_list v;
5918  va_start (v,p);
5919  s = g (p, va_arg (v,int));
5920  va_end (v);
5921  return s;
5922}
5923
5924/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5925   function prototypes and stuff, but not '\xHH' hex character constants.
5926   These don't provoke an error unfortunately, instead are silently treated
5927   as 'x'.  The following induces an error, until -std is added to get
5928   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5929   array size at least.  It's necessary to write '\x00'==0 to get something
5930   that's true only with -std.  */
5931int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5932
5933/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5934   inside strings and character constants.  */
5935#define FOO(x) 'x'
5936int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5937
5938int test (int i, double x);
5939struct s1 {int (*f) (int a);};
5940struct s2 {int (*f) (double a);};
5941int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5942int argc;
5943char **argv;
5944int
5945main ()
5946{
5947return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5953	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5954do
5955  CC="$ac_save_CC $ac_arg"
5956  if ac_fn_c_try_compile "$LINENO"; then :
5957  ac_cv_prog_cc_c89=$ac_arg
5958fi
5959rm -f core conftest.err conftest.$ac_objext
5960  test "x$ac_cv_prog_cc_c89" != "xno" && break
5961done
5962rm -f conftest.$ac_ext
5963CC=$ac_save_CC
5964
5965fi
5966# AC_CACHE_VAL
5967case "x$ac_cv_prog_cc_c89" in
5968  x)
5969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5970$as_echo "none needed" >&6; } ;;
5971  xno)
5972    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5973$as_echo "unsupported" >&6; } ;;
5974  *)
5975    CC="$CC $ac_cv_prog_cc_c89"
5976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5977$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5978esac
5979if test "x$ac_cv_prog_cc_c89" != xno; then :
5980
5981fi
5982
5983ac_ext=c
5984ac_cpp='$CPP $CPPFLAGS'
5985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988
5989ac_ext=c
5990ac_cpp='$CPP $CPPFLAGS'
5991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5995$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5996if ${am_cv_prog_cc_c_o+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000/* end confdefs.h.  */
6001
6002int
6003main ()
6004{
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010  # Make sure it works both with $CC and with simple cc.
6011  # Following AC_PROG_CC_C_O, we do the test twice because some
6012  # compilers refuse to overwrite an existing .o file with -o,
6013  # though they will create one.
6014  am_cv_prog_cc_c_o=yes
6015  for am_i in 1 2; do
6016    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6017   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } \
6021         && test -f conftest2.$ac_objext; then
6022      : OK
6023    else
6024      am_cv_prog_cc_c_o=no
6025      break
6026    fi
6027  done
6028  rm -f core conftest*
6029  unset am_i
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6032$as_echo "$am_cv_prog_cc_c_o" >&6; }
6033if test "$am_cv_prog_cc_c_o" != yes; then
6034   # Losing compiler, so override with the script.
6035   # FIXME: It is wrong to rewrite CC.
6036   # But if we don't then we get into trouble of one sort or another.
6037   # A longer-term fix would be to have automake use am__CC in this case,
6038   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6039   CC="$am_aux_dir/compile $CC"
6040fi
6041ac_ext=c
6042ac_cpp='$CPP $CPPFLAGS'
6043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046
6047
6048
6049case `pwd` in
6050  *\ * | *\	*)
6051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6052$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6053esac
6054
6055
6056
6057macro_version='2.4.6'
6058macro_revision='2.4.6'
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072ltmain=$ac_aux_dir/ltmain.sh
6073
6074# Backslashify metacharacters that are still active within
6075# double-quoted strings.
6076sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6077
6078# Same as above, but do not quote variable references.
6079double_quote_subst='s/\(["`\\]\)/\\\1/g'
6080
6081# Sed substitution to delay expansion of an escaped shell variable in a
6082# double_quote_subst'ed string.
6083delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6084
6085# Sed substitution to delay expansion of an escaped single quote.
6086delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6087
6088# Sed substitution to avoid accidental globbing in evaled expressions
6089no_glob_subst='s/\*/\\\*/g'
6090
6091ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6092ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6093ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6094
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6096$as_echo_n "checking how to print strings... " >&6; }
6097# Test print first, because it will be a builtin if present.
6098if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6099   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6100  ECHO='print -r --'
6101elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6102  ECHO='printf %s\n'
6103else
6104  # Use this function as a fallback that always works.
6105  func_fallback_echo ()
6106  {
6107    eval 'cat <<_LTECHO_EOF
6108$1
6109_LTECHO_EOF'
6110  }
6111  ECHO='func_fallback_echo'
6112fi
6113
6114# func_echo_all arg...
6115# Invoke $ECHO with all args, space-separated.
6116func_echo_all ()
6117{
6118    $ECHO ""
6119}
6120
6121case $ECHO in
6122  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6123$as_echo "printf" >&6; } ;;
6124  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6125$as_echo "print -r" >&6; } ;;
6126  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6127$as_echo "cat" >&6; } ;;
6128esac
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6144$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6145if ${ac_cv_path_SED+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6149     for ac_i in 1 2 3 4 5 6 7; do
6150       ac_script="$ac_script$as_nl$ac_script"
6151     done
6152     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6153     { ac_script=; unset ac_script;}
6154     if test -z "$SED"; then
6155  ac_path_SED_found=false
6156  # Loop through the user's path and test for each of PROGNAME-LIST
6157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160  IFS=$as_save_IFS
6161  test -z "$as_dir" && as_dir=.
6162    for ac_prog in sed gsed; do
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6165      as_fn_executable_p "$ac_path_SED" || continue
6166# Check for GNU ac_path_SED and select it if it is found.
6167  # Check for GNU $ac_path_SED
6168case `"$ac_path_SED" --version 2>&1` in
6169*GNU*)
6170  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6171*)
6172  ac_count=0
6173  $as_echo_n 0123456789 >"conftest.in"
6174  while :
6175  do
6176    cat "conftest.in" "conftest.in" >"conftest.tmp"
6177    mv "conftest.tmp" "conftest.in"
6178    cp "conftest.in" "conftest.nl"
6179    $as_echo '' >> "conftest.nl"
6180    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6181    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6182    as_fn_arith $ac_count + 1 && ac_count=$as_val
6183    if test $ac_count -gt ${ac_path_SED_max-0}; then
6184      # Best one so far, save it but keep looking for a better one
6185      ac_cv_path_SED="$ac_path_SED"
6186      ac_path_SED_max=$ac_count
6187    fi
6188    # 10*(2^10) chars as input seems more than enough
6189    test $ac_count -gt 10 && break
6190  done
6191  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6192esac
6193
6194      $ac_path_SED_found && break 3
6195    done
6196  done
6197  done
6198IFS=$as_save_IFS
6199  if test -z "$ac_cv_path_SED"; then
6200    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6201  fi
6202else
6203  ac_cv_path_SED=$SED
6204fi
6205
6206fi
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6208$as_echo "$ac_cv_path_SED" >&6; }
6209 SED="$ac_cv_path_SED"
6210  rm -f conftest.sed
6211
6212test -z "$SED" && SED=sed
6213Xsed="$SED -e 1s/^X//"
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6226$as_echo_n "checking for fgrep... " >&6; }
6227if ${ac_cv_path_FGREP+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6231   then ac_cv_path_FGREP="$GREP -F"
6232   else
6233     if test -z "$FGREP"; then
6234  ac_path_FGREP_found=false
6235  # Loop through the user's path and test for each of PROGNAME-LIST
6236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241    for ac_prog in fgrep; do
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6244      as_fn_executable_p "$ac_path_FGREP" || continue
6245# Check for GNU ac_path_FGREP and select it if it is found.
6246  # Check for GNU $ac_path_FGREP
6247case `"$ac_path_FGREP" --version 2>&1` in
6248*GNU*)
6249  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6250*)
6251  ac_count=0
6252  $as_echo_n 0123456789 >"conftest.in"
6253  while :
6254  do
6255    cat "conftest.in" "conftest.in" >"conftest.tmp"
6256    mv "conftest.tmp" "conftest.in"
6257    cp "conftest.in" "conftest.nl"
6258    $as_echo 'FGREP' >> "conftest.nl"
6259    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6260    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6261    as_fn_arith $ac_count + 1 && ac_count=$as_val
6262    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6263      # Best one so far, save it but keep looking for a better one
6264      ac_cv_path_FGREP="$ac_path_FGREP"
6265      ac_path_FGREP_max=$ac_count
6266    fi
6267    # 10*(2^10) chars as input seems more than enough
6268    test $ac_count -gt 10 && break
6269  done
6270  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6271esac
6272
6273      $ac_path_FGREP_found && break 3
6274    done
6275  done
6276  done
6277IFS=$as_save_IFS
6278  if test -z "$ac_cv_path_FGREP"; then
6279    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6280  fi
6281else
6282  ac_cv_path_FGREP=$FGREP
6283fi
6284
6285   fi
6286fi
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6288$as_echo "$ac_cv_path_FGREP" >&6; }
6289 FGREP="$ac_cv_path_FGREP"
6290
6291
6292test -z "$GREP" && GREP=grep
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312# Check whether --with-gnu-ld was given.
6313if test "${with_gnu_ld+set}" = set; then :
6314  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6315else
6316  with_gnu_ld=no
6317fi
6318
6319ac_prog=ld
6320if test yes = "$GCC"; then
6321  # Check if gcc -print-prog-name=ld gives a path.
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6323$as_echo_n "checking for ld used by $CC... " >&6; }
6324  case $host in
6325  *-*-mingw*)
6326    # gcc leaves a trailing carriage return, which upsets mingw
6327    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6328  *)
6329    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6330  esac
6331  case $ac_prog in
6332    # Accept absolute paths.
6333    [\\/]* | ?:[\\/]*)
6334      re_direlt='/[^/][^/]*/\.\./'
6335      # Canonicalize the pathname of ld
6336      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6337      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6338	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6339      done
6340      test -z "$LD" && LD=$ac_prog
6341      ;;
6342  "")
6343    # If it fails, then pretend we aren't using GCC.
6344    ac_prog=ld
6345    ;;
6346  *)
6347    # If it is relative, then search for the first ld in PATH.
6348    with_gnu_ld=unknown
6349    ;;
6350  esac
6351elif test yes = "$with_gnu_ld"; then
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6353$as_echo_n "checking for GNU ld... " >&6; }
6354else
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6356$as_echo_n "checking for non-GNU ld... " >&6; }
6357fi
6358if ${lt_cv_path_LD+:} false; then :
6359  $as_echo_n "(cached) " >&6
6360else
6361  if test -z "$LD"; then
6362  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6363  for ac_dir in $PATH; do
6364    IFS=$lt_save_ifs
6365    test -z "$ac_dir" && ac_dir=.
6366    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6367      lt_cv_path_LD=$ac_dir/$ac_prog
6368      # Check to see if the program is GNU ld.  I'd rather use --version,
6369      # but apparently some variants of GNU ld only accept -v.
6370      # Break only if it was the GNU/non-GNU ld that we prefer.
6371      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6372      *GNU* | *'with BFD'*)
6373	test no != "$with_gnu_ld" && break
6374	;;
6375      *)
6376	test yes != "$with_gnu_ld" && break
6377	;;
6378      esac
6379    fi
6380  done
6381  IFS=$lt_save_ifs
6382else
6383  lt_cv_path_LD=$LD # Let the user override the test with a path.
6384fi
6385fi
6386
6387LD=$lt_cv_path_LD
6388if test -n "$LD"; then
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6390$as_echo "$LD" >&6; }
6391else
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6397$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6398if ${lt_cv_prog_gnu_ld+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6402case `$LD -v 2>&1 </dev/null` in
6403*GNU* | *'with BFD'*)
6404  lt_cv_prog_gnu_ld=yes
6405  ;;
6406*)
6407  lt_cv_prog_gnu_ld=no
6408  ;;
6409esac
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6412$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6413with_gnu_ld=$lt_cv_prog_gnu_ld
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6424$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6425if ${lt_cv_path_NM+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$NM"; then
6429  # Let the user override the test.
6430  lt_cv_path_NM=$NM
6431else
6432  lt_nm_to_check=${ac_tool_prefix}nm
6433  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6434    lt_nm_to_check="$lt_nm_to_check nm"
6435  fi
6436  for lt_tmp_nm in $lt_nm_to_check; do
6437    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6438    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6439      IFS=$lt_save_ifs
6440      test -z "$ac_dir" && ac_dir=.
6441      tmp_nm=$ac_dir/$lt_tmp_nm
6442      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6443	# Check to see if the nm accepts a BSD-compat flag.
6444	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6445	#   nm: unknown option "B" ignored
6446	# Tru64's nm complains that /dev/null is an invalid object file
6447	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6448	case $build_os in
6449	mingw*) lt_bad_file=conftest.nm/nofile ;;
6450	*) lt_bad_file=/dev/null ;;
6451	esac
6452	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6453	*$lt_bad_file* | *'Invalid file or object type'*)
6454	  lt_cv_path_NM="$tmp_nm -B"
6455	  break 2
6456	  ;;
6457	*)
6458	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6459	  */dev/null*)
6460	    lt_cv_path_NM="$tmp_nm -p"
6461	    break 2
6462	    ;;
6463	  *)
6464	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6465	    continue # so that we can try to find one that supports BSD flags
6466	    ;;
6467	  esac
6468	  ;;
6469	esac
6470      fi
6471    done
6472    IFS=$lt_save_ifs
6473  done
6474  : ${lt_cv_path_NM=no}
6475fi
6476fi
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6478$as_echo "$lt_cv_path_NM" >&6; }
6479if test no != "$lt_cv_path_NM"; then
6480  NM=$lt_cv_path_NM
6481else
6482  # Didn't find any BSD compatible name lister, look for dumpbin.
6483  if test -n "$DUMPBIN"; then :
6484    # Let the user override the test.
6485  else
6486    if test -n "$ac_tool_prefix"; then
6487  for ac_prog in dumpbin "link -dump"
6488  do
6489    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if ${ac_cv_prog_DUMPBIN+:} false; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  if test -n "$DUMPBIN"; then
6497  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502  IFS=$as_save_IFS
6503  test -z "$as_dir" && as_dir=.
6504    for ac_exec_ext in '' $ac_executable_extensions; do
6505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508    break 2
6509  fi
6510done
6511  done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516DUMPBIN=$ac_cv_prog_DUMPBIN
6517if test -n "$DUMPBIN"; then
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6519$as_echo "$DUMPBIN" >&6; }
6520else
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525
6526    test -n "$DUMPBIN" && break
6527  done
6528fi
6529if test -z "$DUMPBIN"; then
6530  ac_ct_DUMPBIN=$DUMPBIN
6531  for ac_prog in dumpbin "link -dump"
6532do
6533  # Extract the first word of "$ac_prog", so it can be a program name with args.
6534set dummy $ac_prog; ac_word=$2
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540  if test -n "$ac_ct_DUMPBIN"; then
6541  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  test -z "$as_dir" && as_dir=.
6548    for ac_exec_ext in '' $ac_executable_extensions; do
6549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552    break 2
6553  fi
6554done
6555  done
6556IFS=$as_save_IFS
6557
6558fi
6559fi
6560ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6561if test -n "$ac_ct_DUMPBIN"; then
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6563$as_echo "$ac_ct_DUMPBIN" >&6; }
6564else
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
6567fi
6568
6569
6570  test -n "$ac_ct_DUMPBIN" && break
6571done
6572
6573  if test "x$ac_ct_DUMPBIN" = x; then
6574    DUMPBIN=":"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    DUMPBIN=$ac_ct_DUMPBIN
6583  fi
6584fi
6585
6586    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6587    *COFF*)
6588      DUMPBIN="$DUMPBIN -symbols -headers"
6589      ;;
6590    *)
6591      DUMPBIN=:
6592      ;;
6593    esac
6594  fi
6595
6596  if test : != "$DUMPBIN"; then
6597    NM=$DUMPBIN
6598  fi
6599fi
6600test -z "$NM" && NM=nm
6601
6602
6603
6604
6605
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6608$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6609if ${lt_cv_nm_interface+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  lt_cv_nm_interface="BSD nm"
6613  echo "int some_variable = 0;" > conftest.$ac_ext
6614  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6615  (eval "$ac_compile" 2>conftest.err)
6616  cat conftest.err >&5
6617  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6618  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6619  cat conftest.err >&5
6620  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6621  cat conftest.out >&5
6622  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6623    lt_cv_nm_interface="MS dumpbin"
6624  fi
6625  rm -f conftest*
6626fi
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6628$as_echo "$lt_cv_nm_interface" >&6; }
6629
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6631$as_echo_n "checking whether ln -s works... " >&6; }
6632LN_S=$as_ln_s
6633if test "$LN_S" = "ln -s"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635$as_echo "yes" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6638$as_echo "no, using $LN_S" >&6; }
6639fi
6640
6641# find the maximum length of command line arguments
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6643$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6644if ${lt_cv_sys_max_cmd_len+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647    i=0
6648  teststring=ABCD
6649
6650  case $build_os in
6651  msdosdjgpp*)
6652    # On DJGPP, this test can blow up pretty badly due to problems in libc
6653    # (any single argument exceeding 2000 bytes causes a buffer overrun
6654    # during glob expansion).  Even if it were fixed, the result of this
6655    # check would be larger than it should be.
6656    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6657    ;;
6658
6659  gnu*)
6660    # Under GNU Hurd, this test is not required because there is
6661    # no limit to the length of command line arguments.
6662    # Libtool will interpret -1 as no limit whatsoever
6663    lt_cv_sys_max_cmd_len=-1;
6664    ;;
6665
6666  cygwin* | mingw* | cegcc*)
6667    # On Win9x/ME, this test blows up -- it succeeds, but takes
6668    # about 5 minutes as the teststring grows exponentially.
6669    # Worse, since 9x/ME are not pre-emptively multitasking,
6670    # you end up with a "frozen" computer, even though with patience
6671    # the test eventually succeeds (with a max line length of 256k).
6672    # Instead, let's just punt: use the minimum linelength reported by
6673    # all of the supported platforms: 8192 (on NT/2K/XP).
6674    lt_cv_sys_max_cmd_len=8192;
6675    ;;
6676
6677  mint*)
6678    # On MiNT this can take a long time and run out of memory.
6679    lt_cv_sys_max_cmd_len=8192;
6680    ;;
6681
6682  amigaos*)
6683    # On AmigaOS with pdksh, this test takes hours, literally.
6684    # So we just punt and use a minimum line length of 8192.
6685    lt_cv_sys_max_cmd_len=8192;
6686    ;;
6687
6688  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6689    # This has been around since 386BSD, at least.  Likely further.
6690    if test -x /sbin/sysctl; then
6691      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6692    elif test -x /usr/sbin/sysctl; then
6693      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6694    else
6695      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6696    fi
6697    # And add a safety zone
6698    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6699    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6700    ;;
6701
6702  interix*)
6703    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6704    lt_cv_sys_max_cmd_len=196608
6705    ;;
6706
6707  os2*)
6708    # The test takes a long time on OS/2.
6709    lt_cv_sys_max_cmd_len=8192
6710    ;;
6711
6712  osf*)
6713    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6714    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6715    # nice to cause kernel panics so lets avoid the loop below.
6716    # First set a reasonable default.
6717    lt_cv_sys_max_cmd_len=16384
6718    #
6719    if test -x /sbin/sysconfig; then
6720      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6721        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6722      esac
6723    fi
6724    ;;
6725  sco3.2v5*)
6726    lt_cv_sys_max_cmd_len=102400
6727    ;;
6728  sysv5* | sco5v6* | sysv4.2uw2*)
6729    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6730    if test -n "$kargmax"; then
6731      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6732    else
6733      lt_cv_sys_max_cmd_len=32768
6734    fi
6735    ;;
6736  *)
6737    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6738    if test -n "$lt_cv_sys_max_cmd_len" && \
6739       test undefined != "$lt_cv_sys_max_cmd_len"; then
6740      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6741      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6742    else
6743      # Make teststring a little bigger before we do anything with it.
6744      # a 1K string should be a reasonable start.
6745      for i in 1 2 3 4 5 6 7 8; do
6746        teststring=$teststring$teststring
6747      done
6748      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6749      # If test is not a shell built-in, we'll probably end up computing a
6750      # maximum length that is only half of the actual maximum length, but
6751      # we can't tell.
6752      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6753	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6754	      test 17 != "$i" # 1/2 MB should be enough
6755      do
6756        i=`expr $i + 1`
6757        teststring=$teststring$teststring
6758      done
6759      # Only check the string length outside the loop.
6760      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6761      teststring=
6762      # Add a significant safety factor because C++ compilers can tack on
6763      # massive amounts of additional arguments before passing them to the
6764      # linker.  It appears as though 1/2 is a usable value.
6765      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6766    fi
6767    ;;
6768  esac
6769
6770fi
6771
6772if test -n "$lt_cv_sys_max_cmd_len"; then
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6774$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6775else
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6777$as_echo "none" >&6; }
6778fi
6779max_cmd_len=$lt_cv_sys_max_cmd_len
6780
6781
6782
6783
6784
6785
6786: ${CP="cp -f"}
6787: ${MV="mv -f"}
6788: ${RM="rm -f"}
6789
6790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6791  lt_unset=unset
6792else
6793  lt_unset=false
6794fi
6795
6796
6797
6798
6799
6800# test EBCDIC or ASCII
6801case `echo X|tr X '\101'` in
6802 A) # ASCII based system
6803    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6804  lt_SP2NL='tr \040 \012'
6805  lt_NL2SP='tr \015\012 \040\040'
6806  ;;
6807 *) # EBCDIC based system
6808  lt_SP2NL='tr \100 \n'
6809  lt_NL2SP='tr \r\n \100\100'
6810  ;;
6811esac
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6822$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6823if ${lt_cv_to_host_file_cmd+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  case $host in
6827  *-*-mingw* )
6828    case $build in
6829      *-*-mingw* ) # actually msys
6830        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6831        ;;
6832      *-*-cygwin* )
6833        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6834        ;;
6835      * ) # otherwise, assume *nix
6836        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6837        ;;
6838    esac
6839    ;;
6840  *-*-cygwin* )
6841    case $build in
6842      *-*-mingw* ) # actually msys
6843        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6844        ;;
6845      *-*-cygwin* )
6846        lt_cv_to_host_file_cmd=func_convert_file_noop
6847        ;;
6848      * ) # otherwise, assume *nix
6849        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6850        ;;
6851    esac
6852    ;;
6853  * ) # unhandled hosts (and "normal" native builds)
6854    lt_cv_to_host_file_cmd=func_convert_file_noop
6855    ;;
6856esac
6857
6858fi
6859
6860to_host_file_cmd=$lt_cv_to_host_file_cmd
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6862$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6863
6864
6865
6866
6867
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6869$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6870if ${lt_cv_to_tool_file_cmd+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  #assume ordinary cross tools, or native build.
6874lt_cv_to_tool_file_cmd=func_convert_file_noop
6875case $host in
6876  *-*-mingw* )
6877    case $build in
6878      *-*-mingw* ) # actually msys
6879        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6880        ;;
6881    esac
6882    ;;
6883esac
6884
6885fi
6886
6887to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6889$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6890
6891
6892
6893
6894
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6896$as_echo_n "checking for $LD option to reload object files... " >&6; }
6897if ${lt_cv_ld_reload_flag+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  lt_cv_ld_reload_flag='-r'
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6903$as_echo "$lt_cv_ld_reload_flag" >&6; }
6904reload_flag=$lt_cv_ld_reload_flag
6905case $reload_flag in
6906"" | " "*) ;;
6907*) reload_flag=" $reload_flag" ;;
6908esac
6909reload_cmds='$LD$reload_flag -o $output$reload_objs'
6910case $host_os in
6911  cygwin* | mingw* | pw32* | cegcc*)
6912    if test yes != "$GCC"; then
6913      reload_cmds=false
6914    fi
6915    ;;
6916  darwin*)
6917    if test yes = "$GCC"; then
6918      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6919    else
6920      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6921    fi
6922    ;;
6923esac
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933if test -n "$ac_tool_prefix"; then
6934  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6935set dummy ${ac_tool_prefix}objdump; ac_word=$2
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if ${ac_cv_prog_OBJDUMP+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  if test -n "$OBJDUMP"; then
6942  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949    for ac_exec_ext in '' $ac_executable_extensions; do
6950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956  done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961OBJDUMP=$ac_cv_prog_OBJDUMP
6962if test -n "$OBJDUMP"; then
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6964$as_echo "$OBJDUMP" >&6; }
6965else
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970
6971fi
6972if test -z "$ac_cv_prog_OBJDUMP"; then
6973  ac_ct_OBJDUMP=$OBJDUMP
6974  # Extract the first word of "objdump", so it can be a program name with args.
6975set dummy objdump; ac_word=$2
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$ac_ct_OBJDUMP"; then
6982  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989    for ac_exec_ext in '' $ac_executable_extensions; do
6990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996  done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7002if test -n "$ac_ct_OBJDUMP"; then
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7004$as_echo "$ac_ct_OBJDUMP" >&6; }
7005else
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010  if test "x$ac_ct_OBJDUMP" = x; then
7011    OBJDUMP="false"
7012  else
7013    case $cross_compiling:$ac_tool_warned in
7014yes:)
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017ac_tool_warned=yes ;;
7018esac
7019    OBJDUMP=$ac_ct_OBJDUMP
7020  fi
7021else
7022  OBJDUMP="$ac_cv_prog_OBJDUMP"
7023fi
7024
7025test -z "$OBJDUMP" && OBJDUMP=objdump
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7036$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7037if ${lt_cv_deplibs_check_method+:} false; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  lt_cv_file_magic_cmd='$MAGIC_CMD'
7041lt_cv_file_magic_test_file=
7042lt_cv_deplibs_check_method='unknown'
7043# Need to set the preceding variable on all platforms that support
7044# interlibrary dependencies.
7045# 'none' -- dependencies not supported.
7046# 'unknown' -- same as none, but documents that we really don't know.
7047# 'pass_all' -- all dependencies passed with no checks.
7048# 'test_compile' -- check by making test program.
7049# 'file_magic [[regex]]' -- check by looking for files in library path
7050# that responds to the $file_magic_cmd with a given extended regex.
7051# If you have 'file' or equivalent on your system and you're not sure
7052# whether 'pass_all' will *always* work, you probably want this one.
7053
7054case $host_os in
7055aix[4-9]*)
7056  lt_cv_deplibs_check_method=pass_all
7057  ;;
7058
7059beos*)
7060  lt_cv_deplibs_check_method=pass_all
7061  ;;
7062
7063bsdi[45]*)
7064  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7065  lt_cv_file_magic_cmd='/usr/bin/file -L'
7066  lt_cv_file_magic_test_file=/shlib/libc.so
7067  ;;
7068
7069cygwin*)
7070  # func_win32_libid is a shell function defined in ltmain.sh
7071  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7072  lt_cv_file_magic_cmd='func_win32_libid'
7073  ;;
7074
7075mingw* | pw32*)
7076  # Base MSYS/MinGW do not provide the 'file' command needed by
7077  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7078  # unless we find 'file', for example because we are cross-compiling.
7079  if ( file / ) >/dev/null 2>&1; then
7080    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7081    lt_cv_file_magic_cmd='func_win32_libid'
7082  else
7083    # Keep this pattern in sync with the one in func_win32_libid.
7084    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7085    lt_cv_file_magic_cmd='$OBJDUMP -f'
7086  fi
7087  ;;
7088
7089cegcc*)
7090  # use the weaker test based on 'objdump'. See mingw*.
7091  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7092  lt_cv_file_magic_cmd='$OBJDUMP -f'
7093  ;;
7094
7095darwin* | rhapsody*)
7096  lt_cv_deplibs_check_method=pass_all
7097  ;;
7098
7099freebsd* | dragonfly*)
7100  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7101    case $host_cpu in
7102    i*86 )
7103      # Not sure whether the presence of OpenBSD here was a mistake.
7104      # Let's accept both of them until this is cleared up.
7105      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7106      lt_cv_file_magic_cmd=/usr/bin/file
7107      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7108      ;;
7109    esac
7110  else
7111    lt_cv_deplibs_check_method=pass_all
7112  fi
7113  ;;
7114
7115haiku*)
7116  lt_cv_deplibs_check_method=pass_all
7117  ;;
7118
7119hpux10.20* | hpux11*)
7120  lt_cv_file_magic_cmd=/usr/bin/file
7121  case $host_cpu in
7122  ia64*)
7123    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7124    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7125    ;;
7126  hppa*64*)
7127    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]'
7128    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7129    ;;
7130  *)
7131    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7132    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7133    ;;
7134  esac
7135  ;;
7136
7137interix[3-9]*)
7138  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7139  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7140  ;;
7141
7142irix5* | irix6* | nonstopux*)
7143  case $LD in
7144  *-32|*"-32 ") libmagic=32-bit;;
7145  *-n32|*"-n32 ") libmagic=N32;;
7146  *-64|*"-64 ") libmagic=64-bit;;
7147  *) libmagic=never-match;;
7148  esac
7149  lt_cv_deplibs_check_method=pass_all
7150  ;;
7151
7152# This must be glibc/ELF.
7153linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7154  lt_cv_deplibs_check_method=pass_all
7155  ;;
7156
7157netbsd* | netbsdelf*-gnu)
7158  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7159    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7160  else
7161    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7162  fi
7163  ;;
7164
7165newos6*)
7166  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7167  lt_cv_file_magic_cmd=/usr/bin/file
7168  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7169  ;;
7170
7171*nto* | *qnx*)
7172  lt_cv_deplibs_check_method=pass_all
7173  ;;
7174
7175openbsd* | bitrig*)
7176  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7177    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7178  else
7179    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7180  fi
7181  ;;
7182
7183osf3* | osf4* | osf5*)
7184  lt_cv_deplibs_check_method=pass_all
7185  ;;
7186
7187rdos*)
7188  lt_cv_deplibs_check_method=pass_all
7189  ;;
7190
7191solaris*)
7192  lt_cv_deplibs_check_method=pass_all
7193  ;;
7194
7195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7196  lt_cv_deplibs_check_method=pass_all
7197  ;;
7198
7199sysv4 | sysv4.3*)
7200  case $host_vendor in
7201  motorola)
7202    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]'
7203    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7204    ;;
7205  ncr)
7206    lt_cv_deplibs_check_method=pass_all
7207    ;;
7208  sequent)
7209    lt_cv_file_magic_cmd='/bin/file'
7210    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7211    ;;
7212  sni)
7213    lt_cv_file_magic_cmd='/bin/file'
7214    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7215    lt_cv_file_magic_test_file=/lib/libc.so
7216    ;;
7217  siemens)
7218    lt_cv_deplibs_check_method=pass_all
7219    ;;
7220  pc)
7221    lt_cv_deplibs_check_method=pass_all
7222    ;;
7223  esac
7224  ;;
7225
7226tpf*)
7227  lt_cv_deplibs_check_method=pass_all
7228  ;;
7229os2*)
7230  lt_cv_deplibs_check_method=pass_all
7231  ;;
7232esac
7233
7234fi
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7236$as_echo "$lt_cv_deplibs_check_method" >&6; }
7237
7238file_magic_glob=
7239want_nocaseglob=no
7240if test "$build" = "$host"; then
7241  case $host_os in
7242  mingw* | pw32*)
7243    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7244      want_nocaseglob=yes
7245    else
7246      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7247    fi
7248    ;;
7249  esac
7250fi
7251
7252file_magic_cmd=$lt_cv_file_magic_cmd
7253deplibs_check_method=$lt_cv_deplibs_check_method
7254test -z "$deplibs_check_method" && deplibs_check_method=unknown
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_DLLTOOL+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$DLLTOOL"; then
7286  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293    for ac_exec_ext in '' $ac_executable_extensions; do
7294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300  done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305DLLTOOL=$ac_cv_prog_DLLTOOL
7306if test -n "$DLLTOOL"; then
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7308$as_echo "$DLLTOOL" >&6; }
7309else
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_DLLTOOL"; then
7317  ac_ct_DLLTOOL=$DLLTOOL
7318  # Extract the first word of "dlltool", so it can be a program name with args.
7319set dummy dlltool; ac_word=$2
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  if test -n "$ac_ct_DLLTOOL"; then
7326  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333    for ac_exec_ext in '' $ac_executable_extensions; do
7334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340  done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7346if test -n "$ac_ct_DLLTOOL"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7348$as_echo "$ac_ct_DLLTOOL" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_DLLTOOL" = x; then
7355    DLLTOOL="false"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363    DLLTOOL=$ac_ct_DLLTOOL
7364  fi
7365else
7366  DLLTOOL="$ac_cv_prog_DLLTOOL"
7367fi
7368
7369test -z "$DLLTOOL" && DLLTOOL=dlltool
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7381$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7382if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  lt_cv_sharedlib_from_linklib_cmd='unknown'
7386
7387case $host_os in
7388cygwin* | mingw* | pw32* | cegcc*)
7389  # two different shell functions defined in ltmain.sh;
7390  # decide which one to use based on capabilities of $DLLTOOL
7391  case `$DLLTOOL --help 2>&1` in
7392  *--identify-strict*)
7393    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7394    ;;
7395  *)
7396    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7397    ;;
7398  esac
7399  ;;
7400*)
7401  # fallback: assume linklib IS sharedlib
7402  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7403  ;;
7404esac
7405
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7408$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7409sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7410test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7411
7412
7413
7414
7415
7416
7417
7418if test -n "$ac_tool_prefix"; then
7419  for ac_prog in ar
7420  do
7421    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424$as_echo_n "checking for $ac_word... " >&6; }
7425if ${ac_cv_prog_AR+:} false; then :
7426  $as_echo_n "(cached) " >&6
7427else
7428  if test -n "$AR"; then
7429  ac_cv_prog_AR="$AR" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434  IFS=$as_save_IFS
7435  test -z "$as_dir" && as_dir=.
7436    for ac_exec_ext in '' $ac_executable_extensions; do
7437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440    break 2
7441  fi
7442done
7443  done
7444IFS=$as_save_IFS
7445
7446fi
7447fi
7448AR=$ac_cv_prog_AR
7449if test -n "$AR"; then
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7451$as_echo "$AR" >&6; }
7452else
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454$as_echo "no" >&6; }
7455fi
7456
7457
7458    test -n "$AR" && break
7459  done
7460fi
7461if test -z "$AR"; then
7462  ac_ct_AR=$AR
7463  for ac_prog in ar
7464do
7465  # Extract the first word of "$ac_prog", so it can be a program name with args.
7466set dummy $ac_prog; ac_word=$2
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
7469if ${ac_cv_prog_ac_ct_AR+:} false; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  if test -n "$ac_ct_AR"; then
7473  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478  IFS=$as_save_IFS
7479  test -z "$as_dir" && as_dir=.
7480    for ac_exec_ext in '' $ac_executable_extensions; do
7481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482    ac_cv_prog_ac_ct_AR="$ac_prog"
7483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484    break 2
7485  fi
7486done
7487  done
7488IFS=$as_save_IFS
7489
7490fi
7491fi
7492ac_ct_AR=$ac_cv_prog_ac_ct_AR
7493if test -n "$ac_ct_AR"; then
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7495$as_echo "$ac_ct_AR" >&6; }
7496else
7497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
7499fi
7500
7501
7502  test -n "$ac_ct_AR" && break
7503done
7504
7505  if test "x$ac_ct_AR" = x; then
7506    AR="false"
7507  else
7508    case $cross_compiling:$ac_tool_warned in
7509yes:)
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512ac_tool_warned=yes ;;
7513esac
7514    AR=$ac_ct_AR
7515  fi
7516fi
7517
7518: ${AR=ar}
7519: ${AR_FLAGS=cru}
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7532$as_echo_n "checking for archiver @FILE support... " >&6; }
7533if ${lt_cv_ar_at_file+:} false; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536  lt_cv_ar_at_file=no
7537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539
7540int
7541main ()
7542{
7543
7544  ;
7545  return 0;
7546}
7547_ACEOF
7548if ac_fn_c_try_compile "$LINENO"; then :
7549  echo conftest.$ac_objext > conftest.lst
7550      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7551      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7552  (eval $lt_ar_try) 2>&5
7553  ac_status=$?
7554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555  test $ac_status = 0; }
7556      if test 0 -eq "$ac_status"; then
7557	# Ensure the archiver fails upon bogus file names.
7558	rm -f conftest.$ac_objext libconftest.a
7559	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7560  (eval $lt_ar_try) 2>&5
7561  ac_status=$?
7562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563  test $ac_status = 0; }
7564	if test 0 -ne "$ac_status"; then
7565          lt_cv_ar_at_file=@
7566        fi
7567      fi
7568      rm -f conftest.* libconftest.a
7569
7570fi
7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572
7573fi
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7575$as_echo "$lt_cv_ar_at_file" >&6; }
7576
7577if test no = "$lt_cv_ar_at_file"; then
7578  archiver_list_spec=
7579else
7580  archiver_list_spec=$lt_cv_ar_at_file
7581fi
7582
7583
7584
7585
7586
7587
7588
7589if test -n "$ac_tool_prefix"; then
7590  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7591set dummy ${ac_tool_prefix}strip; ac_word=$2
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593$as_echo_n "checking for $ac_word... " >&6; }
7594if ${ac_cv_prog_STRIP+:} false; then :
7595  $as_echo_n "(cached) " >&6
7596else
7597  if test -n "$STRIP"; then
7598  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603  IFS=$as_save_IFS
7604  test -z "$as_dir" && as_dir=.
7605    for ac_exec_ext in '' $ac_executable_extensions; do
7606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609    break 2
7610  fi
7611done
7612  done
7613IFS=$as_save_IFS
7614
7615fi
7616fi
7617STRIP=$ac_cv_prog_STRIP
7618if test -n "$STRIP"; then
7619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7620$as_echo "$STRIP" >&6; }
7621else
7622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623$as_echo "no" >&6; }
7624fi
7625
7626
7627fi
7628if test -z "$ac_cv_prog_STRIP"; then
7629  ac_ct_STRIP=$STRIP
7630  # Extract the first word of "strip", so it can be a program name with args.
7631set dummy strip; ac_word=$2
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  if test -n "$ac_ct_STRIP"; then
7638  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645    for ac_exec_ext in '' $ac_executable_extensions; do
7646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647    ac_cv_prog_ac_ct_STRIP="strip"
7648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652  done
7653IFS=$as_save_IFS
7654
7655fi
7656fi
7657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7658if test -n "$ac_ct_STRIP"; then
7659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7660$as_echo "$ac_ct_STRIP" >&6; }
7661else
7662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
7664fi
7665
7666  if test "x$ac_ct_STRIP" = x; then
7667    STRIP=":"
7668  else
7669    case $cross_compiling:$ac_tool_warned in
7670yes:)
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673ac_tool_warned=yes ;;
7674esac
7675    STRIP=$ac_ct_STRIP
7676  fi
7677else
7678  STRIP="$ac_cv_prog_STRIP"
7679fi
7680
7681test -z "$STRIP" && STRIP=:
7682
7683
7684
7685
7686
7687
7688if test -n "$ac_tool_prefix"; then
7689  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7690set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if ${ac_cv_prog_RANLIB+:} false; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  if test -n "$RANLIB"; then
7697  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7698else
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702  IFS=$as_save_IFS
7703  test -z "$as_dir" && as_dir=.
7704    for ac_exec_ext in '' $ac_executable_extensions; do
7705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708    break 2
7709  fi
7710done
7711  done
7712IFS=$as_save_IFS
7713
7714fi
7715fi
7716RANLIB=$ac_cv_prog_RANLIB
7717if test -n "$RANLIB"; then
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7719$as_echo "$RANLIB" >&6; }
7720else
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
7724
7725
7726fi
7727if test -z "$ac_cv_prog_RANLIB"; then
7728  ac_ct_RANLIB=$RANLIB
7729  # Extract the first word of "ranlib", so it can be a program name with args.
7730set dummy ranlib; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  if test -n "$ac_ct_RANLIB"; then
7737  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742  IFS=$as_save_IFS
7743  test -z "$as_dir" && as_dir=.
7744    for ac_exec_ext in '' $ac_executable_extensions; do
7745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_ac_ct_RANLIB="ranlib"
7747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751  done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7757if test -n "$ac_ct_RANLIB"; then
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7759$as_echo "$ac_ct_RANLIB" >&6; }
7760else
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765  if test "x$ac_ct_RANLIB" = x; then
7766    RANLIB=":"
7767  else
7768    case $cross_compiling:$ac_tool_warned in
7769yes:)
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772ac_tool_warned=yes ;;
7773esac
7774    RANLIB=$ac_ct_RANLIB
7775  fi
7776else
7777  RANLIB="$ac_cv_prog_RANLIB"
7778fi
7779
7780test -z "$RANLIB" && RANLIB=:
7781
7782
7783
7784
7785
7786
7787# Determine commands to create old-style static archives.
7788old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7789old_postinstall_cmds='chmod 644 $oldlib'
7790old_postuninstall_cmds=
7791
7792if test -n "$RANLIB"; then
7793  case $host_os in
7794  bitrig* | openbsd*)
7795    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7796    ;;
7797  *)
7798    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7799    ;;
7800  esac
7801  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7802fi
7803
7804case $host_os in
7805  darwin*)
7806    lock_old_archive_extraction=yes ;;
7807  *)
7808    lock_old_archive_extraction=no ;;
7809esac
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849# If no C compiler was specified, use CC.
7850LTCC=${LTCC-"$CC"}
7851
7852# If no C compiler flags were specified, use CFLAGS.
7853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7854
7855# Allow CC to be a program name with arguments.
7856compiler=$CC
7857
7858
7859# Check for command to grab the raw symbol name followed by C symbol from nm.
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7861$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7862if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865
7866# These are sane defaults that work on at least a few old systems.
7867# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7868
7869# Character class describing NM global symbol codes.
7870symcode='[BCDEGRST]'
7871
7872# Regexp to match symbols that can be accessed directly from C.
7873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7874
7875# Define system-specific variables.
7876case $host_os in
7877aix*)
7878  symcode='[BCDT]'
7879  ;;
7880cygwin* | mingw* | pw32* | cegcc*)
7881  symcode='[ABCDGISTW]'
7882  ;;
7883hpux*)
7884  if test ia64 = "$host_cpu"; then
7885    symcode='[ABCDEGRST]'
7886  fi
7887  ;;
7888irix* | nonstopux*)
7889  symcode='[BCDEGRST]'
7890  ;;
7891osf*)
7892  symcode='[BCDEGQRST]'
7893  ;;
7894solaris*)
7895  symcode='[BDRT]'
7896  ;;
7897sco3.2v5*)
7898  symcode='[DT]'
7899  ;;
7900sysv4.2uw2*)
7901  symcode='[DT]'
7902  ;;
7903sysv5* | sco5v6* | unixware* | OpenUNIX*)
7904  symcode='[ABDT]'
7905  ;;
7906sysv4)
7907  symcode='[DFNSTU]'
7908  ;;
7909esac
7910
7911# If we're using GNU nm, then use its standard symbol codes.
7912case `$NM -V 2>&1` in
7913*GNU* | *'with BFD'*)
7914  symcode='[ABCDGIRSTW]' ;;
7915esac
7916
7917if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7918  # Gets list of data symbols to import.
7919  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7920  # Adjust the below global symbol transforms to fixup imported variables.
7921  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7922  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7923  lt_c_name_lib_hook="\
7924  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7925  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7926else
7927  # Disable hooks by default.
7928  lt_cv_sys_global_symbol_to_import=
7929  lt_cdecl_hook=
7930  lt_c_name_hook=
7931  lt_c_name_lib_hook=
7932fi
7933
7934# Transform an extracted symbol line into a proper C declaration.
7935# Some systems (esp. on ia64) link data and code symbols differently,
7936# so use this general approach.
7937lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7938$lt_cdecl_hook\
7939" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7940" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7941
7942# Transform an extracted symbol line into symbol name and symbol address
7943lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7944$lt_c_name_hook\
7945" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7946" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7947
7948# Transform an extracted symbol line into symbol name with lib prefix and
7949# symbol address.
7950lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7951$lt_c_name_lib_hook\
7952" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7953" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7954" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7955
7956# Handle CRLF in mingw tool chain
7957opt_cr=
7958case $build_os in
7959mingw*)
7960  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7961  ;;
7962esac
7963
7964# Try without a prefix underscore, then with it.
7965for ac_symprfx in "" "_"; do
7966
7967  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7968  symxfrm="\\1 $ac_symprfx\\2 \\2"
7969
7970  # Write the raw and C identifiers.
7971  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7972    # Fake it for dumpbin and say T for any non-static function,
7973    # D for any global variable and I for any imported variable.
7974    # Also find C++ and __fastcall symbols from MSVC++,
7975    # which start with @ or ?.
7976    lt_cv_sys_global_symbol_pipe="$AWK '"\
7977"     {last_section=section; section=\$ 3};"\
7978"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7979"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7980"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7981"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7982"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7983"     \$ 0!~/External *\|/{next};"\
7984"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7985"     {if(hide[section]) next};"\
7986"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7987"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7988"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7989"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7990"     ' prfx=^$ac_symprfx"
7991  else
7992    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7993  fi
7994  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7995
7996  # Check to see that the pipe works correctly.
7997  pipe_works=no
7998
7999  rm -f conftest*
8000  cat > conftest.$ac_ext <<_LT_EOF
8001#ifdef __cplusplus
8002extern "C" {
8003#endif
8004char nm_test_var;
8005void nm_test_func(void);
8006void nm_test_func(void){}
8007#ifdef __cplusplus
8008}
8009#endif
8010int main(){nm_test_var='a';nm_test_func();return(0);}
8011_LT_EOF
8012
8013  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8014  (eval $ac_compile) 2>&5
8015  ac_status=$?
8016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8017  test $ac_status = 0; }; then
8018    # Now try to grab the symbols.
8019    nlist=conftest.nm
8020    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8021  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8022  ac_status=$?
8023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024  test $ac_status = 0; } && test -s "$nlist"; then
8025      # Try sorting and uniquifying the output.
8026      if sort "$nlist" | uniq > "$nlist"T; then
8027	mv -f "$nlist"T "$nlist"
8028      else
8029	rm -f "$nlist"T
8030      fi
8031
8032      # Make sure that we snagged all the symbols we need.
8033      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8034	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8035	  cat <<_LT_EOF > conftest.$ac_ext
8036/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8037#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8038/* DATA imports from DLLs on WIN32 can't be const, because runtime
8039   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8040# define LT_DLSYM_CONST
8041#elif defined __osf__
8042/* This system does not cope well with relocations in const data.  */
8043# define LT_DLSYM_CONST
8044#else
8045# define LT_DLSYM_CONST const
8046#endif
8047
8048#ifdef __cplusplus
8049extern "C" {
8050#endif
8051
8052_LT_EOF
8053	  # Now generate the symbol file.
8054	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8055
8056	  cat <<_LT_EOF >> conftest.$ac_ext
8057
8058/* The mapping between symbol names and symbols.  */
8059LT_DLSYM_CONST struct {
8060  const char *name;
8061  void       *address;
8062}
8063lt__PROGRAM__LTX_preloaded_symbols[] =
8064{
8065  { "@PROGRAM@", (void *) 0 },
8066_LT_EOF
8067	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8068	  cat <<\_LT_EOF >> conftest.$ac_ext
8069  {0, (void *) 0}
8070};
8071
8072/* This works around a problem in FreeBSD linker */
8073#ifdef FREEBSD_WORKAROUND
8074static const void *lt_preloaded_setup() {
8075  return lt__PROGRAM__LTX_preloaded_symbols;
8076}
8077#endif
8078
8079#ifdef __cplusplus
8080}
8081#endif
8082_LT_EOF
8083	  # Now try linking the two files.
8084	  mv conftest.$ac_objext conftstm.$ac_objext
8085	  lt_globsym_save_LIBS=$LIBS
8086	  lt_globsym_save_CFLAGS=$CFLAGS
8087	  LIBS=conftstm.$ac_objext
8088	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8089	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8090  (eval $ac_link) 2>&5
8091  ac_status=$?
8092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8094	    pipe_works=yes
8095	  fi
8096	  LIBS=$lt_globsym_save_LIBS
8097	  CFLAGS=$lt_globsym_save_CFLAGS
8098	else
8099	  echo "cannot find nm_test_func in $nlist" >&5
8100	fi
8101      else
8102	echo "cannot find nm_test_var in $nlist" >&5
8103      fi
8104    else
8105      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8106    fi
8107  else
8108    echo "$progname: failed program was:" >&5
8109    cat conftest.$ac_ext >&5
8110  fi
8111  rm -rf conftest* conftst*
8112
8113  # Do not use the global_symbol_pipe unless it works.
8114  if test yes = "$pipe_works"; then
8115    break
8116  else
8117    lt_cv_sys_global_symbol_pipe=
8118  fi
8119done
8120
8121fi
8122
8123if test -z "$lt_cv_sys_global_symbol_pipe"; then
8124  lt_cv_sys_global_symbol_to_cdecl=
8125fi
8126if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8128$as_echo "failed" >&6; }
8129else
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8131$as_echo "ok" >&6; }
8132fi
8133
8134# Response file support.
8135if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8136  nm_file_list_spec='@'
8137elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8138  nm_file_list_spec='@'
8139fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8178$as_echo_n "checking for sysroot... " >&6; }
8179
8180# Check whether --with-sysroot was given.
8181if test "${with_sysroot+set}" = set; then :
8182  withval=$with_sysroot;
8183else
8184  with_sysroot=no
8185fi
8186
8187
8188lt_sysroot=
8189case $with_sysroot in #(
8190 yes)
8191   if test yes = "$GCC"; then
8192     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8193   fi
8194   ;; #(
8195 /*)
8196   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8197   ;; #(
8198 no|'')
8199   ;; #(
8200 *)
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8202$as_echo "$with_sysroot" >&6; }
8203   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8204   ;;
8205esac
8206
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8208$as_echo "${lt_sysroot:-no}" >&6; }
8209
8210
8211
8212
8213
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8215$as_echo_n "checking for a working dd... " >&6; }
8216if ${ac_cv_path_lt_DD+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  printf 0123456789abcdef0123456789abcdef >conftest.i
8220cat conftest.i conftest.i >conftest2.i
8221: ${lt_DD:=$DD}
8222if test -z "$lt_DD"; then
8223  ac_path_lt_DD_found=false
8224  # Loop through the user's path and test for each of PROGNAME-LIST
8225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228  IFS=$as_save_IFS
8229  test -z "$as_dir" && as_dir=.
8230    for ac_prog in dd; do
8231    for ac_exec_ext in '' $ac_executable_extensions; do
8232      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8233      as_fn_executable_p "$ac_path_lt_DD" || continue
8234if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8235  cmp -s conftest.i conftest.out \
8236  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8237fi
8238      $ac_path_lt_DD_found && break 3
8239    done
8240  done
8241  done
8242IFS=$as_save_IFS
8243  if test -z "$ac_cv_path_lt_DD"; then
8244    :
8245  fi
8246else
8247  ac_cv_path_lt_DD=$lt_DD
8248fi
8249
8250rm -f conftest.i conftest2.i conftest.out
8251fi
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8253$as_echo "$ac_cv_path_lt_DD" >&6; }
8254
8255
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8257$as_echo_n "checking how to truncate binary pipes... " >&6; }
8258if ${lt_cv_truncate_bin+:} false; then :
8259  $as_echo_n "(cached) " >&6
8260else
8261  printf 0123456789abcdef0123456789abcdef >conftest.i
8262cat conftest.i conftest.i >conftest2.i
8263lt_cv_truncate_bin=
8264if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8265  cmp -s conftest.i conftest.out \
8266  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8267fi
8268rm -f conftest.i conftest2.i conftest.out
8269test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8270fi
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8272$as_echo "$lt_cv_truncate_bin" >&6; }
8273
8274
8275
8276
8277
8278
8279
8280# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8281func_cc_basename ()
8282{
8283    for cc_temp in $*""; do
8284      case $cc_temp in
8285        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8286        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8287        \-*) ;;
8288        *) break;;
8289      esac
8290    done
8291    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8292}
8293
8294# Check whether --enable-libtool-lock was given.
8295if test "${enable_libtool_lock+set}" = set; then :
8296  enableval=$enable_libtool_lock;
8297fi
8298
8299test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8300
8301# Some flags need to be propagated to the compiler or linker for good
8302# libtool support.
8303case $host in
8304ia64-*-hpux*)
8305  # Find out what ABI is being produced by ac_compile, and set mode
8306  # options accordingly.
8307  echo 'int i;' > conftest.$ac_ext
8308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309  (eval $ac_compile) 2>&5
8310  ac_status=$?
8311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312  test $ac_status = 0; }; then
8313    case `/usr/bin/file conftest.$ac_objext` in
8314      *ELF-32*)
8315	HPUX_IA64_MODE=32
8316	;;
8317      *ELF-64*)
8318	HPUX_IA64_MODE=64
8319	;;
8320    esac
8321  fi
8322  rm -rf conftest*
8323  ;;
8324*-*-irix6*)
8325  # Find out what ABI is being produced by ac_compile, and set linker
8326  # options accordingly.
8327  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8329  (eval $ac_compile) 2>&5
8330  ac_status=$?
8331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332  test $ac_status = 0; }; then
8333    if test yes = "$lt_cv_prog_gnu_ld"; then
8334      case `/usr/bin/file conftest.$ac_objext` in
8335	*32-bit*)
8336	  LD="${LD-ld} -melf32bsmip"
8337	  ;;
8338	*N32*)
8339	  LD="${LD-ld} -melf32bmipn32"
8340	  ;;
8341	*64-bit*)
8342	  LD="${LD-ld} -melf64bmip"
8343	;;
8344      esac
8345    else
8346      case `/usr/bin/file conftest.$ac_objext` in
8347	*32-bit*)
8348	  LD="${LD-ld} -32"
8349	  ;;
8350	*N32*)
8351	  LD="${LD-ld} -n32"
8352	  ;;
8353	*64-bit*)
8354	  LD="${LD-ld} -64"
8355	  ;;
8356      esac
8357    fi
8358  fi
8359  rm -rf conftest*
8360  ;;
8361
8362mips64*-*linux*)
8363  # Find out what ABI is being produced by ac_compile, and set linker
8364  # options accordingly.
8365  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8367  (eval $ac_compile) 2>&5
8368  ac_status=$?
8369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8370  test $ac_status = 0; }; then
8371    emul=elf
8372    case `/usr/bin/file conftest.$ac_objext` in
8373      *32-bit*)
8374	emul="${emul}32"
8375	;;
8376      *64-bit*)
8377	emul="${emul}64"
8378	;;
8379    esac
8380    case `/usr/bin/file conftest.$ac_objext` in
8381      *MSB*)
8382	emul="${emul}btsmip"
8383	;;
8384      *LSB*)
8385	emul="${emul}ltsmip"
8386	;;
8387    esac
8388    case `/usr/bin/file conftest.$ac_objext` in
8389      *N32*)
8390	emul="${emul}n32"
8391	;;
8392    esac
8393    LD="${LD-ld} -m $emul"
8394  fi
8395  rm -rf conftest*
8396  ;;
8397
8398x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8399s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8400  # Find out what ABI is being produced by ac_compile, and set linker
8401  # options accordingly.  Note that the listed cases only cover the
8402  # situations where additional linker options are needed (such as when
8403  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8404  # vice versa); the common cases where no linker options are needed do
8405  # not appear in the list.
8406  echo 'int i;' > conftest.$ac_ext
8407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8408  (eval $ac_compile) 2>&5
8409  ac_status=$?
8410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8411  test $ac_status = 0; }; then
8412    case `/usr/bin/file conftest.o` in
8413      *32-bit*)
8414	case $host in
8415	  x86_64-*kfreebsd*-gnu)
8416	    LD="${LD-ld} -m elf_i386_fbsd"
8417	    ;;
8418	  x86_64-*linux*)
8419	    case `/usr/bin/file conftest.o` in
8420	      *x86-64*)
8421		LD="${LD-ld} -m elf32_x86_64"
8422		;;
8423	      *)
8424		LD="${LD-ld} -m elf_i386"
8425		;;
8426	    esac
8427	    ;;
8428	  powerpc64le-*linux*)
8429	    LD="${LD-ld} -m elf32lppclinux"
8430	    ;;
8431	  powerpc64-*linux*)
8432	    LD="${LD-ld} -m elf32ppclinux"
8433	    ;;
8434	  s390x-*linux*)
8435	    LD="${LD-ld} -m elf_s390"
8436	    ;;
8437	  sparc64-*linux*)
8438	    LD="${LD-ld} -m elf32_sparc"
8439	    ;;
8440	esac
8441	;;
8442      *64-bit*)
8443	case $host in
8444	  x86_64-*kfreebsd*-gnu)
8445	    LD="${LD-ld} -m elf_x86_64_fbsd"
8446	    ;;
8447	  x86_64-*linux*)
8448	    LD="${LD-ld} -m elf_x86_64"
8449	    ;;
8450	  powerpcle-*linux*)
8451	    LD="${LD-ld} -m elf64lppc"
8452	    ;;
8453	  powerpc-*linux*)
8454	    LD="${LD-ld} -m elf64ppc"
8455	    ;;
8456	  s390*-*linux*|s390*-*tpf*)
8457	    LD="${LD-ld} -m elf64_s390"
8458	    ;;
8459	  sparc*-*linux*)
8460	    LD="${LD-ld} -m elf64_sparc"
8461	    ;;
8462	esac
8463	;;
8464    esac
8465  fi
8466  rm -rf conftest*
8467  ;;
8468
8469*-*-sco3.2v5*)
8470  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8471  SAVE_CFLAGS=$CFLAGS
8472  CFLAGS="$CFLAGS -belf"
8473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8475if ${lt_cv_cc_needs_belf+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  ac_ext=c
8479ac_cpp='$CPP $CPPFLAGS'
8480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483
8484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h.  */
8486
8487int
8488main ()
8489{
8490
8491  ;
8492  return 0;
8493}
8494_ACEOF
8495if ac_fn_c_try_link "$LINENO"; then :
8496  lt_cv_cc_needs_belf=yes
8497else
8498  lt_cv_cc_needs_belf=no
8499fi
8500rm -f core conftest.err conftest.$ac_objext \
8501    conftest$ac_exeext conftest.$ac_ext
8502     ac_ext=c
8503ac_cpp='$CPP $CPPFLAGS'
8504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8506ac_compiler_gnu=$ac_cv_c_compiler_gnu
8507
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8510$as_echo "$lt_cv_cc_needs_belf" >&6; }
8511  if test yes != "$lt_cv_cc_needs_belf"; then
8512    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8513    CFLAGS=$SAVE_CFLAGS
8514  fi
8515  ;;
8516*-*solaris*)
8517  # Find out what ABI is being produced by ac_compile, and set linker
8518  # options accordingly.
8519  echo 'int i;' > conftest.$ac_ext
8520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8521  (eval $ac_compile) 2>&5
8522  ac_status=$?
8523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8524  test $ac_status = 0; }; then
8525    case `/usr/bin/file conftest.o` in
8526    *64-bit*)
8527      case $lt_cv_prog_gnu_ld in
8528      yes*)
8529        case $host in
8530        i?86-*-solaris*|x86_64-*-solaris*)
8531          LD="${LD-ld} -m elf_x86_64"
8532          ;;
8533        sparc*-*-solaris*)
8534          LD="${LD-ld} -m elf64_sparc"
8535          ;;
8536        esac
8537        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8538        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8539          LD=${LD-ld}_sol2
8540        fi
8541        ;;
8542      *)
8543	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8544	  LD="${LD-ld} -64"
8545	fi
8546	;;
8547      esac
8548      ;;
8549    esac
8550  fi
8551  rm -rf conftest*
8552  ;;
8553esac
8554
8555need_locks=$enable_libtool_lock
8556
8557if test -n "$ac_tool_prefix"; then
8558  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8559set dummy ${ac_tool_prefix}mt; ac_word=$2
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
8562if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  if test -n "$MANIFEST_TOOL"; then
8566  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8567else
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571  IFS=$as_save_IFS
8572  test -z "$as_dir" && as_dir=.
8573    for ac_exec_ext in '' $ac_executable_extensions; do
8574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577    break 2
8578  fi
8579done
8580  done
8581IFS=$as_save_IFS
8582
8583fi
8584fi
8585MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8586if test -n "$MANIFEST_TOOL"; then
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8588$as_echo "$MANIFEST_TOOL" >&6; }
8589else
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592fi
8593
8594
8595fi
8596if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8597  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8598  # Extract the first word of "mt", so it can be a program name with args.
8599set dummy mt; ac_word=$2
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601$as_echo_n "checking for $ac_word... " >&6; }
8602if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  if test -n "$ac_ct_MANIFEST_TOOL"; then
8606  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8607else
8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611  IFS=$as_save_IFS
8612  test -z "$as_dir" && as_dir=.
8613    for ac_exec_ext in '' $ac_executable_extensions; do
8614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617    break 2
8618  fi
8619done
8620  done
8621IFS=$as_save_IFS
8622
8623fi
8624fi
8625ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8626if test -n "$ac_ct_MANIFEST_TOOL"; then
8627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8628$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8629else
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631$as_echo "no" >&6; }
8632fi
8633
8634  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8635    MANIFEST_TOOL=":"
8636  else
8637    case $cross_compiling:$ac_tool_warned in
8638yes:)
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641ac_tool_warned=yes ;;
8642esac
8643    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8644  fi
8645else
8646  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8647fi
8648
8649test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8651$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8652if ${lt_cv_path_mainfest_tool+:} false; then :
8653  $as_echo_n "(cached) " >&6
8654else
8655  lt_cv_path_mainfest_tool=no
8656  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8657  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8658  cat conftest.err >&5
8659  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8660    lt_cv_path_mainfest_tool=yes
8661  fi
8662  rm -f conftest*
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8665$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8666if test yes != "$lt_cv_path_mainfest_tool"; then
8667  MANIFEST_TOOL=:
8668fi
8669
8670
8671
8672
8673
8674
8675  case $host_os in
8676    rhapsody* | darwin*)
8677    if test -n "$ac_tool_prefix"; then
8678  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8679set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681$as_echo_n "checking for $ac_word... " >&6; }
8682if ${ac_cv_prog_DSYMUTIL+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  if test -n "$DSYMUTIL"; then
8686  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8687else
8688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691  IFS=$as_save_IFS
8692  test -z "$as_dir" && as_dir=.
8693    for ac_exec_ext in '' $ac_executable_extensions; do
8694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697    break 2
8698  fi
8699done
8700  done
8701IFS=$as_save_IFS
8702
8703fi
8704fi
8705DSYMUTIL=$ac_cv_prog_DSYMUTIL
8706if test -n "$DSYMUTIL"; then
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8708$as_echo "$DSYMUTIL" >&6; }
8709else
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
8712fi
8713
8714
8715fi
8716if test -z "$ac_cv_prog_DSYMUTIL"; then
8717  ac_ct_DSYMUTIL=$DSYMUTIL
8718  # Extract the first word of "dsymutil", so it can be a program name with args.
8719set dummy dsymutil; ac_word=$2
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721$as_echo_n "checking for $ac_word... " >&6; }
8722if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  if test -n "$ac_ct_DSYMUTIL"; then
8726  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8727else
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731  IFS=$as_save_IFS
8732  test -z "$as_dir" && as_dir=.
8733    for ac_exec_ext in '' $ac_executable_extensions; do
8734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737    break 2
8738  fi
8739done
8740  done
8741IFS=$as_save_IFS
8742
8743fi
8744fi
8745ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8746if test -n "$ac_ct_DSYMUTIL"; then
8747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8748$as_echo "$ac_ct_DSYMUTIL" >&6; }
8749else
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752fi
8753
8754  if test "x$ac_ct_DSYMUTIL" = x; then
8755    DSYMUTIL=":"
8756  else
8757    case $cross_compiling:$ac_tool_warned in
8758yes:)
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8761ac_tool_warned=yes ;;
8762esac
8763    DSYMUTIL=$ac_ct_DSYMUTIL
8764  fi
8765else
8766  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8767fi
8768
8769    if test -n "$ac_tool_prefix"; then
8770  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8771set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773$as_echo_n "checking for $ac_word... " >&6; }
8774if ${ac_cv_prog_NMEDIT+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  if test -n "$NMEDIT"; then
8778  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8779else
8780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783  IFS=$as_save_IFS
8784  test -z "$as_dir" && as_dir=.
8785    for ac_exec_ext in '' $ac_executable_extensions; do
8786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792  done
8793IFS=$as_save_IFS
8794
8795fi
8796fi
8797NMEDIT=$ac_cv_prog_NMEDIT
8798if test -n "$NMEDIT"; then
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8800$as_echo "$NMEDIT" >&6; }
8801else
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
8804fi
8805
8806
8807fi
8808if test -z "$ac_cv_prog_NMEDIT"; then
8809  ac_ct_NMEDIT=$NMEDIT
8810  # Extract the first word of "nmedit", so it can be a program name with args.
8811set dummy nmedit; ac_word=$2
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8813$as_echo_n "checking for $ac_word... " >&6; }
8814if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8815  $as_echo_n "(cached) " >&6
8816else
8817  if test -n "$ac_ct_NMEDIT"; then
8818  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8819else
8820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821for as_dir in $PATH
8822do
8823  IFS=$as_save_IFS
8824  test -z "$as_dir" && as_dir=.
8825    for ac_exec_ext in '' $ac_executable_extensions; do
8826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8827    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8829    break 2
8830  fi
8831done
8832  done
8833IFS=$as_save_IFS
8834
8835fi
8836fi
8837ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8838if test -n "$ac_ct_NMEDIT"; then
8839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8840$as_echo "$ac_ct_NMEDIT" >&6; }
8841else
8842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843$as_echo "no" >&6; }
8844fi
8845
8846  if test "x$ac_ct_NMEDIT" = x; then
8847    NMEDIT=":"
8848  else
8849    case $cross_compiling:$ac_tool_warned in
8850yes:)
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8853ac_tool_warned=yes ;;
8854esac
8855    NMEDIT=$ac_ct_NMEDIT
8856  fi
8857else
8858  NMEDIT="$ac_cv_prog_NMEDIT"
8859fi
8860
8861    if test -n "$ac_tool_prefix"; then
8862  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8863set dummy ${ac_tool_prefix}lipo; ac_word=$2
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if ${ac_cv_prog_LIPO+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  if test -n "$LIPO"; then
8870  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875  IFS=$as_save_IFS
8876  test -z "$as_dir" && as_dir=.
8877    for ac_exec_ext in '' $ac_executable_extensions; do
8878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881    break 2
8882  fi
8883done
8884  done
8885IFS=$as_save_IFS
8886
8887fi
8888fi
8889LIPO=$ac_cv_prog_LIPO
8890if test -n "$LIPO"; then
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8892$as_echo "$LIPO" >&6; }
8893else
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
8896fi
8897
8898
8899fi
8900if test -z "$ac_cv_prog_LIPO"; then
8901  ac_ct_LIPO=$LIPO
8902  # Extract the first word of "lipo", so it can be a program name with args.
8903set dummy lipo; ac_word=$2
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905$as_echo_n "checking for $ac_word... " >&6; }
8906if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  if test -n "$ac_ct_LIPO"; then
8910  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915  IFS=$as_save_IFS
8916  test -z "$as_dir" && as_dir=.
8917    for ac_exec_ext in '' $ac_executable_extensions; do
8918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919    ac_cv_prog_ac_ct_LIPO="lipo"
8920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921    break 2
8922  fi
8923done
8924  done
8925IFS=$as_save_IFS
8926
8927fi
8928fi
8929ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8930if test -n "$ac_ct_LIPO"; then
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8932$as_echo "$ac_ct_LIPO" >&6; }
8933else
8934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935$as_echo "no" >&6; }
8936fi
8937
8938  if test "x$ac_ct_LIPO" = x; then
8939    LIPO=":"
8940  else
8941    case $cross_compiling:$ac_tool_warned in
8942yes:)
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8945ac_tool_warned=yes ;;
8946esac
8947    LIPO=$ac_ct_LIPO
8948  fi
8949else
8950  LIPO="$ac_cv_prog_LIPO"
8951fi
8952
8953    if test -n "$ac_tool_prefix"; then
8954  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8955set dummy ${ac_tool_prefix}otool; ac_word=$2
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957$as_echo_n "checking for $ac_word... " >&6; }
8958if ${ac_cv_prog_OTOOL+:} false; then :
8959  $as_echo_n "(cached) " >&6
8960else
8961  if test -n "$OTOOL"; then
8962  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8963else
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967  IFS=$as_save_IFS
8968  test -z "$as_dir" && as_dir=.
8969    for ac_exec_ext in '' $ac_executable_extensions; do
8970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973    break 2
8974  fi
8975done
8976  done
8977IFS=$as_save_IFS
8978
8979fi
8980fi
8981OTOOL=$ac_cv_prog_OTOOL
8982if test -n "$OTOOL"; then
8983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8984$as_echo "$OTOOL" >&6; }
8985else
8986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987$as_echo "no" >&6; }
8988fi
8989
8990
8991fi
8992if test -z "$ac_cv_prog_OTOOL"; then
8993  ac_ct_OTOOL=$OTOOL
8994  # Extract the first word of "otool", so it can be a program name with args.
8995set dummy otool; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  if test -n "$ac_ct_OTOOL"; then
9002  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007  IFS=$as_save_IFS
9008  test -z "$as_dir" && as_dir=.
9009    for ac_exec_ext in '' $ac_executable_extensions; do
9010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011    ac_cv_prog_ac_ct_OTOOL="otool"
9012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013    break 2
9014  fi
9015done
9016  done
9017IFS=$as_save_IFS
9018
9019fi
9020fi
9021ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9022if test -n "$ac_ct_OTOOL"; then
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9024$as_echo "$ac_ct_OTOOL" >&6; }
9025else
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9028fi
9029
9030  if test "x$ac_ct_OTOOL" = x; then
9031    OTOOL=":"
9032  else
9033    case $cross_compiling:$ac_tool_warned in
9034yes:)
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9037ac_tool_warned=yes ;;
9038esac
9039    OTOOL=$ac_ct_OTOOL
9040  fi
9041else
9042  OTOOL="$ac_cv_prog_OTOOL"
9043fi
9044
9045    if test -n "$ac_tool_prefix"; then
9046  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9047set dummy ${ac_tool_prefix}otool64; ac_word=$2
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049$as_echo_n "checking for $ac_word... " >&6; }
9050if ${ac_cv_prog_OTOOL64+:} false; then :
9051  $as_echo_n "(cached) " >&6
9052else
9053  if test -n "$OTOOL64"; then
9054  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9055else
9056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057for as_dir in $PATH
9058do
9059  IFS=$as_save_IFS
9060  test -z "$as_dir" && as_dir=.
9061    for ac_exec_ext in '' $ac_executable_extensions; do
9062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065    break 2
9066  fi
9067done
9068  done
9069IFS=$as_save_IFS
9070
9071fi
9072fi
9073OTOOL64=$ac_cv_prog_OTOOL64
9074if test -n "$OTOOL64"; then
9075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9076$as_echo "$OTOOL64" >&6; }
9077else
9078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079$as_echo "no" >&6; }
9080fi
9081
9082
9083fi
9084if test -z "$ac_cv_prog_OTOOL64"; then
9085  ac_ct_OTOOL64=$OTOOL64
9086  # Extract the first word of "otool64", so it can be a program name with args.
9087set dummy otool64; ac_word=$2
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089$as_echo_n "checking for $ac_word... " >&6; }
9090if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  if test -n "$ac_ct_OTOOL64"; then
9094  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099  IFS=$as_save_IFS
9100  test -z "$as_dir" && as_dir=.
9101    for ac_exec_ext in '' $ac_executable_extensions; do
9102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103    ac_cv_prog_ac_ct_OTOOL64="otool64"
9104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105    break 2
9106  fi
9107done
9108  done
9109IFS=$as_save_IFS
9110
9111fi
9112fi
9113ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9114if test -n "$ac_ct_OTOOL64"; then
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9116$as_echo "$ac_ct_OTOOL64" >&6; }
9117else
9118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9120fi
9121
9122  if test "x$ac_ct_OTOOL64" = x; then
9123    OTOOL64=":"
9124  else
9125    case $cross_compiling:$ac_tool_warned in
9126yes:)
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9129ac_tool_warned=yes ;;
9130esac
9131    OTOOL64=$ac_ct_OTOOL64
9132  fi
9133else
9134  OTOOL64="$ac_cv_prog_OTOOL64"
9135fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9164$as_echo_n "checking for -single_module linker flag... " >&6; }
9165if ${lt_cv_apple_cc_single_mod+:} false; then :
9166  $as_echo_n "(cached) " >&6
9167else
9168  lt_cv_apple_cc_single_mod=no
9169      if test -z "$LT_MULTI_MODULE"; then
9170	# By default we will add the -single_module flag. You can override
9171	# by either setting the environment variable LT_MULTI_MODULE
9172	# non-empty at configure time, or by adding -multi_module to the
9173	# link flags.
9174	rm -rf libconftest.dylib*
9175	echo "int foo(void){return 1;}" > conftest.c
9176	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9177-dynamiclib -Wl,-single_module conftest.c" >&5
9178	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9179	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9180        _lt_result=$?
9181	# If there is a non-empty error log, and "single_module"
9182	# appears in it, assume the flag caused a linker warning
9183        if test -s conftest.err && $GREP single_module conftest.err; then
9184	  cat conftest.err >&5
9185	# Otherwise, if the output was created with a 0 exit code from
9186	# the compiler, it worked.
9187	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9188	  lt_cv_apple_cc_single_mod=yes
9189	else
9190	  cat conftest.err >&5
9191	fi
9192	rm -rf libconftest.dylib*
9193	rm -f conftest.*
9194      fi
9195fi
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9197$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9198
9199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9200$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9201if ${lt_cv_ld_exported_symbols_list+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  lt_cv_ld_exported_symbols_list=no
9205      save_LDFLAGS=$LDFLAGS
9206      echo "_main" > conftest.sym
9207      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210
9211int
9212main ()
9213{
9214
9215  ;
9216  return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_link "$LINENO"; then :
9220  lt_cv_ld_exported_symbols_list=yes
9221else
9222  lt_cv_ld_exported_symbols_list=no
9223fi
9224rm -f core conftest.err conftest.$ac_objext \
9225    conftest$ac_exeext conftest.$ac_ext
9226	LDFLAGS=$save_LDFLAGS
9227
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9230$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9231
9232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9233$as_echo_n "checking for -force_load linker flag... " >&6; }
9234if ${lt_cv_ld_force_load+:} false; then :
9235  $as_echo_n "(cached) " >&6
9236else
9237  lt_cv_ld_force_load=no
9238      cat > conftest.c << _LT_EOF
9239int forced_loaded() { return 2;}
9240_LT_EOF
9241      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9242      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9243      echo "$AR cru libconftest.a conftest.o" >&5
9244      $AR cru libconftest.a conftest.o 2>&5
9245      echo "$RANLIB libconftest.a" >&5
9246      $RANLIB libconftest.a 2>&5
9247      cat > conftest.c << _LT_EOF
9248int main() { return 0;}
9249_LT_EOF
9250      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9251      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9252      _lt_result=$?
9253      if test -s conftest.err && $GREP force_load conftest.err; then
9254	cat conftest.err >&5
9255      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9256	lt_cv_ld_force_load=yes
9257      else
9258	cat conftest.err >&5
9259      fi
9260        rm -f conftest.err libconftest.a conftest conftest.c
9261        rm -rf conftest.dSYM
9262
9263fi
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9265$as_echo "$lt_cv_ld_force_load" >&6; }
9266    case $host_os in
9267    rhapsody* | darwin1.[012])
9268      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9269    darwin1.*)
9270      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9271    darwin*) # darwin 5.x on
9272      # if running on 10.5 or later, the deployment target defaults
9273      # to the OS version, if on x86, and 10.4, the deployment
9274      # target defaults to 10.4. Don't you love it?
9275      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9276	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9277	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9278	10.[012][,.]*)
9279	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9280	10.*)
9281	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9282      esac
9283    ;;
9284  esac
9285    if test yes = "$lt_cv_apple_cc_single_mod"; then
9286      _lt_dar_single_mod='$single_module'
9287    fi
9288    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9289      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9290    else
9291      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9292    fi
9293    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9294      _lt_dsymutil='~$DSYMUTIL $lib || :'
9295    else
9296      _lt_dsymutil=
9297    fi
9298    ;;
9299  esac
9300
9301# func_munge_path_list VARIABLE PATH
9302# -----------------------------------
9303# VARIABLE is name of variable containing _space_ separated list of
9304# directories to be munged by the contents of PATH, which is string
9305# having a format:
9306# "DIR[:DIR]:"
9307#       string "DIR[ DIR]" will be prepended to VARIABLE
9308# ":DIR[:DIR]"
9309#       string "DIR[ DIR]" will be appended to VARIABLE
9310# "DIRP[:DIRP]::[DIRA:]DIRA"
9311#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9312#       "DIRA[ DIRA]" will be appended to VARIABLE
9313# "DIR[:DIR]"
9314#       VARIABLE will be replaced by "DIR[ DIR]"
9315func_munge_path_list ()
9316{
9317    case x$2 in
9318    x)
9319        ;;
9320    *:)
9321        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9322        ;;
9323    x:*)
9324        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9325        ;;
9326    *::*)
9327        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9328        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9329        ;;
9330    *)
9331        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9332        ;;
9333    esac
9334}
9335
9336for ac_header in dlfcn.h
9337do :
9338  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9339"
9340if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9341  cat >>confdefs.h <<_ACEOF
9342#define HAVE_DLFCN_H 1
9343_ACEOF
9344
9345fi
9346
9347done
9348
9349
9350
9351
9352
9353# Set options
9354
9355
9356
9357        enable_dlopen=no
9358
9359
9360  enable_win32_dll=no
9361
9362
9363            # Check whether --enable-shared was given.
9364if test "${enable_shared+set}" = set; then :
9365  enableval=$enable_shared; p=${PACKAGE-default}
9366    case $enableval in
9367    yes) enable_shared=yes ;;
9368    no) enable_shared=no ;;
9369    *)
9370      enable_shared=no
9371      # Look at the argument we got.  We use all the common list separators.
9372      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9373      for pkg in $enableval; do
9374	IFS=$lt_save_ifs
9375	if test "X$pkg" = "X$p"; then
9376	  enable_shared=yes
9377	fi
9378      done
9379      IFS=$lt_save_ifs
9380      ;;
9381    esac
9382else
9383  enable_shared=yes
9384fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394  # Check whether --enable-static was given.
9395if test "${enable_static+set}" = set; then :
9396  enableval=$enable_static; p=${PACKAGE-default}
9397    case $enableval in
9398    yes) enable_static=yes ;;
9399    no) enable_static=no ;;
9400    *)
9401     enable_static=no
9402      # Look at the argument we got.  We use all the common list separators.
9403      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9404      for pkg in $enableval; do
9405	IFS=$lt_save_ifs
9406	if test "X$pkg" = "X$p"; then
9407	  enable_static=yes
9408	fi
9409      done
9410      IFS=$lt_save_ifs
9411      ;;
9412    esac
9413else
9414  enable_static=yes
9415fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426# Check whether --with-pic was given.
9427if test "${with_pic+set}" = set; then :
9428  withval=$with_pic; lt_p=${PACKAGE-default}
9429    case $withval in
9430    yes|no) pic_mode=$withval ;;
9431    *)
9432      pic_mode=default
9433      # Look at the argument we got.  We use all the common list separators.
9434      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9435      for lt_pkg in $withval; do
9436	IFS=$lt_save_ifs
9437	if test "X$lt_pkg" = "X$lt_p"; then
9438	  pic_mode=yes
9439	fi
9440      done
9441      IFS=$lt_save_ifs
9442      ;;
9443    esac
9444else
9445  pic_mode=default
9446fi
9447
9448
9449
9450
9451
9452
9453
9454
9455  # Check whether --enable-fast-install was given.
9456if test "${enable_fast_install+set}" = set; then :
9457  enableval=$enable_fast_install; p=${PACKAGE-default}
9458    case $enableval in
9459    yes) enable_fast_install=yes ;;
9460    no) enable_fast_install=no ;;
9461    *)
9462      enable_fast_install=no
9463      # Look at the argument we got.  We use all the common list separators.
9464      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9465      for pkg in $enableval; do
9466	IFS=$lt_save_ifs
9467	if test "X$pkg" = "X$p"; then
9468	  enable_fast_install=yes
9469	fi
9470      done
9471      IFS=$lt_save_ifs
9472      ;;
9473    esac
9474else
9475  enable_fast_install=yes
9476fi
9477
9478
9479
9480
9481
9482
9483
9484
9485  shared_archive_member_spec=
9486case $host,$enable_shared in
9487power*-*-aix[5-9]*,yes)
9488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9489$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9490
9491# Check whether --with-aix-soname was given.
9492if test "${with_aix_soname+set}" = set; then :
9493  withval=$with_aix_soname; case $withval in
9494    aix|svr4|both)
9495      ;;
9496    *)
9497      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9498      ;;
9499    esac
9500    lt_cv_with_aix_soname=$with_aix_soname
9501else
9502  if ${lt_cv_with_aix_soname+:} false; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  lt_cv_with_aix_soname=aix
9506fi
9507
9508    with_aix_soname=$lt_cv_with_aix_soname
9509fi
9510
9511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9512$as_echo "$with_aix_soname" >&6; }
9513  if test aix != "$with_aix_soname"; then
9514    # For the AIX way of multilib, we name the shared archive member
9515    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9516    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9517    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9518    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9519    if test 64 = "${OBJECT_MODE-32}"; then
9520      shared_archive_member_spec=shr_64
9521    else
9522      shared_archive_member_spec=shr
9523    fi
9524  fi
9525  ;;
9526*)
9527  with_aix_soname=aix
9528  ;;
9529esac
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540# This can be used to rebuild libtool when needed
9541LIBTOOL_DEPS=$ltmain
9542
9543# Always use our own libtool.
9544LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575test -z "$LN_S" && LN_S="ln -s"
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590if test -n "${ZSH_VERSION+set}"; then
9591   setopt NO_GLOB_SUBST
9592fi
9593
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9595$as_echo_n "checking for objdir... " >&6; }
9596if ${lt_cv_objdir+:} false; then :
9597  $as_echo_n "(cached) " >&6
9598else
9599  rm -f .libs 2>/dev/null
9600mkdir .libs 2>/dev/null
9601if test -d .libs; then
9602  lt_cv_objdir=.libs
9603else
9604  # MS-DOS does not allow filenames that begin with a dot.
9605  lt_cv_objdir=_libs
9606fi
9607rmdir .libs 2>/dev/null
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9610$as_echo "$lt_cv_objdir" >&6; }
9611objdir=$lt_cv_objdir
9612
9613
9614
9615
9616
9617cat >>confdefs.h <<_ACEOF
9618#define LT_OBJDIR "$lt_cv_objdir/"
9619_ACEOF
9620
9621
9622
9623
9624case $host_os in
9625aix3*)
9626  # AIX sometimes has problems with the GCC collect2 program.  For some
9627  # reason, if we set the COLLECT_NAMES environment variable, the problems
9628  # vanish in a puff of smoke.
9629  if test set != "${COLLECT_NAMES+set}"; then
9630    COLLECT_NAMES=
9631    export COLLECT_NAMES
9632  fi
9633  ;;
9634esac
9635
9636# Global variables:
9637ofile=libtool
9638can_build_shared=yes
9639
9640# All known linkers require a '.a' archive for static linking (except MSVC,
9641# which needs '.lib').
9642libext=a
9643
9644with_gnu_ld=$lt_cv_prog_gnu_ld
9645
9646old_CC=$CC
9647old_CFLAGS=$CFLAGS
9648
9649# Set sane defaults for various variables
9650test -z "$CC" && CC=cc
9651test -z "$LTCC" && LTCC=$CC
9652test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9653test -z "$LD" && LD=ld
9654test -z "$ac_objext" && ac_objext=o
9655
9656func_cc_basename $compiler
9657cc_basename=$func_cc_basename_result
9658
9659
9660# Only perform the check for file, if the check method requires it
9661test -z "$MAGIC_CMD" && MAGIC_CMD=file
9662case $deplibs_check_method in
9663file_magic*)
9664  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9666$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9667if ${lt_cv_path_MAGIC_CMD+:} false; then :
9668  $as_echo_n "(cached) " >&6
9669else
9670  case $MAGIC_CMD in
9671[\\/*] |  ?:[\\/]*)
9672  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9673  ;;
9674*)
9675  lt_save_MAGIC_CMD=$MAGIC_CMD
9676  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9677  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9678  for ac_dir in $ac_dummy; do
9679    IFS=$lt_save_ifs
9680    test -z "$ac_dir" && ac_dir=.
9681    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9682      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9683      if test -n "$file_magic_test_file"; then
9684	case $deplibs_check_method in
9685	"file_magic "*)
9686	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9687	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9688	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9689	    $EGREP "$file_magic_regex" > /dev/null; then
9690	    :
9691	  else
9692	    cat <<_LT_EOF 1>&2
9693
9694*** Warning: the command libtool uses to detect shared libraries,
9695*** $file_magic_cmd, produces output that libtool cannot recognize.
9696*** The result is that libtool may fail to recognize shared libraries
9697*** as such.  This will affect the creation of libtool libraries that
9698*** depend on shared libraries, but programs linked with such libtool
9699*** libraries will work regardless of this problem.  Nevertheless, you
9700*** may want to report the problem to your system manager and/or to
9701*** bug-libtool@gnu.org
9702
9703_LT_EOF
9704	  fi ;;
9705	esac
9706      fi
9707      break
9708    fi
9709  done
9710  IFS=$lt_save_ifs
9711  MAGIC_CMD=$lt_save_MAGIC_CMD
9712  ;;
9713esac
9714fi
9715
9716MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9717if test -n "$MAGIC_CMD"; then
9718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9719$as_echo "$MAGIC_CMD" >&6; }
9720else
9721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
9723fi
9724
9725
9726
9727
9728
9729if test -z "$lt_cv_path_MAGIC_CMD"; then
9730  if test -n "$ac_tool_prefix"; then
9731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9732$as_echo_n "checking for file... " >&6; }
9733if ${lt_cv_path_MAGIC_CMD+:} false; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  case $MAGIC_CMD in
9737[\\/*] |  ?:[\\/]*)
9738  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9739  ;;
9740*)
9741  lt_save_MAGIC_CMD=$MAGIC_CMD
9742  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9743  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9744  for ac_dir in $ac_dummy; do
9745    IFS=$lt_save_ifs
9746    test -z "$ac_dir" && ac_dir=.
9747    if test -f "$ac_dir/file"; then
9748      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9749      if test -n "$file_magic_test_file"; then
9750	case $deplibs_check_method in
9751	"file_magic "*)
9752	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9753	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9754	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9755	    $EGREP "$file_magic_regex" > /dev/null; then
9756	    :
9757	  else
9758	    cat <<_LT_EOF 1>&2
9759
9760*** Warning: the command libtool uses to detect shared libraries,
9761*** $file_magic_cmd, produces output that libtool cannot recognize.
9762*** The result is that libtool may fail to recognize shared libraries
9763*** as such.  This will affect the creation of libtool libraries that
9764*** depend on shared libraries, but programs linked with such libtool
9765*** libraries will work regardless of this problem.  Nevertheless, you
9766*** may want to report the problem to your system manager and/or to
9767*** bug-libtool@gnu.org
9768
9769_LT_EOF
9770	  fi ;;
9771	esac
9772      fi
9773      break
9774    fi
9775  done
9776  IFS=$lt_save_ifs
9777  MAGIC_CMD=$lt_save_MAGIC_CMD
9778  ;;
9779esac
9780fi
9781
9782MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9783if test -n "$MAGIC_CMD"; then
9784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9785$as_echo "$MAGIC_CMD" >&6; }
9786else
9787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788$as_echo "no" >&6; }
9789fi
9790
9791
9792  else
9793    MAGIC_CMD=:
9794  fi
9795fi
9796
9797  fi
9798  ;;
9799esac
9800
9801# Use C for the default configuration in the libtool script
9802
9803lt_save_CC=$CC
9804ac_ext=c
9805ac_cpp='$CPP $CPPFLAGS'
9806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808ac_compiler_gnu=$ac_cv_c_compiler_gnu
9809
9810
9811# Source file extension for C test sources.
9812ac_ext=c
9813
9814# Object file extension for compiled C test sources.
9815objext=o
9816objext=$objext
9817
9818# Code to be used in simple compile tests
9819lt_simple_compile_test_code="int some_variable = 0;"
9820
9821# Code to be used in simple link tests
9822lt_simple_link_test_code='int main(){return(0);}'
9823
9824
9825
9826
9827
9828
9829
9830# If no C compiler was specified, use CC.
9831LTCC=${LTCC-"$CC"}
9832
9833# If no C compiler flags were specified, use CFLAGS.
9834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9835
9836# Allow CC to be a program name with arguments.
9837compiler=$CC
9838
9839# Save the default compiler, since it gets overwritten when the other
9840# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9841compiler_DEFAULT=$CC
9842
9843# save warnings/boilerplate of simple test code
9844ac_outfile=conftest.$ac_objext
9845echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9846eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9847_lt_compiler_boilerplate=`cat conftest.err`
9848$RM conftest*
9849
9850ac_outfile=conftest.$ac_objext
9851echo "$lt_simple_link_test_code" >conftest.$ac_ext
9852eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9853_lt_linker_boilerplate=`cat conftest.err`
9854$RM -r conftest*
9855
9856
9857## CAVEAT EMPTOR:
9858## There is no encapsulation within the following macros, do not change
9859## the running order or otherwise move them around unless you know exactly
9860## what you are doing...
9861if test -n "$compiler"; then
9862
9863lt_prog_compiler_no_builtin_flag=
9864
9865if test yes = "$GCC"; then
9866  case $cc_basename in
9867  nvcc*)
9868    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9869  *)
9870    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9871  esac
9872
9873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9874$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9875if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9876  $as_echo_n "(cached) " >&6
9877else
9878  lt_cv_prog_compiler_rtti_exceptions=no
9879   ac_outfile=conftest.$ac_objext
9880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9882   # Insert the option either (1) after the last *FLAGS variable, or
9883   # (2) before a word containing "conftest.", or (3) at the end.
9884   # Note that $ac_compile itself does not contain backslashes and begins
9885   # with a dollar sign (not a hyphen), so the echo should work correctly.
9886   # The option is referenced via a variable to avoid confusing sed.
9887   lt_compile=`echo "$ac_compile" | $SED \
9888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890   -e 's:$: $lt_compiler_flag:'`
9891   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9892   (eval "$lt_compile" 2>conftest.err)
9893   ac_status=$?
9894   cat conftest.err >&5
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   if (exit $ac_status) && test -s "$ac_outfile"; then
9897     # The compiler can only warn and ignore the option if not recognized
9898     # So say no if there are warnings other than the usual output.
9899     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9900     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9902       lt_cv_prog_compiler_rtti_exceptions=yes
9903     fi
9904   fi
9905   $RM conftest*
9906
9907fi
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9909$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9910
9911if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9912    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9913else
9914    :
9915fi
9916
9917fi
9918
9919
9920
9921
9922
9923
9924  lt_prog_compiler_wl=
9925lt_prog_compiler_pic=
9926lt_prog_compiler_static=
9927
9928
9929  if test yes = "$GCC"; then
9930    lt_prog_compiler_wl='-Wl,'
9931    lt_prog_compiler_static='-static'
9932
9933    case $host_os in
9934      aix*)
9935      # All AIX code is PIC.
9936      if test ia64 = "$host_cpu"; then
9937	# AIX 5 now supports IA64 processor
9938	lt_prog_compiler_static='-Bstatic'
9939      fi
9940      lt_prog_compiler_pic='-fPIC'
9941      ;;
9942
9943    amigaos*)
9944      case $host_cpu in
9945      powerpc)
9946            # see comment about AmigaOS4 .so support
9947            lt_prog_compiler_pic='-fPIC'
9948        ;;
9949      m68k)
9950            # FIXME: we need at least 68020 code to build shared libraries, but
9951            # adding the '-m68020' flag to GCC prevents building anything better,
9952            # like '-m68040'.
9953            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9954        ;;
9955      esac
9956      ;;
9957
9958    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9959      # PIC is the default for these OSes.
9960      ;;
9961
9962    mingw* | cygwin* | pw32* | os2* | cegcc*)
9963      # This hack is so that the source file can tell whether it is being
9964      # built for inclusion in a dll (and should export symbols for example).
9965      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9966      # (--disable-auto-import) libraries
9967      lt_prog_compiler_pic='-DDLL_EXPORT'
9968      case $host_os in
9969      os2*)
9970	lt_prog_compiler_static='$wl-static'
9971	;;
9972      esac
9973      ;;
9974
9975    darwin* | rhapsody*)
9976      # PIC is the default on this platform
9977      # Common symbols not allowed in MH_DYLIB files
9978      lt_prog_compiler_pic='-fno-common'
9979      ;;
9980
9981    haiku*)
9982      # PIC is the default for Haiku.
9983      # The "-static" flag exists, but is broken.
9984      lt_prog_compiler_static=
9985      ;;
9986
9987    hpux*)
9988      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9989      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9990      # sets the default TLS model and affects inlining.
9991      case $host_cpu in
9992      hppa*64*)
9993	# +Z the default
9994	;;
9995      *)
9996	lt_prog_compiler_pic='-fPIC'
9997	;;
9998      esac
9999      ;;
10000
10001    interix[3-9]*)
10002      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10003      # Instead, we relocate shared libraries at runtime.
10004      ;;
10005
10006    msdosdjgpp*)
10007      # Just because we use GCC doesn't mean we suddenly get shared libraries
10008      # on systems that don't support them.
10009      lt_prog_compiler_can_build_shared=no
10010      enable_shared=no
10011      ;;
10012
10013    *nto* | *qnx*)
10014      # QNX uses GNU C++, but need to define -shared option too, otherwise
10015      # it will coredump.
10016      lt_prog_compiler_pic='-fPIC -shared'
10017      ;;
10018
10019    sysv4*MP*)
10020      if test -d /usr/nec; then
10021	lt_prog_compiler_pic=-Kconform_pic
10022      fi
10023      ;;
10024
10025    *)
10026      lt_prog_compiler_pic='-fPIC'
10027      ;;
10028    esac
10029
10030    case $cc_basename in
10031    nvcc*) # Cuda Compiler Driver 2.2
10032      lt_prog_compiler_wl='-Xlinker '
10033      if test -n "$lt_prog_compiler_pic"; then
10034        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10035      fi
10036      ;;
10037    esac
10038  else
10039    # PORTME Check for flag to pass linker flags through the system compiler.
10040    case $host_os in
10041    aix*)
10042      lt_prog_compiler_wl='-Wl,'
10043      if test ia64 = "$host_cpu"; then
10044	# AIX 5 now supports IA64 processor
10045	lt_prog_compiler_static='-Bstatic'
10046      else
10047	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10048      fi
10049      ;;
10050
10051    darwin* | rhapsody*)
10052      # PIC is the default on this platform
10053      # Common symbols not allowed in MH_DYLIB files
10054      lt_prog_compiler_pic='-fno-common'
10055      case $cc_basename in
10056      nagfor*)
10057        # NAG Fortran compiler
10058        lt_prog_compiler_wl='-Wl,-Wl,,'
10059        lt_prog_compiler_pic='-PIC'
10060        lt_prog_compiler_static='-Bstatic'
10061        ;;
10062      esac
10063      ;;
10064
10065    mingw* | cygwin* | pw32* | os2* | cegcc*)
10066      # This hack is so that the source file can tell whether it is being
10067      # built for inclusion in a dll (and should export symbols for example).
10068      lt_prog_compiler_pic='-DDLL_EXPORT'
10069      case $host_os in
10070      os2*)
10071	lt_prog_compiler_static='$wl-static'
10072	;;
10073      esac
10074      ;;
10075
10076    hpux9* | hpux10* | hpux11*)
10077      lt_prog_compiler_wl='-Wl,'
10078      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10079      # not for PA HP-UX.
10080      case $host_cpu in
10081      hppa*64*|ia64*)
10082	# +Z the default
10083	;;
10084      *)
10085	lt_prog_compiler_pic='+Z'
10086	;;
10087      esac
10088      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10089      lt_prog_compiler_static='$wl-a ${wl}archive'
10090      ;;
10091
10092    irix5* | irix6* | nonstopux*)
10093      lt_prog_compiler_wl='-Wl,'
10094      # PIC (with -KPIC) is the default.
10095      lt_prog_compiler_static='-non_shared'
10096      ;;
10097
10098    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10099      case $cc_basename in
10100      # old Intel for x86_64, which still supported -KPIC.
10101      ecc*)
10102	lt_prog_compiler_wl='-Wl,'
10103	lt_prog_compiler_pic='-KPIC'
10104	lt_prog_compiler_static='-static'
10105        ;;
10106      # icc used to be incompatible with GCC.
10107      # ICC 10 doesn't accept -KPIC any more.
10108      icc* | ifort*)
10109	lt_prog_compiler_wl='-Wl,'
10110	lt_prog_compiler_pic='-fPIC'
10111	lt_prog_compiler_static='-static'
10112        ;;
10113      # Lahey Fortran 8.1.
10114      lf95*)
10115	lt_prog_compiler_wl='-Wl,'
10116	lt_prog_compiler_pic='--shared'
10117	lt_prog_compiler_static='--static'
10118	;;
10119      nagfor*)
10120	# NAG Fortran compiler
10121	lt_prog_compiler_wl='-Wl,-Wl,,'
10122	lt_prog_compiler_pic='-PIC'
10123	lt_prog_compiler_static='-Bstatic'
10124	;;
10125      tcc*)
10126	# Fabrice Bellard et al's Tiny C Compiler
10127	lt_prog_compiler_wl='-Wl,'
10128	lt_prog_compiler_pic='-fPIC'
10129	lt_prog_compiler_static='-static'
10130	;;
10131      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10132        # Portland Group compilers (*not* the Pentium gcc compiler,
10133	# which looks to be a dead project)
10134	lt_prog_compiler_wl='-Wl,'
10135	lt_prog_compiler_pic='-fpic'
10136	lt_prog_compiler_static='-Bstatic'
10137        ;;
10138      ccc*)
10139        lt_prog_compiler_wl='-Wl,'
10140        # All Alpha code is PIC.
10141        lt_prog_compiler_static='-non_shared'
10142        ;;
10143      xl* | bgxl* | bgf* | mpixl*)
10144	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10145	lt_prog_compiler_wl='-Wl,'
10146	lt_prog_compiler_pic='-qpic'
10147	lt_prog_compiler_static='-qstaticlink'
10148	;;
10149      *)
10150	case `$CC -V 2>&1 | sed 5q` in
10151	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10152	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10153	  lt_prog_compiler_pic='-KPIC'
10154	  lt_prog_compiler_static='-Bstatic'
10155	  lt_prog_compiler_wl=''
10156	  ;;
10157	*Sun\ F* | *Sun*Fortran*)
10158	  lt_prog_compiler_pic='-KPIC'
10159	  lt_prog_compiler_static='-Bstatic'
10160	  lt_prog_compiler_wl='-Qoption ld '
10161	  ;;
10162	*Sun\ C*)
10163	  # Sun C 5.9
10164	  lt_prog_compiler_pic='-KPIC'
10165	  lt_prog_compiler_static='-Bstatic'
10166	  lt_prog_compiler_wl='-Wl,'
10167	  ;;
10168        *Intel*\ [CF]*Compiler*)
10169	  lt_prog_compiler_wl='-Wl,'
10170	  lt_prog_compiler_pic='-fPIC'
10171	  lt_prog_compiler_static='-static'
10172	  ;;
10173	*Portland\ Group*)
10174	  lt_prog_compiler_wl='-Wl,'
10175	  lt_prog_compiler_pic='-fpic'
10176	  lt_prog_compiler_static='-Bstatic'
10177	  ;;
10178	esac
10179	;;
10180      esac
10181      ;;
10182
10183    newsos6)
10184      lt_prog_compiler_pic='-KPIC'
10185      lt_prog_compiler_static='-Bstatic'
10186      ;;
10187
10188    *nto* | *qnx*)
10189      # QNX uses GNU C++, but need to define -shared option too, otherwise
10190      # it will coredump.
10191      lt_prog_compiler_pic='-fPIC -shared'
10192      ;;
10193
10194    osf3* | osf4* | osf5*)
10195      lt_prog_compiler_wl='-Wl,'
10196      # All OSF/1 code is PIC.
10197      lt_prog_compiler_static='-non_shared'
10198      ;;
10199
10200    rdos*)
10201      lt_prog_compiler_static='-non_shared'
10202      ;;
10203
10204    solaris*)
10205      lt_prog_compiler_pic='-KPIC'
10206      lt_prog_compiler_static='-Bstatic'
10207      case $cc_basename in
10208      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10209	lt_prog_compiler_wl='-Qoption ld ';;
10210      *)
10211	lt_prog_compiler_wl='-Wl,';;
10212      esac
10213      ;;
10214
10215    sunos4*)
10216      lt_prog_compiler_wl='-Qoption ld '
10217      lt_prog_compiler_pic='-PIC'
10218      lt_prog_compiler_static='-Bstatic'
10219      ;;
10220
10221    sysv4 | sysv4.2uw2* | sysv4.3*)
10222      lt_prog_compiler_wl='-Wl,'
10223      lt_prog_compiler_pic='-KPIC'
10224      lt_prog_compiler_static='-Bstatic'
10225      ;;
10226
10227    sysv4*MP*)
10228      if test -d /usr/nec; then
10229	lt_prog_compiler_pic='-Kconform_pic'
10230	lt_prog_compiler_static='-Bstatic'
10231      fi
10232      ;;
10233
10234    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10235      lt_prog_compiler_wl='-Wl,'
10236      lt_prog_compiler_pic='-KPIC'
10237      lt_prog_compiler_static='-Bstatic'
10238      ;;
10239
10240    unicos*)
10241      lt_prog_compiler_wl='-Wl,'
10242      lt_prog_compiler_can_build_shared=no
10243      ;;
10244
10245    uts4*)
10246      lt_prog_compiler_pic='-pic'
10247      lt_prog_compiler_static='-Bstatic'
10248      ;;
10249
10250    *)
10251      lt_prog_compiler_can_build_shared=no
10252      ;;
10253    esac
10254  fi
10255
10256case $host_os in
10257  # For platforms that do not support PIC, -DPIC is meaningless:
10258  *djgpp*)
10259    lt_prog_compiler_pic=
10260    ;;
10261  *)
10262    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10263    ;;
10264esac
10265
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10267$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10268if ${lt_cv_prog_compiler_pic+:} false; then :
10269  $as_echo_n "(cached) " >&6
10270else
10271  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10272fi
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10274$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10275lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10276
10277#
10278# Check to make sure the PIC flag actually works.
10279#
10280if test -n "$lt_prog_compiler_pic"; then
10281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10282$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10283if ${lt_cv_prog_compiler_pic_works+:} false; then :
10284  $as_echo_n "(cached) " >&6
10285else
10286  lt_cv_prog_compiler_pic_works=no
10287   ac_outfile=conftest.$ac_objext
10288   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10290   # Insert the option either (1) after the last *FLAGS variable, or
10291   # (2) before a word containing "conftest.", or (3) at the end.
10292   # Note that $ac_compile itself does not contain backslashes and begins
10293   # with a dollar sign (not a hyphen), so the echo should work correctly.
10294   # The option is referenced via a variable to avoid confusing sed.
10295   lt_compile=`echo "$ac_compile" | $SED \
10296   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10298   -e 's:$: $lt_compiler_flag:'`
10299   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10300   (eval "$lt_compile" 2>conftest.err)
10301   ac_status=$?
10302   cat conftest.err >&5
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   if (exit $ac_status) && test -s "$ac_outfile"; then
10305     # The compiler can only warn and ignore the option if not recognized
10306     # So say no if there are warnings other than the usual output.
10307     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10308     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10309     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10310       lt_cv_prog_compiler_pic_works=yes
10311     fi
10312   fi
10313   $RM conftest*
10314
10315fi
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10317$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10318
10319if test yes = "$lt_cv_prog_compiler_pic_works"; then
10320    case $lt_prog_compiler_pic in
10321     "" | " "*) ;;
10322     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10323     esac
10324else
10325    lt_prog_compiler_pic=
10326     lt_prog_compiler_can_build_shared=no
10327fi
10328
10329fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341#
10342# Check to make sure the static flag actually works.
10343#
10344wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10346$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10347if ${lt_cv_prog_compiler_static_works+:} false; then :
10348  $as_echo_n "(cached) " >&6
10349else
10350  lt_cv_prog_compiler_static_works=no
10351   save_LDFLAGS=$LDFLAGS
10352   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10353   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10354   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10355     # The linker can only warn and ignore the option if not recognized
10356     # So say no if there are warnings
10357     if test -s conftest.err; then
10358       # Append any errors to the config.log.
10359       cat conftest.err 1>&5
10360       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10361       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10362       if diff conftest.exp conftest.er2 >/dev/null; then
10363         lt_cv_prog_compiler_static_works=yes
10364       fi
10365     else
10366       lt_cv_prog_compiler_static_works=yes
10367     fi
10368   fi
10369   $RM -r conftest*
10370   LDFLAGS=$save_LDFLAGS
10371
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10374$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10375
10376if test yes = "$lt_cv_prog_compiler_static_works"; then
10377    :
10378else
10379    lt_prog_compiler_static=
10380fi
10381
10382
10383
10384
10385
10386
10387
10388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10389$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10390if ${lt_cv_prog_compiler_c_o+:} false; then :
10391  $as_echo_n "(cached) " >&6
10392else
10393  lt_cv_prog_compiler_c_o=no
10394   $RM -r conftest 2>/dev/null
10395   mkdir conftest
10396   cd conftest
10397   mkdir out
10398   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10399
10400   lt_compiler_flag="-o out/conftest2.$ac_objext"
10401   # Insert the option either (1) after the last *FLAGS variable, or
10402   # (2) before a word containing "conftest.", or (3) at the end.
10403   # Note that $ac_compile itself does not contain backslashes and begins
10404   # with a dollar sign (not a hyphen), so the echo should work correctly.
10405   lt_compile=`echo "$ac_compile" | $SED \
10406   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10407   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10408   -e 's:$: $lt_compiler_flag:'`
10409   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10410   (eval "$lt_compile" 2>out/conftest.err)
10411   ac_status=$?
10412   cat out/conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10415   then
10416     # The compiler can only warn and ignore the option if not recognized
10417     # So say no if there are warnings
10418     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10419     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10420     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10421       lt_cv_prog_compiler_c_o=yes
10422     fi
10423   fi
10424   chmod u+w . 2>&5
10425   $RM conftest*
10426   # SGI C++ compiler will create directory out/ii_files/ for
10427   # template instantiation
10428   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10429   $RM out/* && rmdir out
10430   cd ..
10431   $RM -r conftest
10432   $RM conftest*
10433
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10436$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10437
10438
10439
10440
10441
10442
10443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10444$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10445if ${lt_cv_prog_compiler_c_o+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  lt_cv_prog_compiler_c_o=no
10449   $RM -r conftest 2>/dev/null
10450   mkdir conftest
10451   cd conftest
10452   mkdir out
10453   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10454
10455   lt_compiler_flag="-o out/conftest2.$ac_objext"
10456   # Insert the option either (1) after the last *FLAGS variable, or
10457   # (2) before a word containing "conftest.", or (3) at the end.
10458   # Note that $ac_compile itself does not contain backslashes and begins
10459   # with a dollar sign (not a hyphen), so the echo should work correctly.
10460   lt_compile=`echo "$ac_compile" | $SED \
10461   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10462   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10463   -e 's:$: $lt_compiler_flag:'`
10464   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10465   (eval "$lt_compile" 2>out/conftest.err)
10466   ac_status=$?
10467   cat out/conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10470   then
10471     # The compiler can only warn and ignore the option if not recognized
10472     # So say no if there are warnings
10473     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10474     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10475     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10476       lt_cv_prog_compiler_c_o=yes
10477     fi
10478   fi
10479   chmod u+w . 2>&5
10480   $RM conftest*
10481   # SGI C++ compiler will create directory out/ii_files/ for
10482   # template instantiation
10483   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10484   $RM out/* && rmdir out
10485   cd ..
10486   $RM -r conftest
10487   $RM conftest*
10488
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10491$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10492
10493
10494
10495
10496hard_links=nottested
10497if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10498  # do not overwrite the value of need_locks provided by the user
10499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10500$as_echo_n "checking if we can lock with hard links... " >&6; }
10501  hard_links=yes
10502  $RM conftest*
10503  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10504  touch conftest.a
10505  ln conftest.a conftest.b 2>&5 || hard_links=no
10506  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10508$as_echo "$hard_links" >&6; }
10509  if test no = "$hard_links"; then
10510    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10511$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10512    need_locks=warn
10513  fi
10514else
10515  need_locks=no
10516fi
10517
10518
10519
10520
10521
10522
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10525
10526  runpath_var=
10527  allow_undefined_flag=
10528  always_export_symbols=no
10529  archive_cmds=
10530  archive_expsym_cmds=
10531  compiler_needs_object=no
10532  enable_shared_with_static_runtimes=no
10533  export_dynamic_flag_spec=
10534  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10535  hardcode_automatic=no
10536  hardcode_direct=no
10537  hardcode_direct_absolute=no
10538  hardcode_libdir_flag_spec=
10539  hardcode_libdir_separator=
10540  hardcode_minus_L=no
10541  hardcode_shlibpath_var=unsupported
10542  inherit_rpath=no
10543  link_all_deplibs=unknown
10544  module_cmds=
10545  module_expsym_cmds=
10546  old_archive_from_new_cmds=
10547  old_archive_from_expsyms_cmds=
10548  thread_safe_flag_spec=
10549  whole_archive_flag_spec=
10550  # include_expsyms should be a list of space-separated symbols to be *always*
10551  # included in the symbol list
10552  include_expsyms=
10553  # exclude_expsyms can be an extended regexp of symbols to exclude
10554  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10555  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10556  # as well as any symbol that contains 'd'.
10557  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10558  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10559  # platforms (ab)use it in PIC code, but their linkers get confused if
10560  # the symbol is explicitly referenced.  Since portable code cannot
10561  # rely on this symbol name, it's probably fine to never include it in
10562  # preloaded symbol tables.
10563  # Exclude shared library initialization/finalization symbols.
10564  extract_expsyms_cmds=
10565
10566  case $host_os in
10567  cygwin* | mingw* | pw32* | cegcc*)
10568    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10569    # When not using gcc, we currently assume that we are using
10570    # Microsoft Visual C++.
10571    if test yes != "$GCC"; then
10572      with_gnu_ld=no
10573    fi
10574    ;;
10575  interix*)
10576    # we just hope/assume this is gcc and not c89 (= MSVC++)
10577    with_gnu_ld=yes
10578    ;;
10579  openbsd* | bitrig*)
10580    with_gnu_ld=no
10581    ;;
10582  linux* | k*bsd*-gnu | gnu*)
10583    link_all_deplibs=no
10584    ;;
10585  esac
10586
10587  ld_shlibs=yes
10588
10589  # On some targets, GNU ld is compatible enough with the native linker
10590  # that we're better off using the native interface for both.
10591  lt_use_gnu_ld_interface=no
10592  if test yes = "$with_gnu_ld"; then
10593    case $host_os in
10594      aix*)
10595	# The AIX port of GNU ld has always aspired to compatibility
10596	# with the native linker.  However, as the warning in the GNU ld
10597	# block says, versions before 2.19.5* couldn't really create working
10598	# shared libraries, regardless of the interface used.
10599	case `$LD -v 2>&1` in
10600	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10601	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10602	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10603	  *)
10604	    lt_use_gnu_ld_interface=yes
10605	    ;;
10606	esac
10607	;;
10608      *)
10609	lt_use_gnu_ld_interface=yes
10610	;;
10611    esac
10612  fi
10613
10614  if test yes = "$lt_use_gnu_ld_interface"; then
10615    # If archive_cmds runs LD, not CC, wlarc should be empty
10616    wlarc='$wl'
10617
10618    # Set some defaults for GNU ld with shared library support. These
10619    # are reset later if shared libraries are not supported. Putting them
10620    # here allows them to be overridden if necessary.
10621    runpath_var=LD_RUN_PATH
10622    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10623    export_dynamic_flag_spec='$wl--export-dynamic'
10624    # ancient GNU ld didn't support --whole-archive et. al.
10625    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10626      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10627    else
10628      whole_archive_flag_spec=
10629    fi
10630    supports_anon_versioning=no
10631    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10632      *GNU\ gold*) supports_anon_versioning=yes ;;
10633      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10634      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10635      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10636      *\ 2.11.*) ;; # other 2.11 versions
10637      *) supports_anon_versioning=yes ;;
10638    esac
10639
10640    # See if GNU ld supports shared libraries.
10641    case $host_os in
10642    aix[3-9]*)
10643      # On AIX/PPC, the GNU linker is very broken
10644      if test ia64 != "$host_cpu"; then
10645	ld_shlibs=no
10646	cat <<_LT_EOF 1>&2
10647
10648*** Warning: the GNU linker, at least up to release 2.19, is reported
10649*** to be unable to reliably create shared libraries on AIX.
10650*** Therefore, libtool is disabling shared libraries support.  If you
10651*** really care for shared libraries, you may want to install binutils
10652*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10653*** You will then need to restart the configuration process.
10654
10655_LT_EOF
10656      fi
10657      ;;
10658
10659    amigaos*)
10660      case $host_cpu in
10661      powerpc)
10662            # see comment about AmigaOS4 .so support
10663            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10664            archive_expsym_cmds=''
10665        ;;
10666      m68k)
10667            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)'
10668            hardcode_libdir_flag_spec='-L$libdir'
10669            hardcode_minus_L=yes
10670        ;;
10671      esac
10672      ;;
10673
10674    beos*)
10675      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10676	allow_undefined_flag=unsupported
10677	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10678	# support --undefined.  This deserves some investigation.  FIXME
10679	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10680      else
10681	ld_shlibs=no
10682      fi
10683      ;;
10684
10685    cygwin* | mingw* | pw32* | cegcc*)
10686      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10687      # as there is no search path for DLLs.
10688      hardcode_libdir_flag_spec='-L$libdir'
10689      export_dynamic_flag_spec='$wl--export-all-symbols'
10690      allow_undefined_flag=unsupported
10691      always_export_symbols=no
10692      enable_shared_with_static_runtimes=yes
10693      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'
10694      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10695
10696      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10697        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10698	# If the export-symbols file already is a .def file, use it as
10699	# is; otherwise, prepend EXPORTS...
10700	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10701          cp $export_symbols $output_objdir/$soname.def;
10702        else
10703          echo EXPORTS > $output_objdir/$soname.def;
10704          cat $export_symbols >> $output_objdir/$soname.def;
10705        fi~
10706        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10707      else
10708	ld_shlibs=no
10709      fi
10710      ;;
10711
10712    haiku*)
10713      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10714      link_all_deplibs=yes
10715      ;;
10716
10717    os2*)
10718      hardcode_libdir_flag_spec='-L$libdir'
10719      hardcode_minus_L=yes
10720      allow_undefined_flag=unsupported
10721      shrext_cmds=.dll
10722      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10723	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10724	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10725	$ECHO EXPORTS >> $output_objdir/$libname.def~
10726	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10727	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10728	emximp -o $lib $output_objdir/$libname.def'
10729      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10730	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10731	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10732	$ECHO EXPORTS >> $output_objdir/$libname.def~
10733	prefix_cmds="$SED"~
10734	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10735	  prefix_cmds="$prefix_cmds -e 1d";
10736	fi~
10737	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10738	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10739	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10740	emximp -o $lib $output_objdir/$libname.def'
10741      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10742      enable_shared_with_static_runtimes=yes
10743      ;;
10744
10745    interix[3-9]*)
10746      hardcode_direct=no
10747      hardcode_shlibpath_var=no
10748      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10749      export_dynamic_flag_spec='$wl-E'
10750      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10751      # Instead, shared libraries are loaded at an image base (0x10000000 by
10752      # default) and relocated if they conflict, which is a slow very memory
10753      # consuming and fragmenting process.  To avoid this, we pick a random,
10754      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10755      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10756      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10757      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'
10758      ;;
10759
10760    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10761      tmp_diet=no
10762      if test linux-dietlibc = "$host_os"; then
10763	case $cc_basename in
10764	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10765	esac
10766      fi
10767      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10768	 && test no = "$tmp_diet"
10769      then
10770	tmp_addflag=' $pic_flag'
10771	tmp_sharedflag='-shared'
10772	case $cc_basename,$host_cpu in
10773        pgcc*)				# Portland Group C compiler
10774	  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'
10775	  tmp_addflag=' $pic_flag'
10776	  ;;
10777	pgf77* | pgf90* | pgf95* | pgfortran*)
10778					# Portland Group f77 and f90 compilers
10779	  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'
10780	  tmp_addflag=' $pic_flag -Mnomain' ;;
10781	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10782	  tmp_addflag=' -i_dynamic' ;;
10783	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10784	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10785	ifc* | ifort*)			# Intel Fortran compiler
10786	  tmp_addflag=' -nofor_main' ;;
10787	lf95*)				# Lahey Fortran 8.1
10788	  whole_archive_flag_spec=
10789	  tmp_sharedflag='--shared' ;;
10790        nagfor*)                        # NAGFOR 5.3
10791          tmp_sharedflag='-Wl,-shared' ;;
10792	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10793	  tmp_sharedflag='-qmkshrobj'
10794	  tmp_addflag= ;;
10795	nvcc*)	# Cuda Compiler Driver 2.2
10796	  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'
10797	  compiler_needs_object=yes
10798	  ;;
10799	esac
10800	case `$CC -V 2>&1 | sed 5q` in
10801	*Sun\ C*)			# Sun C 5.9
10802	  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'
10803	  compiler_needs_object=yes
10804	  tmp_sharedflag='-G' ;;
10805	*Sun\ F*)			# Sun Fortran 8.3
10806	  tmp_sharedflag='-G' ;;
10807	esac
10808	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10809
10810        if test yes = "$supports_anon_versioning"; then
10811          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10812            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10813            echo "local: *; };" >> $output_objdir/$libname.ver~
10814            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10815        fi
10816
10817	case $cc_basename in
10818	tcc*)
10819	  export_dynamic_flag_spec='-rdynamic'
10820	  ;;
10821	xlf* | bgf* | bgxlf* | mpixlf*)
10822	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10823	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10824	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10825	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10826	  if test yes = "$supports_anon_versioning"; then
10827	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10828              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10829              echo "local: *; };" >> $output_objdir/$libname.ver~
10830              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10831	  fi
10832	  ;;
10833	esac
10834      else
10835        ld_shlibs=no
10836      fi
10837      ;;
10838
10839    netbsd* | netbsdelf*-gnu)
10840      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10841	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10842	wlarc=
10843      else
10844	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10845	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10846      fi
10847      ;;
10848
10849    solaris*)
10850      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10851	ld_shlibs=no
10852	cat <<_LT_EOF 1>&2
10853
10854*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10855*** create shared libraries on Solaris systems.  Therefore, libtool
10856*** is disabling shared libraries support.  We urge you to upgrade GNU
10857*** binutils to release 2.9.1 or newer.  Another option is to modify
10858*** your PATH or compiler configuration so that the native linker is
10859*** used, and then restart.
10860
10861_LT_EOF
10862      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10863	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10864	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10865      else
10866	ld_shlibs=no
10867      fi
10868      ;;
10869
10870    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10871      case `$LD -v 2>&1` in
10872        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10873	ld_shlibs=no
10874	cat <<_LT_EOF 1>&2
10875
10876*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10877*** reliably create shared libraries on SCO systems.  Therefore, libtool
10878*** is disabling shared libraries support.  We urge you to upgrade GNU
10879*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10880*** your PATH or compiler configuration so that the native linker is
10881*** used, and then restart.
10882
10883_LT_EOF
10884	;;
10885	*)
10886	  # For security reasons, it is highly recommended that you always
10887	  # use absolute paths for naming shared libraries, and exclude the
10888	  # DT_RUNPATH tag from executables and libraries.  But doing so
10889	  # requires that you compile everything twice, which is a pain.
10890	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10891	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10892	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10893	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10894	  else
10895	    ld_shlibs=no
10896	  fi
10897	;;
10898      esac
10899      ;;
10900
10901    sunos4*)
10902      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10903      wlarc=
10904      hardcode_direct=yes
10905      hardcode_shlibpath_var=no
10906      ;;
10907
10908    *)
10909      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10910	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10911	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10912      else
10913	ld_shlibs=no
10914      fi
10915      ;;
10916    esac
10917
10918    if test no = "$ld_shlibs"; then
10919      runpath_var=
10920      hardcode_libdir_flag_spec=
10921      export_dynamic_flag_spec=
10922      whole_archive_flag_spec=
10923    fi
10924  else
10925    # PORTME fill in a description of your system's linker (not GNU ld)
10926    case $host_os in
10927    aix3*)
10928      allow_undefined_flag=unsupported
10929      always_export_symbols=yes
10930      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'
10931      # Note: this linker hardcodes the directories in LIBPATH if there
10932      # are no directories specified by -L.
10933      hardcode_minus_L=yes
10934      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10935	# Neither direct hardcoding nor static linking is supported with a
10936	# broken collect2.
10937	hardcode_direct=unsupported
10938      fi
10939      ;;
10940
10941    aix[4-9]*)
10942      if test ia64 = "$host_cpu"; then
10943	# On IA64, the linker does run time linking by default, so we don't
10944	# have to do anything special.
10945	aix_use_runtimelinking=no
10946	exp_sym_flag='-Bexport'
10947	no_entry_flag=
10948      else
10949	# If we're using GNU nm, then we don't want the "-C" option.
10950	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10951	# Without the "-l" option, or with the "-B" option, AIX nm treats
10952	# weak defined symbols like other global defined symbols, whereas
10953	# GNU nm marks them as "W".
10954	# While the 'weak' keyword is ignored in the Export File, we need
10955	# it in the Import File for the 'aix-soname' feature, so we have
10956	# to replace the "-B" option with "-P" for AIX nm.
10957	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10958	  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'
10959	else
10960	  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'
10961	fi
10962	aix_use_runtimelinking=no
10963
10964	# Test if we are trying to use run time linking or normal
10965	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10966	# have runtime linking enabled, and use it for executables.
10967	# For shared libraries, we enable/disable runtime linking
10968	# depending on the kind of the shared library created -
10969	# when "with_aix_soname,aix_use_runtimelinking" is:
10970	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10971	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10972	#            lib.a           static archive
10973	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10974	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10975	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10976	#            lib.a(lib.so.V) shared, rtl:no
10977	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10978	#            lib.a           static archive
10979	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10980	  for ld_flag in $LDFLAGS; do
10981	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10982	    aix_use_runtimelinking=yes
10983	    break
10984	  fi
10985	  done
10986	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10987	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10988	    # so we don't have lib.a shared libs to link our executables.
10989	    # We have to force runtime linking in this case.
10990	    aix_use_runtimelinking=yes
10991	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10992	  fi
10993	  ;;
10994	esac
10995
10996	exp_sym_flag='-bexport'
10997	no_entry_flag='-bnoentry'
10998      fi
10999
11000      # When large executables or shared objects are built, AIX ld can
11001      # have problems creating the table of contents.  If linking a library
11002      # or program results in "error TOC overflow" add -mminimal-toc to
11003      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11004      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11005
11006      archive_cmds=''
11007      hardcode_direct=yes
11008      hardcode_direct_absolute=yes
11009      hardcode_libdir_separator=':'
11010      link_all_deplibs=yes
11011      file_list_spec='$wl-f,'
11012      case $with_aix_soname,$aix_use_runtimelinking in
11013      aix,*) ;; # traditional, no import file
11014      svr4,* | *,yes) # use import file
11015	# The Import File defines what to hardcode.
11016	hardcode_direct=no
11017	hardcode_direct_absolute=no
11018	;;
11019      esac
11020
11021      if test yes = "$GCC"; then
11022	case $host_os in aix4.[012]|aix4.[012].*)
11023	# We only want to do this on AIX 4.2 and lower, the check
11024	# below for broken collect2 doesn't work under 4.3+
11025	  collect2name=`$CC -print-prog-name=collect2`
11026	  if test -f "$collect2name" &&
11027	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11028	  then
11029	  # We have reworked collect2
11030	  :
11031	  else
11032	  # We have old collect2
11033	  hardcode_direct=unsupported
11034	  # It fails to find uninstalled libraries when the uninstalled
11035	  # path is not listed in the libpath.  Setting hardcode_minus_L
11036	  # to unsupported forces relinking
11037	  hardcode_minus_L=yes
11038	  hardcode_libdir_flag_spec='-L$libdir'
11039	  hardcode_libdir_separator=
11040	  fi
11041	  ;;
11042	esac
11043	shared_flag='-shared'
11044	if test yes = "$aix_use_runtimelinking"; then
11045	  shared_flag="$shared_flag "'$wl-G'
11046	fi
11047	# Need to ensure runtime linking is disabled for the traditional
11048	# shared library, or the linker may eventually find shared libraries
11049	# /with/ Import File - we do not want to mix them.
11050	shared_flag_aix='-shared'
11051	shared_flag_svr4='-shared $wl-G'
11052      else
11053	# not using gcc
11054	if test ia64 = "$host_cpu"; then
11055	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11056	# chokes on -Wl,-G. The following line is correct:
11057	  shared_flag='-G'
11058	else
11059	  if test yes = "$aix_use_runtimelinking"; then
11060	    shared_flag='$wl-G'
11061	  else
11062	    shared_flag='$wl-bM:SRE'
11063	  fi
11064	  shared_flag_aix='$wl-bM:SRE'
11065	  shared_flag_svr4='$wl-G'
11066	fi
11067      fi
11068
11069      export_dynamic_flag_spec='$wl-bexpall'
11070      # It seems that -bexpall does not export symbols beginning with
11071      # underscore (_), so it is better to generate a list of symbols to export.
11072      always_export_symbols=yes
11073      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11074	# Warning - without using the other runtime loading flags (-brtl),
11075	# -berok will link without error, but may produce a broken library.
11076	allow_undefined_flag='-berok'
11077        # Determine the default libpath from the value encoded in an
11078        # empty executable.
11079        if test set = "${lt_cv_aix_libpath+set}"; then
11080  aix_libpath=$lt_cv_aix_libpath
11081else
11082  if ${lt_cv_aix_libpath_+:} false; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h.  */
11087
11088int
11089main ()
11090{
11091
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"; then :
11097
11098  lt_aix_libpath_sed='
11099      /Import File Strings/,/^$/ {
11100	  /^0/ {
11101	      s/^0  *\([^ ]*\) *$/\1/
11102	      p
11103	  }
11104      }'
11105  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11106  # Check for a 64-bit object if we didn't find anything.
11107  if test -z "$lt_cv_aix_libpath_"; then
11108    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11109  fi
11110fi
11111rm -f core conftest.err conftest.$ac_objext \
11112    conftest$ac_exeext conftest.$ac_ext
11113  if test -z "$lt_cv_aix_libpath_"; then
11114    lt_cv_aix_libpath_=/usr/lib:/lib
11115  fi
11116
11117fi
11118
11119  aix_libpath=$lt_cv_aix_libpath_
11120fi
11121
11122        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11123        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
11124      else
11125	if test ia64 = "$host_cpu"; then
11126	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11127	  allow_undefined_flag="-z nodefs"
11128	  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"
11129	else
11130	 # Determine the default libpath from the value encoded in an
11131	 # empty executable.
11132	 if test set = "${lt_cv_aix_libpath+set}"; then
11133  aix_libpath=$lt_cv_aix_libpath
11134else
11135  if ${lt_cv_aix_libpath_+:} false; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139/* end confdefs.h.  */
11140
11141int
11142main ()
11143{
11144
11145  ;
11146  return 0;
11147}
11148_ACEOF
11149if ac_fn_c_try_link "$LINENO"; then :
11150
11151  lt_aix_libpath_sed='
11152      /Import File Strings/,/^$/ {
11153	  /^0/ {
11154	      s/^0  *\([^ ]*\) *$/\1/
11155	      p
11156	  }
11157      }'
11158  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11159  # Check for a 64-bit object if we didn't find anything.
11160  if test -z "$lt_cv_aix_libpath_"; then
11161    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11162  fi
11163fi
11164rm -f core conftest.err conftest.$ac_objext \
11165    conftest$ac_exeext conftest.$ac_ext
11166  if test -z "$lt_cv_aix_libpath_"; then
11167    lt_cv_aix_libpath_=/usr/lib:/lib
11168  fi
11169
11170fi
11171
11172  aix_libpath=$lt_cv_aix_libpath_
11173fi
11174
11175	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11176	  # Warning - without using the other run time loading flags,
11177	  # -berok will link without error, but may produce a broken library.
11178	  no_undefined_flag=' $wl-bernotok'
11179	  allow_undefined_flag=' $wl-berok'
11180	  if test yes = "$with_gnu_ld"; then
11181	    # We only use this code for GNU lds that support --whole-archive.
11182	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11183	  else
11184	    # Exported symbols can be pulled into shared objects from archives
11185	    whole_archive_flag_spec='$convenience'
11186	  fi
11187	  archive_cmds_need_lc=yes
11188	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11189	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11190	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11191	  if test svr4 != "$with_aix_soname"; then
11192	    # This is similar to how AIX traditionally builds its shared libraries.
11193	    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'
11194	  fi
11195	  if test aix != "$with_aix_soname"; then
11196	    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'
11197	  else
11198	    # used by -dlpreopen to get the symbols
11199	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11200	  fi
11201	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11202	fi
11203      fi
11204      ;;
11205
11206    amigaos*)
11207      case $host_cpu in
11208      powerpc)
11209            # see comment about AmigaOS4 .so support
11210            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11211            archive_expsym_cmds=''
11212        ;;
11213      m68k)
11214            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)'
11215            hardcode_libdir_flag_spec='-L$libdir'
11216            hardcode_minus_L=yes
11217        ;;
11218      esac
11219      ;;
11220
11221    bsdi[45]*)
11222      export_dynamic_flag_spec=-rdynamic
11223      ;;
11224
11225    cygwin* | mingw* | pw32* | cegcc*)
11226      # When not using gcc, we currently assume that we are using
11227      # Microsoft Visual C++.
11228      # hardcode_libdir_flag_spec is actually meaningless, as there is
11229      # no search path for DLLs.
11230      case $cc_basename in
11231      cl*)
11232	# Native MSVC
11233	hardcode_libdir_flag_spec=' '
11234	allow_undefined_flag=unsupported
11235	always_export_symbols=yes
11236	file_list_spec='@'
11237	# Tell ltmain to make .lib files, not .a files.
11238	libext=lib
11239	# Tell ltmain to make .dll files, not .so files.
11240	shrext_cmds=.dll
11241	# FIXME: Setting linknames here is a bad hack.
11242	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11243	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11244            cp "$export_symbols" "$output_objdir/$soname.def";
11245            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11246          else
11247            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11248          fi~
11249          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11250          linknames='
11251	# The linker will not automatically build a static lib if we build a DLL.
11252	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11253	enable_shared_with_static_runtimes=yes
11254	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11255	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11256	# Don't use ranlib
11257	old_postinstall_cmds='chmod 644 $oldlib'
11258	postlink_cmds='lt_outputfile="@OUTPUT@"~
11259          lt_tool_outputfile="@TOOL_OUTPUT@"~
11260          case $lt_outputfile in
11261            *.exe|*.EXE) ;;
11262            *)
11263              lt_outputfile=$lt_outputfile.exe
11264              lt_tool_outputfile=$lt_tool_outputfile.exe
11265              ;;
11266          esac~
11267          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11268            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11269            $RM "$lt_outputfile.manifest";
11270          fi'
11271	;;
11272      *)
11273	# Assume MSVC wrapper
11274	hardcode_libdir_flag_spec=' '
11275	allow_undefined_flag=unsupported
11276	# Tell ltmain to make .lib files, not .a files.
11277	libext=lib
11278	# Tell ltmain to make .dll files, not .so files.
11279	shrext_cmds=.dll
11280	# FIXME: Setting linknames here is a bad hack.
11281	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11282	# The linker will automatically build a .lib file if we build a DLL.
11283	old_archive_from_new_cmds='true'
11284	# FIXME: Should let the user specify the lib program.
11285	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11286	enable_shared_with_static_runtimes=yes
11287	;;
11288      esac
11289      ;;
11290
11291    darwin* | rhapsody*)
11292
11293
11294  archive_cmds_need_lc=no
11295  hardcode_direct=no
11296  hardcode_automatic=yes
11297  hardcode_shlibpath_var=unsupported
11298  if test yes = "$lt_cv_ld_force_load"; then
11299    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\"`'
11300
11301  else
11302    whole_archive_flag_spec=''
11303  fi
11304  link_all_deplibs=yes
11305  allow_undefined_flag=$_lt_dar_allow_undefined
11306  case $cc_basename in
11307     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11308     *) _lt_dar_can_shared=$GCC ;;
11309  esac
11310  if test yes = "$_lt_dar_can_shared"; then
11311    output_verbose_link_cmd=func_echo_all
11312    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11313    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11314    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"
11315    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"
11316
11317  else
11318  ld_shlibs=no
11319  fi
11320
11321      ;;
11322
11323    dgux*)
11324      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11325      hardcode_libdir_flag_spec='-L$libdir'
11326      hardcode_shlibpath_var=no
11327      ;;
11328
11329    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11330    # support.  Future versions do this automatically, but an explicit c++rt0.o
11331    # does not break anything, and helps significantly (at the cost of a little
11332    # extra space).
11333    freebsd2.2*)
11334      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11335      hardcode_libdir_flag_spec='-R$libdir'
11336      hardcode_direct=yes
11337      hardcode_shlibpath_var=no
11338      ;;
11339
11340    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11341    freebsd2.*)
11342      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11343      hardcode_direct=yes
11344      hardcode_minus_L=yes
11345      hardcode_shlibpath_var=no
11346      ;;
11347
11348    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11349    freebsd* | dragonfly*)
11350      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11351      hardcode_libdir_flag_spec='-R$libdir'
11352      hardcode_direct=yes
11353      hardcode_shlibpath_var=no
11354      ;;
11355
11356    hpux9*)
11357      if test yes = "$GCC"; then
11358	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'
11359      else
11360	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'
11361      fi
11362      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11363      hardcode_libdir_separator=:
11364      hardcode_direct=yes
11365
11366      # hardcode_minus_L: Not really in the search PATH,
11367      # but as the default location of the library.
11368      hardcode_minus_L=yes
11369      export_dynamic_flag_spec='$wl-E'
11370      ;;
11371
11372    hpux10*)
11373      if test yes,no = "$GCC,$with_gnu_ld"; then
11374	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11375      else
11376	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11377      fi
11378      if test no = "$with_gnu_ld"; then
11379	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11380	hardcode_libdir_separator=:
11381	hardcode_direct=yes
11382	hardcode_direct_absolute=yes
11383	export_dynamic_flag_spec='$wl-E'
11384	# hardcode_minus_L: Not really in the search PATH,
11385	# but as the default location of the library.
11386	hardcode_minus_L=yes
11387      fi
11388      ;;
11389
11390    hpux11*)
11391      if test yes,no = "$GCC,$with_gnu_ld"; then
11392	case $host_cpu in
11393	hppa*64*)
11394	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11395	  ;;
11396	ia64*)
11397	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11398	  ;;
11399	*)
11400	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11401	  ;;
11402	esac
11403      else
11404	case $host_cpu in
11405	hppa*64*)
11406	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11407	  ;;
11408	ia64*)
11409	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11410	  ;;
11411	*)
11412
11413	  # Older versions of the 11.00 compiler do not understand -b yet
11414	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11415	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11416$as_echo_n "checking if $CC understands -b... " >&6; }
11417if ${lt_cv_prog_compiler__b+:} false; then :
11418  $as_echo_n "(cached) " >&6
11419else
11420  lt_cv_prog_compiler__b=no
11421   save_LDFLAGS=$LDFLAGS
11422   LDFLAGS="$LDFLAGS -b"
11423   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11424   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11425     # The linker can only warn and ignore the option if not recognized
11426     # So say no if there are warnings
11427     if test -s conftest.err; then
11428       # Append any errors to the config.log.
11429       cat conftest.err 1>&5
11430       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11431       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11432       if diff conftest.exp conftest.er2 >/dev/null; then
11433         lt_cv_prog_compiler__b=yes
11434       fi
11435     else
11436       lt_cv_prog_compiler__b=yes
11437     fi
11438   fi
11439   $RM -r conftest*
11440   LDFLAGS=$save_LDFLAGS
11441
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11444$as_echo "$lt_cv_prog_compiler__b" >&6; }
11445
11446if test yes = "$lt_cv_prog_compiler__b"; then
11447    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11448else
11449    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11450fi
11451
11452	  ;;
11453	esac
11454      fi
11455      if test no = "$with_gnu_ld"; then
11456	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11457	hardcode_libdir_separator=:
11458
11459	case $host_cpu in
11460	hppa*64*|ia64*)
11461	  hardcode_direct=no
11462	  hardcode_shlibpath_var=no
11463	  ;;
11464	*)
11465	  hardcode_direct=yes
11466	  hardcode_direct_absolute=yes
11467	  export_dynamic_flag_spec='$wl-E'
11468
11469	  # hardcode_minus_L: Not really in the search PATH,
11470	  # but as the default location of the library.
11471	  hardcode_minus_L=yes
11472	  ;;
11473	esac
11474      fi
11475      ;;
11476
11477    irix5* | irix6* | nonstopux*)
11478      if test yes = "$GCC"; then
11479	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'
11480	# Try to use the -exported_symbol ld option, if it does not
11481	# work, assume that -exports_file does not work either and
11482	# implicitly export all symbols.
11483	# This should be the same for all languages, so no per-tag cache variable.
11484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11485$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11486if ${lt_cv_irix_exported_symbol+:} false; then :
11487  $as_echo_n "(cached) " >&6
11488else
11489  save_LDFLAGS=$LDFLAGS
11490	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11491	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h.  */
11493int foo (void) { return 0; }
11494_ACEOF
11495if ac_fn_c_try_link "$LINENO"; then :
11496  lt_cv_irix_exported_symbol=yes
11497else
11498  lt_cv_irix_exported_symbol=no
11499fi
11500rm -f core conftest.err conftest.$ac_objext \
11501    conftest$ac_exeext conftest.$ac_ext
11502           LDFLAGS=$save_LDFLAGS
11503fi
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11505$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11506	if test yes = "$lt_cv_irix_exported_symbol"; then
11507          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'
11508	fi
11509	link_all_deplibs=no
11510      else
11511	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'
11512	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'
11513      fi
11514      archive_cmds_need_lc='no'
11515      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11516      hardcode_libdir_separator=:
11517      inherit_rpath=yes
11518      link_all_deplibs=yes
11519      ;;
11520
11521    linux*)
11522      case $cc_basename in
11523      tcc*)
11524	# Fabrice Bellard et al's Tiny C Compiler
11525	ld_shlibs=yes
11526	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11527	;;
11528      esac
11529      ;;
11530
11531    netbsd* | netbsdelf*-gnu)
11532      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11533	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11534      else
11535	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11536      fi
11537      hardcode_libdir_flag_spec='-R$libdir'
11538      hardcode_direct=yes
11539      hardcode_shlibpath_var=no
11540      ;;
11541
11542    newsos6)
11543      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11544      hardcode_direct=yes
11545      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11546      hardcode_libdir_separator=:
11547      hardcode_shlibpath_var=no
11548      ;;
11549
11550    *nto* | *qnx*)
11551      ;;
11552
11553    openbsd* | bitrig*)
11554      if test -f /usr/libexec/ld.so; then
11555	hardcode_direct=yes
11556	hardcode_shlibpath_var=no
11557	hardcode_direct_absolute=yes
11558	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11559	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11560	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11561	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11562	  export_dynamic_flag_spec='$wl-E'
11563	else
11564	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11565	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11566	fi
11567      else
11568	ld_shlibs=no
11569      fi
11570      ;;
11571
11572    os2*)
11573      hardcode_libdir_flag_spec='-L$libdir'
11574      hardcode_minus_L=yes
11575      allow_undefined_flag=unsupported
11576      shrext_cmds=.dll
11577      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11578	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11579	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11580	$ECHO EXPORTS >> $output_objdir/$libname.def~
11581	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11582	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11583	emximp -o $lib $output_objdir/$libname.def'
11584      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11585	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11586	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11587	$ECHO EXPORTS >> $output_objdir/$libname.def~
11588	prefix_cmds="$SED"~
11589	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11590	  prefix_cmds="$prefix_cmds -e 1d";
11591	fi~
11592	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11593	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11594	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11595	emximp -o $lib $output_objdir/$libname.def'
11596      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11597      enable_shared_with_static_runtimes=yes
11598      ;;
11599
11600    osf3*)
11601      if test yes = "$GCC"; then
11602	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11603	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'
11604      else
11605	allow_undefined_flag=' -expect_unresolved \*'
11606	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'
11607      fi
11608      archive_cmds_need_lc='no'
11609      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11610      hardcode_libdir_separator=:
11611      ;;
11612
11613    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11614      if test yes = "$GCC"; then
11615	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11616	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'
11617	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11618      else
11619	allow_undefined_flag=' -expect_unresolved \*'
11620	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'
11621	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~
11622          $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'
11623
11624	# Both c and cxx compiler support -rpath directly
11625	hardcode_libdir_flag_spec='-rpath $libdir'
11626      fi
11627      archive_cmds_need_lc='no'
11628      hardcode_libdir_separator=:
11629      ;;
11630
11631    solaris*)
11632      no_undefined_flag=' -z defs'
11633      if test yes = "$GCC"; then
11634	wlarc='$wl'
11635	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11636	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11637          $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'
11638      else
11639	case `$CC -V 2>&1` in
11640	*"Compilers 5.0"*)
11641	  wlarc=''
11642	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11644            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11645	  ;;
11646	*)
11647	  wlarc='$wl'
11648	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11649	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11650            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11651	  ;;
11652	esac
11653      fi
11654      hardcode_libdir_flag_spec='-R$libdir'
11655      hardcode_shlibpath_var=no
11656      case $host_os in
11657      solaris2.[0-5] | solaris2.[0-5].*) ;;
11658      *)
11659	# The compiler driver will combine and reorder linker options,
11660	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11661	# but is careful enough not to reorder.
11662	# Supported since Solaris 2.6 (maybe 2.5.1?)
11663	if test yes = "$GCC"; then
11664	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11665	else
11666	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11667	fi
11668	;;
11669      esac
11670      link_all_deplibs=yes
11671      ;;
11672
11673    sunos4*)
11674      if test sequent = "$host_vendor"; then
11675	# Use $CC to link under sequent, because it throws in some extra .o
11676	# files that make .init and .fini sections work.
11677	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11678      else
11679	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11680      fi
11681      hardcode_libdir_flag_spec='-L$libdir'
11682      hardcode_direct=yes
11683      hardcode_minus_L=yes
11684      hardcode_shlibpath_var=no
11685      ;;
11686
11687    sysv4)
11688      case $host_vendor in
11689	sni)
11690	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11691	  hardcode_direct=yes # is this really true???
11692	;;
11693	siemens)
11694	  ## LD is ld it makes a PLAMLIB
11695	  ## CC just makes a GrossModule.
11696	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11697	  reload_cmds='$CC -r -o $output$reload_objs'
11698	  hardcode_direct=no
11699        ;;
11700	motorola)
11701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11702	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11703	;;
11704      esac
11705      runpath_var='LD_RUN_PATH'
11706      hardcode_shlibpath_var=no
11707      ;;
11708
11709    sysv4.3*)
11710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11711      hardcode_shlibpath_var=no
11712      export_dynamic_flag_spec='-Bexport'
11713      ;;
11714
11715    sysv4*MP*)
11716      if test -d /usr/nec; then
11717	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718	hardcode_shlibpath_var=no
11719	runpath_var=LD_RUN_PATH
11720	hardcode_runpath_var=yes
11721	ld_shlibs=yes
11722      fi
11723      ;;
11724
11725    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11726      no_undefined_flag='$wl-z,text'
11727      archive_cmds_need_lc=no
11728      hardcode_shlibpath_var=no
11729      runpath_var='LD_RUN_PATH'
11730
11731      if test yes = "$GCC"; then
11732	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734      else
11735	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11736	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11737      fi
11738      ;;
11739
11740    sysv5* | sco3.2v5* | sco5v6*)
11741      # Note: We CANNOT use -z defs as we might desire, because we do not
11742      # link with -lc, and that would cause any symbols used from libc to
11743      # always be unresolved, which means just about no library would
11744      # ever link correctly.  If we're not using GNU ld we use -z text
11745      # though, which does catch some bad symbols but isn't as heavy-handed
11746      # as -z defs.
11747      no_undefined_flag='$wl-z,text'
11748      allow_undefined_flag='$wl-z,nodefs'
11749      archive_cmds_need_lc=no
11750      hardcode_shlibpath_var=no
11751      hardcode_libdir_flag_spec='$wl-R,$libdir'
11752      hardcode_libdir_separator=':'
11753      link_all_deplibs=yes
11754      export_dynamic_flag_spec='$wl-Bexport'
11755      runpath_var='LD_RUN_PATH'
11756
11757      if test yes = "$GCC"; then
11758	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760      else
11761	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763      fi
11764      ;;
11765
11766    uts4*)
11767      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11768      hardcode_libdir_flag_spec='-L$libdir'
11769      hardcode_shlibpath_var=no
11770      ;;
11771
11772    *)
11773      ld_shlibs=no
11774      ;;
11775    esac
11776
11777    if test sni = "$host_vendor"; then
11778      case $host in
11779      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11780	export_dynamic_flag_spec='$wl-Blargedynsym'
11781	;;
11782      esac
11783    fi
11784  fi
11785
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11787$as_echo "$ld_shlibs" >&6; }
11788test no = "$ld_shlibs" && can_build_shared=no
11789
11790with_gnu_ld=$with_gnu_ld
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806#
11807# Do we need to explicitly link libc?
11808#
11809case "x$archive_cmds_need_lc" in
11810x|xyes)
11811  # Assume -lc should be added
11812  archive_cmds_need_lc=yes
11813
11814  if test yes,yes = "$GCC,$enable_shared"; then
11815    case $archive_cmds in
11816    *'~'*)
11817      # FIXME: we may have to deal with multi-command sequences.
11818      ;;
11819    '$CC '*)
11820      # Test whether the compiler implicitly links with -lc since on some
11821      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11822      # to ld, don't add -lc before -lgcc.
11823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11824$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11825if ${lt_cv_archive_cmds_need_lc+:} false; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  $RM conftest*
11829	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11830
11831	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11832  (eval $ac_compile) 2>&5
11833  ac_status=$?
11834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835  test $ac_status = 0; } 2>conftest.err; then
11836	  soname=conftest
11837	  lib=conftest
11838	  libobjs=conftest.$ac_objext
11839	  deplibs=
11840	  wl=$lt_prog_compiler_wl
11841	  pic_flag=$lt_prog_compiler_pic
11842	  compiler_flags=-v
11843	  linker_flags=-v
11844	  verstring=
11845	  output_objdir=.
11846	  libname=conftest
11847	  lt_save_allow_undefined_flag=$allow_undefined_flag
11848	  allow_undefined_flag=
11849	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11850  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11851  ac_status=$?
11852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853  test $ac_status = 0; }
11854	  then
11855	    lt_cv_archive_cmds_need_lc=no
11856	  else
11857	    lt_cv_archive_cmds_need_lc=yes
11858	  fi
11859	  allow_undefined_flag=$lt_save_allow_undefined_flag
11860	else
11861	  cat conftest.err 1>&5
11862	fi
11863	$RM conftest*
11864
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11867$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11868      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11869      ;;
11870    esac
11871  fi
11872  ;;
11873esac
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12027$as_echo_n "checking dynamic linker characteristics... " >&6; }
12028
12029if test yes = "$GCC"; then
12030  case $host_os in
12031    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12032    *) lt_awk_arg='/^libraries:/' ;;
12033  esac
12034  case $host_os in
12035    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12036    *) lt_sed_strip_eq='s|=/|/|g' ;;
12037  esac
12038  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12039  case $lt_search_path_spec in
12040  *\;*)
12041    # if the path contains ";" then we assume it to be the separator
12042    # otherwise default to the standard path separator (i.e. ":") - it is
12043    # assumed that no part of a normal pathname contains ";" but that should
12044    # okay in the real world where ";" in dirpaths is itself problematic.
12045    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12046    ;;
12047  *)
12048    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12049    ;;
12050  esac
12051  # Ok, now we have the path, separated by spaces, we can step through it
12052  # and add multilib dir if necessary...
12053  lt_tmp_lt_search_path_spec=
12054  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12055  # ...but if some path component already ends with the multilib dir we assume
12056  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12057  case "$lt_multi_os_dir; $lt_search_path_spec " in
12058  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12059    lt_multi_os_dir=
12060    ;;
12061  esac
12062  for lt_sys_path in $lt_search_path_spec; do
12063    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12064      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12065    elif test -n "$lt_multi_os_dir"; then
12066      test -d "$lt_sys_path" && \
12067	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12068    fi
12069  done
12070  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12071BEGIN {RS = " "; FS = "/|\n";} {
12072  lt_foo = "";
12073  lt_count = 0;
12074  for (lt_i = NF; lt_i > 0; lt_i--) {
12075    if ($lt_i != "" && $lt_i != ".") {
12076      if ($lt_i == "..") {
12077        lt_count++;
12078      } else {
12079        if (lt_count == 0) {
12080          lt_foo = "/" $lt_i lt_foo;
12081        } else {
12082          lt_count--;
12083        }
12084      }
12085    }
12086  }
12087  if (lt_foo != "") { lt_freq[lt_foo]++; }
12088  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12089}'`
12090  # AWK program above erroneously prepends '/' to C:/dos/paths
12091  # for these hosts.
12092  case $host_os in
12093    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12094      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12095  esac
12096  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12097else
12098  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12099fi
12100library_names_spec=
12101libname_spec='lib$name'
12102soname_spec=
12103shrext_cmds=.so
12104postinstall_cmds=
12105postuninstall_cmds=
12106finish_cmds=
12107finish_eval=
12108shlibpath_var=
12109shlibpath_overrides_runpath=unknown
12110version_type=none
12111dynamic_linker="$host_os ld.so"
12112sys_lib_dlsearch_path_spec="/lib /usr/lib"
12113need_lib_prefix=unknown
12114hardcode_into_libs=no
12115
12116# when you set need_version to no, make sure it does not cause -set_version
12117# flags to be left without arguments
12118need_version=unknown
12119
12120
12121
12122case $host_os in
12123aix3*)
12124  version_type=linux # correct to gnu/linux during the next big refactor
12125  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12126  shlibpath_var=LIBPATH
12127
12128  # AIX 3 has no versioning support, so we append a major version to the name.
12129  soname_spec='$libname$release$shared_ext$major'
12130  ;;
12131
12132aix[4-9]*)
12133  version_type=linux # correct to gnu/linux during the next big refactor
12134  need_lib_prefix=no
12135  need_version=no
12136  hardcode_into_libs=yes
12137  if test ia64 = "$host_cpu"; then
12138    # AIX 5 supports IA64
12139    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12140    shlibpath_var=LD_LIBRARY_PATH
12141  else
12142    # With GCC up to 2.95.x, collect2 would create an import file
12143    # for dependence libraries.  The import file would start with
12144    # the line '#! .'.  This would cause the generated library to
12145    # depend on '.', always an invalid library.  This was fixed in
12146    # development snapshots of GCC prior to 3.0.
12147    case $host_os in
12148      aix4 | aix4.[01] | aix4.[01].*)
12149      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12150	   echo ' yes '
12151	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12152	:
12153      else
12154	can_build_shared=no
12155      fi
12156      ;;
12157    esac
12158    # Using Import Files as archive members, it is possible to support
12159    # filename-based versioning of shared library archives on AIX. While
12160    # this would work for both with and without runtime linking, it will
12161    # prevent static linking of such archives. So we do filename-based
12162    # shared library versioning with .so extension only, which is used
12163    # when both runtime linking and shared linking is enabled.
12164    # Unfortunately, runtime linking may impact performance, so we do
12165    # not want this to be the default eventually. Also, we use the
12166    # versioned .so libs for executables only if there is the -brtl
12167    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12168    # To allow for filename-based versioning support, we need to create
12169    # libNAME.so.V as an archive file, containing:
12170    # *) an Import File, referring to the versioned filename of the
12171    #    archive as well as the shared archive member, telling the
12172    #    bitwidth (32 or 64) of that shared object, and providing the
12173    #    list of exported symbols of that shared object, eventually
12174    #    decorated with the 'weak' keyword
12175    # *) the shared object with the F_LOADONLY flag set, to really avoid
12176    #    it being seen by the linker.
12177    # At run time we better use the real file rather than another symlink,
12178    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12179
12180    case $with_aix_soname,$aix_use_runtimelinking in
12181    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12182    # soname into executable. Probably we can add versioning support to
12183    # collect2, so additional links can be useful in future.
12184    aix,yes) # traditional libtool
12185      dynamic_linker='AIX unversionable lib.so'
12186      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12187      # instead of lib<name>.a to let people know that these are not
12188      # typical AIX shared libraries.
12189      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190      ;;
12191    aix,no) # traditional AIX only
12192      dynamic_linker='AIX lib.a(lib.so.V)'
12193      # We preserve .a as extension for shared libraries through AIX4.2
12194      # and later when we are not doing run time linking.
12195      library_names_spec='$libname$release.a $libname.a'
12196      soname_spec='$libname$release$shared_ext$major'
12197      ;;
12198    svr4,*) # full svr4 only
12199      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12200      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12201      # We do not specify a path in Import Files, so LIBPATH fires.
12202      shlibpath_overrides_runpath=yes
12203      ;;
12204    *,yes) # both, prefer svr4
12205      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12206      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12207      # unpreferred sharedlib libNAME.a needs extra handling
12208      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"'
12209      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"'
12210      # We do not specify a path in Import Files, so LIBPATH fires.
12211      shlibpath_overrides_runpath=yes
12212      ;;
12213    *,no) # both, prefer aix
12214      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12215      library_names_spec='$libname$release.a $libname.a'
12216      soname_spec='$libname$release$shared_ext$major'
12217      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12218      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)'
12219      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"'
12220      ;;
12221    esac
12222    shlibpath_var=LIBPATH
12223  fi
12224  ;;
12225
12226amigaos*)
12227  case $host_cpu in
12228  powerpc)
12229    # Since July 2007 AmigaOS4 officially supports .so libraries.
12230    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12231    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232    ;;
12233  m68k)
12234    library_names_spec='$libname.ixlibrary $libname.a'
12235    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12236    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'
12237    ;;
12238  esac
12239  ;;
12240
12241beos*)
12242  library_names_spec='$libname$shared_ext'
12243  dynamic_linker="$host_os ld.so"
12244  shlibpath_var=LIBRARY_PATH
12245  ;;
12246
12247bsdi[45]*)
12248  version_type=linux # correct to gnu/linux during the next big refactor
12249  need_version=no
12250  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251  soname_spec='$libname$release$shared_ext$major'
12252  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12253  shlibpath_var=LD_LIBRARY_PATH
12254  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12255  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12256  # the default ld.so.conf also contains /usr/contrib/lib and
12257  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12258  # libtool to hard-code these into programs
12259  ;;
12260
12261cygwin* | mingw* | pw32* | cegcc*)
12262  version_type=windows
12263  shrext_cmds=.dll
12264  need_version=no
12265  need_lib_prefix=no
12266
12267  case $GCC,$cc_basename in
12268  yes,*)
12269    # gcc
12270    library_names_spec='$libname.dll.a'
12271    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12272    postinstall_cmds='base_file=`basename \$file`~
12273      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12274      dldir=$destdir/`dirname \$dlpath`~
12275      test -d \$dldir || mkdir -p \$dldir~
12276      $install_prog $dir/$dlname \$dldir/$dlname~
12277      chmod a+x \$dldir/$dlname~
12278      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12279        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12280      fi'
12281    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12282      dlpath=$dir/\$dldll~
12283       $RM \$dlpath'
12284    shlibpath_overrides_runpath=yes
12285
12286    case $host_os in
12287    cygwin*)
12288      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12289      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12290
12291      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12292      ;;
12293    mingw* | cegcc*)
12294      # MinGW DLLs use traditional 'lib' prefix
12295      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12296      ;;
12297    pw32*)
12298      # pw32 DLLs use 'pw' prefix rather than 'lib'
12299      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12300      ;;
12301    esac
12302    dynamic_linker='Win32 ld.exe'
12303    ;;
12304
12305  *,cl*)
12306    # Native MSVC
12307    libname_spec='$name'
12308    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12309    library_names_spec='$libname.dll.lib'
12310
12311    case $build_os in
12312    mingw*)
12313      sys_lib_search_path_spec=
12314      lt_save_ifs=$IFS
12315      IFS=';'
12316      for lt_path in $LIB
12317      do
12318        IFS=$lt_save_ifs
12319        # Let DOS variable expansion print the short 8.3 style file name.
12320        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12321        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12322      done
12323      IFS=$lt_save_ifs
12324      # Convert to MSYS style.
12325      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12326      ;;
12327    cygwin*)
12328      # Convert to unix form, then to dos form, then back to unix form
12329      # but this time dos style (no spaces!) so that the unix form looks
12330      # like /cygdrive/c/PROGRA~1:/cygdr...
12331      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12332      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12333      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12334      ;;
12335    *)
12336      sys_lib_search_path_spec=$LIB
12337      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12338        # It is most probably a Windows format PATH.
12339        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12340      else
12341        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12342      fi
12343      # FIXME: find the short name or the path components, as spaces are
12344      # common. (e.g. "Program Files" -> "PROGRA~1")
12345      ;;
12346    esac
12347
12348    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12349    postinstall_cmds='base_file=`basename \$file`~
12350      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12351      dldir=$destdir/`dirname \$dlpath`~
12352      test -d \$dldir || mkdir -p \$dldir~
12353      $install_prog $dir/$dlname \$dldir/$dlname'
12354    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12355      dlpath=$dir/\$dldll~
12356       $RM \$dlpath'
12357    shlibpath_overrides_runpath=yes
12358    dynamic_linker='Win32 link.exe'
12359    ;;
12360
12361  *)
12362    # Assume MSVC wrapper
12363    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12364    dynamic_linker='Win32 ld.exe'
12365    ;;
12366  esac
12367  # FIXME: first we should search . and the directory the executable is in
12368  shlibpath_var=PATH
12369  ;;
12370
12371darwin* | rhapsody*)
12372  dynamic_linker="$host_os dyld"
12373  version_type=darwin
12374  need_lib_prefix=no
12375  need_version=no
12376  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12377  soname_spec='$libname$release$major$shared_ext'
12378  shlibpath_overrides_runpath=yes
12379  shlibpath_var=DYLD_LIBRARY_PATH
12380  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12381
12382  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12383  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12384  ;;
12385
12386dgux*)
12387  version_type=linux # correct to gnu/linux during the next big refactor
12388  need_lib_prefix=no
12389  need_version=no
12390  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391  soname_spec='$libname$release$shared_ext$major'
12392  shlibpath_var=LD_LIBRARY_PATH
12393  ;;
12394
12395freebsd* | dragonfly*)
12396  # DragonFly does not have aout.  When/if they implement a new
12397  # versioning mechanism, adjust this.
12398  if test -x /usr/bin/objformat; then
12399    objformat=`/usr/bin/objformat`
12400  else
12401    case $host_os in
12402    freebsd[23].*) objformat=aout ;;
12403    *) objformat=elf ;;
12404    esac
12405  fi
12406  version_type=freebsd-$objformat
12407  case $version_type in
12408    freebsd-elf*)
12409      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12410      soname_spec='$libname$release$shared_ext$major'
12411      need_version=no
12412      need_lib_prefix=no
12413      ;;
12414    freebsd-*)
12415      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12416      need_version=yes
12417      ;;
12418  esac
12419  shlibpath_var=LD_LIBRARY_PATH
12420  case $host_os in
12421  freebsd2.*)
12422    shlibpath_overrides_runpath=yes
12423    ;;
12424  freebsd3.[01]* | freebsdelf3.[01]*)
12425    shlibpath_overrides_runpath=yes
12426    hardcode_into_libs=yes
12427    ;;
12428  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12429  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12430    shlibpath_overrides_runpath=no
12431    hardcode_into_libs=yes
12432    ;;
12433  *) # from 4.6 on, and DragonFly
12434    shlibpath_overrides_runpath=yes
12435    hardcode_into_libs=yes
12436    ;;
12437  esac
12438  ;;
12439
12440haiku*)
12441  version_type=linux # correct to gnu/linux during the next big refactor
12442  need_lib_prefix=no
12443  need_version=no
12444  dynamic_linker="$host_os runtime_loader"
12445  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12446  soname_spec='$libname$release$shared_ext$major'
12447  shlibpath_var=LIBRARY_PATH
12448  shlibpath_overrides_runpath=no
12449  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12450  hardcode_into_libs=yes
12451  ;;
12452
12453hpux9* | hpux10* | hpux11*)
12454  # Give a soname corresponding to the major version so that dld.sl refuses to
12455  # link against other versions.
12456  version_type=sunos
12457  need_lib_prefix=no
12458  need_version=no
12459  case $host_cpu in
12460  ia64*)
12461    shrext_cmds='.so'
12462    hardcode_into_libs=yes
12463    dynamic_linker="$host_os dld.so"
12464    shlibpath_var=LD_LIBRARY_PATH
12465    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12466    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467    soname_spec='$libname$release$shared_ext$major'
12468    if test 32 = "$HPUX_IA64_MODE"; then
12469      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12470      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12471    else
12472      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12473      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12474    fi
12475    ;;
12476  hppa*64*)
12477    shrext_cmds='.sl'
12478    hardcode_into_libs=yes
12479    dynamic_linker="$host_os dld.sl"
12480    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12481    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12482    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483    soname_spec='$libname$release$shared_ext$major'
12484    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12485    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12486    ;;
12487  *)
12488    shrext_cmds='.sl'
12489    dynamic_linker="$host_os dld.sl"
12490    shlibpath_var=SHLIB_PATH
12491    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12492    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12493    soname_spec='$libname$release$shared_ext$major'
12494    ;;
12495  esac
12496  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12497  postinstall_cmds='chmod 555 $lib'
12498  # or fails outright, so override atomically:
12499  install_override_mode=555
12500  ;;
12501
12502interix[3-9]*)
12503  version_type=linux # correct to gnu/linux during the next big refactor
12504  need_lib_prefix=no
12505  need_version=no
12506  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12507  soname_spec='$libname$release$shared_ext$major'
12508  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12509  shlibpath_var=LD_LIBRARY_PATH
12510  shlibpath_overrides_runpath=no
12511  hardcode_into_libs=yes
12512  ;;
12513
12514irix5* | irix6* | nonstopux*)
12515  case $host_os in
12516    nonstopux*) version_type=nonstopux ;;
12517    *)
12518	if test yes = "$lt_cv_prog_gnu_ld"; then
12519		version_type=linux # correct to gnu/linux during the next big refactor
12520	else
12521		version_type=irix
12522	fi ;;
12523  esac
12524  need_lib_prefix=no
12525  need_version=no
12526  soname_spec='$libname$release$shared_ext$major'
12527  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12528  case $host_os in
12529  irix5* | nonstopux*)
12530    libsuff= shlibsuff=
12531    ;;
12532  *)
12533    case $LD in # libtool.m4 will add one of these switches to LD
12534    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12535      libsuff= shlibsuff= libmagic=32-bit;;
12536    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12537      libsuff=32 shlibsuff=N32 libmagic=N32;;
12538    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12539      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12540    *) libsuff= shlibsuff= libmagic=never-match;;
12541    esac
12542    ;;
12543  esac
12544  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12545  shlibpath_overrides_runpath=no
12546  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12547  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12548  hardcode_into_libs=yes
12549  ;;
12550
12551# No shared lib support for Linux oldld, aout, or coff.
12552linux*oldld* | linux*aout* | linux*coff*)
12553  dynamic_linker=no
12554  ;;
12555
12556linux*android*)
12557  version_type=none # Android doesn't support versioned libraries.
12558  need_lib_prefix=no
12559  need_version=no
12560  library_names_spec='$libname$release$shared_ext'
12561  soname_spec='$libname$release$shared_ext'
12562  finish_cmds=
12563  shlibpath_var=LD_LIBRARY_PATH
12564  shlibpath_overrides_runpath=yes
12565
12566  # This implies no fast_install, which is unacceptable.
12567  # Some rework will be needed to allow for fast_install
12568  # before this can be enabled.
12569  hardcode_into_libs=yes
12570
12571  dynamic_linker='Android linker'
12572  # Don't embed -rpath directories since the linker doesn't support them.
12573  hardcode_libdir_flag_spec='-L$libdir'
12574  ;;
12575
12576# This must be glibc/ELF.
12577linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12578  version_type=linux # correct to gnu/linux during the next big refactor
12579  need_lib_prefix=no
12580  need_version=no
12581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12582  soname_spec='$libname$release$shared_ext$major'
12583  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12584  shlibpath_var=LD_LIBRARY_PATH
12585  shlibpath_overrides_runpath=no
12586
12587  # Some binutils ld are patched to set DT_RUNPATH
12588  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12589  $as_echo_n "(cached) " >&6
12590else
12591  lt_cv_shlibpath_overrides_runpath=no
12592    save_LDFLAGS=$LDFLAGS
12593    save_libdir=$libdir
12594    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12595	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12596    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h.  */
12598
12599int
12600main ()
12601{
12602
12603  ;
12604  return 0;
12605}
12606_ACEOF
12607if ac_fn_c_try_link "$LINENO"; then :
12608  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12609  lt_cv_shlibpath_overrides_runpath=yes
12610fi
12611fi
12612rm -f core conftest.err conftest.$ac_objext \
12613    conftest$ac_exeext conftest.$ac_ext
12614    LDFLAGS=$save_LDFLAGS
12615    libdir=$save_libdir
12616
12617fi
12618
12619  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12620
12621  # This implies no fast_install, which is unacceptable.
12622  # Some rework will be needed to allow for fast_install
12623  # before this can be enabled.
12624  hardcode_into_libs=yes
12625
12626  # Ideally, we could use ldconfig to report *all* directores which are
12627  # searched for libraries, however this is still not possible.  Aside from not
12628  # being certain /sbin/ldconfig is available, command
12629  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12630  # even though it is searched at run-time.  Try to do the best guess by
12631  # appending ld.so.conf contents (and includes) to the search path.
12632  if test -f /etc/ld.so.conf; then
12633    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' ' '`
12634    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12635  fi
12636
12637  # We used to test for /lib/ld.so.1 and disable shared libraries on
12638  # powerpc, because MkLinux only supported shared libraries with the
12639  # GNU dynamic linker.  Since this was broken with cross compilers,
12640  # most powerpc-linux boxes support dynamic linking these days and
12641  # people can always --disable-shared, the test was removed, and we
12642  # assume the GNU/Linux dynamic linker is in use.
12643  dynamic_linker='GNU/Linux ld.so'
12644  ;;
12645
12646netbsdelf*-gnu)
12647  version_type=linux
12648  need_lib_prefix=no
12649  need_version=no
12650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12651  soname_spec='${libname}${release}${shared_ext}$major'
12652  shlibpath_var=LD_LIBRARY_PATH
12653  shlibpath_overrides_runpath=no
12654  hardcode_into_libs=yes
12655  dynamic_linker='NetBSD ld.elf_so'
12656  ;;
12657
12658netbsd*)
12659  version_type=sunos
12660  need_lib_prefix=no
12661  need_version=no
12662  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12663    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12664    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12665    dynamic_linker='NetBSD (a.out) ld.so'
12666  else
12667    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12668    soname_spec='$libname$release$shared_ext$major'
12669    dynamic_linker='NetBSD ld.elf_so'
12670  fi
12671  shlibpath_var=LD_LIBRARY_PATH
12672  shlibpath_overrides_runpath=yes
12673  hardcode_into_libs=yes
12674  ;;
12675
12676newsos6)
12677  version_type=linux # correct to gnu/linux during the next big refactor
12678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12679  shlibpath_var=LD_LIBRARY_PATH
12680  shlibpath_overrides_runpath=yes
12681  ;;
12682
12683*nto* | *qnx*)
12684  version_type=qnx
12685  need_lib_prefix=no
12686  need_version=no
12687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12688  soname_spec='$libname$release$shared_ext$major'
12689  shlibpath_var=LD_LIBRARY_PATH
12690  shlibpath_overrides_runpath=no
12691  hardcode_into_libs=yes
12692  dynamic_linker='ldqnx.so'
12693  ;;
12694
12695openbsd* | bitrig*)
12696  version_type=sunos
12697  sys_lib_dlsearch_path_spec=/usr/lib
12698  need_lib_prefix=no
12699  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12700    need_version=no
12701  else
12702    need_version=yes
12703  fi
12704  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12705  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12706  shlibpath_var=LD_LIBRARY_PATH
12707  shlibpath_overrides_runpath=yes
12708  ;;
12709
12710os2*)
12711  libname_spec='$name'
12712  version_type=windows
12713  shrext_cmds=.dll
12714  need_version=no
12715  need_lib_prefix=no
12716  # OS/2 can only load a DLL with a base name of 8 characters or less.
12717  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12718    v=$($ECHO $release$versuffix | tr -d .-);
12719    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12720    $ECHO $n$v`$shared_ext'
12721  library_names_spec='${libname}_dll.$libext'
12722  dynamic_linker='OS/2 ld.exe'
12723  shlibpath_var=BEGINLIBPATH
12724  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12725  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12726  postinstall_cmds='base_file=`basename \$file`~
12727    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12728    dldir=$destdir/`dirname \$dlpath`~
12729    test -d \$dldir || mkdir -p \$dldir~
12730    $install_prog $dir/$dlname \$dldir/$dlname~
12731    chmod a+x \$dldir/$dlname~
12732    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12733      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12734    fi'
12735  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12736    dlpath=$dir/\$dldll~
12737    $RM \$dlpath'
12738  ;;
12739
12740osf3* | osf4* | osf5*)
12741  version_type=osf
12742  need_lib_prefix=no
12743  need_version=no
12744  soname_spec='$libname$release$shared_ext$major'
12745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12746  shlibpath_var=LD_LIBRARY_PATH
12747  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12748  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12749  ;;
12750
12751rdos*)
12752  dynamic_linker=no
12753  ;;
12754
12755solaris*)
12756  version_type=linux # correct to gnu/linux during the next big refactor
12757  need_lib_prefix=no
12758  need_version=no
12759  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12760  soname_spec='$libname$release$shared_ext$major'
12761  shlibpath_var=LD_LIBRARY_PATH
12762  shlibpath_overrides_runpath=yes
12763  hardcode_into_libs=yes
12764  # ldd complains unless libraries are executable
12765  postinstall_cmds='chmod +x $lib'
12766  ;;
12767
12768sunos4*)
12769  version_type=sunos
12770  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12771  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12772  shlibpath_var=LD_LIBRARY_PATH
12773  shlibpath_overrides_runpath=yes
12774  if test yes = "$with_gnu_ld"; then
12775    need_lib_prefix=no
12776  fi
12777  need_version=yes
12778  ;;
12779
12780sysv4 | sysv4.3*)
12781  version_type=linux # correct to gnu/linux during the next big refactor
12782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12783  soname_spec='$libname$release$shared_ext$major'
12784  shlibpath_var=LD_LIBRARY_PATH
12785  case $host_vendor in
12786    sni)
12787      shlibpath_overrides_runpath=no
12788      need_lib_prefix=no
12789      runpath_var=LD_RUN_PATH
12790      ;;
12791    siemens)
12792      need_lib_prefix=no
12793      ;;
12794    motorola)
12795      need_lib_prefix=no
12796      need_version=no
12797      shlibpath_overrides_runpath=no
12798      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12799      ;;
12800  esac
12801  ;;
12802
12803sysv4*MP*)
12804  if test -d /usr/nec; then
12805    version_type=linux # correct to gnu/linux during the next big refactor
12806    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12807    soname_spec='$libname$shared_ext.$major'
12808    shlibpath_var=LD_LIBRARY_PATH
12809  fi
12810  ;;
12811
12812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12813  version_type=sco
12814  need_lib_prefix=no
12815  need_version=no
12816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12817  soname_spec='$libname$release$shared_ext$major'
12818  shlibpath_var=LD_LIBRARY_PATH
12819  shlibpath_overrides_runpath=yes
12820  hardcode_into_libs=yes
12821  if test yes = "$with_gnu_ld"; then
12822    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12823  else
12824    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12825    case $host_os in
12826      sco3.2v5*)
12827        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12828	;;
12829    esac
12830  fi
12831  sys_lib_dlsearch_path_spec='/usr/lib'
12832  ;;
12833
12834tpf*)
12835  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12836  version_type=linux # correct to gnu/linux during the next big refactor
12837  need_lib_prefix=no
12838  need_version=no
12839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12840  shlibpath_var=LD_LIBRARY_PATH
12841  shlibpath_overrides_runpath=no
12842  hardcode_into_libs=yes
12843  ;;
12844
12845uts4*)
12846  version_type=linux # correct to gnu/linux during the next big refactor
12847  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12848  soname_spec='$libname$release$shared_ext$major'
12849  shlibpath_var=LD_LIBRARY_PATH
12850  ;;
12851
12852*)
12853  dynamic_linker=no
12854  ;;
12855esac
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12857$as_echo "$dynamic_linker" >&6; }
12858test no = "$dynamic_linker" && can_build_shared=no
12859
12860variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12861if test yes = "$GCC"; then
12862  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12863fi
12864
12865if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12866  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12867fi
12868
12869if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12870  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12871fi
12872
12873# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12874configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12875
12876# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12877func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12878
12879# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12880configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12979$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12980hardcode_action=
12981if test -n "$hardcode_libdir_flag_spec" ||
12982   test -n "$runpath_var" ||
12983   test yes = "$hardcode_automatic"; then
12984
12985  # We can hardcode non-existent directories.
12986  if test no != "$hardcode_direct" &&
12987     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12988     # have to relink, otherwise we might link with an installed library
12989     # when we should be linking with a yet-to-be-installed one
12990     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12991     test no != "$hardcode_minus_L"; then
12992    # Linking always hardcodes the temporary library directory.
12993    hardcode_action=relink
12994  else
12995    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12996    hardcode_action=immediate
12997  fi
12998else
12999  # We cannot hardcode anything, or else we can only hardcode existing
13000  # directories.
13001  hardcode_action=unsupported
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13004$as_echo "$hardcode_action" >&6; }
13005
13006if test relink = "$hardcode_action" ||
13007   test yes = "$inherit_rpath"; then
13008  # Fast installation is not supported
13009  enable_fast_install=no
13010elif test yes = "$shlibpath_overrides_runpath" ||
13011     test no = "$enable_shared"; then
13012  # Fast installation is not necessary
13013  enable_fast_install=needless
13014fi
13015
13016
13017
13018
13019
13020
13021  if test yes != "$enable_dlopen"; then
13022  enable_dlopen=unknown
13023  enable_dlopen_self=unknown
13024  enable_dlopen_self_static=unknown
13025else
13026  lt_cv_dlopen=no
13027  lt_cv_dlopen_libs=
13028
13029  case $host_os in
13030  beos*)
13031    lt_cv_dlopen=load_add_on
13032    lt_cv_dlopen_libs=
13033    lt_cv_dlopen_self=yes
13034    ;;
13035
13036  mingw* | pw32* | cegcc*)
13037    lt_cv_dlopen=LoadLibrary
13038    lt_cv_dlopen_libs=
13039    ;;
13040
13041  cygwin*)
13042    lt_cv_dlopen=dlopen
13043    lt_cv_dlopen_libs=
13044    ;;
13045
13046  darwin*)
13047    # if libdl is installed we need to link against it
13048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13049$as_echo_n "checking for dlopen in -ldl... " >&6; }
13050if ${ac_cv_lib_dl_dlopen+:} false; then :
13051  $as_echo_n "(cached) " >&6
13052else
13053  ac_check_lib_save_LIBS=$LIBS
13054LIBS="-ldl  $LIBS"
13055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056/* end confdefs.h.  */
13057
13058/* Override any GCC internal prototype to avoid an error.
13059   Use char because int might match the return type of a GCC
13060   builtin and then its argument prototype would still apply.  */
13061#ifdef __cplusplus
13062extern "C"
13063#endif
13064char dlopen ();
13065int
13066main ()
13067{
13068return dlopen ();
13069  ;
13070  return 0;
13071}
13072_ACEOF
13073if ac_fn_c_try_link "$LINENO"; then :
13074  ac_cv_lib_dl_dlopen=yes
13075else
13076  ac_cv_lib_dl_dlopen=no
13077fi
13078rm -f core conftest.err conftest.$ac_objext \
13079    conftest$ac_exeext conftest.$ac_ext
13080LIBS=$ac_check_lib_save_LIBS
13081fi
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13083$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13084if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13085  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13086else
13087
13088    lt_cv_dlopen=dyld
13089    lt_cv_dlopen_libs=
13090    lt_cv_dlopen_self=yes
13091
13092fi
13093
13094    ;;
13095
13096  tpf*)
13097    # Don't try to run any link tests for TPF.  We know it's impossible
13098    # because TPF is a cross-compiler, and we know how we open DSOs.
13099    lt_cv_dlopen=dlopen
13100    lt_cv_dlopen_libs=
13101    lt_cv_dlopen_self=no
13102    ;;
13103
13104  *)
13105    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13106if test "x$ac_cv_func_shl_load" = xyes; then :
13107  lt_cv_dlopen=shl_load
13108else
13109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13110$as_echo_n "checking for shl_load in -ldld... " >&6; }
13111if ${ac_cv_lib_dld_shl_load+:} false; then :
13112  $as_echo_n "(cached) " >&6
13113else
13114  ac_check_lib_save_LIBS=$LIBS
13115LIBS="-ldld  $LIBS"
13116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h.  */
13118
13119/* Override any GCC internal prototype to avoid an error.
13120   Use char because int might match the return type of a GCC
13121   builtin and then its argument prototype would still apply.  */
13122#ifdef __cplusplus
13123extern "C"
13124#endif
13125char shl_load ();
13126int
13127main ()
13128{
13129return shl_load ();
13130  ;
13131  return 0;
13132}
13133_ACEOF
13134if ac_fn_c_try_link "$LINENO"; then :
13135  ac_cv_lib_dld_shl_load=yes
13136else
13137  ac_cv_lib_dld_shl_load=no
13138fi
13139rm -f core conftest.err conftest.$ac_objext \
13140    conftest$ac_exeext conftest.$ac_ext
13141LIBS=$ac_check_lib_save_LIBS
13142fi
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13144$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13145if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13146  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13147else
13148  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13149if test "x$ac_cv_func_dlopen" = xyes; then :
13150  lt_cv_dlopen=dlopen
13151else
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13153$as_echo_n "checking for dlopen in -ldl... " >&6; }
13154if ${ac_cv_lib_dl_dlopen+:} false; then :
13155  $as_echo_n "(cached) " >&6
13156else
13157  ac_check_lib_save_LIBS=$LIBS
13158LIBS="-ldl  $LIBS"
13159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160/* end confdefs.h.  */
13161
13162/* Override any GCC internal prototype to avoid an error.
13163   Use char because int might match the return type of a GCC
13164   builtin and then its argument prototype would still apply.  */
13165#ifdef __cplusplus
13166extern "C"
13167#endif
13168char dlopen ();
13169int
13170main ()
13171{
13172return dlopen ();
13173  ;
13174  return 0;
13175}
13176_ACEOF
13177if ac_fn_c_try_link "$LINENO"; then :
13178  ac_cv_lib_dl_dlopen=yes
13179else
13180  ac_cv_lib_dl_dlopen=no
13181fi
13182rm -f core conftest.err conftest.$ac_objext \
13183    conftest$ac_exeext conftest.$ac_ext
13184LIBS=$ac_check_lib_save_LIBS
13185fi
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13187$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13188if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13189  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13190else
13191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13192$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13193if ${ac_cv_lib_svld_dlopen+:} false; then :
13194  $as_echo_n "(cached) " >&6
13195else
13196  ac_check_lib_save_LIBS=$LIBS
13197LIBS="-lsvld  $LIBS"
13198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h.  */
13200
13201/* Override any GCC internal prototype to avoid an error.
13202   Use char because int might match the return type of a GCC
13203   builtin and then its argument prototype would still apply.  */
13204#ifdef __cplusplus
13205extern "C"
13206#endif
13207char dlopen ();
13208int
13209main ()
13210{
13211return dlopen ();
13212  ;
13213  return 0;
13214}
13215_ACEOF
13216if ac_fn_c_try_link "$LINENO"; then :
13217  ac_cv_lib_svld_dlopen=yes
13218else
13219  ac_cv_lib_svld_dlopen=no
13220fi
13221rm -f core conftest.err conftest.$ac_objext \
13222    conftest$ac_exeext conftest.$ac_ext
13223LIBS=$ac_check_lib_save_LIBS
13224fi
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13226$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13227if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13228  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13229else
13230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13231$as_echo_n "checking for dld_link in -ldld... " >&6; }
13232if ${ac_cv_lib_dld_dld_link+:} false; then :
13233  $as_echo_n "(cached) " >&6
13234else
13235  ac_check_lib_save_LIBS=$LIBS
13236LIBS="-ldld  $LIBS"
13237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238/* end confdefs.h.  */
13239
13240/* Override any GCC internal prototype to avoid an error.
13241   Use char because int might match the return type of a GCC
13242   builtin and then its argument prototype would still apply.  */
13243#ifdef __cplusplus
13244extern "C"
13245#endif
13246char dld_link ();
13247int
13248main ()
13249{
13250return dld_link ();
13251  ;
13252  return 0;
13253}
13254_ACEOF
13255if ac_fn_c_try_link "$LINENO"; then :
13256  ac_cv_lib_dld_dld_link=yes
13257else
13258  ac_cv_lib_dld_dld_link=no
13259fi
13260rm -f core conftest.err conftest.$ac_objext \
13261    conftest$ac_exeext conftest.$ac_ext
13262LIBS=$ac_check_lib_save_LIBS
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13265$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13266if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13267  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13268fi
13269
13270
13271fi
13272
13273
13274fi
13275
13276
13277fi
13278
13279
13280fi
13281
13282
13283fi
13284
13285    ;;
13286  esac
13287
13288  if test no = "$lt_cv_dlopen"; then
13289    enable_dlopen=no
13290  else
13291    enable_dlopen=yes
13292  fi
13293
13294  case $lt_cv_dlopen in
13295  dlopen)
13296    save_CPPFLAGS=$CPPFLAGS
13297    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13298
13299    save_LDFLAGS=$LDFLAGS
13300    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13301
13302    save_LIBS=$LIBS
13303    LIBS="$lt_cv_dlopen_libs $LIBS"
13304
13305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13306$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13307if ${lt_cv_dlopen_self+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  	  if test yes = "$cross_compiling"; then :
13311  lt_cv_dlopen_self=cross
13312else
13313  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13314  lt_status=$lt_dlunknown
13315  cat > conftest.$ac_ext <<_LT_EOF
13316#line $LINENO "configure"
13317#include "confdefs.h"
13318
13319#if HAVE_DLFCN_H
13320#include <dlfcn.h>
13321#endif
13322
13323#include <stdio.h>
13324
13325#ifdef RTLD_GLOBAL
13326#  define LT_DLGLOBAL		RTLD_GLOBAL
13327#else
13328#  ifdef DL_GLOBAL
13329#    define LT_DLGLOBAL		DL_GLOBAL
13330#  else
13331#    define LT_DLGLOBAL		0
13332#  endif
13333#endif
13334
13335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13336   find out it does not work in some platform. */
13337#ifndef LT_DLLAZY_OR_NOW
13338#  ifdef RTLD_LAZY
13339#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13340#  else
13341#    ifdef DL_LAZY
13342#      define LT_DLLAZY_OR_NOW		DL_LAZY
13343#    else
13344#      ifdef RTLD_NOW
13345#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13346#      else
13347#        ifdef DL_NOW
13348#          define LT_DLLAZY_OR_NOW	DL_NOW
13349#        else
13350#          define LT_DLLAZY_OR_NOW	0
13351#        endif
13352#      endif
13353#    endif
13354#  endif
13355#endif
13356
13357/* When -fvisibility=hidden is used, assume the code has been annotated
13358   correspondingly for the symbols needed.  */
13359#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13360int fnord () __attribute__((visibility("default")));
13361#endif
13362
13363int fnord () { return 42; }
13364int main ()
13365{
13366  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13367  int status = $lt_dlunknown;
13368
13369  if (self)
13370    {
13371      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13372      else
13373        {
13374	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13375          else puts (dlerror ());
13376	}
13377      /* dlclose (self); */
13378    }
13379  else
13380    puts (dlerror ());
13381
13382  return status;
13383}
13384_LT_EOF
13385  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13386  (eval $ac_link) 2>&5
13387  ac_status=$?
13388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13390    (./conftest; exit; ) >&5 2>/dev/null
13391    lt_status=$?
13392    case x$lt_status in
13393      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13394      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13395      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13396    esac
13397  else :
13398    # compilation failed
13399    lt_cv_dlopen_self=no
13400  fi
13401fi
13402rm -fr conftest*
13403
13404
13405fi
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13407$as_echo "$lt_cv_dlopen_self" >&6; }
13408
13409    if test yes = "$lt_cv_dlopen_self"; then
13410      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13411      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13412$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13413if ${lt_cv_dlopen_self_static+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416  	  if test yes = "$cross_compiling"; then :
13417  lt_cv_dlopen_self_static=cross
13418else
13419  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13420  lt_status=$lt_dlunknown
13421  cat > conftest.$ac_ext <<_LT_EOF
13422#line $LINENO "configure"
13423#include "confdefs.h"
13424
13425#if HAVE_DLFCN_H
13426#include <dlfcn.h>
13427#endif
13428
13429#include <stdio.h>
13430
13431#ifdef RTLD_GLOBAL
13432#  define LT_DLGLOBAL		RTLD_GLOBAL
13433#else
13434#  ifdef DL_GLOBAL
13435#    define LT_DLGLOBAL		DL_GLOBAL
13436#  else
13437#    define LT_DLGLOBAL		0
13438#  endif
13439#endif
13440
13441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13442   find out it does not work in some platform. */
13443#ifndef LT_DLLAZY_OR_NOW
13444#  ifdef RTLD_LAZY
13445#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13446#  else
13447#    ifdef DL_LAZY
13448#      define LT_DLLAZY_OR_NOW		DL_LAZY
13449#    else
13450#      ifdef RTLD_NOW
13451#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13452#      else
13453#        ifdef DL_NOW
13454#          define LT_DLLAZY_OR_NOW	DL_NOW
13455#        else
13456#          define LT_DLLAZY_OR_NOW	0
13457#        endif
13458#      endif
13459#    endif
13460#  endif
13461#endif
13462
13463/* When -fvisibility=hidden is used, assume the code has been annotated
13464   correspondingly for the symbols needed.  */
13465#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13466int fnord () __attribute__((visibility("default")));
13467#endif
13468
13469int fnord () { return 42; }
13470int main ()
13471{
13472  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13473  int status = $lt_dlunknown;
13474
13475  if (self)
13476    {
13477      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13478      else
13479        {
13480	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13481          else puts (dlerror ());
13482	}
13483      /* dlclose (self); */
13484    }
13485  else
13486    puts (dlerror ());
13487
13488  return status;
13489}
13490_LT_EOF
13491  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13492  (eval $ac_link) 2>&5
13493  ac_status=$?
13494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13496    (./conftest; exit; ) >&5 2>/dev/null
13497    lt_status=$?
13498    case x$lt_status in
13499      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13500      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13501      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13502    esac
13503  else :
13504    # compilation failed
13505    lt_cv_dlopen_self_static=no
13506  fi
13507fi
13508rm -fr conftest*
13509
13510
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13513$as_echo "$lt_cv_dlopen_self_static" >&6; }
13514    fi
13515
13516    CPPFLAGS=$save_CPPFLAGS
13517    LDFLAGS=$save_LDFLAGS
13518    LIBS=$save_LIBS
13519    ;;
13520  esac
13521
13522  case $lt_cv_dlopen_self in
13523  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13524  *) enable_dlopen_self=unknown ;;
13525  esac
13526
13527  case $lt_cv_dlopen_self_static in
13528  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13529  *) enable_dlopen_self_static=unknown ;;
13530  esac
13531fi
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549striplib=
13550old_striplib=
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13552$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13553if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13554  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13555  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557$as_echo "yes" >&6; }
13558else
13559# FIXME - insert some real tests, host_os isn't really good enough
13560  case $host_os in
13561  darwin*)
13562    if test -n "$STRIP"; then
13563      striplib="$STRIP -x"
13564      old_striplib="$STRIP -S"
13565      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566$as_echo "yes" >&6; }
13567    else
13568      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570    fi
13571    ;;
13572  *)
13573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574$as_echo "no" >&6; }
13575    ;;
13576  esac
13577fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590  # Report what library types will actually be built
13591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13592$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13594$as_echo "$can_build_shared" >&6; }
13595
13596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13597$as_echo_n "checking whether to build shared libraries... " >&6; }
13598  test no = "$can_build_shared" && enable_shared=no
13599
13600  # On AIX, shared libraries and static libraries use the same namespace, and
13601  # are all built from PIC.
13602  case $host_os in
13603  aix3*)
13604    test yes = "$enable_shared" && enable_static=no
13605    if test -n "$RANLIB"; then
13606      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13607      postinstall_cmds='$RANLIB $lib'
13608    fi
13609    ;;
13610
13611  aix[4-9]*)
13612    if test ia64 != "$host_cpu"; then
13613      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13614      yes,aix,yes) ;;			# shared object as lib.so file only
13615      yes,svr4,*) ;;			# shared object as lib.so archive member only
13616      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13617      esac
13618    fi
13619    ;;
13620  esac
13621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13622$as_echo "$enable_shared" >&6; }
13623
13624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13625$as_echo_n "checking whether to build static libraries... " >&6; }
13626  # Make sure either enable_shared or enable_static is yes.
13627  test yes = "$enable_shared" || enable_static=yes
13628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13629$as_echo "$enable_static" >&6; }
13630
13631
13632
13633
13634fi
13635ac_ext=c
13636ac_cpp='$CPP $CPPFLAGS'
13637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13639ac_compiler_gnu=$ac_cv_c_compiler_gnu
13640
13641CC=$lt_save_CC
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657        ac_config_commands="$ac_config_commands libtool"
13658
13659
13660
13661
13662# Only expand once:
13663
13664
13665
13666CFLAGS="$CFLAGS -D_GNU_SOURCE"
13667
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc likes the -Werror flag" >&5
13669$as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
13670if ${rd_cv_gcc_flag__Werror+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674/* end confdefs.h.  */
13675
13676int
13677main ()
13678{
13679return 0
13680  ;
13681  return 0;
13682}
13683_ACEOF
13684if ac_fn_c_try_compile "$LINENO"; then :
13685  rd_cv_gcc_flag__Werror="yes"
13686else
13687  rd_cv_gcc_flag__Werror="no"
13688fi
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690fi
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_gcc_flag__Werror" >&5
13692$as_echo "$rd_cv_gcc_flag__Werror" >&6; }
13693if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
13694  WERROR="-Werror"
13695else
13696  WERROR=""
13697fi
13698
13699
13700if test "x$GCC" = "xyes"; then
13701  for flag in -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition; do
13702    oCFLAGS="$CFLAGS"
13703    CFLAGS="$CFLAGS $flag"
13704    cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
13705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc likes the $flag flag" >&5
13706$as_echo_n "checking if gcc likes the $flag flag... " >&6; }
13707if eval \${$cachename+:} false; then :
13708  $as_echo_n "(cached) " >&6
13709else
13710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711/* end confdefs.h.  */
13712
13713int
13714main ()
13715{
13716return 0
13717  ;
13718  return 0;
13719}
13720_ACEOF
13721if ac_fn_c_try_compile "$LINENO"; then :
13722  eval $cachename=yes
13723else
13724  eval $cachename=no
13725fi
13726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727fi
13728eval ac_res=\$$cachename
13729	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13730$as_echo "$ac_res" >&6; }
13731    if eval test \$$cachename = no; then
13732         CFLAGS="$oCFLAGS"
13733    fi
13734  done
13735fi
13736
13737
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
13739$as_echo_n "checking for long long int... " >&6; }
13740if ${ac_cv_type_long_long_int+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745
13746  /* Test preprocessor.  */
13747      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13748        error in preprocessor;
13749      #endif
13750      #if ! (18446744073709551615ULL <= -1ull)
13751        error in preprocessor;
13752      #endif
13753      /* Test literals.  */
13754      long long int ll = 9223372036854775807ll;
13755      long long int nll = -9223372036854775807LL;
13756      unsigned long long int ull = 18446744073709551615ULL;
13757      /* Test constant expressions.   */
13758      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13759		     ? 1 : -1)];
13760      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13761		     ? 1 : -1)];
13762      int i = 63;
13763int
13764main ()
13765{
13766/* Test availability of runtime routines for shift and division.  */
13767      long long int llmax = 9223372036854775807ll;
13768      unsigned long long int ullmax = 18446744073709551615ull;
13769      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13770	      | (llmax / ll) | (llmax % ll)
13771	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13772	      | (ullmax / ull) | (ullmax % ull));
13773  ;
13774  return 0;
13775}
13776
13777_ACEOF
13778if ac_fn_c_try_link "$LINENO"; then :
13779  			if test "$cross_compiling" = yes; then :
13780  ac_cv_type_long_long_int=yes
13781else
13782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784#include <limits.h>
13785	       #ifndef LLONG_MAX
13786	       # define HALF \
13787			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
13788	       # define LLONG_MAX (HALF - 1 + HALF)
13789	       #endif
13790int
13791main ()
13792{
13793long long int n = 1;
13794	       int i;
13795	       for (i = 0; ; i++)
13796		 {
13797		   long long int m = n << i;
13798		   if (m >> i != n)
13799		     return 1;
13800		   if (LLONG_MAX / 2 < m)
13801		     break;
13802		 }
13803	       return 0;
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808if ac_fn_c_try_run "$LINENO"; then :
13809  ac_cv_type_long_long_int=yes
13810else
13811  ac_cv_type_long_long_int=no
13812fi
13813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13814  conftest.$ac_objext conftest.beam conftest.$ac_ext
13815fi
13816
13817else
13818  ac_cv_type_long_long_int=no
13819fi
13820rm -f core conftest.err conftest.$ac_objext \
13821    conftest$ac_exeext conftest.$ac_ext
13822fi
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
13824$as_echo "$ac_cv_type_long_long_int" >&6; }
13825  if test $ac_cv_type_long_long_int = yes; then
13826
13827$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
13828
13829  fi
13830
13831
13832
13833
13834
13835case $TERM in
13836       #   for the most important terminal types we directly know the sequences
13837       xterm|xterm*|vt220|vt220*)
13838               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13839               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13840       ;;
13841       vt100|vt100*|cygwin)
13842               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13843               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13844       ;;
13845       *)
13846               T_MD=''
13847               T_ME=''
13848       ;;
13849esac
13850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13851$as_echo "" >&6; }
13852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Header Files${T_ME}" >&5
13853$as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
13854
13855
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13857$as_echo_n "checking for ANSI C header files... " >&6; }
13858if ${ac_cv_header_stdc+:} false; then :
13859  $as_echo_n "(cached) " >&6
13860else
13861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863#include <stdlib.h>
13864#include <stdarg.h>
13865#include <string.h>
13866#include <float.h>
13867
13868int
13869main ()
13870{
13871
13872  ;
13873  return 0;
13874}
13875_ACEOF
13876if ac_fn_c_try_compile "$LINENO"; then :
13877  ac_cv_header_stdc=yes
13878else
13879  ac_cv_header_stdc=no
13880fi
13881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882
13883if test $ac_cv_header_stdc = yes; then
13884  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886/* end confdefs.h.  */
13887#include <string.h>
13888
13889_ACEOF
13890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13891  $EGREP "memchr" >/dev/null 2>&1; then :
13892
13893else
13894  ac_cv_header_stdc=no
13895fi
13896rm -f conftest*
13897
13898fi
13899
13900if test $ac_cv_header_stdc = yes; then
13901  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903/* end confdefs.h.  */
13904#include <stdlib.h>
13905
13906_ACEOF
13907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13908  $EGREP "free" >/dev/null 2>&1; then :
13909
13910else
13911  ac_cv_header_stdc=no
13912fi
13913rm -f conftest*
13914
13915fi
13916
13917if test $ac_cv_header_stdc = yes; then
13918  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13919  if test "$cross_compiling" = yes; then :
13920  :
13921else
13922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923/* end confdefs.h.  */
13924#include <ctype.h>
13925#include <stdlib.h>
13926#if ((' ' & 0x0FF) == 0x020)
13927# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13928# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13929#else
13930# define ISLOWER(c) \
13931		   (('a' <= (c) && (c) <= 'i') \
13932		     || ('j' <= (c) && (c) <= 'r') \
13933		     || ('s' <= (c) && (c) <= 'z'))
13934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13935#endif
13936
13937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13938int
13939main ()
13940{
13941  int i;
13942  for (i = 0; i < 256; i++)
13943    if (XOR (islower (i), ISLOWER (i))
13944	|| toupper (i) != TOUPPER (i))
13945      return 2;
13946  return 0;
13947}
13948_ACEOF
13949if ac_fn_c_try_run "$LINENO"; then :
13950
13951else
13952  ac_cv_header_stdc=no
13953fi
13954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13955  conftest.$ac_objext conftest.beam conftest.$ac_ext
13956fi
13957
13958fi
13959fi
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13961$as_echo "$ac_cv_header_stdc" >&6; }
13962if test $ac_cv_header_stdc = yes; then
13963
13964$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13965
13966fi
13967
13968ac_header_dirent=no
13969for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13970  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13972$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13973if eval \${$as_ac_Header+:} false; then :
13974  $as_echo_n "(cached) " >&6
13975else
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978#include <sys/types.h>
13979#include <$ac_hdr>
13980
13981int
13982main ()
13983{
13984if ((DIR *) 0)
13985return 0;
13986  ;
13987  return 0;
13988}
13989_ACEOF
13990if ac_fn_c_try_compile "$LINENO"; then :
13991  eval "$as_ac_Header=yes"
13992else
13993  eval "$as_ac_Header=no"
13994fi
13995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996fi
13997eval ac_res=\$$as_ac_Header
13998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13999$as_echo "$ac_res" >&6; }
14000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14001  cat >>confdefs.h <<_ACEOF
14002#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14003_ACEOF
14004
14005ac_header_dirent=$ac_hdr; break
14006fi
14007
14008done
14009# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14010if test $ac_header_dirent = dirent.h; then
14011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14012$as_echo_n "checking for library containing opendir... " >&6; }
14013if ${ac_cv_search_opendir+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  ac_func_search_save_LIBS=$LIBS
14017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018/* end confdefs.h.  */
14019
14020/* Override any GCC internal prototype to avoid an error.
14021   Use char because int might match the return type of a GCC
14022   builtin and then its argument prototype would still apply.  */
14023#ifdef __cplusplus
14024extern "C"
14025#endif
14026char opendir ();
14027int
14028main ()
14029{
14030return opendir ();
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035for ac_lib in '' dir; do
14036  if test -z "$ac_lib"; then
14037    ac_res="none required"
14038  else
14039    ac_res=-l$ac_lib
14040    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14041  fi
14042  if ac_fn_c_try_link "$LINENO"; then :
14043  ac_cv_search_opendir=$ac_res
14044fi
14045rm -f core conftest.err conftest.$ac_objext \
14046    conftest$ac_exeext
14047  if ${ac_cv_search_opendir+:} false; then :
14048  break
14049fi
14050done
14051if ${ac_cv_search_opendir+:} false; then :
14052
14053else
14054  ac_cv_search_opendir=no
14055fi
14056rm conftest.$ac_ext
14057LIBS=$ac_func_search_save_LIBS
14058fi
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14060$as_echo "$ac_cv_search_opendir" >&6; }
14061ac_res=$ac_cv_search_opendir
14062if test "$ac_res" != no; then :
14063  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14064
14065fi
14066
14067else
14068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14069$as_echo_n "checking for library containing opendir... " >&6; }
14070if ${ac_cv_search_opendir+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  ac_func_search_save_LIBS=$LIBS
14074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075/* end confdefs.h.  */
14076
14077/* Override any GCC internal prototype to avoid an error.
14078   Use char because int might match the return type of a GCC
14079   builtin and then its argument prototype would still apply.  */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char opendir ();
14084int
14085main ()
14086{
14087return opendir ();
14088  ;
14089  return 0;
14090}
14091_ACEOF
14092for ac_lib in '' x; do
14093  if test -z "$ac_lib"; then
14094    ac_res="none required"
14095  else
14096    ac_res=-l$ac_lib
14097    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14098  fi
14099  if ac_fn_c_try_link "$LINENO"; then :
14100  ac_cv_search_opendir=$ac_res
14101fi
14102rm -f core conftest.err conftest.$ac_objext \
14103    conftest$ac_exeext
14104  if ${ac_cv_search_opendir+:} false; then :
14105  break
14106fi
14107done
14108if ${ac_cv_search_opendir+:} false; then :
14109
14110else
14111  ac_cv_search_opendir=no
14112fi
14113rm conftest.$ac_ext
14114LIBS=$ac_func_search_save_LIBS
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14117$as_echo "$ac_cv_search_opendir" >&6; }
14118ac_res=$ac_cv_search_opendir
14119if test "$ac_res" != no; then :
14120  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14121
14122fi
14123
14124fi
14125
14126for ac_header in langinfo.h stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h grp.h pwd.h glob.h
14127do :
14128  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14129ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14131  cat >>confdefs.h <<_ACEOF
14132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133_ACEOF
14134
14135fi
14136
14137done
14138
14139
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14141$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14142if ${ac_cv_c_const+:} false; then :
14143  $as_echo_n "(cached) " >&6
14144else
14145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146/* end confdefs.h.  */
14147
14148int
14149main ()
14150{
14151
14152#ifndef __cplusplus
14153  /* Ultrix mips cc rejects this sort of thing.  */
14154  typedef int charset[2];
14155  const charset cs = { 0, 0 };
14156  /* SunOS 4.1.1 cc rejects this.  */
14157  char const *const *pcpcc;
14158  char **ppc;
14159  /* NEC SVR4.0.2 mips cc rejects this.  */
14160  struct point {int x, y;};
14161  static struct point const zero = {0,0};
14162  /* AIX XL C 1.02.0.0 rejects this.
14163     It does not let you subtract one const X* pointer from another in
14164     an arm of an if-expression whose if-part is not a constant
14165     expression */
14166  const char *g = "string";
14167  pcpcc = &g + (g ? g-g : 0);
14168  /* HPUX 7.0 cc rejects these. */
14169  ++pcpcc;
14170  ppc = (char**) pcpcc;
14171  pcpcc = (char const *const *) ppc;
14172  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14173    char tx;
14174    char *t = &tx;
14175    char const *s = 0 ? (char *) 0 : (char const *) 0;
14176
14177    *t++ = 0;
14178    if (s) return 0;
14179  }
14180  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14181    int x[] = {25, 17};
14182    const int *foo = &x[0];
14183    ++foo;
14184  }
14185  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14186    typedef const int *iptr;
14187    iptr p = 0;
14188    ++p;
14189  }
14190  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14191       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14192    struct s { int j; const int *ap[3]; } bx;
14193    struct s *b = &bx; b->j = 5;
14194  }
14195  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14196    const int foo = 10;
14197    if (!foo) return 0;
14198  }
14199  return !cs[0] && !zero.x;
14200#endif
14201
14202  ;
14203  return 0;
14204}
14205_ACEOF
14206if ac_fn_c_try_compile "$LINENO"; then :
14207  ac_cv_c_const=yes
14208else
14209  ac_cv_c_const=no
14210fi
14211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212fi
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14214$as_echo "$ac_cv_c_const" >&6; }
14215if test $ac_cv_c_const = no; then
14216
14217$as_echo "#define const /**/" >>confdefs.h
14218
14219fi
14220
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14222$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14223if ${ac_cv_header_time+:} false; then :
14224  $as_echo_n "(cached) " >&6
14225else
14226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227/* end confdefs.h.  */
14228#include <sys/types.h>
14229#include <sys/time.h>
14230#include <time.h>
14231
14232int
14233main ()
14234{
14235if ((struct tm *) 0)
14236return 0;
14237  ;
14238  return 0;
14239}
14240_ACEOF
14241if ac_fn_c_try_compile "$LINENO"; then :
14242  ac_cv_header_time=yes
14243else
14244  ac_cv_header_time=no
14245fi
14246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247fi
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14249$as_echo "$ac_cv_header_time" >&6; }
14250if test $ac_cv_header_time = yes; then
14251
14252$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14253
14254fi
14255
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14257$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14258if ${ac_cv_struct_tm+:} false; then :
14259  $as_echo_n "(cached) " >&6
14260else
14261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262/* end confdefs.h.  */
14263#include <sys/types.h>
14264#include <time.h>
14265
14266int
14267main ()
14268{
14269struct tm tm;
14270				     int *p = &tm.tm_sec;
14271				     return !p;
14272  ;
14273  return 0;
14274}
14275_ACEOF
14276if ac_fn_c_try_compile "$LINENO"; then :
14277  ac_cv_struct_tm=time.h
14278else
14279  ac_cv_struct_tm=sys/time.h
14280fi
14281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282fi
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14284$as_echo "$ac_cv_struct_tm" >&6; }
14285if test $ac_cv_struct_tm = sys/time.h; then
14286
14287$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14288
14289fi
14290
14291
14292
14293
14294
14295  for ac_header in $ac_header_list
14296do :
14297  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14299"
14300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14301  cat >>confdefs.h <<_ACEOF
14302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14303_ACEOF
14304
14305fi
14306
14307done
14308
14309
14310
14311
14312
14313
14314
14315      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
14316if test "x$ac_cv_func_vsnprintf" = xyes; then :
14317  hw_cv_func_vsnprintf=yes
14318else
14319  hw_cv_func_vsnprintf=no
14320fi
14321
14322  if test "$hw_cv_func_vsnprintf" = yes; then :
14323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
14324$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
14325if ${hw_cv_func_vsnprintf_c99+:} false; then :
14326  $as_echo_n "(cached) " >&6
14327else
14328  if test "$cross_compiling" = yes; then :
14329  hw_cv_func_vsnprintf_c99=no
14330else
14331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332/* end confdefs.h.  */
14333#if HAVE_STDARG_H
14334          #include <stdarg.h>
14335          #endif
14336          #include <stdio.h>
14337          static int testprintf(char *buf, size_t size, const char *format, ...)
14338          {
14339            int result;
14340            va_list ap;
14341            va_start(ap, format);
14342            result = vsnprintf(buf, size, format, ap);
14343            va_end(ap);
14344            return result;
14345          }
14346int
14347main ()
14348{
14349char buf[43];
14350          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
14351              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
14352              buf[0] != 'T' || buf[3] != '\0')
14353            return 1;
14354  ;
14355  return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_run "$LINENO"; then :
14359  hw_cv_func_vsnprintf_c99=yes
14360else
14361  hw_cv_func_vsnprintf_c99=no
14362fi
14363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14364  conftest.$ac_objext conftest.beam conftest.$ac_ext
14365fi
14366
14367fi
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
14369$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
14370else
14371  hw_cv_func_snprintf_c99=no
14372fi
14373  if test "$hw_cv_func_vsnprintf_c99" = yes; then :
14374
14375$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
14376
14377else
14378
14379$as_echo "#define XXXvsnprintf XXXrpl_vsnprintf" >>confdefs.h
14380
14381    for ac_header in float.h inttypes.h locale.h stddef.h stdint.h
14382do :
14383  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14384ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14386  cat >>confdefs.h <<_ACEOF
14387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14388_ACEOF
14389
14390fi
14391
14392done
14393
14394    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
14395"
14396if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
14397
14398cat >>confdefs.h <<_ACEOF
14399#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
14400_ACEOF
14401
14402
14403fi
14404ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
14405"
14406if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
14407
14408cat >>confdefs.h <<_ACEOF
14409#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
14410_ACEOF
14411
14412
14413fi
14414
14415
14416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
14417$as_echo_n "checking for long double... " >&6; }
14418if ${ac_cv_type_long_double+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421  if test "$GCC" = yes; then
14422       ac_cv_type_long_double=yes
14423     else
14424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h.  */
14426/* The Stardent Vistra knows sizeof (long double), but does
14427		 not support it.  */
14428	      long double foo = 0.0L;
14429int
14430main ()
14431{
14432static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
14433	      sizeof (double) <= sizeof (long double))];
14434test_array [0] = 0;
14435return test_array [0];
14436
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441if ac_fn_c_try_compile "$LINENO"; then :
14442  ac_cv_type_long_double=yes
14443else
14444  ac_cv_type_long_double=no
14445fi
14446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447     fi
14448fi
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
14450$as_echo "$ac_cv_type_long_double" >&6; }
14451  if test $ac_cv_type_long_double = yes; then
14452
14453$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14454
14455  fi
14456
14457
14458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14459$as_echo_n "checking for long long int... " >&6; }
14460if ${ac_cv_type_long_long_int+:} false; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465
14466  /* Test preprocessor.  */
14467      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14468        error in preprocessor;
14469      #endif
14470      #if ! (18446744073709551615ULL <= -1ull)
14471        error in preprocessor;
14472      #endif
14473      /* Test literals.  */
14474      long long int ll = 9223372036854775807ll;
14475      long long int nll = -9223372036854775807LL;
14476      unsigned long long int ull = 18446744073709551615ULL;
14477      /* Test constant expressions.   */
14478      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14479		     ? 1 : -1)];
14480      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14481		     ? 1 : -1)];
14482      int i = 63;
14483int
14484main ()
14485{
14486/* Test availability of runtime routines for shift and division.  */
14487      long long int llmax = 9223372036854775807ll;
14488      unsigned long long int ullmax = 18446744073709551615ull;
14489      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14490	      | (llmax / ll) | (llmax % ll)
14491	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14492	      | (ullmax / ull) | (ullmax % ull));
14493  ;
14494  return 0;
14495}
14496
14497_ACEOF
14498if ac_fn_c_try_link "$LINENO"; then :
14499  			if test "$cross_compiling" = yes; then :
14500  ac_cv_type_long_long_int=yes
14501else
14502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503/* end confdefs.h.  */
14504#include <limits.h>
14505	       #ifndef LLONG_MAX
14506	       # define HALF \
14507			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
14508	       # define LLONG_MAX (HALF - 1 + HALF)
14509	       #endif
14510int
14511main ()
14512{
14513long long int n = 1;
14514	       int i;
14515	       for (i = 0; ; i++)
14516		 {
14517		   long long int m = n << i;
14518		   if (m >> i != n)
14519		     return 1;
14520		   if (LLONG_MAX / 2 < m)
14521		     break;
14522		 }
14523	       return 0;
14524  ;
14525  return 0;
14526}
14527_ACEOF
14528if ac_fn_c_try_run "$LINENO"; then :
14529  ac_cv_type_long_long_int=yes
14530else
14531  ac_cv_type_long_long_int=no
14532fi
14533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14534  conftest.$ac_objext conftest.beam conftest.$ac_ext
14535fi
14536
14537else
14538  ac_cv_type_long_long_int=no
14539fi
14540rm -f core conftest.err conftest.$ac_objext \
14541    conftest$ac_exeext conftest.$ac_ext
14542fi
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14544$as_echo "$ac_cv_type_long_long_int" >&6; }
14545  if test $ac_cv_type_long_long_int = yes; then
14546
14547$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14548
14549  fi
14550
14551
14552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14553$as_echo_n "checking for unsigned long long int... " >&6; }
14554if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14555  $as_echo_n "(cached) " >&6
14556else
14557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h.  */
14559
14560  /* Test preprocessor.  */
14561      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14562        error in preprocessor;
14563      #endif
14564      #if ! (18446744073709551615ULL <= -1ull)
14565        error in preprocessor;
14566      #endif
14567      /* Test literals.  */
14568      long long int ll = 9223372036854775807ll;
14569      long long int nll = -9223372036854775807LL;
14570      unsigned long long int ull = 18446744073709551615ULL;
14571      /* Test constant expressions.   */
14572      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14573		     ? 1 : -1)];
14574      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14575		     ? 1 : -1)];
14576      int i = 63;
14577int
14578main ()
14579{
14580/* Test availability of runtime routines for shift and division.  */
14581      long long int llmax = 9223372036854775807ll;
14582      unsigned long long int ullmax = 18446744073709551615ull;
14583      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14584	      | (llmax / ll) | (llmax % ll)
14585	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14586	      | (ullmax / ull) | (ullmax % ull));
14587  ;
14588  return 0;
14589}
14590
14591_ACEOF
14592if ac_fn_c_try_link "$LINENO"; then :
14593  ac_cv_type_unsigned_long_long_int=yes
14594else
14595  ac_cv_type_unsigned_long_long_int=no
14596fi
14597rm -f core conftest.err conftest.$ac_objext \
14598    conftest$ac_exeext conftest.$ac_ext
14599fi
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14601$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14602  if test $ac_cv_type_unsigned_long_long_int = yes; then
14603
14604$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14605
14606  fi
14607
14608    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14609if test "x$ac_cv_type_size_t" = xyes; then :
14610
14611else
14612
14613cat >>confdefs.h <<_ACEOF
14614#define size_t unsigned int
14615_ACEOF
14616
14617fi
14618
14619
14620
14621  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
14622if test "x$ac_cv_type_intmax_t" = xyes; then :
14623
14624$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
14625
14626else
14627  test $ac_cv_type_long_long_int = yes \
14628       && ac_type='long long int' \
14629       || ac_type='long int'
14630
14631cat >>confdefs.h <<_ACEOF
14632#define intmax_t $ac_type
14633_ACEOF
14634
14635fi
14636
14637
14638
14639
14640  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
14641if test "x$ac_cv_type_uintmax_t" = xyes; then :
14642
14643$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
14644
14645else
14646  test $ac_cv_type_unsigned_long_long_int = yes \
14647       && ac_type='unsigned long long int' \
14648       || ac_type='unsigned long int'
14649
14650cat >>confdefs.h <<_ACEOF
14651#define uintmax_t $ac_type
14652_ACEOF
14653
14654fi
14655
14656
14657
14658  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14659if test "x$ac_cv_type_uintptr_t" = xyes; then :
14660
14661$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14662
14663else
14664  for ac_type in 'unsigned int' 'unsigned long int' \
14665	'unsigned long long int'; do
14666       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h.  */
14668$ac_includes_default
14669int
14670main ()
14671{
14672static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14673test_array [0] = 0;
14674return test_array [0];
14675
14676  ;
14677  return 0;
14678}
14679_ACEOF
14680if ac_fn_c_try_compile "$LINENO"; then :
14681
14682cat >>confdefs.h <<_ACEOF
14683#define uintptr_t $ac_type
14684_ACEOF
14685
14686	  ac_type=
14687fi
14688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689       test -z "$ac_type" && break
14690     done
14691fi
14692
14693
14694    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14695if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
14696
14697cat >>confdefs.h <<_ACEOF
14698#define HAVE_PTRDIFF_T 1
14699_ACEOF
14700
14701
14702fi
14703
14704    for ac_func in localeconv
14705do :
14706  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
14707if test "x$ac_cv_func_localeconv" = xyes; then :
14708  cat >>confdefs.h <<_ACEOF
14709#define HAVE_LOCALECONV 1
14710_ACEOF
14711
14712fi
14713done
14714
14715
14716  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
14717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14718$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14719if ${ac_cv_c_const+:} false; then :
14720  $as_echo_n "(cached) " >&6
14721else
14722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723/* end confdefs.h.  */
14724
14725int
14726main ()
14727{
14728
14729#ifndef __cplusplus
14730  /* Ultrix mips cc rejects this sort of thing.  */
14731  typedef int charset[2];
14732  const charset cs = { 0, 0 };
14733  /* SunOS 4.1.1 cc rejects this.  */
14734  char const *const *pcpcc;
14735  char **ppc;
14736  /* NEC SVR4.0.2 mips cc rejects this.  */
14737  struct point {int x, y;};
14738  static struct point const zero = {0,0};
14739  /* AIX XL C 1.02.0.0 rejects this.
14740     It does not let you subtract one const X* pointer from another in
14741     an arm of an if-expression whose if-part is not a constant
14742     expression */
14743  const char *g = "string";
14744  pcpcc = &g + (g ? g-g : 0);
14745  /* HPUX 7.0 cc rejects these. */
14746  ++pcpcc;
14747  ppc = (char**) pcpcc;
14748  pcpcc = (char const *const *) ppc;
14749  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14750    char tx;
14751    char *t = &tx;
14752    char const *s = 0 ? (char *) 0 : (char const *) 0;
14753
14754    *t++ = 0;
14755    if (s) return 0;
14756  }
14757  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14758    int x[] = {25, 17};
14759    const int *foo = &x[0];
14760    ++foo;
14761  }
14762  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14763    typedef const int *iptr;
14764    iptr p = 0;
14765    ++p;
14766  }
14767  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14768       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14769    struct s { int j; const int *ap[3]; } bx;
14770    struct s *b = &bx; b->j = 5;
14771  }
14772  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14773    const int foo = 10;
14774    if (!foo) return 0;
14775  }
14776  return !cs[0] && !zero.x;
14777#endif
14778
14779  ;
14780  return 0;
14781}
14782_ACEOF
14783if ac_fn_c_try_compile "$LINENO"; then :
14784  ac_cv_c_const=yes
14785else
14786  ac_cv_c_const=no
14787fi
14788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14791$as_echo "$ac_cv_c_const" >&6; }
14792if test $ac_cv_c_const = no; then
14793
14794$as_echo "#define const /**/" >>confdefs.h
14795
14796fi
14797
14798
14799
14800
14801    case " $LIBOBJS " in
14802  *" rrd_snprintf.$ac_objext "* ) ;;
14803  *) LIBOBJS="$LIBOBJS rrd_snprintf.$ac_objext"
14804 ;;
14805esac
14806
14807    _hw_cv_func_xprintf_replace_done=yes
14808fi
14809
14810fi
14811
14812
14813    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14814if test "x$ac_cv_func_snprintf" = xyes; then :
14815  hw_cv_func_snprintf=yes
14816else
14817  hw_cv_func_snprintf=no
14818fi
14819
14820  if test "$hw_cv_func_snprintf" = yes; then :
14821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
14822$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
14823if ${hw_cv_func_snprintf_c99+:} false; then :
14824  $as_echo_n "(cached) " >&6
14825else
14826  if test "$cross_compiling" = yes; then :
14827  hw_cv_func_snprintf_c99=no
14828else
14829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830/* end confdefs.h.  */
14831#include <stdio.h>
14832int
14833main ()
14834{
14835char buf[43];
14836          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
14837              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
14838              buf[0] != 'T' || buf[3] != '\0')
14839            return 1;
14840  ;
14841  return 0;
14842}
14843_ACEOF
14844if ac_fn_c_try_run "$LINENO"; then :
14845  hw_cv_func_snprintf_c99=yes
14846else
14847  hw_cv_func_snprintf_c99=no
14848fi
14849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14850  conftest.$ac_objext conftest.beam conftest.$ac_ext
14851fi
14852
14853fi
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
14855$as_echo "$hw_cv_func_snprintf_c99" >&6; }
14856else
14857  hw_cv_func_snprintf_c99=no
14858fi
14859  if test "$hw_cv_func_snprintf_c99" = yes; then :
14860
14861$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
14862
14863else
14864
14865$as_echo "#define XXXsnprintf XXXrpl_snprintf" >>confdefs.h
14866
14867
14868  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
14869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14870$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14871if ${ac_cv_c_const+:} false; then :
14872  $as_echo_n "(cached) " >&6
14873else
14874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876
14877int
14878main ()
14879{
14880
14881#ifndef __cplusplus
14882  /* Ultrix mips cc rejects this sort of thing.  */
14883  typedef int charset[2];
14884  const charset cs = { 0, 0 };
14885  /* SunOS 4.1.1 cc rejects this.  */
14886  char const *const *pcpcc;
14887  char **ppc;
14888  /* NEC SVR4.0.2 mips cc rejects this.  */
14889  struct point {int x, y;};
14890  static struct point const zero = {0,0};
14891  /* AIX XL C 1.02.0.0 rejects this.
14892     It does not let you subtract one const X* pointer from another in
14893     an arm of an if-expression whose if-part is not a constant
14894     expression */
14895  const char *g = "string";
14896  pcpcc = &g + (g ? g-g : 0);
14897  /* HPUX 7.0 cc rejects these. */
14898  ++pcpcc;
14899  ppc = (char**) pcpcc;
14900  pcpcc = (char const *const *) ppc;
14901  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14902    char tx;
14903    char *t = &tx;
14904    char const *s = 0 ? (char *) 0 : (char const *) 0;
14905
14906    *t++ = 0;
14907    if (s) return 0;
14908  }
14909  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14910    int x[] = {25, 17};
14911    const int *foo = &x[0];
14912    ++foo;
14913  }
14914  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14915    typedef const int *iptr;
14916    iptr p = 0;
14917    ++p;
14918  }
14919  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14920       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14921    struct s { int j; const int *ap[3]; } bx;
14922    struct s *b = &bx; b->j = 5;
14923  }
14924  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14925    const int foo = 10;
14926    if (!foo) return 0;
14927  }
14928  return !cs[0] && !zero.x;
14929#endif
14930
14931  ;
14932  return 0;
14933}
14934_ACEOF
14935if ac_fn_c_try_compile "$LINENO"; then :
14936  ac_cv_c_const=yes
14937else
14938  ac_cv_c_const=no
14939fi
14940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941fi
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14943$as_echo "$ac_cv_c_const" >&6; }
14944if test $ac_cv_c_const = no; then
14945
14946$as_echo "#define const /**/" >>confdefs.h
14947
14948fi
14949
14950
14951
14952
14953    case " $LIBOBJS " in
14954  *" rrd_snprintf.$ac_objext "* ) ;;
14955  *) LIBOBJS="$LIBOBJS rrd_snprintf.$ac_objext"
14956 ;;
14957esac
14958
14959    _hw_cv_func_xprintf_replace_done=yes
14960fi
14961
14962fi
14963
14964
14965
14966
14967
14968
14969
14970    for ac_func in vasprintf
14971do :
14972  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14973if test "x$ac_cv_func_vasprintf" = xyes; then :
14974  cat >>confdefs.h <<_ACEOF
14975#define HAVE_VASPRINTF 1
14976_ACEOF
14977 hw_cv_func_vasprintf=yes
14978else
14979  hw_cv_func_vasprintf=no
14980fi
14981done
14982
14983  if test "$hw_cv_func_vasprintf" = no; then :
14984
14985$as_echo "#define XXXvasprintf XXXrpl_vasprintf" >>confdefs.h
14986
14987    for ac_header in stdlib.h
14988do :
14989  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14990if test "x$ac_cv_header_stdlib_h" = xyes; then :
14991  cat >>confdefs.h <<_ACEOF
14992#define HAVE_STDLIB_H 1
14993_ACEOF
14994
14995fi
14996
14997done
14998
14999
15000      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
15001$as_echo_n "checking for va_copy... " >&6; }
15002if ${hw_cv_func_va_copy+:} false; then :
15003  $as_echo_n "(cached) " >&6
15004else
15005  if test "$cross_compiling" = yes; then :
15006  hw_cv_func_va_copy=no
15007else
15008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009/* end confdefs.h.  */
15010#if HAVE_STDARG_H
15011        #include <stdarg.h>
15012        #elif HAVE_VARARGS_H
15013        #include <varargs.h>
15014        #endif
15015int
15016main ()
15017{
15018va_list ap, aq; va_copy(aq, ap);
15019  ;
15020  return 0;
15021}
15022_ACEOF
15023if ac_fn_c_try_run "$LINENO"; then :
15024  hw_cv_func_va_copy=yes
15025else
15026  hw_cv_func_va_copy=no
15027fi
15028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15029  conftest.$ac_objext conftest.beam conftest.$ac_ext
15030fi
15031
15032fi
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5
15034$as_echo "$hw_cv_func_va_copy" >&6; }
15035  if test "$hw_cv_func_va_copy" = yes; then :
15036
15037$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
15038
15039fi
15040
15041    if test "$hw_cv_func_va_copy" = no; then :
15042
15043      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
15044$as_echo_n "checking for __va_copy... " >&6; }
15045if ${hw_cv_func___va_copy+:} false; then :
15046  $as_echo_n "(cached) " >&6
15047else
15048  if test "$cross_compiling" = yes; then :
15049  hw_cv_func___va_copy=no
15050else
15051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052/* end confdefs.h.  */
15053#if HAVE_STDARG_H
15054        #include <stdarg.h>
15055        #elif HAVE_VARARGS_H
15056        #include <varargs.h>
15057        #endif
15058int
15059main ()
15060{
15061va_list ap, aq; __va_copy(aq, ap);
15062  ;
15063  return 0;
15064}
15065_ACEOF
15066if ac_fn_c_try_run "$LINENO"; then :
15067  hw_cv_func___va_copy=yes
15068else
15069  hw_cv_func___va_copy=no
15070fi
15071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15072  conftest.$ac_objext conftest.beam conftest.$ac_ext
15073fi
15074
15075fi
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5
15077$as_echo "$hw_cv_func___va_copy" >&6; }
15078  if test "$hw_cv_func___va_copy" = yes; then :
15079
15080$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
15081
15082fi
15083
15084fi
15085
15086  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
15087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15088$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15089if ${ac_cv_c_const+:} false; then :
15090  $as_echo_n "(cached) " >&6
15091else
15092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093/* end confdefs.h.  */
15094
15095int
15096main ()
15097{
15098
15099#ifndef __cplusplus
15100  /* Ultrix mips cc rejects this sort of thing.  */
15101  typedef int charset[2];
15102  const charset cs = { 0, 0 };
15103  /* SunOS 4.1.1 cc rejects this.  */
15104  char const *const *pcpcc;
15105  char **ppc;
15106  /* NEC SVR4.0.2 mips cc rejects this.  */
15107  struct point {int x, y;};
15108  static struct point const zero = {0,0};
15109  /* AIX XL C 1.02.0.0 rejects this.
15110     It does not let you subtract one const X* pointer from another in
15111     an arm of an if-expression whose if-part is not a constant
15112     expression */
15113  const char *g = "string";
15114  pcpcc = &g + (g ? g-g : 0);
15115  /* HPUX 7.0 cc rejects these. */
15116  ++pcpcc;
15117  ppc = (char**) pcpcc;
15118  pcpcc = (char const *const *) ppc;
15119  { /* SCO 3.2v4 cc rejects this sort of thing.  */
15120    char tx;
15121    char *t = &tx;
15122    char const *s = 0 ? (char *) 0 : (char const *) 0;
15123
15124    *t++ = 0;
15125    if (s) return 0;
15126  }
15127  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15128    int x[] = {25, 17};
15129    const int *foo = &x[0];
15130    ++foo;
15131  }
15132  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15133    typedef const int *iptr;
15134    iptr p = 0;
15135    ++p;
15136  }
15137  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15138       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15139    struct s { int j; const int *ap[3]; } bx;
15140    struct s *b = &bx; b->j = 5;
15141  }
15142  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15143    const int foo = 10;
15144    if (!foo) return 0;
15145  }
15146  return !cs[0] && !zero.x;
15147#endif
15148
15149  ;
15150  return 0;
15151}
15152_ACEOF
15153if ac_fn_c_try_compile "$LINENO"; then :
15154  ac_cv_c_const=yes
15155else
15156  ac_cv_c_const=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159fi
15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15161$as_echo "$ac_cv_c_const" >&6; }
15162if test $ac_cv_c_const = no; then
15163
15164$as_echo "#define const /**/" >>confdefs.h
15165
15166fi
15167
15168
15169
15170
15171    case " $LIBOBJS " in
15172  *" rrd_snprintf.$ac_objext "* ) ;;
15173  *) LIBOBJS="$LIBOBJS rrd_snprintf.$ac_objext"
15174 ;;
15175esac
15176
15177    _hw_cv_func_xprintf_replace_done=yes
15178fi
15179
15180fi
15181
15182
15183    for ac_func in asprintf
15184do :
15185  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
15186if test "x$ac_cv_func_asprintf" = xyes; then :
15187  cat >>confdefs.h <<_ACEOF
15188#define HAVE_ASPRINTF 1
15189_ACEOF
15190 hw_cv_func_asprintf=yes
15191else
15192  hw_cv_func_asprintf=no
15193fi
15194done
15195
15196  if test "$hw_cv_func_asprintf" = no; then :
15197
15198$as_echo "#define XXXasprintf XXXrpl_asprintf" >>confdefs.h
15199
15200
15201  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
15202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15203$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15204if ${ac_cv_c_const+:} false; then :
15205  $as_echo_n "(cached) " >&6
15206else
15207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208/* end confdefs.h.  */
15209
15210int
15211main ()
15212{
15213
15214#ifndef __cplusplus
15215  /* Ultrix mips cc rejects this sort of thing.  */
15216  typedef int charset[2];
15217  const charset cs = { 0, 0 };
15218  /* SunOS 4.1.1 cc rejects this.  */
15219  char const *const *pcpcc;
15220  char **ppc;
15221  /* NEC SVR4.0.2 mips cc rejects this.  */
15222  struct point {int x, y;};
15223  static struct point const zero = {0,0};
15224  /* AIX XL C 1.02.0.0 rejects this.
15225     It does not let you subtract one const X* pointer from another in
15226     an arm of an if-expression whose if-part is not a constant
15227     expression */
15228  const char *g = "string";
15229  pcpcc = &g + (g ? g-g : 0);
15230  /* HPUX 7.0 cc rejects these. */
15231  ++pcpcc;
15232  ppc = (char**) pcpcc;
15233  pcpcc = (char const *const *) ppc;
15234  { /* SCO 3.2v4 cc rejects this sort of thing.  */
15235    char tx;
15236    char *t = &tx;
15237    char const *s = 0 ? (char *) 0 : (char const *) 0;
15238
15239    *t++ = 0;
15240    if (s) return 0;
15241  }
15242  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15243    int x[] = {25, 17};
15244    const int *foo = &x[0];
15245    ++foo;
15246  }
15247  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15248    typedef const int *iptr;
15249    iptr p = 0;
15250    ++p;
15251  }
15252  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15253       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15254    struct s { int j; const int *ap[3]; } bx;
15255    struct s *b = &bx; b->j = 5;
15256  }
15257  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15258    const int foo = 10;
15259    if (!foo) return 0;
15260  }
15261  return !cs[0] && !zero.x;
15262#endif
15263
15264  ;
15265  return 0;
15266}
15267_ACEOF
15268if ac_fn_c_try_compile "$LINENO"; then :
15269  ac_cv_c_const=yes
15270else
15271  ac_cv_c_const=no
15272fi
15273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274fi
15275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15276$as_echo "$ac_cv_c_const" >&6; }
15277if test $ac_cv_c_const = no; then
15278
15279$as_echo "#define const /**/" >>confdefs.h
15280
15281fi
15282
15283
15284
15285
15286    case " $LIBOBJS " in
15287  *" rrd_snprintf.$ac_objext "* ) ;;
15288  *) LIBOBJS="$LIBOBJS rrd_snprintf.$ac_objext"
15289 ;;
15290esac
15291
15292    _hw_cv_func_xprintf_replace_done=yes
15293fi
15294
15295fi
15296
15297
15298
15299case $TERM in
15300       #   for the most important terminal types we directly know the sequences
15301       xterm|xterm*|vt220|vt220*)
15302               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15303               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15304       ;;
15305       vt100|vt100*|cygwin)
15306               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15307               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15308       ;;
15309       *)
15310               T_MD=''
15311               T_ME=''
15312       ;;
15313esac
15314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15315$as_echo "" >&6; }
15316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Test Library Functions${T_ME}" >&5
15317$as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
15318
15319
15320ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
15321if test "x$ac_cv_func_acos" = xyes; then :
15322
15323else
15324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
15325$as_echo_n "checking for acos in -lm... " >&6; }
15326if ${ac_cv_lib_m_acos+:} false; then :
15327  $as_echo_n "(cached) " >&6
15328else
15329  ac_check_lib_save_LIBS=$LIBS
15330LIBS="-lm  $LIBS"
15331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332/* end confdefs.h.  */
15333
15334/* Override any GCC internal prototype to avoid an error.
15335   Use char because int might match the return type of a GCC
15336   builtin and then its argument prototype would still apply.  */
15337#ifdef __cplusplus
15338extern "C"
15339#endif
15340char acos ();
15341int
15342main ()
15343{
15344return acos ();
15345  ;
15346  return 0;
15347}
15348_ACEOF
15349if ac_fn_c_try_link "$LINENO"; then :
15350  ac_cv_lib_m_acos=yes
15351else
15352  ac_cv_lib_m_acos=no
15353fi
15354rm -f core conftest.err conftest.$ac_objext \
15355    conftest$ac_exeext conftest.$ac_ext
15356LIBS=$ac_check_lib_save_LIBS
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
15359$as_echo "$ac_cv_lib_m_acos" >&6; }
15360if test "x$ac_cv_lib_m_acos" = xyes; then :
15361  cat >>confdefs.h <<_ACEOF
15362#define HAVE_LIBM 1
15363_ACEOF
15364
15365  LIBS="-lm $LIBS"
15366
15367fi
15368
15369fi
15370
15371ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
15372if test "x$ac_cv_func_round" = xyes; then :
15373
15374else
15375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
15376$as_echo_n "checking for round in -lm... " >&6; }
15377if ${ac_cv_lib_m_round+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  ac_check_lib_save_LIBS=$LIBS
15381LIBS="-lm  $LIBS"
15382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383/* end confdefs.h.  */
15384
15385/* Override any GCC internal prototype to avoid an error.
15386   Use char because int might match the return type of a GCC
15387   builtin and then its argument prototype would still apply.  */
15388#ifdef __cplusplus
15389extern "C"
15390#endif
15391char round ();
15392int
15393main ()
15394{
15395return round ();
15396  ;
15397  return 0;
15398}
15399_ACEOF
15400if ac_fn_c_try_link "$LINENO"; then :
15401  ac_cv_lib_m_round=yes
15402else
15403  ac_cv_lib_m_round=no
15404fi
15405rm -f core conftest.err conftest.$ac_objext \
15406    conftest$ac_exeext conftest.$ac_ext
15407LIBS=$ac_check_lib_save_LIBS
15408fi
15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
15410$as_echo "$ac_cv_lib_m_round" >&6; }
15411if test "x$ac_cv_lib_m_round" = xyes; then :
15412  cat >>confdefs.h <<_ACEOF
15413#define HAVE_LIBM 1
15414_ACEOF
15415
15416  LIBS="-lm $LIBS"
15417
15418fi
15419
15420fi
15421
15422
15423
15424
15425
15426
15427for ac_func in strftime
15428do :
15429  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15430if test "x$ac_cv_func_strftime" = xyes; then :
15431  cat >>confdefs.h <<_ACEOF
15432#define HAVE_STRFTIME 1
15433_ACEOF
15434
15435else
15436  # strftime is in -lintl on SCO UNIX.
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15438$as_echo_n "checking for strftime in -lintl... " >&6; }
15439if ${ac_cv_lib_intl_strftime+:} false; then :
15440  $as_echo_n "(cached) " >&6
15441else
15442  ac_check_lib_save_LIBS=$LIBS
15443LIBS="-lintl  $LIBS"
15444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445/* end confdefs.h.  */
15446
15447/* Override any GCC internal prototype to avoid an error.
15448   Use char because int might match the return type of a GCC
15449   builtin and then its argument prototype would still apply.  */
15450#ifdef __cplusplus
15451extern "C"
15452#endif
15453char strftime ();
15454int
15455main ()
15456{
15457return strftime ();
15458  ;
15459  return 0;
15460}
15461_ACEOF
15462if ac_fn_c_try_link "$LINENO"; then :
15463  ac_cv_lib_intl_strftime=yes
15464else
15465  ac_cv_lib_intl_strftime=no
15466fi
15467rm -f core conftest.err conftest.$ac_objext \
15468    conftest$ac_exeext conftest.$ac_ext
15469LIBS=$ac_check_lib_save_LIBS
15470fi
15471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15472$as_echo "$ac_cv_lib_intl_strftime" >&6; }
15473if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15474  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15475
15476LIBS="-lintl $LIBS"
15477fi
15478
15479fi
15480done
15481
15482for ac_func in vprintf
15483do :
15484  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15485if test "x$ac_cv_func_vprintf" = xyes; then :
15486  cat >>confdefs.h <<_ACEOF
15487#define HAVE_VPRINTF 1
15488_ACEOF
15489
15490ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15491if test "x$ac_cv_func__doprnt" = xyes; then :
15492
15493$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15494
15495fi
15496
15497fi
15498done
15499
15500
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15503$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15504if ${ac_cv_c_bigendian+:} false; then :
15505  $as_echo_n "(cached) " >&6
15506else
15507  ac_cv_c_bigendian=unknown
15508    # See if we're dealing with a universal compiler.
15509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510/* end confdefs.h.  */
15511#ifndef __APPLE_CC__
15512	       not a universal capable compiler
15513	     #endif
15514	     typedef int dummy;
15515
15516_ACEOF
15517if ac_fn_c_try_compile "$LINENO"; then :
15518
15519	# Check for potential -arch flags.  It is not universal unless
15520	# there are at least two -arch flags with different values.
15521	ac_arch=
15522	ac_prev=
15523	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15524	 if test -n "$ac_prev"; then
15525	   case $ac_word in
15526	     i?86 | x86_64 | ppc | ppc64)
15527	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15528		 ac_arch=$ac_word
15529	       else
15530		 ac_cv_c_bigendian=universal
15531		 break
15532	       fi
15533	       ;;
15534	   esac
15535	   ac_prev=
15536	 elif test "x$ac_word" = "x-arch"; then
15537	   ac_prev=arch
15538	 fi
15539       done
15540fi
15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542    if test $ac_cv_c_bigendian = unknown; then
15543      # See if sys/param.h defines the BYTE_ORDER macro.
15544      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h.  */
15546#include <sys/types.h>
15547	     #include <sys/param.h>
15548
15549int
15550main ()
15551{
15552#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15553		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15554		     && LITTLE_ENDIAN)
15555	      bogus endian macros
15556	     #endif
15557
15558  ;
15559  return 0;
15560}
15561_ACEOF
15562if ac_fn_c_try_compile "$LINENO"; then :
15563  # It does; now see whether it defined to BIG_ENDIAN or not.
15564	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565/* end confdefs.h.  */
15566#include <sys/types.h>
15567		#include <sys/param.h>
15568
15569int
15570main ()
15571{
15572#if BYTE_ORDER != BIG_ENDIAN
15573		 not big endian
15574		#endif
15575
15576  ;
15577  return 0;
15578}
15579_ACEOF
15580if ac_fn_c_try_compile "$LINENO"; then :
15581  ac_cv_c_bigendian=yes
15582else
15583  ac_cv_c_bigendian=no
15584fi
15585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586fi
15587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588    fi
15589    if test $ac_cv_c_bigendian = unknown; then
15590      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592/* end confdefs.h.  */
15593#include <limits.h>
15594
15595int
15596main ()
15597{
15598#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15599	      bogus endian macros
15600	     #endif
15601
15602  ;
15603  return 0;
15604}
15605_ACEOF
15606if ac_fn_c_try_compile "$LINENO"; then :
15607  # It does; now see whether it defined to _BIG_ENDIAN or not.
15608	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609/* end confdefs.h.  */
15610#include <limits.h>
15611
15612int
15613main ()
15614{
15615#ifndef _BIG_ENDIAN
15616		 not big endian
15617		#endif
15618
15619  ;
15620  return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_compile "$LINENO"; then :
15624  ac_cv_c_bigendian=yes
15625else
15626  ac_cv_c_bigendian=no
15627fi
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629fi
15630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15631    fi
15632    if test $ac_cv_c_bigendian = unknown; then
15633      # Compile a test program.
15634      if test "$cross_compiling" = yes; then :
15635  # Try to guess by grepping values from an object file.
15636	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h.  */
15638short int ascii_mm[] =
15639		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15640		short int ascii_ii[] =
15641		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15642		int use_ascii (int i) {
15643		  return ascii_mm[i] + ascii_ii[i];
15644		}
15645		short int ebcdic_ii[] =
15646		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15647		short int ebcdic_mm[] =
15648		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15649		int use_ebcdic (int i) {
15650		  return ebcdic_mm[i] + ebcdic_ii[i];
15651		}
15652		extern int foo;
15653
15654int
15655main ()
15656{
15657return use_ascii (foo) == use_ebcdic (foo);
15658  ;
15659  return 0;
15660}
15661_ACEOF
15662if ac_fn_c_try_compile "$LINENO"; then :
15663  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15664	      ac_cv_c_bigendian=yes
15665	    fi
15666	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15667	      if test "$ac_cv_c_bigendian" = unknown; then
15668		ac_cv_c_bigendian=no
15669	      else
15670		# finding both strings is unlikely to happen, but who knows?
15671		ac_cv_c_bigendian=unknown
15672	      fi
15673	    fi
15674fi
15675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676else
15677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678/* end confdefs.h.  */
15679$ac_includes_default
15680int
15681main ()
15682{
15683
15684	     /* Are we little or big endian?  From Harbison&Steele.  */
15685	     union
15686	     {
15687	       long int l;
15688	       char c[sizeof (long int)];
15689	     } u;
15690	     u.l = 1;
15691	     return u.c[sizeof (long int) - 1] == 1;
15692
15693  ;
15694  return 0;
15695}
15696_ACEOF
15697if ac_fn_c_try_run "$LINENO"; then :
15698  ac_cv_c_bigendian=no
15699else
15700  ac_cv_c_bigendian=yes
15701fi
15702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15703  conftest.$ac_objext conftest.beam conftest.$ac_ext
15704fi
15705
15706    fi
15707fi
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15709$as_echo "$ac_cv_c_bigendian" >&6; }
15710 case $ac_cv_c_bigendian in #(
15711   yes)
15712     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15713;; #(
15714   no)
15715      ;; #(
15716   universal)
15717
15718$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15719
15720     ;; #(
15721   *)
15722     as_fn_error $? "unknown endianness
15723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15724 esac
15725
15726
15727
15728for ac_func in nl_langinfo tzset fsync mbstowcs opendir readdir chdir chroot getgid getuid setgid setuid strndup strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday getpwnam getgrnam get_current_dir_name
15729do :
15730  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15732if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15733  cat >>confdefs.h <<_ACEOF
15734#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15735_ACEOF
15736
15737fi
15738done
15739
15740
15741ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15742if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15743  ac_have_decl=1
15744else
15745  ac_have_decl=0
15746fi
15747
15748cat >>confdefs.h <<_ACEOF
15749#define HAVE_DECL_STRERROR_R $ac_have_decl
15750_ACEOF
15751
15752for ac_func in strerror_r
15753do :
15754  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15755if test "x$ac_cv_func_strerror_r" = xyes; then :
15756  cat >>confdefs.h <<_ACEOF
15757#define HAVE_STRERROR_R 1
15758_ACEOF
15759
15760fi
15761done
15762
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15764$as_echo_n "checking whether strerror_r returns char *... " >&6; }
15765if ${ac_cv_func_strerror_r_char_p+:} false; then :
15766  $as_echo_n "(cached) " >&6
15767else
15768
15769    ac_cv_func_strerror_r_char_p=no
15770    if test $ac_cv_have_decl_strerror_r = yes; then
15771      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772/* end confdefs.h.  */
15773$ac_includes_default
15774int
15775main ()
15776{
15777
15778	  char buf[100];
15779	  char x = *strerror_r (0, buf, sizeof buf);
15780	  char *p = strerror_r (0, buf, sizeof buf);
15781	  return !p || x;
15782
15783  ;
15784  return 0;
15785}
15786_ACEOF
15787if ac_fn_c_try_compile "$LINENO"; then :
15788  ac_cv_func_strerror_r_char_p=yes
15789fi
15790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791    else
15792      # strerror_r is not declared.  Choose between
15793      # systems that have relatively inaccessible declarations for the
15794      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15795      # former has a strerror_r that returns char*, while the latter
15796      # has a strerror_r that returns `int'.
15797      # This test should segfault on the DEC system.
15798      if test "$cross_compiling" = yes; then :
15799  :
15800else
15801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802/* end confdefs.h.  */
15803$ac_includes_default
15804	extern char *strerror_r ();
15805int
15806main ()
15807{
15808char buf[100];
15809	  char x = *strerror_r (0, buf, sizeof buf);
15810	  return ! isalpha (x);
15811  ;
15812  return 0;
15813}
15814_ACEOF
15815if ac_fn_c_try_run "$LINENO"; then :
15816  ac_cv_func_strerror_r_char_p=yes
15817fi
15818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15819  conftest.$ac_objext conftest.beam conftest.$ac_ext
15820fi
15821
15822    fi
15823
15824fi
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15826$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15827if test $ac_cv_func_strerror_r_char_p = yes; then
15828
15829$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15830
15831fi
15832
15833
15834
15835case $TERM in
15836       #   for the most important terminal types we directly know the sequences
15837       xterm|xterm*|vt220|vt220*)
15838               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15839               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15840       ;;
15841       vt100|vt100*|cygwin)
15842               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15843               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15844       ;;
15845       *)
15846               T_MD=''
15847               T_ME=''
15848       ;;
15849esac
15850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15851$as_echo "" >&6; }
15852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
15853$as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
15854
15855
15856
15857
15858for ac_func in fdatasync
15859do :
15860  ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
15861if test "x$ac_cv_func_fdatasync" = xyes; then :
15862  cat >>confdefs.h <<_ACEOF
15863#define HAVE_FDATASYNC 1
15864_ACEOF
15865
15866else
15867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
15868$as_echo_n "checking for fdatasync in -lrt... " >&6; }
15869if ${ac_cv_lib_rt_fdatasync+:} false; then :
15870  $as_echo_n "(cached) " >&6
15871else
15872  ac_check_lib_save_LIBS=$LIBS
15873LIBS="-lrt  $LIBS"
15874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875/* end confdefs.h.  */
15876
15877/* Override any GCC internal prototype to avoid an error.
15878   Use char because int might match the return type of a GCC
15879   builtin and then its argument prototype would still apply.  */
15880#ifdef __cplusplus
15881extern "C"
15882#endif
15883char fdatasync ();
15884int
15885main ()
15886{
15887return fdatasync ();
15888  ;
15889  return 0;
15890}
15891_ACEOF
15892if ac_fn_c_try_link "$LINENO"; then :
15893  ac_cv_lib_rt_fdatasync=yes
15894else
15895  ac_cv_lib_rt_fdatasync=no
15896fi
15897rm -f core conftest.err conftest.$ac_objext \
15898    conftest$ac_exeext conftest.$ac_ext
15899LIBS=$ac_check_lib_save_LIBS
15900fi
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
15902$as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
15903if test "x$ac_cv_lib_rt_fdatasync" = xyes; then :
15904  LIBS="${LIBS} -lrt"; $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
15905
15906fi
15907
15908fi
15909done
15910
15911for ac_func in fsync
15912do :
15913  ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
15914if test "x$ac_cv_func_fsync" = xyes; then :
15915  cat >>confdefs.h <<_ACEOF
15916#define HAVE_FSYNC 1
15917_ACEOF
15918
15919fi
15920done
15921
15922
15923
15924case "${target}" in
15925  *mingw*) LIBS="${LIBS} -lws2_32";;
15926esac
15927for ac_func in socket
15928do :
15929  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15930if test "x$ac_cv_func_socket" = xyes; then :
15931  cat >>confdefs.h <<_ACEOF
15932#define HAVE_SOCKET 1
15933_ACEOF
15934
15935else
15936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15937$as_echo_n "checking for socket in -lsocket... " >&6; }
15938if ${ac_cv_lib_socket_socket+:} false; then :
15939  $as_echo_n "(cached) " >&6
15940else
15941  ac_check_lib_save_LIBS=$LIBS
15942LIBS="-lsocket  $LIBS"
15943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h.  */
15945
15946/* Override any GCC internal prototype to avoid an error.
15947   Use char because int might match the return type of a GCC
15948   builtin and then its argument prototype would still apply.  */
15949#ifdef __cplusplus
15950extern "C"
15951#endif
15952char socket ();
15953int
15954main ()
15955{
15956return socket ();
15957  ;
15958  return 0;
15959}
15960_ACEOF
15961if ac_fn_c_try_link "$LINENO"; then :
15962  ac_cv_lib_socket_socket=yes
15963else
15964  ac_cv_lib_socket_socket=no
15965fi
15966rm -f core conftest.err conftest.$ac_objext \
15967    conftest$ac_exeext conftest.$ac_ext
15968LIBS=$ac_check_lib_save_LIBS
15969fi
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15971$as_echo "$ac_cv_lib_socket_socket" >&6; }
15972if test "x$ac_cv_lib_socket_socket" = xyes; then :
15973  LIBS="${LIBS} -lsocket"; $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15974
15975fi
15976
15977fi
15978done
15979
15980for ac_func in getaddrinfo
15981do :
15982  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15983if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15984  cat >>confdefs.h <<_ACEOF
15985#define HAVE_GETADDRINFO 1
15986_ACEOF
15987
15988else
15989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5
15990$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
15991if ${ac_cv_lib_nsl_getaddrinfo+:} false; then :
15992  $as_echo_n "(cached) " >&6
15993else
15994  ac_check_lib_save_LIBS=$LIBS
15995LIBS="-lnsl  $LIBS"
15996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h.  */
15998
15999/* Override any GCC internal prototype to avoid an error.
16000   Use char because int might match the return type of a GCC
16001   builtin and then its argument prototype would still apply.  */
16002#ifdef __cplusplus
16003extern "C"
16004#endif
16005char getaddrinfo ();
16006int
16007main ()
16008{
16009return getaddrinfo ();
16010  ;
16011  return 0;
16012}
16013_ACEOF
16014if ac_fn_c_try_link "$LINENO"; then :
16015  ac_cv_lib_nsl_getaddrinfo=yes
16016else
16017  ac_cv_lib_nsl_getaddrinfo=no
16018fi
16019rm -f core conftest.err conftest.$ac_objext \
16020    conftest$ac_exeext conftest.$ac_ext
16021LIBS=$ac_check_lib_save_LIBS
16022fi
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5
16024$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
16025if test "x$ac_cv_lib_nsl_getaddrinfo" = xyes; then :
16026  LIBS="${LIBS} -lnsl"; $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16027
16028fi
16029
16030fi
16031done
16032
16033for ac_func in sigwaitinfo
16034do :
16035  ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
16036if test "x$ac_cv_func_sigwaitinfo" = xyes; then :
16037  cat >>confdefs.h <<_ACEOF
16038#define HAVE_SIGWAITINFO 1
16039_ACEOF
16040
16041else
16042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwaitinfo in -lrt" >&5
16043$as_echo_n "checking for sigwaitinfo in -lrt... " >&6; }
16044if ${ac_cv_lib_rt_sigwaitinfo+:} false; then :
16045  $as_echo_n "(cached) " >&6
16046else
16047  ac_check_lib_save_LIBS=$LIBS
16048LIBS="-lrt  $LIBS"
16049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050/* end confdefs.h.  */
16051
16052/* Override any GCC internal prototype to avoid an error.
16053   Use char because int might match the return type of a GCC
16054   builtin and then its argument prototype would still apply.  */
16055#ifdef __cplusplus
16056extern "C"
16057#endif
16058char sigwaitinfo ();
16059int
16060main ()
16061{
16062return sigwaitinfo ();
16063  ;
16064  return 0;
16065}
16066_ACEOF
16067if ac_fn_c_try_link "$LINENO"; then :
16068  ac_cv_lib_rt_sigwaitinfo=yes
16069else
16070  ac_cv_lib_rt_sigwaitinfo=no
16071fi
16072rm -f core conftest.err conftest.$ac_objext \
16073    conftest$ac_exeext conftest.$ac_ext
16074LIBS=$ac_check_lib_save_LIBS
16075fi
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sigwaitinfo" >&5
16077$as_echo "$ac_cv_lib_rt_sigwaitinfo" >&6; }
16078if test "x$ac_cv_lib_rt_sigwaitinfo" = xyes; then :
16079  LIBS="${LIBS} -lrt"; $as_echo "#define HAVE_SIGWAITINFO 1" >>confdefs.h
16080
16081fi
16082
16083fi
16084done
16085
16086
16087if test "x$enable_mmap" = "xyes"; then
16088  case "$host" in
16089  *cygwin*)
16090    # the normal mmap test does not work in cygwin
16091    for ac_func in mmap
16092do :
16093  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16094if test "x$ac_cv_func_mmap" = xyes; then :
16095  cat >>confdefs.h <<_ACEOF
16096#define HAVE_MMAP 1
16097_ACEOF
16098
16099fi
16100done
16101
16102    if test "x$ac_cv_func_mmap" = "xyes"; then
16103      ac_cv_func_mmap_fixed_mapped=yes
16104    fi
16105  ;;
16106  *)
16107    for ac_header in sys/mman.h
16108do :
16109  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16110if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16111  cat >>confdefs.h <<_ACEOF
16112#define HAVE_SYS_MMAN_H 1
16113_ACEOF
16114
16115fi
16116
16117done
16118
16119
16120
16121
16122
16123
16124
16125
16126for ac_func in getpagesize
16127do :
16128  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16129if test "x$ac_cv_func_getpagesize" = xyes; then :
16130  cat >>confdefs.h <<_ACEOF
16131#define HAVE_GETPAGESIZE 1
16132_ACEOF
16133
16134fi
16135done
16136
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16138$as_echo_n "checking for working mmap... " >&6; }
16139if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16140  $as_echo_n "(cached) " >&6
16141else
16142  if test "$cross_compiling" = yes; then :
16143  ac_cv_func_mmap_fixed_mapped=no
16144else
16145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146/* end confdefs.h.  */
16147$ac_includes_default
16148/* malloc might have been renamed as rpl_malloc. */
16149#undef malloc
16150
16151/* Thanks to Mike Haertel and Jim Avera for this test.
16152   Here is a matrix of mmap possibilities:
16153	mmap private not fixed
16154	mmap private fixed at somewhere currently unmapped
16155	mmap private fixed at somewhere already mapped
16156	mmap shared not fixed
16157	mmap shared fixed at somewhere currently unmapped
16158	mmap shared fixed at somewhere already mapped
16159   For private mappings, we should verify that changes cannot be read()
16160   back from the file, nor mmap's back from the file at a different
16161   address.  (There have been systems where private was not correctly
16162   implemented like the infamous i386 svr4.0, and systems where the
16163   VM page cache was not coherent with the file system buffer cache
16164   like early versions of FreeBSD and possibly contemporary NetBSD.)
16165   For shared mappings, we should conversely verify that changes get
16166   propagated back to all the places they're supposed to be.
16167
16168   Grep wants private fixed already mapped.
16169   The main things grep needs to know about mmap are:
16170   * does it exist and is it safe to write into the mmap'd area
16171   * how to use it (BSD variants)  */
16172
16173#include <fcntl.h>
16174#include <sys/mman.h>
16175
16176#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16177char *malloc ();
16178#endif
16179
16180/* This mess was copied from the GNU getpagesize.h.  */
16181#ifndef HAVE_GETPAGESIZE
16182# ifdef _SC_PAGESIZE
16183#  define getpagesize() sysconf(_SC_PAGESIZE)
16184# else /* no _SC_PAGESIZE */
16185#  ifdef HAVE_SYS_PARAM_H
16186#   include <sys/param.h>
16187#   ifdef EXEC_PAGESIZE
16188#    define getpagesize() EXEC_PAGESIZE
16189#   else /* no EXEC_PAGESIZE */
16190#    ifdef NBPG
16191#     define getpagesize() NBPG * CLSIZE
16192#     ifndef CLSIZE
16193#      define CLSIZE 1
16194#     endif /* no CLSIZE */
16195#    else /* no NBPG */
16196#     ifdef NBPC
16197#      define getpagesize() NBPC
16198#     else /* no NBPC */
16199#      ifdef PAGESIZE
16200#       define getpagesize() PAGESIZE
16201#      endif /* PAGESIZE */
16202#     endif /* no NBPC */
16203#    endif /* no NBPG */
16204#   endif /* no EXEC_PAGESIZE */
16205#  else /* no HAVE_SYS_PARAM_H */
16206#   define getpagesize() 8192	/* punt totally */
16207#  endif /* no HAVE_SYS_PARAM_H */
16208# endif /* no _SC_PAGESIZE */
16209
16210#endif /* no HAVE_GETPAGESIZE */
16211
16212int
16213main ()
16214{
16215  char *data, *data2, *data3;
16216  const char *cdata2;
16217  int i, pagesize;
16218  int fd, fd2;
16219
16220  pagesize = getpagesize ();
16221
16222  /* First, make a file with some known garbage in it. */
16223  data = (char *) malloc (pagesize);
16224  if (!data)
16225    return 1;
16226  for (i = 0; i < pagesize; ++i)
16227    *(data + i) = rand ();
16228  umask (0);
16229  fd = creat ("conftest.mmap", 0600);
16230  if (fd < 0)
16231    return 2;
16232  if (write (fd, data, pagesize) != pagesize)
16233    return 3;
16234  close (fd);
16235
16236  /* Next, check that the tail of a page is zero-filled.  File must have
16237     non-zero length, otherwise we risk SIGBUS for entire page.  */
16238  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16239  if (fd2 < 0)
16240    return 4;
16241  cdata2 = "";
16242  if (write (fd2, cdata2, 1) != 1)
16243    return 5;
16244  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16245  if (data2 == MAP_FAILED)
16246    return 6;
16247  for (i = 0; i < pagesize; ++i)
16248    if (*(data2 + i))
16249      return 7;
16250  close (fd2);
16251  if (munmap (data2, pagesize))
16252    return 8;
16253
16254  /* Next, try to mmap the file at a fixed address which already has
16255     something else allocated at it.  If we can, also make sure that
16256     we see the same garbage.  */
16257  fd = open ("conftest.mmap", O_RDWR);
16258  if (fd < 0)
16259    return 9;
16260  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16261		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16262    return 10;
16263  for (i = 0; i < pagesize; ++i)
16264    if (*(data + i) != *(data2 + i))
16265      return 11;
16266
16267  /* Finally, make sure that changes to the mapped area do not
16268     percolate back to the file as seen by read().  (This is a bug on
16269     some variants of i386 svr4.0.)  */
16270  for (i = 0; i < pagesize; ++i)
16271    *(data2 + i) = *(data2 + i) + 1;
16272  data3 = (char *) malloc (pagesize);
16273  if (!data3)
16274    return 12;
16275  if (read (fd, data3, pagesize) != pagesize)
16276    return 13;
16277  for (i = 0; i < pagesize; ++i)
16278    if (*(data + i) != *(data3 + i))
16279      return 14;
16280  close (fd);
16281  free (data);
16282  free (data3);
16283  return 0;
16284}
16285_ACEOF
16286if ac_fn_c_try_run "$LINENO"; then :
16287  ac_cv_func_mmap_fixed_mapped=yes
16288else
16289  ac_cv_func_mmap_fixed_mapped=no
16290fi
16291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16292  conftest.$ac_objext conftest.beam conftest.$ac_ext
16293fi
16294
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16297$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16298if test $ac_cv_func_mmap_fixed_mapped = yes; then
16299
16300$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16301
16302fi
16303rm -f conftest.mmap conftest.txt
16304
16305    for ac_func in mmap munmap
16306do :
16307  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16308ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16309if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16310  cat >>confdefs.h <<_ACEOF
16311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16312_ACEOF
16313
16314fi
16315done
16316
16317    ac_fn_c_check_decl "$LINENO" "madvise" "ac_cv_have_decl_madvise" "#ifdef HAVE_SYS_MMAN_H
16318				     # include <sys/mman.h>
16319				     #endif
16320"
16321if test "x$ac_cv_have_decl_madvise" = xyes; then :
16322  ac_have_decl=1
16323else
16324  ac_have_decl=0
16325fi
16326
16327cat >>confdefs.h <<_ACEOF
16328#define HAVE_DECL_MADVISE $ac_have_decl
16329_ACEOF
16330
16331    if test "x$ac_cv_have_decl_madvise" = "xyes";
16332    then
16333      for ac_func in madvise
16334do :
16335  ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
16336if test "x$ac_cv_func_madvise" = xyes; then :
16337  cat >>confdefs.h <<_ACEOF
16338#define HAVE_MADVISE 1
16339_ACEOF
16340
16341fi
16342done
16343
16344    else
16345      for ac_func in posix_madvise
16346do :
16347  ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
16348if test "x$ac_cv_func_posix_madvise" = xyes; then :
16349  cat >>confdefs.h <<_ACEOF
16350#define HAVE_POSIX_MADVISE 1
16351_ACEOF
16352
16353fi
16354done
16355
16356      if test "x$ac_cv_func_posix_madvise" != "xyes"; then
16357        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: madvise() nor posix_madvise() found." >&5
16358$as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
16359      fi
16360    fi
16361  ;;
16362  esac
16363  if test "x$ac_cv_func_mmap" != "xyes";
16364  then
16365    as_fn_error $? "--enable-mmap requested but mmap() was not detected" "$LINENO" 5
16366  fi
16367fi
16368
16369ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#define _XOPEN_SOURCE 600
16370#include <fcntl.h>
16371"
16372if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
16373  ac_have_decl=1
16374else
16375  ac_have_decl=0
16376fi
16377
16378cat >>confdefs.h <<_ACEOF
16379#define HAVE_DECL_POSIX_FADVISE $ac_have_decl
16380_ACEOF
16381
16382for ac_func in posix_fadvise
16383do :
16384  ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
16385if test "x$ac_cv_func_posix_fadvise" = xyes; then :
16386  cat >>confdefs.h <<_ACEOF
16387#define HAVE_POSIX_FADVISE 1
16388_ACEOF
16389
16390fi
16391done
16392
16393
16394for ac_func in posix_fallocate
16395do :
16396  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
16397if test "x$ac_cv_func_posix_fallocate" = xyes; then :
16398  cat >>confdefs.h <<_ACEOF
16399#define HAVE_POSIX_FALLOCATE 1
16400_ACEOF
16401
16402fi
16403done
16404
16405
16406
16407case $TERM in
16408       #   for the most important terminal types we directly know the sequences
16409       xterm|xterm*|vt220|vt220*)
16410               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
16411               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
16412       ;;
16413       vt100|vt100*|cygwin)
16414               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
16415               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
16416       ;;
16417       *)
16418               T_MD=''
16419               T_ME=''
16420       ;;
16421esac
16422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16423$as_echo "" >&6; }
16424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Libintl Processing${T_ME}" >&5
16425$as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
16426
16427
16428
16429
16430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16431$as_echo_n "checking whether NLS is requested... " >&6; }
16432    # Check whether --enable-nls was given.
16433if test "${enable_nls+set}" = set; then :
16434  enableval=$enable_nls; USE_NLS=$enableval
16435else
16436  USE_NLS=yes
16437fi
16438
16439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16440$as_echo "$USE_NLS" >&6; }
16441
16442
16443
16444
16445      GETTEXT_MACRO_VERSION=0.17
16446
16447
16448
16449
16450# Prepare PATH_SEPARATOR.
16451# The user is always right.
16452if test "${PATH_SEPARATOR+set}" != set; then
16453  echo "#! /bin/sh" >conf$$.sh
16454  echo  "exit 0"   >>conf$$.sh
16455  chmod +x conf$$.sh
16456  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16457    PATH_SEPARATOR=';'
16458  else
16459    PATH_SEPARATOR=:
16460  fi
16461  rm -f conf$$.sh
16462fi
16463
16464# Find out how to test for executable files. Don't use a zero-byte file,
16465# as systems may use methods other than mode bits to determine executability.
16466cat >conf$$.file <<_ASEOF
16467#! /bin/sh
16468exit 0
16469_ASEOF
16470chmod +x conf$$.file
16471if test -x conf$$.file >/dev/null 2>&1; then
16472  ac_executable_p="test -x"
16473else
16474  ac_executable_p="test -f"
16475fi
16476rm -f conf$$.file
16477
16478# Extract the first word of "msgfmt", so it can be a program name with args.
16479set dummy msgfmt; ac_word=$2
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16481$as_echo_n "checking for $ac_word... " >&6; }
16482if ${ac_cv_path_MSGFMT+:} false; then :
16483  $as_echo_n "(cached) " >&6
16484else
16485  case "$MSGFMT" in
16486  [\\/]* | ?:[\\/]*)
16487    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16488    ;;
16489  *)
16490    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16491    for ac_dir in $PATH; do
16492      IFS="$ac_save_IFS"
16493      test -z "$ac_dir" && ac_dir=.
16494      for ac_exec_ext in '' $ac_executable_extensions; do
16495        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16496          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16497          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16498     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16499            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16500            break 2
16501          fi
16502        fi
16503      done
16504    done
16505    IFS="$ac_save_IFS"
16506  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16507    ;;
16508esac
16509fi
16510MSGFMT="$ac_cv_path_MSGFMT"
16511if test "$MSGFMT" != ":"; then
16512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16513$as_echo "$MSGFMT" >&6; }
16514else
16515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516$as_echo "no" >&6; }
16517fi
16518
16519  # Extract the first word of "gmsgfmt", so it can be a program name with args.
16520set dummy gmsgfmt; ac_word=$2
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16522$as_echo_n "checking for $ac_word... " >&6; }
16523if ${ac_cv_path_GMSGFMT+:} false; then :
16524  $as_echo_n "(cached) " >&6
16525else
16526  case $GMSGFMT in
16527  [\\/]* | ?:[\\/]*)
16528  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16529  ;;
16530  *)
16531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16532for as_dir in $PATH
16533do
16534  IFS=$as_save_IFS
16535  test -z "$as_dir" && as_dir=.
16536    for ac_exec_ext in '' $ac_executable_extensions; do
16537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16538    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16540    break 2
16541  fi
16542done
16543  done
16544IFS=$as_save_IFS
16545
16546  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16547  ;;
16548esac
16549fi
16550GMSGFMT=$ac_cv_path_GMSGFMT
16551if test -n "$GMSGFMT"; then
16552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16553$as_echo "$GMSGFMT" >&6; }
16554else
16555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556$as_echo "no" >&6; }
16557fi
16558
16559
16560
16561    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16562    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16563    *) MSGFMT_015=$MSGFMT ;;
16564  esac
16565
16566  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16567    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16568    *) GMSGFMT_015=$GMSGFMT ;;
16569  esac
16570
16571
16572
16573# Prepare PATH_SEPARATOR.
16574# The user is always right.
16575if test "${PATH_SEPARATOR+set}" != set; then
16576  echo "#! /bin/sh" >conf$$.sh
16577  echo  "exit 0"   >>conf$$.sh
16578  chmod +x conf$$.sh
16579  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16580    PATH_SEPARATOR=';'
16581  else
16582    PATH_SEPARATOR=:
16583  fi
16584  rm -f conf$$.sh
16585fi
16586
16587# Find out how to test for executable files. Don't use a zero-byte file,
16588# as systems may use methods other than mode bits to determine executability.
16589cat >conf$$.file <<_ASEOF
16590#! /bin/sh
16591exit 0
16592_ASEOF
16593chmod +x conf$$.file
16594if test -x conf$$.file >/dev/null 2>&1; then
16595  ac_executable_p="test -x"
16596else
16597  ac_executable_p="test -f"
16598fi
16599rm -f conf$$.file
16600
16601# Extract the first word of "xgettext", so it can be a program name with args.
16602set dummy xgettext; ac_word=$2
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16604$as_echo_n "checking for $ac_word... " >&6; }
16605if ${ac_cv_path_XGETTEXT+:} false; then :
16606  $as_echo_n "(cached) " >&6
16607else
16608  case "$XGETTEXT" in
16609  [\\/]* | ?:[\\/]*)
16610    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16611    ;;
16612  *)
16613    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16614    for ac_dir in $PATH; do
16615      IFS="$ac_save_IFS"
16616      test -z "$ac_dir" && ac_dir=.
16617      for ac_exec_ext in '' $ac_executable_extensions; do
16618        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16619          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16620          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16621     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16622            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16623            break 2
16624          fi
16625        fi
16626      done
16627    done
16628    IFS="$ac_save_IFS"
16629  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16630    ;;
16631esac
16632fi
16633XGETTEXT="$ac_cv_path_XGETTEXT"
16634if test "$XGETTEXT" != ":"; then
16635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16636$as_echo "$XGETTEXT" >&6; }
16637else
16638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16639$as_echo "no" >&6; }
16640fi
16641
16642    rm -f messages.po
16643
16644    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16645    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16646    *) XGETTEXT_015=$XGETTEXT ;;
16647  esac
16648
16649
16650
16651# Prepare PATH_SEPARATOR.
16652# The user is always right.
16653if test "${PATH_SEPARATOR+set}" != set; then
16654  echo "#! /bin/sh" >conf$$.sh
16655  echo  "exit 0"   >>conf$$.sh
16656  chmod +x conf$$.sh
16657  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16658    PATH_SEPARATOR=';'
16659  else
16660    PATH_SEPARATOR=:
16661  fi
16662  rm -f conf$$.sh
16663fi
16664
16665# Find out how to test for executable files. Don't use a zero-byte file,
16666# as systems may use methods other than mode bits to determine executability.
16667cat >conf$$.file <<_ASEOF
16668#! /bin/sh
16669exit 0
16670_ASEOF
16671chmod +x conf$$.file
16672if test -x conf$$.file >/dev/null 2>&1; then
16673  ac_executable_p="test -x"
16674else
16675  ac_executable_p="test -f"
16676fi
16677rm -f conf$$.file
16678
16679# Extract the first word of "msgmerge", so it can be a program name with args.
16680set dummy msgmerge; ac_word=$2
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16682$as_echo_n "checking for $ac_word... " >&6; }
16683if ${ac_cv_path_MSGMERGE+:} false; then :
16684  $as_echo_n "(cached) " >&6
16685else
16686  case "$MSGMERGE" in
16687  [\\/]* | ?:[\\/]*)
16688    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16689    ;;
16690  *)
16691    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16692    for ac_dir in $PATH; do
16693      IFS="$ac_save_IFS"
16694      test -z "$ac_dir" && ac_dir=.
16695      for ac_exec_ext in '' $ac_executable_extensions; do
16696        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16697          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16698          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16699            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16700            break 2
16701          fi
16702        fi
16703      done
16704    done
16705    IFS="$ac_save_IFS"
16706  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16707    ;;
16708esac
16709fi
16710MSGMERGE="$ac_cv_path_MSGMERGE"
16711if test "$MSGMERGE" != ":"; then
16712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16713$as_echo "$MSGMERGE" >&6; }
16714else
16715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716$as_echo "no" >&6; }
16717fi
16718
16719
16720        test -n "$localedir" || localedir='${datadir}/locale'
16721
16722
16723    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16724
16725
16726  ac_config_commands="$ac_config_commands po-directories"
16727
16728
16729
16730      if test "X$prefix" = "XNONE"; then
16731    acl_final_prefix="$ac_default_prefix"
16732  else
16733    acl_final_prefix="$prefix"
16734  fi
16735  if test "X$exec_prefix" = "XNONE"; then
16736    acl_final_exec_prefix='${prefix}'
16737  else
16738    acl_final_exec_prefix="$exec_prefix"
16739  fi
16740  acl_save_prefix="$prefix"
16741  prefix="$acl_final_prefix"
16742  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16743  prefix="$acl_save_prefix"
16744
16745
16746# Check whether --with-gnu-ld was given.
16747if test "${with_gnu_ld+set}" = set; then :
16748  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16749else
16750  with_gnu_ld=no
16751fi
16752
16753# Prepare PATH_SEPARATOR.
16754# The user is always right.
16755if test "${PATH_SEPARATOR+set}" != set; then
16756  echo "#! /bin/sh" >conf$$.sh
16757  echo  "exit 0"   >>conf$$.sh
16758  chmod +x conf$$.sh
16759  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16760    PATH_SEPARATOR=';'
16761  else
16762    PATH_SEPARATOR=:
16763  fi
16764  rm -f conf$$.sh
16765fi
16766ac_prog=ld
16767if test "$GCC" = yes; then
16768  # Check if gcc -print-prog-name=ld gives a path.
16769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16770$as_echo_n "checking for ld used by GCC... " >&6; }
16771  case $host in
16772  *-*-mingw*)
16773    # gcc leaves a trailing carriage return which upsets mingw
16774    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16775  *)
16776    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16777  esac
16778  case $ac_prog in
16779    # Accept absolute paths.
16780    [\\/]* | [A-Za-z]:[\\/]*)
16781      re_direlt='/[^/][^/]*/\.\./'
16782      # Canonicalize the path of ld
16783      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16784      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16785	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16786      done
16787      test -z "$LD" && LD="$ac_prog"
16788      ;;
16789  "")
16790    # If it fails, then pretend we aren't using GCC.
16791    ac_prog=ld
16792    ;;
16793  *)
16794    # If it is relative, then search for the first ld in PATH.
16795    with_gnu_ld=unknown
16796    ;;
16797  esac
16798elif test "$with_gnu_ld" = yes; then
16799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16800$as_echo_n "checking for GNU ld... " >&6; }
16801else
16802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16803$as_echo_n "checking for non-GNU ld... " >&6; }
16804fi
16805if ${acl_cv_path_LD+:} false; then :
16806  $as_echo_n "(cached) " >&6
16807else
16808  if test -z "$LD"; then
16809  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16810  for ac_dir in $PATH; do
16811    test -z "$ac_dir" && ac_dir=.
16812    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16813      acl_cv_path_LD="$ac_dir/$ac_prog"
16814      # Check to see if the program is GNU ld.  I'd rather use --version,
16815      # but apparently some GNU ld's only accept -v.
16816      # Break only if it was the GNU/non-GNU ld that we prefer.
16817      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16818      *GNU* | *'with BFD'*)
16819	test "$with_gnu_ld" != no && break ;;
16820      *)
16821	test "$with_gnu_ld" != yes && break ;;
16822      esac
16823    fi
16824  done
16825  IFS="$ac_save_ifs"
16826else
16827  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16828fi
16829fi
16830
16831LD="$acl_cv_path_LD"
16832if test -n "$LD"; then
16833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16834$as_echo "$LD" >&6; }
16835else
16836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16837$as_echo "no" >&6; }
16838fi
16839test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16841$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16842if ${acl_cv_prog_gnu_ld+:} false; then :
16843  $as_echo_n "(cached) " >&6
16844else
16845  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16846case `$LD -v 2>&1 </dev/null` in
16847*GNU* | *'with BFD'*)
16848  acl_cv_prog_gnu_ld=yes ;;
16849*)
16850  acl_cv_prog_gnu_ld=no ;;
16851esac
16852fi
16853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16854$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16855with_gnu_ld=$acl_cv_prog_gnu_ld
16856
16857
16858
16859
16860                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16861$as_echo_n "checking for shared library run path origin... " >&6; }
16862if ${acl_cv_rpath+:} false; then :
16863  $as_echo_n "(cached) " >&6
16864else
16865
16866    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16867    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16868    . ./conftest.sh
16869    rm -f ./conftest.sh
16870    acl_cv_rpath=done
16871
16872fi
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16874$as_echo "$acl_cv_rpath" >&6; }
16875  wl="$acl_cv_wl"
16876  acl_libext="$acl_cv_libext"
16877  acl_shlibext="$acl_cv_shlibext"
16878  acl_libname_spec="$acl_cv_libname_spec"
16879  acl_library_names_spec="$acl_cv_library_names_spec"
16880  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16881  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16882  acl_hardcode_direct="$acl_cv_hardcode_direct"
16883  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16884    # Check whether --enable-rpath was given.
16885if test "${enable_rpath+set}" = set; then :
16886  enableval=$enable_rpath; :
16887else
16888  enable_rpath=yes
16889fi
16890
16891
16892
16893                  acl_libdirstem=lib
16894  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16895  if test -n "$searchpath"; then
16896    acl_save_IFS="${IFS= 	}"; IFS=":"
16897    for searchdir in $searchpath; do
16898      if test -d "$searchdir"; then
16899        case "$searchdir" in
16900          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16901          *) searchdir=`cd "$searchdir" && pwd`
16902             case "$searchdir" in
16903               */lib64 ) acl_libdirstem=lib64 ;;
16904             esac ;;
16905        esac
16906      fi
16907    done
16908    IFS="$acl_save_IFS"
16909  fi
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919    use_additional=yes
16920
16921  acl_save_prefix="$prefix"
16922  prefix="$acl_final_prefix"
16923  acl_save_exec_prefix="$exec_prefix"
16924  exec_prefix="$acl_final_exec_prefix"
16925
16926    eval additional_includedir=\"$includedir\"
16927    eval additional_libdir=\"$libdir\"
16928
16929  exec_prefix="$acl_save_exec_prefix"
16930  prefix="$acl_save_prefix"
16931
16932
16933# Check whether --with-libiconv-prefix was given.
16934if test "${with_libiconv_prefix+set}" = set; then :
16935  withval=$with_libiconv_prefix;
16936    if test "X$withval" = "Xno"; then
16937      use_additional=no
16938    else
16939      if test "X$withval" = "X"; then
16940
16941  acl_save_prefix="$prefix"
16942  prefix="$acl_final_prefix"
16943  acl_save_exec_prefix="$exec_prefix"
16944  exec_prefix="$acl_final_exec_prefix"
16945
16946          eval additional_includedir=\"$includedir\"
16947          eval additional_libdir=\"$libdir\"
16948
16949  exec_prefix="$acl_save_exec_prefix"
16950  prefix="$acl_save_prefix"
16951
16952      else
16953        additional_includedir="$withval/include"
16954        additional_libdir="$withval/$acl_libdirstem"
16955      fi
16956    fi
16957
16958fi
16959
16960      LIBICONV=
16961  LTLIBICONV=
16962  INCICONV=
16963  LIBICONV_PREFIX=
16964  rpathdirs=
16965  ltrpathdirs=
16966  names_already_handled=
16967  names_next_round='iconv '
16968  while test -n "$names_next_round"; do
16969    names_this_round="$names_next_round"
16970    names_next_round=
16971    for name in $names_this_round; do
16972      already_handled=
16973      for n in $names_already_handled; do
16974        if test "$n" = "$name"; then
16975          already_handled=yes
16976          break
16977        fi
16978      done
16979      if test -z "$already_handled"; then
16980        names_already_handled="$names_already_handled $name"
16981                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16982        eval value=\"\$HAVE_LIB$uppername\"
16983        if test -n "$value"; then
16984          if test "$value" = yes; then
16985            eval value=\"\$LIB$uppername\"
16986            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16987            eval value=\"\$LTLIB$uppername\"
16988            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16989          else
16990                                    :
16991          fi
16992        else
16993                              found_dir=
16994          found_la=
16995          found_so=
16996          found_a=
16997          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16998          if test -n "$acl_shlibext"; then
16999            shrext=".$acl_shlibext"             # typically: shrext=.so
17000          else
17001            shrext=
17002          fi
17003          if test $use_additional = yes; then
17004            dir="$additional_libdir"
17005                                    if test -n "$acl_shlibext"; then
17006              if test -f "$dir/$libname$shrext"; then
17007                found_dir="$dir"
17008                found_so="$dir/$libname$shrext"
17009              else
17010                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17011                  ver=`(cd "$dir" && \
17012                        for f in "$libname$shrext".*; do echo "$f"; done \
17013                        | sed -e "s,^$libname$shrext\\\\.,," \
17014                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17015                        | sed 1q ) 2>/dev/null`
17016                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17017                    found_dir="$dir"
17018                    found_so="$dir/$libname$shrext.$ver"
17019                  fi
17020                else
17021                  eval library_names=\"$acl_library_names_spec\"
17022                  for f in $library_names; do
17023                    if test -f "$dir/$f"; then
17024                      found_dir="$dir"
17025                      found_so="$dir/$f"
17026                      break
17027                    fi
17028                  done
17029                fi
17030              fi
17031            fi
17032                        if test "X$found_dir" = "X"; then
17033              if test -f "$dir/$libname.$acl_libext"; then
17034                found_dir="$dir"
17035                found_a="$dir/$libname.$acl_libext"
17036              fi
17037            fi
17038            if test "X$found_dir" != "X"; then
17039              if test -f "$dir/$libname.la"; then
17040                found_la="$dir/$libname.la"
17041              fi
17042            fi
17043          fi
17044          if test "X$found_dir" = "X"; then
17045            for x in $LDFLAGS $LTLIBICONV; do
17046
17047  acl_save_prefix="$prefix"
17048  prefix="$acl_final_prefix"
17049  acl_save_exec_prefix="$exec_prefix"
17050  exec_prefix="$acl_final_exec_prefix"
17051  eval x=\"$x\"
17052  exec_prefix="$acl_save_exec_prefix"
17053  prefix="$acl_save_prefix"
17054
17055              case "$x" in
17056                -L*)
17057                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17058                                    if test -n "$acl_shlibext"; then
17059                    if test -f "$dir/$libname$shrext"; then
17060                      found_dir="$dir"
17061                      found_so="$dir/$libname$shrext"
17062                    else
17063                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17064                        ver=`(cd "$dir" && \
17065                              for f in "$libname$shrext".*; do echo "$f"; done \
17066                              | sed -e "s,^$libname$shrext\\\\.,," \
17067                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17068                              | sed 1q ) 2>/dev/null`
17069                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17070                          found_dir="$dir"
17071                          found_so="$dir/$libname$shrext.$ver"
17072                        fi
17073                      else
17074                        eval library_names=\"$acl_library_names_spec\"
17075                        for f in $library_names; do
17076                          if test -f "$dir/$f"; then
17077                            found_dir="$dir"
17078                            found_so="$dir/$f"
17079                            break
17080                          fi
17081                        done
17082                      fi
17083                    fi
17084                  fi
17085                                    if test "X$found_dir" = "X"; then
17086                    if test -f "$dir/$libname.$acl_libext"; then
17087                      found_dir="$dir"
17088                      found_a="$dir/$libname.$acl_libext"
17089                    fi
17090                  fi
17091                  if test "X$found_dir" != "X"; then
17092                    if test -f "$dir/$libname.la"; then
17093                      found_la="$dir/$libname.la"
17094                    fi
17095                  fi
17096                  ;;
17097              esac
17098              if test "X$found_dir" != "X"; then
17099                break
17100              fi
17101            done
17102          fi
17103          if test "X$found_dir" != "X"; then
17104                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17105            if test "X$found_so" != "X"; then
17106                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17107                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17108              else
17109                                                                                haveit=
17110                for x in $ltrpathdirs; do
17111                  if test "X$x" = "X$found_dir"; then
17112                    haveit=yes
17113                    break
17114                  fi
17115                done
17116                if test -z "$haveit"; then
17117                  ltrpathdirs="$ltrpathdirs $found_dir"
17118                fi
17119                                if test "$acl_hardcode_direct" = yes; then
17120                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17121                else
17122                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17123                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17124                                                            haveit=
17125                    for x in $rpathdirs; do
17126                      if test "X$x" = "X$found_dir"; then
17127                        haveit=yes
17128                        break
17129                      fi
17130                    done
17131                    if test -z "$haveit"; then
17132                      rpathdirs="$rpathdirs $found_dir"
17133                    fi
17134                  else
17135                                                                                haveit=
17136                    for x in $LDFLAGS $LIBICONV; do
17137
17138  acl_save_prefix="$prefix"
17139  prefix="$acl_final_prefix"
17140  acl_save_exec_prefix="$exec_prefix"
17141  exec_prefix="$acl_final_exec_prefix"
17142  eval x=\"$x\"
17143  exec_prefix="$acl_save_exec_prefix"
17144  prefix="$acl_save_prefix"
17145
17146                      if test "X$x" = "X-L$found_dir"; then
17147                        haveit=yes
17148                        break
17149                      fi
17150                    done
17151                    if test -z "$haveit"; then
17152                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17153                    fi
17154                    if test "$acl_hardcode_minus_L" != no; then
17155                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17156                    else
17157                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17158                    fi
17159                  fi
17160                fi
17161              fi
17162            else
17163              if test "X$found_a" != "X"; then
17164                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17165              else
17166                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17167              fi
17168            fi
17169                        additional_includedir=
17170            case "$found_dir" in
17171              */$acl_libdirstem | */$acl_libdirstem/)
17172                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17173                LIBICONV_PREFIX="$basedir"
17174                additional_includedir="$basedir/include"
17175                ;;
17176            esac
17177            if test "X$additional_includedir" != "X"; then
17178                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17179                haveit=
17180                if test "X$additional_includedir" = "X/usr/local/include"; then
17181                  if test -n "$GCC"; then
17182                    case $host_os in
17183                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17184                    esac
17185                  fi
17186                fi
17187                if test -z "$haveit"; then
17188                  for x in $CPPFLAGS $INCICONV; do
17189
17190  acl_save_prefix="$prefix"
17191  prefix="$acl_final_prefix"
17192  acl_save_exec_prefix="$exec_prefix"
17193  exec_prefix="$acl_final_exec_prefix"
17194  eval x=\"$x\"
17195  exec_prefix="$acl_save_exec_prefix"
17196  prefix="$acl_save_prefix"
17197
17198                    if test "X$x" = "X-I$additional_includedir"; then
17199                      haveit=yes
17200                      break
17201                    fi
17202                  done
17203                  if test -z "$haveit"; then
17204                    if test -d "$additional_includedir"; then
17205                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17206                    fi
17207                  fi
17208                fi
17209              fi
17210            fi
17211                        if test -n "$found_la"; then
17212                                                        save_libdir="$libdir"
17213              case "$found_la" in
17214                */* | *\\*) . "$found_la" ;;
17215                *) . "./$found_la" ;;
17216              esac
17217              libdir="$save_libdir"
17218                            for dep in $dependency_libs; do
17219                case "$dep" in
17220                  -L*)
17221                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17222                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17223                      haveit=
17224                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17225                        if test -n "$GCC"; then
17226                          case $host_os in
17227                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17228                          esac
17229                        fi
17230                      fi
17231                      if test -z "$haveit"; then
17232                        haveit=
17233                        for x in $LDFLAGS $LIBICONV; do
17234
17235  acl_save_prefix="$prefix"
17236  prefix="$acl_final_prefix"
17237  acl_save_exec_prefix="$exec_prefix"
17238  exec_prefix="$acl_final_exec_prefix"
17239  eval x=\"$x\"
17240  exec_prefix="$acl_save_exec_prefix"
17241  prefix="$acl_save_prefix"
17242
17243                          if test "X$x" = "X-L$additional_libdir"; then
17244                            haveit=yes
17245                            break
17246                          fi
17247                        done
17248                        if test -z "$haveit"; then
17249                          if test -d "$additional_libdir"; then
17250                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17251                          fi
17252                        fi
17253                        haveit=
17254                        for x in $LDFLAGS $LTLIBICONV; do
17255
17256  acl_save_prefix="$prefix"
17257  prefix="$acl_final_prefix"
17258  acl_save_exec_prefix="$exec_prefix"
17259  exec_prefix="$acl_final_exec_prefix"
17260  eval x=\"$x\"
17261  exec_prefix="$acl_save_exec_prefix"
17262  prefix="$acl_save_prefix"
17263
17264                          if test "X$x" = "X-L$additional_libdir"; then
17265                            haveit=yes
17266                            break
17267                          fi
17268                        done
17269                        if test -z "$haveit"; then
17270                          if test -d "$additional_libdir"; then
17271                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17272                          fi
17273                        fi
17274                      fi
17275                    fi
17276                    ;;
17277                  -R*)
17278                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17279                    if test "$enable_rpath" != no; then
17280                                                                  haveit=
17281                      for x in $rpathdirs; do
17282                        if test "X$x" = "X$dir"; then
17283                          haveit=yes
17284                          break
17285                        fi
17286                      done
17287                      if test -z "$haveit"; then
17288                        rpathdirs="$rpathdirs $dir"
17289                      fi
17290                                                                  haveit=
17291                      for x in $ltrpathdirs; do
17292                        if test "X$x" = "X$dir"; then
17293                          haveit=yes
17294                          break
17295                        fi
17296                      done
17297                      if test -z "$haveit"; then
17298                        ltrpathdirs="$ltrpathdirs $dir"
17299                      fi
17300                    fi
17301                    ;;
17302                  -l*)
17303                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17304                    ;;
17305                  *.la)
17306                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17307                    ;;
17308                  *)
17309                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17310                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17311                    ;;
17312                esac
17313              done
17314            fi
17315          else
17316                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17317            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17318          fi
17319        fi
17320      fi
17321    done
17322  done
17323  if test "X$rpathdirs" != "X"; then
17324    if test -n "$acl_hardcode_libdir_separator"; then
17325                        alldirs=
17326      for found_dir in $rpathdirs; do
17327        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17328      done
17329            acl_save_libdir="$libdir"
17330      libdir="$alldirs"
17331      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17332      libdir="$acl_save_libdir"
17333      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17334    else
17335            for found_dir in $rpathdirs; do
17336        acl_save_libdir="$libdir"
17337        libdir="$found_dir"
17338        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17339        libdir="$acl_save_libdir"
17340        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17341      done
17342    fi
17343  fi
17344  if test "X$ltrpathdirs" != "X"; then
17345            for found_dir in $ltrpathdirs; do
17346      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17347    done
17348  fi
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17375$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17376if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17377  $as_echo_n "(cached) " >&6
17378else
17379  gt_save_LIBS="$LIBS"
17380     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383#include <CoreFoundation/CFPreferences.h>
17384int
17385main ()
17386{
17387CFPreferencesCopyAppValue(NULL, NULL)
17388  ;
17389  return 0;
17390}
17391_ACEOF
17392if ac_fn_c_try_link "$LINENO"; then :
17393  gt_cv_func_CFPreferencesCopyAppValue=yes
17394else
17395  gt_cv_func_CFPreferencesCopyAppValue=no
17396fi
17397rm -f core conftest.err conftest.$ac_objext \
17398    conftest$ac_exeext conftest.$ac_ext
17399     LIBS="$gt_save_LIBS"
17400fi
17401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17402$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17403  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17404
17405$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17406
17407  fi
17408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17409$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17410if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17411  $as_echo_n "(cached) " >&6
17412else
17413  gt_save_LIBS="$LIBS"
17414     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17415     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416/* end confdefs.h.  */
17417#include <CoreFoundation/CFLocale.h>
17418int
17419main ()
17420{
17421CFLocaleCopyCurrent();
17422  ;
17423  return 0;
17424}
17425_ACEOF
17426if ac_fn_c_try_link "$LINENO"; then :
17427  gt_cv_func_CFLocaleCopyCurrent=yes
17428else
17429  gt_cv_func_CFLocaleCopyCurrent=no
17430fi
17431rm -f core conftest.err conftest.$ac_objext \
17432    conftest$ac_exeext conftest.$ac_ext
17433     LIBS="$gt_save_LIBS"
17434fi
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17436$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17437  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17438
17439$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17440
17441  fi
17442  INTL_MACOSX_LIBS=
17443  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17444    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17445  fi
17446
17447
17448
17449
17450
17451
17452  LIBINTL=
17453  LTLIBINTL=
17454  POSUB=
17455
17456    case " $gt_needs " in
17457    *" need-formatstring-macros "*) gt_api_version=3 ;;
17458    *" need-ngettext "*) gt_api_version=2 ;;
17459    *) gt_api_version=1 ;;
17460  esac
17461  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17462  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17463
17464    if test "$USE_NLS" = "yes"; then
17465    gt_use_preinstalled_gnugettext=no
17466
17467
17468        if test $gt_api_version -ge 3; then
17469          gt_revision_test_code='
17470#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17471#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17472#endif
17473typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17474'
17475        else
17476          gt_revision_test_code=
17477        fi
17478        if test $gt_api_version -ge 2; then
17479          gt_expression_test_code=' + * ngettext ("", "", 0)'
17480        else
17481          gt_expression_test_code=
17482        fi
17483
17484        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17485$as_echo_n "checking for GNU gettext in libc... " >&6; }
17486if eval \${$gt_func_gnugettext_libc+:} false; then :
17487  $as_echo_n "(cached) " >&6
17488else
17489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490/* end confdefs.h.  */
17491#include <libintl.h>
17492$gt_revision_test_code
17493extern int _nl_msg_cat_cntr;
17494extern int *_nl_domain_bindings;
17495int
17496main ()
17497{
17498bindtextdomain ("", "");
17499return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
17500  ;
17501  return 0;
17502}
17503_ACEOF
17504if ac_fn_c_try_link "$LINENO"; then :
17505  eval "$gt_func_gnugettext_libc=yes"
17506else
17507  eval "$gt_func_gnugettext_libc=no"
17508fi
17509rm -f core conftest.err conftest.$ac_objext \
17510    conftest$ac_exeext conftest.$ac_ext
17511fi
17512eval ac_res=\$$gt_func_gnugettext_libc
17513	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17514$as_echo "$ac_res" >&6; }
17515
17516        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17517
17518
17519
17520
17521
17522          am_save_CPPFLAGS="$CPPFLAGS"
17523
17524  for element in $INCICONV; do
17525    haveit=
17526    for x in $CPPFLAGS; do
17527
17528  acl_save_prefix="$prefix"
17529  prefix="$acl_final_prefix"
17530  acl_save_exec_prefix="$exec_prefix"
17531  exec_prefix="$acl_final_exec_prefix"
17532  eval x=\"$x\"
17533  exec_prefix="$acl_save_exec_prefix"
17534  prefix="$acl_save_prefix"
17535
17536      if test "X$x" = "X$element"; then
17537        haveit=yes
17538        break
17539      fi
17540    done
17541    if test -z "$haveit"; then
17542      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17543    fi
17544  done
17545
17546
17547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17548$as_echo_n "checking for iconv... " >&6; }
17549if ${am_cv_func_iconv+:} false; then :
17550  $as_echo_n "(cached) " >&6
17551else
17552
17553    am_cv_func_iconv="no, consider installing GNU libiconv"
17554    am_cv_lib_iconv=no
17555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556/* end confdefs.h.  */
17557#include <stdlib.h>
17558#include <iconv.h>
17559int
17560main ()
17561{
17562iconv_t cd = iconv_open("","");
17563       iconv(cd,NULL,NULL,NULL,NULL);
17564       iconv_close(cd);
17565  ;
17566  return 0;
17567}
17568_ACEOF
17569if ac_fn_c_try_link "$LINENO"; then :
17570  am_cv_func_iconv=yes
17571fi
17572rm -f core conftest.err conftest.$ac_objext \
17573    conftest$ac_exeext conftest.$ac_ext
17574    if test "$am_cv_func_iconv" != yes; then
17575      am_save_LIBS="$LIBS"
17576      LIBS="$LIBS $LIBICONV"
17577      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h.  */
17579#include <stdlib.h>
17580#include <iconv.h>
17581int
17582main ()
17583{
17584iconv_t cd = iconv_open("","");
17585         iconv(cd,NULL,NULL,NULL,NULL);
17586         iconv_close(cd);
17587  ;
17588  return 0;
17589}
17590_ACEOF
17591if ac_fn_c_try_link "$LINENO"; then :
17592  am_cv_lib_iconv=yes
17593        am_cv_func_iconv=yes
17594fi
17595rm -f core conftest.err conftest.$ac_objext \
17596    conftest$ac_exeext conftest.$ac_ext
17597      LIBS="$am_save_LIBS"
17598    fi
17599
17600fi
17601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17602$as_echo "$am_cv_func_iconv" >&6; }
17603  if test "$am_cv_func_iconv" = yes; then
17604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17605$as_echo_n "checking for working iconv... " >&6; }
17606if ${am_cv_func_iconv_works+:} false; then :
17607  $as_echo_n "(cached) " >&6
17608else
17609
17610            am_save_LIBS="$LIBS"
17611      if test $am_cv_lib_iconv = yes; then
17612        LIBS="$LIBS $LIBICONV"
17613      fi
17614      if test "$cross_compiling" = yes; then :
17615  case "$host_os" in
17616           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17617           *)            am_cv_func_iconv_works="guessing yes" ;;
17618         esac
17619else
17620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621/* end confdefs.h.  */
17622
17623#include <iconv.h>
17624#include <string.h>
17625int main ()
17626{
17627  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17628     returns.  */
17629  {
17630    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17631    if (cd_utf8_to_88591 != (iconv_t)(-1))
17632      {
17633        static const char input[] = "\342\202\254"; /* EURO SIGN */
17634        char buf[10];
17635        const char *inptr = input;
17636        size_t inbytesleft = strlen (input);
17637        char *outptr = buf;
17638        size_t outbytesleft = sizeof (buf);
17639        size_t res = iconv (cd_utf8_to_88591,
17640                            (char **) &inptr, &inbytesleft,
17641                            &outptr, &outbytesleft);
17642        if (res == 0)
17643          return 1;
17644      }
17645  }
17646#if 0 /* This bug could be worked around by the caller.  */
17647  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17648  {
17649    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17650    if (cd_88591_to_utf8 != (iconv_t)(-1))
17651      {
17652        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17653        char buf[50];
17654        const char *inptr = input;
17655        size_t inbytesleft = strlen (input);
17656        char *outptr = buf;
17657        size_t outbytesleft = sizeof (buf);
17658        size_t res = iconv (cd_88591_to_utf8,
17659                            (char **) &inptr, &inbytesleft,
17660                            &outptr, &outbytesleft);
17661        if ((int)res > 0)
17662          return 1;
17663      }
17664  }
17665#endif
17666  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17667     provided.  */
17668  if (/* Try standardized names.  */
17669      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17670      /* Try IRIX, OSF/1 names.  */
17671      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17672      /* Try AIX names.  */
17673      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17674      /* Try HP-UX names.  */
17675      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17676    return 1;
17677  return 0;
17678}
17679_ACEOF
17680if ac_fn_c_try_run "$LINENO"; then :
17681  am_cv_func_iconv_works=yes
17682else
17683  am_cv_func_iconv_works=no
17684fi
17685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17686  conftest.$ac_objext conftest.beam conftest.$ac_ext
17687fi
17688
17689      LIBS="$am_save_LIBS"
17690
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17693$as_echo "$am_cv_func_iconv_works" >&6; }
17694    case "$am_cv_func_iconv_works" in
17695      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17696      *)   am_func_iconv=yes ;;
17697    esac
17698  else
17699    am_func_iconv=no am_cv_lib_iconv=no
17700  fi
17701  if test "$am_func_iconv" = yes; then
17702
17703$as_echo "#define HAVE_ICONV 1" >>confdefs.h
17704
17705  fi
17706  if test "$am_cv_lib_iconv" = yes; then
17707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17708$as_echo_n "checking how to link with libiconv... " >&6; }
17709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17710$as_echo "$LIBICONV" >&6; }
17711  else
17712            CPPFLAGS="$am_save_CPPFLAGS"
17713    LIBICONV=
17714    LTLIBICONV=
17715  fi
17716
17717
17718
17719
17720
17721
17722
17723
17724    use_additional=yes
17725
17726  acl_save_prefix="$prefix"
17727  prefix="$acl_final_prefix"
17728  acl_save_exec_prefix="$exec_prefix"
17729  exec_prefix="$acl_final_exec_prefix"
17730
17731    eval additional_includedir=\"$includedir\"
17732    eval additional_libdir=\"$libdir\"
17733
17734  exec_prefix="$acl_save_exec_prefix"
17735  prefix="$acl_save_prefix"
17736
17737
17738# Check whether --with-libintl-prefix was given.
17739if test "${with_libintl_prefix+set}" = set; then :
17740  withval=$with_libintl_prefix;
17741    if test "X$withval" = "Xno"; then
17742      use_additional=no
17743    else
17744      if test "X$withval" = "X"; then
17745
17746  acl_save_prefix="$prefix"
17747  prefix="$acl_final_prefix"
17748  acl_save_exec_prefix="$exec_prefix"
17749  exec_prefix="$acl_final_exec_prefix"
17750
17751          eval additional_includedir=\"$includedir\"
17752          eval additional_libdir=\"$libdir\"
17753
17754  exec_prefix="$acl_save_exec_prefix"
17755  prefix="$acl_save_prefix"
17756
17757      else
17758        additional_includedir="$withval/include"
17759        additional_libdir="$withval/$acl_libdirstem"
17760      fi
17761    fi
17762
17763fi
17764
17765      LIBINTL=
17766  LTLIBINTL=
17767  INCINTL=
17768  LIBINTL_PREFIX=
17769  rpathdirs=
17770  ltrpathdirs=
17771  names_already_handled=
17772  names_next_round='intl '
17773  while test -n "$names_next_round"; do
17774    names_this_round="$names_next_round"
17775    names_next_round=
17776    for name in $names_this_round; do
17777      already_handled=
17778      for n in $names_already_handled; do
17779        if test "$n" = "$name"; then
17780          already_handled=yes
17781          break
17782        fi
17783      done
17784      if test -z "$already_handled"; then
17785        names_already_handled="$names_already_handled $name"
17786                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17787        eval value=\"\$HAVE_LIB$uppername\"
17788        if test -n "$value"; then
17789          if test "$value" = yes; then
17790            eval value=\"\$LIB$uppername\"
17791            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17792            eval value=\"\$LTLIB$uppername\"
17793            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17794          else
17795                                    :
17796          fi
17797        else
17798                              found_dir=
17799          found_la=
17800          found_so=
17801          found_a=
17802          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17803          if test -n "$acl_shlibext"; then
17804            shrext=".$acl_shlibext"             # typically: shrext=.so
17805          else
17806            shrext=
17807          fi
17808          if test $use_additional = yes; then
17809            dir="$additional_libdir"
17810                                    if test -n "$acl_shlibext"; then
17811              if test -f "$dir/$libname$shrext"; then
17812                found_dir="$dir"
17813                found_so="$dir/$libname$shrext"
17814              else
17815                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17816                  ver=`(cd "$dir" && \
17817                        for f in "$libname$shrext".*; do echo "$f"; done \
17818                        | sed -e "s,^$libname$shrext\\\\.,," \
17819                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17820                        | sed 1q ) 2>/dev/null`
17821                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17822                    found_dir="$dir"
17823                    found_so="$dir/$libname$shrext.$ver"
17824                  fi
17825                else
17826                  eval library_names=\"$acl_library_names_spec\"
17827                  for f in $library_names; do
17828                    if test -f "$dir/$f"; then
17829                      found_dir="$dir"
17830                      found_so="$dir/$f"
17831                      break
17832                    fi
17833                  done
17834                fi
17835              fi
17836            fi
17837                        if test "X$found_dir" = "X"; then
17838              if test -f "$dir/$libname.$acl_libext"; then
17839                found_dir="$dir"
17840                found_a="$dir/$libname.$acl_libext"
17841              fi
17842            fi
17843            if test "X$found_dir" != "X"; then
17844              if test -f "$dir/$libname.la"; then
17845                found_la="$dir/$libname.la"
17846              fi
17847            fi
17848          fi
17849          if test "X$found_dir" = "X"; then
17850            for x in $LDFLAGS $LTLIBINTL; do
17851
17852  acl_save_prefix="$prefix"
17853  prefix="$acl_final_prefix"
17854  acl_save_exec_prefix="$exec_prefix"
17855  exec_prefix="$acl_final_exec_prefix"
17856  eval x=\"$x\"
17857  exec_prefix="$acl_save_exec_prefix"
17858  prefix="$acl_save_prefix"
17859
17860              case "$x" in
17861                -L*)
17862                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17863                                    if test -n "$acl_shlibext"; then
17864                    if test -f "$dir/$libname$shrext"; then
17865                      found_dir="$dir"
17866                      found_so="$dir/$libname$shrext"
17867                    else
17868                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17869                        ver=`(cd "$dir" && \
17870                              for f in "$libname$shrext".*; do echo "$f"; done \
17871                              | sed -e "s,^$libname$shrext\\\\.,," \
17872                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17873                              | sed 1q ) 2>/dev/null`
17874                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17875                          found_dir="$dir"
17876                          found_so="$dir/$libname$shrext.$ver"
17877                        fi
17878                      else
17879                        eval library_names=\"$acl_library_names_spec\"
17880                        for f in $library_names; do
17881                          if test -f "$dir/$f"; then
17882                            found_dir="$dir"
17883                            found_so="$dir/$f"
17884                            break
17885                          fi
17886                        done
17887                      fi
17888                    fi
17889                  fi
17890                                    if test "X$found_dir" = "X"; then
17891                    if test -f "$dir/$libname.$acl_libext"; then
17892                      found_dir="$dir"
17893                      found_a="$dir/$libname.$acl_libext"
17894                    fi
17895                  fi
17896                  if test "X$found_dir" != "X"; then
17897                    if test -f "$dir/$libname.la"; then
17898                      found_la="$dir/$libname.la"
17899                    fi
17900                  fi
17901                  ;;
17902              esac
17903              if test "X$found_dir" != "X"; then
17904                break
17905              fi
17906            done
17907          fi
17908          if test "X$found_dir" != "X"; then
17909                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17910            if test "X$found_so" != "X"; then
17911                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17912                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17913              else
17914                                                                                haveit=
17915                for x in $ltrpathdirs; do
17916                  if test "X$x" = "X$found_dir"; then
17917                    haveit=yes
17918                    break
17919                  fi
17920                done
17921                if test -z "$haveit"; then
17922                  ltrpathdirs="$ltrpathdirs $found_dir"
17923                fi
17924                                if test "$acl_hardcode_direct" = yes; then
17925                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17926                else
17927                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17928                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17929                                                            haveit=
17930                    for x in $rpathdirs; do
17931                      if test "X$x" = "X$found_dir"; then
17932                        haveit=yes
17933                        break
17934                      fi
17935                    done
17936                    if test -z "$haveit"; then
17937                      rpathdirs="$rpathdirs $found_dir"
17938                    fi
17939                  else
17940                                                                                haveit=
17941                    for x in $LDFLAGS $LIBINTL; do
17942
17943  acl_save_prefix="$prefix"
17944  prefix="$acl_final_prefix"
17945  acl_save_exec_prefix="$exec_prefix"
17946  exec_prefix="$acl_final_exec_prefix"
17947  eval x=\"$x\"
17948  exec_prefix="$acl_save_exec_prefix"
17949  prefix="$acl_save_prefix"
17950
17951                      if test "X$x" = "X-L$found_dir"; then
17952                        haveit=yes
17953                        break
17954                      fi
17955                    done
17956                    if test -z "$haveit"; then
17957                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17958                    fi
17959                    if test "$acl_hardcode_minus_L" != no; then
17960                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17961                    else
17962                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17963                    fi
17964                  fi
17965                fi
17966              fi
17967            else
17968              if test "X$found_a" != "X"; then
17969                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17970              else
17971                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17972              fi
17973            fi
17974                        additional_includedir=
17975            case "$found_dir" in
17976              */$acl_libdirstem | */$acl_libdirstem/)
17977                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17978                LIBINTL_PREFIX="$basedir"
17979                additional_includedir="$basedir/include"
17980                ;;
17981            esac
17982            if test "X$additional_includedir" != "X"; then
17983                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17984                haveit=
17985                if test "X$additional_includedir" = "X/usr/local/include"; then
17986                  if test -n "$GCC"; then
17987                    case $host_os in
17988                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17989                    esac
17990                  fi
17991                fi
17992                if test -z "$haveit"; then
17993                  for x in $CPPFLAGS $INCINTL; do
17994
17995  acl_save_prefix="$prefix"
17996  prefix="$acl_final_prefix"
17997  acl_save_exec_prefix="$exec_prefix"
17998  exec_prefix="$acl_final_exec_prefix"
17999  eval x=\"$x\"
18000  exec_prefix="$acl_save_exec_prefix"
18001  prefix="$acl_save_prefix"
18002
18003                    if test "X$x" = "X-I$additional_includedir"; then
18004                      haveit=yes
18005                      break
18006                    fi
18007                  done
18008                  if test -z "$haveit"; then
18009                    if test -d "$additional_includedir"; then
18010                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18011                    fi
18012                  fi
18013                fi
18014              fi
18015            fi
18016                        if test -n "$found_la"; then
18017                                                        save_libdir="$libdir"
18018              case "$found_la" in
18019                */* | *\\*) . "$found_la" ;;
18020                *) . "./$found_la" ;;
18021              esac
18022              libdir="$save_libdir"
18023                            for dep in $dependency_libs; do
18024                case "$dep" in
18025                  -L*)
18026                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18027                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18028                      haveit=
18029                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18030                        if test -n "$GCC"; then
18031                          case $host_os in
18032                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18033                          esac
18034                        fi
18035                      fi
18036                      if test -z "$haveit"; then
18037                        haveit=
18038                        for x in $LDFLAGS $LIBINTL; do
18039
18040  acl_save_prefix="$prefix"
18041  prefix="$acl_final_prefix"
18042  acl_save_exec_prefix="$exec_prefix"
18043  exec_prefix="$acl_final_exec_prefix"
18044  eval x=\"$x\"
18045  exec_prefix="$acl_save_exec_prefix"
18046  prefix="$acl_save_prefix"
18047
18048                          if test "X$x" = "X-L$additional_libdir"; then
18049                            haveit=yes
18050                            break
18051                          fi
18052                        done
18053                        if test -z "$haveit"; then
18054                          if test -d "$additional_libdir"; then
18055                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18056                          fi
18057                        fi
18058                        haveit=
18059                        for x in $LDFLAGS $LTLIBINTL; do
18060
18061  acl_save_prefix="$prefix"
18062  prefix="$acl_final_prefix"
18063  acl_save_exec_prefix="$exec_prefix"
18064  exec_prefix="$acl_final_exec_prefix"
18065  eval x=\"$x\"
18066  exec_prefix="$acl_save_exec_prefix"
18067  prefix="$acl_save_prefix"
18068
18069                          if test "X$x" = "X-L$additional_libdir"; then
18070                            haveit=yes
18071                            break
18072                          fi
18073                        done
18074                        if test -z "$haveit"; then
18075                          if test -d "$additional_libdir"; then
18076                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18077                          fi
18078                        fi
18079                      fi
18080                    fi
18081                    ;;
18082                  -R*)
18083                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
18084                    if test "$enable_rpath" != no; then
18085                                                                  haveit=
18086                      for x in $rpathdirs; do
18087                        if test "X$x" = "X$dir"; then
18088                          haveit=yes
18089                          break
18090                        fi
18091                      done
18092                      if test -z "$haveit"; then
18093                        rpathdirs="$rpathdirs $dir"
18094                      fi
18095                                                                  haveit=
18096                      for x in $ltrpathdirs; do
18097                        if test "X$x" = "X$dir"; then
18098                          haveit=yes
18099                          break
18100                        fi
18101                      done
18102                      if test -z "$haveit"; then
18103                        ltrpathdirs="$ltrpathdirs $dir"
18104                      fi
18105                    fi
18106                    ;;
18107                  -l*)
18108                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18109                    ;;
18110                  *.la)
18111                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18112                    ;;
18113                  *)
18114                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18115                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18116                    ;;
18117                esac
18118              done
18119            fi
18120          else
18121                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18122            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18123          fi
18124        fi
18125      fi
18126    done
18127  done
18128  if test "X$rpathdirs" != "X"; then
18129    if test -n "$acl_hardcode_libdir_separator"; then
18130                        alldirs=
18131      for found_dir in $rpathdirs; do
18132        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18133      done
18134            acl_save_libdir="$libdir"
18135      libdir="$alldirs"
18136      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18137      libdir="$acl_save_libdir"
18138      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18139    else
18140            for found_dir in $rpathdirs; do
18141        acl_save_libdir="$libdir"
18142        libdir="$found_dir"
18143        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18144        libdir="$acl_save_libdir"
18145        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18146      done
18147    fi
18148  fi
18149  if test "X$ltrpathdirs" != "X"; then
18150            for found_dir in $ltrpathdirs; do
18151      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18152    done
18153  fi
18154
18155          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18156$as_echo_n "checking for GNU gettext in libintl... " >&6; }
18157if eval \${$gt_func_gnugettext_libintl+:} false; then :
18158  $as_echo_n "(cached) " >&6
18159else
18160  gt_save_CPPFLAGS="$CPPFLAGS"
18161            CPPFLAGS="$CPPFLAGS $INCINTL"
18162            gt_save_LIBS="$LIBS"
18163            LIBS="$LIBS $LIBINTL"
18164                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165/* end confdefs.h.  */
18166#include <libintl.h>
18167$gt_revision_test_code
18168extern int _nl_msg_cat_cntr;
18169extern
18170#ifdef __cplusplus
18171"C"
18172#endif
18173const char *_nl_expand_alias (const char *);
18174int
18175main ()
18176{
18177bindtextdomain ("", "");
18178return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18179  ;
18180  return 0;
18181}
18182_ACEOF
18183if ac_fn_c_try_link "$LINENO"; then :
18184  eval "$gt_func_gnugettext_libintl=yes"
18185else
18186  eval "$gt_func_gnugettext_libintl=no"
18187fi
18188rm -f core conftest.err conftest.$ac_objext \
18189    conftest$ac_exeext conftest.$ac_ext
18190                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18191              LIBS="$LIBS $LIBICONV"
18192              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193/* end confdefs.h.  */
18194#include <libintl.h>
18195$gt_revision_test_code
18196extern int _nl_msg_cat_cntr;
18197extern
18198#ifdef __cplusplus
18199"C"
18200#endif
18201const char *_nl_expand_alias (const char *);
18202int
18203main ()
18204{
18205bindtextdomain ("", "");
18206return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18207  ;
18208  return 0;
18209}
18210_ACEOF
18211if ac_fn_c_try_link "$LINENO"; then :
18212  LIBINTL="$LIBINTL $LIBICONV"
18213                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18214                eval "$gt_func_gnugettext_libintl=yes"
18215
18216fi
18217rm -f core conftest.err conftest.$ac_objext \
18218    conftest$ac_exeext conftest.$ac_ext
18219            fi
18220            CPPFLAGS="$gt_save_CPPFLAGS"
18221            LIBS="$gt_save_LIBS"
18222fi
18223eval ac_res=\$$gt_func_gnugettext_libintl
18224	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18225$as_echo "$ac_res" >&6; }
18226        fi
18227
18228                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18229           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18230                && test "$PACKAGE" != gettext-runtime \
18231                && test "$PACKAGE" != gettext-tools; }; then
18232          gt_use_preinstalled_gnugettext=yes
18233        else
18234                    LIBINTL=
18235          LTLIBINTL=
18236          INCINTL=
18237        fi
18238
18239
18240
18241    if test -n "$INTL_MACOSX_LIBS"; then
18242      if test "$gt_use_preinstalled_gnugettext" = "yes" \
18243         || test "$nls_cv_use_gnu_gettext" = "yes"; then
18244                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18245        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18246      fi
18247    fi
18248
18249    if test "$gt_use_preinstalled_gnugettext" = "yes" \
18250       || test "$nls_cv_use_gnu_gettext" = "yes"; then
18251
18252$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18253
18254    else
18255      USE_NLS=no
18256    fi
18257  fi
18258
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18260$as_echo_n "checking whether to use NLS... " >&6; }
18261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18262$as_echo "$USE_NLS" >&6; }
18263  if test "$USE_NLS" = "yes"; then
18264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18265$as_echo_n "checking where the gettext function comes from... " >&6; }
18266    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18268        gt_source="external libintl"
18269      else
18270        gt_source="libc"
18271      fi
18272    else
18273      gt_source="included intl directory"
18274    fi
18275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18276$as_echo "$gt_source" >&6; }
18277  fi
18278
18279  if test "$USE_NLS" = "yes"; then
18280
18281    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18282      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18283        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18284$as_echo_n "checking how to link with libintl... " >&6; }
18285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18286$as_echo "$LIBINTL" >&6; }
18287
18288  for element in $INCINTL; do
18289    haveit=
18290    for x in $CPPFLAGS; do
18291
18292  acl_save_prefix="$prefix"
18293  prefix="$acl_final_prefix"
18294  acl_save_exec_prefix="$exec_prefix"
18295  exec_prefix="$acl_final_exec_prefix"
18296  eval x=\"$x\"
18297  exec_prefix="$acl_save_exec_prefix"
18298  prefix="$acl_save_prefix"
18299
18300      if test "X$x" = "X$element"; then
18301        haveit=yes
18302        break
18303      fi
18304    done
18305    if test -z "$haveit"; then
18306      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18307    fi
18308  done
18309
18310      fi
18311
18312
18313$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18314
18315
18316$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18317
18318    fi
18319
18320        POSUB=po
18321  fi
18322
18323
18324
18325    INTLLIBS="$LIBINTL"
18326
18327
18328
18329
18330
18331
18332
18333
18334case $TERM in
18335       #   for the most important terminal types we directly know the sequences
18336       xterm|xterm*|vt220|vt220*)
18337               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
18338               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
18339       ;;
18340       vt100|vt100*|cygwin)
18341               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
18342               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
18343       ;;
18344       *)
18345               T_MD=''
18346               T_ME=''
18347       ;;
18348esac
18349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18350$as_echo "" >&6; }
18351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
18352$as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
18353
18354
18355
18356for ac_func in fpclassify
18357do :
18358  ac_fn_c_check_func "$LINENO" "fpclassify" "ac_cv_func_fpclassify"
18359if test "x$ac_cv_func_fpclassify" = xyes; then :
18360  cat >>confdefs.h <<_ACEOF
18361#define HAVE_FPCLASSIFY 1
18362_ACEOF
18363
18364else
18365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify with <math.h>" >&5
18366$as_echo_n "checking for fpclassify with <math.h>... " >&6; }
18367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368/* end confdefs.h.  */
18369#include <math.h>
18370volatile int x;volatile float f;
18371int
18372main ()
18373{
18374x = fpclassify(f)
18375  ;
18376  return 0;
18377}
18378_ACEOF
18379if ac_fn_c_try_link "$LINENO"; then :
18380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381$as_echo "yes" >&6; }
18382      $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
18383
18384else
18385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386$as_echo "no" >&6; }
18387fi
18388rm -f core conftest.err conftest.$ac_objext \
18389    conftest$ac_exeext conftest.$ac_ext
18390fi
18391done
18392
18393
18394for ac_func in isinf
18395do :
18396  ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
18397if test "x$ac_cv_func_isinf" = xyes; then :
18398  cat >>confdefs.h <<_ACEOF
18399#define HAVE_ISINF 1
18400_ACEOF
18401
18402else
18403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf with <math.h>" >&5
18404$as_echo_n "checking for isinf with <math.h>... " >&6; }
18405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406/* end confdefs.h.  */
18407#include <math.h>
18408volatile int x;volatile float f;
18409int
18410main ()
18411{
18412x = isinf(f)
18413  ;
18414  return 0;
18415}
18416_ACEOF
18417if ac_fn_c_try_link "$LINENO"; then :
18418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18419$as_echo "yes" >&6; }
18420      $as_echo "#define HAVE_ISINF 1" >>confdefs.h
18421
18422else
18423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18424$as_echo "no" >&6; }
18425fi
18426rm -f core conftest.err conftest.$ac_objext \
18427    conftest$ac_exeext conftest.$ac_ext
18428fi
18429done
18430
18431
18432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isfinite is broken" >&5
18433$as_echo_n "checking whether isfinite is broken... " >&6; }
18434if ${ac_cv_have_broken_isfinite+:} false; then :
18435  $as_echo_n "(cached) " >&6
18436else
18437
18438if test "$cross_compiling" = yes; then :
18439
18440case "${target}" in
18441  hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
18442  *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
18443  *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
18444  *) ac_cv_have_broken_isfinite=no ;;
18445esac
18446else
18447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448/* end confdefs.h.  */
18449
18450#ifdef HAVE_MATH_H
18451#include <math.h>
18452#endif
18453#ifdef HAVE_FLOAT_H
18454#include <float.h>
18455#endif
18456int main ()
18457{
18458#ifdef isfinite
18459#ifdef LDBL_MAX
18460  if (!isfinite(LDBL_MAX)) return 1;
18461#endif
18462#ifdef DBL_MAX
18463  if (!isfinite(DBL_MAX)) return 1;
18464#endif
18465#endif
18466return 0;
18467}
18468_ACEOF
18469if ac_fn_c_try_run "$LINENO"; then :
18470  ac_cv_have_broken_isfinite=no
18471else
18472  ac_cv_have_broken_isfinite=yes
18473fi
18474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18475  conftest.$ac_objext conftest.beam conftest.$ac_ext
18476fi
18477
18478
18479fi
18480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_isfinite" >&5
18481$as_echo "$ac_cv_have_broken_isfinite" >&6; }
18482
18483case "${target}" in
18484  *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
18485  *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
18486esac
18487
18488if test "x$ac_cv_have_broken_isfinite" = "xno"; then
18489  $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
18490
18491else
18492  for ac_func in finite
18493do :
18494  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
18495if test "x$ac_cv_func_finite" = xyes; then :
18496  cat >>confdefs.h <<_ACEOF
18497#define HAVE_FINITE 1
18498_ACEOF
18499
18500else
18501  for ac_func in isfinite
18502do :
18503  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
18504if test "x$ac_cv_func_isfinite" = xyes; then :
18505  cat >>confdefs.h <<_ACEOF
18506#define HAVE_ISFINITE 1
18507_ACEOF
18508
18509else
18510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
18511$as_echo_n "checking for isfinite with <math.h>... " >&6; }
18512          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513/* end confdefs.h.  */
18514#include <math.h>
18515volatile int x;volatile float f;
18516int
18517main ()
18518{
18519x = isfinite(f)
18520  ;
18521  return 0;
18522}
18523_ACEOF
18524if ac_fn_c_try_link "$LINENO"; then :
18525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18526$as_echo "yes" >&6; }
18527	        $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
18528
18529else
18530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531$as_echo "no" >&6; }
18532fi
18533rm -f core conftest.err conftest.$ac_objext \
18534    conftest$ac_exeext conftest.$ac_ext
18535fi
18536done
18537
18538fi
18539done
18540
18541fi
18542
18543
18544ac_ext=c
18545ac_cpp='$CPP $CPPFLAGS'
18546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18548ac_compiler_gnu=$ac_cv_c_compiler_gnu
18549
18550_cflags=${CFLAGS}
18551
18552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works out of the box" >&5
18553$as_echo_n "checking if IEEE math works out of the box... " >&6; }
18554if ${rd_cv_ieee_works+:} false; then :
18555  $as_echo_n "(cached) " >&6
18556else
18557  if test "$cross_compiling" = yes; then :
18558  $as_echo_n "(skipped ... cross-compiling) " >&6
18559  # Bypass further checks
18560  rd_cv_ieee_works=yes
18561else
18562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563/* end confdefs.h.  */
18564
18565#include "${srcdir}/src/rrd_config_bottom.h"
18566#include <stdio.h>
18567int main(void){
18568    double rrdnan,rrdinf,rrdc,rrdzero;
18569    ;
18570    /* some math to see if we get a floating point exception */
18571    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18572    rrdnan=0.0/rrdzero; /* especially here */
18573    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18574		  /* at run time without sig fpe */
18575    rrdc = rrdinf + rrdnan;
18576    rrdc = rrdinf / rrdnan;
18577    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18578    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18579    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18580    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18581    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18582    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18583    return 0;
18584 }
18585_ACEOF
18586if ac_fn_c_try_run "$LINENO"; then :
18587  rd_cv_ieee_works=yes
18588else
18589  rd_cv_ieee_works=no
18590fi
18591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18592  conftest.$ac_objext conftest.beam conftest.$ac_ext
18593fi
18594
18595fi
18596
18597if test x${rd_cv_ieee_works} = "xyes"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18599$as_echo "yes" >&6; }
18600
18601else
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603$as_echo "no" >&6; }
18604 CFLAGS="$_cflags -ieee"
18605
18606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -ieee switch" >&5
18607$as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
18608if ${rd_cv_ieee_switch+:} false; then :
18609  $as_echo_n "(cached) " >&6
18610else
18611  if test "$cross_compiling" = yes; then :
18612  $as_echo_n "(skipped ... cross-compiling) " >&6
18613  # Bypass further checks
18614  rd_cv_ieee_works=yes
18615else
18616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617/* end confdefs.h.  */
18618
18619#include "${srcdir}/src/rrd_config_bottom.h"
18620#include <stdio.h>
18621int main(void){
18622    double rrdnan,rrdinf,rrdc,rrdzero;
18623    ;
18624    /* some math to see if we get a floating point exception */
18625    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18626    rrdnan=0.0/rrdzero; /* especially here */
18627    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18628		  /* at run time without sig fpe */
18629    rrdc = rrdinf + rrdnan;
18630    rrdc = rrdinf / rrdnan;
18631    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18632    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18633    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18634    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18635    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18636    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18637    return 0;
18638 }
18639_ACEOF
18640if ac_fn_c_try_run "$LINENO"; then :
18641  rd_cv_ieee_switch=yes
18642else
18643  rd_cv_ieee_switch=no
18644fi
18645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18646  conftest.$ac_objext conftest.beam conftest.$ac_ext
18647fi
18648
18649fi
18650
18651if test x${rd_cv_ieee_switch} = "xyes"; then
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18653$as_echo "yes" >&6; }
18654
18655else
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18657$as_echo "no" >&6; }
18658 CFLAGS="$_cflags -qfloat=nofold"
18659
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -qfloat=nofold switch" >&5
18661$as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
18662if ${rd_cv_ieee_nofold+:} false; then :
18663  $as_echo_n "(cached) " >&6
18664else
18665  if test "$cross_compiling" = yes; then :
18666  $as_echo_n "(skipped ... cross-compiling) " >&6
18667  # Bypass further checks
18668  rd_cv_ieee_works=yes
18669else
18670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671/* end confdefs.h.  */
18672
18673#include "${srcdir}/src/rrd_config_bottom.h"
18674#include <stdio.h>
18675int main(void){
18676    double rrdnan,rrdinf,rrdc,rrdzero;
18677    ;
18678    /* some math to see if we get a floating point exception */
18679    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18680    rrdnan=0.0/rrdzero; /* especially here */
18681    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18682		  /* at run time without sig fpe */
18683    rrdc = rrdinf + rrdnan;
18684    rrdc = rrdinf / rrdnan;
18685    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18686    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18687    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18688    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18689    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18690    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18691    return 0;
18692 }
18693_ACEOF
18694if ac_fn_c_try_run "$LINENO"; then :
18695  rd_cv_ieee_nofold=yes
18696else
18697  rd_cv_ieee_nofold=no
18698fi
18699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18700  conftest.$ac_objext conftest.beam conftest.$ac_ext
18701fi
18702
18703fi
18704
18705if test x${rd_cv_ieee_nofold} = "xyes"; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18707$as_echo "yes" >&6; }
18708
18709else
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18711$as_echo "no" >&6; }
18712 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
18713
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
18715$as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
18716if ${rd_cv_ieee_flttrap+:} false; then :
18717  $as_echo_n "(cached) " >&6
18718else
18719  if test "$cross_compiling" = yes; then :
18720  $as_echo_n "(skipped ... cross-compiling) " >&6
18721  # Bypass further checks
18722  rd_cv_ieee_works=yes
18723else
18724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725/* end confdefs.h.  */
18726
18727#include "${srcdir}/src/rrd_config_bottom.h"
18728#include <stdio.h>
18729int main(void){
18730    double rrdnan,rrdinf,rrdc,rrdzero;
18731    ;
18732    /* some math to see if we get a floating point exception */
18733    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18734    rrdnan=0.0/rrdzero; /* especially here */
18735    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18736		  /* at run time without sig fpe */
18737    rrdc = rrdinf + rrdnan;
18738    rrdc = rrdinf / rrdnan;
18739    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18740    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18741    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18742    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18743    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18744    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18745    return 0;
18746 }
18747_ACEOF
18748if ac_fn_c_try_run "$LINENO"; then :
18749  rd_cv_ieee_flttrap=yes
18750else
18751  rd_cv_ieee_flttrap=no
18752fi
18753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754  conftest.$ac_objext conftest.beam conftest.$ac_ext
18755fi
18756
18757fi
18758
18759if test x${rd_cv_ieee_flttrap} = "xyes"; then
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18761$as_echo "yes" >&6; }
18762
18763else
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765$as_echo "no" >&6; }
18766 CFLAGS="$_cflags -mieee"
18767
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -mieee switch" >&5
18769$as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
18770if ${rd_cv_ieee_mswitch+:} false; then :
18771  $as_echo_n "(cached) " >&6
18772else
18773  if test "$cross_compiling" = yes; then :
18774  $as_echo_n "(skipped ... cross-compiling) " >&6
18775  # Bypass further checks
18776  rd_cv_ieee_works=yes
18777else
18778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h.  */
18780
18781#include "${srcdir}/src/rrd_config_bottom.h"
18782#include <stdio.h>
18783int main(void){
18784    double rrdnan,rrdinf,rrdc,rrdzero;
18785    ;
18786    /* some math to see if we get a floating point exception */
18787    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18788    rrdnan=0.0/rrdzero; /* especially here */
18789    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18790		  /* at run time without sig fpe */
18791    rrdc = rrdinf + rrdnan;
18792    rrdc = rrdinf / rrdnan;
18793    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18794    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18795    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18796    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18797    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18798    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18799    return 0;
18800 }
18801_ACEOF
18802if ac_fn_c_try_run "$LINENO"; then :
18803  rd_cv_ieee_mswitch=yes
18804else
18805  rd_cv_ieee_mswitch=no
18806fi
18807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18808  conftest.$ac_objext conftest.beam conftest.$ac_ext
18809fi
18810
18811fi
18812
18813if test x${rd_cv_ieee_mswitch} = "xyes"; then
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815$as_echo "yes" >&6; }
18816
18817else
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819$as_echo "no" >&6; }
18820 CFLAGS="$_cflags -q float=rndsngl"
18821
18822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -q float=rndsngl switch" >&5
18823$as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
18824if ${rd_cv_ieee_qswitch+:} false; then :
18825  $as_echo_n "(cached) " >&6
18826else
18827  if test "$cross_compiling" = yes; then :
18828  $as_echo_n "(skipped ... cross-compiling) " >&6
18829  # Bypass further checks
18830  rd_cv_ieee_works=yes
18831else
18832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833/* end confdefs.h.  */
18834
18835#include "${srcdir}/src/rrd_config_bottom.h"
18836#include <stdio.h>
18837int main(void){
18838    double rrdnan,rrdinf,rrdc,rrdzero;
18839    ;
18840    /* some math to see if we get a floating point exception */
18841    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18842    rrdnan=0.0/rrdzero; /* especially here */
18843    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18844		  /* at run time without sig fpe */
18845    rrdc = rrdinf + rrdnan;
18846    rrdc = rrdinf / rrdnan;
18847    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18848    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18849    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18850    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18851    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18852    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18853    return 0;
18854 }
18855_ACEOF
18856if ac_fn_c_try_run "$LINENO"; then :
18857  rd_cv_ieee_qswitch=yes
18858else
18859  rd_cv_ieee_qswitch=no
18860fi
18861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18862  conftest.$ac_objext conftest.beam conftest.$ac_ext
18863fi
18864
18865fi
18866
18867if test x${rd_cv_ieee_qswitch} = "xyes"; then
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869$as_echo "yes" >&6; }
18870
18871else
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873$as_echo "no" >&6; }
18874 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
18875
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
18877$as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
18878if ${rd_cv_ieee_ieeenaninfswitch+:} false; then :
18879  $as_echo_n "(cached) " >&6
18880else
18881  if test "$cross_compiling" = yes; then :
18882  $as_echo_n "(skipped ... cross-compiling) " >&6
18883  # Bypass further checks
18884  rd_cv_ieee_works=yes
18885else
18886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888
18889#include "${srcdir}/src/rrd_config_bottom.h"
18890#include <stdio.h>
18891int main(void){
18892    double rrdnan,rrdinf,rrdc,rrdzero;
18893    ;
18894    /* some math to see if we get a floating point exception */
18895    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18896    rrdnan=0.0/rrdzero; /* especially here */
18897    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18898		  /* at run time without sig fpe */
18899    rrdc = rrdinf + rrdnan;
18900    rrdc = rrdinf / rrdnan;
18901    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18902    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18903    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18904    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18905    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18906    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18907    return 0;
18908 }
18909_ACEOF
18910if ac_fn_c_try_run "$LINENO"; then :
18911  rd_cv_ieee_ieeenaninfswitch=yes
18912else
18913  rd_cv_ieee_ieeenaninfswitch=no
18914fi
18915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18916  conftest.$ac_objext conftest.beam conftest.$ac_ext
18917fi
18918
18919fi
18920
18921if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18923$as_echo "yes" >&6; }
18924
18925else
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927$as_echo "no" >&6; }
18928 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
18929
18930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
18931$as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
18932if ${rd_cv_ieee_ieeecmpswitch+:} false; then :
18933  $as_echo_n "(cached) " >&6
18934else
18935  if test "$cross_compiling" = yes; then :
18936  $as_echo_n "(skipped ... cross-compiling) " >&6
18937  # Bypass further checks
18938  rd_cv_ieee_works=yes
18939else
18940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941/* end confdefs.h.  */
18942
18943#include "${srcdir}/src/rrd_config_bottom.h"
18944#include <stdio.h>
18945int main(void){
18946    double rrdnan,rrdinf,rrdc,rrdzero;
18947    ;
18948    /* some math to see if we get a floating point exception */
18949    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18950    rrdnan=0.0/rrdzero; /* especially here */
18951    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18952		  /* at run time without sig fpe */
18953    rrdc = rrdinf + rrdnan;
18954    rrdc = rrdinf / rrdnan;
18955    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18956    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18957    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18958    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18959    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18960    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18961    return 0;
18962 }
18963_ACEOF
18964if ac_fn_c_try_run "$LINENO"; then :
18965  rd_cv_ieee_ieeecmpswitch=yes
18966else
18967  rd_cv_ieee_ieeecmpswitch=no
18968fi
18969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18970  conftest.$ac_objext conftest.beam conftest.$ac_ext
18971fi
18972
18973fi
18974
18975if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18977$as_echo "yes" >&6; }
18978
18979else
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18981$as_echo "no" >&6; }
18982 CFLAGS=$_cflags
18983
18984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with fpsetmask(0)" >&5
18985$as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
18986if ${rd_cv_ieee_mask+:} false; then :
18987  $as_echo_n "(cached) " >&6
18988else
18989  if test "$cross_compiling" = yes; then :
18990  $as_echo_n "(skipped ... cross-compiling) " >&6
18991  # Bypass further checks
18992  rd_cv_ieee_works=yes
18993else
18994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995/* end confdefs.h.  */
18996#include <floatingpoint.h>
18997#include "${srcdir}/src/rrd_config_bottom.h"
18998#include <stdio.h>
18999int main(void){
19000    double rrdnan,rrdinf,rrdc,rrdzero;
19001    fpsetmask(0);
19002    /* some math to see if we get a floating point exception */
19003    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19004    rrdnan=0.0/rrdzero; /* especially here */
19005    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19006		  /* at run time without sig fpe */
19007    rrdc = rrdinf + rrdnan;
19008    rrdc = rrdinf / rrdnan;
19009    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19010    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19011    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19012    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19013    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19014    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19015    return 0;
19016 }
19017_ACEOF
19018if ac_fn_c_try_run "$LINENO"; then :
19019  rd_cv_ieee_mask=yes
19020else
19021  rd_cv_ieee_mask=no
19022fi
19023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19024  conftest.$ac_objext conftest.beam conftest.$ac_ext
19025fi
19026
19027fi
19028
19029if test x${rd_cv_ieee_mask} = "xyes"; then
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19031$as_echo "yes" >&6; }
19032 $as_echo "#define MUST_DISABLE_FPMASK 1" >>confdefs.h
19033
19034	         PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
19035else
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19037$as_echo "no" >&6; }
19038
19039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
19040$as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
19041if ${rd_cv_ieee_sigfpe+:} false; then :
19042  $as_echo_n "(cached) " >&6
19043else
19044  if test "$cross_compiling" = yes; then :
19045  $as_echo_n "(skipped ... cross-compiling) " >&6
19046  # Bypass further checks
19047  rd_cv_ieee_works=yes
19048else
19049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050/* end confdefs.h.  */
19051#include <signal.h>
19052#include "${srcdir}/src/rrd_config_bottom.h"
19053#include <stdio.h>
19054int main(void){
19055    double rrdnan,rrdinf,rrdc,rrdzero;
19056    signal(SIGFPE,SIG_IGN);
19057    /* some math to see if we get a floating point exception */
19058    rrdzero=sin(0.0); /* don't let the compiler optimize us away */
19059    rrdnan=0.0/rrdzero; /* especially here */
19060    rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
19061		  /* at run time without sig fpe */
19062    rrdc = rrdinf + rrdnan;
19063    rrdc = rrdinf / rrdnan;
19064    if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
19065    if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
19066    if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
19067    if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
19068    if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
19069    if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
19070    return 0;
19071 }
19072_ACEOF
19073if ac_fn_c_try_run "$LINENO"; then :
19074  rd_cv_ieee_sigfpe=yes
19075else
19076  rd_cv_ieee_sigfpe=no
19077fi
19078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19079  conftest.$ac_objext conftest.beam conftest.$ac_ext
19080fi
19081
19082fi
19083
19084if test x${rd_cv_ieee_sigfpe} = "xyes"; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19086$as_echo "yes" >&6; }
19087 $as_echo "#define MUST_DISABLE_SIGFPE 1" >>confdefs.h
19088
19089                   PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
19090else
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092$as_echo "no" >&6; }
19093 as_fn_error $? "
19094Your Compiler does not do proper IEEE math ... Please find out how to
19095make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
19096Check config.log to see what went wrong ...
19097" "$LINENO" 5
19098fi
19099
19100
19101fi
19102
19103
19104fi
19105
19106
19107fi
19108
19109
19110fi
19111
19112
19113fi
19114
19115
19116fi
19117
19118
19119fi
19120
19121
19122fi
19123
19124
19125fi
19126
19127
19128
19129ac_ext=c
19130ac_cpp='$CPP $CPPFLAGS'
19131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19133ac_compiler_gnu=$ac_cv_c_compiler_gnu
19134
19135
19136
19137
19138
19139case $TERM in
19140       #   for the most important terminal types we directly know the sequences
19141       xterm|xterm*|vt220|vt220*)
19142               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19143               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19144       ;;
19145       vt100|vt100*|cygwin)
19146               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19147               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19148       ;;
19149       *)
19150               T_MD=''
19151               T_ME=''
19152       ;;
19153esac
19154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19155$as_echo "" >&6; }
19156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
19157$as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
19158
19159
19160
19161
19162        { $as_echo "$as_me:${as_lineno-$LINENO}: checking tm_gmtoff in struct tm" >&5
19163$as_echo_n "checking tm_gmtoff in struct tm... " >&6; }
19164if ${gq_cv_have_tm_gmtoff+:} false; then :
19165  $as_echo_n "(cached) " >&6
19166else
19167  gq_cv_have_tm_gmtoff=no
19168                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169/* end confdefs.h.  */
19170#include <time.h>
19171                                #include <$ac_cv_struct_tm>
19172
19173int
19174main ()
19175{
19176struct tm t;
19177                                t.tm_gmtoff = 0;
19178                                exit(0);
19179
19180  ;
19181  return 0;
19182}
19183_ACEOF
19184if ac_fn_c_try_compile "$LINENO"; then :
19185  gq_cv_have_tm_gmtoff=yes
19186
19187fi
19188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189
19190fi
19191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gq_cv_have_tm_gmtoff" >&5
19192$as_echo "$gq_cv_have_tm_gmtoff" >&6; }
19193
19194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking __tm_gmtoff in struct tm" >&5
19195$as_echo_n "checking __tm_gmtoff in struct tm... " >&6; }
19196if ${gq_cv_have___tm_gmtoff+:} false; then :
19197  $as_echo_n "(cached) " >&6
19198else
19199  gq_cv_have___tm_gmtoff=no
19200                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201/* end confdefs.h.  */
19202#include <time.h>
19203                                #include <$ac_cv_struct_tm>
19204
19205int
19206main ()
19207{
19208struct tm t;
19209                                t.__tm_gmtoff = 0;
19210                                exit(0);
19211
19212  ;
19213  return 0;
19214}
19215_ACEOF
19216if ac_fn_c_try_compile "$LINENO"; then :
19217  gq_cv_have___tm_gmtoff=yes
19218
19219fi
19220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19221
19222fi
19223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gq_cv_have___tm_gmtoff" >&5
19224$as_echo "$gq_cv_have___tm_gmtoff" >&6; }
19225
19226        if test "$gq_cv_have_tm_gmtoff" = yes ; then
19227
19228$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19229
19230
19231$as_echo "#define TM_GMTOFF tm_gmtoff" >>confdefs.h
19232
19233        elif test "$gq_cv_have___tm_gmtoff" = yes ; then
19234                $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19235
19236                $as_echo "#define TM_GMTOFF __tm_gmtoff" >>confdefs.h
19237
19238        else
19239                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
19240$as_echo_n "checking for timezone... " >&6; }
19241if ${ac_cv_var_timezone+:} false; then :
19242  $as_echo_n "(cached) " >&6
19243else
19244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245/* end confdefs.h.  */
19246
19247                                             #include <time.h>
19248                                             extern long int timezone;
19249
19250int
19251main ()
19252{
19253long int l = timezone;
19254  ;
19255  return 0;
19256}
19257_ACEOF
19258if ac_fn_c_try_link "$LINENO"; then :
19259  ac_cv_var_timezone=yes
19260else
19261  ac_cv_var_timezone=no
19262fi
19263rm -f core conftest.err conftest.$ac_objext \
19264    conftest$ac_exeext conftest.$ac_ext
19265fi
19266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
19267$as_echo "$ac_cv_var_timezone" >&6; }
19268                if test $ac_cv_var_timezone = yes; then
19269
19270$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19271
19272                fi
19273        fi
19274
19275
19276
19277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait has 2 arguments" >&5
19278$as_echo_n "checking whether sigwait has 2 arguments... " >&6; }
19279if ${ac_cv_libc_sigwait+:} false; then :
19280  $as_echo_n "(cached) " >&6
19281else
19282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283/* end confdefs.h.  */
19284
19285        #define _POSIX_PTHREAD_SEMANTICS
19286        #include <stdio.h>
19287        #include <signal.h>
19288int
19289main ()
19290{
19291sigset_t sigs; int signo; sigwait(&sigs, &signo);
19292  ;
19293  return 0;
19294}
19295_ACEOF
19296if ac_fn_c_try_compile "$LINENO"; then :
19297
19298$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
19299
19300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19301$as_echo "yes" >&6; }
19302
19303else
19304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305$as_echo "no" >&6; }
19306
19307fi
19308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309
19310fi
19311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_sigwait" >&5
19312$as_echo "$ac_cv_libc_sigwait" >&6; }
19313
19314
19315
19316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if msync with MS_ASYNC updates the files mtime" >&5
19317$as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
19318if ${rd_cv_ms_async+:} false; then :
19319  $as_echo_n "(cached) " >&6
19320else
19321  if test "$cross_compiling" = yes; then :
19322  :
19323else
19324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325/* end confdefs.h.  */
19326
19327#include <fcntl.h>
19328#include <sys/types.h>
19329#include <sys/stat.h>
19330#include <unistd.h>
19331#include <stdio.h>
19332#include <sys/mman.h>
19333#include <stdlib.h>
19334#include <utime.h>
19335#include <signal.h>
19336void timeout (int i) { exit (1); }
19337int main(void){
19338        int fd;
19339        struct stat stbuf;
19340        char *addr;
19341        int res;
19342        char temp[] = "mmaptestXXXXXX";
19343        struct utimbuf newtime;
19344        time_t create_ts;
19345        fd = mkstemp(temp);
19346        if (fd == -1){
19347            perror(temp);
19348            return 1;
19349        }
19350        write(fd,"12345\n", 6);
19351        stat(temp, &stbuf);
19352        create_ts = stbuf.st_mtime;
19353        newtime.actime = 0;
19354        newtime.modtime = 0;
19355        utime(temp,&newtime);
19356        addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
19357        if (addr == MAP_FAILED) {
19358            perror("mmap");
19359            goto bad_exit;
19360        }
19361        addr[0]='x';
19362        res = msync(addr, 4, MS_ASYNC);
19363        if (res == -1) {
19364           perror("msync");
19365           goto bad_exit;
19366        }
19367        res = close(fd);
19368        if (res == -1) {
19369           perror("close");
19370           goto bad_exit;
19371        }
19372        /* there were reports of sync hanging
19373           so we better set an alarm */
19374        signal(SIGALRM,&timeout);
19375        alarm(5);
19376        /* The ASYNC means that we schedule the msync and return immediately.
19377           Since we want to see if the modification time is updated upon
19378           msync(), we have to make sure that our asynchronous request
19379           completes before we stat below. In a real application, the
19380           request would be completed at a random time in the future
19381           but for this test we do not want to wait an arbitrary amount of
19382           time, so force a commit now.  */
19383        sync();
19384        stat(temp, &stbuf);
19385        if (create_ts > stbuf.st_mtime){
19386           goto bad_exit;
19387        }
19388        unlink(temp);
19389        return 0;
19390     bad_exit:
19391        unlink(temp);
19392        return 1;
19393}
19394
19395_ACEOF
19396if ac_fn_c_try_run "$LINENO"; then :
19397  rd_cv_ms_async=ok
19398else
19399  rd_cv_ms_async=broken
19400fi
19401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19402  conftest.$ac_objext conftest.beam conftest.$ac_ext
19403fi
19404
19405fi
19406
19407
19408
19409if test "${rd_cv_ms_async}" = "ok"; then
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411$as_echo "yes" >&6; }
19412else
19413
19414cat >>confdefs.h <<_ACEOF
19415#define HAVE_BROKEN_MS_ASYNC 1
19416_ACEOF
19417
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419$as_echo "no" >&6; }
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: With mmap access, your platform fails to update the files" >&5
19421$as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
19423$as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: file it opens for rw access." >&5
19425$as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
19426 sleep 2
19427fi
19428
19429
19430
19431for ac_func in _NL_TIME_WEEK_1STDAY
19432do :
19433  ac_fn_c_check_func "$LINENO" "_NL_TIME_WEEK_1STDAY" "ac_cv_func__NL_TIME_WEEK_1STDAY"
19434if test "x$ac_cv_func__NL_TIME_WEEK_1STDAY" = xyes; then :
19435  cat >>confdefs.h <<_ACEOF
19436#define HAVE__NL_TIME_WEEK_1STDAY 1
19437_ACEOF
19438
19439else
19440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h" >&5
19441$as_echo_n "checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h... " >&6; }
19442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443/* end confdefs.h.  */
19444#include <langinfo.h>
19445int
19446main ()
19447{
19448nl_langinfo(_NL_TIME_WEEK_1STDAY)
19449  ;
19450  return 0;
19451}
19452_ACEOF
19453if ac_fn_c_try_link "$LINENO"; then :
19454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19455$as_echo "yes" >&6; }
19456      $as_echo "#define HAVE__NL_TIME_WEEK_1STDAY 1" >>confdefs.h
19457
19458else
19459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19460$as_echo "no" >&6; }
19461fi
19462rm -f core conftest.err conftest.$ac_objext \
19463    conftest$ac_exeext conftest.$ac_ext
19464fi
19465done
19466
19467
19468
19469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc can deal with NULL" >&5
19470$as_echo_n "checking if realloc can deal with NULL... " >&6; }
19471if ${rd_cv_null_realloc+:} false; then :
19472  $as_echo_n "(cached) " >&6
19473else
19474  if test "$cross_compiling" = yes; then :
19475  :
19476else
19477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478/* end confdefs.h.  */
19479#include <stdlib.h>
19480	      int main(void){
19481              char *x = NULL;
19482	      x = realloc (x,10);
19483	      if (x==NULL) return 1;
19484	      return 0;
19485             }
19486_ACEOF
19487if ac_fn_c_try_run "$LINENO"; then :
19488  rd_cv_null_realloc=yes
19489else
19490  rd_cv_null_realloc=nope
19491fi
19492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19493  conftest.$ac_objext conftest.beam conftest.$ac_ext
19494fi
19495
19496fi
19497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_null_realloc" >&5
19498$as_echo "$rd_cv_null_realloc" >&6; }
19499
19500if test x"$rd_cv_null_realloc" = xnope; then
19501$as_echo "#define NO_NULL_REALLOC 1" >>confdefs.h
19502
19503fi
19504
19505ac_ext=c
19506ac_cpp='$CPP $CPPFLAGS'
19507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509ac_compiler_gnu=$ac_cv_c_compiler_gnu
19510
19511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ctime_r need special care to act posixly correct" >&5
19512$as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
19513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514/* end confdefs.h.  */
19515#include <time.h>
19516int
19517main ()
19518{
19519ctime_r(NULL,NULL,0)
19520  ;
19521  return 0;
19522}
19523_ACEOF
19524if ac_fn_c_try_link "$LINENO"; then :
19525   CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
19526      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527/* end confdefs.h.  */
19528#include <time.h>
19529int
19530main ()
19531{
19532ctime_r(NULL,NULL)
19533  ;
19534  return 0;
19535}
19536_ACEOF
19537if ac_fn_c_try_link "$LINENO"; then :
19538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, this seems to be solaris style" >&5
19539$as_echo "yes, this seems to be solaris style" >&6; }
19540else
19541  as_fn_error $? "Can't figure how to compile ctime_r" "$LINENO" 5
19542
19543fi
19544rm -f core conftest.err conftest.$ac_objext \
19545    conftest$ac_exeext conftest.$ac_ext
19546
19547else
19548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h.  */
19550#ifdef __MINGW32__
19551#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
19552#endif
19553#include <time.h>
19554int
19555main ()
19556{
19557ctime_r(NULL,NULL)
19558  ;
19559  return 0;
19560}
19561_ACEOF
19562if ac_fn_c_try_link "$LINENO"; then :
19563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564$as_echo "no" >&6; }
19565else
19566  as_fn_error $? "Can't figure how to compile ctime_r" "$LINENO" 5
19567
19568fi
19569rm -f core conftest.err conftest.$ac_objext \
19570    conftest$ac_exeext conftest.$ac_ext
19571
19572
19573fi
19574rm -f core conftest.err conftest.$ac_objext \
19575    conftest$ac_exeext conftest.$ac_ext
19576ac_ext=c
19577ac_cpp='$CPP $CPPFLAGS'
19578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582
19583
19584
19585
19586
19587if test $enable_pthread != no; then
19588
19589
19590ac_ext=c
19591ac_cpp='$CPP $CPPFLAGS'
19592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19594ac_compiler_gnu=$ac_cv_c_compiler_gnu
19595
19596acx_pthread_ok=no
19597
19598# We used to check for pthread.h first, but this fails if pthread.h
19599# requires special compiler flags (e.g. on True64 or Sequent).
19600# It gets checked for in the link test anyway.
19601
19602# First of all, check if the user has set any of the PTHREAD_LIBS,
19603# etcetera environment variables, and if threads linking works using
19604# them:
19605if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19606        save_CFLAGS="$CFLAGS"
19607        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19608        save_LIBS="$LIBS"
19609        LIBS="$PTHREAD_LIBS $LIBS"
19610        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19611$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19612        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613/* end confdefs.h.  */
19614
19615/* Override any GCC internal prototype to avoid an error.
19616   Use char because int might match the return type of a GCC
19617   builtin and then its argument prototype would still apply.  */
19618#ifdef __cplusplus
19619extern "C"
19620#endif
19621char pthread_join ();
19622int
19623main ()
19624{
19625return pthread_join ();
19626  ;
19627  return 0;
19628}
19629_ACEOF
19630if ac_fn_c_try_link "$LINENO"; then :
19631  acx_pthread_ok=yes
19632fi
19633rm -f core conftest.err conftest.$ac_objext \
19634    conftest$ac_exeext conftest.$ac_ext
19635        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19636$as_echo "$acx_pthread_ok" >&6; }
19637        if test x"$acx_pthread_ok" = xno; then
19638                PTHREAD_LIBS=""
19639                PTHREAD_CFLAGS=""
19640        fi
19641        LIBS="$save_LIBS"
19642        CFLAGS="$save_CFLAGS"
19643fi
19644
19645# We must check for the threads library under a number of different
19646# names; the ordering is very important because some systems
19647# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19648# libraries is broken (non-POSIX).
19649
19650# Create a list of thread flags to try.  Items starting with a "-" are
19651# C compiler flags, and other items are library names, except for "none"
19652# which indicates that we try without any flags at all, and "pthread-config"
19653# which is a program returning the flags for the Pth emulation library.
19654
19655acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19656
19657# The ordering *is* (sometimes) important.  Some notes on the
19658# individual items follow:
19659
19660# pthreads: AIX (must check this before -lpthread)
19661# none: in case threads are in libc; should be tried before -Kthread and
19662#       other compiler flags to prevent continual compiler warnings
19663# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19664# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19665# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19666# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19667# -pthreads: Solaris/gcc
19668# -mthreads: Mingw32/gcc, Lynx/gcc
19669# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19670#      doesn't hurt to check since this sometimes defines pthreads too;
19671#      also defines -D_REENTRANT)
19672# pthread: Linux, etcetera
19673# --thread-safe: KAI C++
19674# pthread-config: use pthread-config program (for GNU Pth library)
19675
19676case "${host_cpu}-${host_os}" in
19677        *solaris*)
19678
19679        # On Solaris (at least, for some versions), libc contains stubbed
19680        # (non-functional) versions of the pthreads routines, so link-based
19681        # tests will erroneously succeed.  (We need to link with -pthread or
19682        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19683        # a function called by this macro, so we could check for that, but
19684        # who knows whether they'll stub that too in a future libc.)  So,
19685        # we'll just look for -pthreads and -lpthread first:
19686
19687        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19688        ;;
19689esac
19690
19691if test x"$acx_pthread_ok" = xno; then
19692for flag in $acx_pthread_flags; do
19693
19694        case $flag in
19695                none)
19696                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19697$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19698                ;;
19699
19700                -*)
19701                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19702$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19703                PTHREAD_CFLAGS="$flag"
19704                ;;
19705
19706		pthread-config)
19707		# Extract the first word of "pthread-config", so it can be a program name with args.
19708set dummy pthread-config; ac_word=$2
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19710$as_echo_n "checking for $ac_word... " >&6; }
19711if ${ac_cv_prog_acx_pthread_config+:} false; then :
19712  $as_echo_n "(cached) " >&6
19713else
19714  if test -n "$acx_pthread_config"; then
19715  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19716else
19717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19718for as_dir in $PATH
19719do
19720  IFS=$as_save_IFS
19721  test -z "$as_dir" && as_dir=.
19722    for ac_exec_ext in '' $ac_executable_extensions; do
19723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19724    ac_cv_prog_acx_pthread_config="yes"
19725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19726    break 2
19727  fi
19728done
19729  done
19730IFS=$as_save_IFS
19731
19732  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19733fi
19734fi
19735acx_pthread_config=$ac_cv_prog_acx_pthread_config
19736if test -n "$acx_pthread_config"; then
19737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19738$as_echo "$acx_pthread_config" >&6; }
19739else
19740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19741$as_echo "no" >&6; }
19742fi
19743
19744
19745		if test x"$acx_pthread_config" = xno; then continue; fi
19746		PTHREAD_CFLAGS="`pthread-config --cflags`"
19747		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19748		;;
19749
19750                *)
19751                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19752$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19753                PTHREAD_LIBS="-l$flag"
19754                ;;
19755        esac
19756
19757        save_LIBS="$LIBS"
19758        save_CFLAGS="$CFLAGS"
19759        LIBS="$PTHREAD_LIBS $LIBS"
19760        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19761
19762        # Check for various functions.  We must include pthread.h,
19763        # since some functions may be macros.  (On the Sequent, we
19764        # need a special flag -Kthread to make this header compile.)
19765        # We check for pthread_join because it is in -lpthread on IRIX
19766        # while pthread_create is in libc.  We check for pthread_attr_init
19767        # due to DEC craziness with -lpthreads.  We check for
19768        # pthread_cleanup_push because it is one of the few pthread
19769        # functions on Solaris that doesn't have a non-functional libc stub.
19770        # We try pthread_create on general principles.
19771        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772/* end confdefs.h.  */
19773#include <pthread.h>
19774int
19775main ()
19776{
19777pthread_t th; pthread_join(th, 0);
19778                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
19779                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19780  ;
19781  return 0;
19782}
19783_ACEOF
19784if ac_fn_c_try_link "$LINENO"; then :
19785  acx_pthread_ok=yes
19786fi
19787rm -f core conftest.err conftest.$ac_objext \
19788    conftest$ac_exeext conftest.$ac_ext
19789
19790        LIBS="$save_LIBS"
19791        CFLAGS="$save_CFLAGS"
19792
19793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19794$as_echo "$acx_pthread_ok" >&6; }
19795        if test "x$acx_pthread_ok" = xyes; then
19796                break;
19797        fi
19798
19799        PTHREAD_LIBS=""
19800        PTHREAD_CFLAGS=""
19801done
19802fi
19803
19804# Various other checks:
19805if test "x$acx_pthread_ok" = xyes; then
19806        save_LIBS="$LIBS"
19807        LIBS="$PTHREAD_LIBS $LIBS"
19808        save_CFLAGS="$CFLAGS"
19809        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19810
19811        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19813$as_echo_n "checking for joinable pthread attribute... " >&6; }
19814	attr_name=unknown
19815	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19816	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817/* end confdefs.h.  */
19818#include <pthread.h>
19819int
19820main ()
19821{
19822int attr=$attr;
19823  ;
19824  return 0;
19825}
19826_ACEOF
19827if ac_fn_c_try_link "$LINENO"; then :
19828  attr_name=$attr; break
19829fi
19830rm -f core conftest.err conftest.$ac_objext \
19831    conftest$ac_exeext conftest.$ac_ext
19832	done
19833        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19834$as_echo "$attr_name" >&6; }
19835        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19836
19837cat >>confdefs.h <<_ACEOF
19838#define PTHREAD_CREATE_JOINABLE $attr_name
19839_ACEOF
19840
19841        fi
19842
19843        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19844$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19845        x_rflag=no
19846        case "${host_cpu}-${host_os}" in
19847            *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
19848            *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
19849            *-linux* | *-k*bsd*-gnu*)
19850            if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
19851                # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
19852                # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
19853                PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
19854            fi;;
19855        esac
19856        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_rflag}" >&5
19857$as_echo "${x_rflag}" >&6; }
19858        if test "x$x_rflag" != xno; then
19859            PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
19860        fi
19861
19862        LIBS="$save_LIBS"
19863        CFLAGS="$save_CFLAGS"
19864
19865        # More AIX lossage: must compile with cc_r
19866        # Extract the first word of "cc_r", so it can be a program name with args.
19867set dummy cc_r; ac_word=$2
19868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19869$as_echo_n "checking for $ac_word... " >&6; }
19870if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19871  $as_echo_n "(cached) " >&6
19872else
19873  if test -n "$PTHREAD_CC"; then
19874  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19875else
19876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19877for as_dir in $PATH
19878do
19879  IFS=$as_save_IFS
19880  test -z "$as_dir" && as_dir=.
19881    for ac_exec_ext in '' $ac_executable_extensions; do
19882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19883    ac_cv_prog_PTHREAD_CC="cc_r"
19884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19885    break 2
19886  fi
19887done
19888  done
19889IFS=$as_save_IFS
19890
19891  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19892fi
19893fi
19894PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19895if test -n "$PTHREAD_CC"; then
19896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19897$as_echo "$PTHREAD_CC" >&6; }
19898else
19899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19900$as_echo "no" >&6; }
19901fi
19902
19903
19904else
19905        PTHREAD_CC="$CC"
19906fi
19907
19908
19909
19910
19911
19912# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19913if test x"$acx_pthread_ok" = xyes; then
19914
19915    MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
19916    MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
19917
19918        :
19919else
19920        acx_pthread_ok=no
19921
19922fi
19923ac_ext=c
19924ac_cpp='$CPP $CPPFLAGS'
19925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928
19929
19930fi
19931
19932
19933if test  "x$x_rflag" != "xno"; then
19934   CPPFLAGS="$CPPFLAGS $x_rflag"
19935fi
19936
19937 if test $enable_pthread != no; then
19938  BUILD_MULTITHREAD_TRUE=
19939  BUILD_MULTITHREAD_FALSE='#'
19940else
19941  BUILD_MULTITHREAD_TRUE='#'
19942  BUILD_MULTITHREAD_FALSE=
19943fi
19944
19945
19946ac_ext=c
19947ac_cpp='$CPP $CPPFLAGS'
19948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950ac_compiler_gnu=$ac_cv_c_compiler_gnu
19951
19952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking do we need malloc/malloc.h" >&5
19953$as_echo_n "checking do we need malloc/malloc.h... " >&6; }
19954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955/* end confdefs.h.  */
19956#include <stdlib.h>
19957int
19958main ()
19959{
19960malloc(1)
19961  ;
19962  return 0;
19963}
19964_ACEOF
19965if ac_fn_c_try_link "$LINENO"; then :
19966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope, works out of the box" >&5
19967$as_echo "nope, works out of the box" >&6; }
19968else
19969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19970/* end confdefs.h.  */
19971#include <stdlib.h>
19972                  #include <malloc/malloc.h>
19973int
19974main ()
19975{
19976malloc(1)
19977  ;
19978  return 0;
19979}
19980_ACEOF
19981if ac_fn_c_try_link "$LINENO"; then :
19982  $as_echo "#define MUST_HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
19983
19984           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes we do" >&5
19985$as_echo "yes we do" >&6; }
19986else
19987  as_fn_error $? "Can not figure how to compile malloc" "$LINENO" 5
19988
19989fi
19990rm -f core conftest.err conftest.$ac_objext \
19991    conftest$ac_exeext conftest.$ac_ext
19992
19993
19994fi
19995rm -f core conftest.err conftest.$ac_objext \
19996    conftest$ac_exeext conftest.$ac_ext
19997ac_ext=c
19998ac_cpp='$CPP $CPPFLAGS'
19999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002
20003
20004# The cast to long int works around a bug in the HP C Compiler
20005# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20006# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20007# This bug is HP SR number 8606223364.
20008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20009$as_echo_n "checking size of time_t... " >&6; }
20010if ${ac_cv_sizeof_time_t+:} false; then :
20011  $as_echo_n "(cached) " >&6
20012else
20013  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
20014
20015else
20016  if test "$ac_cv_type_time_t" = yes; then
20017     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20019as_fn_error 77 "cannot compute sizeof (time_t)
20020See \`config.log' for more details" "$LINENO" 5; }
20021   else
20022     ac_cv_sizeof_time_t=0
20023   fi
20024fi
20025
20026fi
20027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20028$as_echo "$ac_cv_sizeof_time_t" >&6; }
20029
20030
20031
20032cat >>confdefs.h <<_ACEOF
20033#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20034_ACEOF
20035
20036
20037
20038# The cast to long int works around a bug in the HP C Compiler
20039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20041# This bug is HP SR number 8606223364.
20042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
20043$as_echo_n "checking size of long int... " >&6; }
20044if ${ac_cv_sizeof_long_int+:} false; then :
20045  $as_echo_n "(cached) " >&6
20046else
20047  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
20048
20049else
20050  if test "$ac_cv_type_long_int" = yes; then
20051     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20053as_fn_error 77 "cannot compute sizeof (long int)
20054See \`config.log' for more details" "$LINENO" 5; }
20055   else
20056     ac_cv_sizeof_long_int=0
20057   fi
20058fi
20059
20060fi
20061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
20062$as_echo "$ac_cv_sizeof_long_int" >&6; }
20063
20064
20065
20066cat >>confdefs.h <<_ACEOF
20067#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20068_ACEOF
20069
20070
20071
20072
20073case $TERM in
20074       #   for the most important terminal types we directly know the sequences
20075       xterm|xterm*|vt220|vt220*)
20076               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20077               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20078       ;;
20079       vt100|vt100*|cygwin)
20080               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20081               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20082       ;;
20083       *)
20084               T_MD=''
20085               T_ME=''
20086       ;;
20087esac
20088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20089$as_echo "" >&6; }
20090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
20091$as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
20092
20093
20094have_libdbi=no
20095
20096# Check whether --enable-libdbi was given.
20097if test "${enable_libdbi+set}" = set; then :
20098  enableval=$enable_libdbi;
20099else
20100  enable_libdbi=yes
20101fi
20102
20103
20104if test "x$enable_libdbi" != xno; then :
20105
20106    ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default"
20107if test "x$ac_cv_header_dbi_dbi_h" = xyes; then :
20108
20109       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5
20110$as_echo_n "checking for dbi_initialize in -ldbi... " >&6; }
20111if ${ac_cv_lib_dbi_dbi_initialize+:} false; then :
20112  $as_echo_n "(cached) " >&6
20113else
20114  ac_check_lib_save_LIBS=$LIBS
20115LIBS="-ldbi  $LIBS"
20116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117/* end confdefs.h.  */
20118
20119/* Override any GCC internal prototype to avoid an error.
20120   Use char because int might match the return type of a GCC
20121   builtin and then its argument prototype would still apply.  */
20122#ifdef __cplusplus
20123extern "C"
20124#endif
20125char dbi_initialize ();
20126int
20127main ()
20128{
20129return dbi_initialize ();
20130  ;
20131  return 0;
20132}
20133_ACEOF
20134if ac_fn_c_try_link "$LINENO"; then :
20135  ac_cv_lib_dbi_dbi_initialize=yes
20136else
20137  ac_cv_lib_dbi_dbi_initialize=no
20138fi
20139rm -f core conftest.err conftest.$ac_objext \
20140    conftest$ac_exeext conftest.$ac_ext
20141LIBS=$ac_check_lib_save_LIBS
20142fi
20143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5
20144$as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; }
20145if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes; then :
20146
20147
20148$as_echo "#define HAVE_LIBDBI 1" >>confdefs.h
20149
20150           LIBS="${LIBS} -ldbi"
20151           have_libdbi=yes
20152
20153fi
20154
20155
20156fi
20157
20158
20159
20160fi
20161
20162 if test $have_libdbi != no; then
20163  BUILD_LIBDBI_TRUE=
20164  BUILD_LIBDBI_FALSE='#'
20165else
20166  BUILD_LIBDBI_TRUE='#'
20167  BUILD_LIBDBI_FALSE=
20168fi
20169
20170
20171have_librados=no
20172
20173# Check whether --enable-librados was given.
20174if test "${enable_librados+set}" = set; then :
20175  enableval=$enable_librados;
20176else
20177  enable_librados=yes
20178fi
20179
20180
20181if test "x$enable_librados" != xno; then :
20182
20183    ac_fn_c_check_header_mongrel "$LINENO" "rados/librados.h" "ac_cv_header_rados_librados_h" "$ac_includes_default"
20184if test "x$ac_cv_header_rados_librados_h" = xyes; then :
20185
20186
20187$as_echo "#define HAVE_LIBRADOS 1" >>confdefs.h
20188
20189        LIBS="${LIBS} -lrados"
20190        have_librados=yes
20191
20192fi
20193
20194
20195
20196fi
20197
20198 if test $have_librados != no; then
20199  BUILD_LIBRADOS_TRUE=
20200  BUILD_LIBRADOS_FALSE='#'
20201else
20202  BUILD_LIBRADOS_TRUE='#'
20203  BUILD_LIBRADOS_FALSE=
20204fi
20205
20206
20207have_libwrap=no
20208
20209# Check whether --enable-libwrap was given.
20210if test "${enable_libwrap+set}" = set; then :
20211  enableval=$enable_libwrap;
20212else
20213  enable_libwrap=yes
20214fi
20215
20216
20217if test "x$enable_libwrap" != xno; then :
20218
20219    ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
20220if test "x$ac_cv_header_tcpd_h" = xyes; then :
20221
20222        for ac_func in hosts_access
20223do :
20224  ac_fn_c_check_func "$LINENO" "hosts_access" "ac_cv_func_hosts_access"
20225if test "x$ac_cv_func_hosts_access" = xyes; then :
20226  cat >>confdefs.h <<_ACEOF
20227#define HAVE_HOSTS_ACCESS 1
20228_ACEOF
20229
20230
20231$as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
20232
20233            have_libwrap=yes
20234
20235else
20236
20237            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
20238$as_echo_n "checking for hosts_access in -lwrap... " >&6; }
20239if ${ac_cv_lib_wrap_hosts_access+:} false; then :
20240  $as_echo_n "(cached) " >&6
20241else
20242  ac_check_lib_save_LIBS=$LIBS
20243LIBS="-lwrap  $LIBS"
20244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245/* end confdefs.h.  */
20246
20247/* Override any GCC internal prototype to avoid an error.
20248   Use char because int might match the return type of a GCC
20249   builtin and then its argument prototype would still apply.  */
20250#ifdef __cplusplus
20251extern "C"
20252#endif
20253char hosts_access ();
20254int
20255main ()
20256{
20257return hosts_access ();
20258  ;
20259  return 0;
20260}
20261_ACEOF
20262if ac_fn_c_try_link "$LINENO"; then :
20263  ac_cv_lib_wrap_hosts_access=yes
20264else
20265  ac_cv_lib_wrap_hosts_access=no
20266fi
20267rm -f core conftest.err conftest.$ac_objext \
20268    conftest$ac_exeext conftest.$ac_ext
20269LIBS=$ac_check_lib_save_LIBS
20270fi
20271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
20272$as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
20273if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
20274
20275
20276$as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
20277
20278               LIBS="${LIBS} -lwrap"
20279               have_libwrap=yes
20280
20281fi
20282
20283
20284fi
20285done
20286
20287
20288fi
20289
20290
20291
20292fi
20293
20294
20295 if test $have_libwrap != no; then
20296  BUILD_LIBWRAP_TRUE=
20297  BUILD_LIBWRAP_FALSE='#'
20298else
20299  BUILD_LIBWRAP_TRUE='#'
20300  BUILD_LIBWRAP_FALSE=
20301fi
20302
20303
20304 if test $enable_rrd_graph != no; then
20305  BUILD_RRDGRAPH_TRUE=
20306  BUILD_RRDGRAPH_FALSE='#'
20307else
20308  BUILD_RRDGRAPH_TRUE='#'
20309  BUILD_RRDGRAPH_FALSE=
20310fi
20311
20312
20313 if test $enable_rrd_restore != no; then
20314  BUILD_RRDRESTORE_TRUE=
20315  BUILD_RRDRESTORE_FALSE='#'
20316else
20317  BUILD_RRDRESTORE_TRUE='#'
20318  BUILD_RRDRESTORE_FALSE=
20319fi
20320
20321
20322
20323 ac_ext=c
20324ac_cpp='$CPP $CPPFLAGS'
20325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327ac_compiler_gnu=$ac_cv_c_compiler_gnu
20328
20329 EX_CHECK_STATE=NO
20330 ex_check_save_LIBS=${LIBS}
20331 ex_check_save_CPPFLAGS=${CPPFLAGS}
20332 ex_check_save_LDFLAGS=${LDFLAGS}
20333 if test "x""" != "x"; then
20334   CPPFLAGS="$CPPFLAGS -I"""
20335 fi
20336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib_check_version in -lglib-2.0" >&5
20337$as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
20338if ${ac_cv_lib_glib_2_0_glib_check_version+:} false; then :
20339  $as_echo_n "(cached) " >&6
20340else
20341  ac_check_lib_save_LIBS=$LIBS
20342LIBS="-lglib-2.0  $LIBS"
20343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344/* end confdefs.h.  */
20345
20346/* Override any GCC internal prototype to avoid an error.
20347   Use char because int might match the return type of a GCC
20348   builtin and then its argument prototype would still apply.  */
20349#ifdef __cplusplus
20350extern "C"
20351#endif
20352char glib_check_version ();
20353int
20354main ()
20355{
20356return glib_check_version ();
20357  ;
20358  return 0;
20359}
20360_ACEOF
20361if ac_fn_c_try_link "$LINENO"; then :
20362  ac_cv_lib_glib_2_0_glib_check_version=yes
20363else
20364  ac_cv_lib_glib_2_0_glib_check_version=no
20365fi
20366rm -f core conftest.err conftest.$ac_objext \
20367    conftest$ac_exeext conftest.$ac_ext
20368LIBS=$ac_check_lib_save_LIBS
20369fi
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
20371$as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
20372if test "x$ac_cv_lib_glib_2_0_glib_check_version" = xyes; then :
20373
20374    ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
20375if test "x$ac_cv_header_glib_h" = xyes; then :
20376  LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
20377fi
20378
20379
20380fi
20381
20382 if test $EX_CHECK_STATE = NO; then
20383        for ac_prog in pkg-config
20384do
20385  # Extract the first word of "$ac_prog", so it can be a program name with args.
20386set dummy $ac_prog; ac_word=$2
20387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20388$as_echo_n "checking for $ac_word... " >&6; }
20389if ${ac_cv_prog_PKGCONFIG+:} false; then :
20390  $as_echo_n "(cached) " >&6
20391else
20392  if test -n "$PKGCONFIG"; then
20393  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
20394else
20395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20396for as_dir in $PATH
20397do
20398  IFS=$as_save_IFS
20399  test -z "$as_dir" && as_dir=.
20400    for ac_exec_ext in '' $ac_executable_extensions; do
20401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20402    ac_cv_prog_PKGCONFIG="$ac_prog"
20403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20404    break 2
20405  fi
20406done
20407  done
20408IFS=$as_save_IFS
20409
20410fi
20411fi
20412PKGCONFIG=$ac_cv_prog_PKGCONFIG
20413if test -n "$PKGCONFIG"; then
20414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20415$as_echo "$PKGCONFIG" >&6; }
20416else
20417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20418$as_echo "no" >&6; }
20419fi
20420
20421
20422  test -n "$PKGCONFIG" && break
20423done
20424test -n "$PKGCONFIG" || PKGCONFIG="no"
20425
20426    if test "$PKGCONFIG" != "no"; then
20427          if $PKGCONFIG --exists glib-2.0; then
20428             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
20429             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
20430             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
20431             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
20432	         	     unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
20433             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib_check_version in -lglib-2.0" >&5
20434$as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
20435if ${ac_cv_lib_glib_2_0_glib_check_version+:} false; then :
20436  $as_echo_n "(cached) " >&6
20437else
20438  ac_check_lib_save_LIBS=$LIBS
20439LIBS="-lglib-2.0  $LIBS"
20440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441/* end confdefs.h.  */
20442
20443/* Override any GCC internal prototype to avoid an error.
20444   Use char because int might match the return type of a GCC
20445   builtin and then its argument prototype would still apply.  */
20446#ifdef __cplusplus
20447extern "C"
20448#endif
20449char glib_check_version ();
20450int
20451main ()
20452{
20453return glib_check_version ();
20454  ;
20455  return 0;
20456}
20457_ACEOF
20458if ac_fn_c_try_link "$LINENO"; then :
20459  ac_cv_lib_glib_2_0_glib_check_version=yes
20460else
20461  ac_cv_lib_glib_2_0_glib_check_version=no
20462fi
20463rm -f core conftest.err conftest.$ac_objext \
20464    conftest$ac_exeext conftest.$ac_ext
20465LIBS=$ac_check_lib_save_LIBS
20466fi
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
20468$as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
20469if test "x$ac_cv_lib_glib_2_0_glib_check_version" = xyes; then :
20470
20471	         unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
20472		 ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
20473if test "x$ac_cv_header_glib_h" = xyes; then :
20474  EX_CHECK_STATE=YES
20475fi
20476
20477
20478
20479fi
20480
20481          else
20482             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20483----------------------------------------------------------------------------
20484* I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
20485  You may want to set the PKG_CONFIG_PATH variable to point to its
20486  location.
20487----------------------------------------------------------------------------
20488			" >&5
20489$as_echo "$as_me: WARNING:
20490----------------------------------------------------------------------------
20491* I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
20492  You may want to set the PKG_CONFIG_PATH variable to point to its
20493  location.
20494----------------------------------------------------------------------------
20495			" >&2;}
20496           fi
20497     fi
20498  fi
20499
20500  if test ${EX_CHECK_STATE} = NO; then
20501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20502----------------------------------------------------------------------------
20503* I could not find a working copy of glib-2.0. Check config.log for hints on why
20504  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20505  so that compiler and the linker can find libglib-2.0 and its header files. If
20506  you have not installed glib-2.0, you can get it either from its original home on
20507
20508     ftp://ftp.gtk.org/pub/glib/2.28/
20509
20510  You can find also find an archive copy on
20511
20512     https://oss.oetiker.ch/rrdtool/pub/libs
20513
20514  The last tested version of glib-2.0 is 2.28.7.
20515
20516       LIBS=$LIBS
20517   LDFLAGS=$LDFLAGS
20518  CPPFLAGS=$CPPFLAGS
20519
20520----------------------------------------------------------------------------
20521                " >&5
20522$as_echo "$as_me: WARNING:
20523----------------------------------------------------------------------------
20524* I could not find a working copy of glib-2.0. Check config.log for hints on why
20525  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20526  so that compiler and the linker can find libglib-2.0 and its header files. If
20527  you have not installed glib-2.0, you can get it either from its original home on
20528
20529     ftp://ftp.gtk.org/pub/glib/2.28/
20530
20531  You can find also find an archive copy on
20532
20533     https://oss.oetiker.ch/rrdtool/pub/libs
20534
20535  The last tested version of glib-2.0 is 2.28.7.
20536
20537       LIBS=$LIBS
20538   LDFLAGS=$LDFLAGS
20539  CPPFLAGS=$CPPFLAGS
20540
20541----------------------------------------------------------------------------
20542                " >&2;}
20543       EX_CHECK_ALL_ERR=YES
20544       LIBS="${ex_check_save_LIBS}"
20545       CPPFLAGS="${ex_check_save_CPPFLAGS}"
20546       LDFLAGS="${ex_check_save_LDFLAGS}"
20547   fi
20548   ac_ext=c
20549ac_cpp='$CPP $CPPFLAGS'
20550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553
20554
20555
20556
20557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to include gthreads for g_thread_init" >&5
20558$as_echo_n "checking whether we need to include gthreads for g_thread_init... " >&6; }
20559if ${ac_cv_glibc_g_thread_init+:} false; then :
20560  $as_echo_n "(cached) " >&6
20561else
20562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563/* end confdefs.h.  */
20564#include <glib.h>
20565int
20566main ()
20567{
20568#if !GLIB_CHECK_VERSION(2, 32, 0)
20569                     # error "glib needs g_thread_init"
20570                     #endif
20571  ;
20572  return 0;
20573}
20574_ACEOF
20575if ac_fn_c_try_compile "$LINENO"; then :
20576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20577$as_echo "no" >&6; }
20578else
20579
20580 ac_ext=c
20581ac_cpp='$CPP $CPPFLAGS'
20582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585
20586 EX_CHECK_STATE=NO
20587 ex_check_save_LIBS=${LIBS}
20588 ex_check_save_CPPFLAGS=${CPPFLAGS}
20589 ex_check_save_LDFLAGS=${LDFLAGS}
20590 if test "x""" != "x"; then
20591   CPPFLAGS="$CPPFLAGS -I"""
20592 fi
20593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_thread_init in -lgthread-2.0" >&5
20594$as_echo_n "checking for g_thread_init in -lgthread-2.0... " >&6; }
20595if ${ac_cv_lib_gthread_2_0_g_thread_init+:} false; then :
20596  $as_echo_n "(cached) " >&6
20597else
20598  ac_check_lib_save_LIBS=$LIBS
20599LIBS="-lgthread-2.0  $LIBS"
20600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601/* end confdefs.h.  */
20602
20603/* Override any GCC internal prototype to avoid an error.
20604   Use char because int might match the return type of a GCC
20605   builtin and then its argument prototype would still apply.  */
20606#ifdef __cplusplus
20607extern "C"
20608#endif
20609char g_thread_init ();
20610int
20611main ()
20612{
20613return g_thread_init ();
20614  ;
20615  return 0;
20616}
20617_ACEOF
20618if ac_fn_c_try_link "$LINENO"; then :
20619  ac_cv_lib_gthread_2_0_g_thread_init=yes
20620else
20621  ac_cv_lib_gthread_2_0_g_thread_init=no
20622fi
20623rm -f core conftest.err conftest.$ac_objext \
20624    conftest$ac_exeext conftest.$ac_ext
20625LIBS=$ac_check_lib_save_LIBS
20626fi
20627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
20628$as_echo "$ac_cv_lib_gthread_2_0_g_thread_init" >&6; }
20629if test "x$ac_cv_lib_gthread_2_0_g_thread_init" = xyes; then :
20630
20631    ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
20632if test "x$ac_cv_header_glib_h" = xyes; then :
20633  LIBS="-lgthread-2.0 ${LIBS}";EX_CHECK_STATE=YES
20634fi
20635
20636
20637fi
20638
20639 if test $EX_CHECK_STATE = NO; then
20640        for ac_prog in pkg-config
20641do
20642  # Extract the first word of "$ac_prog", so it can be a program name with args.
20643set dummy $ac_prog; ac_word=$2
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20645$as_echo_n "checking for $ac_word... " >&6; }
20646if ${ac_cv_prog_PKGCONFIG+:} false; then :
20647  $as_echo_n "(cached) " >&6
20648else
20649  if test -n "$PKGCONFIG"; then
20650  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
20651else
20652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20653for as_dir in $PATH
20654do
20655  IFS=$as_save_IFS
20656  test -z "$as_dir" && as_dir=.
20657    for ac_exec_ext in '' $ac_executable_extensions; do
20658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20659    ac_cv_prog_PKGCONFIG="$ac_prog"
20660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20661    break 2
20662  fi
20663done
20664  done
20665IFS=$as_save_IFS
20666
20667fi
20668fi
20669PKGCONFIG=$ac_cv_prog_PKGCONFIG
20670if test -n "$PKGCONFIG"; then
20671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20672$as_echo "$PKGCONFIG" >&6; }
20673else
20674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20675$as_echo "no" >&6; }
20676fi
20677
20678
20679  test -n "$PKGCONFIG" && break
20680done
20681test -n "$PKGCONFIG" || PKGCONFIG="no"
20682
20683    if test "$PKGCONFIG" != "no"; then
20684          if $PKGCONFIG --exists gthread-2.0; then
20685             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags gthread-2.0`
20686             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L gthread-2.0`
20687             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other gthread-2.0`
20688             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l gthread-2.0`
20689	         	     unset ac_cv_lib_`echo gthread-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_g_thread_init
20690             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_thread_init in -lgthread-2.0" >&5
20691$as_echo_n "checking for g_thread_init in -lgthread-2.0... " >&6; }
20692if ${ac_cv_lib_gthread_2_0_g_thread_init+:} false; then :
20693  $as_echo_n "(cached) " >&6
20694else
20695  ac_check_lib_save_LIBS=$LIBS
20696LIBS="-lgthread-2.0  $LIBS"
20697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20698/* end confdefs.h.  */
20699
20700/* Override any GCC internal prototype to avoid an error.
20701   Use char because int might match the return type of a GCC
20702   builtin and then its argument prototype would still apply.  */
20703#ifdef __cplusplus
20704extern "C"
20705#endif
20706char g_thread_init ();
20707int
20708main ()
20709{
20710return g_thread_init ();
20711  ;
20712  return 0;
20713}
20714_ACEOF
20715if ac_fn_c_try_link "$LINENO"; then :
20716  ac_cv_lib_gthread_2_0_g_thread_init=yes
20717else
20718  ac_cv_lib_gthread_2_0_g_thread_init=no
20719fi
20720rm -f core conftest.err conftest.$ac_objext \
20721    conftest$ac_exeext conftest.$ac_ext
20722LIBS=$ac_check_lib_save_LIBS
20723fi
20724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
20725$as_echo "$ac_cv_lib_gthread_2_0_g_thread_init" >&6; }
20726if test "x$ac_cv_lib_gthread_2_0_g_thread_init" = xyes; then :
20727
20728	         unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
20729		 ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
20730if test "x$ac_cv_header_glib_h" = xyes; then :
20731  EX_CHECK_STATE=YES
20732fi
20733
20734
20735
20736fi
20737
20738          else
20739             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20740----------------------------------------------------------------------------
20741* I found a copy of pkgconfig, but there is no gthread-2.0.pc file around.
20742  You may want to set the PKG_CONFIG_PATH variable to point to its
20743  location.
20744----------------------------------------------------------------------------
20745			" >&5
20746$as_echo "$as_me: WARNING:
20747----------------------------------------------------------------------------
20748* I found a copy of pkgconfig, but there is no gthread-2.0.pc file around.
20749  You may want to set the PKG_CONFIG_PATH variable to point to its
20750  location.
20751----------------------------------------------------------------------------
20752			" >&2;}
20753           fi
20754     fi
20755  fi
20756
20757  if test ${EX_CHECK_STATE} = NO; then
20758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20759----------------------------------------------------------------------------
20760* I could not find a working copy of gthread-2.0. Check config.log for hints on why
20761  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20762  so that compiler and the linker can find libgthread-2.0 and its header files. If
20763  you have not installed gthread-2.0, you can get it either from its original home on
20764
20765     \"\"
20766
20767  You can find also find an archive copy on
20768
20769     https://oss.oetiker.ch/rrdtool/pub/libs
20770
20771  The last tested version of gthread-2.0 is x.x.x.
20772
20773       LIBS=$LIBS
20774   LDFLAGS=$LDFLAGS
20775  CPPFLAGS=$CPPFLAGS
20776
20777----------------------------------------------------------------------------
20778                " >&5
20779$as_echo "$as_me: WARNING:
20780----------------------------------------------------------------------------
20781* I could not find a working copy of gthread-2.0. Check config.log for hints on why
20782  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20783  so that compiler and the linker can find libgthread-2.0 and its header files. If
20784  you have not installed gthread-2.0, you can get it either from its original home on
20785
20786     \"\"
20787
20788  You can find also find an archive copy on
20789
20790     https://oss.oetiker.ch/rrdtool/pub/libs
20791
20792  The last tested version of gthread-2.0 is x.x.x.
20793
20794       LIBS=$LIBS
20795   LDFLAGS=$LDFLAGS
20796  CPPFLAGS=$CPPFLAGS
20797
20798----------------------------------------------------------------------------
20799                " >&2;}
20800       EX_CHECK_ALL_ERR=YES
20801       LIBS="${ex_check_save_LIBS}"
20802       CPPFLAGS="${ex_check_save_CPPFLAGS}"
20803       LDFLAGS="${ex_check_save_LDFLAGS}"
20804   fi
20805   ac_ext=c
20806ac_cpp='$CPP $CPPFLAGS'
20807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20809ac_compiler_gnu=$ac_cv_c_compiler_gnu
20810
20811
20812
20813                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20814$as_echo "yes" >&6; }
20815fi
20816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817fi
20818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_glibc_g_thread_init" >&5
20819$as_echo "$ac_cv_glibc_g_thread_init" >&6; }
20820
20821ac_fn_c_check_func "$LINENO" "g_regex_new" "ac_cv_func_g_regex_new"
20822if test "x$ac_cv_func_g_regex_new" = xyes; then :
20823
20824
20825$as_echo "#define HAVE_G_REGEX_NEW 1" >>confdefs.h
20826
20827
20828else
20829
20830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pcre is available to supply the missing regex support in glib" >&5
20831$as_echo_n "checking if pcre is available to supply the missing regex support in glib... " >&6; }
20832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking now ..." >&5
20833$as_echo "checking now ..." >&6; }
20834
20835 ac_ext=c
20836ac_cpp='$CPP $CPPFLAGS'
20837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20839ac_compiler_gnu=$ac_cv_c_compiler_gnu
20840
20841 EX_CHECK_STATE=NO
20842 ex_check_save_LIBS=${LIBS}
20843 ex_check_save_CPPFLAGS=${CPPFLAGS}
20844 ex_check_save_LDFLAGS=${LDFLAGS}
20845 if test "x""" != "x"; then
20846   CPPFLAGS="$CPPFLAGS -I"""
20847 fi
20848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
20849$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
20850if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
20851  $as_echo_n "(cached) " >&6
20852else
20853  ac_check_lib_save_LIBS=$LIBS
20854LIBS="-lpcre  $LIBS"
20855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856/* end confdefs.h.  */
20857
20858/* Override any GCC internal prototype to avoid an error.
20859   Use char because int might match the return type of a GCC
20860   builtin and then its argument prototype would still apply.  */
20861#ifdef __cplusplus
20862extern "C"
20863#endif
20864char pcre_compile ();
20865int
20866main ()
20867{
20868return pcre_compile ();
20869  ;
20870  return 0;
20871}
20872_ACEOF
20873if ac_fn_c_try_link "$LINENO"; then :
20874  ac_cv_lib_pcre_pcre_compile=yes
20875else
20876  ac_cv_lib_pcre_pcre_compile=no
20877fi
20878rm -f core conftest.err conftest.$ac_objext \
20879    conftest$ac_exeext conftest.$ac_ext
20880LIBS=$ac_check_lib_save_LIBS
20881fi
20882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
20883$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
20884if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
20885
20886    ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
20887if test "x$ac_cv_header_pcre_h" = xyes; then :
20888  LIBS="-lpcre ${LIBS}";EX_CHECK_STATE=YES
20889fi
20890
20891
20892fi
20893
20894 if test $EX_CHECK_STATE = NO; then
20895        for ac_prog in pkg-config
20896do
20897  # Extract the first word of "$ac_prog", so it can be a program name with args.
20898set dummy $ac_prog; ac_word=$2
20899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20900$as_echo_n "checking for $ac_word... " >&6; }
20901if ${ac_cv_prog_PKGCONFIG+:} false; then :
20902  $as_echo_n "(cached) " >&6
20903else
20904  if test -n "$PKGCONFIG"; then
20905  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
20906else
20907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20908for as_dir in $PATH
20909do
20910  IFS=$as_save_IFS
20911  test -z "$as_dir" && as_dir=.
20912    for ac_exec_ext in '' $ac_executable_extensions; do
20913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20914    ac_cv_prog_PKGCONFIG="$ac_prog"
20915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20916    break 2
20917  fi
20918done
20919  done
20920IFS=$as_save_IFS
20921
20922fi
20923fi
20924PKGCONFIG=$ac_cv_prog_PKGCONFIG
20925if test -n "$PKGCONFIG"; then
20926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20927$as_echo "$PKGCONFIG" >&6; }
20928else
20929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930$as_echo "no" >&6; }
20931fi
20932
20933
20934  test -n "$PKGCONFIG" && break
20935done
20936test -n "$PKGCONFIG" || PKGCONFIG="no"
20937
20938    if test "$PKGCONFIG" != "no"; then
20939          if $PKGCONFIG --exists pcre; then
20940             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pcre`
20941             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pcre`
20942             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pcre`
20943             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pcre`
20944	         	     unset ac_cv_lib_`echo pcre | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pcre_compile
20945             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
20946$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
20947if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
20948  $as_echo_n "(cached) " >&6
20949else
20950  ac_check_lib_save_LIBS=$LIBS
20951LIBS="-lpcre  $LIBS"
20952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953/* end confdefs.h.  */
20954
20955/* Override any GCC internal prototype to avoid an error.
20956   Use char because int might match the return type of a GCC
20957   builtin and then its argument prototype would still apply.  */
20958#ifdef __cplusplus
20959extern "C"
20960#endif
20961char pcre_compile ();
20962int
20963main ()
20964{
20965return pcre_compile ();
20966  ;
20967  return 0;
20968}
20969_ACEOF
20970if ac_fn_c_try_link "$LINENO"; then :
20971  ac_cv_lib_pcre_pcre_compile=yes
20972else
20973  ac_cv_lib_pcre_pcre_compile=no
20974fi
20975rm -f core conftest.err conftest.$ac_objext \
20976    conftest$ac_exeext conftest.$ac_ext
20977LIBS=$ac_check_lib_save_LIBS
20978fi
20979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
20980$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
20981if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
20982
20983	         unset ac_cv_header_`echo pcre.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
20984		 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
20985if test "x$ac_cv_header_pcre_h" = xyes; then :
20986  EX_CHECK_STATE=YES
20987fi
20988
20989
20990
20991fi
20992
20993          else
20994             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20995----------------------------------------------------------------------------
20996* I found a copy of pkgconfig, but there is no pcre.pc file around.
20997  You may want to set the PKG_CONFIG_PATH variable to point to its
20998  location.
20999----------------------------------------------------------------------------
21000			" >&5
21001$as_echo "$as_me: WARNING:
21002----------------------------------------------------------------------------
21003* I found a copy of pkgconfig, but there is no pcre.pc file around.
21004  You may want to set the PKG_CONFIG_PATH variable to point to its
21005  location.
21006----------------------------------------------------------------------------
21007			" >&2;}
21008           fi
21009     fi
21010  fi
21011
21012  if test ${EX_CHECK_STATE} = NO; then
21013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21014----------------------------------------------------------------------------
21015* I could not find a working copy of pcre. Check config.log for hints on why
21016  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21017  so that compiler and the linker can find libpcre and its header files. If
21018  you have not installed pcre, you can get it either from its original home on
21019
21020     get a newer glib and you will not need pcre at all
21021
21022  You can find also find an archive copy on
21023
21024     https://oss.oetiker.ch/rrdtool/pub/libs
21025
21026  The last tested version of pcre is x.x.x.
21027
21028       LIBS=$LIBS
21029   LDFLAGS=$LDFLAGS
21030  CPPFLAGS=$CPPFLAGS
21031
21032----------------------------------------------------------------------------
21033                " >&5
21034$as_echo "$as_me: WARNING:
21035----------------------------------------------------------------------------
21036* I could not find a working copy of pcre. Check config.log for hints on why
21037  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21038  so that compiler and the linker can find libpcre and its header files. If
21039  you have not installed pcre, you can get it either from its original home on
21040
21041     get a newer glib and you will not need pcre at all
21042
21043  You can find also find an archive copy on
21044
21045     https://oss.oetiker.ch/rrdtool/pub/libs
21046
21047  The last tested version of pcre is x.x.x.
21048
21049       LIBS=$LIBS
21050   LDFLAGS=$LDFLAGS
21051  CPPFLAGS=$CPPFLAGS
21052
21053----------------------------------------------------------------------------
21054                " >&2;}
21055       EX_CHECK_ALL_ERR=YES
21056       LIBS="${ex_check_save_LIBS}"
21057       CPPFLAGS="${ex_check_save_CPPFLAGS}"
21058       LDFLAGS="${ex_check_save_LDFLAGS}"
21059   fi
21060   ac_ext=c
21061ac_cpp='$CPP $CPPFLAGS'
21062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064ac_compiler_gnu=$ac_cv_c_compiler_gnu
21065
21066
21067
21068   ac_fn_c_check_func "$LINENO" "pcre_compile" "ac_cv_func_pcre_compile"
21069if test "x$ac_cv_func_pcre_compile" = xyes; then :
21070
21071
21072$as_echo "#define HAVE_PCRE_COMPILE 1" >>confdefs.h
21073
21074
21075else
21076
21077        as_fn_error $? "you need either glib with g_regex support or libpcre to compile rrdtool." "$LINENO" 5
21078
21079fi
21080
21081
21082fi
21083
21084
21085
21086
21087CORE_LIBS="$LIBS"
21088
21089if test $enable_rrd_graph != no; then
21090
21091 ac_ext=c
21092ac_cpp='$CPP $CPPFLAGS'
21093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095ac_compiler_gnu=$ac_cv_c_compiler_gnu
21096
21097 EX_CHECK_STATE=NO
21098 ex_check_save_LIBS=${LIBS}
21099 ex_check_save_CPPFLAGS=${CPPFLAGS}
21100 ex_check_save_LDFLAGS=${LDFLAGS}
21101 if test "x""" != "x"; then
21102   CPPFLAGS="$CPPFLAGS -I"""
21103 fi
21104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_access_version_number in -lpng" >&5
21105$as_echo_n "checking for png_access_version_number in -lpng... " >&6; }
21106if ${ac_cv_lib_png_png_access_version_number+:} false; then :
21107  $as_echo_n "(cached) " >&6
21108else
21109  ac_check_lib_save_LIBS=$LIBS
21110LIBS="-lpng  $LIBS"
21111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21112/* end confdefs.h.  */
21113
21114/* Override any GCC internal prototype to avoid an error.
21115   Use char because int might match the return type of a GCC
21116   builtin and then its argument prototype would still apply.  */
21117#ifdef __cplusplus
21118extern "C"
21119#endif
21120char png_access_version_number ();
21121int
21122main ()
21123{
21124return png_access_version_number ();
21125  ;
21126  return 0;
21127}
21128_ACEOF
21129if ac_fn_c_try_link "$LINENO"; then :
21130  ac_cv_lib_png_png_access_version_number=yes
21131else
21132  ac_cv_lib_png_png_access_version_number=no
21133fi
21134rm -f core conftest.err conftest.$ac_objext \
21135    conftest$ac_exeext conftest.$ac_ext
21136LIBS=$ac_check_lib_save_LIBS
21137fi
21138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_access_version_number" >&5
21139$as_echo "$ac_cv_lib_png_png_access_version_number" >&6; }
21140if test "x$ac_cv_lib_png_png_access_version_number" = xyes; then :
21141
21142    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
21143if test "x$ac_cv_header_png_h" = xyes; then :
21144  LIBS="-lpng ${LIBS}";EX_CHECK_STATE=YES
21145fi
21146
21147
21148fi
21149
21150 if test $EX_CHECK_STATE = NO; then
21151        for ac_prog in pkg-config
21152do
21153  # Extract the first word of "$ac_prog", so it can be a program name with args.
21154set dummy $ac_prog; ac_word=$2
21155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21156$as_echo_n "checking for $ac_word... " >&6; }
21157if ${ac_cv_prog_PKGCONFIG+:} false; then :
21158  $as_echo_n "(cached) " >&6
21159else
21160  if test -n "$PKGCONFIG"; then
21161  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21162else
21163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21164for as_dir in $PATH
21165do
21166  IFS=$as_save_IFS
21167  test -z "$as_dir" && as_dir=.
21168    for ac_exec_ext in '' $ac_executable_extensions; do
21169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21170    ac_cv_prog_PKGCONFIG="$ac_prog"
21171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21172    break 2
21173  fi
21174done
21175  done
21176IFS=$as_save_IFS
21177
21178fi
21179fi
21180PKGCONFIG=$ac_cv_prog_PKGCONFIG
21181if test -n "$PKGCONFIG"; then
21182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21183$as_echo "$PKGCONFIG" >&6; }
21184else
21185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21186$as_echo "no" >&6; }
21187fi
21188
21189
21190  test -n "$PKGCONFIG" && break
21191done
21192test -n "$PKGCONFIG" || PKGCONFIG="no"
21193
21194    if test "$PKGCONFIG" != "no"; then
21195          if $PKGCONFIG --exists libpng; then
21196             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libpng`
21197             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libpng`
21198             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libpng`
21199             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libpng`
21200	         	     unset ac_cv_lib_`echo png | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_png_access_version_number
21201             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_access_version_number in -lpng" >&5
21202$as_echo_n "checking for png_access_version_number in -lpng... " >&6; }
21203if ${ac_cv_lib_png_png_access_version_number+:} false; then :
21204  $as_echo_n "(cached) " >&6
21205else
21206  ac_check_lib_save_LIBS=$LIBS
21207LIBS="-lpng  $LIBS"
21208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209/* end confdefs.h.  */
21210
21211/* Override any GCC internal prototype to avoid an error.
21212   Use char because int might match the return type of a GCC
21213   builtin and then its argument prototype would still apply.  */
21214#ifdef __cplusplus
21215extern "C"
21216#endif
21217char png_access_version_number ();
21218int
21219main ()
21220{
21221return png_access_version_number ();
21222  ;
21223  return 0;
21224}
21225_ACEOF
21226if ac_fn_c_try_link "$LINENO"; then :
21227  ac_cv_lib_png_png_access_version_number=yes
21228else
21229  ac_cv_lib_png_png_access_version_number=no
21230fi
21231rm -f core conftest.err conftest.$ac_objext \
21232    conftest$ac_exeext conftest.$ac_ext
21233LIBS=$ac_check_lib_save_LIBS
21234fi
21235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_access_version_number" >&5
21236$as_echo "$ac_cv_lib_png_png_access_version_number" >&6; }
21237if test "x$ac_cv_lib_png_png_access_version_number" = xyes; then :
21238
21239	         unset ac_cv_header_`echo png.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
21240		 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
21241if test "x$ac_cv_header_png_h" = xyes; then :
21242  EX_CHECK_STATE=YES
21243fi
21244
21245
21246
21247fi
21248
21249          else
21250             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21251----------------------------------------------------------------------------
21252* I found a copy of pkgconfig, but there is no libpng.pc file around.
21253  You may want to set the PKG_CONFIG_PATH variable to point to its
21254  location.
21255----------------------------------------------------------------------------
21256			" >&5
21257$as_echo "$as_me: WARNING:
21258----------------------------------------------------------------------------
21259* I found a copy of pkgconfig, but there is no libpng.pc file around.
21260  You may want to set the PKG_CONFIG_PATH variable to point to its
21261  location.
21262----------------------------------------------------------------------------
21263			" >&2;}
21264           fi
21265     fi
21266  fi
21267
21268  if test ${EX_CHECK_STATE} = NO; then
21269     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21270----------------------------------------------------------------------------
21271* I could not find a working copy of libpng. Check config.log for hints on why
21272  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21273  so that compiler and the linker can find libpng and its header files. If
21274  you have not installed libpng, you can get it either from its original home on
21275
21276     ftp://ftp.simplesystems.org/pub/libpng/png/src/
21277
21278  You can find also find an archive copy on
21279
21280     https://oss.oetiker.ch/rrdtool/pub/libs
21281
21282  The last tested version of libpng is 1.4.8.
21283
21284       LIBS=$LIBS
21285   LDFLAGS=$LDFLAGS
21286  CPPFLAGS=$CPPFLAGS
21287
21288----------------------------------------------------------------------------
21289                " >&5
21290$as_echo "$as_me: WARNING:
21291----------------------------------------------------------------------------
21292* I could not find a working copy of libpng. Check config.log for hints on why
21293  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21294  so that compiler and the linker can find libpng and its header files. If
21295  you have not installed libpng, you can get it either from its original home on
21296
21297     ftp://ftp.simplesystems.org/pub/libpng/png/src/
21298
21299  You can find also find an archive copy on
21300
21301     https://oss.oetiker.ch/rrdtool/pub/libs
21302
21303  The last tested version of libpng is 1.4.8.
21304
21305       LIBS=$LIBS
21306   LDFLAGS=$LDFLAGS
21307  CPPFLAGS=$CPPFLAGS
21308
21309----------------------------------------------------------------------------
21310                " >&2;}
21311       EX_CHECK_ALL_ERR=YES
21312       LIBS="${ex_check_save_LIBS}"
21313       CPPFLAGS="${ex_check_save_CPPFLAGS}"
21314       LDFLAGS="${ex_check_save_LDFLAGS}"
21315   fi
21316   ac_ext=c
21317ac_cpp='$CPP $CPPFLAGS'
21318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320ac_compiler_gnu=$ac_cv_c_compiler_gnu
21321
21322
21323
21324
21325 ac_ext=c
21326ac_cpp='$CPP $CPPFLAGS'
21327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329ac_compiler_gnu=$ac_cv_c_compiler_gnu
21330
21331 EX_CHECK_STATE=NO
21332 ex_check_save_LIBS=${LIBS}
21333 ex_check_save_CPPFLAGS=${CPPFLAGS}
21334 ex_check_save_LDFLAGS=${LDFLAGS}
21335 if test "x""" != "x"; then
21336   CPPFLAGS="$CPPFLAGS -I"""
21337 fi
21338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_cairo_context_set_font_options in -lpangocairo-1.0" >&5
21339$as_echo_n "checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... " >&6; }
21340if ${ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options+:} false; then :
21341  $as_echo_n "(cached) " >&6
21342else
21343  ac_check_lib_save_LIBS=$LIBS
21344LIBS="-lpangocairo-1.0  $LIBS"
21345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21346/* end confdefs.h.  */
21347
21348/* Override any GCC internal prototype to avoid an error.
21349   Use char because int might match the return type of a GCC
21350   builtin and then its argument prototype would still apply.  */
21351#ifdef __cplusplus
21352extern "C"
21353#endif
21354char pango_cairo_context_set_font_options ();
21355int
21356main ()
21357{
21358return pango_cairo_context_set_font_options ();
21359  ;
21360  return 0;
21361}
21362_ACEOF
21363if ac_fn_c_try_link "$LINENO"; then :
21364  ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=yes
21365else
21366  ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=no
21367fi
21368rm -f core conftest.err conftest.$ac_objext \
21369    conftest$ac_exeext conftest.$ac_ext
21370LIBS=$ac_check_lib_save_LIBS
21371fi
21372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&5
21373$as_echo "$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&6; }
21374if test "x$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" = xyes; then :
21375
21376    ac_fn_c_check_header_mongrel "$LINENO" "pango/pango.h" "ac_cv_header_pango_pango_h" "$ac_includes_default"
21377if test "x$ac_cv_header_pango_pango_h" = xyes; then :
21378  LIBS="-lpangocairo-1.0 ${LIBS}";EX_CHECK_STATE=YES
21379fi
21380
21381
21382fi
21383
21384 if test $EX_CHECK_STATE = NO; then
21385        for ac_prog in pkg-config
21386do
21387  # Extract the first word of "$ac_prog", so it can be a program name with args.
21388set dummy $ac_prog; ac_word=$2
21389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21390$as_echo_n "checking for $ac_word... " >&6; }
21391if ${ac_cv_prog_PKGCONFIG+:} false; then :
21392  $as_echo_n "(cached) " >&6
21393else
21394  if test -n "$PKGCONFIG"; then
21395  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21396else
21397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21398for as_dir in $PATH
21399do
21400  IFS=$as_save_IFS
21401  test -z "$as_dir" && as_dir=.
21402    for ac_exec_ext in '' $ac_executable_extensions; do
21403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21404    ac_cv_prog_PKGCONFIG="$ac_prog"
21405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21406    break 2
21407  fi
21408done
21409  done
21410IFS=$as_save_IFS
21411
21412fi
21413fi
21414PKGCONFIG=$ac_cv_prog_PKGCONFIG
21415if test -n "$PKGCONFIG"; then
21416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21417$as_echo "$PKGCONFIG" >&6; }
21418else
21419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21420$as_echo "no" >&6; }
21421fi
21422
21423
21424  test -n "$PKGCONFIG" && break
21425done
21426test -n "$PKGCONFIG" || PKGCONFIG="no"
21427
21428    if test "$PKGCONFIG" != "no"; then
21429          if $PKGCONFIG --exists pangocairo; then
21430             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
21431             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
21432             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
21433             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
21434	         	     unset ac_cv_lib_`echo pangocairo-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
21435             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_cairo_context_set_font_options in -lpangocairo-1.0" >&5
21436$as_echo_n "checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... " >&6; }
21437if ${ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options+:} false; then :
21438  $as_echo_n "(cached) " >&6
21439else
21440  ac_check_lib_save_LIBS=$LIBS
21441LIBS="-lpangocairo-1.0  $LIBS"
21442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443/* end confdefs.h.  */
21444
21445/* Override any GCC internal prototype to avoid an error.
21446   Use char because int might match the return type of a GCC
21447   builtin and then its argument prototype would still apply.  */
21448#ifdef __cplusplus
21449extern "C"
21450#endif
21451char pango_cairo_context_set_font_options ();
21452int
21453main ()
21454{
21455return pango_cairo_context_set_font_options ();
21456  ;
21457  return 0;
21458}
21459_ACEOF
21460if ac_fn_c_try_link "$LINENO"; then :
21461  ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=yes
21462else
21463  ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=no
21464fi
21465rm -f core conftest.err conftest.$ac_objext \
21466    conftest$ac_exeext conftest.$ac_ext
21467LIBS=$ac_check_lib_save_LIBS
21468fi
21469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&5
21470$as_echo "$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&6; }
21471if test "x$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" = xyes; then :
21472
21473	         unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
21474		 ac_fn_c_check_header_mongrel "$LINENO" "pango/pango.h" "ac_cv_header_pango_pango_h" "$ac_includes_default"
21475if test "x$ac_cv_header_pango_pango_h" = xyes; then :
21476  EX_CHECK_STATE=YES
21477fi
21478
21479
21480
21481fi
21482
21483          else
21484             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21485----------------------------------------------------------------------------
21486* I found a copy of pkgconfig, but there is no pangocairo.pc file around.
21487  You may want to set the PKG_CONFIG_PATH variable to point to its
21488  location.
21489----------------------------------------------------------------------------
21490			" >&5
21491$as_echo "$as_me: WARNING:
21492----------------------------------------------------------------------------
21493* I found a copy of pkgconfig, but there is no pangocairo.pc file around.
21494  You may want to set the PKG_CONFIG_PATH variable to point to its
21495  location.
21496----------------------------------------------------------------------------
21497			" >&2;}
21498           fi
21499     fi
21500  fi
21501
21502  if test ${EX_CHECK_STATE} = NO; then
21503     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21504----------------------------------------------------------------------------
21505* I could not find a working copy of pangocairo. Check config.log for hints on why
21506  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21507  so that compiler and the linker can find libpangocairo-1.0 and its header files. If
21508  you have not installed pangocairo, you can get it either from its original home on
21509
21510     http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
21511
21512  You can find also find an archive copy on
21513
21514     https://oss.oetiker.ch/rrdtool/pub/libs
21515
21516  The last tested version of pangocairo is 1.28.4.
21517
21518       LIBS=$LIBS
21519   LDFLAGS=$LDFLAGS
21520  CPPFLAGS=$CPPFLAGS
21521
21522----------------------------------------------------------------------------
21523                " >&5
21524$as_echo "$as_me: WARNING:
21525----------------------------------------------------------------------------
21526* I could not find a working copy of pangocairo. Check config.log for hints on why
21527  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21528  so that compiler and the linker can find libpangocairo-1.0 and its header files. If
21529  you have not installed pangocairo, you can get it either from its original home on
21530
21531     http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
21532
21533  You can find also find an archive copy on
21534
21535     https://oss.oetiker.ch/rrdtool/pub/libs
21536
21537  The last tested version of pangocairo is 1.28.4.
21538
21539       LIBS=$LIBS
21540   LDFLAGS=$LDFLAGS
21541  CPPFLAGS=$CPPFLAGS
21542
21543----------------------------------------------------------------------------
21544                " >&2;}
21545       EX_CHECK_ALL_ERR=YES
21546       LIBS="${ex_check_save_LIBS}"
21547       CPPFLAGS="${ex_check_save_CPPFLAGS}"
21548       LDFLAGS="${ex_check_save_LDFLAGS}"
21549   fi
21550   ac_ext=c
21551ac_cpp='$CPP $CPPFLAGS'
21552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21554ac_compiler_gnu=$ac_cv_c_compiler_gnu
21555
21556
21557
21558
21559 ac_ext=c
21560ac_cpp='$CPP $CPPFLAGS'
21561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21563ac_compiler_gnu=$ac_cv_c_compiler_gnu
21564
21565 EX_CHECK_STATE=NO
21566 ex_check_save_LIBS=${LIBS}
21567 ex_check_save_CPPFLAGS=${CPPFLAGS}
21568 ex_check_save_LDFLAGS=${LDFLAGS}
21569 if test "x""" != "x"; then
21570   CPPFLAGS="$CPPFLAGS -I"""
21571 fi
21572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_object_unref in -lgobject-2.0" >&5
21573$as_echo_n "checking for g_object_unref in -lgobject-2.0... " >&6; }
21574if ${ac_cv_lib_gobject_2_0_g_object_unref+:} false; then :
21575  $as_echo_n "(cached) " >&6
21576else
21577  ac_check_lib_save_LIBS=$LIBS
21578LIBS="-lgobject-2.0  $LIBS"
21579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580/* end confdefs.h.  */
21581
21582/* Override any GCC internal prototype to avoid an error.
21583   Use char because int might match the return type of a GCC
21584   builtin and then its argument prototype would still apply.  */
21585#ifdef __cplusplus
21586extern "C"
21587#endif
21588char g_object_unref ();
21589int
21590main ()
21591{
21592return g_object_unref ();
21593  ;
21594  return 0;
21595}
21596_ACEOF
21597if ac_fn_c_try_link "$LINENO"; then :
21598  ac_cv_lib_gobject_2_0_g_object_unref=yes
21599else
21600  ac_cv_lib_gobject_2_0_g_object_unref=no
21601fi
21602rm -f core conftest.err conftest.$ac_objext \
21603    conftest$ac_exeext conftest.$ac_ext
21604LIBS=$ac_check_lib_save_LIBS
21605fi
21606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gobject_2_0_g_object_unref" >&5
21607$as_echo "$ac_cv_lib_gobject_2_0_g_object_unref" >&6; }
21608if test "x$ac_cv_lib_gobject_2_0_g_object_unref" = xyes; then :
21609
21610    ac_fn_c_check_header_mongrel "$LINENO" "glib-object.h" "ac_cv_header_glib_object_h" "$ac_includes_default"
21611if test "x$ac_cv_header_glib_object_h" = xyes; then :
21612  LIBS="-lgobject-2.0 ${LIBS}";EX_CHECK_STATE=YES
21613fi
21614
21615
21616fi
21617
21618 if test $EX_CHECK_STATE = NO; then
21619        for ac_prog in pkg-config
21620do
21621  # Extract the first word of "$ac_prog", so it can be a program name with args.
21622set dummy $ac_prog; ac_word=$2
21623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21624$as_echo_n "checking for $ac_word... " >&6; }
21625if ${ac_cv_prog_PKGCONFIG+:} false; then :
21626  $as_echo_n "(cached) " >&6
21627else
21628  if test -n "$PKGCONFIG"; then
21629  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21630else
21631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632for as_dir in $PATH
21633do
21634  IFS=$as_save_IFS
21635  test -z "$as_dir" && as_dir=.
21636    for ac_exec_ext in '' $ac_executable_extensions; do
21637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21638    ac_cv_prog_PKGCONFIG="$ac_prog"
21639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640    break 2
21641  fi
21642done
21643  done
21644IFS=$as_save_IFS
21645
21646fi
21647fi
21648PKGCONFIG=$ac_cv_prog_PKGCONFIG
21649if test -n "$PKGCONFIG"; then
21650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21651$as_echo "$PKGCONFIG" >&6; }
21652else
21653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21654$as_echo "no" >&6; }
21655fi
21656
21657
21658  test -n "$PKGCONFIG" && break
21659done
21660test -n "$PKGCONFIG" || PKGCONFIG="no"
21661
21662    if test "$PKGCONFIG" != "no"; then
21663          if $PKGCONFIG --exists gobject-2.0; then
21664             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags gobject-2.0`
21665             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L gobject-2.0`
21666             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other gobject-2.0`
21667             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l gobject-2.0`
21668	         	     unset ac_cv_lib_`echo gobject-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_g_object_unref
21669             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_object_unref in -lgobject-2.0" >&5
21670$as_echo_n "checking for g_object_unref in -lgobject-2.0... " >&6; }
21671if ${ac_cv_lib_gobject_2_0_g_object_unref+:} false; then :
21672  $as_echo_n "(cached) " >&6
21673else
21674  ac_check_lib_save_LIBS=$LIBS
21675LIBS="-lgobject-2.0  $LIBS"
21676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677/* end confdefs.h.  */
21678
21679/* Override any GCC internal prototype to avoid an error.
21680   Use char because int might match the return type of a GCC
21681   builtin and then its argument prototype would still apply.  */
21682#ifdef __cplusplus
21683extern "C"
21684#endif
21685char g_object_unref ();
21686int
21687main ()
21688{
21689return g_object_unref ();
21690  ;
21691  return 0;
21692}
21693_ACEOF
21694if ac_fn_c_try_link "$LINENO"; then :
21695  ac_cv_lib_gobject_2_0_g_object_unref=yes
21696else
21697  ac_cv_lib_gobject_2_0_g_object_unref=no
21698fi
21699rm -f core conftest.err conftest.$ac_objext \
21700    conftest$ac_exeext conftest.$ac_ext
21701LIBS=$ac_check_lib_save_LIBS
21702fi
21703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gobject_2_0_g_object_unref" >&5
21704$as_echo "$ac_cv_lib_gobject_2_0_g_object_unref" >&6; }
21705if test "x$ac_cv_lib_gobject_2_0_g_object_unref" = xyes; then :
21706
21707	         unset ac_cv_header_`echo glib-object.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
21708		 ac_fn_c_check_header_mongrel "$LINENO" "glib-object.h" "ac_cv_header_glib_object_h" "$ac_includes_default"
21709if test "x$ac_cv_header_glib_object_h" = xyes; then :
21710  EX_CHECK_STATE=YES
21711fi
21712
21713
21714
21715fi
21716
21717          else
21718             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21719----------------------------------------------------------------------------
21720* I found a copy of pkgconfig, but there is no gobject-2.0.pc file around.
21721  You may want to set the PKG_CONFIG_PATH variable to point to its
21722  location.
21723----------------------------------------------------------------------------
21724			" >&5
21725$as_echo "$as_me: WARNING:
21726----------------------------------------------------------------------------
21727* I found a copy of pkgconfig, but there is no gobject-2.0.pc file around.
21728  You may want to set the PKG_CONFIG_PATH variable to point to its
21729  location.
21730----------------------------------------------------------------------------
21731			" >&2;}
21732           fi
21733     fi
21734  fi
21735
21736  if test ${EX_CHECK_STATE} = NO; then
21737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21738----------------------------------------------------------------------------
21739* I could not find a working copy of gobject-2.0. Check config.log for hints on why
21740  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21741  so that compiler and the linker can find libgobject-2.0 and its header files. If
21742  you have not installed gobject-2.0, you can get it either from its original home on
21743
21744     https://download.gnome.org/sources/glib/2.58/
21745
21746  You can find also find an archive copy on
21747
21748     https://oss.oetiker.ch/rrdtool/pub/libs
21749
21750  The last tested version of gobject-2.0 is 2.58.1.
21751
21752       LIBS=$LIBS
21753   LDFLAGS=$LDFLAGS
21754  CPPFLAGS=$CPPFLAGS
21755
21756----------------------------------------------------------------------------
21757                " >&5
21758$as_echo "$as_me: WARNING:
21759----------------------------------------------------------------------------
21760* I could not find a working copy of gobject-2.0. Check config.log for hints on why
21761  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21762  so that compiler and the linker can find libgobject-2.0 and its header files. If
21763  you have not installed gobject-2.0, you can get it either from its original home on
21764
21765     https://download.gnome.org/sources/glib/2.58/
21766
21767  You can find also find an archive copy on
21768
21769     https://oss.oetiker.ch/rrdtool/pub/libs
21770
21771  The last tested version of gobject-2.0 is 2.58.1.
21772
21773       LIBS=$LIBS
21774   LDFLAGS=$LDFLAGS
21775  CPPFLAGS=$CPPFLAGS
21776
21777----------------------------------------------------------------------------
21778                " >&2;}
21779       EX_CHECK_ALL_ERR=YES
21780       LIBS="${ex_check_save_LIBS}"
21781       CPPFLAGS="${ex_check_save_CPPFLAGS}"
21782       LDFLAGS="${ex_check_save_LDFLAGS}"
21783   fi
21784   ac_ext=c
21785ac_cpp='$CPP $CPPFLAGS'
21786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21788ac_compiler_gnu=$ac_cv_c_compiler_gnu
21789
21790
21791
21792
21793for ac_func in pango_font_map_create_context
21794do :
21795  ac_fn_c_check_func "$LINENO" "pango_font_map_create_context" "ac_cv_func_pango_font_map_create_context"
21796if test "x$ac_cv_func_pango_font_map_create_context" = xyes; then :
21797  cat >>confdefs.h <<_ACEOF
21798#define HAVE_PANGO_FONT_MAP_CREATE_CONTEXT 1
21799_ACEOF
21800
21801fi
21802done
21803
21804fi
21805
21806if test $enable_rrd_restore != no; then
21807
21808 ac_ext=c
21809ac_cpp='$CPP $CPPFLAGS'
21810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813
21814 EX_CHECK_STATE=NO
21815 ex_check_save_LIBS=${LIBS}
21816 ex_check_save_CPPFLAGS=${CPPFLAGS}
21817 ex_check_save_LDFLAGS=${LDFLAGS}
21818 if test "x""" != "x"; then
21819   CPPFLAGS="$CPPFLAGS -I"""
21820 fi
21821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
21822$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
21823if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
21824  $as_echo_n "(cached) " >&6
21825else
21826  ac_check_lib_save_LIBS=$LIBS
21827LIBS="-lxml2  $LIBS"
21828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829/* end confdefs.h.  */
21830
21831/* Override any GCC internal prototype to avoid an error.
21832   Use char because int might match the return type of a GCC
21833   builtin and then its argument prototype would still apply.  */
21834#ifdef __cplusplus
21835extern "C"
21836#endif
21837char xmlParseFile ();
21838int
21839main ()
21840{
21841return xmlParseFile ();
21842  ;
21843  return 0;
21844}
21845_ACEOF
21846if ac_fn_c_try_link "$LINENO"; then :
21847  ac_cv_lib_xml2_xmlParseFile=yes
21848else
21849  ac_cv_lib_xml2_xmlParseFile=no
21850fi
21851rm -f core conftest.err conftest.$ac_objext \
21852    conftest$ac_exeext conftest.$ac_ext
21853LIBS=$ac_check_lib_save_LIBS
21854fi
21855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
21856$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
21857if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
21858
21859    ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
21860if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
21861  LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
21862fi
21863
21864
21865fi
21866
21867 if test $EX_CHECK_STATE = NO; then
21868        for ac_prog in pkg-config
21869do
21870  # Extract the first word of "$ac_prog", so it can be a program name with args.
21871set dummy $ac_prog; ac_word=$2
21872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21873$as_echo_n "checking for $ac_word... " >&6; }
21874if ${ac_cv_prog_PKGCONFIG+:} false; then :
21875  $as_echo_n "(cached) " >&6
21876else
21877  if test -n "$PKGCONFIG"; then
21878  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21879else
21880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21881for as_dir in $PATH
21882do
21883  IFS=$as_save_IFS
21884  test -z "$as_dir" && as_dir=.
21885    for ac_exec_ext in '' $ac_executable_extensions; do
21886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21887    ac_cv_prog_PKGCONFIG="$ac_prog"
21888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21889    break 2
21890  fi
21891done
21892  done
21893IFS=$as_save_IFS
21894
21895fi
21896fi
21897PKGCONFIG=$ac_cv_prog_PKGCONFIG
21898if test -n "$PKGCONFIG"; then
21899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21900$as_echo "$PKGCONFIG" >&6; }
21901else
21902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21903$as_echo "no" >&6; }
21904fi
21905
21906
21907  test -n "$PKGCONFIG" && break
21908done
21909test -n "$PKGCONFIG" || PKGCONFIG="no"
21910
21911    if test "$PKGCONFIG" != "no"; then
21912          if $PKGCONFIG --exists libxml-2.0; then
21913             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
21914             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
21915             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
21916             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
21917	         	     unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
21918             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
21919$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
21920if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
21921  $as_echo_n "(cached) " >&6
21922else
21923  ac_check_lib_save_LIBS=$LIBS
21924LIBS="-lxml2  $LIBS"
21925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21926/* end confdefs.h.  */
21927
21928/* Override any GCC internal prototype to avoid an error.
21929   Use char because int might match the return type of a GCC
21930   builtin and then its argument prototype would still apply.  */
21931#ifdef __cplusplus
21932extern "C"
21933#endif
21934char xmlParseFile ();
21935int
21936main ()
21937{
21938return xmlParseFile ();
21939  ;
21940  return 0;
21941}
21942_ACEOF
21943if ac_fn_c_try_link "$LINENO"; then :
21944  ac_cv_lib_xml2_xmlParseFile=yes
21945else
21946  ac_cv_lib_xml2_xmlParseFile=no
21947fi
21948rm -f core conftest.err conftest.$ac_objext \
21949    conftest$ac_exeext conftest.$ac_ext
21950LIBS=$ac_check_lib_save_LIBS
21951fi
21952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
21953$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
21954if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
21955
21956	         unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
21957		 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
21958if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
21959  EX_CHECK_STATE=YES
21960fi
21961
21962
21963
21964fi
21965
21966          else
21967             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21968----------------------------------------------------------------------------
21969* I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
21970  You may want to set the PKG_CONFIG_PATH variable to point to its
21971  location.
21972----------------------------------------------------------------------------
21973			" >&5
21974$as_echo "$as_me: WARNING:
21975----------------------------------------------------------------------------
21976* I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
21977  You may want to set the PKG_CONFIG_PATH variable to point to its
21978  location.
21979----------------------------------------------------------------------------
21980			" >&2;}
21981           fi
21982     fi
21983  fi
21984
21985  if test ${EX_CHECK_STATE} = NO; then
21986     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21987----------------------------------------------------------------------------
21988* I could not find a working copy of libxml-2.0. Check config.log for hints on why
21989  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
21990  so that compiler and the linker can find libxml2 and its header files. If
21991  you have not installed libxml-2.0, you can get it either from its original home on
21992
21993     http://xmlsoft.org/downloads.html
21994
21995  You can find also find an archive copy on
21996
21997     https://oss.oetiker.ch/rrdtool/pub/libs
21998
21999  The last tested version of libxml-2.0 is 2.7.8.
22000
22001       LIBS=$LIBS
22002   LDFLAGS=$LDFLAGS
22003  CPPFLAGS=$CPPFLAGS
22004
22005----------------------------------------------------------------------------
22006                " >&5
22007$as_echo "$as_me: WARNING:
22008----------------------------------------------------------------------------
22009* I could not find a working copy of libxml-2.0. Check config.log for hints on why
22010  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
22011  so that compiler and the linker can find libxml2 and its header files. If
22012  you have not installed libxml-2.0, you can get it either from its original home on
22013
22014     http://xmlsoft.org/downloads.html
22015
22016  You can find also find an archive copy on
22017
22018     https://oss.oetiker.ch/rrdtool/pub/libs
22019
22020  The last tested version of libxml-2.0 is 2.7.8.
22021
22022       LIBS=$LIBS
22023   LDFLAGS=$LDFLAGS
22024  CPPFLAGS=$CPPFLAGS
22025
22026----------------------------------------------------------------------------
22027                " >&2;}
22028       EX_CHECK_ALL_ERR=YES
22029       LIBS="${ex_check_save_LIBS}"
22030       CPPFLAGS="${ex_check_save_CPPFLAGS}"
22031       LDFLAGS="${ex_check_save_LDFLAGS}"
22032   fi
22033   ac_ext=c
22034ac_cpp='$CPP $CPPFLAGS'
22035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22037ac_compiler_gnu=$ac_cv_c_compiler_gnu
22038
22039
22040
22041fi
22042
22043if test "$EX_CHECK_ALL_ERR" = "YES"; then
22044  as_fn_error $? "Please fix the library issues listed above and try again." "$LINENO" 5
22045fi
22046
22047ALL_LIBS="$LIBS"
22048LIBS=
22049
22050
22051
22052
22053
22054case $TERM in
22055       #   for the most important terminal types we directly know the sequences
22056       xterm|xterm*|vt220|vt220*)
22057               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
22058               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
22059       ;;
22060       vt100|vt100*|cygwin)
22061               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
22062               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
22063       ;;
22064       *)
22065               T_MD=''
22066               T_ME=''
22067       ;;
22068esac
22069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
22070$as_echo "" >&6; }
22071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
22072$as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
22073
22074
22075 if test "x$enable_rpath" = "xyes"; then
22076  ENABLE_RPATH_TRUE=
22077  ENABLE_RPATH_FALSE='#'
22078else
22079  ENABLE_RPATH_TRUE='#'
22080  ENABLE_RPATH_FALSE=
22081fi
22082
22083
22084PATH=$PATH:/usr/perl5/bin
22085export PATH
22086# Extract the first word of "perl", so it can be a program name with args.
22087set dummy perl; ac_word=$2
22088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22089$as_echo_n "checking for $ac_word... " >&6; }
22090if ${ac_cv_path_PERL+:} false; then :
22091  $as_echo_n "(cached) " >&6
22092else
22093  case $PERL in
22094  [\\/]* | ?:[\\/]*)
22095  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22096  ;;
22097  *)
22098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22099for as_dir in $PATH
22100do
22101  IFS=$as_save_IFS
22102  test -z "$as_dir" && as_dir=.
22103    for ac_exec_ext in '' $ac_executable_extensions; do
22104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22105    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22107    break 2
22108  fi
22109done
22110  done
22111IFS=$as_save_IFS
22112
22113  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
22114  ;;
22115esac
22116fi
22117PERL=$ac_cv_path_PERL
22118if test -n "$PERL"; then
22119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22120$as_echo "$PERL" >&6; }
22121else
22122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22123$as_echo "no" >&6; }
22124fi
22125
22126
22127# Extract the first word of "pod2man", so it can be a program name with args.
22128set dummy pod2man; ac_word=$2
22129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22130$as_echo_n "checking for $ac_word... " >&6; }
22131if ${ac_cv_path_POD2MAN+:} false; then :
22132  $as_echo_n "(cached) " >&6
22133else
22134  case $POD2MAN in
22135  [\\/]* | ?:[\\/]*)
22136  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
22137  ;;
22138  *)
22139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22140for as_dir in $PATH
22141do
22142  IFS=$as_save_IFS
22143  test -z "$as_dir" && as_dir=.
22144    for ac_exec_ext in '' $ac_executable_extensions; do
22145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22146    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
22147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22148    break 2
22149  fi
22150done
22151  done
22152IFS=$as_save_IFS
22153
22154  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
22155  ;;
22156esac
22157fi
22158POD2MAN=$ac_cv_path_POD2MAN
22159if test -n "$POD2MAN"; then
22160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
22161$as_echo "$POD2MAN" >&6; }
22162else
22163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22164$as_echo "no" >&6; }
22165fi
22166
22167
22168# Extract the first word of "pod2html", so it can be a program name with args.
22169set dummy pod2html; ac_word=$2
22170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22171$as_echo_n "checking for $ac_word... " >&6; }
22172if ${ac_cv_path_POD2HTML+:} false; then :
22173  $as_echo_n "(cached) " >&6
22174else
22175  case $POD2HTML in
22176  [\\/]* | ?:[\\/]*)
22177  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
22178  ;;
22179  *)
22180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22181for as_dir in $PATH
22182do
22183  IFS=$as_save_IFS
22184  test -z "$as_dir" && as_dir=.
22185    for ac_exec_ext in '' $ac_executable_extensions; do
22186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22187    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
22188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22189    break 2
22190  fi
22191done
22192  done
22193IFS=$as_save_IFS
22194
22195  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
22196  ;;
22197esac
22198fi
22199POD2HTML=$ac_cv_path_POD2HTML
22200if test -n "$POD2HTML"; then
22201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
22202$as_echo "$POD2HTML" >&6; }
22203else
22204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22205$as_echo "no" >&6; }
22206fi
22207
22208
22209
22210NUMVERS=1.7002
22211
22212
22213# Check whether --enable-perl was given.
22214if test "${enable_perl+set}" = set; then :
22215  enableval=$enable_perl;
22216else
22217  enable_perl=yes
22218fi
22219
22220
22221
22222
22223
22224
22225
22226
22227if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
22228	COMP_PERL=
22229else
22230	COMP_PERL="perl-piped perl-shared"
22231        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the perl version you are running" >&5
22232$as_echo_n "checking for the perl version you are running... " >&6; }
22233	PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
22234	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
22235$as_echo "$PERL_VERSION" >&6; }
22236        if test -z "$PERLCC"; then
22237            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler perl wants to use to build its modules" >&5
22238$as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
22239	    perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
22240	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlcc" >&5
22241$as_echo "$perlcc" >&6; }
22242	    if test ! -x "$perlcc"; then
22243 	        # Extract the first word of "${perlcc}", so it can be a program name with args.
22244set dummy ${perlcc}; ac_word=$2
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22246$as_echo_n "checking for $ac_word... " >&6; }
22247if ${ac_cv_path_PERL_CC+:} false; then :
22248  $as_echo_n "(cached) " >&6
22249else
22250  case $PERL_CC in
22251  [\\/]* | ?:[\\/]*)
22252  ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
22253  ;;
22254  *)
22255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22256for as_dir in $PATH
22257do
22258  IFS=$as_save_IFS
22259  test -z "$as_dir" && as_dir=.
22260    for ac_exec_ext in '' $ac_executable_extensions; do
22261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22262    ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
22263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22264    break 2
22265  fi
22266done
22267  done
22268IFS=$as_save_IFS
22269
22270  test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
22271  ;;
22272esac
22273fi
22274PERL_CC=$ac_cv_path_PERL_CC
22275if test -n "$PERL_CC"; then
22276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_CC" >&5
22277$as_echo "$PERL_CC" >&6; }
22278else
22279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280$as_echo "no" >&6; }
22281fi
22282
22283
22284	        if test "$PERL_CC" = "no"; then
22285                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22286I would not find the Compiler ($perlcc) that was originally used to compile
22287your perl binary. You should either make sure that this compiler is
22288available on your system, pick an other compiler and set PERLCC
22289appropriately, or use a different perl setup that was compiled locally.
22290
22291I will disable the compilation of the RRDs perl module for now.
22292" >&5
22293$as_echo "$as_me: WARNING:
22294I would not find the Compiler ($perlcc) that was originally used to compile
22295your perl binary. You should either make sure that this compiler is
22296available on your system, pick an other compiler and set PERLCC
22297appropriately, or use a different perl setup that was compiled locally.
22298
22299I will disable the compilation of the RRDs perl module for now.
22300" >&2;}
22301  		    COMP_PERL="perl-piped"
22302	        fi
22303            fi
22304        fi
22305fi
22306
22307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl Modules to build" >&5
22308$as_echo_n "checking Perl Modules to build... " >&6; }
22309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
22310$as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
22311
22312# Options to pass when configuring perl module
22313langpref=$prefix
22314test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
22315test "$langpref" = "NONE" && langpref=$ac_default_prefix
22316
22317PERL_MAKE_OPTIONS="PREFIX=$langpref INSTALL_BASE= LIB=$langpref/lib/perl/$PERL_VERSION"
22318
22319# Check whether --enable-perl-site-install was given.
22320if test "${enable_perl_site_install+set}" = set; then :
22321  enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
22322fi
22323
22324
22325if test ! -z "$PERLCC"; then
22326   PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
22327
22328   if test ! -z "$PERLCCFLAGS"; then
22329       PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
22330   fi
22331
22332   if test -z "$PERLLD"; then
22333       PERLLD=$PERLCC
22334   fi
22335   PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
22336
22337   if test ! -z "$PERLLDFLAGS"; then
22338       PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
22339   fi
22340fi
22341
22342
22343# Check whether --with-perl-options was given.
22344if test "${with_perl_options+set}" = set; then :
22345  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
22346fi
22347
22348
22349
22350
22351
22352
22353
22354# Extract the first word of "ruby", so it can be a program name with args.
22355set dummy ruby; ac_word=$2
22356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22357$as_echo_n "checking for $ac_word... " >&6; }
22358if ${ac_cv_path_RUBY+:} false; then :
22359  $as_echo_n "(cached) " >&6
22360else
22361  case $RUBY in
22362  [\\/]* | ?:[\\/]*)
22363  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22364  ;;
22365  *)
22366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22367for as_dir in $PATH
22368do
22369  IFS=$as_save_IFS
22370  test -z "$as_dir" && as_dir=.
22371    for ac_exec_ext in '' $ac_executable_extensions; do
22372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22373    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22375    break 2
22376  fi
22377done
22378  done
22379IFS=$as_save_IFS
22380
22381  test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
22382  ;;
22383esac
22384fi
22385RUBY=$ac_cv_path_RUBY
22386if test -n "$RUBY"; then
22387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22388$as_echo "$RUBY" >&6; }
22389else
22390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22391$as_echo "no" >&6; }
22392fi
22393
22394
22395
22396# Check whether --enable-ruby was given.
22397if test "${enable_ruby+set}" = set; then :
22398  enableval=$enable_ruby;
22399else
22400  enable_ruby=yes
22401fi
22402
22403
22404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ruby modules can be built" >&5
22405$as_echo_n "checking if ruby modules can be built... " >&6; }
22406
22407if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
22408	COMP_RUBY=
22409 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No .. Ruby not found or disabled" >&5
22410$as_echo "No .. Ruby not found or disabled" >&6; }
22411else
22412	if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
22413		COMP_RUBY="ruby"
22414	 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: YES" >&5
22415$as_echo "YES" >&6; }
22416	else
22417		COMP_RUBY=
22418	 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Ruby found but mkmf is missing! Install the -dev package" >&5
22419$as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
22420	fi
22421fi
22422
22423# Check whether --enable-ruby-site-install was given.
22424if test "${enable_ruby_site_install+set}" = set; then :
22425  enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
22426else
22427  RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
22428fi
22429
22430
22431
22432
22433# Check whether --with-ruby-options was given.
22434if test "${with_ruby_options+set}" = set; then :
22435  withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
22436fi
22437
22438
22439
22440
22441
22442
22443# Extract the first word of "lua", so it can be a program name with args.
22444set dummy lua; ac_word=$2
22445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22446$as_echo_n "checking for $ac_word... " >&6; }
22447if ${ac_cv_path_LUA+:} false; then :
22448  $as_echo_n "(cached) " >&6
22449else
22450  case $LUA in
22451  [\\/]* | ?:[\\/]*)
22452  ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
22453  ;;
22454  *)
22455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22456for as_dir in $PATH
22457do
22458  IFS=$as_save_IFS
22459  test -z "$as_dir" && as_dir=.
22460    for ac_exec_ext in '' $ac_executable_extensions; do
22461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22462    ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
22463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22464    break 2
22465  fi
22466done
22467  done
22468IFS=$as_save_IFS
22469
22470  test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
22471  ;;
22472esac
22473fi
22474LUA=$ac_cv_path_LUA
22475if test -n "$LUA"; then
22476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
22477$as_echo "$LUA" >&6; }
22478else
22479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22480$as_echo "no" >&6; }
22481fi
22482
22483
22484
22485# Check whether --enable-lua was given.
22486if test "${enable_lua+set}" = set; then :
22487  enableval=$enable_lua;
22488else
22489  enable_lua=yes
22490fi
22491
22492
22493COMP_LUA=
22494if test "$LUA" = "no" -o "$enable_lua" = "no"; then
22495  enable_lua=no
22496else
22497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua >= 5.0" >&5
22498$as_echo_n "checking for lua >= 5.0... " >&6; }
22499  read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
22500    $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
22501LUA_EOF
22502  if test 0$LUA_MAJOR -lt 5; then
22503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
22504$as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
22505  else
22506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_MAJOR.$LUA_MINOR found" >&5
22507$as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
22508    lua_vdot=$LUA_MAJOR.$LUA_MINOR
22509    lua_vndot=$LUA_MAJOR$LUA_MINOR
22510    lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
22511    for ac_header in lua$lua_vndot/lua.h
22512do :
22513  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22514ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22516  cat >>confdefs.h <<_ACEOF
22517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22518_ACEOF
22519 for ac_header in lua$lua_vndot/lualib.h
22520do :
22521  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22522ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22523if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22524  cat >>confdefs.h <<_ACEOF
22525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22526_ACEOF
22527 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
22528ac_fn_c_check_header_mongrel "$LINENO" "lua$lua_vndot/lauxlib.h" "$as_ac_Header" "$ac_includes_default"
22529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22530  lua_headerdir=lua$lua_vndot
22531fi
22532
22533
22534fi
22535
22536done
22537
22538else
22539  for ac_header in lua$lua_vdot/lua.h
22540do :
22541  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22542ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22543if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22544  cat >>confdefs.h <<_ACEOF
22545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22546_ACEOF
22547 for ac_header in lua$lua_vdot/lualib.h
22548do :
22549  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22550ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22551if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22552  cat >>confdefs.h <<_ACEOF
22553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22554_ACEOF
22555 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
22556ac_fn_c_check_header_mongrel "$LINENO" "lua$lua_vdot/lauxlib.h" "$as_ac_Header" "$ac_includes_default"
22557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22558  lua_headerdir=lua$lua_vdot
22559fi
22560
22561
22562fi
22563
22564done
22565
22566else
22567  for ac_header in lua.h
22568do :
22569  ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
22570if test "x$ac_cv_header_lua_h" = xyes; then :
22571  cat >>confdefs.h <<_ACEOF
22572#define HAVE_LUA_H 1
22573_ACEOF
22574 for ac_header in lualib.h
22575do :
22576  ac_fn_c_check_header_mongrel "$LINENO" "lualib.h" "ac_cv_header_lualib_h" "$ac_includes_default"
22577if test "x$ac_cv_header_lualib_h" = xyes; then :
22578  cat >>confdefs.h <<_ACEOF
22579#define HAVE_LUALIB_H 1
22580_ACEOF
22581 ac_fn_c_check_header_mongrel "$LINENO" "lauxlib.h" "ac_cv_header_lauxlib_h" "$ac_includes_default"
22582if test "x$ac_cv_header_lauxlib_h" = xyes; then :
22583  lua_headerdir=""
22584else
22585  lua_headerdir="no"
22586fi
22587
22588
22589fi
22590
22591done
22592
22593fi
22594
22595done
22596
22597fi
22598
22599done
22600
22601fi
22602
22603done
22604
22605
22606    if test "$lua_headerdir" = "no"; then
22607      enable_lua=no
22608    else
22609      COMP_LUA=lua
22610    fi
22611
22612    if test "$COMP_LUA" != "lua"; then
22613      enable_lua=no
22614      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
22615$as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
22616    else
22617      # OK, headers found, let's check the libraries (LIBS is not used)
22618      LIBS=
22619      lua_havelib=no
22620      LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
22621      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_call" >&5
22622$as_echo_n "checking for library containing lua_call... " >&6; }
22623if ${rrd_cv_search_lua_call+:} false; then :
22624  $as_echo_n "(cached) " >&6
22625else
22626  rrd_func_search_save_LIBS=$LIBS
22627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628/* end confdefs.h.  */
22629#include <${lua_headerdir:+$lua_headerdir/}lua.h>
22630int
22631main ()
22632{
22633lua_call (0, 0, 0);
22634  ;
22635  return 0;
22636}
22637_ACEOF
22638for rrd_lib in '' lua$lua_vdot lua$lua_vndot lua; do
22639  if test -z "$rrd_lib"; then
22640    rrd_res="none required"
22641  else
22642    rrd_res=-l$rrd_lib
22643    LIBS="-l$rrd_lib -lm $rrd_func_search_save_LIBS"
22644  fi
22645  if ac_fn_c_try_link "$LINENO"; then :
22646  rrd_cv_search_lua_call=$rrd_res
22647fi
22648rm -f core conftest.err conftest.$ac_objext \
22649    conftest$ac_exeext
22650  if ${rrd_cv_search_lua_call+:} false; then :
22651  break
22652fi
22653done
22654if ${rrd_cv_search_lua_call+:} false; then :
22655
22656else
22657  rrd_cv_search_lua_call=no
22658fi
22659rm conftest.$ac_ext
22660LIBS=$rrd_func_search_save_LIBS
22661fi
22662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rrd_cv_search_lua_call" >&5
22663$as_echo "$rrd_cv_search_lua_call" >&6; }
22664rrd_res=$rrd_cv_search_lua_call
22665if test "$rrd_res" != no; then :
22666  test "$rrd_res" = "none required" || LIBS="$rrd_res $LIBS"
22667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_openlibs" >&5
22668$as_echo_n "checking for library containing luaL_openlibs... " >&6; }
22669if ${ac_cv_search_luaL_openlibs+:} false; then :
22670  $as_echo_n "(cached) " >&6
22671else
22672  ac_func_search_save_LIBS=$LIBS
22673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22674/* end confdefs.h.  */
22675
22676/* Override any GCC internal prototype to avoid an error.
22677   Use char because int might match the return type of a GCC
22678   builtin and then its argument prototype would still apply.  */
22679#ifdef __cplusplus
22680extern "C"
22681#endif
22682char luaL_openlibs ();
22683int
22684main ()
22685{
22686return luaL_openlibs ();
22687  ;
22688  return 0;
22689}
22690_ACEOF
22691for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
22692  if test -z "$ac_lib"; then
22693    ac_res="none required"
22694  else
22695    ac_res=-l$ac_lib
22696    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
22697  fi
22698  if ac_fn_c_try_link "$LINENO"; then :
22699  ac_cv_search_luaL_openlibs=$ac_res
22700fi
22701rm -f core conftest.err conftest.$ac_objext \
22702    conftest$ac_exeext
22703  if ${ac_cv_search_luaL_openlibs+:} false; then :
22704  break
22705fi
22706done
22707if ${ac_cv_search_luaL_openlibs+:} false; then :
22708
22709else
22710  ac_cv_search_luaL_openlibs=no
22711fi
22712rm conftest.$ac_ext
22713LIBS=$ac_func_search_save_LIBS
22714fi
22715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_openlibs" >&5
22716$as_echo "$ac_cv_search_luaL_openlibs" >&6; }
22717ac_res=$ac_cv_search_luaL_openlibs
22718if test "$ac_res" != no; then :
22719  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22720  lua_havelib=LUA$lua_vndot
22721else
22722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_module" >&5
22723$as_echo_n "checking for library containing luaL_module... " >&6; }
22724if ${ac_cv_search_luaL_module+:} false; then :
22725  $as_echo_n "(cached) " >&6
22726else
22727  ac_func_search_save_LIBS=$LIBS
22728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729/* end confdefs.h.  */
22730
22731/* Override any GCC internal prototype to avoid an error.
22732   Use char because int might match the return type of a GCC
22733   builtin and then its argument prototype would still apply.  */
22734#ifdef __cplusplus
22735extern "C"
22736#endif
22737char luaL_module ();
22738int
22739main ()
22740{
22741return luaL_module ();
22742  ;
22743  return 0;
22744}
22745_ACEOF
22746for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
22747  if test -z "$ac_lib"; then
22748    ac_res="none required"
22749  else
22750    ac_res=-l$ac_lib
22751    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
22752  fi
22753  if ac_fn_c_try_link "$LINENO"; then :
22754  ac_cv_search_luaL_module=$ac_res
22755fi
22756rm -f core conftest.err conftest.$ac_objext \
22757    conftest$ac_exeext
22758  if ${ac_cv_search_luaL_module+:} false; then :
22759  break
22760fi
22761done
22762if ${ac_cv_search_luaL_module+:} false; then :
22763
22764else
22765  ac_cv_search_luaL_module=no
22766fi
22767rm conftest.$ac_ext
22768LIBS=$ac_func_search_save_LIBS
22769fi
22770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_module" >&5
22771$as_echo "$ac_cv_search_luaL_module" >&6; }
22772ac_res=$ac_cv_search_luaL_module
22773if test "$ac_res" != no; then :
22774  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22775  lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
22776             test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
22777else
22778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_openlib" >&5
22779$as_echo_n "checking for library containing luaL_openlib... " >&6; }
22780if ${ac_cv_search_luaL_openlib+:} false; then :
22781  $as_echo_n "(cached) " >&6
22782else
22783  ac_func_search_save_LIBS=$LIBS
22784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785/* end confdefs.h.  */
22786
22787/* Override any GCC internal prototype to avoid an error.
22788   Use char because int might match the return type of a GCC
22789   builtin and then its argument prototype would still apply.  */
22790#ifdef __cplusplus
22791extern "C"
22792#endif
22793char luaL_openlib ();
22794int
22795main ()
22796{
22797return luaL_openlib ();
22798  ;
22799  return 0;
22800}
22801_ACEOF
22802for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
22803  if test -z "$ac_lib"; then
22804    ac_res="none required"
22805  else
22806    ac_res=-l$ac_lib
22807    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
22808  fi
22809  if ac_fn_c_try_link "$LINENO"; then :
22810  ac_cv_search_luaL_openlib=$ac_res
22811fi
22812rm -f core conftest.err conftest.$ac_objext \
22813    conftest$ac_exeext
22814  if ${ac_cv_search_luaL_openlib+:} false; then :
22815  break
22816fi
22817done
22818if ${ac_cv_search_luaL_openlib+:} false; then :
22819
22820else
22821  ac_cv_search_luaL_openlib=no
22822fi
22823rm conftest.$ac_ext
22824LIBS=$ac_func_search_save_LIBS
22825fi
22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_openlib" >&5
22827$as_echo "$ac_cv_search_luaL_openlib" >&6; }
22828ac_res=$ac_cv_search_luaL_openlib
22829if test "$ac_res" != no; then :
22830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22831  lua_havelib=$lua_vndot
22832else
22833  COMP_LUA=
22834fi
22835
22836fi
22837
22838fi
22839
22840else
22841  COMP_LUA=
22842fi
22843
22844      lua_libs=$LIBS
22845      LIBS=
22846
22847      # Options to pass when configuring Lua module
22848      if test  "$lua_havelib" != "no"; then
22849        # OK, headers and libs found. Try to set lua flags
22850        # and modules installation dirs with pkg-config
22851        if test "$PKGCONFIG" != "no"; then
22852          if test "$lua_vndot" = "50"; then
22853            lua_pkg_prefix=lualib
22854          else
22855            lua_pkg_prefix=lua
22856          fi
22857          # try with dot, without dot and finally without version
22858          for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
22859            lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
22860            # same binaries?
22861            if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
22862                # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
22863                LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
22864                LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
22865                LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
22866                LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
22867                break
22868            fi
22869          done
22870        fi
22871
22872        LUA_RRD_LIBDIR="$libdir/lua/$lua_vdot"
22873        # if lua 5.0 can't find compat-5.1, force installation of
22874        # compat-5.1.lua together with RRDtool.
22875        if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
22876          lua_need_compat51=1
22877          LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
22878        fi
22879
22880        # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
22881        if test "$LUA_CFLAGS" = ""; then
22882          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
22883$as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
22884          LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
22885          LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
22886          LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
22887        fi
22888
22889                                # Check whether --enable-lua-site-install was given.
22890if test "${enable_lua_site_install+set}" = set; then :
22891  enableval=$enable_lua_site_install;
22892else
22893  LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
22894fi
22895
22896
22897        LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
22898
22899
22900
22901
22902
22903
22904
22905      else
22906        enable_lua=no
22907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
22908$as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
22909      fi
22910    fi
22911  fi
22912fi
22913 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
22914  LUA_NEED_OUR_COMPAT51_TRUE=
22915  LUA_NEED_OUR_COMPAT51_FALSE='#'
22916else
22917  LUA_NEED_OUR_COMPAT51_TRUE='#'
22918  LUA_NEED_OUR_COMPAT51_FALSE=
22919fi
22920
22921 if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
22922  LUA_SITE_CINSTALL_TRUE=
22923  LUA_SITE_CINSTALL_FALSE='#'
22924else
22925  LUA_SITE_CINSTALL_TRUE='#'
22926  LUA_SITE_CINSTALL_FALSE=
22927fi
22928
22929 if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
22930  LUA_SITE_LINSTALL_TRUE=
22931  LUA_SITE_LINSTALL_FALSE='#'
22932else
22933  LUA_SITE_LINSTALL_TRUE='#'
22934  LUA_SITE_LINSTALL_FALSE=
22935fi
22936
22937 if test "$lua_vndot" = "50"; then
22938  LUA50_TRUE=
22939  LUA50_FALSE='#'
22940else
22941  LUA50_TRUE='#'
22942  LUA50_FALSE=
22943fi
22944
22945 if test "$enable_lua" = "yes"; then
22946  BUILD_LUA_TRUE=
22947  BUILD_LUA_FALSE='#'
22948else
22949  BUILD_LUA_TRUE='#'
22950  BUILD_LUA_FALSE=
22951fi
22952
22953
22954enable_tcl_site=no
22955
22956# Check whether --enable-tcl was given.
22957if test "${enable_tcl+set}" = set; then :
22958  enableval=$enable_tcl;
22959else
22960  enable_tcl=yes
22961fi
22962
22963
22964if test  "$enable_tcl" = "yes"; then
22965    withval=""
22966
22967# Check whether --with-tcllib was given.
22968if test "${with_tcllib+set}" = set; then :
22969  withval=$with_tcllib;
22970fi
22971
22972  enable_tcl=no
22973  for dir in $withval /usr/lib /usr/lib64 /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
22974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh in $dir" >&5
22975$as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
22976    if test -f "$dir/tclConfig.sh" ; then
22977    	tcl_config=$dir/tclConfig.sh
22978        enable_tcl=yes
22979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22980$as_echo "yes" >&6; }
22981        break
22982    else
22983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22984$as_echo "no" >&6; }
22985    fi
22986  done
22987
22988  if test "$enable_tcl" = "no"; then
22989        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
22990$as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
22991  else
22992	. $tcl_config
22993	TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
22994	if test -n "$TCL_INC_DIR"; then
22995	  TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
22996	fi
22997  fi
22998  # Check whether --enable-tcl-site was given.
22999if test "${enable_tcl_site+set}" = set; then :
23000  enableval=$enable_tcl_site;
23001else
23002  enable_tcl_site=yes
23003fi
23004
23005
23006fi
23007
23008 if test "$enable_tcl" = "yes" ; then
23009  BUILD_TCL_TRUE=
23010  BUILD_TCL_FALSE='#'
23011else
23012  BUILD_TCL_TRUE='#'
23013  BUILD_TCL_FALSE=
23014fi
23015
23016 if test "$enable_tcl_site" = "yes" ; then
23017  BUILD_TCL_SITE_TRUE=
23018  BUILD_TCL_SITE_FALSE='#'
23019else
23020  BUILD_TCL_SITE_TRUE='#'
23021  BUILD_TCL_SITE_FALSE=
23022fi
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037# Check whether --enable-python was given.
23038if test "${enable_python+set}" = set; then :
23039  enableval=$enable_python;
23040else
23041  enable_python=yes
23042fi
23043
23044
23045if test  "$enable_python" = "yes"; then
23046
23047
23048
23049
23050
23051
23052        if test -n "$PYTHON"; then
23053      # If the user set $PYTHON, use it and don't search something else.
23054      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
23055$as_echo_n "checking whether $PYTHON version is >= 2.3... " >&6; }
23056      prog="import sys
23057# split strings by '.' and convert to numeric.  Append some zeros
23058# because we need at least 4 digits for the hex conversion.
23059# map returns an iterator in Python 3.0 and a list in 2.x
23060minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
23061minverhex = 0
23062# xrange is not present in Python 3.0 and range returns an iterator
23063for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23064sys.exit(sys.hexversion < minverhex)"
23065  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23066   ($PYTHON -c "$prog") >&5 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; then :
23070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23071$as_echo "yes" >&6; }
23072else
23073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23074$as_echo "no" >&6; }
23075			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23076fi
23077      am_display_PYTHON=$PYTHON
23078    else
23079      # Otherwise, try each interpreter until we find one that satisfies
23080      # VERSION.
23081      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
23082$as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
23083if ${am_cv_pathless_PYTHON+:} false; then :
23084  $as_echo_n "(cached) " >&6
23085else
23086
23087	for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
23088	  test "$am_cv_pathless_PYTHON" = none && break
23089	  prog="import sys
23090# split strings by '.' and convert to numeric.  Append some zeros
23091# because we need at least 4 digits for the hex conversion.
23092# map returns an iterator in Python 3.0 and a list in 2.x
23093minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
23094minverhex = 0
23095# xrange is not present in Python 3.0 and range returns an iterator
23096for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23097sys.exit(sys.hexversion < minverhex)"
23098  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23099   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; then :
23103  break
23104fi
23105	done
23106fi
23107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23108$as_echo "$am_cv_pathless_PYTHON" >&6; }
23109      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23110      if test "$am_cv_pathless_PYTHON" = none; then
23111	PYTHON=:
23112      else
23113        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23114set dummy $am_cv_pathless_PYTHON; ac_word=$2
23115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23116$as_echo_n "checking for $ac_word... " >&6; }
23117if ${ac_cv_path_PYTHON+:} false; then :
23118  $as_echo_n "(cached) " >&6
23119else
23120  case $PYTHON in
23121  [\\/]* | ?:[\\/]*)
23122  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23123  ;;
23124  *)
23125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23126for as_dir in $PATH
23127do
23128  IFS=$as_save_IFS
23129  test -z "$as_dir" && as_dir=.
23130    for ac_exec_ext in '' $ac_executable_extensions; do
23131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23132    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23134    break 2
23135  fi
23136done
23137  done
23138IFS=$as_save_IFS
23139
23140  ;;
23141esac
23142fi
23143PYTHON=$ac_cv_path_PYTHON
23144if test -n "$PYTHON"; then
23145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23146$as_echo "$PYTHON" >&6; }
23147else
23148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23149$as_echo "no" >&6; }
23150fi
23151
23152
23153      fi
23154      am_display_PYTHON=$am_cv_pathless_PYTHON
23155    fi
23156
23157
23158  if test "$PYTHON" = :; then
23159      enable_python=no
23160  else
23161
23162
23163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23164$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23165if ${am_cv_python_version+:} false; then :
23166  $as_echo_n "(cached) " >&6
23167else
23168  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23169fi
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23171$as_echo "$am_cv_python_version" >&6; }
23172  PYTHON_VERSION=$am_cv_python_version
23173
23174
23175
23176  PYTHON_PREFIX='${prefix}'
23177
23178  PYTHON_EXEC_PREFIX='${exec_prefix}'
23179
23180
23181
23182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23183$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23184if ${am_cv_python_platform+:} false; then :
23185  $as_echo_n "(cached) " >&6
23186else
23187  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23188fi
23189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23190$as_echo "$am_cv_python_platform" >&6; }
23191  PYTHON_PLATFORM=$am_cv_python_platform
23192
23193
23194  # Just factor out some code duplication.
23195  am_python_setup_sysconfig="\
23196import sys
23197# Prefer sysconfig over distutils.sysconfig, for better compatibility
23198# with python 3.x.  See automake bug#10227.
23199try:
23200    import sysconfig
23201except ImportError:
23202    can_use_sysconfig = 0
23203else:
23204    can_use_sysconfig = 1
23205# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23206# <https://github.com/pypa/virtualenv/issues/118>
23207try:
23208    from platform import python_implementation
23209    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23210        can_use_sysconfig = 0
23211except ImportError:
23212    pass"
23213
23214
23215            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23216$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23217if ${am_cv_python_pythondir+:} false; then :
23218  $as_echo_n "(cached) " >&6
23219else
23220  if test "x$prefix" = xNONE
23221     then
23222       am_py_prefix=$ac_default_prefix
23223     else
23224       am_py_prefix=$prefix
23225     fi
23226     am_cv_python_pythondir=`$PYTHON -c "
23227$am_python_setup_sysconfig
23228if can_use_sysconfig:
23229    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23230else:
23231    from distutils import sysconfig
23232    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23233sys.stdout.write(sitedir)"`
23234     case $am_cv_python_pythondir in
23235     $am_py_prefix*)
23236       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23237       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23238       ;;
23239     *)
23240       case $am_py_prefix in
23241         /usr|/System*) ;;
23242         *)
23243	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23244	  ;;
23245       esac
23246       ;;
23247     esac
23248
23249fi
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23251$as_echo "$am_cv_python_pythondir" >&6; }
23252  pythondir=$am_cv_python_pythondir
23253
23254
23255
23256  pkgpythondir=\${pythondir}/$PACKAGE
23257
23258
23259        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23260$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23261if ${am_cv_python_pyexecdir+:} false; then :
23262  $as_echo_n "(cached) " >&6
23263else
23264  if test "x$exec_prefix" = xNONE
23265     then
23266       am_py_exec_prefix=$am_py_prefix
23267     else
23268       am_py_exec_prefix=$exec_prefix
23269     fi
23270     am_cv_python_pyexecdir=`$PYTHON -c "
23271$am_python_setup_sysconfig
23272if can_use_sysconfig:
23273    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23274else:
23275    from distutils import sysconfig
23276    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23277sys.stdout.write(sitedir)"`
23278     case $am_cv_python_pyexecdir in
23279     $am_py_exec_prefix*)
23280       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23281       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23282       ;;
23283     *)
23284       case $am_py_exec_prefix in
23285         /usr|/System*) ;;
23286         *)
23287	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23288	   ;;
23289       esac
23290       ;;
23291     esac
23292
23293fi
23294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23295$as_echo "$am_cv_python_pyexecdir" >&6; }
23296  pyexecdir=$am_cv_python_pyexecdir
23297
23298
23299
23300  pkgpyexecdir=\${pyexecdir}/$PACKAGE
23301
23302
23303
23304  fi
23305
23306
23307
23308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
23309$as_echo_n "checking for headers required to compile python extensions... " >&6; }
23310py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
23311py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
23312PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION} -I${py_prefix}/include/python${PYTHON_VERSION}m"
23313if test "$py_prefix" != "$py_exec_prefix"; then
23314  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} -I${py_exec_prefix}/include/python${PYTHON_VERSION}m"
23315fi
23316
23317save_CPPFLAGS="$CPPFLAGS"
23318CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
23319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23320/* end confdefs.h.  */
23321#include <Python.h>
23322_ACEOF
23323if ac_fn_c_try_cpp "$LINENO"; then :
23324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23325$as_echo "found" >&6; }
23326
23327else
23328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23329$as_echo "not found" >&6; }
23330enable_python=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find Python headers" >&5
23331$as_echo "$as_me: WARNING: could not find Python headers" >&2;}
23332fi
23333rm -f conftest.err conftest.i conftest.$ac_ext
23334CPPFLAGS="$save_CPPFLAGS"
23335
23336fi
23337
23338if test  x$enable_python = xno; then
23339	COMP_PYTHON=
23340else
23341	COMP_PYTHON="python"
23342fi
23343
23344
23345
23346if test $enable_docs != no; then
23347
23348
23349for ac_prog in gnroff nroff
23350do
23351  # Extract the first word of "$ac_prog", so it can be a program name with args.
23352set dummy $ac_prog; ac_word=$2
23353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23354$as_echo_n "checking for $ac_word... " >&6; }
23355if ${ac_cv_path_NROFF+:} false; then :
23356  $as_echo_n "(cached) " >&6
23357else
23358  case $NROFF in
23359  [\\/]* | ?:[\\/]*)
23360  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
23361  ;;
23362  *)
23363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23364for as_dir in $PATH
23365do
23366  IFS=$as_save_IFS
23367  test -z "$as_dir" && as_dir=.
23368    for ac_exec_ext in '' $ac_executable_extensions; do
23369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23370    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
23371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23372    break 2
23373  fi
23374done
23375  done
23376IFS=$as_save_IFS
23377
23378  ;;
23379esac
23380fi
23381NROFF=$ac_cv_path_NROFF
23382if test -n "$NROFF"; then
23383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
23384$as_echo "$NROFF" >&6; }
23385else
23386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23387$as_echo "no" >&6; }
23388fi
23389
23390
23391  test -n "$NROFF" && break
23392done
23393
23394if test x$NROFF = x; then
23395  as_fn_error $? "I need a copy of *nroff to format the documentation" "$LINENO" 5
23396fi
23397
23398for ac_prog in groff troff
23399do
23400  # Extract the first word of "$ac_prog", so it can be a program name with args.
23401set dummy $ac_prog; ac_word=$2
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23403$as_echo_n "checking for $ac_word... " >&6; }
23404if ${ac_cv_path_TROFF+:} false; then :
23405  $as_echo_n "(cached) " >&6
23406else
23407  case $TROFF in
23408  [\\/]* | ?:[\\/]*)
23409  ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
23410  ;;
23411  *)
23412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23413for as_dir in $PATH
23414do
23415  IFS=$as_save_IFS
23416  test -z "$as_dir" && as_dir=.
23417    for ac_exec_ext in '' $ac_executable_extensions; do
23418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23419    ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
23420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23421    break 2
23422  fi
23423done
23424  done
23425IFS=$as_save_IFS
23426
23427  ;;
23428esac
23429fi
23430TROFF=$ac_cv_path_TROFF
23431if test -n "$TROFF"; then
23432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TROFF" >&5
23433$as_echo "$TROFF" >&6; }
23434else
23435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436$as_echo "no" >&6; }
23437fi
23438
23439
23440  test -n "$TROFF" && break
23441done
23442
23443if test x$TROFF = x; then
23444  as_fn_error $? "I need a copy of *troff to format the documentation" "$LINENO" 5
23445fi
23446
23447
23448if test -z "$RRDDOCDIR"; then
23449   RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
23450
23451fi
23452
23453# Check for MinGW-w64 build and pass to automake
23454build_mingw_w64=no
23455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW-w64 build" >&5
23456$as_echo_n "checking for MinGW-w64 build... " >&6; }
23457case "$host" in
23458    *w64-mingw32*)
23459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23460$as_echo "yes" >&6; }
23461        build_mingw_w64=yes
23462    ;;
23463    *)
23464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465$as_echo "no" >&6; }
23466    ;;
23467esac
23468# Pass the conditional to automake
23469 if test "$build_mingw_w64" = "yes"; then
23470  MINGW_W64_TRUE=
23471  MINGW_W64_FALSE='#'
23472else
23473  MINGW_W64_TRUE='#'
23474  MINGW_W64_FALSE=
23475fi
23476
23477
23478# systemd check
23479
23480
23481
23482
23483
23484
23485
23486if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23487	if test -n "$ac_tool_prefix"; then
23488  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23489set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23491$as_echo_n "checking for $ac_word... " >&6; }
23492if ${ac_cv_path_PKG_CONFIG+:} false; then :
23493  $as_echo_n "(cached) " >&6
23494else
23495  case $PKG_CONFIG in
23496  [\\/]* | ?:[\\/]*)
23497  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23498  ;;
23499  *)
23500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23501for as_dir in $PATH
23502do
23503  IFS=$as_save_IFS
23504  test -z "$as_dir" && as_dir=.
23505    for ac_exec_ext in '' $ac_executable_extensions; do
23506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23507    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23509    break 2
23510  fi
23511done
23512  done
23513IFS=$as_save_IFS
23514
23515  ;;
23516esac
23517fi
23518PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23519if test -n "$PKG_CONFIG"; then
23520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23521$as_echo "$PKG_CONFIG" >&6; }
23522else
23523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23524$as_echo "no" >&6; }
23525fi
23526
23527
23528fi
23529if test -z "$ac_cv_path_PKG_CONFIG"; then
23530  ac_pt_PKG_CONFIG=$PKG_CONFIG
23531  # Extract the first word of "pkg-config", so it can be a program name with args.
23532set dummy pkg-config; ac_word=$2
23533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23534$as_echo_n "checking for $ac_word... " >&6; }
23535if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
23536  $as_echo_n "(cached) " >&6
23537else
23538  case $ac_pt_PKG_CONFIG in
23539  [\\/]* | ?:[\\/]*)
23540  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23541  ;;
23542  *)
23543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23544for as_dir in $PATH
23545do
23546  IFS=$as_save_IFS
23547  test -z "$as_dir" && as_dir=.
23548    for ac_exec_ext in '' $ac_executable_extensions; do
23549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23550    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23552    break 2
23553  fi
23554done
23555  done
23556IFS=$as_save_IFS
23557
23558  ;;
23559esac
23560fi
23561ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23562if test -n "$ac_pt_PKG_CONFIG"; then
23563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23564$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23565else
23566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23567$as_echo "no" >&6; }
23568fi
23569
23570  if test "x$ac_pt_PKG_CONFIG" = x; then
23571    PKG_CONFIG=""
23572  else
23573    case $cross_compiling:$ac_tool_warned in
23574yes:)
23575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23577ac_tool_warned=yes ;;
23578esac
23579    PKG_CONFIG=$ac_pt_PKG_CONFIG
23580  fi
23581else
23582  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23583fi
23584
23585fi
23586if test -n "$PKG_CONFIG"; then
23587	_pkg_min_version=0.9.0
23588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23589$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23590	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23592$as_echo "yes" >&6; }
23593	else
23594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23595$as_echo "no" >&6; }
23596		PKG_CONFIG=""
23597	fi
23598fi
23599
23600# Check whether --with-systemdsystemunitdir was given.
23601if test "${with_systemdsystemunitdir+set}" = set; then :
23602  withval=$with_systemdsystemunitdir;
23603else
23604  with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
23605fi
23606
23607if test "x$with_systemdsystemunitdir" != xno; then
23608	systemdsystemunitdir=$with_systemdsystemunitdir
23609
23610	ac_config_files="$ac_config_files etc/rrdcached.socket etc/rrdcached.service"
23611
23612cat >confcache <<\_ACEOF
23613# This file is a shell script that caches the results of configure
23614# tests run on this system so they can be shared between configure
23615# scripts and configure runs, see configure's option --config-cache.
23616# It is not useful on other systems.  If it contains results you don't
23617# want to keep, you may remove or edit it.
23618#
23619# config.status only pays attention to the cache file if you give it
23620# the --recheck option to rerun configure.
23621#
23622# `ac_cv_env_foo' variables (set or unset) will be overridden when
23623# loading this file, other *unset* `ac_cv_foo' will be assigned the
23624# following values.
23625
23626_ACEOF
23627
23628# The following way of writing the cache mishandles newlines in values,
23629# but we know of no workaround that is simple, portable, and efficient.
23630# So, we kill variables containing newlines.
23631# Ultrix sh set writes to stderr and can't be redirected directly,
23632# and sets the high bit in the cache file unless we assign to the vars.
23633(
23634  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23635    eval ac_val=\$$ac_var
23636    case $ac_val in #(
23637    *${as_nl}*)
23638      case $ac_var in #(
23639      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23640$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23641      esac
23642      case $ac_var in #(
23643      _ | IFS | as_nl) ;; #(
23644      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23645      *) { eval $ac_var=; unset $ac_var;} ;;
23646      esac ;;
23647    esac
23648  done
23649
23650  (set) 2>&1 |
23651    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23652    *${as_nl}ac_space=\ *)
23653      # `set' does not quote correctly, so add quotes: double-quote
23654      # substitution turns \\\\ into \\, and sed turns \\ into \.
23655      sed -n \
23656	"s/'/'\\\\''/g;
23657	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23658      ;; #(
23659    *)
23660      # `set' quotes correctly as required by POSIX, so do not add quotes.
23661      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23662      ;;
23663    esac |
23664    sort
23665) |
23666  sed '
23667     /^ac_cv_env_/b end
23668     t clear
23669     :clear
23670     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23671     t end
23672     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23673     :end' >>confcache
23674if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23675  if test -w "$cache_file"; then
23676    if test "x$cache_file" != "x/dev/null"; then
23677      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23678$as_echo "$as_me: updating cache $cache_file" >&6;}
23679      if test ! -f "$cache_file" || test -h "$cache_file"; then
23680	cat confcache >"$cache_file"
23681      else
23682        case $cache_file in #(
23683        */* | ?:*)
23684	  mv -f confcache "$cache_file"$$ &&
23685	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23686        *)
23687	  mv -f confcache "$cache_file" ;;
23688	esac
23689      fi
23690    fi
23691  else
23692    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23693$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23694  fi
23695fi
23696rm -f confcache
23697
23698test "x$prefix" = xNONE && prefix=$ac_default_prefix
23699# Let make expand exec_prefix.
23700test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23701
23702DEFS=-DHAVE_CONFIG_H
23703
23704ac_libobjs=
23705ac_ltlibobjs=
23706U=
23707for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23708  # 1. Remove the extension, and $U if already installed.
23709  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23710  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23711  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23712  #    will be set to the directory where LIBOBJS objects are built.
23713  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23714  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23715done
23716LIBOBJS=$ac_libobjs
23717
23718LTLIBOBJS=$ac_ltlibobjs
23719
23720
23721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23722$as_echo_n "checking that generated files are newer than configure... " >&6; }
23723   if test -n "$am_sleep_pid"; then
23724     # Hide warnings about reused PIDs.
23725     wait $am_sleep_pid 2>/dev/null
23726   fi
23727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23728$as_echo "done" >&6; }
23729if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23730  as_fn_error $? "conditional \"AMDEP\" was never defined.
23731Usually this means the macro was only invoked conditionally." "$LINENO" 5
23732fi
23733if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23734  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23735Usually this means the macro was only invoked conditionally." "$LINENO" 5
23736fi
23737 if test -n "$EXEEXT"; then
23738  am__EXEEXT_TRUE=
23739  am__EXEEXT_FALSE='#'
23740else
23741  am__EXEEXT_TRUE='#'
23742  am__EXEEXT_FALSE=
23743fi
23744
23745if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23746  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23747Usually this means the macro was only invoked conditionally." "$LINENO" 5
23748fi
23749if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
23750  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
23751Usually this means the macro was only invoked conditionally." "$LINENO" 5
23752fi
23753if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
23754  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
23755Usually this means the macro was only invoked conditionally." "$LINENO" 5
23756fi
23757if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
23758  as_fn_error $? "conditional \"BUILD_RRDCGI\" was never defined.
23759Usually this means the macro was only invoked conditionally." "$LINENO" 5
23760fi
23761if test -z "${BUILD_RRDCACHED_TRUE}" && test -z "${BUILD_RRDCACHED_FALSE}"; then
23762  as_fn_error $? "conditional \"BUILD_RRDCACHED\" was never defined.
23763Usually this means the macro was only invoked conditionally." "$LINENO" 5
23764fi
23765if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
23766  as_fn_error $? "conditional \"STATIC_PROGRAMS\" was never defined.
23767Usually this means the macro was only invoked conditionally." "$LINENO" 5
23768fi
23769
23770if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
23771  as_fn_error $? "conditional \"BUILD_MULTITHREAD\" was never defined.
23772Usually this means the macro was only invoked conditionally." "$LINENO" 5
23773fi
23774if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
23775  as_fn_error $? "conditional \"BUILD_LIBDBI\" was never defined.
23776Usually this means the macro was only invoked conditionally." "$LINENO" 5
23777fi
23778if test -z "${BUILD_LIBRADOS_TRUE}" && test -z "${BUILD_LIBRADOS_FALSE}"; then
23779  as_fn_error $? "conditional \"BUILD_LIBRADOS\" was never defined.
23780Usually this means the macro was only invoked conditionally." "$LINENO" 5
23781fi
23782if test -z "${BUILD_LIBWRAP_TRUE}" && test -z "${BUILD_LIBWRAP_FALSE}"; then
23783  as_fn_error $? "conditional \"BUILD_LIBWRAP\" was never defined.
23784Usually this means the macro was only invoked conditionally." "$LINENO" 5
23785fi
23786if test -z "${BUILD_RRDGRAPH_TRUE}" && test -z "${BUILD_RRDGRAPH_FALSE}"; then
23787  as_fn_error $? "conditional \"BUILD_RRDGRAPH\" was never defined.
23788Usually this means the macro was only invoked conditionally." "$LINENO" 5
23789fi
23790if test -z "${BUILD_RRDRESTORE_TRUE}" && test -z "${BUILD_RRDRESTORE_FALSE}"; then
23791  as_fn_error $? "conditional \"BUILD_RRDRESTORE\" was never defined.
23792Usually this means the macro was only invoked conditionally." "$LINENO" 5
23793fi
23794if test -z "${ENABLE_RPATH_TRUE}" && test -z "${ENABLE_RPATH_FALSE}"; then
23795  as_fn_error $? "conditional \"ENABLE_RPATH\" was never defined.
23796Usually this means the macro was only invoked conditionally." "$LINENO" 5
23797fi
23798if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
23799  as_fn_error $? "conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
23800Usually this means the macro was only invoked conditionally." "$LINENO" 5
23801fi
23802if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
23803  as_fn_error $? "conditional \"LUA_SITE_CINSTALL\" was never defined.
23804Usually this means the macro was only invoked conditionally." "$LINENO" 5
23805fi
23806if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
23807  as_fn_error $? "conditional \"LUA_SITE_LINSTALL\" was never defined.
23808Usually this means the macro was only invoked conditionally." "$LINENO" 5
23809fi
23810if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
23811  as_fn_error $? "conditional \"LUA50\" was never defined.
23812Usually this means the macro was only invoked conditionally." "$LINENO" 5
23813fi
23814if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
23815  as_fn_error $? "conditional \"BUILD_LUA\" was never defined.
23816Usually this means the macro was only invoked conditionally." "$LINENO" 5
23817fi
23818if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
23819  as_fn_error $? "conditional \"BUILD_TCL\" was never defined.
23820Usually this means the macro was only invoked conditionally." "$LINENO" 5
23821fi
23822if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
23823  as_fn_error $? "conditional \"BUILD_TCL_SITE\" was never defined.
23824Usually this means the macro was only invoked conditionally." "$LINENO" 5
23825fi
23826if test -z "${MINGW_W64_TRUE}" && test -z "${MINGW_W64_FALSE}"; then
23827  as_fn_error $? "conditional \"MINGW_W64\" was never defined.
23828Usually this means the macro was only invoked conditionally." "$LINENO" 5
23829fi
23830
23831: "${CONFIG_STATUS=./config.status}"
23832ac_write_fail=0
23833ac_clean_files_save=$ac_clean_files
23834ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23835{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23836$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23837as_write_fail=0
23838cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23839#! $SHELL
23840# Generated by $as_me.
23841# Run this file to recreate the current configuration.
23842# Compiler output produced by configure, useful for debugging
23843# configure, is in config.log if it exists.
23844
23845debug=false
23846ac_cs_recheck=false
23847ac_cs_silent=false
23848
23849SHELL=\${CONFIG_SHELL-$SHELL}
23850export SHELL
23851_ASEOF
23852cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23853## -------------------- ##
23854## M4sh Initialization. ##
23855## -------------------- ##
23856
23857# Be more Bourne compatible
23858DUALCASE=1; export DUALCASE # for MKS sh
23859if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23860  emulate sh
23861  NULLCMD=:
23862  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23863  # is contrary to our usage.  Disable this feature.
23864  alias -g '${1+"$@"}'='"$@"'
23865  setopt NO_GLOB_SUBST
23866else
23867  case `(set -o) 2>/dev/null` in #(
23868  *posix*) :
23869    set -o posix ;; #(
23870  *) :
23871     ;;
23872esac
23873fi
23874
23875
23876as_nl='
23877'
23878export as_nl
23879# Printing a long string crashes Solaris 7 /usr/bin/printf.
23880as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23883# Prefer a ksh shell builtin over an external printf program on Solaris,
23884# but without wasting forks for bash or zsh.
23885if test -z "$BASH_VERSION$ZSH_VERSION" \
23886    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23887  as_echo='print -r --'
23888  as_echo_n='print -rn --'
23889elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23890  as_echo='printf %s\n'
23891  as_echo_n='printf %s'
23892else
23893  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23894    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23895    as_echo_n='/usr/ucb/echo -n'
23896  else
23897    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23898    as_echo_n_body='eval
23899      arg=$1;
23900      case $arg in #(
23901      *"$as_nl"*)
23902	expr "X$arg" : "X\\(.*\\)$as_nl";
23903	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23904      esac;
23905      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23906    '
23907    export as_echo_n_body
23908    as_echo_n='sh -c $as_echo_n_body as_echo'
23909  fi
23910  export as_echo_body
23911  as_echo='sh -c $as_echo_body as_echo'
23912fi
23913
23914# The user is always right.
23915if test "${PATH_SEPARATOR+set}" != set; then
23916  PATH_SEPARATOR=:
23917  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23918    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23919      PATH_SEPARATOR=';'
23920  }
23921fi
23922
23923
23924# IFS
23925# We need space, tab and new line, in precisely that order.  Quoting is
23926# there to prevent editors from complaining about space-tab.
23927# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23928# splitting by setting IFS to empty value.)
23929IFS=" ""	$as_nl"
23930
23931# Find who we are.  Look in the path if we contain no directory separator.
23932as_myself=
23933case $0 in #((
23934  *[\\/]* ) as_myself=$0 ;;
23935  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23936for as_dir in $PATH
23937do
23938  IFS=$as_save_IFS
23939  test -z "$as_dir" && as_dir=.
23940    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23941  done
23942IFS=$as_save_IFS
23943
23944     ;;
23945esac
23946# We did not find ourselves, most probably we were run as `sh COMMAND'
23947# in which case we are not to be found in the path.
23948if test "x$as_myself" = x; then
23949  as_myself=$0
23950fi
23951if test ! -f "$as_myself"; then
23952  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23953  exit 1
23954fi
23955
23956# Unset variables that we do not need and which cause bugs (e.g. in
23957# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23958# suppresses any "Segmentation fault" message there.  '((' could
23959# trigger a bug in pdksh 5.2.14.
23960for as_var in BASH_ENV ENV MAIL MAILPATH
23961do eval test x\${$as_var+set} = xset \
23962  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23963done
23964PS1='$ '
23965PS2='> '
23966PS4='+ '
23967
23968# NLS nuisances.
23969LC_ALL=C
23970export LC_ALL
23971LANGUAGE=C
23972export LANGUAGE
23973
23974# CDPATH.
23975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23976
23977
23978# as_fn_error STATUS ERROR [LINENO LOG_FD]
23979# ----------------------------------------
23980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23981# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23982# script with STATUS, using 1 if that was 0.
23983as_fn_error ()
23984{
23985  as_status=$1; test $as_status -eq 0 && as_status=1
23986  if test "$4"; then
23987    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23988    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23989  fi
23990  $as_echo "$as_me: error: $2" >&2
23991  as_fn_exit $as_status
23992} # as_fn_error
23993
23994
23995# as_fn_set_status STATUS
23996# -----------------------
23997# Set $? to STATUS, without forking.
23998as_fn_set_status ()
23999{
24000  return $1
24001} # as_fn_set_status
24002
24003# as_fn_exit STATUS
24004# -----------------
24005# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24006as_fn_exit ()
24007{
24008  set +e
24009  as_fn_set_status $1
24010  exit $1
24011} # as_fn_exit
24012
24013# as_fn_unset VAR
24014# ---------------
24015# Portably unset VAR.
24016as_fn_unset ()
24017{
24018  { eval $1=; unset $1;}
24019}
24020as_unset=as_fn_unset
24021# as_fn_append VAR VALUE
24022# ----------------------
24023# Append the text in VALUE to the end of the definition contained in VAR. Take
24024# advantage of any shell optimizations that allow amortized linear growth over
24025# repeated appends, instead of the typical quadratic growth present in naive
24026# implementations.
24027if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24028  eval 'as_fn_append ()
24029  {
24030    eval $1+=\$2
24031  }'
24032else
24033  as_fn_append ()
24034  {
24035    eval $1=\$$1\$2
24036  }
24037fi # as_fn_append
24038
24039# as_fn_arith ARG...
24040# ------------------
24041# Perform arithmetic evaluation on the ARGs, and store the result in the
24042# global $as_val. Take advantage of shells that can avoid forks. The arguments
24043# must be portable across $(()) and expr.
24044if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24045  eval 'as_fn_arith ()
24046  {
24047    as_val=$(( $* ))
24048  }'
24049else
24050  as_fn_arith ()
24051  {
24052    as_val=`expr "$@" || test $? -eq 1`
24053  }
24054fi # as_fn_arith
24055
24056
24057if expr a : '\(a\)' >/dev/null 2>&1 &&
24058   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24059  as_expr=expr
24060else
24061  as_expr=false
24062fi
24063
24064if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24065  as_basename=basename
24066else
24067  as_basename=false
24068fi
24069
24070if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24071  as_dirname=dirname
24072else
24073  as_dirname=false
24074fi
24075
24076as_me=`$as_basename -- "$0" ||
24077$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24078	 X"$0" : 'X\(//\)$' \| \
24079	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24080$as_echo X/"$0" |
24081    sed '/^.*\/\([^/][^/]*\)\/*$/{
24082	    s//\1/
24083	    q
24084	  }
24085	  /^X\/\(\/\/\)$/{
24086	    s//\1/
24087	    q
24088	  }
24089	  /^X\/\(\/\).*/{
24090	    s//\1/
24091	    q
24092	  }
24093	  s/.*/./; q'`
24094
24095# Avoid depending upon Character Ranges.
24096as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24097as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24098as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24099as_cr_digits='0123456789'
24100as_cr_alnum=$as_cr_Letters$as_cr_digits
24101
24102ECHO_C= ECHO_N= ECHO_T=
24103case `echo -n x` in #(((((
24104-n*)
24105  case `echo 'xy\c'` in
24106  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24107  xy)  ECHO_C='\c';;
24108  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24109       ECHO_T='	';;
24110  esac;;
24111*)
24112  ECHO_N='-n';;
24113esac
24114
24115rm -f conf$$ conf$$.exe conf$$.file
24116if test -d conf$$.dir; then
24117  rm -f conf$$.dir/conf$$.file
24118else
24119  rm -f conf$$.dir
24120  mkdir conf$$.dir 2>/dev/null
24121fi
24122if (echo >conf$$.file) 2>/dev/null; then
24123  if ln -s conf$$.file conf$$ 2>/dev/null; then
24124    as_ln_s='ln -s'
24125    # ... but there are two gotchas:
24126    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24127    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24128    # In both cases, we have to default to `cp -pR'.
24129    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24130      as_ln_s='cp -pR'
24131  elif ln conf$$.file conf$$ 2>/dev/null; then
24132    as_ln_s=ln
24133  else
24134    as_ln_s='cp -pR'
24135  fi
24136else
24137  as_ln_s='cp -pR'
24138fi
24139rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24140rmdir conf$$.dir 2>/dev/null
24141
24142
24143# as_fn_mkdir_p
24144# -------------
24145# Create "$as_dir" as a directory, including parents if necessary.
24146as_fn_mkdir_p ()
24147{
24148
24149  case $as_dir in #(
24150  -*) as_dir=./$as_dir;;
24151  esac
24152  test -d "$as_dir" || eval $as_mkdir_p || {
24153    as_dirs=
24154    while :; do
24155      case $as_dir in #(
24156      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24157      *) as_qdir=$as_dir;;
24158      esac
24159      as_dirs="'$as_qdir' $as_dirs"
24160      as_dir=`$as_dirname -- "$as_dir" ||
24161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24162	 X"$as_dir" : 'X\(//\)[^/]' \| \
24163	 X"$as_dir" : 'X\(//\)$' \| \
24164	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24165$as_echo X"$as_dir" |
24166    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24167	    s//\1/
24168	    q
24169	  }
24170	  /^X\(\/\/\)[^/].*/{
24171	    s//\1/
24172	    q
24173	  }
24174	  /^X\(\/\/\)$/{
24175	    s//\1/
24176	    q
24177	  }
24178	  /^X\(\/\).*/{
24179	    s//\1/
24180	    q
24181	  }
24182	  s/.*/./; q'`
24183      test -d "$as_dir" && break
24184    done
24185    test -z "$as_dirs" || eval "mkdir $as_dirs"
24186  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24187
24188
24189} # as_fn_mkdir_p
24190if mkdir -p . 2>/dev/null; then
24191  as_mkdir_p='mkdir -p "$as_dir"'
24192else
24193  test -d ./-p && rmdir ./-p
24194  as_mkdir_p=false
24195fi
24196
24197
24198# as_fn_executable_p FILE
24199# -----------------------
24200# Test if FILE is an executable regular file.
24201as_fn_executable_p ()
24202{
24203  test -f "$1" && test -x "$1"
24204} # as_fn_executable_p
24205as_test_x='test -x'
24206as_executable_p=as_fn_executable_p
24207
24208# Sed expression to map a string onto a valid CPP name.
24209as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24210
24211# Sed expression to map a string onto a valid variable name.
24212as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24213
24214
24215exec 6>&1
24216## ----------------------------------- ##
24217## Main body of $CONFIG_STATUS script. ##
24218## ----------------------------------- ##
24219_ASEOF
24220test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24221
24222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24223# Save the log message, to keep $0 and so on meaningful, and to
24224# report actual input values of CONFIG_FILES etc. instead of their
24225# values after options handling.
24226ac_log="
24227This file was extended by rrdtool $as_me 1.7.2, which was
24228generated by GNU Autoconf 2.69.  Invocation command line was
24229
24230  CONFIG_FILES    = $CONFIG_FILES
24231  CONFIG_HEADERS  = $CONFIG_HEADERS
24232  CONFIG_LINKS    = $CONFIG_LINKS
24233  CONFIG_COMMANDS = $CONFIG_COMMANDS
24234  $ $0 $@
24235
24236on `(hostname || uname -n) 2>/dev/null | sed 1q`
24237"
24238
24239_ACEOF
24240
24241case $ac_config_files in *"
24242"*) set x $ac_config_files; shift; ac_config_files=$*;;
24243esac
24244
24245case $ac_config_headers in *"
24246"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24247esac
24248
24249
24250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24251# Files that config.status was made for.
24252config_files="$ac_config_files"
24253config_headers="$ac_config_headers"
24254config_commands="$ac_config_commands"
24255
24256_ACEOF
24257
24258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24259ac_cs_usage="\
24260\`$as_me' instantiates files and other configuration actions
24261from templates according to the current configuration.  Unless the files
24262and actions are specified as TAGs, all are instantiated by default.
24263
24264Usage: $0 [OPTION]... [TAG]...
24265
24266  -h, --help       print this help, then exit
24267  -V, --version    print version number and configuration settings, then exit
24268      --config     print configuration, then exit
24269  -q, --quiet, --silent
24270                   do not print progress messages
24271  -d, --debug      don't remove temporary files
24272      --recheck    update $as_me by reconfiguring in the same conditions
24273      --file=FILE[:TEMPLATE]
24274                   instantiate the configuration file FILE
24275      --header=FILE[:TEMPLATE]
24276                   instantiate the configuration header FILE
24277
24278Configuration files:
24279$config_files
24280
24281Configuration headers:
24282$config_headers
24283
24284Configuration commands:
24285$config_commands
24286
24287Report bugs to the package provider."
24288
24289_ACEOF
24290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24291ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24292ac_cs_version="\\
24293rrdtool config.status 1.7.2
24294configured by $0, generated by GNU Autoconf 2.69,
24295  with options \\"\$ac_cs_config\\"
24296
24297Copyright (C) 2012 Free Software Foundation, Inc.
24298This config.status script is free software; the Free Software Foundation
24299gives unlimited permission to copy, distribute and modify it."
24300
24301ac_pwd='$ac_pwd'
24302srcdir='$srcdir'
24303INSTALL='$INSTALL'
24304MKDIR_P='$MKDIR_P'
24305AWK='$AWK'
24306test -n "\$AWK" || AWK=awk
24307_ACEOF
24308
24309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24310# The default lists apply if the user does not specify any file.
24311ac_need_defaults=:
24312while test $# != 0
24313do
24314  case $1 in
24315  --*=?*)
24316    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24317    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24318    ac_shift=:
24319    ;;
24320  --*=)
24321    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24322    ac_optarg=
24323    ac_shift=:
24324    ;;
24325  *)
24326    ac_option=$1
24327    ac_optarg=$2
24328    ac_shift=shift
24329    ;;
24330  esac
24331
24332  case $ac_option in
24333  # Handling of the options.
24334  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24335    ac_cs_recheck=: ;;
24336  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24337    $as_echo "$ac_cs_version"; exit ;;
24338  --config | --confi | --conf | --con | --co | --c )
24339    $as_echo "$ac_cs_config"; exit ;;
24340  --debug | --debu | --deb | --de | --d | -d )
24341    debug=: ;;
24342  --file | --fil | --fi | --f )
24343    $ac_shift
24344    case $ac_optarg in
24345    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24346    '') as_fn_error $? "missing file argument" ;;
24347    esac
24348    as_fn_append CONFIG_FILES " '$ac_optarg'"
24349    ac_need_defaults=false;;
24350  --header | --heade | --head | --hea )
24351    $ac_shift
24352    case $ac_optarg in
24353    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24354    esac
24355    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24356    ac_need_defaults=false;;
24357  --he | --h)
24358    # Conflict between --help and --header
24359    as_fn_error $? "ambiguous option: \`$1'
24360Try \`$0 --help' for more information.";;
24361  --help | --hel | -h )
24362    $as_echo "$ac_cs_usage"; exit ;;
24363  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24364  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24365    ac_cs_silent=: ;;
24366
24367  # This is an error.
24368  -*) as_fn_error $? "unrecognized option: \`$1'
24369Try \`$0 --help' for more information." ;;
24370
24371  *) as_fn_append ac_config_targets " $1"
24372     ac_need_defaults=false ;;
24373
24374  esac
24375  shift
24376done
24377
24378ac_configure_extra_args=
24379
24380if $ac_cs_silent; then
24381  exec 6>/dev/null
24382  ac_configure_extra_args="$ac_configure_extra_args --silent"
24383fi
24384
24385_ACEOF
24386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24387if \$ac_cs_recheck; then
24388  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24389  shift
24390  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24391  CONFIG_SHELL='$SHELL'
24392  export CONFIG_SHELL
24393  exec "\$@"
24394fi
24395
24396_ACEOF
24397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24398exec 5>>config.log
24399{
24400  echo
24401  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24402## Running $as_me. ##
24403_ASBOX
24404  $as_echo "$ac_log"
24405} >&5
24406
24407_ACEOF
24408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24409#
24410# INIT-COMMANDS
24411#
24412AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24413
24414
24415# The HP-UX ksh and POSIX shell print the target directory to stdout
24416# if CDPATH is set.
24417(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24418
24419sed_quote_subst='$sed_quote_subst'
24420double_quote_subst='$double_quote_subst'
24421delay_variable_subst='$delay_variable_subst'
24422macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24423macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24424enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24425enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24426pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24427enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24428shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24429SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24430ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24431PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24432host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24433host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24434host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24435build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24436build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24437build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24438SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24439Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24440GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24441EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24442FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24443LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24444NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24445LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24446max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24447ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24448exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24449lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24450lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24451lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24452lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24453lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24454reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24455reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24456OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24457deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24458file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24459file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24460want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24461DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24462sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24463AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24464AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24465archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24466STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24467RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24468old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24469old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24470old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24471lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24472CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24473CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24474compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24475GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24476lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24477lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24478lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24479lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24480lt_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"`'
24481lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24482nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24483lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24484lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24485objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24486MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24487lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24488lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24489lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24490lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24491lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24492need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24493MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24494DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24495NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24496LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24497OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24498OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24499libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24500shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24501extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24502archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24503enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24504export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24505whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24506compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24507old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24508old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24509archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24510archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24511module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24512module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24513with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24514allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24515no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24516hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24517hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24518hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24519hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24520hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24521hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24522hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24523inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24524link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24525always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24526export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24527exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24528include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24529prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24530postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24531file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24532variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24533need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24534need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24535version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24536runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24537shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24538shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24539libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24540library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24541soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24542install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24543postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24544postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24545finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24546finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24547hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24548sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24549configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24550configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24551hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24552enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24553enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24554enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24555old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24556striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24557
24558LTCC='$LTCC'
24559LTCFLAGS='$LTCFLAGS'
24560compiler='$compiler_DEFAULT'
24561
24562# A function that is used when there is no print builtin or printf.
24563func_fallback_echo ()
24564{
24565  eval 'cat <<_LTECHO_EOF
24566\$1
24567_LTECHO_EOF'
24568}
24569
24570# Quote evaled strings.
24571for var in SHELL \
24572ECHO \
24573PATH_SEPARATOR \
24574SED \
24575GREP \
24576EGREP \
24577FGREP \
24578LD \
24579NM \
24580LN_S \
24581lt_SP2NL \
24582lt_NL2SP \
24583reload_flag \
24584OBJDUMP \
24585deplibs_check_method \
24586file_magic_cmd \
24587file_magic_glob \
24588want_nocaseglob \
24589DLLTOOL \
24590sharedlib_from_linklib_cmd \
24591AR \
24592AR_FLAGS \
24593archiver_list_spec \
24594STRIP \
24595RANLIB \
24596CC \
24597CFLAGS \
24598compiler \
24599lt_cv_sys_global_symbol_pipe \
24600lt_cv_sys_global_symbol_to_cdecl \
24601lt_cv_sys_global_symbol_to_import \
24602lt_cv_sys_global_symbol_to_c_name_address \
24603lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24604lt_cv_nm_interface \
24605nm_file_list_spec \
24606lt_cv_truncate_bin \
24607lt_prog_compiler_no_builtin_flag \
24608lt_prog_compiler_pic \
24609lt_prog_compiler_wl \
24610lt_prog_compiler_static \
24611lt_cv_prog_compiler_c_o \
24612need_locks \
24613MANIFEST_TOOL \
24614DSYMUTIL \
24615NMEDIT \
24616LIPO \
24617OTOOL \
24618OTOOL64 \
24619shrext_cmds \
24620export_dynamic_flag_spec \
24621whole_archive_flag_spec \
24622compiler_needs_object \
24623with_gnu_ld \
24624allow_undefined_flag \
24625no_undefined_flag \
24626hardcode_libdir_flag_spec \
24627hardcode_libdir_separator \
24628exclude_expsyms \
24629include_expsyms \
24630file_list_spec \
24631variables_saved_for_relink \
24632libname_spec \
24633library_names_spec \
24634soname_spec \
24635install_override_mode \
24636finish_eval \
24637old_striplib \
24638striplib; do
24639    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24640    *[\\\\\\\`\\"\\\$]*)
24641      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24642      ;;
24643    *)
24644      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24645      ;;
24646    esac
24647done
24648
24649# Double-quote double-evaled strings.
24650for var in reload_cmds \
24651old_postinstall_cmds \
24652old_postuninstall_cmds \
24653old_archive_cmds \
24654extract_expsyms_cmds \
24655old_archive_from_new_cmds \
24656old_archive_from_expsyms_cmds \
24657archive_cmds \
24658archive_expsym_cmds \
24659module_cmds \
24660module_expsym_cmds \
24661export_symbols_cmds \
24662prelink_cmds \
24663postlink_cmds \
24664postinstall_cmds \
24665postuninstall_cmds \
24666finish_cmds \
24667sys_lib_search_path_spec \
24668configure_time_dlsearch_path \
24669configure_time_lt_sys_library_path; do
24670    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24671    *[\\\\\\\`\\"\\\$]*)
24672      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24673      ;;
24674    *)
24675      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24676      ;;
24677    esac
24678done
24679
24680ac_aux_dir='$ac_aux_dir'
24681
24682# See if we are running on zsh, and set the options that allow our
24683# commands through without removal of \ escapes INIT.
24684if test -n "\${ZSH_VERSION+set}"; then
24685   setopt NO_GLOB_SUBST
24686fi
24687
24688
24689    PACKAGE='$PACKAGE'
24690    VERSION='$VERSION'
24691    RM='$RM'
24692    ofile='$ofile'
24693
24694
24695
24696# Capture the value of obsolete ALL_LINGUAS because we need it to compute
24697    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24698    # from automake < 1.5.
24699    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24700    # Capture the value of LINGUAS because we need it to compute CATALOGS.
24701    LINGUAS="${LINGUAS-%UNSET%}"
24702
24703
24704_ACEOF
24705
24706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24707
24708# Handling of arguments.
24709for ac_config_target in $ac_config_targets
24710do
24711  case $ac_config_target in
24712    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24713    "src/rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/rrd_config.h" ;;
24714    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24715    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24716    "etc/rrdcached.socket") CONFIG_FILES="$CONFIG_FILES etc/rrdcached.socket" ;;
24717    "etc/rrdcached.service") CONFIG_FILES="$CONFIG_FILES etc/rrdcached.service" ;;
24718
24719  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24720  esac
24721done
24722
24723
24724# If the user did not use the arguments to specify the items to instantiate,
24725# then the envvar interface is used.  Set only those that are not.
24726# We use the long form for the default assignment because of an extremely
24727# bizarre bug on SunOS 4.1.3.
24728if $ac_need_defaults; then
24729  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24730  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24731  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24732fi
24733
24734# Have a temporary directory for convenience.  Make it in the build tree
24735# simply because there is no reason against having it here, and in addition,
24736# creating and moving files from /tmp can sometimes cause problems.
24737# Hook for its removal unless debugging.
24738# Note that there is a small window in which the directory will not be cleaned:
24739# after its creation but before its name has been assigned to `$tmp'.
24740$debug ||
24741{
24742  tmp= ac_tmp=
24743  trap 'exit_status=$?
24744  : "${ac_tmp:=$tmp}"
24745  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24746' 0
24747  trap 'as_fn_exit 1' 1 2 13 15
24748}
24749# Create a (secure) tmp directory for tmp files.
24750
24751{
24752  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24753  test -d "$tmp"
24754}  ||
24755{
24756  tmp=./conf$$-$RANDOM
24757  (umask 077 && mkdir "$tmp")
24758} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24759ac_tmp=$tmp
24760
24761# Set up the scripts for CONFIG_FILES section.
24762# No need to generate them if there are no CONFIG_FILES.
24763# This happens for instance with `./config.status config.h'.
24764if test -n "$CONFIG_FILES"; then
24765
24766
24767ac_cr=`echo X | tr X '\015'`
24768# On cygwin, bash can eat \r inside `` if the user requested igncr.
24769# But we know of no other shell where ac_cr would be empty at this
24770# point, so we can use a bashism as a fallback.
24771if test "x$ac_cr" = x; then
24772  eval ac_cr=\$\'\\r\'
24773fi
24774ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24775if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24776  ac_cs_awk_cr='\\r'
24777else
24778  ac_cs_awk_cr=$ac_cr
24779fi
24780
24781echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24782_ACEOF
24783
24784
24785{
24786  echo "cat >conf$$subs.awk <<_ACEOF" &&
24787  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24788  echo "_ACEOF"
24789} >conf$$subs.sh ||
24790  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24791ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24792ac_delim='%!_!# '
24793for ac_last_try in false false false false false :; do
24794  . ./conf$$subs.sh ||
24795    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24796
24797  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24798  if test $ac_delim_n = $ac_delim_num; then
24799    break
24800  elif $ac_last_try; then
24801    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24802  else
24803    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24804  fi
24805done
24806rm -f conf$$subs.sh
24807
24808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24809cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24810_ACEOF
24811sed -n '
24812h
24813s/^/S["/; s/!.*/"]=/
24814p
24815g
24816s/^[^!]*!//
24817:repl
24818t repl
24819s/'"$ac_delim"'$//
24820t delim
24821:nl
24822h
24823s/\(.\{148\}\)..*/\1/
24824t more1
24825s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24826p
24827n
24828b repl
24829:more1
24830s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24831p
24832g
24833s/.\{148\}//
24834t nl
24835:delim
24836h
24837s/\(.\{148\}\)..*/\1/
24838t more2
24839s/["\\]/\\&/g; s/^/"/; s/$/"/
24840p
24841b
24842:more2
24843s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24844p
24845g
24846s/.\{148\}//
24847t delim
24848' <conf$$subs.awk | sed '
24849/^[^""]/{
24850  N
24851  s/\n//
24852}
24853' >>$CONFIG_STATUS || ac_write_fail=1
24854rm -f conf$$subs.awk
24855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24856_ACAWK
24857cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24858  for (key in S) S_is_set[key] = 1
24859  FS = ""
24860
24861}
24862{
24863  line = $ 0
24864  nfields = split(line, field, "@")
24865  substed = 0
24866  len = length(field[1])
24867  for (i = 2; i < nfields; i++) {
24868    key = field[i]
24869    keylen = length(key)
24870    if (S_is_set[key]) {
24871      value = S[key]
24872      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24873      len += length(value) + length(field[++i])
24874      substed = 1
24875    } else
24876      len += 1 + keylen
24877  }
24878
24879  print line
24880}
24881
24882_ACAWK
24883_ACEOF
24884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24885if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24886  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24887else
24888  cat
24889fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24890  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24891_ACEOF
24892
24893# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24894# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24895# trailing colons and then remove the whole line if VPATH becomes empty
24896# (actually we leave an empty line to preserve line numbers).
24897if test "x$srcdir" = x.; then
24898  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24899h
24900s///
24901s/^/:/
24902s/[	 ]*$/:/
24903s/:\$(srcdir):/:/g
24904s/:\${srcdir}:/:/g
24905s/:@srcdir@:/:/g
24906s/^:*//
24907s/:*$//
24908x
24909s/\(=[	 ]*\).*/\1/
24910G
24911s/\n//
24912s/^[^=]*=[	 ]*$//
24913}'
24914fi
24915
24916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24917fi # test -n "$CONFIG_FILES"
24918
24919# Set up the scripts for CONFIG_HEADERS section.
24920# No need to generate them if there are no CONFIG_HEADERS.
24921# This happens for instance with `./config.status Makefile'.
24922if test -n "$CONFIG_HEADERS"; then
24923cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24924BEGIN {
24925_ACEOF
24926
24927# Transform confdefs.h into an awk script `defines.awk', embedded as
24928# here-document in config.status, that substitutes the proper values into
24929# config.h.in to produce config.h.
24930
24931# Create a delimiter string that does not exist in confdefs.h, to ease
24932# handling of long lines.
24933ac_delim='%!_!# '
24934for ac_last_try in false false :; do
24935  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24936  if test -z "$ac_tt"; then
24937    break
24938  elif $ac_last_try; then
24939    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24940  else
24941    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24942  fi
24943done
24944
24945# For the awk script, D is an array of macro values keyed by name,
24946# likewise P contains macro parameters if any.  Preserve backslash
24947# newline sequences.
24948
24949ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24950sed -n '
24951s/.\{148\}/&'"$ac_delim"'/g
24952t rset
24953:rset
24954s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24955t def
24956d
24957:def
24958s/\\$//
24959t bsnl
24960s/["\\]/\\&/g
24961s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24962D["\1"]=" \3"/p
24963s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24964d
24965:bsnl
24966s/["\\]/\\&/g
24967s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24968D["\1"]=" \3\\\\\\n"\\/p
24969t cont
24970s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24971t cont
24972d
24973:cont
24974n
24975s/.\{148\}/&'"$ac_delim"'/g
24976t clear
24977:clear
24978s/\\$//
24979t bsnlc
24980s/["\\]/\\&/g; s/^/"/; s/$/"/p
24981d
24982:bsnlc
24983s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24984b cont
24985' <confdefs.h | sed '
24986s/'"$ac_delim"'/"\\\
24987"/g' >>$CONFIG_STATUS || ac_write_fail=1
24988
24989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24990  for (key in D) D_is_set[key] = 1
24991  FS = ""
24992}
24993/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24994  line = \$ 0
24995  split(line, arg, " ")
24996  if (arg[1] == "#") {
24997    defundef = arg[2]
24998    mac1 = arg[3]
24999  } else {
25000    defundef = substr(arg[1], 2)
25001    mac1 = arg[2]
25002  }
25003  split(mac1, mac2, "(") #)
25004  macro = mac2[1]
25005  prefix = substr(line, 1, index(line, defundef) - 1)
25006  if (D_is_set[macro]) {
25007    # Preserve the white space surrounding the "#".
25008    print prefix "define", macro P[macro] D[macro]
25009    next
25010  } else {
25011    # Replace #undef with comments.  This is necessary, for example,
25012    # in the case of _POSIX_SOURCE, which is predefined and required
25013    # on some systems where configure will not decide to define it.
25014    if (defundef == "undef") {
25015      print "/*", prefix defundef, macro, "*/"
25016      next
25017    }
25018  }
25019}
25020{ print }
25021_ACAWK
25022_ACEOF
25023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25024  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25025fi # test -n "$CONFIG_HEADERS"
25026
25027
25028eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25029shift
25030for ac_tag
25031do
25032  case $ac_tag in
25033  :[FHLC]) ac_mode=$ac_tag; continue;;
25034  esac
25035  case $ac_mode$ac_tag in
25036  :[FHL]*:*);;
25037  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25038  :[FH]-) ac_tag=-:-;;
25039  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25040  esac
25041  ac_save_IFS=$IFS
25042  IFS=:
25043  set x $ac_tag
25044  IFS=$ac_save_IFS
25045  shift
25046  ac_file=$1
25047  shift
25048
25049  case $ac_mode in
25050  :L) ac_source=$1;;
25051  :[FH])
25052    ac_file_inputs=
25053    for ac_f
25054    do
25055      case $ac_f in
25056      -) ac_f="$ac_tmp/stdin";;
25057      *) # Look for the file first in the build tree, then in the source tree
25058	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25059	 # because $ac_f cannot contain `:'.
25060	 test -f "$ac_f" ||
25061	   case $ac_f in
25062	   [\\/$]*) false;;
25063	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25064	   esac ||
25065	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25066      esac
25067      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25068      as_fn_append ac_file_inputs " '$ac_f'"
25069    done
25070
25071    # Let's still pretend it is `configure' which instantiates (i.e., don't
25072    # use $as_me), people would be surprised to read:
25073    #    /* config.h.  Generated by config.status.  */
25074    configure_input='Generated from '`
25075	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25076	`' by configure.'
25077    if test x"$ac_file" != x-; then
25078      configure_input="$ac_file.  $configure_input"
25079      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25080$as_echo "$as_me: creating $ac_file" >&6;}
25081    fi
25082    # Neutralize special characters interpreted by sed in replacement strings.
25083    case $configure_input in #(
25084    *\&* | *\|* | *\\* )
25085       ac_sed_conf_input=`$as_echo "$configure_input" |
25086       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25087    *) ac_sed_conf_input=$configure_input;;
25088    esac
25089
25090    case $ac_tag in
25091    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25092      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25093    esac
25094    ;;
25095  esac
25096
25097  ac_dir=`$as_dirname -- "$ac_file" ||
25098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25099	 X"$ac_file" : 'X\(//\)[^/]' \| \
25100	 X"$ac_file" : 'X\(//\)$' \| \
25101	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25102$as_echo X"$ac_file" |
25103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25104	    s//\1/
25105	    q
25106	  }
25107	  /^X\(\/\/\)[^/].*/{
25108	    s//\1/
25109	    q
25110	  }
25111	  /^X\(\/\/\)$/{
25112	    s//\1/
25113	    q
25114	  }
25115	  /^X\(\/\).*/{
25116	    s//\1/
25117	    q
25118	  }
25119	  s/.*/./; q'`
25120  as_dir="$ac_dir"; as_fn_mkdir_p
25121  ac_builddir=.
25122
25123case "$ac_dir" in
25124.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25125*)
25126  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25127  # A ".." for each directory in $ac_dir_suffix.
25128  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25129  case $ac_top_builddir_sub in
25130  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25131  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25132  esac ;;
25133esac
25134ac_abs_top_builddir=$ac_pwd
25135ac_abs_builddir=$ac_pwd$ac_dir_suffix
25136# for backward compatibility:
25137ac_top_builddir=$ac_top_build_prefix
25138
25139case $srcdir in
25140  .)  # We are building in place.
25141    ac_srcdir=.
25142    ac_top_srcdir=$ac_top_builddir_sub
25143    ac_abs_top_srcdir=$ac_pwd ;;
25144  [\\/]* | ?:[\\/]* )  # Absolute name.
25145    ac_srcdir=$srcdir$ac_dir_suffix;
25146    ac_top_srcdir=$srcdir
25147    ac_abs_top_srcdir=$srcdir ;;
25148  *) # Relative name.
25149    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25150    ac_top_srcdir=$ac_top_build_prefix$srcdir
25151    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25152esac
25153ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25154
25155
25156  case $ac_mode in
25157  :F)
25158  #
25159  # CONFIG_FILE
25160  #
25161
25162  case $INSTALL in
25163  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25164  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25165  esac
25166  ac_MKDIR_P=$MKDIR_P
25167  case $MKDIR_P in
25168  [\\/$]* | ?:[\\/]* ) ;;
25169  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25170  esac
25171_ACEOF
25172
25173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25174# If the template does not know about datarootdir, expand it.
25175# FIXME: This hack should be removed a few years after 2.60.
25176ac_datarootdir_hack=; ac_datarootdir_seen=
25177ac_sed_dataroot='
25178/datarootdir/ {
25179  p
25180  q
25181}
25182/@datadir@/p
25183/@docdir@/p
25184/@infodir@/p
25185/@localedir@/p
25186/@mandir@/p'
25187case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25188*datarootdir*) ac_datarootdir_seen=yes;;
25189*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25190  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25191$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25192_ACEOF
25193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25194  ac_datarootdir_hack='
25195  s&@datadir@&$datadir&g
25196  s&@docdir@&$docdir&g
25197  s&@infodir@&$infodir&g
25198  s&@localedir@&$localedir&g
25199  s&@mandir@&$mandir&g
25200  s&\\\${datarootdir}&$datarootdir&g' ;;
25201esac
25202_ACEOF
25203
25204# Neutralize VPATH when `$srcdir' = `.'.
25205# Shell code in configure.ac might set extrasub.
25206# FIXME: do we really want to maintain this feature?
25207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25208ac_sed_extra="$ac_vpsub
25209$extrasub
25210_ACEOF
25211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25212:t
25213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25214s|@configure_input@|$ac_sed_conf_input|;t t
25215s&@top_builddir@&$ac_top_builddir_sub&;t t
25216s&@top_build_prefix@&$ac_top_build_prefix&;t t
25217s&@srcdir@&$ac_srcdir&;t t
25218s&@abs_srcdir@&$ac_abs_srcdir&;t t
25219s&@top_srcdir@&$ac_top_srcdir&;t t
25220s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25221s&@builddir@&$ac_builddir&;t t
25222s&@abs_builddir@&$ac_abs_builddir&;t t
25223s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25224s&@INSTALL@&$ac_INSTALL&;t t
25225s&@MKDIR_P@&$ac_MKDIR_P&;t t
25226$ac_datarootdir_hack
25227"
25228eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25229  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25230
25231test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25232  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25233  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25234      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25235  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25236which seems to be undefined.  Please make sure it is defined" >&5
25237$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25238which seems to be undefined.  Please make sure it is defined" >&2;}
25239
25240  rm -f "$ac_tmp/stdin"
25241  case $ac_file in
25242  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25243  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25244  esac \
25245  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25246 ;;
25247  :H)
25248  #
25249  # CONFIG_HEADER
25250  #
25251  if test x"$ac_file" != x-; then
25252    {
25253      $as_echo "/* $configure_input  */" \
25254      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25255    } >"$ac_tmp/config.h" \
25256      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25257    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25258      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25259$as_echo "$as_me: $ac_file is unchanged" >&6;}
25260    else
25261      rm -f "$ac_file"
25262      mv "$ac_tmp/config.h" "$ac_file" \
25263	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25264    fi
25265  else
25266    $as_echo "/* $configure_input  */" \
25267      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25268      || as_fn_error $? "could not create -" "$LINENO" 5
25269  fi
25270# Compute "$ac_file"'s index in $config_headers.
25271_am_arg="$ac_file"
25272_am_stamp_count=1
25273for _am_header in $config_headers :; do
25274  case $_am_header in
25275    $_am_arg | $_am_arg:* )
25276      break ;;
25277    * )
25278      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25279  esac
25280done
25281echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25282$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25283	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25284	 X"$_am_arg" : 'X\(//\)$' \| \
25285	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25286$as_echo X"$_am_arg" |
25287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25288	    s//\1/
25289	    q
25290	  }
25291	  /^X\(\/\/\)[^/].*/{
25292	    s//\1/
25293	    q
25294	  }
25295	  /^X\(\/\/\)$/{
25296	    s//\1/
25297	    q
25298	  }
25299	  /^X\(\/\).*/{
25300	    s//\1/
25301	    q
25302	  }
25303	  s/.*/./; q'`/stamp-h$_am_stamp_count
25304 ;;
25305
25306  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25307$as_echo "$as_me: executing $ac_file commands" >&6;}
25308 ;;
25309  esac
25310
25311
25312  case $ac_file$ac_mode in
25313    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25314  # Older Autoconf quotes --file arguments for eval, but not when files
25315  # are listed without --file.  Let's play safe and only enable the eval
25316  # if we detect the quoting.
25317  case $CONFIG_FILES in
25318  *\'*) eval set x "$CONFIG_FILES" ;;
25319  *)   set x $CONFIG_FILES ;;
25320  esac
25321  shift
25322  for mf
25323  do
25324    # Strip MF so we end up with the name of the file.
25325    mf=`echo "$mf" | sed -e 's/:.*$//'`
25326    # Check whether this is an Automake generated Makefile or not.
25327    # We used to match only the files named 'Makefile.in', but
25328    # some people rename them; so instead we look at the file content.
25329    # Grep'ing the first line is not enough: some people post-process
25330    # each Makefile.in and add a new line on top of each file to say so.
25331    # Grep'ing the whole file is not good either: AIX grep has a line
25332    # limit of 2048, but all sed's we know have understand at least 4000.
25333    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25334      dirpart=`$as_dirname -- "$mf" ||
25335$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25336	 X"$mf" : 'X\(//\)[^/]' \| \
25337	 X"$mf" : 'X\(//\)$' \| \
25338	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25339$as_echo X"$mf" |
25340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25341	    s//\1/
25342	    q
25343	  }
25344	  /^X\(\/\/\)[^/].*/{
25345	    s//\1/
25346	    q
25347	  }
25348	  /^X\(\/\/\)$/{
25349	    s//\1/
25350	    q
25351	  }
25352	  /^X\(\/\).*/{
25353	    s//\1/
25354	    q
25355	  }
25356	  s/.*/./; q'`
25357    else
25358      continue
25359    fi
25360    # Extract the definition of DEPDIR, am__include, and am__quote
25361    # from the Makefile without running 'make'.
25362    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25363    test -z "$DEPDIR" && continue
25364    am__include=`sed -n 's/^am__include = //p' < "$mf"`
25365    test -z "$am__include" && continue
25366    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25367    # Find all dependency output files, they are included files with
25368    # $(DEPDIR) in their names.  We invoke sed twice because it is the
25369    # simplest approach to changing $(DEPDIR) to its actual value in the
25370    # expansion.
25371    for file in `sed -n "
25372      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25373	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25374      # Make sure the directory exists.
25375      test -f "$dirpart/$file" && continue
25376      fdir=`$as_dirname -- "$file" ||
25377$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25378	 X"$file" : 'X\(//\)[^/]' \| \
25379	 X"$file" : 'X\(//\)$' \| \
25380	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25381$as_echo X"$file" |
25382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25383	    s//\1/
25384	    q
25385	  }
25386	  /^X\(\/\/\)[^/].*/{
25387	    s//\1/
25388	    q
25389	  }
25390	  /^X\(\/\/\)$/{
25391	    s//\1/
25392	    q
25393	  }
25394	  /^X\(\/\).*/{
25395	    s//\1/
25396	    q
25397	  }
25398	  s/.*/./; q'`
25399      as_dir=$dirpart/$fdir; as_fn_mkdir_p
25400      # echo "creating $dirpart/$file"
25401      echo '# dummy' > "$dirpart/$file"
25402    done
25403  done
25404}
25405 ;;
25406    "libtool":C)
25407
25408    # See if we are running on zsh, and set the options that allow our
25409    # commands through without removal of \ escapes.
25410    if test -n "${ZSH_VERSION+set}"; then
25411      setopt NO_GLOB_SUBST
25412    fi
25413
25414    cfgfile=${ofile}T
25415    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25416    $RM "$cfgfile"
25417
25418    cat <<_LT_EOF >> "$cfgfile"
25419#! $SHELL
25420# Generated automatically by $as_me ($PACKAGE) $VERSION
25421# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25422
25423# Provide generalized library-building support services.
25424# Written by Gordon Matzigkeit, 1996
25425
25426# Copyright (C) 2014 Free Software Foundation, Inc.
25427# This is free software; see the source for copying conditions.  There is NO
25428# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25429
25430# GNU Libtool is free software; you can redistribute it and/or modify
25431# it under the terms of the GNU General Public License as published by
25432# the Free Software Foundation; either version 2 of of the License, or
25433# (at your option) any later version.
25434#
25435# As a special exception to the GNU General Public License, if you
25436# distribute this file as part of a program or library that is built
25437# using GNU Libtool, you may include this file under the  same
25438# distribution terms that you use for the rest of that program.
25439#
25440# GNU Libtool is distributed in the hope that it will be useful, but
25441# WITHOUT ANY WARRANTY; without even the implied warranty of
25442# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25443# GNU General Public License for more details.
25444#
25445# You should have received a copy of the GNU General Public License
25446# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25447
25448
25449# The names of the tagged configurations supported by this script.
25450available_tags=''
25451
25452# Configured defaults for sys_lib_dlsearch_path munging.
25453: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25454
25455# ### BEGIN LIBTOOL CONFIG
25456
25457# Which release of libtool.m4 was used?
25458macro_version=$macro_version
25459macro_revision=$macro_revision
25460
25461# Whether or not to build shared libraries.
25462build_libtool_libs=$enable_shared
25463
25464# Whether or not to build static libraries.
25465build_old_libs=$enable_static
25466
25467# What type of objects to build.
25468pic_mode=$pic_mode
25469
25470# Whether or not to optimize for fast installation.
25471fast_install=$enable_fast_install
25472
25473# Shared archive member basename,for filename based shared library versioning on AIX.
25474shared_archive_member_spec=$shared_archive_member_spec
25475
25476# Shell to use when invoking shell scripts.
25477SHELL=$lt_SHELL
25478
25479# An echo program that protects backslashes.
25480ECHO=$lt_ECHO
25481
25482# The PATH separator for the build system.
25483PATH_SEPARATOR=$lt_PATH_SEPARATOR
25484
25485# The host system.
25486host_alias=$host_alias
25487host=$host
25488host_os=$host_os
25489
25490# The build system.
25491build_alias=$build_alias
25492build=$build
25493build_os=$build_os
25494
25495# A sed program that does not truncate output.
25496SED=$lt_SED
25497
25498# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25499Xsed="\$SED -e 1s/^X//"
25500
25501# A grep program that handles long lines.
25502GREP=$lt_GREP
25503
25504# An ERE matcher.
25505EGREP=$lt_EGREP
25506
25507# A literal string matcher.
25508FGREP=$lt_FGREP
25509
25510# A BSD- or MS-compatible name lister.
25511NM=$lt_NM
25512
25513# Whether we need soft or hard links.
25514LN_S=$lt_LN_S
25515
25516# What is the maximum length of a command?
25517max_cmd_len=$max_cmd_len
25518
25519# Object file suffix (normally "o").
25520objext=$ac_objext
25521
25522# Executable file suffix (normally "").
25523exeext=$exeext
25524
25525# whether the shell understands "unset".
25526lt_unset=$lt_unset
25527
25528# turn spaces into newlines.
25529SP2NL=$lt_lt_SP2NL
25530
25531# turn newlines into spaces.
25532NL2SP=$lt_lt_NL2SP
25533
25534# convert \$build file names to \$host format.
25535to_host_file_cmd=$lt_cv_to_host_file_cmd
25536
25537# convert \$build files to toolchain format.
25538to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25539
25540# An object symbol dumper.
25541OBJDUMP=$lt_OBJDUMP
25542
25543# Method to check whether dependent libraries are shared objects.
25544deplibs_check_method=$lt_deplibs_check_method
25545
25546# Command to use when deplibs_check_method = "file_magic".
25547file_magic_cmd=$lt_file_magic_cmd
25548
25549# How to find potential files when deplibs_check_method = "file_magic".
25550file_magic_glob=$lt_file_magic_glob
25551
25552# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25553want_nocaseglob=$lt_want_nocaseglob
25554
25555# DLL creation program.
25556DLLTOOL=$lt_DLLTOOL
25557
25558# Command to associate shared and link libraries.
25559sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25560
25561# The archiver.
25562AR=$lt_AR
25563
25564# Flags to create an archive.
25565AR_FLAGS=$lt_AR_FLAGS
25566
25567# How to feed a file listing to the archiver.
25568archiver_list_spec=$lt_archiver_list_spec
25569
25570# A symbol stripping program.
25571STRIP=$lt_STRIP
25572
25573# Commands used to install an old-style archive.
25574RANLIB=$lt_RANLIB
25575old_postinstall_cmds=$lt_old_postinstall_cmds
25576old_postuninstall_cmds=$lt_old_postuninstall_cmds
25577
25578# Whether to use a lock for old archive extraction.
25579lock_old_archive_extraction=$lock_old_archive_extraction
25580
25581# A C compiler.
25582LTCC=$lt_CC
25583
25584# LTCC compiler flags.
25585LTCFLAGS=$lt_CFLAGS
25586
25587# Take the output of nm and produce a listing of raw symbols and C names.
25588global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25589
25590# Transform the output of nm in a proper C declaration.
25591global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25592
25593# Transform the output of nm into a list of symbols to manually relocate.
25594global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25595
25596# Transform the output of nm in a C name address pair.
25597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25598
25599# Transform the output of nm in a C name address pair when lib prefix is needed.
25600global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25601
25602# The name lister interface.
25603nm_interface=$lt_lt_cv_nm_interface
25604
25605# Specify filename containing input files for \$NM.
25606nm_file_list_spec=$lt_nm_file_list_spec
25607
25608# The root where to search for dependent libraries,and where our libraries should be installed.
25609lt_sysroot=$lt_sysroot
25610
25611# Command to truncate a binary pipe.
25612lt_truncate_bin=$lt_lt_cv_truncate_bin
25613
25614# The name of the directory that contains temporary libtool files.
25615objdir=$objdir
25616
25617# Used to examine libraries when file_magic_cmd begins with "file".
25618MAGIC_CMD=$MAGIC_CMD
25619
25620# Must we lock files when doing compilation?
25621need_locks=$lt_need_locks
25622
25623# Manifest tool.
25624MANIFEST_TOOL=$lt_MANIFEST_TOOL
25625
25626# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25627DSYMUTIL=$lt_DSYMUTIL
25628
25629# Tool to change global to local symbols on Mac OS X.
25630NMEDIT=$lt_NMEDIT
25631
25632# Tool to manipulate fat objects and archives on Mac OS X.
25633LIPO=$lt_LIPO
25634
25635# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25636OTOOL=$lt_OTOOL
25637
25638# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25639OTOOL64=$lt_OTOOL64
25640
25641# Old archive suffix (normally "a").
25642libext=$libext
25643
25644# Shared library suffix (normally ".so").
25645shrext_cmds=$lt_shrext_cmds
25646
25647# The commands to extract the exported symbol list from a shared archive.
25648extract_expsyms_cmds=$lt_extract_expsyms_cmds
25649
25650# Variables whose values should be saved in libtool wrapper scripts and
25651# restored at link time.
25652variables_saved_for_relink=$lt_variables_saved_for_relink
25653
25654# Do we need the "lib" prefix for modules?
25655need_lib_prefix=$need_lib_prefix
25656
25657# Do we need a version for libraries?
25658need_version=$need_version
25659
25660# Library versioning type.
25661version_type=$version_type
25662
25663# Shared library runtime path variable.
25664runpath_var=$runpath_var
25665
25666# Shared library path variable.
25667shlibpath_var=$shlibpath_var
25668
25669# Is shlibpath searched before the hard-coded library search path?
25670shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25671
25672# Format of library name prefix.
25673libname_spec=$lt_libname_spec
25674
25675# List of archive names.  First name is the real one, the rest are links.
25676# The last name is the one that the linker finds with -lNAME
25677library_names_spec=$lt_library_names_spec
25678
25679# The coded name of the library, if different from the real name.
25680soname_spec=$lt_soname_spec
25681
25682# Permission mode override for installation of shared libraries.
25683install_override_mode=$lt_install_override_mode
25684
25685# Command to use after installation of a shared archive.
25686postinstall_cmds=$lt_postinstall_cmds
25687
25688# Command to use after uninstallation of a shared archive.
25689postuninstall_cmds=$lt_postuninstall_cmds
25690
25691# Commands used to finish a libtool library installation in a directory.
25692finish_cmds=$lt_finish_cmds
25693
25694# As "finish_cmds", except a single script fragment to be evaled but
25695# not shown.
25696finish_eval=$lt_finish_eval
25697
25698# Whether we should hardcode library paths into libraries.
25699hardcode_into_libs=$hardcode_into_libs
25700
25701# Compile-time system search path for libraries.
25702sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25703
25704# Detected run-time system search path for libraries.
25705sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25706
25707# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25708configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25709
25710# Whether dlopen is supported.
25711dlopen_support=$enable_dlopen
25712
25713# Whether dlopen of programs is supported.
25714dlopen_self=$enable_dlopen_self
25715
25716# Whether dlopen of statically linked programs is supported.
25717dlopen_self_static=$enable_dlopen_self_static
25718
25719# Commands to strip libraries.
25720old_striplib=$lt_old_striplib
25721striplib=$lt_striplib
25722
25723
25724# The linker used to build libraries.
25725LD=$lt_LD
25726
25727# How to create reloadable object files.
25728reload_flag=$lt_reload_flag
25729reload_cmds=$lt_reload_cmds
25730
25731# Commands used to build an old-style archive.
25732old_archive_cmds=$lt_old_archive_cmds
25733
25734# A language specific compiler.
25735CC=$lt_compiler
25736
25737# Is the compiler the GNU compiler?
25738with_gcc=$GCC
25739
25740# Compiler flag to turn off builtin functions.
25741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25742
25743# Additional compiler flags for building library objects.
25744pic_flag=$lt_lt_prog_compiler_pic
25745
25746# How to pass a linker flag through the compiler.
25747wl=$lt_lt_prog_compiler_wl
25748
25749# Compiler flag to prevent dynamic linking.
25750link_static_flag=$lt_lt_prog_compiler_static
25751
25752# Does compiler simultaneously support -c and -o options?
25753compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25754
25755# Whether or not to add -lc for building shared libraries.
25756build_libtool_need_lc=$archive_cmds_need_lc
25757
25758# Whether or not to disallow shared libs when runtime libs are static.
25759allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25760
25761# Compiler flag to allow reflexive dlopens.
25762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25763
25764# Compiler flag to generate shared objects directly from archives.
25765whole_archive_flag_spec=$lt_whole_archive_flag_spec
25766
25767# Whether the compiler copes with passing no objects directly.
25768compiler_needs_object=$lt_compiler_needs_object
25769
25770# Create an old-style archive from a shared archive.
25771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25772
25773# Create a temporary old-style archive to link instead of a shared archive.
25774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25775
25776# Commands used to build a shared archive.
25777archive_cmds=$lt_archive_cmds
25778archive_expsym_cmds=$lt_archive_expsym_cmds
25779
25780# Commands used to build a loadable module if different from building
25781# a shared archive.
25782module_cmds=$lt_module_cmds
25783module_expsym_cmds=$lt_module_expsym_cmds
25784
25785# Whether we are building with GNU ld or not.
25786with_gnu_ld=$lt_with_gnu_ld
25787
25788# Flag that allows shared libraries with undefined symbols to be built.
25789allow_undefined_flag=$lt_allow_undefined_flag
25790
25791# Flag that enforces no undefined symbols.
25792no_undefined_flag=$lt_no_undefined_flag
25793
25794# Flag to hardcode \$libdir into a binary during linking.
25795# This must work even if \$libdir does not exist
25796hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25797
25798# Whether we need a single "-rpath" flag with a separated argument.
25799hardcode_libdir_separator=$lt_hardcode_libdir_separator
25800
25801# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25802# DIR into the resulting binary.
25803hardcode_direct=$hardcode_direct
25804
25805# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25806# DIR into the resulting binary and the resulting library dependency is
25807# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25808# library is relocated.
25809hardcode_direct_absolute=$hardcode_direct_absolute
25810
25811# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25812# into the resulting binary.
25813hardcode_minus_L=$hardcode_minus_L
25814
25815# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25816# into the resulting binary.
25817hardcode_shlibpath_var=$hardcode_shlibpath_var
25818
25819# Set to "yes" if building a shared library automatically hardcodes DIR
25820# into the library and all subsequent libraries and executables linked
25821# against it.
25822hardcode_automatic=$hardcode_automatic
25823
25824# Set to yes if linker adds runtime paths of dependent libraries
25825# to runtime path list.
25826inherit_rpath=$inherit_rpath
25827
25828# Whether libtool must link a program against all its dependency libraries.
25829link_all_deplibs=$link_all_deplibs
25830
25831# Set to "yes" if exported symbols are required.
25832always_export_symbols=$always_export_symbols
25833
25834# The commands to list exported symbols.
25835export_symbols_cmds=$lt_export_symbols_cmds
25836
25837# Symbols that should not be listed in the preloaded symbols.
25838exclude_expsyms=$lt_exclude_expsyms
25839
25840# Symbols that must always be exported.
25841include_expsyms=$lt_include_expsyms
25842
25843# Commands necessary for linking programs (against libraries) with templates.
25844prelink_cmds=$lt_prelink_cmds
25845
25846# Commands necessary for finishing linking programs.
25847postlink_cmds=$lt_postlink_cmds
25848
25849# Specify filename containing input files.
25850file_list_spec=$lt_file_list_spec
25851
25852# How to hardcode a shared library path into an executable.
25853hardcode_action=$hardcode_action
25854
25855# ### END LIBTOOL CONFIG
25856
25857_LT_EOF
25858
25859    cat <<'_LT_EOF' >> "$cfgfile"
25860
25861# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25862
25863# func_munge_path_list VARIABLE PATH
25864# -----------------------------------
25865# VARIABLE is name of variable containing _space_ separated list of
25866# directories to be munged by the contents of PATH, which is string
25867# having a format:
25868# "DIR[:DIR]:"
25869#       string "DIR[ DIR]" will be prepended to VARIABLE
25870# ":DIR[:DIR]"
25871#       string "DIR[ DIR]" will be appended to VARIABLE
25872# "DIRP[:DIRP]::[DIRA:]DIRA"
25873#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25874#       "DIRA[ DIRA]" will be appended to VARIABLE
25875# "DIR[:DIR]"
25876#       VARIABLE will be replaced by "DIR[ DIR]"
25877func_munge_path_list ()
25878{
25879    case x$2 in
25880    x)
25881        ;;
25882    *:)
25883        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25884        ;;
25885    x:*)
25886        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25887        ;;
25888    *::*)
25889        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25890        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25891        ;;
25892    *)
25893        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25894        ;;
25895    esac
25896}
25897
25898
25899# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25900func_cc_basename ()
25901{
25902    for cc_temp in $*""; do
25903      case $cc_temp in
25904        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25905        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25906        \-*) ;;
25907        *) break;;
25908      esac
25909    done
25910    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25911}
25912
25913
25914# ### END FUNCTIONS SHARED WITH CONFIGURE
25915
25916_LT_EOF
25917
25918  case $host_os in
25919  aix3*)
25920    cat <<\_LT_EOF >> "$cfgfile"
25921# AIX sometimes has problems with the GCC collect2 program.  For some
25922# reason, if we set the COLLECT_NAMES environment variable, the problems
25923# vanish in a puff of smoke.
25924if test set != "${COLLECT_NAMES+set}"; then
25925  COLLECT_NAMES=
25926  export COLLECT_NAMES
25927fi
25928_LT_EOF
25929    ;;
25930  esac
25931
25932
25933ltmain=$ac_aux_dir/ltmain.sh
25934
25935
25936  # We use sed instead of cat because bash on DJGPP gets confused if
25937  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25938  # text mode, it properly converts lines to CR/LF.  This bash problem
25939  # is reportedly fixed, but why not run on old versions too?
25940  sed '$q' "$ltmain" >> "$cfgfile" \
25941     || (rm -f "$cfgfile"; exit 1)
25942
25943   mv -f "$cfgfile" "$ofile" ||
25944    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25945  chmod +x "$ofile"
25946
25947 ;;
25948    "po-directories":C)
25949    for ac_file in $CONFIG_FILES; do
25950      # Support "outfile[:infile[:infile...]]"
25951      case "$ac_file" in
25952        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25953      esac
25954      # PO directories have a Makefile.in generated from Makefile.in.in.
25955      case "$ac_file" in */Makefile.in)
25956        # Adjust a relative srcdir.
25957        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25958        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25959        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25960        # In autoconf-2.13 it is called $ac_given_srcdir.
25961        # In autoconf-2.50 it is called $srcdir.
25962        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25963        case "$ac_given_srcdir" in
25964          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25965          /*) top_srcdir="$ac_given_srcdir" ;;
25966          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25967        esac
25968        # Treat a directory as a PO directory if and only if it has a
25969        # POTFILES.in file. This allows packages to have multiple PO
25970        # directories under different names or in different locations.
25971        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25972          rm -f "$ac_dir/POTFILES"
25973          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25974          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25975          POMAKEFILEDEPS="POTFILES.in"
25976          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25977          # on $ac_dir but don't depend on user-specified configuration
25978          # parameters.
25979          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25980            # The LINGUAS file contains the set of available languages.
25981            if test -n "$OBSOLETE_ALL_LINGUAS"; then
25982              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25983            fi
25984            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25985            # Hide the ALL_LINGUAS assigment from automake < 1.5.
25986            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25987            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25988          else
25989            # The set of available languages was given in configure.in.
25990            # Hide the ALL_LINGUAS assigment from automake < 1.5.
25991            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25992          fi
25993          # Compute POFILES
25994          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25995          # Compute UPDATEPOFILES
25996          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25997          # Compute DUMMYPOFILES
25998          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25999          # Compute GMOFILES
26000          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
26001          case "$ac_given_srcdir" in
26002            .) srcdirpre= ;;
26003            *) srcdirpre='$(srcdir)/' ;;
26004          esac
26005          POFILES=
26006          UPDATEPOFILES=
26007          DUMMYPOFILES=
26008          GMOFILES=
26009          for lang in $ALL_LINGUAS; do
26010            POFILES="$POFILES $srcdirpre$lang.po"
26011            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
26012            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
26013            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
26014          done
26015          # CATALOGS depends on both $ac_dir and the user's LINGUAS
26016          # environment variable.
26017          INST_LINGUAS=
26018          if test -n "$ALL_LINGUAS"; then
26019            for presentlang in $ALL_LINGUAS; do
26020              useit=no
26021              if test "%UNSET%" != "$LINGUAS"; then
26022                desiredlanguages="$LINGUAS"
26023              else
26024                desiredlanguages="$ALL_LINGUAS"
26025              fi
26026              for desiredlang in $desiredlanguages; do
26027                # Use the presentlang catalog if desiredlang is
26028                #   a. equal to presentlang, or
26029                #   b. a variant of presentlang (because in this case,
26030                #      presentlang can be used as a fallback for messages
26031                #      which are not translated in the desiredlang catalog).
26032                case "$desiredlang" in
26033                  "$presentlang"*) useit=yes;;
26034                esac
26035              done
26036              if test $useit = yes; then
26037                INST_LINGUAS="$INST_LINGUAS $presentlang"
26038              fi
26039            done
26040          fi
26041          CATALOGS=
26042          if test -n "$INST_LINGUAS"; then
26043            for lang in $INST_LINGUAS; do
26044              CATALOGS="$CATALOGS $lang.gmo"
26045            done
26046          fi
26047          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26048          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
26049          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26050            if test -f "$f"; then
26051              case "$f" in
26052                *.orig | *.bak | *~) ;;
26053                *) cat "$f" >> "$ac_dir/Makefile" ;;
26054              esac
26055            fi
26056          done
26057        fi
26058        ;;
26059      esac
26060    done ;;
26061
26062  esac
26063done # for ac_tag
26064
26065
26066as_fn_exit 0
26067_ACEOF
26068ac_clean_files=$ac_clean_files_save
26069
26070test $ac_write_fail = 0 ||
26071  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26072
26073
26074# configure is writing to config.log, and then calls config.status.
26075# config.status does its own redirection, appending to config.log.
26076# Unfortunately, on DOS this fails, as config.log is still kept open
26077# by configure, so config.status won't be able to write to it; its
26078# output is simply discarded.  So we exec the FD to /dev/null,
26079# effectively closing config.log, so it can be properly (re)opened and
26080# appended to by config.status.  When coming back to configure, we
26081# need to make the FD available again.
26082if test "$no_create" != yes; then
26083  ac_cs_success=:
26084  ac_config_status_args=
26085  test "$silent" = yes &&
26086    ac_config_status_args="$ac_config_status_args --quiet"
26087  exec 5>/dev/null
26088  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26089  exec 5>>config.log
26090  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26091  # would make configure fail if this is the last instruction.
26092  $ac_cs_success || as_fn_exit 1
26093fi
26094if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26095  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26096$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26097fi
26098
26099fi
26100 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
26101  HAVE_SYSTEMD_TRUE=
26102  HAVE_SYSTEMD_FALSE='#'
26103else
26104  HAVE_SYSTEMD_TRUE='#'
26105  HAVE_SYSTEMD_FALSE=
26106fi
26107
26108
26109
26110
26111case $TERM in
26112       #   for the most important terminal types we directly know the sequences
26113       xterm|xterm*|vt220|vt220*)
26114               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
26115               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
26116       ;;
26117       vt100|vt100*|cygwin)
26118               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
26119               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
26120       ;;
26121       *)
26122               T_MD=''
26123               T_ME=''
26124       ;;
26125esac
26126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26127$as_echo "" >&6; }
26128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
26129$as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
26130
26131
26132ac_config_files="$ac_config_files examples/shared-demo.pl"
26133
26134ac_config_files="$ac_config_files examples/piped-demo.pl"
26135
26136ac_config_files="$ac_config_files examples/stripes.pl"
26137
26138ac_config_files="$ac_config_files examples/bigtops.pl"
26139
26140ac_config_files="$ac_config_files examples/minmax.pl"
26141
26142ac_config_files="$ac_config_files examples/4charts.pl"
26143
26144ac_config_files="$ac_config_files examples/perftest.pl"
26145
26146ac_config_files="$ac_config_files examples/Makefile"
26147
26148ac_config_files="$ac_config_files examples/rrdcached/Makefile"
26149
26150ac_config_files="$ac_config_files etc/rrdcached-default-lsb"
26151
26152ac_config_files="$ac_config_files tests/Makefile"
26153
26154ac_config_files="$ac_config_files doc/Makefile"
26155
26156ac_config_files="$ac_config_files etc/Makefile"
26157
26158ac_config_files="$ac_config_files po/Makefile.in"
26159
26160ac_config_files="$ac_config_files src/Makefile"
26161
26162ac_config_files="$ac_config_files src/librrd.pc"
26163
26164ac_config_files="$ac_config_files bindings/Makefile"
26165
26166ac_config_files="$ac_config_files bindings/tcl/Makefile"
26167
26168ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
26169
26170ac_config_files="$ac_config_files bindings/lua/Makefile"
26171
26172ac_config_files="$ac_config_files Makefile"
26173
26174
26175ac_config_commands="$ac_config_commands default"
26176
26177
26178cat >confcache <<\_ACEOF
26179# This file is a shell script that caches the results of configure
26180# tests run on this system so they can be shared between configure
26181# scripts and configure runs, see configure's option --config-cache.
26182# It is not useful on other systems.  If it contains results you don't
26183# want to keep, you may remove or edit it.
26184#
26185# config.status only pays attention to the cache file if you give it
26186# the --recheck option to rerun configure.
26187#
26188# `ac_cv_env_foo' variables (set or unset) will be overridden when
26189# loading this file, other *unset* `ac_cv_foo' will be assigned the
26190# following values.
26191
26192_ACEOF
26193
26194# The following way of writing the cache mishandles newlines in values,
26195# but we know of no workaround that is simple, portable, and efficient.
26196# So, we kill variables containing newlines.
26197# Ultrix sh set writes to stderr and can't be redirected directly,
26198# and sets the high bit in the cache file unless we assign to the vars.
26199(
26200  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26201    eval ac_val=\$$ac_var
26202    case $ac_val in #(
26203    *${as_nl}*)
26204      case $ac_var in #(
26205      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26207      esac
26208      case $ac_var in #(
26209      _ | IFS | as_nl) ;; #(
26210      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26211      *) { eval $ac_var=; unset $ac_var;} ;;
26212      esac ;;
26213    esac
26214  done
26215
26216  (set) 2>&1 |
26217    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26218    *${as_nl}ac_space=\ *)
26219      # `set' does not quote correctly, so add quotes: double-quote
26220      # substitution turns \\\\ into \\, and sed turns \\ into \.
26221      sed -n \
26222	"s/'/'\\\\''/g;
26223	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26224      ;; #(
26225    *)
26226      # `set' quotes correctly as required by POSIX, so do not add quotes.
26227      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26228      ;;
26229    esac |
26230    sort
26231) |
26232  sed '
26233     /^ac_cv_env_/b end
26234     t clear
26235     :clear
26236     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26237     t end
26238     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26239     :end' >>confcache
26240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26241  if test -w "$cache_file"; then
26242    if test "x$cache_file" != "x/dev/null"; then
26243      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26244$as_echo "$as_me: updating cache $cache_file" >&6;}
26245      if test ! -f "$cache_file" || test -h "$cache_file"; then
26246	cat confcache >"$cache_file"
26247      else
26248        case $cache_file in #(
26249        */* | ?:*)
26250	  mv -f confcache "$cache_file"$$ &&
26251	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26252        *)
26253	  mv -f confcache "$cache_file" ;;
26254	esac
26255      fi
26256    fi
26257  else
26258    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26259$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26260  fi
26261fi
26262rm -f confcache
26263
26264test "x$prefix" = xNONE && prefix=$ac_default_prefix
26265# Let make expand exec_prefix.
26266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26267
26268DEFS=-DHAVE_CONFIG_H
26269
26270ac_libobjs=
26271ac_ltlibobjs=
26272U=
26273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26274  # 1. Remove the extension, and $U if already installed.
26275  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26276  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26277  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26278  #    will be set to the directory where LIBOBJS objects are built.
26279  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26280  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26281done
26282LIBOBJS=$ac_libobjs
26283
26284LTLIBOBJS=$ac_ltlibobjs
26285
26286
26287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26288$as_echo_n "checking that generated files are newer than configure... " >&6; }
26289   if test -n "$am_sleep_pid"; then
26290     # Hide warnings about reused PIDs.
26291     wait $am_sleep_pid 2>/dev/null
26292   fi
26293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26294$as_echo "done" >&6; }
26295if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26296  as_fn_error $? "conditional \"AMDEP\" was never defined.
26297Usually this means the macro was only invoked conditionally." "$LINENO" 5
26298fi
26299if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26300  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26301Usually this means the macro was only invoked conditionally." "$LINENO" 5
26302fi
26303 if test -n "$EXEEXT"; then
26304  am__EXEEXT_TRUE=
26305  am__EXEEXT_FALSE='#'
26306else
26307  am__EXEEXT_TRUE='#'
26308  am__EXEEXT_FALSE=
26309fi
26310
26311if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26312  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26313Usually this means the macro was only invoked conditionally." "$LINENO" 5
26314fi
26315if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
26316  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
26317Usually this means the macro was only invoked conditionally." "$LINENO" 5
26318fi
26319if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
26320  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
26321Usually this means the macro was only invoked conditionally." "$LINENO" 5
26322fi
26323if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
26324  as_fn_error $? "conditional \"BUILD_RRDCGI\" was never defined.
26325Usually this means the macro was only invoked conditionally." "$LINENO" 5
26326fi
26327if test -z "${BUILD_RRDCACHED_TRUE}" && test -z "${BUILD_RRDCACHED_FALSE}"; then
26328  as_fn_error $? "conditional \"BUILD_RRDCACHED\" was never defined.
26329Usually this means the macro was only invoked conditionally." "$LINENO" 5
26330fi
26331if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
26332  as_fn_error $? "conditional \"STATIC_PROGRAMS\" was never defined.
26333Usually this means the macro was only invoked conditionally." "$LINENO" 5
26334fi
26335
26336if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
26337  as_fn_error $? "conditional \"BUILD_MULTITHREAD\" was never defined.
26338Usually this means the macro was only invoked conditionally." "$LINENO" 5
26339fi
26340if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
26341  as_fn_error $? "conditional \"BUILD_LIBDBI\" was never defined.
26342Usually this means the macro was only invoked conditionally." "$LINENO" 5
26343fi
26344if test -z "${BUILD_LIBRADOS_TRUE}" && test -z "${BUILD_LIBRADOS_FALSE}"; then
26345  as_fn_error $? "conditional \"BUILD_LIBRADOS\" was never defined.
26346Usually this means the macro was only invoked conditionally." "$LINENO" 5
26347fi
26348if test -z "${BUILD_LIBWRAP_TRUE}" && test -z "${BUILD_LIBWRAP_FALSE}"; then
26349  as_fn_error $? "conditional \"BUILD_LIBWRAP\" was never defined.
26350Usually this means the macro was only invoked conditionally." "$LINENO" 5
26351fi
26352if test -z "${BUILD_RRDGRAPH_TRUE}" && test -z "${BUILD_RRDGRAPH_FALSE}"; then
26353  as_fn_error $? "conditional \"BUILD_RRDGRAPH\" was never defined.
26354Usually this means the macro was only invoked conditionally." "$LINENO" 5
26355fi
26356if test -z "${BUILD_RRDRESTORE_TRUE}" && test -z "${BUILD_RRDRESTORE_FALSE}"; then
26357  as_fn_error $? "conditional \"BUILD_RRDRESTORE\" was never defined.
26358Usually this means the macro was only invoked conditionally." "$LINENO" 5
26359fi
26360if test -z "${ENABLE_RPATH_TRUE}" && test -z "${ENABLE_RPATH_FALSE}"; then
26361  as_fn_error $? "conditional \"ENABLE_RPATH\" was never defined.
26362Usually this means the macro was only invoked conditionally." "$LINENO" 5
26363fi
26364if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
26365  as_fn_error $? "conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
26366Usually this means the macro was only invoked conditionally." "$LINENO" 5
26367fi
26368if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
26369  as_fn_error $? "conditional \"LUA_SITE_CINSTALL\" was never defined.
26370Usually this means the macro was only invoked conditionally." "$LINENO" 5
26371fi
26372if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
26373  as_fn_error $? "conditional \"LUA_SITE_LINSTALL\" was never defined.
26374Usually this means the macro was only invoked conditionally." "$LINENO" 5
26375fi
26376if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
26377  as_fn_error $? "conditional \"LUA50\" was never defined.
26378Usually this means the macro was only invoked conditionally." "$LINENO" 5
26379fi
26380if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
26381  as_fn_error $? "conditional \"BUILD_LUA\" was never defined.
26382Usually this means the macro was only invoked conditionally." "$LINENO" 5
26383fi
26384if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
26385  as_fn_error $? "conditional \"BUILD_TCL\" was never defined.
26386Usually this means the macro was only invoked conditionally." "$LINENO" 5
26387fi
26388if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
26389  as_fn_error $? "conditional \"BUILD_TCL_SITE\" was never defined.
26390Usually this means the macro was only invoked conditionally." "$LINENO" 5
26391fi
26392if test -z "${MINGW_W64_TRUE}" && test -z "${MINGW_W64_FALSE}"; then
26393  as_fn_error $? "conditional \"MINGW_W64\" was never defined.
26394Usually this means the macro was only invoked conditionally." "$LINENO" 5
26395fi
26396if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
26397  as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
26398Usually this means the macro was only invoked conditionally." "$LINENO" 5
26399fi
26400if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
26401  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
26402Usually this means the macro was only invoked conditionally." "$LINENO" 5
26403fi
26404
26405: "${CONFIG_STATUS=./config.status}"
26406ac_write_fail=0
26407ac_clean_files_save=$ac_clean_files
26408ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26409{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26410$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26411as_write_fail=0
26412cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26413#! $SHELL
26414# Generated by $as_me.
26415# Run this file to recreate the current configuration.
26416# Compiler output produced by configure, useful for debugging
26417# configure, is in config.log if it exists.
26418
26419debug=false
26420ac_cs_recheck=false
26421ac_cs_silent=false
26422
26423SHELL=\${CONFIG_SHELL-$SHELL}
26424export SHELL
26425_ASEOF
26426cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26427## -------------------- ##
26428## M4sh Initialization. ##
26429## -------------------- ##
26430
26431# Be more Bourne compatible
26432DUALCASE=1; export DUALCASE # for MKS sh
26433if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26434  emulate sh
26435  NULLCMD=:
26436  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26437  # is contrary to our usage.  Disable this feature.
26438  alias -g '${1+"$@"}'='"$@"'
26439  setopt NO_GLOB_SUBST
26440else
26441  case `(set -o) 2>/dev/null` in #(
26442  *posix*) :
26443    set -o posix ;; #(
26444  *) :
26445     ;;
26446esac
26447fi
26448
26449
26450as_nl='
26451'
26452export as_nl
26453# Printing a long string crashes Solaris 7 /usr/bin/printf.
26454as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26455as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26456as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26457# Prefer a ksh shell builtin over an external printf program on Solaris,
26458# but without wasting forks for bash or zsh.
26459if test -z "$BASH_VERSION$ZSH_VERSION" \
26460    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26461  as_echo='print -r --'
26462  as_echo_n='print -rn --'
26463elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26464  as_echo='printf %s\n'
26465  as_echo_n='printf %s'
26466else
26467  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26468    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26469    as_echo_n='/usr/ucb/echo -n'
26470  else
26471    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26472    as_echo_n_body='eval
26473      arg=$1;
26474      case $arg in #(
26475      *"$as_nl"*)
26476	expr "X$arg" : "X\\(.*\\)$as_nl";
26477	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26478      esac;
26479      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26480    '
26481    export as_echo_n_body
26482    as_echo_n='sh -c $as_echo_n_body as_echo'
26483  fi
26484  export as_echo_body
26485  as_echo='sh -c $as_echo_body as_echo'
26486fi
26487
26488# The user is always right.
26489if test "${PATH_SEPARATOR+set}" != set; then
26490  PATH_SEPARATOR=:
26491  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26492    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26493      PATH_SEPARATOR=';'
26494  }
26495fi
26496
26497
26498# IFS
26499# We need space, tab and new line, in precisely that order.  Quoting is
26500# there to prevent editors from complaining about space-tab.
26501# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26502# splitting by setting IFS to empty value.)
26503IFS=" ""	$as_nl"
26504
26505# Find who we are.  Look in the path if we contain no directory separator.
26506as_myself=
26507case $0 in #((
26508  *[\\/]* ) as_myself=$0 ;;
26509  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26510for as_dir in $PATH
26511do
26512  IFS=$as_save_IFS
26513  test -z "$as_dir" && as_dir=.
26514    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26515  done
26516IFS=$as_save_IFS
26517
26518     ;;
26519esac
26520# We did not find ourselves, most probably we were run as `sh COMMAND'
26521# in which case we are not to be found in the path.
26522if test "x$as_myself" = x; then
26523  as_myself=$0
26524fi
26525if test ! -f "$as_myself"; then
26526  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26527  exit 1
26528fi
26529
26530# Unset variables that we do not need and which cause bugs (e.g. in
26531# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26532# suppresses any "Segmentation fault" message there.  '((' could
26533# trigger a bug in pdksh 5.2.14.
26534for as_var in BASH_ENV ENV MAIL MAILPATH
26535do eval test x\${$as_var+set} = xset \
26536  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26537done
26538PS1='$ '
26539PS2='> '
26540PS4='+ '
26541
26542# NLS nuisances.
26543LC_ALL=C
26544export LC_ALL
26545LANGUAGE=C
26546export LANGUAGE
26547
26548# CDPATH.
26549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26550
26551
26552# as_fn_error STATUS ERROR [LINENO LOG_FD]
26553# ----------------------------------------
26554# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26555# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26556# script with STATUS, using 1 if that was 0.
26557as_fn_error ()
26558{
26559  as_status=$1; test $as_status -eq 0 && as_status=1
26560  if test "$4"; then
26561    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26562    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26563  fi
26564  $as_echo "$as_me: error: $2" >&2
26565  as_fn_exit $as_status
26566} # as_fn_error
26567
26568
26569# as_fn_set_status STATUS
26570# -----------------------
26571# Set $? to STATUS, without forking.
26572as_fn_set_status ()
26573{
26574  return $1
26575} # as_fn_set_status
26576
26577# as_fn_exit STATUS
26578# -----------------
26579# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26580as_fn_exit ()
26581{
26582  set +e
26583  as_fn_set_status $1
26584  exit $1
26585} # as_fn_exit
26586
26587# as_fn_unset VAR
26588# ---------------
26589# Portably unset VAR.
26590as_fn_unset ()
26591{
26592  { eval $1=; unset $1;}
26593}
26594as_unset=as_fn_unset
26595# as_fn_append VAR VALUE
26596# ----------------------
26597# Append the text in VALUE to the end of the definition contained in VAR. Take
26598# advantage of any shell optimizations that allow amortized linear growth over
26599# repeated appends, instead of the typical quadratic growth present in naive
26600# implementations.
26601if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26602  eval 'as_fn_append ()
26603  {
26604    eval $1+=\$2
26605  }'
26606else
26607  as_fn_append ()
26608  {
26609    eval $1=\$$1\$2
26610  }
26611fi # as_fn_append
26612
26613# as_fn_arith ARG...
26614# ------------------
26615# Perform arithmetic evaluation on the ARGs, and store the result in the
26616# global $as_val. Take advantage of shells that can avoid forks. The arguments
26617# must be portable across $(()) and expr.
26618if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26619  eval 'as_fn_arith ()
26620  {
26621    as_val=$(( $* ))
26622  }'
26623else
26624  as_fn_arith ()
26625  {
26626    as_val=`expr "$@" || test $? -eq 1`
26627  }
26628fi # as_fn_arith
26629
26630
26631if expr a : '\(a\)' >/dev/null 2>&1 &&
26632   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26633  as_expr=expr
26634else
26635  as_expr=false
26636fi
26637
26638if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26639  as_basename=basename
26640else
26641  as_basename=false
26642fi
26643
26644if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26645  as_dirname=dirname
26646else
26647  as_dirname=false
26648fi
26649
26650as_me=`$as_basename -- "$0" ||
26651$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26652	 X"$0" : 'X\(//\)$' \| \
26653	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26654$as_echo X/"$0" |
26655    sed '/^.*\/\([^/][^/]*\)\/*$/{
26656	    s//\1/
26657	    q
26658	  }
26659	  /^X\/\(\/\/\)$/{
26660	    s//\1/
26661	    q
26662	  }
26663	  /^X\/\(\/\).*/{
26664	    s//\1/
26665	    q
26666	  }
26667	  s/.*/./; q'`
26668
26669# Avoid depending upon Character Ranges.
26670as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26671as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26672as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26673as_cr_digits='0123456789'
26674as_cr_alnum=$as_cr_Letters$as_cr_digits
26675
26676ECHO_C= ECHO_N= ECHO_T=
26677case `echo -n x` in #(((((
26678-n*)
26679  case `echo 'xy\c'` in
26680  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26681  xy)  ECHO_C='\c';;
26682  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26683       ECHO_T='	';;
26684  esac;;
26685*)
26686  ECHO_N='-n';;
26687esac
26688
26689rm -f conf$$ conf$$.exe conf$$.file
26690if test -d conf$$.dir; then
26691  rm -f conf$$.dir/conf$$.file
26692else
26693  rm -f conf$$.dir
26694  mkdir conf$$.dir 2>/dev/null
26695fi
26696if (echo >conf$$.file) 2>/dev/null; then
26697  if ln -s conf$$.file conf$$ 2>/dev/null; then
26698    as_ln_s='ln -s'
26699    # ... but there are two gotchas:
26700    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26701    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26702    # In both cases, we have to default to `cp -pR'.
26703    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26704      as_ln_s='cp -pR'
26705  elif ln conf$$.file conf$$ 2>/dev/null; then
26706    as_ln_s=ln
26707  else
26708    as_ln_s='cp -pR'
26709  fi
26710else
26711  as_ln_s='cp -pR'
26712fi
26713rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26714rmdir conf$$.dir 2>/dev/null
26715
26716
26717# as_fn_mkdir_p
26718# -------------
26719# Create "$as_dir" as a directory, including parents if necessary.
26720as_fn_mkdir_p ()
26721{
26722
26723  case $as_dir in #(
26724  -*) as_dir=./$as_dir;;
26725  esac
26726  test -d "$as_dir" || eval $as_mkdir_p || {
26727    as_dirs=
26728    while :; do
26729      case $as_dir in #(
26730      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26731      *) as_qdir=$as_dir;;
26732      esac
26733      as_dirs="'$as_qdir' $as_dirs"
26734      as_dir=`$as_dirname -- "$as_dir" ||
26735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26736	 X"$as_dir" : 'X\(//\)[^/]' \| \
26737	 X"$as_dir" : 'X\(//\)$' \| \
26738	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26739$as_echo X"$as_dir" |
26740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26741	    s//\1/
26742	    q
26743	  }
26744	  /^X\(\/\/\)[^/].*/{
26745	    s//\1/
26746	    q
26747	  }
26748	  /^X\(\/\/\)$/{
26749	    s//\1/
26750	    q
26751	  }
26752	  /^X\(\/\).*/{
26753	    s//\1/
26754	    q
26755	  }
26756	  s/.*/./; q'`
26757      test -d "$as_dir" && break
26758    done
26759    test -z "$as_dirs" || eval "mkdir $as_dirs"
26760  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26761
26762
26763} # as_fn_mkdir_p
26764if mkdir -p . 2>/dev/null; then
26765  as_mkdir_p='mkdir -p "$as_dir"'
26766else
26767  test -d ./-p && rmdir ./-p
26768  as_mkdir_p=false
26769fi
26770
26771
26772# as_fn_executable_p FILE
26773# -----------------------
26774# Test if FILE is an executable regular file.
26775as_fn_executable_p ()
26776{
26777  test -f "$1" && test -x "$1"
26778} # as_fn_executable_p
26779as_test_x='test -x'
26780as_executable_p=as_fn_executable_p
26781
26782# Sed expression to map a string onto a valid CPP name.
26783as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26784
26785# Sed expression to map a string onto a valid variable name.
26786as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26787
26788
26789exec 6>&1
26790## ----------------------------------- ##
26791## Main body of $CONFIG_STATUS script. ##
26792## ----------------------------------- ##
26793_ASEOF
26794test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26795
26796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26797# Save the log message, to keep $0 and so on meaningful, and to
26798# report actual input values of CONFIG_FILES etc. instead of their
26799# values after options handling.
26800ac_log="
26801This file was extended by rrdtool $as_me 1.7.2, which was
26802generated by GNU Autoconf 2.69.  Invocation command line was
26803
26804  CONFIG_FILES    = $CONFIG_FILES
26805  CONFIG_HEADERS  = $CONFIG_HEADERS
26806  CONFIG_LINKS    = $CONFIG_LINKS
26807  CONFIG_COMMANDS = $CONFIG_COMMANDS
26808  $ $0 $@
26809
26810on `(hostname || uname -n) 2>/dev/null | sed 1q`
26811"
26812
26813_ACEOF
26814
26815case $ac_config_files in *"
26816"*) set x $ac_config_files; shift; ac_config_files=$*;;
26817esac
26818
26819case $ac_config_headers in *"
26820"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26821esac
26822
26823
26824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26825# Files that config.status was made for.
26826config_files="$ac_config_files"
26827config_headers="$ac_config_headers"
26828config_commands="$ac_config_commands"
26829
26830_ACEOF
26831
26832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26833ac_cs_usage="\
26834\`$as_me' instantiates files and other configuration actions
26835from templates according to the current configuration.  Unless the files
26836and actions are specified as TAGs, all are instantiated by default.
26837
26838Usage: $0 [OPTION]... [TAG]...
26839
26840  -h, --help       print this help, then exit
26841  -V, --version    print version number and configuration settings, then exit
26842      --config     print configuration, then exit
26843  -q, --quiet, --silent
26844                   do not print progress messages
26845  -d, --debug      don't remove temporary files
26846      --recheck    update $as_me by reconfiguring in the same conditions
26847      --file=FILE[:TEMPLATE]
26848                   instantiate the configuration file FILE
26849      --header=FILE[:TEMPLATE]
26850                   instantiate the configuration header FILE
26851
26852Configuration files:
26853$config_files
26854
26855Configuration headers:
26856$config_headers
26857
26858Configuration commands:
26859$config_commands
26860
26861Report bugs to the package provider."
26862
26863_ACEOF
26864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26865ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26866ac_cs_version="\\
26867rrdtool config.status 1.7.2
26868configured by $0, generated by GNU Autoconf 2.69,
26869  with options \\"\$ac_cs_config\\"
26870
26871Copyright (C) 2012 Free Software Foundation, Inc.
26872This config.status script is free software; the Free Software Foundation
26873gives unlimited permission to copy, distribute and modify it."
26874
26875ac_pwd='$ac_pwd'
26876srcdir='$srcdir'
26877INSTALL='$INSTALL'
26878MKDIR_P='$MKDIR_P'
26879AWK='$AWK'
26880test -n "\$AWK" || AWK=awk
26881_ACEOF
26882
26883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26884# The default lists apply if the user does not specify any file.
26885ac_need_defaults=:
26886while test $# != 0
26887do
26888  case $1 in
26889  --*=?*)
26890    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26891    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26892    ac_shift=:
26893    ;;
26894  --*=)
26895    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26896    ac_optarg=
26897    ac_shift=:
26898    ;;
26899  *)
26900    ac_option=$1
26901    ac_optarg=$2
26902    ac_shift=shift
26903    ;;
26904  esac
26905
26906  case $ac_option in
26907  # Handling of the options.
26908  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26909    ac_cs_recheck=: ;;
26910  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26911    $as_echo "$ac_cs_version"; exit ;;
26912  --config | --confi | --conf | --con | --co | --c )
26913    $as_echo "$ac_cs_config"; exit ;;
26914  --debug | --debu | --deb | --de | --d | -d )
26915    debug=: ;;
26916  --file | --fil | --fi | --f )
26917    $ac_shift
26918    case $ac_optarg in
26919    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26920    '') as_fn_error $? "missing file argument" ;;
26921    esac
26922    as_fn_append CONFIG_FILES " '$ac_optarg'"
26923    ac_need_defaults=false;;
26924  --header | --heade | --head | --hea )
26925    $ac_shift
26926    case $ac_optarg in
26927    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26928    esac
26929    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26930    ac_need_defaults=false;;
26931  --he | --h)
26932    # Conflict between --help and --header
26933    as_fn_error $? "ambiguous option: \`$1'
26934Try \`$0 --help' for more information.";;
26935  --help | --hel | -h )
26936    $as_echo "$ac_cs_usage"; exit ;;
26937  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26938  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26939    ac_cs_silent=: ;;
26940
26941  # This is an error.
26942  -*) as_fn_error $? "unrecognized option: \`$1'
26943Try \`$0 --help' for more information." ;;
26944
26945  *) as_fn_append ac_config_targets " $1"
26946     ac_need_defaults=false ;;
26947
26948  esac
26949  shift
26950done
26951
26952ac_configure_extra_args=
26953
26954if $ac_cs_silent; then
26955  exec 6>/dev/null
26956  ac_configure_extra_args="$ac_configure_extra_args --silent"
26957fi
26958
26959_ACEOF
26960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26961if \$ac_cs_recheck; then
26962  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26963  shift
26964  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26965  CONFIG_SHELL='$SHELL'
26966  export CONFIG_SHELL
26967  exec "\$@"
26968fi
26969
26970_ACEOF
26971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26972exec 5>>config.log
26973{
26974  echo
26975  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26976## Running $as_me. ##
26977_ASBOX
26978  $as_echo "$ac_log"
26979} >&5
26980
26981_ACEOF
26982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26983#
26984# INIT-COMMANDS
26985#
26986AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26987
26988
26989# The HP-UX ksh and POSIX shell print the target directory to stdout
26990# if CDPATH is set.
26991(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26992
26993sed_quote_subst='$sed_quote_subst'
26994double_quote_subst='$double_quote_subst'
26995delay_variable_subst='$delay_variable_subst'
26996macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26997macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26998enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26999enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27000pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27001enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27002shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27003SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27004ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27005PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27006host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27007host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27008host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27009build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27010build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27011build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27012SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27013Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27014GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27015EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27016FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27017LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27018NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27019LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27020max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27021ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27022exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27023lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27024lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27025lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27026lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27027lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27028reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27029reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27030OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27031deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27032file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27033file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27034want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27035DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27036sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27037AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27038AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27039archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27040STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27041RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27042old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27043old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27044old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27045lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27046CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27047CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27048compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27049GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27050lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27051lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27052lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27053lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27054lt_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"`'
27055lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27056nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27057lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27058lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27059objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27060MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27061lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27062lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27063lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27064lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27065lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27066need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27067MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27068DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27069NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27070LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27071OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27072OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27073libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27074shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27075extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27076archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27077enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27078export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27079whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27080compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27081old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27082old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27083archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27084archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27085module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27086module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27087with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27088allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27089no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27090hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27091hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27092hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27093hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27094hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27095hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27096hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27097inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27098link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27099always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27100export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27101exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27102include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27103prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27104postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27105file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27106variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27107need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27108need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27109version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27110runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27111shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27112shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27113libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27114library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27115soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27116install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27117postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27118postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27119finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27120finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27121hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27122sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27123configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27124configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27125hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27126enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27127enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27128enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27129old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27130striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27131
27132LTCC='$LTCC'
27133LTCFLAGS='$LTCFLAGS'
27134compiler='$compiler_DEFAULT'
27135
27136# A function that is used when there is no print builtin or printf.
27137func_fallback_echo ()
27138{
27139  eval 'cat <<_LTECHO_EOF
27140\$1
27141_LTECHO_EOF'
27142}
27143
27144# Quote evaled strings.
27145for var in SHELL \
27146ECHO \
27147PATH_SEPARATOR \
27148SED \
27149GREP \
27150EGREP \
27151FGREP \
27152LD \
27153NM \
27154LN_S \
27155lt_SP2NL \
27156lt_NL2SP \
27157reload_flag \
27158OBJDUMP \
27159deplibs_check_method \
27160file_magic_cmd \
27161file_magic_glob \
27162want_nocaseglob \
27163DLLTOOL \
27164sharedlib_from_linklib_cmd \
27165AR \
27166AR_FLAGS \
27167archiver_list_spec \
27168STRIP \
27169RANLIB \
27170CC \
27171CFLAGS \
27172compiler \
27173lt_cv_sys_global_symbol_pipe \
27174lt_cv_sys_global_symbol_to_cdecl \
27175lt_cv_sys_global_symbol_to_import \
27176lt_cv_sys_global_symbol_to_c_name_address \
27177lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27178lt_cv_nm_interface \
27179nm_file_list_spec \
27180lt_cv_truncate_bin \
27181lt_prog_compiler_no_builtin_flag \
27182lt_prog_compiler_pic \
27183lt_prog_compiler_wl \
27184lt_prog_compiler_static \
27185lt_cv_prog_compiler_c_o \
27186need_locks \
27187MANIFEST_TOOL \
27188DSYMUTIL \
27189NMEDIT \
27190LIPO \
27191OTOOL \
27192OTOOL64 \
27193shrext_cmds \
27194export_dynamic_flag_spec \
27195whole_archive_flag_spec \
27196compiler_needs_object \
27197with_gnu_ld \
27198allow_undefined_flag \
27199no_undefined_flag \
27200hardcode_libdir_flag_spec \
27201hardcode_libdir_separator \
27202exclude_expsyms \
27203include_expsyms \
27204file_list_spec \
27205variables_saved_for_relink \
27206libname_spec \
27207library_names_spec \
27208soname_spec \
27209install_override_mode \
27210finish_eval \
27211old_striplib \
27212striplib; do
27213    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27214    *[\\\\\\\`\\"\\\$]*)
27215      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27216      ;;
27217    *)
27218      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27219      ;;
27220    esac
27221done
27222
27223# Double-quote double-evaled strings.
27224for var in reload_cmds \
27225old_postinstall_cmds \
27226old_postuninstall_cmds \
27227old_archive_cmds \
27228extract_expsyms_cmds \
27229old_archive_from_new_cmds \
27230old_archive_from_expsyms_cmds \
27231archive_cmds \
27232archive_expsym_cmds \
27233module_cmds \
27234module_expsym_cmds \
27235export_symbols_cmds \
27236prelink_cmds \
27237postlink_cmds \
27238postinstall_cmds \
27239postuninstall_cmds \
27240finish_cmds \
27241sys_lib_search_path_spec \
27242configure_time_dlsearch_path \
27243configure_time_lt_sys_library_path; do
27244    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27245    *[\\\\\\\`\\"\\\$]*)
27246      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27247      ;;
27248    *)
27249      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27250      ;;
27251    esac
27252done
27253
27254ac_aux_dir='$ac_aux_dir'
27255
27256# See if we are running on zsh, and set the options that allow our
27257# commands through without removal of \ escapes INIT.
27258if test -n "\${ZSH_VERSION+set}"; then
27259   setopt NO_GLOB_SUBST
27260fi
27261
27262
27263    PACKAGE='$PACKAGE'
27264    VERSION='$VERSION'
27265    RM='$RM'
27266    ofile='$ofile'
27267
27268ac_aux_dir='$ac_aux_dir'
27269
27270
27271# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27272    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27273    # from automake < 1.5.
27274    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27275    # Capture the value of LINGUAS because we need it to compute CATALOGS.
27276    LINGUAS="${LINGUAS-%UNSET%}"
27277
27278
27279
27280_ACEOF
27281
27282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27283
27284# Handling of arguments.
27285for ac_config_target in $ac_config_targets
27286do
27287  case $ac_config_target in
27288    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27289    "src/rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/rrd_config.h" ;;
27290    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27291    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
27292    "etc/rrdcached.socket") CONFIG_FILES="$CONFIG_FILES etc/rrdcached.socket" ;;
27293    "etc/rrdcached.service") CONFIG_FILES="$CONFIG_FILES etc/rrdcached.service" ;;
27294    "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
27295    "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
27296    "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
27297    "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
27298    "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
27299    "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
27300    "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
27301    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27302    "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
27303    "etc/rrdcached-default-lsb") CONFIG_FILES="$CONFIG_FILES etc/rrdcached-default-lsb" ;;
27304    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27305    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27306    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
27307    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27308    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27309    "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
27310    "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
27311    "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
27312    "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
27313    "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
27314    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27315    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27316
27317  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27318  esac
27319done
27320
27321
27322# If the user did not use the arguments to specify the items to instantiate,
27323# then the envvar interface is used.  Set only those that are not.
27324# We use the long form for the default assignment because of an extremely
27325# bizarre bug on SunOS 4.1.3.
27326if $ac_need_defaults; then
27327  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27328  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27329  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27330fi
27331
27332# Have a temporary directory for convenience.  Make it in the build tree
27333# simply because there is no reason against having it here, and in addition,
27334# creating and moving files from /tmp can sometimes cause problems.
27335# Hook for its removal unless debugging.
27336# Note that there is a small window in which the directory will not be cleaned:
27337# after its creation but before its name has been assigned to `$tmp'.
27338$debug ||
27339{
27340  tmp= ac_tmp=
27341  trap 'exit_status=$?
27342  : "${ac_tmp:=$tmp}"
27343  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27344' 0
27345  trap 'as_fn_exit 1' 1 2 13 15
27346}
27347# Create a (secure) tmp directory for tmp files.
27348
27349{
27350  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27351  test -d "$tmp"
27352}  ||
27353{
27354  tmp=./conf$$-$RANDOM
27355  (umask 077 && mkdir "$tmp")
27356} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27357ac_tmp=$tmp
27358
27359# Set up the scripts for CONFIG_FILES section.
27360# No need to generate them if there are no CONFIG_FILES.
27361# This happens for instance with `./config.status config.h'.
27362if test -n "$CONFIG_FILES"; then
27363
27364
27365ac_cr=`echo X | tr X '\015'`
27366# On cygwin, bash can eat \r inside `` if the user requested igncr.
27367# But we know of no other shell where ac_cr would be empty at this
27368# point, so we can use a bashism as a fallback.
27369if test "x$ac_cr" = x; then
27370  eval ac_cr=\$\'\\r\'
27371fi
27372ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27373if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27374  ac_cs_awk_cr='\\r'
27375else
27376  ac_cs_awk_cr=$ac_cr
27377fi
27378
27379echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27380_ACEOF
27381
27382
27383{
27384  echo "cat >conf$$subs.awk <<_ACEOF" &&
27385  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27386  echo "_ACEOF"
27387} >conf$$subs.sh ||
27388  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27389ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27390ac_delim='%!_!# '
27391for ac_last_try in false false false false false :; do
27392  . ./conf$$subs.sh ||
27393    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27394
27395  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27396  if test $ac_delim_n = $ac_delim_num; then
27397    break
27398  elif $ac_last_try; then
27399    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27400  else
27401    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27402  fi
27403done
27404rm -f conf$$subs.sh
27405
27406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27407cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27408_ACEOF
27409sed -n '
27410h
27411s/^/S["/; s/!.*/"]=/
27412p
27413g
27414s/^[^!]*!//
27415:repl
27416t repl
27417s/'"$ac_delim"'$//
27418t delim
27419:nl
27420h
27421s/\(.\{148\}\)..*/\1/
27422t more1
27423s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27424p
27425n
27426b repl
27427:more1
27428s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27429p
27430g
27431s/.\{148\}//
27432t nl
27433:delim
27434h
27435s/\(.\{148\}\)..*/\1/
27436t more2
27437s/["\\]/\\&/g; s/^/"/; s/$/"/
27438p
27439b
27440:more2
27441s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27442p
27443g
27444s/.\{148\}//
27445t delim
27446' <conf$$subs.awk | sed '
27447/^[^""]/{
27448  N
27449  s/\n//
27450}
27451' >>$CONFIG_STATUS || ac_write_fail=1
27452rm -f conf$$subs.awk
27453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27454_ACAWK
27455cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27456  for (key in S) S_is_set[key] = 1
27457  FS = ""
27458
27459}
27460{
27461  line = $ 0
27462  nfields = split(line, field, "@")
27463  substed = 0
27464  len = length(field[1])
27465  for (i = 2; i < nfields; i++) {
27466    key = field[i]
27467    keylen = length(key)
27468    if (S_is_set[key]) {
27469      value = S[key]
27470      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27471      len += length(value) + length(field[++i])
27472      substed = 1
27473    } else
27474      len += 1 + keylen
27475  }
27476
27477  print line
27478}
27479
27480_ACAWK
27481_ACEOF
27482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27483if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27484  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27485else
27486  cat
27487fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27488  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27489_ACEOF
27490
27491# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27492# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27493# trailing colons and then remove the whole line if VPATH becomes empty
27494# (actually we leave an empty line to preserve line numbers).
27495if test "x$srcdir" = x.; then
27496  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27497h
27498s///
27499s/^/:/
27500s/[	 ]*$/:/
27501s/:\$(srcdir):/:/g
27502s/:\${srcdir}:/:/g
27503s/:@srcdir@:/:/g
27504s/^:*//
27505s/:*$//
27506x
27507s/\(=[	 ]*\).*/\1/
27508G
27509s/\n//
27510s/^[^=]*=[	 ]*$//
27511}'
27512fi
27513
27514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27515fi # test -n "$CONFIG_FILES"
27516
27517# Set up the scripts for CONFIG_HEADERS section.
27518# No need to generate them if there are no CONFIG_HEADERS.
27519# This happens for instance with `./config.status Makefile'.
27520if test -n "$CONFIG_HEADERS"; then
27521cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27522BEGIN {
27523_ACEOF
27524
27525# Transform confdefs.h into an awk script `defines.awk', embedded as
27526# here-document in config.status, that substitutes the proper values into
27527# config.h.in to produce config.h.
27528
27529# Create a delimiter string that does not exist in confdefs.h, to ease
27530# handling of long lines.
27531ac_delim='%!_!# '
27532for ac_last_try in false false :; do
27533  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27534  if test -z "$ac_tt"; then
27535    break
27536  elif $ac_last_try; then
27537    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27538  else
27539    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27540  fi
27541done
27542
27543# For the awk script, D is an array of macro values keyed by name,
27544# likewise P contains macro parameters if any.  Preserve backslash
27545# newline sequences.
27546
27547ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27548sed -n '
27549s/.\{148\}/&'"$ac_delim"'/g
27550t rset
27551:rset
27552s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27553t def
27554d
27555:def
27556s/\\$//
27557t bsnl
27558s/["\\]/\\&/g
27559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27560D["\1"]=" \3"/p
27561s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27562d
27563:bsnl
27564s/["\\]/\\&/g
27565s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27566D["\1"]=" \3\\\\\\n"\\/p
27567t cont
27568s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27569t cont
27570d
27571:cont
27572n
27573s/.\{148\}/&'"$ac_delim"'/g
27574t clear
27575:clear
27576s/\\$//
27577t bsnlc
27578s/["\\]/\\&/g; s/^/"/; s/$/"/p
27579d
27580:bsnlc
27581s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27582b cont
27583' <confdefs.h | sed '
27584s/'"$ac_delim"'/"\\\
27585"/g' >>$CONFIG_STATUS || ac_write_fail=1
27586
27587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27588  for (key in D) D_is_set[key] = 1
27589  FS = ""
27590}
27591/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27592  line = \$ 0
27593  split(line, arg, " ")
27594  if (arg[1] == "#") {
27595    defundef = arg[2]
27596    mac1 = arg[3]
27597  } else {
27598    defundef = substr(arg[1], 2)
27599    mac1 = arg[2]
27600  }
27601  split(mac1, mac2, "(") #)
27602  macro = mac2[1]
27603  prefix = substr(line, 1, index(line, defundef) - 1)
27604  if (D_is_set[macro]) {
27605    # Preserve the white space surrounding the "#".
27606    print prefix "define", macro P[macro] D[macro]
27607    next
27608  } else {
27609    # Replace #undef with comments.  This is necessary, for example,
27610    # in the case of _POSIX_SOURCE, which is predefined and required
27611    # on some systems where configure will not decide to define it.
27612    if (defundef == "undef") {
27613      print "/*", prefix defundef, macro, "*/"
27614      next
27615    }
27616  }
27617}
27618{ print }
27619_ACAWK
27620_ACEOF
27621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27622  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27623fi # test -n "$CONFIG_HEADERS"
27624
27625
27626eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27627shift
27628for ac_tag
27629do
27630  case $ac_tag in
27631  :[FHLC]) ac_mode=$ac_tag; continue;;
27632  esac
27633  case $ac_mode$ac_tag in
27634  :[FHL]*:*);;
27635  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27636  :[FH]-) ac_tag=-:-;;
27637  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27638  esac
27639  ac_save_IFS=$IFS
27640  IFS=:
27641  set x $ac_tag
27642  IFS=$ac_save_IFS
27643  shift
27644  ac_file=$1
27645  shift
27646
27647  case $ac_mode in
27648  :L) ac_source=$1;;
27649  :[FH])
27650    ac_file_inputs=
27651    for ac_f
27652    do
27653      case $ac_f in
27654      -) ac_f="$ac_tmp/stdin";;
27655      *) # Look for the file first in the build tree, then in the source tree
27656	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27657	 # because $ac_f cannot contain `:'.
27658	 test -f "$ac_f" ||
27659	   case $ac_f in
27660	   [\\/$]*) false;;
27661	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27662	   esac ||
27663	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27664      esac
27665      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27666      as_fn_append ac_file_inputs " '$ac_f'"
27667    done
27668
27669    # Let's still pretend it is `configure' which instantiates (i.e., don't
27670    # use $as_me), people would be surprised to read:
27671    #    /* config.h.  Generated by config.status.  */
27672    configure_input='Generated from '`
27673	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27674	`' by configure.'
27675    if test x"$ac_file" != x-; then
27676      configure_input="$ac_file.  $configure_input"
27677      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27678$as_echo "$as_me: creating $ac_file" >&6;}
27679    fi
27680    # Neutralize special characters interpreted by sed in replacement strings.
27681    case $configure_input in #(
27682    *\&* | *\|* | *\\* )
27683       ac_sed_conf_input=`$as_echo "$configure_input" |
27684       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27685    *) ac_sed_conf_input=$configure_input;;
27686    esac
27687
27688    case $ac_tag in
27689    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27690      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27691    esac
27692    ;;
27693  esac
27694
27695  ac_dir=`$as_dirname -- "$ac_file" ||
27696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27697	 X"$ac_file" : 'X\(//\)[^/]' \| \
27698	 X"$ac_file" : 'X\(//\)$' \| \
27699	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27700$as_echo X"$ac_file" |
27701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27702	    s//\1/
27703	    q
27704	  }
27705	  /^X\(\/\/\)[^/].*/{
27706	    s//\1/
27707	    q
27708	  }
27709	  /^X\(\/\/\)$/{
27710	    s//\1/
27711	    q
27712	  }
27713	  /^X\(\/\).*/{
27714	    s//\1/
27715	    q
27716	  }
27717	  s/.*/./; q'`
27718  as_dir="$ac_dir"; as_fn_mkdir_p
27719  ac_builddir=.
27720
27721case "$ac_dir" in
27722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27723*)
27724  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27725  # A ".." for each directory in $ac_dir_suffix.
27726  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27727  case $ac_top_builddir_sub in
27728  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27729  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27730  esac ;;
27731esac
27732ac_abs_top_builddir=$ac_pwd
27733ac_abs_builddir=$ac_pwd$ac_dir_suffix
27734# for backward compatibility:
27735ac_top_builddir=$ac_top_build_prefix
27736
27737case $srcdir in
27738  .)  # We are building in place.
27739    ac_srcdir=.
27740    ac_top_srcdir=$ac_top_builddir_sub
27741    ac_abs_top_srcdir=$ac_pwd ;;
27742  [\\/]* | ?:[\\/]* )  # Absolute name.
27743    ac_srcdir=$srcdir$ac_dir_suffix;
27744    ac_top_srcdir=$srcdir
27745    ac_abs_top_srcdir=$srcdir ;;
27746  *) # Relative name.
27747    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27748    ac_top_srcdir=$ac_top_build_prefix$srcdir
27749    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27750esac
27751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27752
27753
27754  case $ac_mode in
27755  :F)
27756  #
27757  # CONFIG_FILE
27758  #
27759
27760  case $INSTALL in
27761  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27762  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27763  esac
27764  ac_MKDIR_P=$MKDIR_P
27765  case $MKDIR_P in
27766  [\\/$]* | ?:[\\/]* ) ;;
27767  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27768  esac
27769_ACEOF
27770
27771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27772# If the template does not know about datarootdir, expand it.
27773# FIXME: This hack should be removed a few years after 2.60.
27774ac_datarootdir_hack=; ac_datarootdir_seen=
27775ac_sed_dataroot='
27776/datarootdir/ {
27777  p
27778  q
27779}
27780/@datadir@/p
27781/@docdir@/p
27782/@infodir@/p
27783/@localedir@/p
27784/@mandir@/p'
27785case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27786*datarootdir*) ac_datarootdir_seen=yes;;
27787*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27788  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27789$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27790_ACEOF
27791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27792  ac_datarootdir_hack='
27793  s&@datadir@&$datadir&g
27794  s&@docdir@&$docdir&g
27795  s&@infodir@&$infodir&g
27796  s&@localedir@&$localedir&g
27797  s&@mandir@&$mandir&g
27798  s&\\\${datarootdir}&$datarootdir&g' ;;
27799esac
27800_ACEOF
27801
27802# Neutralize VPATH when `$srcdir' = `.'.
27803# Shell code in configure.ac might set extrasub.
27804# FIXME: do we really want to maintain this feature?
27805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27806ac_sed_extra="$ac_vpsub
27807$extrasub
27808_ACEOF
27809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27810:t
27811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27812s|@configure_input@|$ac_sed_conf_input|;t t
27813s&@top_builddir@&$ac_top_builddir_sub&;t t
27814s&@top_build_prefix@&$ac_top_build_prefix&;t t
27815s&@srcdir@&$ac_srcdir&;t t
27816s&@abs_srcdir@&$ac_abs_srcdir&;t t
27817s&@top_srcdir@&$ac_top_srcdir&;t t
27818s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27819s&@builddir@&$ac_builddir&;t t
27820s&@abs_builddir@&$ac_abs_builddir&;t t
27821s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27822s&@INSTALL@&$ac_INSTALL&;t t
27823s&@MKDIR_P@&$ac_MKDIR_P&;t t
27824$ac_datarootdir_hack
27825"
27826eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27827  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27828
27829test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27830  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27831  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27832      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27833  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27834which seems to be undefined.  Please make sure it is defined" >&5
27835$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27836which seems to be undefined.  Please make sure it is defined" >&2;}
27837
27838  rm -f "$ac_tmp/stdin"
27839  case $ac_file in
27840  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27841  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27842  esac \
27843  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27844 ;;
27845  :H)
27846  #
27847  # CONFIG_HEADER
27848  #
27849  if test x"$ac_file" != x-; then
27850    {
27851      $as_echo "/* $configure_input  */" \
27852      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27853    } >"$ac_tmp/config.h" \
27854      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27855    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27856      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27857$as_echo "$as_me: $ac_file is unchanged" >&6;}
27858    else
27859      rm -f "$ac_file"
27860      mv "$ac_tmp/config.h" "$ac_file" \
27861	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27862    fi
27863  else
27864    $as_echo "/* $configure_input  */" \
27865      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27866      || as_fn_error $? "could not create -" "$LINENO" 5
27867  fi
27868# Compute "$ac_file"'s index in $config_headers.
27869_am_arg="$ac_file"
27870_am_stamp_count=1
27871for _am_header in $config_headers :; do
27872  case $_am_header in
27873    $_am_arg | $_am_arg:* )
27874      break ;;
27875    * )
27876      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27877  esac
27878done
27879echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27880$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27881	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27882	 X"$_am_arg" : 'X\(//\)$' \| \
27883	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27884$as_echo X"$_am_arg" |
27885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27886	    s//\1/
27887	    q
27888	  }
27889	  /^X\(\/\/\)[^/].*/{
27890	    s//\1/
27891	    q
27892	  }
27893	  /^X\(\/\/\)$/{
27894	    s//\1/
27895	    q
27896	  }
27897	  /^X\(\/\).*/{
27898	    s//\1/
27899	    q
27900	  }
27901	  s/.*/./; q'`/stamp-h$_am_stamp_count
27902 ;;
27903
27904  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27905$as_echo "$as_me: executing $ac_file commands" >&6;}
27906 ;;
27907  esac
27908
27909
27910  case $ac_file$ac_mode in
27911    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27912  # Older Autoconf quotes --file arguments for eval, but not when files
27913  # are listed without --file.  Let's play safe and only enable the eval
27914  # if we detect the quoting.
27915  case $CONFIG_FILES in
27916  *\'*) eval set x "$CONFIG_FILES" ;;
27917  *)   set x $CONFIG_FILES ;;
27918  esac
27919  shift
27920  for mf
27921  do
27922    # Strip MF so we end up with the name of the file.
27923    mf=`echo "$mf" | sed -e 's/:.*$//'`
27924    # Check whether this is an Automake generated Makefile or not.
27925    # We used to match only the files named 'Makefile.in', but
27926    # some people rename them; so instead we look at the file content.
27927    # Grep'ing the first line is not enough: some people post-process
27928    # each Makefile.in and add a new line on top of each file to say so.
27929    # Grep'ing the whole file is not good either: AIX grep has a line
27930    # limit of 2048, but all sed's we know have understand at least 4000.
27931    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27932      dirpart=`$as_dirname -- "$mf" ||
27933$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27934	 X"$mf" : 'X\(//\)[^/]' \| \
27935	 X"$mf" : 'X\(//\)$' \| \
27936	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27937$as_echo X"$mf" |
27938    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27939	    s//\1/
27940	    q
27941	  }
27942	  /^X\(\/\/\)[^/].*/{
27943	    s//\1/
27944	    q
27945	  }
27946	  /^X\(\/\/\)$/{
27947	    s//\1/
27948	    q
27949	  }
27950	  /^X\(\/\).*/{
27951	    s//\1/
27952	    q
27953	  }
27954	  s/.*/./; q'`
27955    else
27956      continue
27957    fi
27958    # Extract the definition of DEPDIR, am__include, and am__quote
27959    # from the Makefile without running 'make'.
27960    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27961    test -z "$DEPDIR" && continue
27962    am__include=`sed -n 's/^am__include = //p' < "$mf"`
27963    test -z "$am__include" && continue
27964    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27965    # Find all dependency output files, they are included files with
27966    # $(DEPDIR) in their names.  We invoke sed twice because it is the
27967    # simplest approach to changing $(DEPDIR) to its actual value in the
27968    # expansion.
27969    for file in `sed -n "
27970      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27971	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27972      # Make sure the directory exists.
27973      test -f "$dirpart/$file" && continue
27974      fdir=`$as_dirname -- "$file" ||
27975$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27976	 X"$file" : 'X\(//\)[^/]' \| \
27977	 X"$file" : 'X\(//\)$' \| \
27978	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27979$as_echo X"$file" |
27980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27981	    s//\1/
27982	    q
27983	  }
27984	  /^X\(\/\/\)[^/].*/{
27985	    s//\1/
27986	    q
27987	  }
27988	  /^X\(\/\/\)$/{
27989	    s//\1/
27990	    q
27991	  }
27992	  /^X\(\/\).*/{
27993	    s//\1/
27994	    q
27995	  }
27996	  s/.*/./; q'`
27997      as_dir=$dirpart/$fdir; as_fn_mkdir_p
27998      # echo "creating $dirpart/$file"
27999      echo '# dummy' > "$dirpart/$file"
28000    done
28001  done
28002}
28003 ;;
28004    "libtool":C)
28005
28006    # See if we are running on zsh, and set the options that allow our
28007    # commands through without removal of \ escapes.
28008    if test -n "${ZSH_VERSION+set}"; then
28009      setopt NO_GLOB_SUBST
28010    fi
28011
28012    cfgfile=${ofile}T
28013    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28014    $RM "$cfgfile"
28015
28016    cat <<_LT_EOF >> "$cfgfile"
28017#! $SHELL
28018# Generated automatically by $as_me ($PACKAGE) $VERSION
28019# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28020
28021# Provide generalized library-building support services.
28022# Written by Gordon Matzigkeit, 1996
28023
28024# Copyright (C) 2014 Free Software Foundation, Inc.
28025# This is free software; see the source for copying conditions.  There is NO
28026# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28027
28028# GNU Libtool is free software; you can redistribute it and/or modify
28029# it under the terms of the GNU General Public License as published by
28030# the Free Software Foundation; either version 2 of of the License, or
28031# (at your option) any later version.
28032#
28033# As a special exception to the GNU General Public License, if you
28034# distribute this file as part of a program or library that is built
28035# using GNU Libtool, you may include this file under the  same
28036# distribution terms that you use for the rest of that program.
28037#
28038# GNU Libtool is distributed in the hope that it will be useful, but
28039# WITHOUT ANY WARRANTY; without even the implied warranty of
28040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28041# GNU General Public License for more details.
28042#
28043# You should have received a copy of the GNU General Public License
28044# along with this program.  If not, see <http://www.gnu.org/licenses/>.
28045
28046
28047# The names of the tagged configurations supported by this script.
28048available_tags=''
28049
28050# Configured defaults for sys_lib_dlsearch_path munging.
28051: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28052
28053# ### BEGIN LIBTOOL CONFIG
28054
28055# Which release of libtool.m4 was used?
28056macro_version=$macro_version
28057macro_revision=$macro_revision
28058
28059# Whether or not to build shared libraries.
28060build_libtool_libs=$enable_shared
28061
28062# Whether or not to build static libraries.
28063build_old_libs=$enable_static
28064
28065# What type of objects to build.
28066pic_mode=$pic_mode
28067
28068# Whether or not to optimize for fast installation.
28069fast_install=$enable_fast_install
28070
28071# Shared archive member basename,for filename based shared library versioning on AIX.
28072shared_archive_member_spec=$shared_archive_member_spec
28073
28074# Shell to use when invoking shell scripts.
28075SHELL=$lt_SHELL
28076
28077# An echo program that protects backslashes.
28078ECHO=$lt_ECHO
28079
28080# The PATH separator for the build system.
28081PATH_SEPARATOR=$lt_PATH_SEPARATOR
28082
28083# The host system.
28084host_alias=$host_alias
28085host=$host
28086host_os=$host_os
28087
28088# The build system.
28089build_alias=$build_alias
28090build=$build
28091build_os=$build_os
28092
28093# A sed program that does not truncate output.
28094SED=$lt_SED
28095
28096# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28097Xsed="\$SED -e 1s/^X//"
28098
28099# A grep program that handles long lines.
28100GREP=$lt_GREP
28101
28102# An ERE matcher.
28103EGREP=$lt_EGREP
28104
28105# A literal string matcher.
28106FGREP=$lt_FGREP
28107
28108# A BSD- or MS-compatible name lister.
28109NM=$lt_NM
28110
28111# Whether we need soft or hard links.
28112LN_S=$lt_LN_S
28113
28114# What is the maximum length of a command?
28115max_cmd_len=$max_cmd_len
28116
28117# Object file suffix (normally "o").
28118objext=$ac_objext
28119
28120# Executable file suffix (normally "").
28121exeext=$exeext
28122
28123# whether the shell understands "unset".
28124lt_unset=$lt_unset
28125
28126# turn spaces into newlines.
28127SP2NL=$lt_lt_SP2NL
28128
28129# turn newlines into spaces.
28130NL2SP=$lt_lt_NL2SP
28131
28132# convert \$build file names to \$host format.
28133to_host_file_cmd=$lt_cv_to_host_file_cmd
28134
28135# convert \$build files to toolchain format.
28136to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28137
28138# An object symbol dumper.
28139OBJDUMP=$lt_OBJDUMP
28140
28141# Method to check whether dependent libraries are shared objects.
28142deplibs_check_method=$lt_deplibs_check_method
28143
28144# Command to use when deplibs_check_method = "file_magic".
28145file_magic_cmd=$lt_file_magic_cmd
28146
28147# How to find potential files when deplibs_check_method = "file_magic".
28148file_magic_glob=$lt_file_magic_glob
28149
28150# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28151want_nocaseglob=$lt_want_nocaseglob
28152
28153# DLL creation program.
28154DLLTOOL=$lt_DLLTOOL
28155
28156# Command to associate shared and link libraries.
28157sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28158
28159# The archiver.
28160AR=$lt_AR
28161
28162# Flags to create an archive.
28163AR_FLAGS=$lt_AR_FLAGS
28164
28165# How to feed a file listing to the archiver.
28166archiver_list_spec=$lt_archiver_list_spec
28167
28168# A symbol stripping program.
28169STRIP=$lt_STRIP
28170
28171# Commands used to install an old-style archive.
28172RANLIB=$lt_RANLIB
28173old_postinstall_cmds=$lt_old_postinstall_cmds
28174old_postuninstall_cmds=$lt_old_postuninstall_cmds
28175
28176# Whether to use a lock for old archive extraction.
28177lock_old_archive_extraction=$lock_old_archive_extraction
28178
28179# A C compiler.
28180LTCC=$lt_CC
28181
28182# LTCC compiler flags.
28183LTCFLAGS=$lt_CFLAGS
28184
28185# Take the output of nm and produce a listing of raw symbols and C names.
28186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28187
28188# Transform the output of nm in a proper C declaration.
28189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28190
28191# Transform the output of nm into a list of symbols to manually relocate.
28192global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28193
28194# Transform the output of nm in a C name address pair.
28195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28196
28197# Transform the output of nm in a C name address pair when lib prefix is needed.
28198global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28199
28200# The name lister interface.
28201nm_interface=$lt_lt_cv_nm_interface
28202
28203# Specify filename containing input files for \$NM.
28204nm_file_list_spec=$lt_nm_file_list_spec
28205
28206# The root where to search for dependent libraries,and where our libraries should be installed.
28207lt_sysroot=$lt_sysroot
28208
28209# Command to truncate a binary pipe.
28210lt_truncate_bin=$lt_lt_cv_truncate_bin
28211
28212# The name of the directory that contains temporary libtool files.
28213objdir=$objdir
28214
28215# Used to examine libraries when file_magic_cmd begins with "file".
28216MAGIC_CMD=$MAGIC_CMD
28217
28218# Must we lock files when doing compilation?
28219need_locks=$lt_need_locks
28220
28221# Manifest tool.
28222MANIFEST_TOOL=$lt_MANIFEST_TOOL
28223
28224# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28225DSYMUTIL=$lt_DSYMUTIL
28226
28227# Tool to change global to local symbols on Mac OS X.
28228NMEDIT=$lt_NMEDIT
28229
28230# Tool to manipulate fat objects and archives on Mac OS X.
28231LIPO=$lt_LIPO
28232
28233# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28234OTOOL=$lt_OTOOL
28235
28236# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28237OTOOL64=$lt_OTOOL64
28238
28239# Old archive suffix (normally "a").
28240libext=$libext
28241
28242# Shared library suffix (normally ".so").
28243shrext_cmds=$lt_shrext_cmds
28244
28245# The commands to extract the exported symbol list from a shared archive.
28246extract_expsyms_cmds=$lt_extract_expsyms_cmds
28247
28248# Variables whose values should be saved in libtool wrapper scripts and
28249# restored at link time.
28250variables_saved_for_relink=$lt_variables_saved_for_relink
28251
28252# Do we need the "lib" prefix for modules?
28253need_lib_prefix=$need_lib_prefix
28254
28255# Do we need a version for libraries?
28256need_version=$need_version
28257
28258# Library versioning type.
28259version_type=$version_type
28260
28261# Shared library runtime path variable.
28262runpath_var=$runpath_var
28263
28264# Shared library path variable.
28265shlibpath_var=$shlibpath_var
28266
28267# Is shlibpath searched before the hard-coded library search path?
28268shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28269
28270# Format of library name prefix.
28271libname_spec=$lt_libname_spec
28272
28273# List of archive names.  First name is the real one, the rest are links.
28274# The last name is the one that the linker finds with -lNAME
28275library_names_spec=$lt_library_names_spec
28276
28277# The coded name of the library, if different from the real name.
28278soname_spec=$lt_soname_spec
28279
28280# Permission mode override for installation of shared libraries.
28281install_override_mode=$lt_install_override_mode
28282
28283# Command to use after installation of a shared archive.
28284postinstall_cmds=$lt_postinstall_cmds
28285
28286# Command to use after uninstallation of a shared archive.
28287postuninstall_cmds=$lt_postuninstall_cmds
28288
28289# Commands used to finish a libtool library installation in a directory.
28290finish_cmds=$lt_finish_cmds
28291
28292# As "finish_cmds", except a single script fragment to be evaled but
28293# not shown.
28294finish_eval=$lt_finish_eval
28295
28296# Whether we should hardcode library paths into libraries.
28297hardcode_into_libs=$hardcode_into_libs
28298
28299# Compile-time system search path for libraries.
28300sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28301
28302# Detected run-time system search path for libraries.
28303sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28304
28305# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28306configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28307
28308# Whether dlopen is supported.
28309dlopen_support=$enable_dlopen
28310
28311# Whether dlopen of programs is supported.
28312dlopen_self=$enable_dlopen_self
28313
28314# Whether dlopen of statically linked programs is supported.
28315dlopen_self_static=$enable_dlopen_self_static
28316
28317# Commands to strip libraries.
28318old_striplib=$lt_old_striplib
28319striplib=$lt_striplib
28320
28321
28322# The linker used to build libraries.
28323LD=$lt_LD
28324
28325# How to create reloadable object files.
28326reload_flag=$lt_reload_flag
28327reload_cmds=$lt_reload_cmds
28328
28329# Commands used to build an old-style archive.
28330old_archive_cmds=$lt_old_archive_cmds
28331
28332# A language specific compiler.
28333CC=$lt_compiler
28334
28335# Is the compiler the GNU compiler?
28336with_gcc=$GCC
28337
28338# Compiler flag to turn off builtin functions.
28339no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28340
28341# Additional compiler flags for building library objects.
28342pic_flag=$lt_lt_prog_compiler_pic
28343
28344# How to pass a linker flag through the compiler.
28345wl=$lt_lt_prog_compiler_wl
28346
28347# Compiler flag to prevent dynamic linking.
28348link_static_flag=$lt_lt_prog_compiler_static
28349
28350# Does compiler simultaneously support -c and -o options?
28351compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28352
28353# Whether or not to add -lc for building shared libraries.
28354build_libtool_need_lc=$archive_cmds_need_lc
28355
28356# Whether or not to disallow shared libs when runtime libs are static.
28357allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28358
28359# Compiler flag to allow reflexive dlopens.
28360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28361
28362# Compiler flag to generate shared objects directly from archives.
28363whole_archive_flag_spec=$lt_whole_archive_flag_spec
28364
28365# Whether the compiler copes with passing no objects directly.
28366compiler_needs_object=$lt_compiler_needs_object
28367
28368# Create an old-style archive from a shared archive.
28369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28370
28371# Create a temporary old-style archive to link instead of a shared archive.
28372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28373
28374# Commands used to build a shared archive.
28375archive_cmds=$lt_archive_cmds
28376archive_expsym_cmds=$lt_archive_expsym_cmds
28377
28378# Commands used to build a loadable module if different from building
28379# a shared archive.
28380module_cmds=$lt_module_cmds
28381module_expsym_cmds=$lt_module_expsym_cmds
28382
28383# Whether we are building with GNU ld or not.
28384with_gnu_ld=$lt_with_gnu_ld
28385
28386# Flag that allows shared libraries with undefined symbols to be built.
28387allow_undefined_flag=$lt_allow_undefined_flag
28388
28389# Flag that enforces no undefined symbols.
28390no_undefined_flag=$lt_no_undefined_flag
28391
28392# Flag to hardcode \$libdir into a binary during linking.
28393# This must work even if \$libdir does not exist
28394hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28395
28396# Whether we need a single "-rpath" flag with a separated argument.
28397hardcode_libdir_separator=$lt_hardcode_libdir_separator
28398
28399# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28400# DIR into the resulting binary.
28401hardcode_direct=$hardcode_direct
28402
28403# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28404# DIR into the resulting binary and the resulting library dependency is
28405# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28406# library is relocated.
28407hardcode_direct_absolute=$hardcode_direct_absolute
28408
28409# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28410# into the resulting binary.
28411hardcode_minus_L=$hardcode_minus_L
28412
28413# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28414# into the resulting binary.
28415hardcode_shlibpath_var=$hardcode_shlibpath_var
28416
28417# Set to "yes" if building a shared library automatically hardcodes DIR
28418# into the library and all subsequent libraries and executables linked
28419# against it.
28420hardcode_automatic=$hardcode_automatic
28421
28422# Set to yes if linker adds runtime paths of dependent libraries
28423# to runtime path list.
28424inherit_rpath=$inherit_rpath
28425
28426# Whether libtool must link a program against all its dependency libraries.
28427link_all_deplibs=$link_all_deplibs
28428
28429# Set to "yes" if exported symbols are required.
28430always_export_symbols=$always_export_symbols
28431
28432# The commands to list exported symbols.
28433export_symbols_cmds=$lt_export_symbols_cmds
28434
28435# Symbols that should not be listed in the preloaded symbols.
28436exclude_expsyms=$lt_exclude_expsyms
28437
28438# Symbols that must always be exported.
28439include_expsyms=$lt_include_expsyms
28440
28441# Commands necessary for linking programs (against libraries) with templates.
28442prelink_cmds=$lt_prelink_cmds
28443
28444# Commands necessary for finishing linking programs.
28445postlink_cmds=$lt_postlink_cmds
28446
28447# Specify filename containing input files.
28448file_list_spec=$lt_file_list_spec
28449
28450# How to hardcode a shared library path into an executable.
28451hardcode_action=$hardcode_action
28452
28453# ### END LIBTOOL CONFIG
28454
28455_LT_EOF
28456
28457    cat <<'_LT_EOF' >> "$cfgfile"
28458
28459# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28460
28461# func_munge_path_list VARIABLE PATH
28462# -----------------------------------
28463# VARIABLE is name of variable containing _space_ separated list of
28464# directories to be munged by the contents of PATH, which is string
28465# having a format:
28466# "DIR[:DIR]:"
28467#       string "DIR[ DIR]" will be prepended to VARIABLE
28468# ":DIR[:DIR]"
28469#       string "DIR[ DIR]" will be appended to VARIABLE
28470# "DIRP[:DIRP]::[DIRA:]DIRA"
28471#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28472#       "DIRA[ DIRA]" will be appended to VARIABLE
28473# "DIR[:DIR]"
28474#       VARIABLE will be replaced by "DIR[ DIR]"
28475func_munge_path_list ()
28476{
28477    case x$2 in
28478    x)
28479        ;;
28480    *:)
28481        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28482        ;;
28483    x:*)
28484        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28485        ;;
28486    *::*)
28487        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28488        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28489        ;;
28490    *)
28491        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28492        ;;
28493    esac
28494}
28495
28496
28497# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28498func_cc_basename ()
28499{
28500    for cc_temp in $*""; do
28501      case $cc_temp in
28502        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28503        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28504        \-*) ;;
28505        *) break;;
28506      esac
28507    done
28508    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28509}
28510
28511
28512# ### END FUNCTIONS SHARED WITH CONFIGURE
28513
28514_LT_EOF
28515
28516  case $host_os in
28517  aix3*)
28518    cat <<\_LT_EOF >> "$cfgfile"
28519# AIX sometimes has problems with the GCC collect2 program.  For some
28520# reason, if we set the COLLECT_NAMES environment variable, the problems
28521# vanish in a puff of smoke.
28522if test set != "${COLLECT_NAMES+set}"; then
28523  COLLECT_NAMES=
28524  export COLLECT_NAMES
28525fi
28526_LT_EOF
28527    ;;
28528  esac
28529
28530
28531ltmain=$ac_aux_dir/ltmain.sh
28532
28533
28534  # We use sed instead of cat because bash on DJGPP gets confused if
28535  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28536  # text mode, it properly converts lines to CR/LF.  This bash problem
28537  # is reportedly fixed, but why not run on old versions too?
28538  sed '$q' "$ltmain" >> "$cfgfile" \
28539     || (rm -f "$cfgfile"; exit 1)
28540
28541   mv -f "$cfgfile" "$ofile" ||
28542    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28543  chmod +x "$ofile"
28544
28545 ;;
28546    "po-directories":C)
28547    for ac_file in $CONFIG_FILES; do
28548      # Support "outfile[:infile[:infile...]]"
28549      case "$ac_file" in
28550        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28551      esac
28552      # PO directories have a Makefile.in generated from Makefile.in.in.
28553      case "$ac_file" in */Makefile.in)
28554        # Adjust a relative srcdir.
28555        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28556        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28557        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28558        # In autoconf-2.13 it is called $ac_given_srcdir.
28559        # In autoconf-2.50 it is called $srcdir.
28560        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28561        case "$ac_given_srcdir" in
28562          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28563          /*) top_srcdir="$ac_given_srcdir" ;;
28564          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
28565        esac
28566        # Treat a directory as a PO directory if and only if it has a
28567        # POTFILES.in file. This allows packages to have multiple PO
28568        # directories under different names or in different locations.
28569        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28570          rm -f "$ac_dir/POTFILES"
28571          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28572          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28573          POMAKEFILEDEPS="POTFILES.in"
28574          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28575          # on $ac_dir but don't depend on user-specified configuration
28576          # parameters.
28577          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28578            # The LINGUAS file contains the set of available languages.
28579            if test -n "$OBSOLETE_ALL_LINGUAS"; then
28580              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28581            fi
28582            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28583            # Hide the ALL_LINGUAS assigment from automake < 1.5.
28584            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28585            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28586          else
28587            # The set of available languages was given in configure.in.
28588            # Hide the ALL_LINGUAS assigment from automake < 1.5.
28589            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28590          fi
28591          # Compute POFILES
28592          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28593          # Compute UPDATEPOFILES
28594          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28595          # Compute DUMMYPOFILES
28596          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28597          # Compute GMOFILES
28598          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28599          case "$ac_given_srcdir" in
28600            .) srcdirpre= ;;
28601            *) srcdirpre='$(srcdir)/' ;;
28602          esac
28603          POFILES=
28604          UPDATEPOFILES=
28605          DUMMYPOFILES=
28606          GMOFILES=
28607          for lang in $ALL_LINGUAS; do
28608            POFILES="$POFILES $srcdirpre$lang.po"
28609            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28610            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28611            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28612          done
28613          # CATALOGS depends on both $ac_dir and the user's LINGUAS
28614          # environment variable.
28615          INST_LINGUAS=
28616          if test -n "$ALL_LINGUAS"; then
28617            for presentlang in $ALL_LINGUAS; do
28618              useit=no
28619              if test "%UNSET%" != "$LINGUAS"; then
28620                desiredlanguages="$LINGUAS"
28621              else
28622                desiredlanguages="$ALL_LINGUAS"
28623              fi
28624              for desiredlang in $desiredlanguages; do
28625                # Use the presentlang catalog if desiredlang is
28626                #   a. equal to presentlang, or
28627                #   b. a variant of presentlang (because in this case,
28628                #      presentlang can be used as a fallback for messages
28629                #      which are not translated in the desiredlang catalog).
28630                case "$desiredlang" in
28631                  "$presentlang"*) useit=yes;;
28632                esac
28633              done
28634              if test $useit = yes; then
28635                INST_LINGUAS="$INST_LINGUAS $presentlang"
28636              fi
28637            done
28638          fi
28639          CATALOGS=
28640          if test -n "$INST_LINGUAS"; then
28641            for lang in $INST_LINGUAS; do
28642              CATALOGS="$CATALOGS $lang.gmo"
28643            done
28644          fi
28645          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28646          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28647          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28648            if test -f "$f"; then
28649              case "$f" in
28650                *.orig | *.bak | *~) ;;
28651                *) cat "$f" >> "$ac_dir/Makefile" ;;
28652              esac
28653            fi
28654          done
28655        fi
28656        ;;
28657      esac
28658    done ;;
28659    "default":C)  chmod +x examples/*.pl ;;
28660
28661  esac
28662done # for ac_tag
28663
28664
28665as_fn_exit 0
28666_ACEOF
28667ac_clean_files=$ac_clean_files_save
28668
28669test $ac_write_fail = 0 ||
28670  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28671
28672
28673# configure is writing to config.log, and then calls config.status.
28674# config.status does its own redirection, appending to config.log.
28675# Unfortunately, on DOS this fails, as config.log is still kept open
28676# by configure, so config.status won't be able to write to it; its
28677# output is simply discarded.  So we exec the FD to /dev/null,
28678# effectively closing config.log, so it can be properly (re)opened and
28679# appended to by config.status.  When coming back to configure, we
28680# need to make the FD available again.
28681if test "$no_create" != yes; then
28682  ac_cs_success=:
28683  ac_config_status_args=
28684  test "$silent" = yes &&
28685    ac_config_status_args="$ac_config_status_args --quiet"
28686  exec 5>/dev/null
28687  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28688  exec 5>>config.log
28689  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28690  # would make configure fail if this is the last instruction.
28691  $ac_cs_success || as_fn_exit 1
28692fi
28693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28694  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28695$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28696fi
28697
28698
28699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking in" >&5
28700$as_echo_n "checking in... " >&6; }
28701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: and out again" >&5
28702$as_echo "and out again" >&6; }
28703
28704echo
28705echo "----------------------------------------------------------------"
28706echo "Config is DONE!"
28707echo
28708echo "          With MMAP IO: $enable_mmap"
28709echo "          With Locking: $enable_flock"
28710echo "       Build rrd_graph: $enable_rrd_graph"
28711echo "     Build rrd_restore: $enable_rrd_restore"
28712echo "       Static programs: $staticprogs"
28713echo "          Perl Modules: $COMP_PERL"
28714echo "           Perl Binary: $PERL"
28715echo "          Perl Version: $PERL_VERSION"
28716echo "          Perl Options: $PERL_MAKE_OPTIONS"
28717echo "          Ruby Modules: $COMP_RUBY"
28718echo "           Ruby Binary: $RUBY"
28719echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
28720echo "    Build Lua Bindings: $enable_lua"
28721if test "$enable_lua" = "yes"; then
28722echo "            Lua Binary: $LUA"
28723echo "           Lua Version: $lua_version"
28724echo "     Lua C-modules dir: $LUA_INSTALL_CMOD"
28725if test "$lua_need_compat51" = "1"; then
28726echo "   Lua Lua-modules dir: $LUA_INSTALL_LMOD"
28727fi
28728fi
28729echo "      Systemd unit dir: $with_systemdsystemunitdir"
28730echo "    Build Tcl Bindings: $enable_tcl"
28731echo " Build Python Bindings: $enable_python"
28732echo "        Build examples: $enable_examples"
28733echo "       Build rrdcached: $enable_rrdcached"
28734echo "          Build rrdcgi: $enable_rrdcgi"
28735echo "       Build librrd MT: $enable_pthread"
28736echo "           Use gettext: $USE_NLS"
28737echo "           With libDBI: $have_libdbi"
28738echo "         With librados: $have_librados"
28739echo "          With libwrap: $have_libwrap"
28740echo "      With systemd dir: $with_systemdsystemunitdir"
28741echo
28742echo "             Libraries: $ALL_LIBS"
28743echo
28744echo "Type 'make' to compile the software and use 'make install' to "
28745echo "install everything to: $prefix."
28746if test "x$with_systemdsystemunitdir" != xno; then
28747echo
28748echo "Type 'make etc-install' to install systemd support for rrdcached"
28749fi
28750echo
28751echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
28752echo "make me happy. Go to https://tobi.oetiker.ch/wish and"
28753echo "place an order."
28754echo
28755echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
28756echo "----------------------------------------------------------------"
28757