1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for librelp 1.10.0.
4#
5# Report bugs to <rgerhards@adiscon.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: rgerhards@adiscon.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='librelp'
592PACKAGE_TARNAME='librelp'
593PACKAGE_VERSION='1.10.0'
594PACKAGE_STRING='librelp 1.10.0'
595PACKAGE_BUGREPORT='rgerhards@adiscon.com'
596PACKAGE_URL=''
597
598ac_unique_file="src/relp.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_VALGRIND_FALSE
640HAVE_VALGRIND_TRUE
641VALGRIND
642ENABLE_TLS_GENERIC_FALSE
643ENABLE_TLS_GENERIC_TRUE
644ENABLE_TLS_FALSE
645ENABLE_TLS_TRUE
646GNUTLS_LIBS
647GNUTLS_CFLAGS
648ENABLE_TLS_OPENSSL_FALSE
649ENABLE_TLS_OPENSSL_TRUE
650OPENSSL_LIBS
651OPENSSL_CFLAGS
652rt_libs
653WARN_SCANNERFLAGS
654WARN_LDFLAGS
655WARN_CFLAGS
656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
658PKG_CONFIG
659CPP
660LT_SYS_LIBRARY_PATH
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666MANIFEST_TOOL
667RANLIB
668ac_ct_AR
669AR
670DLLTOOL
671OBJDUMP
672LN_S
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
678EGREP
679GREP
680SED
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689LIBTOOL
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706pkgpyexecdir
707pyexecdir
708pkgpythondir
709pythondir
710PYTHON_PLATFORM
711PYTHON_EXEC_PREFIX
712PYTHON_PREFIX
713PYTHON_VERSION
714PYTHON
715OS_AIX_FALSE
716OS_AIX_TRUE
717OS_SOLARIS_FALSE
718OS_SOLARIS_TRUE
719OS_LINUX_FALSE
720OS_LINUX_TRUE
721xOS_LINUX_FALSE
722xOS_LINUX_TRUE
723OS_APPLE_FALSE
724OS_APPLE_TRUE
725SOL_LIBS
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730am__untar
731am__tar
732AMTAR
733am__leading_dot
734SET_MAKE
735AWK
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739STRIP
740install_sh
741MAKEINFO
742AUTOHEADER
743AUTOMAKE
744AUTOCONF
745ACLOCAL
746VERSION
747PACKAGE
748CYGPATH_W
749am__isrc
750INSTALL_DATA
751INSTALL_SCRIPT
752INSTALL_PROGRAM
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772runstatedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL
792am__quote'
793ac_subst_files=''
794ac_user_opts='
795enable_option_checking
796enable_silent_rules
797enable_dependency_tracking
798enable_shared
799enable_static
800with_pic
801enable_fast_install
802with_aix_soname
803with_gnu_ld
804with_sysroot
805enable_libtool_lock
806enable_compile_warnings
807enable_Werror
808enable_tls
809enable_tls_openssl
810enable_debug
811enable_valgrind
812'
813      ac_precious_vars='build_alias
814host_alias
815target_alias
816PYTHON
817CC
818CFLAGS
819LDFLAGS
820LIBS
821CPPFLAGS
822LT_SYS_LIBRARY_PATH
823CPP
824PKG_CONFIG
825PKG_CONFIG_PATH
826PKG_CONFIG_LIBDIR
827OPENSSL_CFLAGS
828OPENSSL_LIBS
829GNUTLS_CFLAGS
830GNUTLS_LIBS'
831
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836ac_unrecognized_opts=
837ac_unrecognized_sep=
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
860# (The list follows the same order as the GNU Coding Standards.)
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
869runstatedir='${localstatedir}/run'
870includedir='${prefix}/include'
871oldincludedir='/usr/include'
872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
881
882ac_prev=
883ac_dashdash=
884for ac_option
885do
886  # If the previous option needs an argument, assign it.
887  if test -n "$ac_prev"; then
888    eval $ac_prev=\$ac_option
889    ac_prev=
890    continue
891  fi
892
893  case $ac_option in
894  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895  *=)   ac_optarg= ;;
896  *)    ac_optarg=yes ;;
897  esac
898
899  # Accept the important Cygnus configure options, so we can diagnose typos.
900
901  case $ac_dashdash$ac_option in
902  --)
903    ac_dashdash=yes ;;
904
905  -bindir | --bindir | --bindi | --bind | --bin | --bi)
906    ac_prev=bindir ;;
907  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908    bindir=$ac_optarg ;;
909
910  -build | --build | --buil | --bui | --bu)
911    ac_prev=build_alias ;;
912  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913    build_alias=$ac_optarg ;;
914
915  -cache-file | --cache-file | --cache-fil | --cache-fi \
916  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917    ac_prev=cache_file ;;
918  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920    cache_file=$ac_optarg ;;
921
922  --config-cache | -C)
923    cache_file=config.cache ;;
924
925  -datadir | --datadir | --datadi | --datad)
926    ac_prev=datadir ;;
927  -datadir=* | --datadir=* | --datadi=* | --datad=*)
928    datadir=$ac_optarg ;;
929
930  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931  | --dataroo | --dataro | --datar)
932    ac_prev=datarootdir ;;
933  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935    datarootdir=$ac_optarg ;;
936
937  -disable-* | --disable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: $ac_useropt"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=no ;;
952
953  -docdir | --docdir | --docdi | --doc | --do)
954    ac_prev=docdir ;;
955  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956    docdir=$ac_optarg ;;
957
958  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959    ac_prev=dvidir ;;
960  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961    dvidir=$ac_optarg ;;
962
963  -enable-* | --enable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=\$ac_optarg ;;
978
979  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981  | --exec | --exe | --ex)
982    ac_prev=exec_prefix ;;
983  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985  | --exec=* | --exe=* | --ex=*)
986    exec_prefix=$ac_optarg ;;
987
988  -gas | --gas | --ga | --g)
989    # Obsolete; use --with-gas.
990    with_gas=yes ;;
991
992  -help | --help | --hel | --he | -h)
993    ac_init_help=long ;;
994  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995    ac_init_help=recursive ;;
996  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997    ac_init_help=short ;;
998
999  -host | --host | --hos | --ho)
1000    ac_prev=host_alias ;;
1001  -host=* | --host=* | --hos=* | --ho=*)
1002    host_alias=$ac_optarg ;;
1003
1004  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005    ac_prev=htmldir ;;
1006  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007  | --ht=*)
1008    htmldir=$ac_optarg ;;
1009
1010  -includedir | --includedir | --includedi | --included | --include \
1011  | --includ | --inclu | --incl | --inc)
1012    ac_prev=includedir ;;
1013  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014  | --includ=* | --inclu=* | --incl=* | --inc=*)
1015    includedir=$ac_optarg ;;
1016
1017  -infodir | --infodir | --infodi | --infod | --info | --inf)
1018    ac_prev=infodir ;;
1019  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020    infodir=$ac_optarg ;;
1021
1022  -libdir | --libdir | --libdi | --libd)
1023    ac_prev=libdir ;;
1024  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025    libdir=$ac_optarg ;;
1026
1027  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028  | --libexe | --libex | --libe)
1029    ac_prev=libexecdir ;;
1030  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031  | --libexe=* | --libex=* | --libe=*)
1032    libexecdir=$ac_optarg ;;
1033
1034  -localedir | --localedir | --localedi | --localed | --locale)
1035    ac_prev=localedir ;;
1036  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037    localedir=$ac_optarg ;;
1038
1039  -localstatedir | --localstatedir | --localstatedi | --localstated \
1040  | --localstate | --localstat | --localsta | --localst | --locals)
1041    ac_prev=localstatedir ;;
1042  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044    localstatedir=$ac_optarg ;;
1045
1046  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047    ac_prev=mandir ;;
1048  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049    mandir=$ac_optarg ;;
1050
1051  -nfp | --nfp | --nf)
1052    # Obsolete; use --without-fp.
1053    with_fp=no ;;
1054
1055  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056  | --no-cr | --no-c | -n)
1057    no_create=yes ;;
1058
1059  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061    no_recursion=yes ;;
1062
1063  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065  | --oldin | --oldi | --old | --ol | --o)
1066    ac_prev=oldincludedir ;;
1067  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070    oldincludedir=$ac_optarg ;;
1071
1072  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073    ac_prev=prefix ;;
1074  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075    prefix=$ac_optarg ;;
1076
1077  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078  | --program-pre | --program-pr | --program-p)
1079    ac_prev=program_prefix ;;
1080  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082    program_prefix=$ac_optarg ;;
1083
1084  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085  | --program-suf | --program-su | --program-s)
1086    ac_prev=program_suffix ;;
1087  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089    program_suffix=$ac_optarg ;;
1090
1091  -program-transform-name | --program-transform-name \
1092  | --program-transform-nam | --program-transform-na \
1093  | --program-transform-n | --program-transform- \
1094  | --program-transform | --program-transfor \
1095  | --program-transfo | --program-transf \
1096  | --program-trans | --program-tran \
1097  | --progr-tra | --program-tr | --program-t)
1098    ac_prev=program_transform_name ;;
1099  -program-transform-name=* | --program-transform-name=* \
1100  | --program-transform-nam=* | --program-transform-na=* \
1101  | --program-transform-n=* | --program-transform-=* \
1102  | --program-transform=* | --program-transfor=* \
1103  | --program-transfo=* | --program-transf=* \
1104  | --program-trans=* | --program-tran=* \
1105  | --progr-tra=* | --program-tr=* | --program-t=*)
1106    program_transform_name=$ac_optarg ;;
1107
1108  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109    ac_prev=pdfdir ;;
1110  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111    pdfdir=$ac_optarg ;;
1112
1113  -psdir | --psdir | --psdi | --psd | --ps)
1114    ac_prev=psdir ;;
1115  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116    psdir=$ac_optarg ;;
1117
1118  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119  | -silent | --silent | --silen | --sile | --sil)
1120    silent=yes ;;
1121
1122  -runstatedir | --runstatedir | --runstatedi | --runstated \
1123  | --runstate | --runstat | --runsta | --runst | --runs \
1124  | --run | --ru | --r)
1125    ac_prev=runstatedir ;;
1126  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1127  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1128  | --run=* | --ru=* | --r=*)
1129    runstatedir=$ac_optarg ;;
1130
1131  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132    ac_prev=sbindir ;;
1133  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134  | --sbi=* | --sb=*)
1135    sbindir=$ac_optarg ;;
1136
1137  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139  | --sharedst | --shareds | --shared | --share | --shar \
1140  | --sha | --sh)
1141    ac_prev=sharedstatedir ;;
1142  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145  | --sha=* | --sh=*)
1146    sharedstatedir=$ac_optarg ;;
1147
1148  -site | --site | --sit)
1149    ac_prev=site ;;
1150  -site=* | --site=* | --sit=*)
1151    site=$ac_optarg ;;
1152
1153  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154    ac_prev=srcdir ;;
1155  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156    srcdir=$ac_optarg ;;
1157
1158  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159  | --syscon | --sysco | --sysc | --sys | --sy)
1160    ac_prev=sysconfdir ;;
1161  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163    sysconfdir=$ac_optarg ;;
1164
1165  -target | --target | --targe | --targ | --tar | --ta | --t)
1166    ac_prev=target_alias ;;
1167  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168    target_alias=$ac_optarg ;;
1169
1170  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171    verbose=yes ;;
1172
1173  -version | --version | --versio | --versi | --vers | -V)
1174    ac_init_version=: ;;
1175
1176  -with-* | --with-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=\$ac_optarg ;;
1191
1192  -without-* | --without-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: $ac_useropt"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=no ;;
1207
1208  --x)
1209    # Obsolete; use --with-x.
1210    with_x=yes ;;
1211
1212  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213  | --x-incl | --x-inc | --x-in | --x-i)
1214    ac_prev=x_includes ;;
1215  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217    x_includes=$ac_optarg ;;
1218
1219  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221    ac_prev=x_libraries ;;
1222  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224    x_libraries=$ac_optarg ;;
1225
1226  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information"
1228    ;;
1229
1230  *=*)
1231    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232    # Reject names that are not valid shell variable names.
1233    case $ac_envvar in #(
1234      '' | [0-9]* | *[!_$as_cr_alnum]* )
1235      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236    esac
1237    eval $ac_envvar=\$ac_optarg
1238    export $ac_envvar ;;
1239
1240  *)
1241    # FIXME: should be removed in autoconf 3.0.
1242    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246    ;;
1247
1248  esac
1249done
1250
1251if test -n "$ac_prev"; then
1252  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253  as_fn_error $? "missing argument to $ac_option"
1254fi
1255
1256if test -n "$ac_unrecognized_opts"; then
1257  case $enable_option_checking in
1258    no) ;;
1259    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261  esac
1262fi
1263
1264# Check all directory arguments for consistency.
1265for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266		datadir sysconfdir sharedstatedir localstatedir includedir \
1267		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268		libdir localedir mandir runstatedir
1269do
1270  eval ac_val=\$$ac_var
1271  # Remove trailing slashes.
1272  case $ac_val in
1273    */ )
1274      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275      eval $ac_var=\$ac_val;;
1276  esac
1277  # Be sure to have absolute directory names.
1278  case $ac_val in
1279    [\\/$]* | ?:[\\/]* )  continue;;
1280    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281  esac
1282  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283done
1284
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
1291
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294  if test "x$build_alias" = x; then
1295    cross_compiling=maybe
1296  elif test "x$build_alias" != "x$host_alias"; then
1297    cross_compiling=yes
1298  fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310  as_fn_error $? "working directory cannot be determined"
1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312  as_fn_error $? "pwd does not report name of working directory"
1313
1314
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317  ac_srcdir_defaulted=yes
1318  # Try the directory containing this script, then the parent directory.
1319  ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321	 X"$as_myself" : 'X\(//\)[^/]' \| \
1322	 X"$as_myself" : 'X\(//\)$' \| \
1323	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
1325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\/\)[^/].*/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)$/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\).*/{
1338	    s//\1/
1339	    q
1340	  }
1341	  s/.*/./; q'`
1342  srcdir=$ac_confdir
1343  if test ! -r "$srcdir/$ac_unique_file"; then
1344    srcdir=..
1345  fi
1346else
1347  ac_srcdir_defaulted=no
1348fi
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352fi
1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
1355	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356	pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359  srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369  eval ac_env_${ac_var}_value=\$${ac_var}
1370  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
1373
1374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378  # Omit some internal or obsolete options to make the list less imposing.
1379  # This message is too long to be a string in the A/UX 3.1 sh.
1380  cat <<_ACEOF
1381\`configure' configures librelp 1.10.0 to adapt to many kinds of systems.
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE.  See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391  -h, --help              display this help and exit
1392      --help=short        display options specific to this package
1393      --help=recursive    display the short help of all the included packages
1394  -V, --version           display version information and exit
1395  -q, --quiet, --silent   do not print \`checking ...' messages
1396      --cache-file=FILE   cache test results in FILE [disabled]
1397  -C, --config-cache      alias for \`--cache-file=config.cache'
1398  -n, --no-create         do not create output files
1399      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1400
1401Installation directories:
1402  --prefix=PREFIX         install architecture-independent files in PREFIX
1403                          [$ac_default_prefix]
1404  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1405                          [PREFIX]
1406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
1415  --bindir=DIR            user executables [EPREFIX/bin]
1416  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1417  --libexecdir=DIR        program executables [EPREFIX/libexec]
1418  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1419  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1420  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1421  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1422  --libdir=DIR            object code libraries [EPREFIX/lib]
1423  --includedir=DIR        C header files [PREFIX/include]
1424  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427  --infodir=DIR           info documentation [DATAROOTDIR/info]
1428  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429  --mandir=DIR            man documentation [DATAROOTDIR/man]
1430  --docdir=DIR            documentation root [DATAROOTDIR/doc/librelp]
1431  --htmldir=DIR           html documentation [DOCDIR]
1432  --dvidir=DIR            dvi documentation [DOCDIR]
1433  --pdfdir=DIR            pdf documentation [DOCDIR]
1434  --psdir=DIR             ps documentation [DOCDIR]
1435_ACEOF
1436
1437  cat <<\_ACEOF
1438
1439Program names:
1440  --program-prefix=PREFIX            prepend PREFIX to installed program names
1441  --program-suffix=SUFFIX            append SUFFIX to installed program names
1442  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1443
1444System types:
1445  --build=BUILD     configure for building on BUILD [guessed]
1446  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451  case $ac_init_help in
1452     short | recursive ) echo "Configuration of librelp 1.10.0:";;
1453   esac
1454  cat <<\_ACEOF
1455
1456Optional Features:
1457  --disable-option-checking  ignore unrecognized --enable/--with options
1458  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460  --enable-silent-rules   less verbose build output (undo: "make V=1")
1461  --disable-silent-rules  verbose build output (undo: "make V=0")
1462  --enable-dependency-tracking
1463                          do not reject slow dependency extractors
1464  --disable-dependency-tracking
1465                          speeds up one-time build
1466  --enable-shared[=PKGS]  build shared libraries [default=yes]
1467  --enable-static[=PKGS]  build static libraries [default=yes]
1468  --enable-fast-install[=PKGS]
1469                          optimize for fast installation [default=yes]
1470  --disable-libtool-lock  avoid locking (might break parallel builds)
1471  --enable-compile-warnings=[no/yes/error]
1472                          Enable compiler warnings and errors
1473  --disable-Werror        Unconditionally make all compiler warnings non-fatal
1474  --enable-tls            Enable TLS support [default=yes]
1475  --enable-tls-openssl    Enable OpenSSL TLS support [default=yes]
1476  --enable-debug          Enable debug mode [default=no]
1477  --enable-valgrind       Enable valgrind tests[default=yes]
1478
1479Optional Packages:
1480  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1483                          both]
1484  --with-aix-soname=aix|svr4|both
1485                          shared library versioning (aka "SONAME") variant to
1486                          provide on AIX, [default=aix].
1487  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1488  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1489                          compiler's sysroot if not specified).
1490
1491Some influential environment variables:
1492  PYTHON      the Python interpreter
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496              nonstandard directory <lib dir>
1497  LIBS        libraries to pass to the linker, e.g. -l<library>
1498  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499              you have headers in a nonstandard directory <include dir>
1500  LT_SYS_LIBRARY_PATH
1501              User-defined run-time library search path.
1502  CPP         C preprocessor
1503  PKG_CONFIG  path to pkg-config utility
1504  PKG_CONFIG_PATH
1505              directories to add to pkg-config's search path
1506  PKG_CONFIG_LIBDIR
1507              path overriding pkg-config's built-in search path
1508  OPENSSL_CFLAGS
1509              C compiler flags for OPENSSL, overriding pkg-config
1510  OPENSSL_LIBS
1511              linker flags for OPENSSL, overriding pkg-config
1512  GNUTLS_CFLAGS
1513              C compiler flags for GNUTLS, overriding pkg-config
1514  GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
1519Report bugs to <rgerhards@adiscon.com>.
1520_ACEOF
1521ac_status=$?
1522fi
1523
1524if test "$ac_init_help" = "recursive"; then
1525  # If there are subdirs, report their specific --help.
1526  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527    test -d "$ac_dir" ||
1528      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529      continue
1530    ac_builddir=.
1531
1532case "$ac_dir" in
1533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534*)
1535  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536  # A ".." for each directory in $ac_dir_suffix.
1537  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538  case $ac_top_builddir_sub in
1539  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541  esac ;;
1542esac
1543ac_abs_top_builddir=$ac_pwd
1544ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545# for backward compatibility:
1546ac_top_builddir=$ac_top_build_prefix
1547
1548case $srcdir in
1549  .)  # We are building in place.
1550    ac_srcdir=.
1551    ac_top_srcdir=$ac_top_builddir_sub
1552    ac_abs_top_srcdir=$ac_pwd ;;
1553  [\\/]* | ?:[\\/]* )  # Absolute name.
1554    ac_srcdir=$srcdir$ac_dir_suffix;
1555    ac_top_srcdir=$srcdir
1556    ac_abs_top_srcdir=$srcdir ;;
1557  *) # Relative name.
1558    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559    ac_top_srcdir=$ac_top_build_prefix$srcdir
1560    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561esac
1562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564    cd "$ac_dir" || { ac_status=$?; continue; }
1565    # Check for guested configure.
1566    if test -f "$ac_srcdir/configure.gnu"; then
1567      echo &&
1568      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569    elif test -f "$ac_srcdir/configure"; then
1570      echo &&
1571      $SHELL "$ac_srcdir/configure" --help=recursive
1572    else
1573      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574    fi || ac_status=$?
1575    cd "$ac_pwd" || { ac_status=$?; break; }
1576  done
1577fi
1578
1579test -n "$ac_init_help" && exit $ac_status
1580if $ac_init_version; then
1581  cat <<\_ACEOF
1582librelp configure 1.10.0
1583generated by GNU Autoconf 2.69
1584
1585Copyright (C) 2012 Free Software Foundation, Inc.
1586This configure script is free software; the Free Software Foundation
1587gives unlimited permission to copy, distribute and modify it.
1588_ACEOF
1589  exit
1590fi
1591
1592## ------------------------ ##
1593## Autoconf initialization. ##
1594## ------------------------ ##
1595
1596# ac_fn_c_try_compile LINENO
1597# --------------------------
1598# Try to compile conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_compile ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  rm -f conftest.$ac_objext
1603  if { { ac_try="$ac_compile"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610  (eval "$ac_compile") 2>conftest.err
1611  ac_status=$?
1612  if test -s conftest.err; then
1613    grep -v '^ *+' conftest.err >conftest.er1
1614    cat conftest.er1 >&5
1615    mv -f conftest.er1 conftest.err
1616  fi
1617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618  test $ac_status = 0; } && {
1619	 test -z "$ac_c_werror_flag" ||
1620	 test ! -s conftest.err
1621       } && test -s conftest.$ac_objext; then :
1622  ac_retval=0
1623else
1624  $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
1626
1627	ac_retval=1
1628fi
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_compile
1633
1634# ac_fn_c_try_link LINENO
1635# -----------------------
1636# Try to link conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_link ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  rm -f conftest.$ac_objext conftest$ac_exeext
1641  if { { ac_try="$ac_link"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_link") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && {
1657	 test -z "$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       } && test -s conftest$ac_exeext && {
1660	 test "$cross_compiling" = yes ||
1661	 test -x conftest$ac_exeext
1662       }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668	ac_retval=1
1669fi
1670  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672  # interfere with the next link command; also delete a directory that is
1673  # left behind by Apple's compiler.  We do this before executing the actions.
1674  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_link
1679
1680# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681# -------------------------------------------------------
1682# Tests whether HEADER exists and can be compiled using the include files in
1683# INCLUDES, setting the cache variable VAR accordingly.
1684ac_fn_c_check_header_compile ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
1689if eval \${$3+:} false; then :
1690  $as_echo_n "(cached) " >&6
1691else
1692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h.  */
1694$4
1695#include <$2>
1696_ACEOF
1697if ac_fn_c_try_compile "$LINENO"; then :
1698  eval "$3=yes"
1699else
1700  eval "$3=no"
1701fi
1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703fi
1704eval ac_res=\$$3
1705	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709} # ac_fn_c_check_header_compile
1710
1711# ac_fn_c_try_cpp LINENO
1712# ----------------------
1713# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_cpp ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  if { { ac_try="$ac_cpp conftest.$ac_ext"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725  ac_status=$?
1726  if test -s conftest.err; then
1727    grep -v '^ *+' conftest.err >conftest.er1
1728    cat conftest.er1 >&5
1729    mv -f conftest.er1 conftest.err
1730  fi
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } > conftest.i && {
1733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734	 test ! -s conftest.err
1735       }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741    ac_retval=1
1742fi
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744  as_fn_set_status $ac_retval
1745
1746} # ac_fn_c_try_cpp
1747
1748# ac_fn_c_try_run LINENO
1749# ----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751# that executables *can* be run.
1752ac_fn_c_try_run ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>&5
1763  ac_status=$?
1764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766  { { case "(($ac_try" in
1767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768  *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772  (eval "$ac_try") 2>&5
1773  ac_status=$?
1774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775  test $ac_status = 0; }; }; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: program exited with status $ac_status" >&5
1779       $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782       ac_retval=$ac_status
1783fi
1784  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786  as_fn_set_status $ac_retval
1787
1788} # ac_fn_c_try_run
1789
1790# ac_fn_c_check_func LINENO FUNC VAR
1791# ----------------------------------
1792# Tests whether FUNC exists, setting the cache variable VAR accordingly
1793ac_fn_c_check_func ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval \${$3+:} false; then :
1799  $as_echo_n "(cached) " >&6
1800else
1801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1805#define $2 innocuous_$2
1806
1807/* System header to define __stub macros and hopefully few prototypes,
1808    which can conflict with char $2 (); below.
1809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810    <limits.h> exists even on freestanding compilers.  */
1811
1812#ifdef __STDC__
1813# include <limits.h>
1814#else
1815# include <assert.h>
1816#endif
1817
1818#undef $2
1819
1820/* Override any GCC internal prototype to avoid an error.
1821   Use char because int might match the return type of a GCC
1822   builtin and then its argument prototype would still apply.  */
1823#ifdef __cplusplus
1824extern "C"
1825#endif
1826char $2 ();
1827/* The GNU C library defines this for functions which it implements
1828    to always fail with ENOSYS.  Some functions are actually named
1829    something starting with __ and the normal name is an alias.  */
1830#if defined __stub_$2 || defined __stub___$2
1831choke me
1832#endif
1833
1834int
1835main ()
1836{
1837return $2 ();
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_link "$LINENO"; then :
1843  eval "$3=yes"
1844else
1845  eval "$3=no"
1846fi
1847rm -f core conftest.err conftest.$ac_objext \
1848    conftest$ac_exeext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_func
1856
1857# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1858# -------------------------------------------------------
1859# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1860# the include files in INCLUDES and setting the cache variable VAR
1861# accordingly.
1862ac_fn_c_check_header_mongrel ()
1863{
1864  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865  if eval \${$3+:} false; then :
1866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval \${$3+:} false; then :
1869  $as_echo_n "(cached) " >&6
1870fi
1871eval ac_res=\$$3
1872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874else
1875  # Is the header compilable?
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1877$as_echo_n "checking $2 usability... " >&6; }
1878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h.  */
1880$4
1881#include <$2>
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884  ac_header_compiler=yes
1885else
1886  ac_header_compiler=no
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1890$as_echo "$ac_header_compiler" >&6; }
1891
1892# Is the header present?
1893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1894$as_echo_n "checking $2 presence... " >&6; }
1895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897#include <$2>
1898_ACEOF
1899if ac_fn_c_try_cpp "$LINENO"; then :
1900  ac_header_preproc=yes
1901else
1902  ac_header_preproc=no
1903fi
1904rm -f conftest.err conftest.i conftest.$ac_ext
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1906$as_echo "$ac_header_preproc" >&6; }
1907
1908# So?  What about this header?
1909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1910  yes:no: )
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1912$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915    ;;
1916  no:yes:* )
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1918$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1920$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1922$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1924$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927( $as_echo "## ------------------------------------ ##
1928## Report this to rgerhards@adiscon.com ##
1929## ------------------------------------ ##"
1930     ) | sed "s/^/$as_me: WARNING:     /" >&2
1931    ;;
1932esac
1933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
1935if eval \${$3+:} false; then :
1936  $as_echo_n "(cached) " >&6
1937else
1938  eval "$3=\$ac_header_compiler"
1939fi
1940eval ac_res=\$$3
1941	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943fi
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946} # ac_fn_c_check_header_mongrel
1947
1948# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949# -------------------------------------------
1950# Tests whether TYPE exists after having included INCLUDES, setting cache
1951# variable VAR accordingly.
1952ac_fn_c_check_type ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958  $as_echo_n "(cached) " >&6
1959else
1960  eval "$3=no"
1961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963$4
1964int
1965main ()
1966{
1967if (sizeof ($2))
1968	 return 0;
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977int
1978main ()
1979{
1980if (sizeof (($2)))
1981	    return 0;
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987
1988else
1989  eval "$3=yes"
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_type
2001
2002# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003# ----------------------------------------------------
2004# Tries to find if the field MEMBER exists in type AGGR, after including
2005# INCLUDES, setting cache variable VAR accordingly.
2006ac_fn_c_check_member ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010$as_echo_n "checking for $2.$3... " >&6; }
2011if eval \${$4+:} false; then :
2012  $as_echo_n "(cached) " >&6
2013else
2014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$5
2017int
2018main ()
2019{
2020static $2 ac_aggr;
2021if (ac_aggr.$3)
2022return 0;
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  eval "$4=yes"
2029else
2030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$5
2033int
2034main ()
2035{
2036static $2 ac_aggr;
2037if (sizeof ac_aggr.$3)
2038return 0;
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  eval "$4=yes"
2045else
2046  eval "$4=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$4
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_member
2058
2059# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2060# ---------------------------------------------
2061# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2062# accordingly.
2063ac_fn_c_check_decl ()
2064{
2065  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066  as_decl_name=`echo $2|sed 's/ *(.*//'`
2067  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070if eval \${$3+:} false; then :
2071  $as_echo_n "(cached) " >&6
2072else
2073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$4
2076int
2077main ()
2078{
2079#ifndef $as_decl_name
2080#ifdef __cplusplus
2081  (void) $as_decl_use;
2082#else
2083  (void) $as_decl_name;
2084#endif
2085#endif
2086
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092  eval "$3=yes"
2093else
2094  eval "$3=no"
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098eval ac_res=\$$3
2099	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103} # ac_fn_c_check_decl
2104cat >config.log <<_ACEOF
2105This file contains any messages produced by compilers while
2106running configure, to aid debugging if configure makes a mistake.
2107
2108It was created by librelp $as_me 1.10.0, which was
2109generated by GNU Autoconf 2.69.  Invocation command line was
2110
2111  $ $0 $@
2112
2113_ACEOF
2114exec 5>>config.log
2115{
2116cat <<_ASUNAME
2117## --------- ##
2118## Platform. ##
2119## --------- ##
2120
2121hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125uname -v = `(uname -v) 2>/dev/null || echo unknown`
2126
2127/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2129
2130/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2131/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2132/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2134/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2135/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2136/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2137
2138_ASUNAME
2139
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143  IFS=$as_save_IFS
2144  test -z "$as_dir" && as_dir=.
2145    $as_echo "PATH: $as_dir"
2146  done
2147IFS=$as_save_IFS
2148
2149} >&5
2150
2151cat >&5 <<_ACEOF
2152
2153
2154## ----------- ##
2155## Core tests. ##
2156## ----------- ##
2157
2158_ACEOF
2159
2160
2161# Keep a trace of the command line.
2162# Strip out --no-create and --no-recursion so they do not pile up.
2163# Strip out --silent because we don't want to record it for future runs.
2164# Also quote any args containing shell meta-characters.
2165# Make two passes to allow for proper duplicate-argument suppression.
2166ac_configure_args=
2167ac_configure_args0=
2168ac_configure_args1=
2169ac_must_keep_next=false
2170for ac_pass in 1 2
2171do
2172  for ac_arg
2173  do
2174    case $ac_arg in
2175    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177    | -silent | --silent | --silen | --sile | --sil)
2178      continue ;;
2179    *\'*)
2180      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181    esac
2182    case $ac_pass in
2183    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2184    2)
2185      as_fn_append ac_configure_args1 " '$ac_arg'"
2186      if test $ac_must_keep_next = true; then
2187	ac_must_keep_next=false # Got value, back to normal.
2188      else
2189	case $ac_arg in
2190	  *=* | --config-cache | -C | -disable-* | --disable-* \
2191	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193	  | -with-* | --with-* | -without-* | --without-* | --x)
2194	    case "$ac_configure_args0 " in
2195	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196	    esac
2197	    ;;
2198	  -* ) ac_must_keep_next=true ;;
2199	esac
2200      fi
2201      as_fn_append ac_configure_args " '$ac_arg'"
2202      ;;
2203    esac
2204  done
2205done
2206{ ac_configure_args0=; unset ac_configure_args0;}
2207{ ac_configure_args1=; unset ac_configure_args1;}
2208
2209# When interrupted or exit'd, cleanup temporary files, and complete
2210# config.log.  We remove comments because anyway the quotes in there
2211# would cause problems or look ugly.
2212# WARNING: Use '\'' to represent an apostrophe within the trap.
2213# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214trap 'exit_status=$?
2215  # Save into config.log some information that might help in debugging.
2216  {
2217    echo
2218
2219    $as_echo "## ---------------- ##
2220## Cache variables. ##
2221## ---------------- ##"
2222    echo
2223    # The following way of writing the cache mishandles newlines in values,
2224(
2225  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2226    eval ac_val=\$$ac_var
2227    case $ac_val in #(
2228    *${as_nl}*)
2229      case $ac_var in #(
2230      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2231$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232      esac
2233      case $ac_var in #(
2234      _ | IFS | as_nl) ;; #(
2235      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2236      *) { eval $ac_var=; unset $ac_var;} ;;
2237      esac ;;
2238    esac
2239  done
2240  (set) 2>&1 |
2241    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2242    *${as_nl}ac_space=\ *)
2243      sed -n \
2244	"s/'\''/'\''\\\\'\'''\''/g;
2245	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246      ;; #(
2247    *)
2248      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2249      ;;
2250    esac |
2251    sort
2252)
2253    echo
2254
2255    $as_echo "## ----------------- ##
2256## Output variables. ##
2257## ----------------- ##"
2258    echo
2259    for ac_var in $ac_subst_vars
2260    do
2261      eval ac_val=\$$ac_var
2262      case $ac_val in
2263      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264      esac
2265      $as_echo "$ac_var='\''$ac_val'\''"
2266    done | sort
2267    echo
2268
2269    if test -n "$ac_subst_files"; then
2270      $as_echo "## ------------------- ##
2271## File substitutions. ##
2272## ------------------- ##"
2273      echo
2274      for ac_var in $ac_subst_files
2275      do
2276	eval ac_val=\$$ac_var
2277	case $ac_val in
2278	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279	esac
2280	$as_echo "$ac_var='\''$ac_val'\''"
2281      done | sort
2282      echo
2283    fi
2284
2285    if test -s confdefs.h; then
2286      $as_echo "## ----------- ##
2287## confdefs.h. ##
2288## ----------- ##"
2289      echo
2290      cat confdefs.h
2291      echo
2292    fi
2293    test "$ac_signal" != 0 &&
2294      $as_echo "$as_me: caught signal $ac_signal"
2295    $as_echo "$as_me: exit $exit_status"
2296  } >&5
2297  rm -f core *.core core.conftest.* &&
2298    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299    exit $exit_status
2300' 0
2301for ac_signal in 1 2 13 15; do
2302  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2303done
2304ac_signal=0
2305
2306# confdefs.h avoids OS command line length limits that DEFS can exceed.
2307rm -f -r conftest* confdefs.h
2308
2309$as_echo "/* confdefs.h */" > confdefs.h
2310
2311# Predefined preprocessor variables.
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_NAME "$PACKAGE_NAME"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_VERSION "$PACKAGE_VERSION"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_STRING "$PACKAGE_STRING"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331_ACEOF
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_URL "$PACKAGE_URL"
2335_ACEOF
2336
2337
2338# Let the site file select an alternate cache file if it wants to.
2339# Prefer an explicitly selected file to automatically selected ones.
2340ac_site_file1=NONE
2341ac_site_file2=NONE
2342if test -n "$CONFIG_SITE"; then
2343  # We do not want a PATH search for config.site.
2344  case $CONFIG_SITE in #((
2345    -*)  ac_site_file1=./$CONFIG_SITE;;
2346    */*) ac_site_file1=$CONFIG_SITE;;
2347    *)   ac_site_file1=./$CONFIG_SITE;;
2348  esac
2349elif test "x$prefix" != xNONE; then
2350  ac_site_file1=$prefix/share/config.site
2351  ac_site_file2=$prefix/etc/config.site
2352else
2353  ac_site_file1=$ac_default_prefix/share/config.site
2354  ac_site_file2=$ac_default_prefix/etc/config.site
2355fi
2356for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2357do
2358  test "x$ac_site_file" = xNONE && continue
2359  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2360    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2361$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2362    sed 's/^/| /' "$ac_site_file" >&5
2363    . "$ac_site_file" \
2364      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366as_fn_error $? "failed to load site script $ac_site_file
2367See \`config.log' for more details" "$LINENO" 5; }
2368  fi
2369done
2370
2371if test -r "$cache_file"; then
2372  # Some versions of bash will fail to source /dev/null (special files
2373  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2374  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2375    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2376$as_echo "$as_me: loading cache $cache_file" >&6;}
2377    case $cache_file in
2378      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379      *)                      . "./$cache_file";;
2380    esac
2381  fi
2382else
2383  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2384$as_echo "$as_me: creating cache $cache_file" >&6;}
2385  >$cache_file
2386fi
2387
2388# Check that the precious variables saved in the cache have kept the same
2389# value.
2390ac_cache_corrupted=false
2391for ac_var in $ac_precious_vars; do
2392  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393  eval ac_new_set=\$ac_env_${ac_var}_set
2394  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395  eval ac_new_val=\$ac_env_${ac_var}_value
2396  case $ac_old_set,$ac_new_set in
2397    set,)
2398      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400      ac_cache_corrupted=: ;;
2401    ,set)
2402      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404      ac_cache_corrupted=: ;;
2405    ,);;
2406    *)
2407      if test "x$ac_old_val" != "x$ac_new_val"; then
2408	# differences in whitespace do not lead to failure.
2409	ac_old_val_w=`echo x $ac_old_val`
2410	ac_new_val_w=`echo x $ac_new_val`
2411	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414	  ac_cache_corrupted=:
2415	else
2416	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418	  eval $ac_var=\$ac_old_val
2419	fi
2420	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2421$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2422	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2423$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2424      fi;;
2425  esac
2426  # Pass precious variables to config.status.
2427  if test "$ac_new_set" = set; then
2428    case $ac_new_val in
2429    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430    *) ac_arg=$ac_var=$ac_new_val ;;
2431    esac
2432    case " $ac_configure_args " in
2433      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2434      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435    esac
2436  fi
2437done
2438if $ac_cache_corrupted; then
2439  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444fi
2445## -------------------- ##
2446## Main body of script. ##
2447## -------------------- ##
2448
2449ac_ext=c
2450ac_cpp='$CPP $CPPFLAGS'
2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
2455
2456
2457# change to the one below if Travis has a timeout
2458#AM_INIT_AUTOMAKE([subdir-objects serial-tests])
2459am__api_version='1.16'
2460
2461ac_aux_dir=
2462for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2463  if test -f "$ac_dir/install-sh"; then
2464    ac_aux_dir=$ac_dir
2465    ac_install_sh="$ac_aux_dir/install-sh -c"
2466    break
2467  elif test -f "$ac_dir/install.sh"; then
2468    ac_aux_dir=$ac_dir
2469    ac_install_sh="$ac_aux_dir/install.sh -c"
2470    break
2471  elif test -f "$ac_dir/shtool"; then
2472    ac_aux_dir=$ac_dir
2473    ac_install_sh="$ac_aux_dir/shtool install -c"
2474    break
2475  fi
2476done
2477if test -z "$ac_aux_dir"; then
2478  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2479fi
2480
2481# These three variables are undocumented and unsupported,
2482# and are intended to be withdrawn in a future Autoconf release.
2483# They can cause serious problems if a builder's source tree is in a directory
2484# whose full name contains unusual characters.
2485ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2486ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2487ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2488
2489
2490# Find a good install program.  We prefer a C program (faster),
2491# so one script is as good as another.  But avoid the broken or
2492# incompatible versions:
2493# SysV /etc/install, /usr/sbin/install
2494# SunOS /usr/etc/install
2495# IRIX /sbin/install
2496# AIX /bin/install
2497# AmigaOS /C/install, which installs bootblocks on floppy discs
2498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501# OS/2's system install, which has a completely different semantic
2502# ./install, which can be erroneously created by make from ./install.sh.
2503# Reject install programs that cannot install multiple files.
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2505$as_echo_n "checking for a BSD-compatible install... " >&6; }
2506if test -z "$INSTALL"; then
2507if ${ac_cv_path_install+:} false; then :
2508  $as_echo_n "(cached) " >&6
2509else
2510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515    # Account for people who put trailing slashes in PATH elements.
2516case $as_dir/ in #((
2517  ./ | .// | /[cC]/* | \
2518  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2520  /usr/ucb/* ) ;;
2521  *)
2522    # OSF1 and SCO ODT 3.0 have their own names for install.
2523    # Don't use installbsd from OSF since it installs stuff as root
2524    # by default.
2525    for ac_prog in ginstall scoinst install; do
2526      for ac_exec_ext in '' $ac_executable_extensions; do
2527	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528	  if test $ac_prog = install &&
2529	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530	    # AIX install.  It has an incompatible calling convention.
2531	    :
2532	  elif test $ac_prog = install &&
2533	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534	    # program-specific install script used by HP pwplus--don't use.
2535	    :
2536	  else
2537	    rm -rf conftest.one conftest.two conftest.dir
2538	    echo one > conftest.one
2539	    echo two > conftest.two
2540	    mkdir conftest.dir
2541	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2542	      test -s conftest.one && test -s conftest.two &&
2543	      test -s conftest.dir/conftest.one &&
2544	      test -s conftest.dir/conftest.two
2545	    then
2546	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2547	      break 3
2548	    fi
2549	  fi
2550	fi
2551      done
2552    done
2553    ;;
2554esac
2555
2556  done
2557IFS=$as_save_IFS
2558
2559rm -rf conftest.one conftest.two conftest.dir
2560
2561fi
2562  if test "${ac_cv_path_install+set}" = set; then
2563    INSTALL=$ac_cv_path_install
2564  else
2565    # As a last resort, use the slow shell script.  Don't cache a
2566    # value for INSTALL within a source directory, because that will
2567    # break other packages using the cache if that directory is
2568    # removed, or if the value is a relative name.
2569    INSTALL=$ac_install_sh
2570  fi
2571fi
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2573$as_echo "$INSTALL" >&6; }
2574
2575# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2576# It thinks the first close brace ends the variable substitution.
2577test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2578
2579test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2580
2581test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2582
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2584$as_echo_n "checking whether build environment is sane... " >&6; }
2585# Reject unsafe characters in $srcdir or the absolute working directory
2586# name.  Accept space and tab only in the latter.
2587am_lf='
2588'
2589case `pwd` in
2590  *[\\\"\#\$\&\'\`$am_lf]*)
2591    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2592esac
2593case $srcdir in
2594  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2595    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2596esac
2597
2598# Do 'set' in a subshell so we don't clobber the current shell's
2599# arguments.  Must try -L first in case configure is actually a
2600# symlink; some systems play weird games with the mod time of symlinks
2601# (eg FreeBSD returns the mod time of the symlink's containing
2602# directory).
2603if (
2604   am_has_slept=no
2605   for am_try in 1 2; do
2606     echo "timestamp, slept: $am_has_slept" > conftest.file
2607     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2608     if test "$*" = "X"; then
2609	# -L didn't work.
2610	set X `ls -t "$srcdir/configure" conftest.file`
2611     fi
2612     if test "$*" != "X $srcdir/configure conftest.file" \
2613	&& test "$*" != "X conftest.file $srcdir/configure"; then
2614
2615	# If neither matched, then we have a broken ls.  This can happen
2616	# if, for instance, CONFIG_SHELL is bash and it inherits a
2617	# broken ls alias from the environment.  This has actually
2618	# happened.  Such a system could not be considered "sane".
2619	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2620  alias in your environment" "$LINENO" 5
2621     fi
2622     if test "$2" = conftest.file || test $am_try -eq 2; then
2623       break
2624     fi
2625     # Just in case.
2626     sleep 1
2627     am_has_slept=yes
2628   done
2629   test "$2" = conftest.file
2630   )
2631then
2632   # Ok.
2633   :
2634else
2635   as_fn_error $? "newly created file is older than distributed files!
2636Check your system clock" "$LINENO" 5
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639$as_echo "yes" >&6; }
2640# If we didn't sleep, we still need to ensure time stamps of config.status and
2641# generated files are strictly newer.
2642am_sleep_pid=
2643if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2644  ( sleep 1 ) &
2645  am_sleep_pid=$!
2646fi
2647
2648rm -f conftest.file
2649
2650test "$program_prefix" != NONE &&
2651  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2652# Use a double $ so make ignores it.
2653test "$program_suffix" != NONE &&
2654  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2655# Double any \ or $.
2656# By default was `s,x,x', remove it if useless.
2657ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2658program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2659
2660# Expand $ac_aux_dir to an absolute path.
2661am_aux_dir=`cd "$ac_aux_dir" && pwd`
2662
2663if test x"${MISSING+set}" != xset; then
2664  case $am_aux_dir in
2665  *\ * | *\	*)
2666    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2667  *)
2668    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2669  esac
2670fi
2671# Use eval to expand $SHELL
2672if eval "$MISSING --is-lightweight"; then
2673  am_missing_run="$MISSING "
2674else
2675  am_missing_run=
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2677$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2678fi
2679
2680if test x"${install_sh+set}" != xset; then
2681  case $am_aux_dir in
2682  *\ * | *\	*)
2683    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2684  *)
2685    install_sh="\${SHELL} $am_aux_dir/install-sh"
2686  esac
2687fi
2688
2689# Installed binaries are usually stripped using 'strip' when the user
2690# run "make install-strip".  However 'strip' might not be the right
2691# tool to use in cross-compilation environments, therefore Automake
2692# will honor the 'STRIP' environment variable to overrule this program.
2693if test "$cross_compiling" != no; then
2694  if test -n "$ac_tool_prefix"; then
2695  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696set dummy ${ac_tool_prefix}strip; ac_word=$2
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if ${ac_cv_prog_STRIP+:} false; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  if test -n "$STRIP"; then
2703  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_exec_ext in '' $ac_executable_extensions; do
2711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717  done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722STRIP=$ac_cv_prog_STRIP
2723if test -n "$STRIP"; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2725$as_echo "$STRIP" >&6; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731
2732fi
2733if test -z "$ac_cv_prog_STRIP"; then
2734  ac_ct_STRIP=$STRIP
2735  # Extract the first word of "strip", so it can be a program name with args.
2736set dummy strip; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$ac_ct_STRIP"; then
2743  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_exec_ext in '' $ac_executable_extensions; do
2751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752    ac_cv_prog_ac_ct_STRIP="strip"
2753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757  done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2763if test -n "$ac_ct_STRIP"; then
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2765$as_echo "$ac_ct_STRIP" >&6; }
2766else
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771  if test "x$ac_ct_STRIP" = x; then
2772    STRIP=":"
2773  else
2774    case $cross_compiling:$ac_tool_warned in
2775yes:)
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778ac_tool_warned=yes ;;
2779esac
2780    STRIP=$ac_ct_STRIP
2781  fi
2782else
2783  STRIP="$ac_cv_prog_STRIP"
2784fi
2785
2786fi
2787INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2788
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2790$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791if test -z "$MKDIR_P"; then
2792  if ${ac_cv_path_mkdir+:} false; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_prog in mkdir gmkdir; do
2801	 for ac_exec_ext in '' $ac_executable_extensions; do
2802	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2803	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804	     'mkdir (GNU coreutils) '* | \
2805	     'mkdir (coreutils) '* | \
2806	     'mkdir (fileutils) '4.1*)
2807	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2808	       break 3;;
2809	   esac
2810	 done
2811       done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816
2817  test -d ./--version && rmdir ./--version
2818  if test "${ac_cv_path_mkdir+set}" = set; then
2819    MKDIR_P="$ac_cv_path_mkdir -p"
2820  else
2821    # As a last resort, use the slow shell script.  Don't cache a
2822    # value for MKDIR_P within a source directory, because that will
2823    # break other packages using the cache if that directory is
2824    # removed, or if the value is a relative name.
2825    MKDIR_P="$ac_install_sh -d"
2826  fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2829$as_echo "$MKDIR_P" >&6; }
2830
2831for ac_prog in gawk mawk nawk awk
2832do
2833  # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_AWK+:} false; then :
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$AWK"; then
2841  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850    ac_cv_prog_AWK="$ac_prog"
2851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855  done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860AWK=$ac_cv_prog_AWK
2861if test -n "$AWK"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2863$as_echo "$AWK" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870  test -n "$AWK" && break
2871done
2872
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2875set x ${MAKE-make}
2876ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  cat >conftest.make <<\_ACEOF
2881SHELL = /bin/sh
2882all:
2883	@echo '@@@%%%=$(MAKE)=@@@%%%'
2884_ACEOF
2885# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2886case `${MAKE-make} -f conftest.make 2>/dev/null` in
2887  *@@@%%%=?*=@@@%%%*)
2888    eval ac_cv_prog_make_${ac_make}_set=yes;;
2889  *)
2890    eval ac_cv_prog_make_${ac_make}_set=no;;
2891esac
2892rm -f conftest.make
2893fi
2894if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896$as_echo "yes" >&6; }
2897  SET_MAKE=
2898else
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901  SET_MAKE="MAKE=${MAKE-make}"
2902fi
2903
2904rm -rf .tst 2>/dev/null
2905mkdir .tst 2>/dev/null
2906if test -d .tst; then
2907  am__leading_dot=.
2908else
2909  am__leading_dot=_
2910fi
2911rmdir .tst 2>/dev/null
2912
2913# Check whether --enable-silent-rules was given.
2914if test "${enable_silent_rules+set}" = set; then :
2915  enableval=$enable_silent_rules;
2916fi
2917
2918case $enable_silent_rules in # (((
2919  yes) AM_DEFAULT_VERBOSITY=0;;
2920   no) AM_DEFAULT_VERBOSITY=1;;
2921    *) AM_DEFAULT_VERBOSITY=1;;
2922esac
2923am_make=${MAKE-make}
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2925$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2926if ${am_cv_make_support_nested_variables+:} false; then :
2927  $as_echo_n "(cached) " >&6
2928else
2929  if $as_echo 'TRUE=$(BAR$(V))
2930BAR0=false
2931BAR1=true
2932V=1
2933am__doit:
2934	@$(TRUE)
2935.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2936  am_cv_make_support_nested_variables=yes
2937else
2938  am_cv_make_support_nested_variables=no
2939fi
2940fi
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2942$as_echo "$am_cv_make_support_nested_variables" >&6; }
2943if test $am_cv_make_support_nested_variables = yes; then
2944    AM_V='$(V)'
2945  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2946else
2947  AM_V=$AM_DEFAULT_VERBOSITY
2948  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2949fi
2950AM_BACKSLASH='\'
2951
2952if test "`cd $srcdir && pwd`" != "`pwd`"; then
2953  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2954  # is not polluted with repeated "-I."
2955  am__isrc=' -I$(srcdir)'
2956  # test to see if srcdir already configured
2957  if test -f $srcdir/config.status; then
2958    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2959  fi
2960fi
2961
2962# test whether we have cygpath
2963if test -z "$CYGPATH_W"; then
2964  if (cygpath --version) >/dev/null 2>/dev/null; then
2965    CYGPATH_W='cygpath -w'
2966  else
2967    CYGPATH_W=echo
2968  fi
2969fi
2970
2971
2972# Define the identity of the package.
2973 PACKAGE='librelp'
2974 VERSION='1.10.0'
2975
2976
2977cat >>confdefs.h <<_ACEOF
2978#define PACKAGE "$PACKAGE"
2979_ACEOF
2980
2981
2982cat >>confdefs.h <<_ACEOF
2983#define VERSION "$VERSION"
2984_ACEOF
2985
2986# Some tools Automake needs.
2987
2988ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2989
2990
2991AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2992
2993
2994AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2995
2996
2997AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2998
2999
3000MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3001
3002# For better backward compatibility.  To be removed once Automake 1.9.x
3003# dies out for good.  For more background, see:
3004# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3005# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3006mkdir_p='$(MKDIR_P)'
3007
3008# We need awk for the "check" target (and possibly the TAP driver).  The
3009# system "awk" is bad on some platforms.
3010# Always define AMTAR for backward compatibility.  Yes, it's still used
3011# in the wild :-(  We should find a proper way to deprecate it ...
3012AMTAR='$${TAR-tar}'
3013
3014
3015# We'll loop over all known methods to create a tar archive until one works.
3016_am_tools='gnutar  pax cpio none'
3017
3018am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3019
3020
3021
3022
3023
3024
3025# POSIX will say in a future version that running "rm -f" with no argument
3026# is OK; and we want to be able to make that assumption in our Makefile
3027# recipes.  So use an aggressive probe to check that the usage we want is
3028# actually supported "in the wild" to an acceptable degree.
3029# See automake bug#10828.
3030# To make any issue more visible, cause the running configure to be aborted
3031# by default if the 'rm' program in use doesn't match our expectations; the
3032# user can still override this though.
3033if rm -f && rm -fr && rm -rf; then : OK; else
3034  cat >&2 <<'END'
3035Oops!
3036
3037Your 'rm' program seems unable to run without file operands specified
3038on the command line, even when the '-f' option is present.  This is contrary
3039to the behaviour of most rm programs out there, and not conforming with
3040the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3041
3042Please tell bug-automake@gnu.org about your system, including the value
3043of your $PATH and any error possibly output before this message.  This
3044can help us improve future automake versions.
3045
3046END
3047  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3048    echo 'Configuration will proceed anyway, since you have set the' >&2
3049    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3050    echo >&2
3051  else
3052    cat >&2 <<'END'
3053Aborting the configuration process, to ensure you take notice of the issue.
3054
3055You can download and install GNU coreutils to get an 'rm' implementation
3056that behaves properly: <https://www.gnu.org/software/coreutils/>.
3057
3058If you want to complete the configuration process using your problematic
3059'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3060to "yes", and re-run configure.
3061
3062END
3063    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3064  fi
3065fi
3066
3067
3068# Check whether --enable-silent-rules was given.
3069if test "${enable_silent_rules+set}" = set; then :
3070  enableval=$enable_silent_rules;
3071fi
3072
3073case $enable_silent_rules in # (((
3074  yes) AM_DEFAULT_VERBOSITY=0;;
3075   no) AM_DEFAULT_VERBOSITY=1;;
3076    *) AM_DEFAULT_VERBOSITY=0;;
3077esac
3078am_make=${MAKE-make}
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3080$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3081if ${am_cv_make_support_nested_variables+:} false; then :
3082  $as_echo_n "(cached) " >&6
3083else
3084  if $as_echo 'TRUE=$(BAR$(V))
3085BAR0=false
3086BAR1=true
3087V=1
3088am__doit:
3089	@$(TRUE)
3090.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3091  am_cv_make_support_nested_variables=yes
3092else
3093  am_cv_make_support_nested_variables=no
3094fi
3095fi
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3097$as_echo "$am_cv_make_support_nested_variables" >&6; }
3098if test $am_cv_make_support_nested_variables = yes; then
3099    AM_V='$(V)'
3100  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3101else
3102  AM_V=$AM_DEFAULT_VERBOSITY
3103  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3104fi
3105AM_BACKSLASH='\'
3106
3107
3108ac_config_headers="$ac_config_headers config.h"
3109
3110
3111
3112echo HOST: ${host}
3113case "${host}" in
3114  *-*-linux*)
3115
3116$as_echo "#define OS_LINUX 1" >>confdefs.h
3117
3118    os_type="linux"
3119  ;;
3120  *-*-*darwin*|*-*-dragonfly*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
3121
3122$as_echo "#define OS_BSD 1" >>confdefs.h
3123
3124    os_type="bsd"
3125  ;;
3126  *-apple-*)
3127
3128$as_echo "#define OS_APPLE 1" >>confdefs.h
3129
3130    os_type="apple"
3131  ;;
3132  *-*-kfreebsd*)
3133    # kernel is FreeBSD, but userspace is glibc - i.e. like linux
3134    # do not DEFINE OS_BSD
3135    os_type="bsd"
3136  ;;
3137  *-*-solaris*)
3138    os_type="solaris"
3139
3140$as_echo "#define OS_SOLARIS 1" >>confdefs.h
3141
3142
3143$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3144
3145
3146$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3147
3148    CPPFLAGS="-std=c99 $CPPFLAGS"
3149    AM_CFLAGS="-std=c99 $CFLAGS"
3150    SOL_LIBS="-lsocket -lnsl"
3151    # Solaris libuuid does not ship with a pkgconfig file so override the appropriate
3152    # variables (but only if they have not been set by the user).
3153    LIBUUID_CFLAGS=${LIBUUID_CFLAGS:= }
3154    LIBUUID_LIBS=${LIBUUID_LIBS:=-luuid}
3155
3156  ;;
3157  *-*-aix*)
3158    os_type="aix"
3159
3160$as_echo "#define OS_AIX 1" >>confdefs.h
3161
3162    AM_CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
3163    LDFLAGS="$LDFLAGS -brtl"
3164  ;;
3165esac
3166 if test x$os_type == xapple; then
3167  OS_APPLE_TRUE=
3168  OS_APPLE_FALSE='#'
3169else
3170  OS_APPLE_TRUE='#'
3171  OS_APPLE_FALSE=
3172fi
3173
3174 if test x$os_type == xlinux; then
3175  xOS_LINUX_TRUE=
3176  xOS_LINUX_FALSE='#'
3177else
3178  xOS_LINUX_TRUE='#'
3179  xOS_LINUX_FALSE=
3180fi
3181
3182 if test x$os_type == xlinux; then
3183  OS_LINUX_TRUE=
3184  OS_LINUX_FALSE='#'
3185else
3186  OS_LINUX_TRUE='#'
3187  OS_LINUX_FALSE=
3188fi
3189
3190 if test x$os_type == xsolaris; then
3191  OS_SOLARIS_TRUE=
3192  OS_SOLARIS_FALSE='#'
3193else
3194  OS_SOLARIS_TRUE='#'
3195  OS_SOLARIS_FALSE=
3196fi
3197
3198 if test "x$os_type" = "xaix"; then
3199  OS_AIX_TRUE=
3200  OS_AIX_FALSE='#'
3201else
3202  OS_AIX_TRUE='#'
3203  OS_AIX_FALSE=
3204fi
3205
3206
3207
3208
3209
3210
3211
3212
3213        # Find any Python interpreter.
3214    if test -z "$PYTHON"; then
3215      for ac_prog in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0
3216do
3217  # Extract the first word of "$ac_prog", so it can be a program name with args.
3218set dummy $ac_prog; ac_word=$2
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220$as_echo_n "checking for $ac_word... " >&6; }
3221if ${ac_cv_path_PYTHON+:} false; then :
3222  $as_echo_n "(cached) " >&6
3223else
3224  case $PYTHON in
3225  [\\/]* | ?:[\\/]*)
3226  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3227  ;;
3228  *)
3229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234    for ac_exec_ext in '' $ac_executable_extensions; do
3235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244  ;;
3245esac
3246fi
3247PYTHON=$ac_cv_path_PYTHON
3248if test -n "$PYTHON"; then
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3250$as_echo "$PYTHON" >&6; }
3251else
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254fi
3255
3256
3257  test -n "$PYTHON" && break
3258done
3259test -n "$PYTHON" || PYTHON=":"
3260
3261    fi
3262    am_display_PYTHON=python
3263
3264
3265  if test "$PYTHON" = :; then
3266      :
3267  else
3268
3269
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3271$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3272if ${am_cv_python_version+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3276fi
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3278$as_echo "$am_cv_python_version" >&6; }
3279  PYTHON_VERSION=$am_cv_python_version
3280
3281
3282
3283  PYTHON_PREFIX='${prefix}'
3284
3285  PYTHON_EXEC_PREFIX='${exec_prefix}'
3286
3287
3288
3289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3290$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3291if ${am_cv_python_platform+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3297$as_echo "$am_cv_python_platform" >&6; }
3298  PYTHON_PLATFORM=$am_cv_python_platform
3299
3300
3301  # Just factor out some code duplication.
3302  am_python_setup_sysconfig="\
3303import sys
3304# Prefer sysconfig over distutils.sysconfig, for better compatibility
3305# with python 3.x.  See automake bug#10227.
3306try:
3307    import sysconfig
3308except ImportError:
3309    can_use_sysconfig = 0
3310else:
3311    can_use_sysconfig = 1
3312# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3313# <https://github.com/pypa/virtualenv/issues/118>
3314try:
3315    from platform import python_implementation
3316    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3317        can_use_sysconfig = 0
3318except ImportError:
3319    pass"
3320
3321
3322            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3323$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3324if ${am_cv_python_pythondir+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if test "x$prefix" = xNONE
3328     then
3329       am_py_prefix=$ac_default_prefix
3330     else
3331       am_py_prefix=$prefix
3332     fi
3333     am_cv_python_pythondir=`$PYTHON -c "
3334$am_python_setup_sysconfig
3335if can_use_sysconfig:
3336    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3337else:
3338    from distutils import sysconfig
3339    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3340sys.stdout.write(sitedir)"`
3341     case $am_cv_python_pythondir in
3342     $am_py_prefix*)
3343       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3344       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3345       ;;
3346     *)
3347       case $am_py_prefix in
3348         /usr|/System*) ;;
3349         *)
3350	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3351	  ;;
3352       esac
3353       ;;
3354     esac
3355
3356fi
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3358$as_echo "$am_cv_python_pythondir" >&6; }
3359  pythondir=$am_cv_python_pythondir
3360
3361
3362
3363  pkgpythondir=\${pythondir}/$PACKAGE
3364
3365
3366        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3367$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3368if ${am_cv_python_pyexecdir+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test "x$exec_prefix" = xNONE
3372     then
3373       am_py_exec_prefix=$am_py_prefix
3374     else
3375       am_py_exec_prefix=$exec_prefix
3376     fi
3377     am_cv_python_pyexecdir=`$PYTHON -c "
3378$am_python_setup_sysconfig
3379if can_use_sysconfig:
3380    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3381else:
3382    from distutils import sysconfig
3383    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3384sys.stdout.write(sitedir)"`
3385     case $am_cv_python_pyexecdir in
3386     $am_py_exec_prefix*)
3387       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3388       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3389       ;;
3390     *)
3391       case $am_py_exec_prefix in
3392         /usr|/System*) ;;
3393         *)
3394	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3395	   ;;
3396       esac
3397       ;;
3398     esac
3399
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3402$as_echo "$am_cv_python_pyexecdir" >&6; }
3403  pyexecdir=$am_cv_python_pyexecdir
3404
3405
3406
3407  pkgpyexecdir=\${pyexecdir}/$PACKAGE
3408
3409
3410
3411  fi
3412
3413
3414
3415# Checks for programs.
3416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421if test -n "$ac_tool_prefix"; then
3422  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3423set dummy ${ac_tool_prefix}gcc; ac_word=$2
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425$as_echo_n "checking for $ac_word... " >&6; }
3426if ${ac_cv_prog_CC+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  if test -n "$CC"; then
3430  ac_cv_prog_CC="$CC" # Let the user override the test.
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435  IFS=$as_save_IFS
3436  test -z "$as_dir" && as_dir=.
3437    for ac_exec_ext in '' $ac_executable_extensions; do
3438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441    break 2
3442  fi
3443done
3444  done
3445IFS=$as_save_IFS
3446
3447fi
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452$as_echo "$CC" >&6; }
3453else
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
3456fi
3457
3458
3459fi
3460if test -z "$ac_cv_prog_CC"; then
3461  ac_ct_CC=$CC
3462  # Extract the first word of "gcc", so it can be a program name with args.
3463set dummy gcc; ac_word=$2
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  if test -n "$ac_ct_CC"; then
3470  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475  IFS=$as_save_IFS
3476  test -z "$as_dir" && as_dir=.
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479    ac_cv_prog_ac_ct_CC="gcc"
3480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481    break 2
3482  fi
3483done
3484  done
3485IFS=$as_save_IFS
3486
3487fi
3488fi
3489ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490if test -n "$ac_ct_CC"; then
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492$as_echo "$ac_ct_CC" >&6; }
3493else
3494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498  if test "x$ac_ct_CC" = x; then
3499    CC=""
3500  else
3501    case $cross_compiling:$ac_tool_warned in
3502yes:)
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505ac_tool_warned=yes ;;
3506esac
3507    CC=$ac_ct_CC
3508  fi
3509else
3510  CC="$ac_cv_prog_CC"
3511fi
3512
3513if test -z "$CC"; then
3514          if test -n "$ac_tool_prefix"; then
3515    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516set dummy ${ac_tool_prefix}cc; ac_word=$2
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518$as_echo_n "checking for $ac_word... " >&6; }
3519if ${ac_cv_prog_CC+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  if test -n "$CC"; then
3523  ac_cv_prog_CC="$CC" # Let the user override the test.
3524else
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528  IFS=$as_save_IFS
3529  test -z "$as_dir" && as_dir=.
3530    for ac_exec_ext in '' $ac_executable_extensions; do
3531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532    ac_cv_prog_CC="${ac_tool_prefix}cc"
3533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534    break 2
3535  fi
3536done
3537  done
3538IFS=$as_save_IFS
3539
3540fi
3541fi
3542CC=$ac_cv_prog_CC
3543if test -n "$CC"; then
3544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545$as_echo "$CC" >&6; }
3546else
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548$as_echo "no" >&6; }
3549fi
3550
3551
3552  fi
3553fi
3554if test -z "$CC"; then
3555  # Extract the first word of "cc", so it can be a program name with args.
3556set dummy cc; ac_word=$2
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558$as_echo_n "checking for $ac_word... " >&6; }
3559if ${ac_cv_prog_CC+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  if test -n "$CC"; then
3563  ac_cv_prog_CC="$CC" # Let the user override the test.
3564else
3565  ac_prog_rejected=no
3566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567for as_dir in $PATH
3568do
3569  IFS=$as_save_IFS
3570  test -z "$as_dir" && as_dir=.
3571    for ac_exec_ext in '' $ac_executable_extensions; do
3572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3574       ac_prog_rejected=yes
3575       continue
3576     fi
3577    ac_cv_prog_CC="cc"
3578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579    break 2
3580  fi
3581done
3582  done
3583IFS=$as_save_IFS
3584
3585if test $ac_prog_rejected = yes; then
3586  # We found a bogon in the path, so make sure we never use it.
3587  set dummy $ac_cv_prog_CC
3588  shift
3589  if test $# != 0; then
3590    # We chose a different compiler from the bogus one.
3591    # However, it has the same basename, so the bogon will be chosen
3592    # first if we set CC to just the basename; use the full file name.
3593    shift
3594    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3595  fi
3596fi
3597fi
3598fi
3599CC=$ac_cv_prog_CC
3600if test -n "$CC"; then
3601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602$as_echo "$CC" >&6; }
3603else
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
3606fi
3607
3608
3609fi
3610if test -z "$CC"; then
3611  if test -n "$ac_tool_prefix"; then
3612  for ac_prog in cl.exe
3613  do
3614    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617$as_echo_n "checking for $ac_word... " >&6; }
3618if ${ac_cv_prog_CC+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  if test -n "$CC"; then
3622  ac_cv_prog_CC="$CC" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629    for ac_exec_ext in '' $ac_executable_extensions; do
3630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633    break 2
3634  fi
3635done
3636  done
3637IFS=$as_save_IFS
3638
3639fi
3640fi
3641CC=$ac_cv_prog_CC
3642if test -n "$CC"; then
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644$as_echo "$CC" >&6; }
3645else
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
3648fi
3649
3650
3651    test -n "$CC" && break
3652  done
3653fi
3654if test -z "$CC"; then
3655  ac_ct_CC=$CC
3656  for ac_prog in cl.exe
3657do
3658  # Extract the first word of "$ac_prog", so it can be a program name with args.
3659set dummy $ac_prog; ac_word=$2
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661$as_echo_n "checking for $ac_word... " >&6; }
3662if ${ac_cv_prog_ac_ct_CC+:} false; then :
3663  $as_echo_n "(cached) " >&6
3664else
3665  if test -n "$ac_ct_CC"; then
3666  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673    for ac_exec_ext in '' $ac_executable_extensions; do
3674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675    ac_cv_prog_ac_ct_CC="$ac_prog"
3676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677    break 2
3678  fi
3679done
3680  done
3681IFS=$as_save_IFS
3682
3683fi
3684fi
3685ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686if test -n "$ac_ct_CC"; then
3687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688$as_echo "$ac_ct_CC" >&6; }
3689else
3690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691$as_echo "no" >&6; }
3692fi
3693
3694
3695  test -n "$ac_ct_CC" && break
3696done
3697
3698  if test "x$ac_ct_CC" = x; then
3699    CC=""
3700  else
3701    case $cross_compiling:$ac_tool_warned in
3702yes:)
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705ac_tool_warned=yes ;;
3706esac
3707    CC=$ac_ct_CC
3708  fi
3709fi
3710
3711fi
3712
3713
3714test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716as_fn_error $? "no acceptable C compiler found in \$PATH
3717See \`config.log' for more details" "$LINENO" 5; }
3718
3719# Provide some information about the compiler.
3720$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3721set X $ac_compile
3722ac_compiler=$2
3723for ac_option in --version -v -V -qversion; do
3724  { { ac_try="$ac_compiler $ac_option >&5"
3725case "(($ac_try" in
3726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727  *) ac_try_echo=$ac_try;;
3728esac
3729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730$as_echo "$ac_try_echo"; } >&5
3731  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3732  ac_status=$?
3733  if test -s conftest.err; then
3734    sed '10a\
3735... rest of stderr output deleted ...
3736         10q' conftest.err >conftest.er1
3737    cat conftest.er1 >&5
3738  fi
3739  rm -f conftest.er1 conftest.err
3740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741  test $ac_status = 0; }
3742done
3743
3744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755ac_clean_files_save=$ac_clean_files
3756ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3757# Try to create an executable without -o first, disregard a.out.
3758# It will help us diagnose broken compilers, and finding out an intuition
3759# of exeext.
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3761$as_echo_n "checking whether the C compiler works... " >&6; }
3762ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3763
3764# The possible output files:
3765ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3766
3767ac_rmfiles=
3768for ac_file in $ac_files
3769do
3770  case $ac_file in
3771    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3773  esac
3774done
3775rm -f $ac_rmfiles
3776
3777if { { ac_try="$ac_link_default"
3778case "(($ac_try" in
3779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780  *) ac_try_echo=$ac_try;;
3781esac
3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783$as_echo "$ac_try_echo"; } >&5
3784  (eval "$ac_link_default") 2>&5
3785  ac_status=$?
3786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787  test $ac_status = 0; }; then :
3788  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3789# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3790# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3791# so that the user can short-circuit this test for compilers unknown to
3792# Autoconf.
3793for ac_file in $ac_files ''
3794do
3795  test -f "$ac_file" || continue
3796  case $ac_file in
3797    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3798	;;
3799    [ab].out )
3800	# We found the default executable, but exeext='' is most
3801	# certainly right.
3802	break;;
3803    *.* )
3804	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3805	then :; else
3806	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807	fi
3808	# We set ac_cv_exeext here because the later test for it is not
3809	# safe: cross compilers may not add the suffix if given an `-o'
3810	# argument, so we may need to know it at that point already.
3811	# Even if this section looks crufty: it has the advantage of
3812	# actually working.
3813	break;;
3814    * )
3815	break;;
3816  esac
3817done
3818test "$ac_cv_exeext" = no && ac_cv_exeext=
3819
3820else
3821  ac_file=''
3822fi
3823if test -z "$ac_file"; then :
3824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825$as_echo "no" >&6; }
3826$as_echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831as_fn_error 77 "C compiler cannot create executables
3832See \`config.log' for more details" "$LINENO" 5; }
3833else
3834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3835$as_echo "yes" >&6; }
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3838$as_echo_n "checking for C compiler default output file name... " >&6; }
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3840$as_echo "$ac_file" >&6; }
3841ac_exeext=$ac_cv_exeext
3842
3843rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3844ac_clean_files=$ac_clean_files_save
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3846$as_echo_n "checking for suffix of executables... " >&6; }
3847if { { ac_try="$ac_link"
3848case "(($ac_try" in
3849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850  *) ac_try_echo=$ac_try;;
3851esac
3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853$as_echo "$ac_try_echo"; } >&5
3854  (eval "$ac_link") 2>&5
3855  ac_status=$?
3856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857  test $ac_status = 0; }; then :
3858  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3859# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3860# work properly (i.e., refer to `conftest.exe'), while it won't with
3861# `rm'.
3862for ac_file in conftest.exe conftest conftest.*; do
3863  test -f "$ac_file" || continue
3864  case $ac_file in
3865    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867	  break;;
3868    * ) break;;
3869  esac
3870done
3871else
3872  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3875See \`config.log' for more details" "$LINENO" 5; }
3876fi
3877rm -f conftest conftest$ac_cv_exeext
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879$as_echo "$ac_cv_exeext" >&6; }
3880
3881rm -f conftest.$ac_ext
3882EXEEXT=$ac_cv_exeext
3883ac_exeext=$EXEEXT
3884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886#include <stdio.h>
3887int
3888main ()
3889{
3890FILE *f = fopen ("conftest.out", "w");
3891 return ferror (f) || fclose (f) != 0;
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897ac_clean_files="$ac_clean_files conftest.out"
3898# Check that the compiler produces executables we can run.  If not, either
3899# the compiler is broken, or we cross compile.
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3901$as_echo_n "checking whether we are cross compiling... " >&6; }
3902if test "$cross_compiling" != yes; then
3903  { { ac_try="$ac_link"
3904case "(($ac_try" in
3905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906  *) ac_try_echo=$ac_try;;
3907esac
3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909$as_echo "$ac_try_echo"; } >&5
3910  (eval "$ac_link") 2>&5
3911  ac_status=$?
3912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913  test $ac_status = 0; }
3914  if { ac_try='./conftest$ac_cv_exeext'
3915  { { case "(($ac_try" in
3916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917  *) ac_try_echo=$ac_try;;
3918esac
3919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920$as_echo "$ac_try_echo"; } >&5
3921  (eval "$ac_try") 2>&5
3922  ac_status=$?
3923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924  test $ac_status = 0; }; }; then
3925    cross_compiling=no
3926  else
3927    if test "$cross_compiling" = maybe; then
3928	cross_compiling=yes
3929    else
3930	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932as_fn_error $? "cannot run C compiled programs.
3933If you meant to cross compile, use \`--host'.
3934See \`config.log' for more details" "$LINENO" 5; }
3935    fi
3936  fi
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3939$as_echo "$cross_compiling" >&6; }
3940
3941rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3942ac_clean_files=$ac_clean_files_save
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3944$as_echo_n "checking for suffix of object files... " >&6; }
3945if ${ac_cv_objext+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951int
3952main ()
3953{
3954
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959rm -f conftest.o conftest.obj
3960if { { ac_try="$ac_compile"
3961case "(($ac_try" in
3962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963  *) ac_try_echo=$ac_try;;
3964esac
3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966$as_echo "$ac_try_echo"; } >&5
3967  (eval "$ac_compile") 2>&5
3968  ac_status=$?
3969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970  test $ac_status = 0; }; then :
3971  for ac_file in conftest.o conftest.obj conftest.*; do
3972  test -f "$ac_file" || continue;
3973  case $ac_file in
3974    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3976       break;;
3977  esac
3978done
3979else
3980  $as_echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985as_fn_error $? "cannot compute suffix of object files: cannot compile
3986See \`config.log' for more details" "$LINENO" 5; }
3987fi
3988rm -f conftest.$ac_cv_objext conftest.$ac_ext
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991$as_echo "$ac_cv_objext" >&6; }
3992OBJEXT=$ac_cv_objext
3993ac_objext=$OBJEXT
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3995$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3996if ${ac_cv_c_compiler_gnu+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005#ifndef __GNUC__
4006       choke me
4007#endif
4008
4009  ;
4010  return 0;
4011}
4012_ACEOF
4013if ac_fn_c_try_compile "$LINENO"; then :
4014  ac_compiler_gnu=yes
4015else
4016  ac_compiler_gnu=no
4017fi
4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4023$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4024if test $ac_compiler_gnu = yes; then
4025  GCC=yes
4026else
4027  GCC=
4028fi
4029ac_test_CFLAGS=${CFLAGS+set}
4030ac_save_CFLAGS=$CFLAGS
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4032$as_echo_n "checking whether $CC accepts -g... " >&6; }
4033if ${ac_cv_prog_cc_g+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  ac_save_c_werror_flag=$ac_c_werror_flag
4037   ac_c_werror_flag=yes
4038   ac_cv_prog_cc_g=no
4039   CFLAGS="-g"
4040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042
4043int
4044main ()
4045{
4046
4047  ;
4048  return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"; then :
4052  ac_cv_prog_cc_g=yes
4053else
4054  CFLAGS=""
4055      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main ()
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066if ac_fn_c_try_compile "$LINENO"; then :
4067
4068else
4069  ac_c_werror_flag=$ac_save_c_werror_flag
4070	 CFLAGS="-g"
4071	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h.  */
4073
4074int
4075main ()
4076{
4077
4078  ;
4079  return 0;
4080}
4081_ACEOF
4082if ac_fn_c_try_compile "$LINENO"; then :
4083  ac_cv_prog_cc_g=yes
4084fi
4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090   ac_c_werror_flag=$ac_save_c_werror_flag
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4093$as_echo "$ac_cv_prog_cc_g" >&6; }
4094if test "$ac_test_CFLAGS" = set; then
4095  CFLAGS=$ac_save_CFLAGS
4096elif test $ac_cv_prog_cc_g = yes; then
4097  if test "$GCC" = yes; then
4098    CFLAGS="-g -O2"
4099  else
4100    CFLAGS="-g"
4101  fi
4102else
4103  if test "$GCC" = yes; then
4104    CFLAGS="-O2"
4105  else
4106    CFLAGS=
4107  fi
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4110$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4111if ${ac_cv_prog_cc_c89+:} false; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  ac_cv_prog_cc_c89=no
4115ac_save_CC=$CC
4116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118#include <stdarg.h>
4119#include <stdio.h>
4120struct stat;
4121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4122struct buf { int x; };
4123FILE * (*rcsopen) (struct buf *, struct stat *, int);
4124static char *e (p, i)
4125     char **p;
4126     int i;
4127{
4128  return p[i];
4129}
4130static char *f (char * (*g) (char **, int), char **p, ...)
4131{
4132  char *s;
4133  va_list v;
4134  va_start (v,p);
4135  s = g (p, va_arg (v,int));
4136  va_end (v);
4137  return s;
4138}
4139
4140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4141   function prototypes and stuff, but not '\xHH' hex character constants.
4142   These don't provoke an error unfortunately, instead are silently treated
4143   as 'x'.  The following induces an error, until -std is added to get
4144   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4145   array size at least.  It's necessary to write '\x00'==0 to get something
4146   that's true only with -std.  */
4147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4148
4149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4150   inside strings and character constants.  */
4151#define FOO(x) 'x'
4152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4153
4154int test (int i, double x);
4155struct s1 {int (*f) (int a);};
4156struct s2 {int (*f) (double a);};
4157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4158int argc;
4159char **argv;
4160int
4161main ()
4162{
4163return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4169	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4170do
4171  CC="$ac_save_CC $ac_arg"
4172  if ac_fn_c_try_compile "$LINENO"; then :
4173  ac_cv_prog_cc_c89=$ac_arg
4174fi
4175rm -f core conftest.err conftest.$ac_objext
4176  test "x$ac_cv_prog_cc_c89" != "xno" && break
4177done
4178rm -f conftest.$ac_ext
4179CC=$ac_save_CC
4180
4181fi
4182# AC_CACHE_VAL
4183case "x$ac_cv_prog_cc_c89" in
4184  x)
4185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4186$as_echo "none needed" >&6; } ;;
4187  xno)
4188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4189$as_echo "unsupported" >&6; } ;;
4190  *)
4191    CC="$CC $ac_cv_prog_cc_c89"
4192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4194esac
4195if test "x$ac_cv_prog_cc_c89" != xno; then :
4196
4197fi
4198
4199ac_ext=c
4200ac_cpp='$CPP $CPPFLAGS'
4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4211$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4212if ${am_cv_prog_cc_c_o+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h.  */
4217
4218int
4219main ()
4220{
4221
4222  ;
4223  return 0;
4224}
4225_ACEOF
4226  # Make sure it works both with $CC and with simple cc.
4227  # Following AC_PROG_CC_C_O, we do the test twice because some
4228  # compilers refuse to overwrite an existing .o file with -o,
4229  # though they will create one.
4230  am_cv_prog_cc_c_o=yes
4231  for am_i in 1 2; do
4232    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4233   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } \
4237         && test -f conftest2.$ac_objext; then
4238      : OK
4239    else
4240      am_cv_prog_cc_c_o=no
4241      break
4242    fi
4243  done
4244  rm -f core conftest*
4245  unset am_i
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4248$as_echo "$am_cv_prog_cc_c_o" >&6; }
4249if test "$am_cv_prog_cc_c_o" != yes; then
4250   # Losing compiler, so override with the script.
4251   # FIXME: It is wrong to rewrite CC.
4252   # But if we don't then we get into trouble of one sort or another.
4253   # A longer-term fix would be to have automake use am__CC in this case,
4254   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4255   CC="$am_aux_dir/compile $CC"
4256fi
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263DEPDIR="${am__leading_dot}deps"
4264
4265ac_config_commands="$ac_config_commands depfiles"
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4268$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4269cat > confinc.mk << 'END'
4270am__doit:
4271	@echo this is the am__doit target >confinc.out
4272.PHONY: am__doit
4273END
4274am__include="#"
4275am__quote=
4276# BSD make does it like this.
4277echo '.include "confinc.mk" # ignored' > confmf.BSD
4278# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4279echo 'include confinc.mk # ignored' > confmf.GNU
4280_am_result=no
4281for s in GNU BSD; do
4282  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4283   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }
4287  case $?:`cat confinc.out 2>/dev/null` in #(
4288  '0:this is the am__doit target') :
4289    case $s in #(
4290  BSD) :
4291    am__include='.include' am__quote='"' ;; #(
4292  *) :
4293    am__include='include' am__quote='' ;;
4294esac ;; #(
4295  *) :
4296     ;;
4297esac
4298  if test "$am__include" != "#"; then
4299    _am_result="yes ($s style)"
4300    break
4301  fi
4302done
4303rm -f confinc.* confmf.*
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4305$as_echo "${_am_result}" >&6; }
4306
4307# Check whether --enable-dependency-tracking was given.
4308if test "${enable_dependency_tracking+set}" = set; then :
4309  enableval=$enable_dependency_tracking;
4310fi
4311
4312if test "x$enable_dependency_tracking" != xno; then
4313  am_depcomp="$ac_aux_dir/depcomp"
4314  AMDEPBACKSLASH='\'
4315  am__nodep='_no'
4316fi
4317 if test "x$enable_dependency_tracking" != xno; then
4318  AMDEP_TRUE=
4319  AMDEP_FALSE='#'
4320else
4321  AMDEP_TRUE='#'
4322  AMDEP_FALSE=
4323fi
4324
4325
4326
4327depcc="$CC"   am_compiler_list=
4328
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4330$as_echo_n "checking dependency style of $depcc... " >&6; }
4331if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335  # We make a subdir and do the tests there.  Otherwise we can end up
4336  # making bogus files that we don't know about and never remove.  For
4337  # instance it was reported that on HP-UX the gcc test will end up
4338  # making a dummy file named 'D' -- because '-MD' means "put the output
4339  # in D".
4340  rm -rf conftest.dir
4341  mkdir conftest.dir
4342  # Copy depcomp to subdir because otherwise we won't find it if we're
4343  # using a relative directory.
4344  cp "$am_depcomp" conftest.dir
4345  cd conftest.dir
4346  # We will build objects and dependencies in a subdirectory because
4347  # it helps to detect inapplicable dependency modes.  For instance
4348  # both Tru64's cc and ICC support -MD to output dependencies as a
4349  # side effect of compilation, but ICC will put the dependencies in
4350  # the current directory while Tru64 will put them in the object
4351  # directory.
4352  mkdir sub
4353
4354  am_cv_CC_dependencies_compiler_type=none
4355  if test "$am_compiler_list" = ""; then
4356     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4357  fi
4358  am__universal=false
4359  case " $depcc " in #(
4360     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4361     esac
4362
4363  for depmode in $am_compiler_list; do
4364    # Setup a source with many dependencies, because some compilers
4365    # like to wrap large dependency lists on column 80 (with \), and
4366    # we should not choose a depcomp mode which is confused by this.
4367    #
4368    # We need to recreate these files for each test, as the compiler may
4369    # overwrite some of them when testing with obscure command lines.
4370    # This happens at least with the AIX C compiler.
4371    : > sub/conftest.c
4372    for i in 1 2 3 4 5 6; do
4373      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4374      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4375      # Solaris 10 /bin/sh.
4376      echo '/* dummy */' > sub/conftst$i.h
4377    done
4378    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4379
4380    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4381    # mode.  It turns out that the SunPro C++ compiler does not properly
4382    # handle '-M -o', and we need to detect this.  Also, some Intel
4383    # versions had trouble with output in subdirs.
4384    am__obj=sub/conftest.${OBJEXT-o}
4385    am__minus_obj="-o $am__obj"
4386    case $depmode in
4387    gcc)
4388      # This depmode causes a compiler race in universal mode.
4389      test "$am__universal" = false || continue
4390      ;;
4391    nosideeffect)
4392      # After this tag, mechanisms are not by side-effect, so they'll
4393      # only be used when explicitly requested.
4394      if test "x$enable_dependency_tracking" = xyes; then
4395	continue
4396      else
4397	break
4398      fi
4399      ;;
4400    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4401      # This compiler won't grok '-c -o', but also, the minuso test has
4402      # not run yet.  These depmodes are late enough in the game, and
4403      # so weak that their functioning should not be impacted.
4404      am__obj=conftest.${OBJEXT-o}
4405      am__minus_obj=
4406      ;;
4407    none) break ;;
4408    esac
4409    if depmode=$depmode \
4410       source=sub/conftest.c object=$am__obj \
4411       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4413         >/dev/null 2>conftest.err &&
4414       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4415       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4416       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4417       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4418      # icc doesn't choke on unknown options, it will just issue warnings
4419      # or remarks (even with -Werror).  So we grep stderr for any message
4420      # that says an option was ignored or not supported.
4421      # When given -MP, icc 7.0 and 7.1 complain thusly:
4422      #   icc: Command line warning: ignoring option '-M'; no argument required
4423      # The diagnosis changed in icc 8.0:
4424      #   icc: Command line remark: option '-MP' not supported
4425      if (grep 'ignoring option' conftest.err ||
4426          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4427        am_cv_CC_dependencies_compiler_type=$depmode
4428        break
4429      fi
4430    fi
4431  done
4432
4433  cd ..
4434  rm -rf conftest.dir
4435else
4436  am_cv_CC_dependencies_compiler_type=none
4437fi
4438
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4441$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4442CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4443
4444 if
4445  test "x$enable_dependency_tracking" != xno \
4446  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4447  am__fastdepCC_TRUE=
4448  am__fastdepCC_FALSE='#'
4449else
4450  am__fastdepCC_TRUE='#'
4451  am__fastdepCC_FALSE=
4452fi
4453
4454
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4456$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4457if ${ac_cv_prog_cc_c99+:} false; then :
4458  $as_echo_n "(cached) " >&6
4459else
4460  ac_cv_prog_cc_c99=no
4461ac_save_CC=$CC
4462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h.  */
4464#include <stdarg.h>
4465#include <stdbool.h>
4466#include <stdlib.h>
4467#include <wchar.h>
4468#include <stdio.h>
4469
4470// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4471#define debug(...) fprintf (stderr, __VA_ARGS__)
4472#define showlist(...) puts (#__VA_ARGS__)
4473#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4474static void
4475test_varargs_macros (void)
4476{
4477  int x = 1234;
4478  int y = 5678;
4479  debug ("Flag");
4480  debug ("X = %d\n", x);
4481  showlist (The first, second, and third items.);
4482  report (x>y, "x is %d but y is %d", x, y);
4483}
4484
4485// Check long long types.
4486#define BIG64 18446744073709551615ull
4487#define BIG32 4294967295ul
4488#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4489#if !BIG_OK
4490  your preprocessor is broken;
4491#endif
4492#if BIG_OK
4493#else
4494  your preprocessor is broken;
4495#endif
4496static long long int bignum = -9223372036854775807LL;
4497static unsigned long long int ubignum = BIG64;
4498
4499struct incomplete_array
4500{
4501  int datasize;
4502  double data[];
4503};
4504
4505struct named_init {
4506  int number;
4507  const wchar_t *name;
4508  double average;
4509};
4510
4511typedef const char *ccp;
4512
4513static inline int
4514test_restrict (ccp restrict text)
4515{
4516  // See if C++-style comments work.
4517  // Iterate through items via the restricted pointer.
4518  // Also check for declarations in for loops.
4519  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4520    continue;
4521  return 0;
4522}
4523
4524// Check varargs and va_copy.
4525static void
4526test_varargs (const char *format, ...)
4527{
4528  va_list args;
4529  va_start (args, format);
4530  va_list args_copy;
4531  va_copy (args_copy, args);
4532
4533  const char *str;
4534  int number;
4535  float fnumber;
4536
4537  while (*format)
4538    {
4539      switch (*format++)
4540	{
4541	case 's': // string
4542	  str = va_arg (args_copy, const char *);
4543	  break;
4544	case 'd': // int
4545	  number = va_arg (args_copy, int);
4546	  break;
4547	case 'f': // float
4548	  fnumber = va_arg (args_copy, double);
4549	  break;
4550	default:
4551	  break;
4552	}
4553    }
4554  va_end (args_copy);
4555  va_end (args);
4556}
4557
4558int
4559main ()
4560{
4561
4562  // Check bool.
4563  _Bool success = false;
4564
4565  // Check restrict.
4566  if (test_restrict ("String literal") == 0)
4567    success = true;
4568  char *restrict newvar = "Another string";
4569
4570  // Check varargs.
4571  test_varargs ("s, d' f .", "string", 65, 34.234);
4572  test_varargs_macros ();
4573
4574  // Check flexible array members.
4575  struct incomplete_array *ia =
4576    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4577  ia->datasize = 10;
4578  for (int i = 0; i < ia->datasize; ++i)
4579    ia->data[i] = i * 1.234;
4580
4581  // Check named initializers.
4582  struct named_init ni = {
4583    .number = 34,
4584    .name = L"Test wide string",
4585    .average = 543.34343,
4586  };
4587
4588  ni.number = 58;
4589
4590  int dynamic_array[ni.number];
4591  dynamic_array[ni.number - 1] = 543;
4592
4593  // work around unused variable warnings
4594  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4595	  || dynamic_array[ni.number - 1] != 543);
4596
4597  ;
4598  return 0;
4599}
4600_ACEOF
4601for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4602do
4603  CC="$ac_save_CC $ac_arg"
4604  if ac_fn_c_try_compile "$LINENO"; then :
4605  ac_cv_prog_cc_c99=$ac_arg
4606fi
4607rm -f core conftest.err conftest.$ac_objext
4608  test "x$ac_cv_prog_cc_c99" != "xno" && break
4609done
4610rm -f conftest.$ac_ext
4611CC=$ac_save_CC
4612
4613fi
4614# AC_CACHE_VAL
4615case "x$ac_cv_prog_cc_c99" in
4616  x)
4617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4618$as_echo "none needed" >&6; } ;;
4619  xno)
4620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4621$as_echo "unsupported" >&6; } ;;
4622  *)
4623    CC="$CC $ac_cv_prog_cc_c99"
4624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4625$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4626esac
4627if test "x$ac_cv_prog_cc_c99" != xno; then :
4628
4629fi
4630
4631
4632
4633if test "$GCC" = "yes"
4634then AM_CFLAGS="$CFLAGS -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute"
4635fi
4636
4637case `pwd` in
4638  *\ * | *\	*)
4639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4640$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4641esac
4642
4643
4644
4645macro_version='2.4.6'
4646macro_revision='2.4.6'
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660ltmain=$ac_aux_dir/ltmain.sh
4661
4662# Make sure we can run config.sub.
4663$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4664  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4667$as_echo_n "checking build system type... " >&6; }
4668if ${ac_cv_build+:} false; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  ac_build_alias=$build_alias
4672test "x$ac_build_alias" = x &&
4673  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4674test "x$ac_build_alias" = x &&
4675  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4676ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4677  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4678
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4681$as_echo "$ac_cv_build" >&6; }
4682case $ac_cv_build in
4683*-*-*) ;;
4684*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4685esac
4686build=$ac_cv_build
4687ac_save_IFS=$IFS; IFS='-'
4688set x $ac_cv_build
4689shift
4690build_cpu=$1
4691build_vendor=$2
4692shift; shift
4693# Remember, the first character of IFS is used to create $*,
4694# except with old shells:
4695build_os=$*
4696IFS=$ac_save_IFS
4697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4701$as_echo_n "checking host system type... " >&6; }
4702if ${ac_cv_host+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test "x$host_alias" = x; then
4706  ac_cv_host=$ac_cv_build
4707else
4708  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4709    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4710fi
4711
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4714$as_echo "$ac_cv_host" >&6; }
4715case $ac_cv_host in
4716*-*-*) ;;
4717*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4718esac
4719host=$ac_cv_host
4720ac_save_IFS=$IFS; IFS='-'
4721set x $ac_cv_host
4722shift
4723host_cpu=$1
4724host_vendor=$2
4725shift; shift
4726# Remember, the first character of IFS is used to create $*,
4727# except with old shells:
4728host_os=$*
4729IFS=$ac_save_IFS
4730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4731
4732
4733# Backslashify metacharacters that are still active within
4734# double-quoted strings.
4735sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4736
4737# Same as above, but do not quote variable references.
4738double_quote_subst='s/\(["`\\]\)/\\\1/g'
4739
4740# Sed substitution to delay expansion of an escaped shell variable in a
4741# double_quote_subst'ed string.
4742delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4743
4744# Sed substitution to delay expansion of an escaped single quote.
4745delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4746
4747# Sed substitution to avoid accidental globbing in evaled expressions
4748no_glob_subst='s/\*/\\\*/g'
4749
4750ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4751ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4752ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4755$as_echo_n "checking how to print strings... " >&6; }
4756# Test print first, because it will be a builtin if present.
4757if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4758   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4759  ECHO='print -r --'
4760elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4761  ECHO='printf %s\n'
4762else
4763  # Use this function as a fallback that always works.
4764  func_fallback_echo ()
4765  {
4766    eval 'cat <<_LTECHO_EOF
4767$1
4768_LTECHO_EOF'
4769  }
4770  ECHO='func_fallback_echo'
4771fi
4772
4773# func_echo_all arg...
4774# Invoke $ECHO with all args, space-separated.
4775func_echo_all ()
4776{
4777    $ECHO ""
4778}
4779
4780case $ECHO in
4781  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4782$as_echo "printf" >&6; } ;;
4783  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4784$as_echo "print -r" >&6; } ;;
4785  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4786$as_echo "cat" >&6; } ;;
4787esac
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4803$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4804if ${ac_cv_path_SED+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4808     for ac_i in 1 2 3 4 5 6 7; do
4809       ac_script="$ac_script$as_nl$ac_script"
4810     done
4811     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4812     { ac_script=; unset ac_script;}
4813     if test -z "$SED"; then
4814  ac_path_SED_found=false
4815  # Loop through the user's path and test for each of PROGNAME-LIST
4816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819  IFS=$as_save_IFS
4820  test -z "$as_dir" && as_dir=.
4821    for ac_prog in sed gsed; do
4822    for ac_exec_ext in '' $ac_executable_extensions; do
4823      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4824      as_fn_executable_p "$ac_path_SED" || continue
4825# Check for GNU ac_path_SED and select it if it is found.
4826  # Check for GNU $ac_path_SED
4827case `"$ac_path_SED" --version 2>&1` in
4828*GNU*)
4829  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4830*)
4831  ac_count=0
4832  $as_echo_n 0123456789 >"conftest.in"
4833  while :
4834  do
4835    cat "conftest.in" "conftest.in" >"conftest.tmp"
4836    mv "conftest.tmp" "conftest.in"
4837    cp "conftest.in" "conftest.nl"
4838    $as_echo '' >> "conftest.nl"
4839    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4840    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4841    as_fn_arith $ac_count + 1 && ac_count=$as_val
4842    if test $ac_count -gt ${ac_path_SED_max-0}; then
4843      # Best one so far, save it but keep looking for a better one
4844      ac_cv_path_SED="$ac_path_SED"
4845      ac_path_SED_max=$ac_count
4846    fi
4847    # 10*(2^10) chars as input seems more than enough
4848    test $ac_count -gt 10 && break
4849  done
4850  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4851esac
4852
4853      $ac_path_SED_found && break 3
4854    done
4855  done
4856  done
4857IFS=$as_save_IFS
4858  if test -z "$ac_cv_path_SED"; then
4859    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4860  fi
4861else
4862  ac_cv_path_SED=$SED
4863fi
4864
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4867$as_echo "$ac_cv_path_SED" >&6; }
4868 SED="$ac_cv_path_SED"
4869  rm -f conftest.sed
4870
4871test -z "$SED" && SED=sed
4872Xsed="$SED -e 1s/^X//"
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4885$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4886if ${ac_cv_path_GREP+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  if test -z "$GREP"; then
4890  ac_path_GREP_found=false
4891  # Loop through the user's path and test for each of PROGNAME-LIST
4892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4894do
4895  IFS=$as_save_IFS
4896  test -z "$as_dir" && as_dir=.
4897    for ac_prog in grep ggrep; do
4898    for ac_exec_ext in '' $ac_executable_extensions; do
4899      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4900      as_fn_executable_p "$ac_path_GREP" || continue
4901# Check for GNU ac_path_GREP and select it if it is found.
4902  # Check for GNU $ac_path_GREP
4903case `"$ac_path_GREP" --version 2>&1` in
4904*GNU*)
4905  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4906*)
4907  ac_count=0
4908  $as_echo_n 0123456789 >"conftest.in"
4909  while :
4910  do
4911    cat "conftest.in" "conftest.in" >"conftest.tmp"
4912    mv "conftest.tmp" "conftest.in"
4913    cp "conftest.in" "conftest.nl"
4914    $as_echo 'GREP' >> "conftest.nl"
4915    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917    as_fn_arith $ac_count + 1 && ac_count=$as_val
4918    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4919      # Best one so far, save it but keep looking for a better one
4920      ac_cv_path_GREP="$ac_path_GREP"
4921      ac_path_GREP_max=$ac_count
4922    fi
4923    # 10*(2^10) chars as input seems more than enough
4924    test $ac_count -gt 10 && break
4925  done
4926  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927esac
4928
4929      $ac_path_GREP_found && break 3
4930    done
4931  done
4932  done
4933IFS=$as_save_IFS
4934  if test -z "$ac_cv_path_GREP"; then
4935    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4936  fi
4937else
4938  ac_cv_path_GREP=$GREP
4939fi
4940
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4943$as_echo "$ac_cv_path_GREP" >&6; }
4944 GREP="$ac_cv_path_GREP"
4945
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4948$as_echo_n "checking for egrep... " >&6; }
4949if ${ac_cv_path_EGREP+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4953   then ac_cv_path_EGREP="$GREP -E"
4954   else
4955     if test -z "$EGREP"; then
4956  ac_path_EGREP_found=false
4957  # Loop through the user's path and test for each of PROGNAME-LIST
4958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4960do
4961  IFS=$as_save_IFS
4962  test -z "$as_dir" && as_dir=.
4963    for ac_prog in egrep; do
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4966      as_fn_executable_p "$ac_path_EGREP" || continue
4967# Check for GNU ac_path_EGREP and select it if it is found.
4968  # Check for GNU $ac_path_EGREP
4969case `"$ac_path_EGREP" --version 2>&1` in
4970*GNU*)
4971  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4972*)
4973  ac_count=0
4974  $as_echo_n 0123456789 >"conftest.in"
4975  while :
4976  do
4977    cat "conftest.in" "conftest.in" >"conftest.tmp"
4978    mv "conftest.tmp" "conftest.in"
4979    cp "conftest.in" "conftest.nl"
4980    $as_echo 'EGREP' >> "conftest.nl"
4981    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983    as_fn_arith $ac_count + 1 && ac_count=$as_val
4984    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4985      # Best one so far, save it but keep looking for a better one
4986      ac_cv_path_EGREP="$ac_path_EGREP"
4987      ac_path_EGREP_max=$ac_count
4988    fi
4989    # 10*(2^10) chars as input seems more than enough
4990    test $ac_count -gt 10 && break
4991  done
4992  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993esac
4994
4995      $ac_path_EGREP_found && break 3
4996    done
4997  done
4998  done
4999IFS=$as_save_IFS
5000  if test -z "$ac_cv_path_EGREP"; then
5001    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5002  fi
5003else
5004  ac_cv_path_EGREP=$EGREP
5005fi
5006
5007   fi
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5010$as_echo "$ac_cv_path_EGREP" >&6; }
5011 EGREP="$ac_cv_path_EGREP"
5012
5013
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5015$as_echo_n "checking for fgrep... " >&6; }
5016if ${ac_cv_path_FGREP+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5020   then ac_cv_path_FGREP="$GREP -F"
5021   else
5022     if test -z "$FGREP"; then
5023  ac_path_FGREP_found=false
5024  # Loop through the user's path and test for each of PROGNAME-LIST
5025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5027do
5028  IFS=$as_save_IFS
5029  test -z "$as_dir" && as_dir=.
5030    for ac_prog in fgrep; do
5031    for ac_exec_ext in '' $ac_executable_extensions; do
5032      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5033      as_fn_executable_p "$ac_path_FGREP" || continue
5034# Check for GNU ac_path_FGREP and select it if it is found.
5035  # Check for GNU $ac_path_FGREP
5036case `"$ac_path_FGREP" --version 2>&1` in
5037*GNU*)
5038  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5039*)
5040  ac_count=0
5041  $as_echo_n 0123456789 >"conftest.in"
5042  while :
5043  do
5044    cat "conftest.in" "conftest.in" >"conftest.tmp"
5045    mv "conftest.tmp" "conftest.in"
5046    cp "conftest.in" "conftest.nl"
5047    $as_echo 'FGREP' >> "conftest.nl"
5048    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050    as_fn_arith $ac_count + 1 && ac_count=$as_val
5051    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5052      # Best one so far, save it but keep looking for a better one
5053      ac_cv_path_FGREP="$ac_path_FGREP"
5054      ac_path_FGREP_max=$ac_count
5055    fi
5056    # 10*(2^10) chars as input seems more than enough
5057    test $ac_count -gt 10 && break
5058  done
5059  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060esac
5061
5062      $ac_path_FGREP_found && break 3
5063    done
5064  done
5065  done
5066IFS=$as_save_IFS
5067  if test -z "$ac_cv_path_FGREP"; then
5068    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5069  fi
5070else
5071  ac_cv_path_FGREP=$FGREP
5072fi
5073
5074   fi
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5077$as_echo "$ac_cv_path_FGREP" >&6; }
5078 FGREP="$ac_cv_path_FGREP"
5079
5080
5081test -z "$GREP" && GREP=grep
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101# Check whether --with-gnu-ld was given.
5102if test "${with_gnu_ld+set}" = set; then :
5103  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5104else
5105  with_gnu_ld=no
5106fi
5107
5108ac_prog=ld
5109if test yes = "$GCC"; then
5110  # Check if gcc -print-prog-name=ld gives a path.
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5112$as_echo_n "checking for ld used by $CC... " >&6; }
5113  case $host in
5114  *-*-mingw*)
5115    # gcc leaves a trailing carriage return, which upsets mingw
5116    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5117  *)
5118    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5119  esac
5120  case $ac_prog in
5121    # Accept absolute paths.
5122    [\\/]* | ?:[\\/]*)
5123      re_direlt='/[^/][^/]*/\.\./'
5124      # Canonicalize the pathname of ld
5125      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5126      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5127	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5128      done
5129      test -z "$LD" && LD=$ac_prog
5130      ;;
5131  "")
5132    # If it fails, then pretend we aren't using GCC.
5133    ac_prog=ld
5134    ;;
5135  *)
5136    # If it is relative, then search for the first ld in PATH.
5137    with_gnu_ld=unknown
5138    ;;
5139  esac
5140elif test yes = "$with_gnu_ld"; then
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5142$as_echo_n "checking for GNU ld... " >&6; }
5143else
5144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5145$as_echo_n "checking for non-GNU ld... " >&6; }
5146fi
5147if ${lt_cv_path_LD+:} false; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  if test -z "$LD"; then
5151  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5152  for ac_dir in $PATH; do
5153    IFS=$lt_save_ifs
5154    test -z "$ac_dir" && ac_dir=.
5155    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5156      lt_cv_path_LD=$ac_dir/$ac_prog
5157      # Check to see if the program is GNU ld.  I'd rather use --version,
5158      # but apparently some variants of GNU ld only accept -v.
5159      # Break only if it was the GNU/non-GNU ld that we prefer.
5160      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5161      *GNU* | *'with BFD'*)
5162	test no != "$with_gnu_ld" && break
5163	;;
5164      *)
5165	test yes != "$with_gnu_ld" && break
5166	;;
5167      esac
5168    fi
5169  done
5170  IFS=$lt_save_ifs
5171else
5172  lt_cv_path_LD=$LD # Let the user override the test with a path.
5173fi
5174fi
5175
5176LD=$lt_cv_path_LD
5177if test -n "$LD"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5179$as_echo "$LD" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5186$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5187if ${lt_cv_prog_gnu_ld+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5191case `$LD -v 2>&1 </dev/null` in
5192*GNU* | *'with BFD'*)
5193  lt_cv_prog_gnu_ld=yes
5194  ;;
5195*)
5196  lt_cv_prog_gnu_ld=no
5197  ;;
5198esac
5199fi
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5201$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5202with_gnu_ld=$lt_cv_prog_gnu_ld
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5213$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5214if ${lt_cv_path_NM+:} false; then :
5215  $as_echo_n "(cached) " >&6
5216else
5217  if test -n "$NM"; then
5218  # Let the user override the test.
5219  lt_cv_path_NM=$NM
5220else
5221  lt_nm_to_check=${ac_tool_prefix}nm
5222  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5223    lt_nm_to_check="$lt_nm_to_check nm"
5224  fi
5225  for lt_tmp_nm in $lt_nm_to_check; do
5226    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5227    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5228      IFS=$lt_save_ifs
5229      test -z "$ac_dir" && ac_dir=.
5230      tmp_nm=$ac_dir/$lt_tmp_nm
5231      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5232	# Check to see if the nm accepts a BSD-compat flag.
5233	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5234	#   nm: unknown option "B" ignored
5235	# Tru64's nm complains that /dev/null is an invalid object file
5236	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5237	case $build_os in
5238	mingw*) lt_bad_file=conftest.nm/nofile ;;
5239	*) lt_bad_file=/dev/null ;;
5240	esac
5241	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5242	*$lt_bad_file* | *'Invalid file or object type'*)
5243	  lt_cv_path_NM="$tmp_nm -B"
5244	  break 2
5245	  ;;
5246	*)
5247	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5248	  */dev/null*)
5249	    lt_cv_path_NM="$tmp_nm -p"
5250	    break 2
5251	    ;;
5252	  *)
5253	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5254	    continue # so that we can try to find one that supports BSD flags
5255	    ;;
5256	  esac
5257	  ;;
5258	esac
5259      fi
5260    done
5261    IFS=$lt_save_ifs
5262  done
5263  : ${lt_cv_path_NM=no}
5264fi
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5267$as_echo "$lt_cv_path_NM" >&6; }
5268if test no != "$lt_cv_path_NM"; then
5269  NM=$lt_cv_path_NM
5270else
5271  # Didn't find any BSD compatible name lister, look for dumpbin.
5272  if test -n "$DUMPBIN"; then :
5273    # Let the user override the test.
5274  else
5275    if test -n "$ac_tool_prefix"; then
5276  for ac_prog in dumpbin "link -dump"
5277  do
5278    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if ${ac_cv_prog_DUMPBIN+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  if test -n "$DUMPBIN"; then
5286  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291  IFS=$as_save_IFS
5292  test -z "$as_dir" && as_dir=.
5293    for ac_exec_ext in '' $ac_executable_extensions; do
5294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297    break 2
5298  fi
5299done
5300  done
5301IFS=$as_save_IFS
5302
5303fi
5304fi
5305DUMPBIN=$ac_cv_prog_DUMPBIN
5306if test -n "$DUMPBIN"; then
5307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5308$as_echo "$DUMPBIN" >&6; }
5309else
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311$as_echo "no" >&6; }
5312fi
5313
5314
5315    test -n "$DUMPBIN" && break
5316  done
5317fi
5318if test -z "$DUMPBIN"; then
5319  ac_ct_DUMPBIN=$DUMPBIN
5320  for ac_prog in dumpbin "link -dump"
5321do
5322  # Extract the first word of "$ac_prog", so it can be a program name with args.
5323set dummy $ac_prog; ac_word=$2
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325$as_echo_n "checking for $ac_word... " >&6; }
5326if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  if test -n "$ac_ct_DUMPBIN"; then
5330  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337    for ac_exec_ext in '' $ac_executable_extensions; do
5338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344  done
5345IFS=$as_save_IFS
5346
5347fi
5348fi
5349ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5350if test -n "$ac_ct_DUMPBIN"; then
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5352$as_echo "$ac_ct_DUMPBIN" >&6; }
5353else
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356fi
5357
5358
5359  test -n "$ac_ct_DUMPBIN" && break
5360done
5361
5362  if test "x$ac_ct_DUMPBIN" = x; then
5363    DUMPBIN=":"
5364  else
5365    case $cross_compiling:$ac_tool_warned in
5366yes:)
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369ac_tool_warned=yes ;;
5370esac
5371    DUMPBIN=$ac_ct_DUMPBIN
5372  fi
5373fi
5374
5375    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5376    *COFF*)
5377      DUMPBIN="$DUMPBIN -symbols -headers"
5378      ;;
5379    *)
5380      DUMPBIN=:
5381      ;;
5382    esac
5383  fi
5384
5385  if test : != "$DUMPBIN"; then
5386    NM=$DUMPBIN
5387  fi
5388fi
5389test -z "$NM" && NM=nm
5390
5391
5392
5393
5394
5395
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5397$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5398if ${lt_cv_nm_interface+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  lt_cv_nm_interface="BSD nm"
5402  echo "int some_variable = 0;" > conftest.$ac_ext
5403  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5404  (eval "$ac_compile" 2>conftest.err)
5405  cat conftest.err >&5
5406  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5407  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5408  cat conftest.err >&5
5409  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5410  cat conftest.out >&5
5411  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5412    lt_cv_nm_interface="MS dumpbin"
5413  fi
5414  rm -f conftest*
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5417$as_echo "$lt_cv_nm_interface" >&6; }
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5420$as_echo_n "checking whether ln -s works... " >&6; }
5421LN_S=$as_ln_s
5422if test "$LN_S" = "ln -s"; then
5423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5424$as_echo "yes" >&6; }
5425else
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5427$as_echo "no, using $LN_S" >&6; }
5428fi
5429
5430# find the maximum length of command line arguments
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5432$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5433if ${lt_cv_sys_max_cmd_len+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436    i=0
5437  teststring=ABCD
5438
5439  case $build_os in
5440  msdosdjgpp*)
5441    # On DJGPP, this test can blow up pretty badly due to problems in libc
5442    # (any single argument exceeding 2000 bytes causes a buffer overrun
5443    # during glob expansion).  Even if it were fixed, the result of this
5444    # check would be larger than it should be.
5445    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5446    ;;
5447
5448  gnu*)
5449    # Under GNU Hurd, this test is not required because there is
5450    # no limit to the length of command line arguments.
5451    # Libtool will interpret -1 as no limit whatsoever
5452    lt_cv_sys_max_cmd_len=-1;
5453    ;;
5454
5455  cygwin* | mingw* | cegcc*)
5456    # On Win9x/ME, this test blows up -- it succeeds, but takes
5457    # about 5 minutes as the teststring grows exponentially.
5458    # Worse, since 9x/ME are not pre-emptively multitasking,
5459    # you end up with a "frozen" computer, even though with patience
5460    # the test eventually succeeds (with a max line length of 256k).
5461    # Instead, let's just punt: use the minimum linelength reported by
5462    # all of the supported platforms: 8192 (on NT/2K/XP).
5463    lt_cv_sys_max_cmd_len=8192;
5464    ;;
5465
5466  mint*)
5467    # On MiNT this can take a long time and run out of memory.
5468    lt_cv_sys_max_cmd_len=8192;
5469    ;;
5470
5471  amigaos*)
5472    # On AmigaOS with pdksh, this test takes hours, literally.
5473    # So we just punt and use a minimum line length of 8192.
5474    lt_cv_sys_max_cmd_len=8192;
5475    ;;
5476
5477  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5478    # This has been around since 386BSD, at least.  Likely further.
5479    if test -x /sbin/sysctl; then
5480      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5481    elif test -x /usr/sbin/sysctl; then
5482      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5483    else
5484      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5485    fi
5486    # And add a safety zone
5487    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5488    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5489    ;;
5490
5491  interix*)
5492    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5493    lt_cv_sys_max_cmd_len=196608
5494    ;;
5495
5496  os2*)
5497    # The test takes a long time on OS/2.
5498    lt_cv_sys_max_cmd_len=8192
5499    ;;
5500
5501  osf*)
5502    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5503    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5504    # nice to cause kernel panics so lets avoid the loop below.
5505    # First set a reasonable default.
5506    lt_cv_sys_max_cmd_len=16384
5507    #
5508    if test -x /sbin/sysconfig; then
5509      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5510        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5511      esac
5512    fi
5513    ;;
5514  sco3.2v5*)
5515    lt_cv_sys_max_cmd_len=102400
5516    ;;
5517  sysv5* | sco5v6* | sysv4.2uw2*)
5518    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5519    if test -n "$kargmax"; then
5520      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5521    else
5522      lt_cv_sys_max_cmd_len=32768
5523    fi
5524    ;;
5525  *)
5526    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5527    if test -n "$lt_cv_sys_max_cmd_len" && \
5528       test undefined != "$lt_cv_sys_max_cmd_len"; then
5529      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5530      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5531    else
5532      # Make teststring a little bigger before we do anything with it.
5533      # a 1K string should be a reasonable start.
5534      for i in 1 2 3 4 5 6 7 8; do
5535        teststring=$teststring$teststring
5536      done
5537      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5538      # If test is not a shell built-in, we'll probably end up computing a
5539      # maximum length that is only half of the actual maximum length, but
5540      # we can't tell.
5541      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5542	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5543	      test 17 != "$i" # 1/2 MB should be enough
5544      do
5545        i=`expr $i + 1`
5546        teststring=$teststring$teststring
5547      done
5548      # Only check the string length outside the loop.
5549      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5550      teststring=
5551      # Add a significant safety factor because C++ compilers can tack on
5552      # massive amounts of additional arguments before passing them to the
5553      # linker.  It appears as though 1/2 is a usable value.
5554      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5555    fi
5556    ;;
5557  esac
5558
5559fi
5560
5561if test -n "$lt_cv_sys_max_cmd_len"; then
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5563$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5564else
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5566$as_echo "none" >&6; }
5567fi
5568max_cmd_len=$lt_cv_sys_max_cmd_len
5569
5570
5571
5572
5573
5574
5575: ${CP="cp -f"}
5576: ${MV="mv -f"}
5577: ${RM="rm -f"}
5578
5579if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5580  lt_unset=unset
5581else
5582  lt_unset=false
5583fi
5584
5585
5586
5587
5588
5589# test EBCDIC or ASCII
5590case `echo X|tr X '\101'` in
5591 A) # ASCII based system
5592    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5593  lt_SP2NL='tr \040 \012'
5594  lt_NL2SP='tr \015\012 \040\040'
5595  ;;
5596 *) # EBCDIC based system
5597  lt_SP2NL='tr \100 \n'
5598  lt_NL2SP='tr \r\n \100\100'
5599  ;;
5600esac
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5611$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5612if ${lt_cv_to_host_file_cmd+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  case $host in
5616  *-*-mingw* )
5617    case $build in
5618      *-*-mingw* ) # actually msys
5619        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5620        ;;
5621      *-*-cygwin* )
5622        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5623        ;;
5624      * ) # otherwise, assume *nix
5625        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5626        ;;
5627    esac
5628    ;;
5629  *-*-cygwin* )
5630    case $build in
5631      *-*-mingw* ) # actually msys
5632        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5633        ;;
5634      *-*-cygwin* )
5635        lt_cv_to_host_file_cmd=func_convert_file_noop
5636        ;;
5637      * ) # otherwise, assume *nix
5638        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5639        ;;
5640    esac
5641    ;;
5642  * ) # unhandled hosts (and "normal" native builds)
5643    lt_cv_to_host_file_cmd=func_convert_file_noop
5644    ;;
5645esac
5646
5647fi
5648
5649to_host_file_cmd=$lt_cv_to_host_file_cmd
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5651$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5652
5653
5654
5655
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5658$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5659if ${lt_cv_to_tool_file_cmd+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  #assume ordinary cross tools, or native build.
5663lt_cv_to_tool_file_cmd=func_convert_file_noop
5664case $host in
5665  *-*-mingw* )
5666    case $build in
5667      *-*-mingw* ) # actually msys
5668        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5669        ;;
5670    esac
5671    ;;
5672esac
5673
5674fi
5675
5676to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5678$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5679
5680
5681
5682
5683
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5685$as_echo_n "checking for $LD option to reload object files... " >&6; }
5686if ${lt_cv_ld_reload_flag+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  lt_cv_ld_reload_flag='-r'
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5692$as_echo "$lt_cv_ld_reload_flag" >&6; }
5693reload_flag=$lt_cv_ld_reload_flag
5694case $reload_flag in
5695"" | " "*) ;;
5696*) reload_flag=" $reload_flag" ;;
5697esac
5698reload_cmds='$LD$reload_flag -o $output$reload_objs'
5699case $host_os in
5700  cygwin* | mingw* | pw32* | cegcc*)
5701    if test yes != "$GCC"; then
5702      reload_cmds=false
5703    fi
5704    ;;
5705  darwin*)
5706    if test yes = "$GCC"; then
5707      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5708    else
5709      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5710    fi
5711    ;;
5712esac
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722if test -n "$ac_tool_prefix"; then
5723  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5724set dummy ${ac_tool_prefix}objdump; ac_word=$2
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726$as_echo_n "checking for $ac_word... " >&6; }
5727if ${ac_cv_prog_OBJDUMP+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  if test -n "$OBJDUMP"; then
5731  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738    for ac_exec_ext in '' $ac_executable_extensions; do
5739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742    break 2
5743  fi
5744done
5745  done
5746IFS=$as_save_IFS
5747
5748fi
5749fi
5750OBJDUMP=$ac_cv_prog_OBJDUMP
5751if test -n "$OBJDUMP"; then
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5753$as_echo "$OBJDUMP" >&6; }
5754else
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757fi
5758
5759
5760fi
5761if test -z "$ac_cv_prog_OBJDUMP"; then
5762  ac_ct_OBJDUMP=$OBJDUMP
5763  # Extract the first word of "objdump", so it can be a program name with args.
5764set dummy objdump; ac_word=$2
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
5767if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  if test -n "$ac_ct_OBJDUMP"; then
5771  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776  IFS=$as_save_IFS
5777  test -z "$as_dir" && as_dir=.
5778    for ac_exec_ext in '' $ac_executable_extensions; do
5779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782    break 2
5783  fi
5784done
5785  done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5791if test -n "$ac_ct_OBJDUMP"; then
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5793$as_echo "$ac_ct_OBJDUMP" >&6; }
5794else
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }
5797fi
5798
5799  if test "x$ac_ct_OBJDUMP" = x; then
5800    OBJDUMP="false"
5801  else
5802    case $cross_compiling:$ac_tool_warned in
5803yes:)
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806ac_tool_warned=yes ;;
5807esac
5808    OBJDUMP=$ac_ct_OBJDUMP
5809  fi
5810else
5811  OBJDUMP="$ac_cv_prog_OBJDUMP"
5812fi
5813
5814test -z "$OBJDUMP" && OBJDUMP=objdump
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5825$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5826if ${lt_cv_deplibs_check_method+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  lt_cv_file_magic_cmd='$MAGIC_CMD'
5830lt_cv_file_magic_test_file=
5831lt_cv_deplibs_check_method='unknown'
5832# Need to set the preceding variable on all platforms that support
5833# interlibrary dependencies.
5834# 'none' -- dependencies not supported.
5835# 'unknown' -- same as none, but documents that we really don't know.
5836# 'pass_all' -- all dependencies passed with no checks.
5837# 'test_compile' -- check by making test program.
5838# 'file_magic [[regex]]' -- check by looking for files in library path
5839# that responds to the $file_magic_cmd with a given extended regex.
5840# If you have 'file' or equivalent on your system and you're not sure
5841# whether 'pass_all' will *always* work, you probably want this one.
5842
5843case $host_os in
5844aix[4-9]*)
5845  lt_cv_deplibs_check_method=pass_all
5846  ;;
5847
5848beos*)
5849  lt_cv_deplibs_check_method=pass_all
5850  ;;
5851
5852bsdi[45]*)
5853  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5854  lt_cv_file_magic_cmd='/usr/bin/file -L'
5855  lt_cv_file_magic_test_file=/shlib/libc.so
5856  ;;
5857
5858cygwin*)
5859  # func_win32_libid is a shell function defined in ltmain.sh
5860  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5861  lt_cv_file_magic_cmd='func_win32_libid'
5862  ;;
5863
5864mingw* | pw32*)
5865  # Base MSYS/MinGW do not provide the 'file' command needed by
5866  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5867  # unless we find 'file', for example because we are cross-compiling.
5868  if ( file / ) >/dev/null 2>&1; then
5869    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5870    lt_cv_file_magic_cmd='func_win32_libid'
5871  else
5872    # Keep this pattern in sync with the one in func_win32_libid.
5873    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5874    lt_cv_file_magic_cmd='$OBJDUMP -f'
5875  fi
5876  ;;
5877
5878cegcc*)
5879  # use the weaker test based on 'objdump'. See mingw*.
5880  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5881  lt_cv_file_magic_cmd='$OBJDUMP -f'
5882  ;;
5883
5884darwin* | rhapsody*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888freebsd* | dragonfly*)
5889  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5890    case $host_cpu in
5891    i*86 )
5892      # Not sure whether the presence of OpenBSD here was a mistake.
5893      # Let's accept both of them until this is cleared up.
5894      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5895      lt_cv_file_magic_cmd=/usr/bin/file
5896      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5897      ;;
5898    esac
5899  else
5900    lt_cv_deplibs_check_method=pass_all
5901  fi
5902  ;;
5903
5904haiku*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908hpux10.20* | hpux11*)
5909  lt_cv_file_magic_cmd=/usr/bin/file
5910  case $host_cpu in
5911  ia64*)
5912    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5913    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914    ;;
5915  hppa*64*)
5916    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]'
5917    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918    ;;
5919  *)
5920    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5921    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5922    ;;
5923  esac
5924  ;;
5925
5926interix[3-9]*)
5927  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5928  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5929  ;;
5930
5931irix5* | irix6* | nonstopux*)
5932  case $LD in
5933  *-32|*"-32 ") libmagic=32-bit;;
5934  *-n32|*"-n32 ") libmagic=N32;;
5935  *-64|*"-64 ") libmagic=64-bit;;
5936  *) libmagic=never-match;;
5937  esac
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940
5941# This must be glibc/ELF.
5942linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5943  lt_cv_deplibs_check_method=pass_all
5944  ;;
5945
5946netbsd* | netbsdelf*-gnu)
5947  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5948    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949  else
5950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5951  fi
5952  ;;
5953
5954newos6*)
5955  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5956  lt_cv_file_magic_cmd=/usr/bin/file
5957  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958  ;;
5959
5960*nto* | *qnx*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964openbsd* | bitrig*)
5965  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5967  else
5968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969  fi
5970  ;;
5971
5972osf3* | osf4* | osf5*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976rdos*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979
5980solaris*)
5981  lt_cv_deplibs_check_method=pass_all
5982  ;;
5983
5984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5985  lt_cv_deplibs_check_method=pass_all
5986  ;;
5987
5988sysv4 | sysv4.3*)
5989  case $host_vendor in
5990  motorola)
5991    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]'
5992    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993    ;;
5994  ncr)
5995    lt_cv_deplibs_check_method=pass_all
5996    ;;
5997  sequent)
5998    lt_cv_file_magic_cmd='/bin/file'
5999    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000    ;;
6001  sni)
6002    lt_cv_file_magic_cmd='/bin/file'
6003    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6004    lt_cv_file_magic_test_file=/lib/libc.so
6005    ;;
6006  siemens)
6007    lt_cv_deplibs_check_method=pass_all
6008    ;;
6009  pc)
6010    lt_cv_deplibs_check_method=pass_all
6011    ;;
6012  esac
6013  ;;
6014
6015tpf*)
6016  lt_cv_deplibs_check_method=pass_all
6017  ;;
6018os2*)
6019  lt_cv_deplibs_check_method=pass_all
6020  ;;
6021esac
6022
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025$as_echo "$lt_cv_deplibs_check_method" >&6; }
6026
6027file_magic_glob=
6028want_nocaseglob=no
6029if test "$build" = "$host"; then
6030  case $host_os in
6031  mingw* | pw32*)
6032    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6033      want_nocaseglob=yes
6034    else
6035      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6036    fi
6037    ;;
6038  esac
6039fi
6040
6041file_magic_cmd=$lt_cv_file_magic_cmd
6042deplibs_check_method=$lt_cv_deplibs_check_method
6043test -z "$deplibs_check_method" && deplibs_check_method=unknown
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_DLLTOOL+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  if test -n "$DLLTOOL"; then
6075  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094DLLTOOL=$ac_cv_prog_DLLTOOL
6095if test -n "$DLLTOOL"; then
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6097$as_echo "$DLLTOOL" >&6; }
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_DLLTOOL"; then
6106  ac_ct_DLLTOOL=$DLLTOOL
6107  # Extract the first word of "dlltool", so it can be a program name with args.
6108set dummy dlltool; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
6111if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  if test -n "$ac_ct_DLLTOOL"; then
6115  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122    for ac_exec_ext in '' $ac_executable_extensions; do
6123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129  done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6135if test -n "$ac_ct_DLLTOOL"; then
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6137$as_echo "$ac_ct_DLLTOOL" >&6; }
6138else
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143  if test "x$ac_ct_DLLTOOL" = x; then
6144    DLLTOOL="false"
6145  else
6146    case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152    DLLTOOL=$ac_ct_DLLTOOL
6153  fi
6154else
6155  DLLTOOL="$ac_cv_prog_DLLTOOL"
6156fi
6157
6158test -z "$DLLTOOL" && DLLTOOL=dlltool
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6170$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6171if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  lt_cv_sharedlib_from_linklib_cmd='unknown'
6175
6176case $host_os in
6177cygwin* | mingw* | pw32* | cegcc*)
6178  # two different shell functions defined in ltmain.sh;
6179  # decide which one to use based on capabilities of $DLLTOOL
6180  case `$DLLTOOL --help 2>&1` in
6181  *--identify-strict*)
6182    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6183    ;;
6184  *)
6185    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6186    ;;
6187  esac
6188  ;;
6189*)
6190  # fallback: assume linklib IS sharedlib
6191  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6192  ;;
6193esac
6194
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6197$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6198sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6199test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6200
6201
6202
6203
6204
6205
6206
6207
6208if test -n "$ac_tool_prefix"; then
6209  for ac_prog in ar
6210  do
6211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214$as_echo_n "checking for $ac_word... " >&6; }
6215if ${ac_cv_prog_AR+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  if test -n "$AR"; then
6219  ac_cv_prog_AR="$AR" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226    for ac_exec_ext in '' $ac_executable_extensions; do
6227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233  done
6234IFS=$as_save_IFS
6235
6236fi
6237fi
6238AR=$ac_cv_prog_AR
6239if test -n "$AR"; then
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6241$as_echo "$AR" >&6; }
6242else
6243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244$as_echo "no" >&6; }
6245fi
6246
6247
6248    test -n "$AR" && break
6249  done
6250fi
6251if test -z "$AR"; then
6252  ac_ct_AR=$AR
6253  for ac_prog in ar
6254do
6255  # Extract the first word of "$ac_prog", so it can be a program name with args.
6256set dummy $ac_prog; ac_word=$2
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258$as_echo_n "checking for $ac_word... " >&6; }
6259if ${ac_cv_prog_ac_ct_AR+:} false; then :
6260  $as_echo_n "(cached) " >&6
6261else
6262  if test -n "$ac_ct_AR"; then
6263  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268  IFS=$as_save_IFS
6269  test -z "$as_dir" && as_dir=.
6270    for ac_exec_ext in '' $ac_executable_extensions; do
6271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272    ac_cv_prog_ac_ct_AR="$ac_prog"
6273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274    break 2
6275  fi
6276done
6277  done
6278IFS=$as_save_IFS
6279
6280fi
6281fi
6282ac_ct_AR=$ac_cv_prog_ac_ct_AR
6283if test -n "$ac_ct_AR"; then
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6285$as_echo "$ac_ct_AR" >&6; }
6286else
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
6289fi
6290
6291
6292  test -n "$ac_ct_AR" && break
6293done
6294
6295  if test "x$ac_ct_AR" = x; then
6296    AR="false"
6297  else
6298    case $cross_compiling:$ac_tool_warned in
6299yes:)
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302ac_tool_warned=yes ;;
6303esac
6304    AR=$ac_ct_AR
6305  fi
6306fi
6307
6308: ${AR=ar}
6309: ${AR_FLAGS=cr}
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6322$as_echo_n "checking for archiver @FILE support... " >&6; }
6323if ${lt_cv_ar_at_file+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326  lt_cv_ar_at_file=no
6327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329
6330int
6331main ()
6332{
6333
6334  ;
6335  return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_compile "$LINENO"; then :
6339  echo conftest.$ac_objext > conftest.lst
6340      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6341      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6342  (eval $lt_ar_try) 2>&5
6343  ac_status=$?
6344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345  test $ac_status = 0; }
6346      if test 0 -eq "$ac_status"; then
6347	# Ensure the archiver fails upon bogus file names.
6348	rm -f conftest.$ac_objext libconftest.a
6349	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6350  (eval $lt_ar_try) 2>&5
6351  ac_status=$?
6352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6353  test $ac_status = 0; }
6354	if test 0 -ne "$ac_status"; then
6355          lt_cv_ar_at_file=@
6356        fi
6357      fi
6358      rm -f conftest.* libconftest.a
6359
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6365$as_echo "$lt_cv_ar_at_file" >&6; }
6366
6367if test no = "$lt_cv_ar_at_file"; then
6368  archiver_list_spec=
6369else
6370  archiver_list_spec=$lt_cv_ar_at_file
6371fi
6372
6373
6374
6375
6376
6377
6378
6379if test -n "$ac_tool_prefix"; then
6380  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6381set dummy ${ac_tool_prefix}strip; ac_word=$2
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383$as_echo_n "checking for $ac_word... " >&6; }
6384if ${ac_cv_prog_STRIP+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387  if test -n "$STRIP"; then
6388  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6389else
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393  IFS=$as_save_IFS
6394  test -z "$as_dir" && as_dir=.
6395    for ac_exec_ext in '' $ac_executable_extensions; do
6396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399    break 2
6400  fi
6401done
6402  done
6403IFS=$as_save_IFS
6404
6405fi
6406fi
6407STRIP=$ac_cv_prog_STRIP
6408if test -n "$STRIP"; then
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6410$as_echo "$STRIP" >&6; }
6411else
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414fi
6415
6416
6417fi
6418if test -z "$ac_cv_prog_STRIP"; then
6419  ac_ct_STRIP=$STRIP
6420  # Extract the first word of "strip", so it can be a program name with args.
6421set dummy strip; ac_word=$2
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423$as_echo_n "checking for $ac_word... " >&6; }
6424if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  if test -n "$ac_ct_STRIP"; then
6428  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6429else
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433  IFS=$as_save_IFS
6434  test -z "$as_dir" && as_dir=.
6435    for ac_exec_ext in '' $ac_executable_extensions; do
6436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437    ac_cv_prog_ac_ct_STRIP="strip"
6438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439    break 2
6440  fi
6441done
6442  done
6443IFS=$as_save_IFS
6444
6445fi
6446fi
6447ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6448if test -n "$ac_ct_STRIP"; then
6449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6450$as_echo "$ac_ct_STRIP" >&6; }
6451else
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453$as_echo "no" >&6; }
6454fi
6455
6456  if test "x$ac_ct_STRIP" = x; then
6457    STRIP=":"
6458  else
6459    case $cross_compiling:$ac_tool_warned in
6460yes:)
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463ac_tool_warned=yes ;;
6464esac
6465    STRIP=$ac_ct_STRIP
6466  fi
6467else
6468  STRIP="$ac_cv_prog_STRIP"
6469fi
6470
6471test -z "$STRIP" && STRIP=:
6472
6473
6474
6475
6476
6477
6478if test -n "$ac_tool_prefix"; then
6479  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6480set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482$as_echo_n "checking for $ac_word... " >&6; }
6483if ${ac_cv_prog_RANLIB+:} false; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486  if test -n "$RANLIB"; then
6487  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494    for ac_exec_ext in '' $ac_executable_extensions; do
6495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501  done
6502IFS=$as_save_IFS
6503
6504fi
6505fi
6506RANLIB=$ac_cv_prog_RANLIB
6507if test -n "$RANLIB"; then
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6509$as_echo "$RANLIB" >&6; }
6510else
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512$as_echo "no" >&6; }
6513fi
6514
6515
6516fi
6517if test -z "$ac_cv_prog_RANLIB"; then
6518  ac_ct_RANLIB=$RANLIB
6519  # Extract the first word of "ranlib", so it can be a program name with args.
6520set dummy ranlib; ac_word=$2
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522$as_echo_n "checking for $ac_word... " >&6; }
6523if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  if test -n "$ac_ct_RANLIB"; then
6527  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532  IFS=$as_save_IFS
6533  test -z "$as_dir" && as_dir=.
6534    for ac_exec_ext in '' $ac_executable_extensions; do
6535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536    ac_cv_prog_ac_ct_RANLIB="ranlib"
6537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538    break 2
6539  fi
6540done
6541  done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6547if test -n "$ac_ct_RANLIB"; then
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6549$as_echo "$ac_ct_RANLIB" >&6; }
6550else
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552$as_echo "no" >&6; }
6553fi
6554
6555  if test "x$ac_ct_RANLIB" = x; then
6556    RANLIB=":"
6557  else
6558    case $cross_compiling:$ac_tool_warned in
6559yes:)
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562ac_tool_warned=yes ;;
6563esac
6564    RANLIB=$ac_ct_RANLIB
6565  fi
6566else
6567  RANLIB="$ac_cv_prog_RANLIB"
6568fi
6569
6570test -z "$RANLIB" && RANLIB=:
6571
6572
6573
6574
6575
6576
6577# Determine commands to create old-style static archives.
6578old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6579old_postinstall_cmds='chmod 644 $oldlib'
6580old_postuninstall_cmds=
6581
6582if test -n "$RANLIB"; then
6583  case $host_os in
6584  bitrig* | openbsd*)
6585    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6586    ;;
6587  *)
6588    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6589    ;;
6590  esac
6591  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6592fi
6593
6594case $host_os in
6595  darwin*)
6596    lock_old_archive_extraction=yes ;;
6597  *)
6598    lock_old_archive_extraction=no ;;
6599esac
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639# If no C compiler was specified, use CC.
6640LTCC=${LTCC-"$CC"}
6641
6642# If no C compiler flags were specified, use CFLAGS.
6643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6644
6645# Allow CC to be a program name with arguments.
6646compiler=$CC
6647
6648
6649# Check for command to grab the raw symbol name followed by C symbol from nm.
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6651$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6652if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655
6656# These are sane defaults that work on at least a few old systems.
6657# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6658
6659# Character class describing NM global symbol codes.
6660symcode='[BCDEGRST]'
6661
6662# Regexp to match symbols that can be accessed directly from C.
6663sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6664
6665# Define system-specific variables.
6666case $host_os in
6667aix*)
6668  symcode='[BCDT]'
6669  ;;
6670cygwin* | mingw* | pw32* | cegcc*)
6671  symcode='[ABCDGISTW]'
6672  ;;
6673hpux*)
6674  if test ia64 = "$host_cpu"; then
6675    symcode='[ABCDEGRST]'
6676  fi
6677  ;;
6678irix* | nonstopux*)
6679  symcode='[BCDEGRST]'
6680  ;;
6681osf*)
6682  symcode='[BCDEGQRST]'
6683  ;;
6684solaris*)
6685  symcode='[BDRT]'
6686  ;;
6687sco3.2v5*)
6688  symcode='[DT]'
6689  ;;
6690sysv4.2uw2*)
6691  symcode='[DT]'
6692  ;;
6693sysv5* | sco5v6* | unixware* | OpenUNIX*)
6694  symcode='[ABDT]'
6695  ;;
6696sysv4)
6697  symcode='[DFNSTU]'
6698  ;;
6699esac
6700
6701# If we're using GNU nm, then use its standard symbol codes.
6702case `$NM -V 2>&1` in
6703*GNU* | *'with BFD'*)
6704  symcode='[ABCDGIRSTW]' ;;
6705esac
6706
6707if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6708  # Gets list of data symbols to import.
6709  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6710  # Adjust the below global symbol transforms to fixup imported variables.
6711  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6712  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6713  lt_c_name_lib_hook="\
6714  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6715  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6716else
6717  # Disable hooks by default.
6718  lt_cv_sys_global_symbol_to_import=
6719  lt_cdecl_hook=
6720  lt_c_name_hook=
6721  lt_c_name_lib_hook=
6722fi
6723
6724# Transform an extracted symbol line into a proper C declaration.
6725# Some systems (esp. on ia64) link data and code symbols differently,
6726# so use this general approach.
6727lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6728$lt_cdecl_hook\
6729" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6730" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6731
6732# Transform an extracted symbol line into symbol name and symbol address
6733lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6734$lt_c_name_hook\
6735" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6736" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6737
6738# Transform an extracted symbol line into symbol name with lib prefix and
6739# symbol address.
6740lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6741$lt_c_name_lib_hook\
6742" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6743" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6744" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6745
6746# Handle CRLF in mingw tool chain
6747opt_cr=
6748case $build_os in
6749mingw*)
6750  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6751  ;;
6752esac
6753
6754# Try without a prefix underscore, then with it.
6755for ac_symprfx in "" "_"; do
6756
6757  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6758  symxfrm="\\1 $ac_symprfx\\2 \\2"
6759
6760  # Write the raw and C identifiers.
6761  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6762    # Fake it for dumpbin and say T for any non-static function,
6763    # D for any global variable and I for any imported variable.
6764    # Also find C++ and __fastcall symbols from MSVC++,
6765    # which start with @ or ?.
6766    lt_cv_sys_global_symbol_pipe="$AWK '"\
6767"     {last_section=section; section=\$ 3};"\
6768"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6769"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6770"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6771"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6772"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6773"     \$ 0!~/External *\|/{next};"\
6774"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6775"     {if(hide[section]) next};"\
6776"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6777"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6778"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6779"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6780"     ' prfx=^$ac_symprfx"
6781  else
6782    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6783  fi
6784  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6785
6786  # Check to see that the pipe works correctly.
6787  pipe_works=no
6788
6789  rm -f conftest*
6790  cat > conftest.$ac_ext <<_LT_EOF
6791#ifdef __cplusplus
6792extern "C" {
6793#endif
6794char nm_test_var;
6795void nm_test_func(void);
6796void nm_test_func(void){}
6797#ifdef __cplusplus
6798}
6799#endif
6800int main(){nm_test_var='a';nm_test_func();return(0);}
6801_LT_EOF
6802
6803  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804  (eval $ac_compile) 2>&5
6805  ac_status=$?
6806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807  test $ac_status = 0; }; then
6808    # Now try to grab the symbols.
6809    nlist=conftest.nm
6810    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6811    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6812      # Try sorting and uniquifying the output.
6813      if sort "$nlist" | uniq > "$nlist"T; then
6814	mv -f "$nlist"T "$nlist"
6815      else
6816	rm -f "$nlist"T
6817      fi
6818
6819      # Make sure that we snagged all the symbols we need.
6820      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6821	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6822	  cat <<_LT_EOF > conftest.$ac_ext
6823/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6824#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6825/* DATA imports from DLLs on WIN32 can't be const, because runtime
6826   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6827# define LT_DLSYM_CONST
6828#elif defined __osf__
6829/* This system does not cope well with relocations in const data.  */
6830# define LT_DLSYM_CONST
6831#else
6832# define LT_DLSYM_CONST const
6833#endif
6834
6835#ifdef __cplusplus
6836extern "C" {
6837#endif
6838
6839_LT_EOF
6840	  # Now generate the symbol file.
6841	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6842
6843	  cat <<_LT_EOF >> conftest.$ac_ext
6844
6845/* The mapping between symbol names and symbols.  */
6846LT_DLSYM_CONST struct {
6847  const char *name;
6848  void       *address;
6849}
6850lt__PROGRAM__LTX_preloaded_symbols[] =
6851{
6852  { "@PROGRAM@", (void *) 0 },
6853_LT_EOF
6854	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6855	  cat <<\_LT_EOF >> conftest.$ac_ext
6856  {0, (void *) 0}
6857};
6858
6859/* This works around a problem in FreeBSD linker */
6860#ifdef FREEBSD_WORKAROUND
6861static const void *lt_preloaded_setup() {
6862  return lt__PROGRAM__LTX_preloaded_symbols;
6863}
6864#endif
6865
6866#ifdef __cplusplus
6867}
6868#endif
6869_LT_EOF
6870	  # Now try linking the two files.
6871	  mv conftest.$ac_objext conftstm.$ac_objext
6872	  lt_globsym_save_LIBS=$LIBS
6873	  lt_globsym_save_CFLAGS=$CFLAGS
6874	  LIBS=conftstm.$ac_objext
6875	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6876	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6877  (eval $ac_link) 2>&5
6878  ac_status=$?
6879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6881	    pipe_works=yes
6882	  fi
6883	  LIBS=$lt_globsym_save_LIBS
6884	  CFLAGS=$lt_globsym_save_CFLAGS
6885	else
6886	  echo "cannot find nm_test_func in $nlist" >&5
6887	fi
6888      else
6889	echo "cannot find nm_test_var in $nlist" >&5
6890      fi
6891    else
6892      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6893    fi
6894  else
6895    echo "$progname: failed program was:" >&5
6896    cat conftest.$ac_ext >&5
6897  fi
6898  rm -rf conftest* conftst*
6899
6900  # Do not use the global_symbol_pipe unless it works.
6901  if test yes = "$pipe_works"; then
6902    break
6903  else
6904    lt_cv_sys_global_symbol_pipe=
6905  fi
6906done
6907
6908fi
6909
6910if test -z "$lt_cv_sys_global_symbol_pipe"; then
6911  lt_cv_sys_global_symbol_to_cdecl=
6912fi
6913if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6915$as_echo "failed" >&6; }
6916else
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6918$as_echo "ok" >&6; }
6919fi
6920
6921# Response file support.
6922if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6923  nm_file_list_spec='@'
6924elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6925  nm_file_list_spec='@'
6926fi
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6965$as_echo_n "checking for sysroot... " >&6; }
6966
6967# Check whether --with-sysroot was given.
6968if test "${with_sysroot+set}" = set; then :
6969  withval=$with_sysroot;
6970else
6971  with_sysroot=no
6972fi
6973
6974
6975lt_sysroot=
6976case $with_sysroot in #(
6977 yes)
6978   if test yes = "$GCC"; then
6979     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6980   fi
6981   ;; #(
6982 /*)
6983   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6984   ;; #(
6985 no|'')
6986   ;; #(
6987 *)
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6989$as_echo "$with_sysroot" >&6; }
6990   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6991   ;;
6992esac
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6995$as_echo "${lt_sysroot:-no}" >&6; }
6996
6997
6998
6999
7000
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7002$as_echo_n "checking for a working dd... " >&6; }
7003if ${ac_cv_path_lt_DD+:} false; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006  printf 0123456789abcdef0123456789abcdef >conftest.i
7007cat conftest.i conftest.i >conftest2.i
7008: ${lt_DD:=$DD}
7009if test -z "$lt_DD"; then
7010  ac_path_lt_DD_found=false
7011  # Loop through the user's path and test for each of PROGNAME-LIST
7012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015  IFS=$as_save_IFS
7016  test -z "$as_dir" && as_dir=.
7017    for ac_prog in dd; do
7018    for ac_exec_ext in '' $ac_executable_extensions; do
7019      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7020      as_fn_executable_p "$ac_path_lt_DD" || continue
7021if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7022  cmp -s conftest.i conftest.out \
7023  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7024fi
7025      $ac_path_lt_DD_found && break 3
7026    done
7027  done
7028  done
7029IFS=$as_save_IFS
7030  if test -z "$ac_cv_path_lt_DD"; then
7031    :
7032  fi
7033else
7034  ac_cv_path_lt_DD=$lt_DD
7035fi
7036
7037rm -f conftest.i conftest2.i conftest.out
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7040$as_echo "$ac_cv_path_lt_DD" >&6; }
7041
7042
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7044$as_echo_n "checking how to truncate binary pipes... " >&6; }
7045if ${lt_cv_truncate_bin+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  printf 0123456789abcdef0123456789abcdef >conftest.i
7049cat conftest.i conftest.i >conftest2.i
7050lt_cv_truncate_bin=
7051if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7052  cmp -s conftest.i conftest.out \
7053  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7054fi
7055rm -f conftest.i conftest2.i conftest.out
7056test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7057fi
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7059$as_echo "$lt_cv_truncate_bin" >&6; }
7060
7061
7062
7063
7064
7065
7066
7067# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7068func_cc_basename ()
7069{
7070    for cc_temp in $*""; do
7071      case $cc_temp in
7072        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7073        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7074        \-*) ;;
7075        *) break;;
7076      esac
7077    done
7078    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7079}
7080
7081# Check whether --enable-libtool-lock was given.
7082if test "${enable_libtool_lock+set}" = set; then :
7083  enableval=$enable_libtool_lock;
7084fi
7085
7086test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7087
7088# Some flags need to be propagated to the compiler or linker for good
7089# libtool support.
7090case $host in
7091ia64-*-hpux*)
7092  # Find out what ABI is being produced by ac_compile, and set mode
7093  # options accordingly.
7094  echo 'int i;' > conftest.$ac_ext
7095  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7096  (eval $ac_compile) 2>&5
7097  ac_status=$?
7098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099  test $ac_status = 0; }; then
7100    case `/usr/bin/file conftest.$ac_objext` in
7101      *ELF-32*)
7102	HPUX_IA64_MODE=32
7103	;;
7104      *ELF-64*)
7105	HPUX_IA64_MODE=64
7106	;;
7107    esac
7108  fi
7109  rm -rf conftest*
7110  ;;
7111*-*-irix6*)
7112  # Find out what ABI is being produced by ac_compile, and set linker
7113  # options accordingly.
7114  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7115  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7116  (eval $ac_compile) 2>&5
7117  ac_status=$?
7118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119  test $ac_status = 0; }; then
7120    if test yes = "$lt_cv_prog_gnu_ld"; then
7121      case `/usr/bin/file conftest.$ac_objext` in
7122	*32-bit*)
7123	  LD="${LD-ld} -melf32bsmip"
7124	  ;;
7125	*N32*)
7126	  LD="${LD-ld} -melf32bmipn32"
7127	  ;;
7128	*64-bit*)
7129	  LD="${LD-ld} -melf64bmip"
7130	;;
7131      esac
7132    else
7133      case `/usr/bin/file conftest.$ac_objext` in
7134	*32-bit*)
7135	  LD="${LD-ld} -32"
7136	  ;;
7137	*N32*)
7138	  LD="${LD-ld} -n32"
7139	  ;;
7140	*64-bit*)
7141	  LD="${LD-ld} -64"
7142	  ;;
7143      esac
7144    fi
7145  fi
7146  rm -rf conftest*
7147  ;;
7148
7149mips64*-*linux*)
7150  # Find out what ABI is being produced by ac_compile, and set linker
7151  # options accordingly.
7152  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7153  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154  (eval $ac_compile) 2>&5
7155  ac_status=$?
7156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157  test $ac_status = 0; }; then
7158    emul=elf
7159    case `/usr/bin/file conftest.$ac_objext` in
7160      *32-bit*)
7161	emul="${emul}32"
7162	;;
7163      *64-bit*)
7164	emul="${emul}64"
7165	;;
7166    esac
7167    case `/usr/bin/file conftest.$ac_objext` in
7168      *MSB*)
7169	emul="${emul}btsmip"
7170	;;
7171      *LSB*)
7172	emul="${emul}ltsmip"
7173	;;
7174    esac
7175    case `/usr/bin/file conftest.$ac_objext` in
7176      *N32*)
7177	emul="${emul}n32"
7178	;;
7179    esac
7180    LD="${LD-ld} -m $emul"
7181  fi
7182  rm -rf conftest*
7183  ;;
7184
7185x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7186s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7187  # Find out what ABI is being produced by ac_compile, and set linker
7188  # options accordingly.  Note that the listed cases only cover the
7189  # situations where additional linker options are needed (such as when
7190  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7191  # vice versa); the common cases where no linker options are needed do
7192  # not appear in the list.
7193  echo 'int i;' > conftest.$ac_ext
7194  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7195  (eval $ac_compile) 2>&5
7196  ac_status=$?
7197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198  test $ac_status = 0; }; then
7199    case `/usr/bin/file conftest.o` in
7200      *32-bit*)
7201	case $host in
7202	  x86_64-*kfreebsd*-gnu)
7203	    LD="${LD-ld} -m elf_i386_fbsd"
7204	    ;;
7205	  x86_64-*linux*)
7206	    case `/usr/bin/file conftest.o` in
7207	      *x86-64*)
7208		LD="${LD-ld} -m elf32_x86_64"
7209		;;
7210	      *)
7211		LD="${LD-ld} -m elf_i386"
7212		;;
7213	    esac
7214	    ;;
7215	  powerpc64le-*linux*)
7216	    LD="${LD-ld} -m elf32lppclinux"
7217	    ;;
7218	  powerpc64-*linux*)
7219	    LD="${LD-ld} -m elf32ppclinux"
7220	    ;;
7221	  s390x-*linux*)
7222	    LD="${LD-ld} -m elf_s390"
7223	    ;;
7224	  sparc64-*linux*)
7225	    LD="${LD-ld} -m elf32_sparc"
7226	    ;;
7227	esac
7228	;;
7229      *64-bit*)
7230	case $host in
7231	  x86_64-*kfreebsd*-gnu)
7232	    LD="${LD-ld} -m elf_x86_64_fbsd"
7233	    ;;
7234	  x86_64-*linux*)
7235	    LD="${LD-ld} -m elf_x86_64"
7236	    ;;
7237	  powerpcle-*linux*)
7238	    LD="${LD-ld} -m elf64lppc"
7239	    ;;
7240	  powerpc-*linux*)
7241	    LD="${LD-ld} -m elf64ppc"
7242	    ;;
7243	  s390*-*linux*|s390*-*tpf*)
7244	    LD="${LD-ld} -m elf64_s390"
7245	    ;;
7246	  sparc*-*linux*)
7247	    LD="${LD-ld} -m elf64_sparc"
7248	    ;;
7249	esac
7250	;;
7251    esac
7252  fi
7253  rm -rf conftest*
7254  ;;
7255
7256*-*-sco3.2v5*)
7257  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7258  SAVE_CFLAGS=$CFLAGS
7259  CFLAGS="$CFLAGS -belf"
7260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7261$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7262if ${lt_cv_cc_needs_belf+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  ac_ext=c
7266ac_cpp='$CPP $CPPFLAGS'
7267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270
7271     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273
7274int
7275main ()
7276{
7277
7278  ;
7279  return 0;
7280}
7281_ACEOF
7282if ac_fn_c_try_link "$LINENO"; then :
7283  lt_cv_cc_needs_belf=yes
7284else
7285  lt_cv_cc_needs_belf=no
7286fi
7287rm -f core conftest.err conftest.$ac_objext \
7288    conftest$ac_exeext conftest.$ac_ext
7289     ac_ext=c
7290ac_cpp='$CPP $CPPFLAGS'
7291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293ac_compiler_gnu=$ac_cv_c_compiler_gnu
7294
7295fi
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7297$as_echo "$lt_cv_cc_needs_belf" >&6; }
7298  if test yes != "$lt_cv_cc_needs_belf"; then
7299    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7300    CFLAGS=$SAVE_CFLAGS
7301  fi
7302  ;;
7303*-*solaris*)
7304  # Find out what ABI is being produced by ac_compile, and set linker
7305  # options accordingly.
7306  echo 'int i;' > conftest.$ac_ext
7307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7308  (eval $ac_compile) 2>&5
7309  ac_status=$?
7310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311  test $ac_status = 0; }; then
7312    case `/usr/bin/file conftest.o` in
7313    *64-bit*)
7314      case $lt_cv_prog_gnu_ld in
7315      yes*)
7316        case $host in
7317        i?86-*-solaris*|x86_64-*-solaris*)
7318          LD="${LD-ld} -m elf_x86_64"
7319          ;;
7320        sparc*-*-solaris*)
7321          LD="${LD-ld} -m elf64_sparc"
7322          ;;
7323        esac
7324        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7325        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7326          LD=${LD-ld}_sol2
7327        fi
7328        ;;
7329      *)
7330	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7331	  LD="${LD-ld} -64"
7332	fi
7333	;;
7334      esac
7335      ;;
7336    esac
7337  fi
7338  rm -rf conftest*
7339  ;;
7340esac
7341
7342need_locks=$enable_libtool_lock
7343
7344if test -n "$ac_tool_prefix"; then
7345  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7346set dummy ${ac_tool_prefix}mt; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  if test -n "$MANIFEST_TOOL"; then
7353  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360    for ac_exec_ext in '' $ac_executable_extensions; do
7361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367  done
7368IFS=$as_save_IFS
7369
7370fi
7371fi
7372MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7373if test -n "$MANIFEST_TOOL"; then
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7375$as_echo "$MANIFEST_TOOL" >&6; }
7376else
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381
7382fi
7383if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7384  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7385  # Extract the first word of "mt", so it can be a program name with args.
7386set dummy mt; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$ac_ct_MANIFEST_TOOL"; then
7393  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7413if test -n "$ac_ct_MANIFEST_TOOL"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7415$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7422    MANIFEST_TOOL=":"
7423  else
7424    case $cross_compiling:$ac_tool_warned in
7425yes:)
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428ac_tool_warned=yes ;;
7429esac
7430    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7431  fi
7432else
7433  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7434fi
7435
7436test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7438$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7439if ${lt_cv_path_mainfest_tool+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442  lt_cv_path_mainfest_tool=no
7443  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7444  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7445  cat conftest.err >&5
7446  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7447    lt_cv_path_mainfest_tool=yes
7448  fi
7449  rm -f conftest*
7450fi
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7452$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7453if test yes != "$lt_cv_path_mainfest_tool"; then
7454  MANIFEST_TOOL=:
7455fi
7456
7457
7458
7459
7460
7461
7462  case $host_os in
7463    rhapsody* | darwin*)
7464    if test -n "$ac_tool_prefix"; then
7465  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  if test -n "$DSYMUTIL"; then
7473  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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
7492DSYMUTIL=$ac_cv_prog_DSYMUTIL
7493if test -n "$DSYMUTIL"; then
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7495$as_echo "$DSYMUTIL" >&6; }
7496else
7497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
7499fi
7500
7501
7502fi
7503if test -z "$ac_cv_prog_DSYMUTIL"; then
7504  ac_ct_DSYMUTIL=$DSYMUTIL
7505  # Extract the first word of "dsymutil", so it can be a program name with args.
7506set dummy dsymutil; ac_word=$2
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7510  $as_echo_n "(cached) " >&6
7511else
7512  if test -n "$ac_ct_DSYMUTIL"; then
7513  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518  IFS=$as_save_IFS
7519  test -z "$as_dir" && as_dir=.
7520    for ac_exec_ext in '' $ac_executable_extensions; do
7521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524    break 2
7525  fi
7526done
7527  done
7528IFS=$as_save_IFS
7529
7530fi
7531fi
7532ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7533if test -n "$ac_ct_DSYMUTIL"; then
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7535$as_echo "$ac_ct_DSYMUTIL" >&6; }
7536else
7537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
7539fi
7540
7541  if test "x$ac_ct_DSYMUTIL" = x; then
7542    DSYMUTIL=":"
7543  else
7544    case $cross_compiling:$ac_tool_warned in
7545yes:)
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548ac_tool_warned=yes ;;
7549esac
7550    DSYMUTIL=$ac_ct_DSYMUTIL
7551  fi
7552else
7553  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7554fi
7555
7556    if test -n "$ac_tool_prefix"; then
7557  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7558set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560$as_echo_n "checking for $ac_word... " >&6; }
7561if ${ac_cv_prog_NMEDIT+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  if test -n "$NMEDIT"; then
7565  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7566else
7567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568for as_dir in $PATH
7569do
7570  IFS=$as_save_IFS
7571  test -z "$as_dir" && as_dir=.
7572    for ac_exec_ext in '' $ac_executable_extensions; do
7573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576    break 2
7577  fi
7578done
7579  done
7580IFS=$as_save_IFS
7581
7582fi
7583fi
7584NMEDIT=$ac_cv_prog_NMEDIT
7585if test -n "$NMEDIT"; then
7586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7587$as_echo "$NMEDIT" >&6; }
7588else
7589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590$as_echo "no" >&6; }
7591fi
7592
7593
7594fi
7595if test -z "$ac_cv_prog_NMEDIT"; then
7596  ac_ct_NMEDIT=$NMEDIT
7597  # Extract the first word of "nmedit", so it can be a program name with args.
7598set dummy nmedit; ac_word=$2
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600$as_echo_n "checking for $ac_word... " >&6; }
7601if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  if test -n "$ac_ct_NMEDIT"; then
7605  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7606else
7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608for as_dir in $PATH
7609do
7610  IFS=$as_save_IFS
7611  test -z "$as_dir" && as_dir=.
7612    for ac_exec_ext in '' $ac_executable_extensions; do
7613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616    break 2
7617  fi
7618done
7619  done
7620IFS=$as_save_IFS
7621
7622fi
7623fi
7624ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7625if test -n "$ac_ct_NMEDIT"; then
7626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7627$as_echo "$ac_ct_NMEDIT" >&6; }
7628else
7629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
7631fi
7632
7633  if test "x$ac_ct_NMEDIT" = x; then
7634    NMEDIT=":"
7635  else
7636    case $cross_compiling:$ac_tool_warned in
7637yes:)
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640ac_tool_warned=yes ;;
7641esac
7642    NMEDIT=$ac_ct_NMEDIT
7643  fi
7644else
7645  NMEDIT="$ac_cv_prog_NMEDIT"
7646fi
7647
7648    if test -n "$ac_tool_prefix"; then
7649  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7650set dummy ${ac_tool_prefix}lipo; ac_word=$2
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if ${ac_cv_prog_LIPO+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  if test -n "$LIPO"; then
7657  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662  IFS=$as_save_IFS
7663  test -z "$as_dir" && as_dir=.
7664    for ac_exec_ext in '' $ac_executable_extensions; do
7665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668    break 2
7669  fi
7670done
7671  done
7672IFS=$as_save_IFS
7673
7674fi
7675fi
7676LIPO=$ac_cv_prog_LIPO
7677if test -n "$LIPO"; then
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7679$as_echo "$LIPO" >&6; }
7680else
7681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
7683fi
7684
7685
7686fi
7687if test -z "$ac_cv_prog_LIPO"; then
7688  ac_ct_LIPO=$LIPO
7689  # Extract the first word of "lipo", so it can be a program name with args.
7690set dummy lipo; 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_ac_ct_LIPO+:} false; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  if test -n "$ac_ct_LIPO"; then
7697  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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
7716ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7717if test -n "$ac_ct_LIPO"; then
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7719$as_echo "$ac_ct_LIPO" >&6; }
7720else
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
7724
7725  if test "x$ac_ct_LIPO" = x; then
7726    LIPO=":"
7727  else
7728    case $cross_compiling:$ac_tool_warned in
7729yes:)
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7732ac_tool_warned=yes ;;
7733esac
7734    LIPO=$ac_ct_LIPO
7735  fi
7736else
7737  LIPO="$ac_cv_prog_LIPO"
7738fi
7739
7740    if test -n "$ac_tool_prefix"; then
7741  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7742set dummy ${ac_tool_prefix}otool; ac_word=$2
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744$as_echo_n "checking for $ac_word... " >&6; }
7745if ${ac_cv_prog_OTOOL+:} false; then :
7746  $as_echo_n "(cached) " >&6
7747else
7748  if test -n "$OTOOL"; then
7749  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754  IFS=$as_save_IFS
7755  test -z "$as_dir" && as_dir=.
7756    for ac_exec_ext in '' $ac_executable_extensions; do
7757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760    break 2
7761  fi
7762done
7763  done
7764IFS=$as_save_IFS
7765
7766fi
7767fi
7768OTOOL=$ac_cv_prog_OTOOL
7769if test -n "$OTOOL"; then
7770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7771$as_echo "$OTOOL" >&6; }
7772else
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774$as_echo "no" >&6; }
7775fi
7776
7777
7778fi
7779if test -z "$ac_cv_prog_OTOOL"; then
7780  ac_ct_OTOOL=$OTOOL
7781  # Extract the first word of "otool", so it can be a program name with args.
7782set dummy otool; ac_word=$2
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784$as_echo_n "checking for $ac_word... " >&6; }
7785if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  if test -n "$ac_ct_OTOOL"; then
7789  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7790else
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794  IFS=$as_save_IFS
7795  test -z "$as_dir" && as_dir=.
7796    for ac_exec_ext in '' $ac_executable_extensions; do
7797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798    ac_cv_prog_ac_ct_OTOOL="otool"
7799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800    break 2
7801  fi
7802done
7803  done
7804IFS=$as_save_IFS
7805
7806fi
7807fi
7808ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7809if test -n "$ac_ct_OTOOL"; then
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7811$as_echo "$ac_ct_OTOOL" >&6; }
7812else
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
7816
7817  if test "x$ac_ct_OTOOL" = x; then
7818    OTOOL=":"
7819  else
7820    case $cross_compiling:$ac_tool_warned in
7821yes:)
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7824ac_tool_warned=yes ;;
7825esac
7826    OTOOL=$ac_ct_OTOOL
7827  fi
7828else
7829  OTOOL="$ac_cv_prog_OTOOL"
7830fi
7831
7832    if test -n "$ac_tool_prefix"; then
7833  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7834set dummy ${ac_tool_prefix}otool64; ac_word=$2
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if ${ac_cv_prog_OTOOL64+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  if test -n "$OTOOL64"; then
7841  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846  IFS=$as_save_IFS
7847  test -z "$as_dir" && as_dir=.
7848    for ac_exec_ext in '' $ac_executable_extensions; do
7849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855  done
7856IFS=$as_save_IFS
7857
7858fi
7859fi
7860OTOOL64=$ac_cv_prog_OTOOL64
7861if test -n "$OTOOL64"; then
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7863$as_echo "$OTOOL64" >&6; }
7864else
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
7867fi
7868
7869
7870fi
7871if test -z "$ac_cv_prog_OTOOL64"; then
7872  ac_ct_OTOOL64=$OTOOL64
7873  # Extract the first word of "otool64", so it can be a program name with args.
7874set dummy otool64; ac_word=$2
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  if test -n "$ac_ct_OTOOL64"; then
7881  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7882else
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886  IFS=$as_save_IFS
7887  test -z "$as_dir" && as_dir=.
7888    for ac_exec_ext in '' $ac_executable_extensions; do
7889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890    ac_cv_prog_ac_ct_OTOOL64="otool64"
7891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892    break 2
7893  fi
7894done
7895  done
7896IFS=$as_save_IFS
7897
7898fi
7899fi
7900ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7901if test -n "$ac_ct_OTOOL64"; then
7902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7903$as_echo "$ac_ct_OTOOL64" >&6; }
7904else
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
7907fi
7908
7909  if test "x$ac_ct_OTOOL64" = x; then
7910    OTOOL64=":"
7911  else
7912    case $cross_compiling:$ac_tool_warned in
7913yes:)
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7916ac_tool_warned=yes ;;
7917esac
7918    OTOOL64=$ac_ct_OTOOL64
7919  fi
7920else
7921  OTOOL64="$ac_cv_prog_OTOOL64"
7922fi
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7951$as_echo_n "checking for -single_module linker flag... " >&6; }
7952if ${lt_cv_apple_cc_single_mod+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  lt_cv_apple_cc_single_mod=no
7956      if test -z "$LT_MULTI_MODULE"; then
7957	# By default we will add the -single_module flag. You can override
7958	# by either setting the environment variable LT_MULTI_MODULE
7959	# non-empty at configure time, or by adding -multi_module to the
7960	# link flags.
7961	rm -rf libconftest.dylib*
7962	echo "int foo(void){return 1;}" > conftest.c
7963	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7964-dynamiclib -Wl,-single_module conftest.c" >&5
7965	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7966	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7967        _lt_result=$?
7968	# If there is a non-empty error log, and "single_module"
7969	# appears in it, assume the flag caused a linker warning
7970        if test -s conftest.err && $GREP single_module conftest.err; then
7971	  cat conftest.err >&5
7972	# Otherwise, if the output was created with a 0 exit code from
7973	# the compiler, it worked.
7974	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7975	  lt_cv_apple_cc_single_mod=yes
7976	else
7977	  cat conftest.err >&5
7978	fi
7979	rm -rf libconftest.dylib*
7980	rm -f conftest.*
7981      fi
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7984$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7985
7986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7987$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7988if ${lt_cv_ld_exported_symbols_list+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  lt_cv_ld_exported_symbols_list=no
7992      save_LDFLAGS=$LDFLAGS
7993      echo "_main" > conftest.sym
7994      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h.  */
7997
7998int
7999main ()
8000{
8001
8002  ;
8003  return 0;
8004}
8005_ACEOF
8006if ac_fn_c_try_link "$LINENO"; then :
8007  lt_cv_ld_exported_symbols_list=yes
8008else
8009  lt_cv_ld_exported_symbols_list=no
8010fi
8011rm -f core conftest.err conftest.$ac_objext \
8012    conftest$ac_exeext conftest.$ac_ext
8013	LDFLAGS=$save_LDFLAGS
8014
8015fi
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8017$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8018
8019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8020$as_echo_n "checking for -force_load linker flag... " >&6; }
8021if ${lt_cv_ld_force_load+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  lt_cv_ld_force_load=no
8025      cat > conftest.c << _LT_EOF
8026int forced_loaded() { return 2;}
8027_LT_EOF
8028      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8029      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8030      echo "$AR cr libconftest.a conftest.o" >&5
8031      $AR cr libconftest.a conftest.o 2>&5
8032      echo "$RANLIB libconftest.a" >&5
8033      $RANLIB libconftest.a 2>&5
8034      cat > conftest.c << _LT_EOF
8035int main() { return 0;}
8036_LT_EOF
8037      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8038      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8039      _lt_result=$?
8040      if test -s conftest.err && $GREP force_load conftest.err; then
8041	cat conftest.err >&5
8042      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8043	lt_cv_ld_force_load=yes
8044      else
8045	cat conftest.err >&5
8046      fi
8047        rm -f conftest.err libconftest.a conftest conftest.c
8048        rm -rf conftest.dSYM
8049
8050fi
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8052$as_echo "$lt_cv_ld_force_load" >&6; }
8053    case $host_os in
8054    rhapsody* | darwin1.[012])
8055      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8056    darwin1.*)
8057      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8058    darwin*) # darwin 5.x on
8059      # if running on 10.5 or later, the deployment target defaults
8060      # to the OS version, if on x86, and 10.4, the deployment
8061      # target defaults to 10.4. Don't you love it?
8062      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8063	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8064	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8065	10.[012][,.]*)
8066	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8067	10.*)
8068	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8069      esac
8070    ;;
8071  esac
8072    if test yes = "$lt_cv_apple_cc_single_mod"; then
8073      _lt_dar_single_mod='$single_module'
8074    fi
8075    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8076      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8077    else
8078      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8079    fi
8080    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8081      _lt_dsymutil='~$DSYMUTIL $lib || :'
8082    else
8083      _lt_dsymutil=
8084    fi
8085    ;;
8086  esac
8087
8088# func_munge_path_list VARIABLE PATH
8089# -----------------------------------
8090# VARIABLE is name of variable containing _space_ separated list of
8091# directories to be munged by the contents of PATH, which is string
8092# having a format:
8093# "DIR[:DIR]:"
8094#       string "DIR[ DIR]" will be prepended to VARIABLE
8095# ":DIR[:DIR]"
8096#       string "DIR[ DIR]" will be appended to VARIABLE
8097# "DIRP[:DIRP]::[DIRA:]DIRA"
8098#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8099#       "DIRA[ DIRA]" will be appended to VARIABLE
8100# "DIR[:DIR]"
8101#       VARIABLE will be replaced by "DIR[ DIR]"
8102func_munge_path_list ()
8103{
8104    case x$2 in
8105    x)
8106        ;;
8107    *:)
8108        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8109        ;;
8110    x:*)
8111        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8112        ;;
8113    *::*)
8114        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8115        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8116        ;;
8117    *)
8118        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8119        ;;
8120    esac
8121}
8122
8123ac_ext=c
8124ac_cpp='$CPP $CPPFLAGS'
8125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8129$as_echo_n "checking how to run the C preprocessor... " >&6; }
8130# On Suns, sometimes $CPP names a directory.
8131if test -n "$CPP" && test -d "$CPP"; then
8132  CPP=
8133fi
8134if test -z "$CPP"; then
8135  if ${ac_cv_prog_CPP+:} false; then :
8136  $as_echo_n "(cached) " >&6
8137else
8138      # Double quotes because CPP needs to be expanded
8139    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8140    do
8141      ac_preproc_ok=false
8142for ac_c_preproc_warn_flag in '' yes
8143do
8144  # Use a header file that comes with gcc, so configuring glibc
8145  # with a fresh cross-compiler works.
8146  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8147  # <limits.h> exists even on freestanding compilers.
8148  # On the NeXT, cc -E runs the code through the compiler's parser,
8149  # not just through cpp. "Syntax error" is here to catch this case.
8150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152#ifdef __STDC__
8153# include <limits.h>
8154#else
8155# include <assert.h>
8156#endif
8157		     Syntax error
8158_ACEOF
8159if ac_fn_c_try_cpp "$LINENO"; then :
8160
8161else
8162  # Broken: fails on valid input.
8163continue
8164fi
8165rm -f conftest.err conftest.i conftest.$ac_ext
8166
8167  # OK, works on sane cases.  Now check whether nonexistent headers
8168  # can be detected and how.
8169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171#include <ac_nonexistent.h>
8172_ACEOF
8173if ac_fn_c_try_cpp "$LINENO"; then :
8174  # Broken: success on invalid input.
8175continue
8176else
8177  # Passes both tests.
8178ac_preproc_ok=:
8179break
8180fi
8181rm -f conftest.err conftest.i conftest.$ac_ext
8182
8183done
8184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8185rm -f conftest.i conftest.err conftest.$ac_ext
8186if $ac_preproc_ok; then :
8187  break
8188fi
8189
8190    done
8191    ac_cv_prog_CPP=$CPP
8192
8193fi
8194  CPP=$ac_cv_prog_CPP
8195else
8196  ac_cv_prog_CPP=$CPP
8197fi
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8199$as_echo "$CPP" >&6; }
8200ac_preproc_ok=false
8201for ac_c_preproc_warn_flag in '' yes
8202do
8203  # Use a header file that comes with gcc, so configuring glibc
8204  # with a fresh cross-compiler works.
8205  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206  # <limits.h> exists even on freestanding compilers.
8207  # On the NeXT, cc -E runs the code through the compiler's parser,
8208  # not just through cpp. "Syntax error" is here to catch this case.
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211#ifdef __STDC__
8212# include <limits.h>
8213#else
8214# include <assert.h>
8215#endif
8216		     Syntax error
8217_ACEOF
8218if ac_fn_c_try_cpp "$LINENO"; then :
8219
8220else
8221  # Broken: fails on valid input.
8222continue
8223fi
8224rm -f conftest.err conftest.i conftest.$ac_ext
8225
8226  # OK, works on sane cases.  Now check whether nonexistent headers
8227  # can be detected and how.
8228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h.  */
8230#include <ac_nonexistent.h>
8231_ACEOF
8232if ac_fn_c_try_cpp "$LINENO"; then :
8233  # Broken: success on invalid input.
8234continue
8235else
8236  # Passes both tests.
8237ac_preproc_ok=:
8238break
8239fi
8240rm -f conftest.err conftest.i conftest.$ac_ext
8241
8242done
8243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8244rm -f conftest.i conftest.err conftest.$ac_ext
8245if $ac_preproc_ok; then :
8246
8247else
8248  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8250as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8251See \`config.log' for more details" "$LINENO" 5; }
8252fi
8253
8254ac_ext=c
8255ac_cpp='$CPP $CPPFLAGS'
8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8262$as_echo_n "checking for ANSI C header files... " >&6; }
8263if ${ac_cv_header_stdc+:} false; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h.  */
8268#include <stdlib.h>
8269#include <stdarg.h>
8270#include <string.h>
8271#include <float.h>
8272
8273int
8274main ()
8275{
8276
8277  ;
8278  return 0;
8279}
8280_ACEOF
8281if ac_fn_c_try_compile "$LINENO"; then :
8282  ac_cv_header_stdc=yes
8283else
8284  ac_cv_header_stdc=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287
8288if test $ac_cv_header_stdc = yes; then
8289  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292#include <string.h>
8293
8294_ACEOF
8295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296  $EGREP "memchr" >/dev/null 2>&1; then :
8297
8298else
8299  ac_cv_header_stdc=no
8300fi
8301rm -f conftest*
8302
8303fi
8304
8305if test $ac_cv_header_stdc = yes; then
8306  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309#include <stdlib.h>
8310
8311_ACEOF
8312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313  $EGREP "free" >/dev/null 2>&1; then :
8314
8315else
8316  ac_cv_header_stdc=no
8317fi
8318rm -f conftest*
8319
8320fi
8321
8322if test $ac_cv_header_stdc = yes; then
8323  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8324  if test "$cross_compiling" = yes; then :
8325  :
8326else
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329#include <ctype.h>
8330#include <stdlib.h>
8331#if ((' ' & 0x0FF) == 0x020)
8332# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8333# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8334#else
8335# define ISLOWER(c) \
8336		   (('a' <= (c) && (c) <= 'i') \
8337		     || ('j' <= (c) && (c) <= 'r') \
8338		     || ('s' <= (c) && (c) <= 'z'))
8339# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8340#endif
8341
8342#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8343int
8344main ()
8345{
8346  int i;
8347  for (i = 0; i < 256; i++)
8348    if (XOR (islower (i), ISLOWER (i))
8349	|| toupper (i) != TOUPPER (i))
8350      return 2;
8351  return 0;
8352}
8353_ACEOF
8354if ac_fn_c_try_run "$LINENO"; then :
8355
8356else
8357  ac_cv_header_stdc=no
8358fi
8359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8360  conftest.$ac_objext conftest.beam conftest.$ac_ext
8361fi
8362
8363fi
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8366$as_echo "$ac_cv_header_stdc" >&6; }
8367if test $ac_cv_header_stdc = yes; then
8368
8369$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8370
8371fi
8372
8373# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8374for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8375		  inttypes.h stdint.h unistd.h
8376do :
8377  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8379"
8380if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8381  cat >>confdefs.h <<_ACEOF
8382#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8383_ACEOF
8384
8385fi
8386
8387done
8388
8389
8390for ac_header in dlfcn.h
8391do :
8392  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8393"
8394if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8395  cat >>confdefs.h <<_ACEOF
8396#define HAVE_DLFCN_H 1
8397_ACEOF
8398
8399fi
8400
8401done
8402
8403
8404
8405
8406
8407# Set options
8408
8409
8410
8411        enable_dlopen=no
8412
8413
8414  enable_win32_dll=no
8415
8416
8417            # Check whether --enable-shared was given.
8418if test "${enable_shared+set}" = set; then :
8419  enableval=$enable_shared; p=${PACKAGE-default}
8420    case $enableval in
8421    yes) enable_shared=yes ;;
8422    no) enable_shared=no ;;
8423    *)
8424      enable_shared=no
8425      # Look at the argument we got.  We use all the common list separators.
8426      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8427      for pkg in $enableval; do
8428	IFS=$lt_save_ifs
8429	if test "X$pkg" = "X$p"; then
8430	  enable_shared=yes
8431	fi
8432      done
8433      IFS=$lt_save_ifs
8434      ;;
8435    esac
8436else
8437  enable_shared=yes
8438fi
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448  # Check whether --enable-static was given.
8449if test "${enable_static+set}" = set; then :
8450  enableval=$enable_static; p=${PACKAGE-default}
8451    case $enableval in
8452    yes) enable_static=yes ;;
8453    no) enable_static=no ;;
8454    *)
8455     enable_static=no
8456      # Look at the argument we got.  We use all the common list separators.
8457      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8458      for pkg in $enableval; do
8459	IFS=$lt_save_ifs
8460	if test "X$pkg" = "X$p"; then
8461	  enable_static=yes
8462	fi
8463      done
8464      IFS=$lt_save_ifs
8465      ;;
8466    esac
8467else
8468  enable_static=yes
8469fi
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480# Check whether --with-pic was given.
8481if test "${with_pic+set}" = set; then :
8482  withval=$with_pic; lt_p=${PACKAGE-default}
8483    case $withval in
8484    yes|no) pic_mode=$withval ;;
8485    *)
8486      pic_mode=default
8487      # Look at the argument we got.  We use all the common list separators.
8488      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8489      for lt_pkg in $withval; do
8490	IFS=$lt_save_ifs
8491	if test "X$lt_pkg" = "X$lt_p"; then
8492	  pic_mode=yes
8493	fi
8494      done
8495      IFS=$lt_save_ifs
8496      ;;
8497    esac
8498else
8499  pic_mode=default
8500fi
8501
8502
8503
8504
8505
8506
8507
8508
8509  # Check whether --enable-fast-install was given.
8510if test "${enable_fast_install+set}" = set; then :
8511  enableval=$enable_fast_install; p=${PACKAGE-default}
8512    case $enableval in
8513    yes) enable_fast_install=yes ;;
8514    no) enable_fast_install=no ;;
8515    *)
8516      enable_fast_install=no
8517      # Look at the argument we got.  We use all the common list separators.
8518      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8519      for pkg in $enableval; do
8520	IFS=$lt_save_ifs
8521	if test "X$pkg" = "X$p"; then
8522	  enable_fast_install=yes
8523	fi
8524      done
8525      IFS=$lt_save_ifs
8526      ;;
8527    esac
8528else
8529  enable_fast_install=yes
8530fi
8531
8532
8533
8534
8535
8536
8537
8538
8539  shared_archive_member_spec=
8540case $host,$enable_shared in
8541power*-*-aix[5-9]*,yes)
8542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8543$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8544
8545# Check whether --with-aix-soname was given.
8546if test "${with_aix_soname+set}" = set; then :
8547  withval=$with_aix_soname; case $withval in
8548    aix|svr4|both)
8549      ;;
8550    *)
8551      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8552      ;;
8553    esac
8554    lt_cv_with_aix_soname=$with_aix_soname
8555else
8556  if ${lt_cv_with_aix_soname+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  lt_cv_with_aix_soname=aix
8560fi
8561
8562    with_aix_soname=$lt_cv_with_aix_soname
8563fi
8564
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8566$as_echo "$with_aix_soname" >&6; }
8567  if test aix != "$with_aix_soname"; then
8568    # For the AIX way of multilib, we name the shared archive member
8569    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8570    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8571    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8572    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8573    if test 64 = "${OBJECT_MODE-32}"; then
8574      shared_archive_member_spec=shr_64
8575    else
8576      shared_archive_member_spec=shr
8577    fi
8578  fi
8579  ;;
8580*)
8581  with_aix_soname=aix
8582  ;;
8583esac
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594# This can be used to rebuild libtool when needed
8595LIBTOOL_DEPS=$ltmain
8596
8597# Always use our own libtool.
8598LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629test -z "$LN_S" && LN_S="ln -s"
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644if test -n "${ZSH_VERSION+set}"; then
8645   setopt NO_GLOB_SUBST
8646fi
8647
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8649$as_echo_n "checking for objdir... " >&6; }
8650if ${lt_cv_objdir+:} false; then :
8651  $as_echo_n "(cached) " >&6
8652else
8653  rm -f .libs 2>/dev/null
8654mkdir .libs 2>/dev/null
8655if test -d .libs; then
8656  lt_cv_objdir=.libs
8657else
8658  # MS-DOS does not allow filenames that begin with a dot.
8659  lt_cv_objdir=_libs
8660fi
8661rmdir .libs 2>/dev/null
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8664$as_echo "$lt_cv_objdir" >&6; }
8665objdir=$lt_cv_objdir
8666
8667
8668
8669
8670
8671cat >>confdefs.h <<_ACEOF
8672#define LT_OBJDIR "$lt_cv_objdir/"
8673_ACEOF
8674
8675
8676
8677
8678case $host_os in
8679aix3*)
8680  # AIX sometimes has problems with the GCC collect2 program.  For some
8681  # reason, if we set the COLLECT_NAMES environment variable, the problems
8682  # vanish in a puff of smoke.
8683  if test set != "${COLLECT_NAMES+set}"; then
8684    COLLECT_NAMES=
8685    export COLLECT_NAMES
8686  fi
8687  ;;
8688esac
8689
8690# Global variables:
8691ofile=libtool
8692can_build_shared=yes
8693
8694# All known linkers require a '.a' archive for static linking (except MSVC,
8695# which needs '.lib').
8696libext=a
8697
8698with_gnu_ld=$lt_cv_prog_gnu_ld
8699
8700old_CC=$CC
8701old_CFLAGS=$CFLAGS
8702
8703# Set sane defaults for various variables
8704test -z "$CC" && CC=cc
8705test -z "$LTCC" && LTCC=$CC
8706test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8707test -z "$LD" && LD=ld
8708test -z "$ac_objext" && ac_objext=o
8709
8710func_cc_basename $compiler
8711cc_basename=$func_cc_basename_result
8712
8713
8714# Only perform the check for file, if the check method requires it
8715test -z "$MAGIC_CMD" && MAGIC_CMD=file
8716case $deplibs_check_method in
8717file_magic*)
8718  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8720$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8721if ${lt_cv_path_MAGIC_CMD+:} false; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  case $MAGIC_CMD in
8725[\\/*] |  ?:[\\/]*)
8726  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8727  ;;
8728*)
8729  lt_save_MAGIC_CMD=$MAGIC_CMD
8730  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8731  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8732  for ac_dir in $ac_dummy; do
8733    IFS=$lt_save_ifs
8734    test -z "$ac_dir" && ac_dir=.
8735    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8736      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8737      if test -n "$file_magic_test_file"; then
8738	case $deplibs_check_method in
8739	"file_magic "*)
8740	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8741	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8742	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8743	    $EGREP "$file_magic_regex" > /dev/null; then
8744	    :
8745	  else
8746	    cat <<_LT_EOF 1>&2
8747
8748*** Warning: the command libtool uses to detect shared libraries,
8749*** $file_magic_cmd, produces output that libtool cannot recognize.
8750*** The result is that libtool may fail to recognize shared libraries
8751*** as such.  This will affect the creation of libtool libraries that
8752*** depend on shared libraries, but programs linked with such libtool
8753*** libraries will work regardless of this problem.  Nevertheless, you
8754*** may want to report the problem to your system manager and/or to
8755*** bug-libtool@gnu.org
8756
8757_LT_EOF
8758	  fi ;;
8759	esac
8760      fi
8761      break
8762    fi
8763  done
8764  IFS=$lt_save_ifs
8765  MAGIC_CMD=$lt_save_MAGIC_CMD
8766  ;;
8767esac
8768fi
8769
8770MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8771if test -n "$MAGIC_CMD"; then
8772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8773$as_echo "$MAGIC_CMD" >&6; }
8774else
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777fi
8778
8779
8780
8781
8782
8783if test -z "$lt_cv_path_MAGIC_CMD"; then
8784  if test -n "$ac_tool_prefix"; then
8785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8786$as_echo_n "checking for file... " >&6; }
8787if ${lt_cv_path_MAGIC_CMD+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  case $MAGIC_CMD in
8791[\\/*] |  ?:[\\/]*)
8792  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8793  ;;
8794*)
8795  lt_save_MAGIC_CMD=$MAGIC_CMD
8796  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8797  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8798  for ac_dir in $ac_dummy; do
8799    IFS=$lt_save_ifs
8800    test -z "$ac_dir" && ac_dir=.
8801    if test -f "$ac_dir/file"; then
8802      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8803      if test -n "$file_magic_test_file"; then
8804	case $deplibs_check_method in
8805	"file_magic "*)
8806	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8807	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8808	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8809	    $EGREP "$file_magic_regex" > /dev/null; then
8810	    :
8811	  else
8812	    cat <<_LT_EOF 1>&2
8813
8814*** Warning: the command libtool uses to detect shared libraries,
8815*** $file_magic_cmd, produces output that libtool cannot recognize.
8816*** The result is that libtool may fail to recognize shared libraries
8817*** as such.  This will affect the creation of libtool libraries that
8818*** depend on shared libraries, but programs linked with such libtool
8819*** libraries will work regardless of this problem.  Nevertheless, you
8820*** may want to report the problem to your system manager and/or to
8821*** bug-libtool@gnu.org
8822
8823_LT_EOF
8824	  fi ;;
8825	esac
8826      fi
8827      break
8828    fi
8829  done
8830  IFS=$lt_save_ifs
8831  MAGIC_CMD=$lt_save_MAGIC_CMD
8832  ;;
8833esac
8834fi
8835
8836MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8837if test -n "$MAGIC_CMD"; then
8838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8839$as_echo "$MAGIC_CMD" >&6; }
8840else
8841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846  else
8847    MAGIC_CMD=:
8848  fi
8849fi
8850
8851  fi
8852  ;;
8853esac
8854
8855# Use C for the default configuration in the libtool script
8856
8857lt_save_CC=$CC
8858ac_ext=c
8859ac_cpp='$CPP $CPPFLAGS'
8860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863
8864
8865# Source file extension for C test sources.
8866ac_ext=c
8867
8868# Object file extension for compiled C test sources.
8869objext=o
8870objext=$objext
8871
8872# Code to be used in simple compile tests
8873lt_simple_compile_test_code="int some_variable = 0;"
8874
8875# Code to be used in simple link tests
8876lt_simple_link_test_code='int main(){return(0);}'
8877
8878
8879
8880
8881
8882
8883
8884# If no C compiler was specified, use CC.
8885LTCC=${LTCC-"$CC"}
8886
8887# If no C compiler flags were specified, use CFLAGS.
8888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8889
8890# Allow CC to be a program name with arguments.
8891compiler=$CC
8892
8893# Save the default compiler, since it gets overwritten when the other
8894# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8895compiler_DEFAULT=$CC
8896
8897# save warnings/boilerplate of simple test code
8898ac_outfile=conftest.$ac_objext
8899echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8901_lt_compiler_boilerplate=`cat conftest.err`
8902$RM conftest*
8903
8904ac_outfile=conftest.$ac_objext
8905echo "$lt_simple_link_test_code" >conftest.$ac_ext
8906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8907_lt_linker_boilerplate=`cat conftest.err`
8908$RM -r conftest*
8909
8910
8911## CAVEAT EMPTOR:
8912## There is no encapsulation within the following macros, do not change
8913## the running order or otherwise move them around unless you know exactly
8914## what you are doing...
8915if test -n "$compiler"; then
8916
8917lt_prog_compiler_no_builtin_flag=
8918
8919if test yes = "$GCC"; then
8920  case $cc_basename in
8921  nvcc*)
8922    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8923  *)
8924    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8925  esac
8926
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8928$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8929if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8930  $as_echo_n "(cached) " >&6
8931else
8932  lt_cv_prog_compiler_rtti_exceptions=no
8933   ac_outfile=conftest.$ac_objext
8934   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8936   # Insert the option either (1) after the last *FLAGS variable, or
8937   # (2) before a word containing "conftest.", or (3) at the end.
8938   # Note that $ac_compile itself does not contain backslashes and begins
8939   # with a dollar sign (not a hyphen), so the echo should work correctly.
8940   # The option is referenced via a variable to avoid confusing sed.
8941   lt_compile=`echo "$ac_compile" | $SED \
8942   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944   -e 's:$: $lt_compiler_flag:'`
8945   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946   (eval "$lt_compile" 2>conftest.err)
8947   ac_status=$?
8948   cat conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   if (exit $ac_status) && test -s "$ac_outfile"; then
8951     # The compiler can only warn and ignore the option if not recognized
8952     # So say no if there are warnings other than the usual output.
8953     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8954     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8955     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8956       lt_cv_prog_compiler_rtti_exceptions=yes
8957     fi
8958   fi
8959   $RM conftest*
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8963$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8964
8965if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8966    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8967else
8968    :
8969fi
8970
8971fi
8972
8973
8974
8975
8976
8977
8978  lt_prog_compiler_wl=
8979lt_prog_compiler_pic=
8980lt_prog_compiler_static=
8981
8982
8983  if test yes = "$GCC"; then
8984    lt_prog_compiler_wl='-Wl,'
8985    lt_prog_compiler_static='-static'
8986
8987    case $host_os in
8988      aix*)
8989      # All AIX code is PIC.
8990      if test ia64 = "$host_cpu"; then
8991	# AIX 5 now supports IA64 processor
8992	lt_prog_compiler_static='-Bstatic'
8993      fi
8994      lt_prog_compiler_pic='-fPIC'
8995      ;;
8996
8997    amigaos*)
8998      case $host_cpu in
8999      powerpc)
9000            # see comment about AmigaOS4 .so support
9001            lt_prog_compiler_pic='-fPIC'
9002        ;;
9003      m68k)
9004            # FIXME: we need at least 68020 code to build shared libraries, but
9005            # adding the '-m68020' flag to GCC prevents building anything better,
9006            # like '-m68040'.
9007            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9008        ;;
9009      esac
9010      ;;
9011
9012    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9013      # PIC is the default for these OSes.
9014      ;;
9015
9016    mingw* | cygwin* | pw32* | os2* | cegcc*)
9017      # This hack is so that the source file can tell whether it is being
9018      # built for inclusion in a dll (and should export symbols for example).
9019      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9020      # (--disable-auto-import) libraries
9021      lt_prog_compiler_pic='-DDLL_EXPORT'
9022      case $host_os in
9023      os2*)
9024	lt_prog_compiler_static='$wl-static'
9025	;;
9026      esac
9027      ;;
9028
9029    darwin* | rhapsody*)
9030      # PIC is the default on this platform
9031      # Common symbols not allowed in MH_DYLIB files
9032      lt_prog_compiler_pic='-fno-common'
9033      ;;
9034
9035    haiku*)
9036      # PIC is the default for Haiku.
9037      # The "-static" flag exists, but is broken.
9038      lt_prog_compiler_static=
9039      ;;
9040
9041    hpux*)
9042      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9043      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9044      # sets the default TLS model and affects inlining.
9045      case $host_cpu in
9046      hppa*64*)
9047	# +Z the default
9048	;;
9049      *)
9050	lt_prog_compiler_pic='-fPIC'
9051	;;
9052      esac
9053      ;;
9054
9055    interix[3-9]*)
9056      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9057      # Instead, we relocate shared libraries at runtime.
9058      ;;
9059
9060    msdosdjgpp*)
9061      # Just because we use GCC doesn't mean we suddenly get shared libraries
9062      # on systems that don't support them.
9063      lt_prog_compiler_can_build_shared=no
9064      enable_shared=no
9065      ;;
9066
9067    *nto* | *qnx*)
9068      # QNX uses GNU C++, but need to define -shared option too, otherwise
9069      # it will coredump.
9070      lt_prog_compiler_pic='-fPIC -shared'
9071      ;;
9072
9073    sysv4*MP*)
9074      if test -d /usr/nec; then
9075	lt_prog_compiler_pic=-Kconform_pic
9076      fi
9077      ;;
9078
9079    *)
9080      lt_prog_compiler_pic='-fPIC'
9081      ;;
9082    esac
9083
9084    case $cc_basename in
9085    nvcc*) # Cuda Compiler Driver 2.2
9086      lt_prog_compiler_wl='-Xlinker '
9087      if test -n "$lt_prog_compiler_pic"; then
9088        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9089      fi
9090      ;;
9091    esac
9092  else
9093    # PORTME Check for flag to pass linker flags through the system compiler.
9094    case $host_os in
9095    aix*)
9096      lt_prog_compiler_wl='-Wl,'
9097      if test ia64 = "$host_cpu"; then
9098	# AIX 5 now supports IA64 processor
9099	lt_prog_compiler_static='-Bstatic'
9100      else
9101	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9102      fi
9103      ;;
9104
9105    darwin* | rhapsody*)
9106      # PIC is the default on this platform
9107      # Common symbols not allowed in MH_DYLIB files
9108      lt_prog_compiler_pic='-fno-common'
9109      case $cc_basename in
9110      nagfor*)
9111        # NAG Fortran compiler
9112        lt_prog_compiler_wl='-Wl,-Wl,,'
9113        lt_prog_compiler_pic='-PIC'
9114        lt_prog_compiler_static='-Bstatic'
9115        ;;
9116      esac
9117      ;;
9118
9119    mingw* | cygwin* | pw32* | os2* | cegcc*)
9120      # This hack is so that the source file can tell whether it is being
9121      # built for inclusion in a dll (and should export symbols for example).
9122      lt_prog_compiler_pic='-DDLL_EXPORT'
9123      case $host_os in
9124      os2*)
9125	lt_prog_compiler_static='$wl-static'
9126	;;
9127      esac
9128      ;;
9129
9130    hpux9* | hpux10* | hpux11*)
9131      lt_prog_compiler_wl='-Wl,'
9132      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9133      # not for PA HP-UX.
9134      case $host_cpu in
9135      hppa*64*|ia64*)
9136	# +Z the default
9137	;;
9138      *)
9139	lt_prog_compiler_pic='+Z'
9140	;;
9141      esac
9142      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9143      lt_prog_compiler_static='$wl-a ${wl}archive'
9144      ;;
9145
9146    irix5* | irix6* | nonstopux*)
9147      lt_prog_compiler_wl='-Wl,'
9148      # PIC (with -KPIC) is the default.
9149      lt_prog_compiler_static='-non_shared'
9150      ;;
9151
9152    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9153      case $cc_basename in
9154      # old Intel for x86_64, which still supported -KPIC.
9155      ecc*)
9156	lt_prog_compiler_wl='-Wl,'
9157	lt_prog_compiler_pic='-KPIC'
9158	lt_prog_compiler_static='-static'
9159        ;;
9160      # flang / f18. f95 an alias for gfortran or flang on Debian
9161      flang* | f18* | f95*)
9162	lt_prog_compiler_wl='-Wl,'
9163	lt_prog_compiler_pic='-fPIC'
9164	lt_prog_compiler_static='-static'
9165        ;;
9166      # icc used to be incompatible with GCC.
9167      # ICC 10 doesn't accept -KPIC any more.
9168      icc* | ifort*)
9169	lt_prog_compiler_wl='-Wl,'
9170	lt_prog_compiler_pic='-fPIC'
9171	lt_prog_compiler_static='-static'
9172        ;;
9173      # Lahey Fortran 8.1.
9174      lf95*)
9175	lt_prog_compiler_wl='-Wl,'
9176	lt_prog_compiler_pic='--shared'
9177	lt_prog_compiler_static='--static'
9178	;;
9179      nagfor*)
9180	# NAG Fortran compiler
9181	lt_prog_compiler_wl='-Wl,-Wl,,'
9182	lt_prog_compiler_pic='-PIC'
9183	lt_prog_compiler_static='-Bstatic'
9184	;;
9185      tcc*)
9186	# Fabrice Bellard et al's Tiny C Compiler
9187	lt_prog_compiler_wl='-Wl,'
9188	lt_prog_compiler_pic='-fPIC'
9189	lt_prog_compiler_static='-static'
9190	;;
9191      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9192        # Portland Group compilers (*not* the Pentium gcc compiler,
9193	# which looks to be a dead project)
9194	lt_prog_compiler_wl='-Wl,'
9195	lt_prog_compiler_pic='-fpic'
9196	lt_prog_compiler_static='-Bstatic'
9197        ;;
9198      ccc*)
9199        lt_prog_compiler_wl='-Wl,'
9200        # All Alpha code is PIC.
9201        lt_prog_compiler_static='-non_shared'
9202        ;;
9203      xl* | bgxl* | bgf* | mpixl*)
9204	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9205	lt_prog_compiler_wl='-Wl,'
9206	lt_prog_compiler_pic='-qpic'
9207	lt_prog_compiler_static='-qstaticlink'
9208	;;
9209      *)
9210	case `$CC -V 2>&1 | sed 5q` in
9211	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9212	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9213	  lt_prog_compiler_pic='-KPIC'
9214	  lt_prog_compiler_static='-Bstatic'
9215	  lt_prog_compiler_wl=''
9216	  ;;
9217	*Sun\ F* | *Sun*Fortran*)
9218	  lt_prog_compiler_pic='-KPIC'
9219	  lt_prog_compiler_static='-Bstatic'
9220	  lt_prog_compiler_wl='-Qoption ld '
9221	  ;;
9222	*Sun\ C*)
9223	  # Sun C 5.9
9224	  lt_prog_compiler_pic='-KPIC'
9225	  lt_prog_compiler_static='-Bstatic'
9226	  lt_prog_compiler_wl='-Wl,'
9227	  ;;
9228        *Intel*\ [CF]*Compiler*)
9229	  lt_prog_compiler_wl='-Wl,'
9230	  lt_prog_compiler_pic='-fPIC'
9231	  lt_prog_compiler_static='-static'
9232	  ;;
9233	*Portland\ Group*)
9234	  lt_prog_compiler_wl='-Wl,'
9235	  lt_prog_compiler_pic='-fpic'
9236	  lt_prog_compiler_static='-Bstatic'
9237	  ;;
9238	esac
9239	;;
9240      esac
9241      ;;
9242
9243    newsos6)
9244      lt_prog_compiler_pic='-KPIC'
9245      lt_prog_compiler_static='-Bstatic'
9246      ;;
9247
9248    *nto* | *qnx*)
9249      # QNX uses GNU C++, but need to define -shared option too, otherwise
9250      # it will coredump.
9251      lt_prog_compiler_pic='-fPIC -shared'
9252      ;;
9253
9254    osf3* | osf4* | osf5*)
9255      lt_prog_compiler_wl='-Wl,'
9256      # All OSF/1 code is PIC.
9257      lt_prog_compiler_static='-non_shared'
9258      ;;
9259
9260    rdos*)
9261      lt_prog_compiler_static='-non_shared'
9262      ;;
9263
9264    solaris*)
9265      lt_prog_compiler_pic='-KPIC'
9266      lt_prog_compiler_static='-Bstatic'
9267      case $cc_basename in
9268      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9269	lt_prog_compiler_wl='-Qoption ld ';;
9270      *)
9271	lt_prog_compiler_wl='-Wl,';;
9272      esac
9273      ;;
9274
9275    sunos4*)
9276      lt_prog_compiler_wl='-Qoption ld '
9277      lt_prog_compiler_pic='-PIC'
9278      lt_prog_compiler_static='-Bstatic'
9279      ;;
9280
9281    sysv4 | sysv4.2uw2* | sysv4.3*)
9282      lt_prog_compiler_wl='-Wl,'
9283      lt_prog_compiler_pic='-KPIC'
9284      lt_prog_compiler_static='-Bstatic'
9285      ;;
9286
9287    sysv4*MP*)
9288      if test -d /usr/nec; then
9289	lt_prog_compiler_pic='-Kconform_pic'
9290	lt_prog_compiler_static='-Bstatic'
9291      fi
9292      ;;
9293
9294    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9295      lt_prog_compiler_wl='-Wl,'
9296      lt_prog_compiler_pic='-KPIC'
9297      lt_prog_compiler_static='-Bstatic'
9298      ;;
9299
9300    unicos*)
9301      lt_prog_compiler_wl='-Wl,'
9302      lt_prog_compiler_can_build_shared=no
9303      ;;
9304
9305    uts4*)
9306      lt_prog_compiler_pic='-pic'
9307      lt_prog_compiler_static='-Bstatic'
9308      ;;
9309
9310    *)
9311      lt_prog_compiler_can_build_shared=no
9312      ;;
9313    esac
9314  fi
9315
9316case $host_os in
9317  # For platforms that do not support PIC, -DPIC is meaningless:
9318  *djgpp*)
9319    lt_prog_compiler_pic=
9320    ;;
9321  *)
9322    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9323    ;;
9324esac
9325
9326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9328if ${lt_cv_prog_compiler_pic+:} false; then :
9329  $as_echo_n "(cached) " >&6
9330else
9331  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9332fi
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9334$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9335lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9336
9337#
9338# Check to make sure the PIC flag actually works.
9339#
9340if test -n "$lt_prog_compiler_pic"; then
9341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9342$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9343if ${lt_cv_prog_compiler_pic_works+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  lt_cv_prog_compiler_pic_works=no
9347   ac_outfile=conftest.$ac_objext
9348   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9349   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9350   # Insert the option either (1) after the last *FLAGS variable, or
9351   # (2) before a word containing "conftest.", or (3) at the end.
9352   # Note that $ac_compile itself does not contain backslashes and begins
9353   # with a dollar sign (not a hyphen), so the echo should work correctly.
9354   # The option is referenced via a variable to avoid confusing sed.
9355   lt_compile=`echo "$ac_compile" | $SED \
9356   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9358   -e 's:$: $lt_compiler_flag:'`
9359   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9360   (eval "$lt_compile" 2>conftest.err)
9361   ac_status=$?
9362   cat conftest.err >&5
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   if (exit $ac_status) && test -s "$ac_outfile"; then
9365     # The compiler can only warn and ignore the option if not recognized
9366     # So say no if there are warnings other than the usual output.
9367     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9368     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9369     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9370       lt_cv_prog_compiler_pic_works=yes
9371     fi
9372   fi
9373   $RM conftest*
9374
9375fi
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9377$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9378
9379if test yes = "$lt_cv_prog_compiler_pic_works"; then
9380    case $lt_prog_compiler_pic in
9381     "" | " "*) ;;
9382     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9383     esac
9384else
9385    lt_prog_compiler_pic=
9386     lt_prog_compiler_can_build_shared=no
9387fi
9388
9389fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401#
9402# Check to make sure the static flag actually works.
9403#
9404wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9406$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9407if ${lt_cv_prog_compiler_static_works+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  lt_cv_prog_compiler_static_works=no
9411   save_LDFLAGS=$LDFLAGS
9412   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9413   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9414   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9415     # The linker can only warn and ignore the option if not recognized
9416     # So say no if there are warnings
9417     if test -s conftest.err; then
9418       # Append any errors to the config.log.
9419       cat conftest.err 1>&5
9420       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9421       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9422       if diff conftest.exp conftest.er2 >/dev/null; then
9423         lt_cv_prog_compiler_static_works=yes
9424       fi
9425     else
9426       lt_cv_prog_compiler_static_works=yes
9427     fi
9428   fi
9429   $RM -r conftest*
9430   LDFLAGS=$save_LDFLAGS
9431
9432fi
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9434$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9435
9436if test yes = "$lt_cv_prog_compiler_static_works"; then
9437    :
9438else
9439    lt_prog_compiler_static=
9440fi
9441
9442
9443
9444
9445
9446
9447
9448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9449$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9450if ${lt_cv_prog_compiler_c_o+:} false; then :
9451  $as_echo_n "(cached) " >&6
9452else
9453  lt_cv_prog_compiler_c_o=no
9454   $RM -r conftest 2>/dev/null
9455   mkdir conftest
9456   cd conftest
9457   mkdir out
9458   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459
9460   lt_compiler_flag="-o out/conftest2.$ac_objext"
9461   # Insert the option either (1) after the last *FLAGS variable, or
9462   # (2) before a word containing "conftest.", or (3) at the end.
9463   # Note that $ac_compile itself does not contain backslashes and begins
9464   # with a dollar sign (not a hyphen), so the echo should work correctly.
9465   lt_compile=`echo "$ac_compile" | $SED \
9466   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468   -e 's:$: $lt_compiler_flag:'`
9469   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470   (eval "$lt_compile" 2>out/conftest.err)
9471   ac_status=$?
9472   cat out/conftest.err >&5
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9475   then
9476     # The compiler can only warn and ignore the option if not recognized
9477     # So say no if there are warnings
9478     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9479     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9480     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9481       lt_cv_prog_compiler_c_o=yes
9482     fi
9483   fi
9484   chmod u+w . 2>&5
9485   $RM conftest*
9486   # SGI C++ compiler will create directory out/ii_files/ for
9487   # template instantiation
9488   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9489   $RM out/* && rmdir out
9490   cd ..
9491   $RM -r conftest
9492   $RM conftest*
9493
9494fi
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9496$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9497
9498
9499
9500
9501
9502
9503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9504$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9505if ${lt_cv_prog_compiler_c_o+:} false; then :
9506  $as_echo_n "(cached) " >&6
9507else
9508  lt_cv_prog_compiler_c_o=no
9509   $RM -r conftest 2>/dev/null
9510   mkdir conftest
9511   cd conftest
9512   mkdir out
9513   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9514
9515   lt_compiler_flag="-o out/conftest2.$ac_objext"
9516   # Insert the option either (1) after the last *FLAGS variable, or
9517   # (2) before a word containing "conftest.", or (3) at the end.
9518   # Note that $ac_compile itself does not contain backslashes and begins
9519   # with a dollar sign (not a hyphen), so the echo should work correctly.
9520   lt_compile=`echo "$ac_compile" | $SED \
9521   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523   -e 's:$: $lt_compiler_flag:'`
9524   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9525   (eval "$lt_compile" 2>out/conftest.err)
9526   ac_status=$?
9527   cat out/conftest.err >&5
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9530   then
9531     # The compiler can only warn and ignore the option if not recognized
9532     # So say no if there are warnings
9533     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9534     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9535     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9536       lt_cv_prog_compiler_c_o=yes
9537     fi
9538   fi
9539   chmod u+w . 2>&5
9540   $RM conftest*
9541   # SGI C++ compiler will create directory out/ii_files/ for
9542   # template instantiation
9543   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9544   $RM out/* && rmdir out
9545   cd ..
9546   $RM -r conftest
9547   $RM conftest*
9548
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9551$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9552
9553
9554
9555
9556hard_links=nottested
9557if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9558  # do not overwrite the value of need_locks provided by the user
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9560$as_echo_n "checking if we can lock with hard links... " >&6; }
9561  hard_links=yes
9562  $RM conftest*
9563  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9564  touch conftest.a
9565  ln conftest.a conftest.b 2>&5 || hard_links=no
9566  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9568$as_echo "$hard_links" >&6; }
9569  if test no = "$hard_links"; then
9570    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9571$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9572    need_locks=warn
9573  fi
9574else
9575  need_locks=no
9576fi
9577
9578
9579
9580
9581
9582
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9584$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9585
9586  runpath_var=
9587  allow_undefined_flag=
9588  always_export_symbols=no
9589  archive_cmds=
9590  archive_expsym_cmds=
9591  compiler_needs_object=no
9592  enable_shared_with_static_runtimes=no
9593  export_dynamic_flag_spec=
9594  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9595  hardcode_automatic=no
9596  hardcode_direct=no
9597  hardcode_direct_absolute=no
9598  hardcode_libdir_flag_spec=
9599  hardcode_libdir_separator=
9600  hardcode_minus_L=no
9601  hardcode_shlibpath_var=unsupported
9602  inherit_rpath=no
9603  link_all_deplibs=unknown
9604  module_cmds=
9605  module_expsym_cmds=
9606  old_archive_from_new_cmds=
9607  old_archive_from_expsyms_cmds=
9608  thread_safe_flag_spec=
9609  whole_archive_flag_spec=
9610  # include_expsyms should be a list of space-separated symbols to be *always*
9611  # included in the symbol list
9612  include_expsyms=
9613  # exclude_expsyms can be an extended regexp of symbols to exclude
9614  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9615  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9616  # as well as any symbol that contains 'd'.
9617  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9618  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9619  # platforms (ab)use it in PIC code, but their linkers get confused if
9620  # the symbol is explicitly referenced.  Since portable code cannot
9621  # rely on this symbol name, it's probably fine to never include it in
9622  # preloaded symbol tables.
9623  # Exclude shared library initialization/finalization symbols.
9624  extract_expsyms_cmds=
9625
9626  case $host_os in
9627  cygwin* | mingw* | pw32* | cegcc*)
9628    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9629    # When not using gcc, we currently assume that we are using
9630    # Microsoft Visual C++.
9631    if test yes != "$GCC"; then
9632      with_gnu_ld=no
9633    fi
9634    ;;
9635  interix*)
9636    # we just hope/assume this is gcc and not c89 (= MSVC++)
9637    with_gnu_ld=yes
9638    ;;
9639  openbsd* | bitrig*)
9640    with_gnu_ld=no
9641    ;;
9642  linux* | k*bsd*-gnu | gnu*)
9643    link_all_deplibs=no
9644    ;;
9645  esac
9646
9647  ld_shlibs=yes
9648
9649  # On some targets, GNU ld is compatible enough with the native linker
9650  # that we're better off using the native interface for both.
9651  lt_use_gnu_ld_interface=no
9652  if test yes = "$with_gnu_ld"; then
9653    case $host_os in
9654      aix*)
9655	# The AIX port of GNU ld has always aspired to compatibility
9656	# with the native linker.  However, as the warning in the GNU ld
9657	# block says, versions before 2.19.5* couldn't really create working
9658	# shared libraries, regardless of the interface used.
9659	case `$LD -v 2>&1` in
9660	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9661	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9662	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9663	  *)
9664	    lt_use_gnu_ld_interface=yes
9665	    ;;
9666	esac
9667	;;
9668      *)
9669	lt_use_gnu_ld_interface=yes
9670	;;
9671    esac
9672  fi
9673
9674  if test yes = "$lt_use_gnu_ld_interface"; then
9675    # If archive_cmds runs LD, not CC, wlarc should be empty
9676    wlarc='$wl'
9677
9678    # Set some defaults for GNU ld with shared library support. These
9679    # are reset later if shared libraries are not supported. Putting them
9680    # here allows them to be overridden if necessary.
9681    runpath_var=LD_RUN_PATH
9682    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9683    export_dynamic_flag_spec='$wl--export-dynamic'
9684    # ancient GNU ld didn't support --whole-archive et. al.
9685    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9686      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9687    else
9688      whole_archive_flag_spec=
9689    fi
9690    supports_anon_versioning=no
9691    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9692      *GNU\ gold*) supports_anon_versioning=yes ;;
9693      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9694      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9695      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9696      *\ 2.11.*) ;; # other 2.11 versions
9697      *) supports_anon_versioning=yes ;;
9698    esac
9699
9700    # See if GNU ld supports shared libraries.
9701    case $host_os in
9702    aix[3-9]*)
9703      # On AIX/PPC, the GNU linker is very broken
9704      if test ia64 != "$host_cpu"; then
9705	ld_shlibs=no
9706	cat <<_LT_EOF 1>&2
9707
9708*** Warning: the GNU linker, at least up to release 2.19, is reported
9709*** to be unable to reliably create shared libraries on AIX.
9710*** Therefore, libtool is disabling shared libraries support.  If you
9711*** really care for shared libraries, you may want to install binutils
9712*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9713*** You will then need to restart the configuration process.
9714
9715_LT_EOF
9716      fi
9717      ;;
9718
9719    amigaos*)
9720      case $host_cpu in
9721      powerpc)
9722            # see comment about AmigaOS4 .so support
9723            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9724            archive_expsym_cmds=''
9725        ;;
9726      m68k)
9727            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)'
9728            hardcode_libdir_flag_spec='-L$libdir'
9729            hardcode_minus_L=yes
9730        ;;
9731      esac
9732      ;;
9733
9734    beos*)
9735      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9736	allow_undefined_flag=unsupported
9737	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9738	# support --undefined.  This deserves some investigation.  FIXME
9739	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9740      else
9741	ld_shlibs=no
9742      fi
9743      ;;
9744
9745    cygwin* | mingw* | pw32* | cegcc*)
9746      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9747      # as there is no search path for DLLs.
9748      hardcode_libdir_flag_spec='-L$libdir'
9749      export_dynamic_flag_spec='$wl--export-all-symbols'
9750      allow_undefined_flag=unsupported
9751      always_export_symbols=no
9752      enable_shared_with_static_runtimes=yes
9753      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'
9754      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9755
9756      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9757        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9758	# If the export-symbols file already is a .def file, use it as
9759	# is; otherwise, prepend EXPORTS...
9760	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9761          cp $export_symbols $output_objdir/$soname.def;
9762        else
9763          echo EXPORTS > $output_objdir/$soname.def;
9764          cat $export_symbols >> $output_objdir/$soname.def;
9765        fi~
9766        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9767      else
9768	ld_shlibs=no
9769      fi
9770      ;;
9771
9772    haiku*)
9773      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9774      link_all_deplibs=yes
9775      ;;
9776
9777    os2*)
9778      hardcode_libdir_flag_spec='-L$libdir'
9779      hardcode_minus_L=yes
9780      allow_undefined_flag=unsupported
9781      shrext_cmds=.dll
9782      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9783	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9784	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9785	$ECHO EXPORTS >> $output_objdir/$libname.def~
9786	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9787	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9788	emximp -o $lib $output_objdir/$libname.def'
9789      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9790	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9791	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9792	$ECHO EXPORTS >> $output_objdir/$libname.def~
9793	prefix_cmds="$SED"~
9794	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9795	  prefix_cmds="$prefix_cmds -e 1d";
9796	fi~
9797	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9798	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9799	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9800	emximp -o $lib $output_objdir/$libname.def'
9801      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9802      enable_shared_with_static_runtimes=yes
9803      ;;
9804
9805    interix[3-9]*)
9806      hardcode_direct=no
9807      hardcode_shlibpath_var=no
9808      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9809      export_dynamic_flag_spec='$wl-E'
9810      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9811      # Instead, shared libraries are loaded at an image base (0x10000000 by
9812      # default) and relocated if they conflict, which is a slow very memory
9813      # consuming and fragmenting process.  To avoid this, we pick a random,
9814      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9815      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9816      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9817      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'
9818      ;;
9819
9820    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9821      tmp_diet=no
9822      if test linux-dietlibc = "$host_os"; then
9823	case $cc_basename in
9824	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9825	esac
9826      fi
9827      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9828	 && test no = "$tmp_diet"
9829      then
9830	tmp_addflag=' $pic_flag'
9831	tmp_sharedflag='-shared'
9832	case $cc_basename,$host_cpu in
9833        pgcc*)				# Portland Group C compiler
9834	  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'
9835	  tmp_addflag=' $pic_flag'
9836	  ;;
9837	pgf77* | pgf90* | pgf95* | pgfortran*)
9838					# Portland Group f77 and f90 compilers
9839	  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'
9840	  tmp_addflag=' $pic_flag -Mnomain' ;;
9841	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9842	  tmp_addflag=' -i_dynamic' ;;
9843	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9844	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9845	ifc* | ifort*)			# Intel Fortran compiler
9846	  tmp_addflag=' -nofor_main' ;;
9847	lf95*)				# Lahey Fortran 8.1
9848	  whole_archive_flag_spec=
9849	  tmp_sharedflag='--shared' ;;
9850        nagfor*)                        # NAGFOR 5.3
9851          tmp_sharedflag='-Wl,-shared' ;;
9852	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9853	  tmp_sharedflag='-qmkshrobj'
9854	  tmp_addflag= ;;
9855	nvcc*)	# Cuda Compiler Driver 2.2
9856	  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'
9857	  compiler_needs_object=yes
9858	  ;;
9859	esac
9860	case `$CC -V 2>&1 | sed 5q` in
9861	*Sun\ C*)			# Sun C 5.9
9862	  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'
9863	  compiler_needs_object=yes
9864	  tmp_sharedflag='-G' ;;
9865	*Sun\ F*)			# Sun Fortran 8.3
9866	  tmp_sharedflag='-G' ;;
9867	esac
9868	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9869
9870        if test yes = "$supports_anon_versioning"; then
9871          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9872            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9873            echo "local: *; };" >> $output_objdir/$libname.ver~
9874            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9875        fi
9876
9877	case $cc_basename in
9878	tcc*)
9879	  export_dynamic_flag_spec='-rdynamic'
9880	  ;;
9881	xlf* | bgf* | bgxlf* | mpixlf*)
9882	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9883	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9884	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9885	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9886	  if test yes = "$supports_anon_versioning"; then
9887	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9888              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9889              echo "local: *; };" >> $output_objdir/$libname.ver~
9890              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9891	  fi
9892	  ;;
9893	esac
9894      else
9895        ld_shlibs=no
9896      fi
9897      ;;
9898
9899    netbsd* | netbsdelf*-gnu)
9900      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9901	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9902	wlarc=
9903      else
9904	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9905	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9906      fi
9907      ;;
9908
9909    solaris*)
9910      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9911	ld_shlibs=no
9912	cat <<_LT_EOF 1>&2
9913
9914*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9915*** create shared libraries on Solaris systems.  Therefore, libtool
9916*** is disabling shared libraries support.  We urge you to upgrade GNU
9917*** binutils to release 2.9.1 or newer.  Another option is to modify
9918*** your PATH or compiler configuration so that the native linker is
9919*** used, and then restart.
9920
9921_LT_EOF
9922      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9923	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9925      else
9926	ld_shlibs=no
9927      fi
9928      ;;
9929
9930    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9931      case `$LD -v 2>&1` in
9932        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9933	ld_shlibs=no
9934	cat <<_LT_EOF 1>&2
9935
9936*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9937*** reliably create shared libraries on SCO systems.  Therefore, libtool
9938*** is disabling shared libraries support.  We urge you to upgrade GNU
9939*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9940*** your PATH or compiler configuration so that the native linker is
9941*** used, and then restart.
9942
9943_LT_EOF
9944	;;
9945	*)
9946	  # For security reasons, it is highly recommended that you always
9947	  # use absolute paths for naming shared libraries, and exclude the
9948	  # DT_RUNPATH tag from executables and libraries.  But doing so
9949	  # requires that you compile everything twice, which is a pain.
9950	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9951	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9952	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9953	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9954	  else
9955	    ld_shlibs=no
9956	  fi
9957	;;
9958      esac
9959      ;;
9960
9961    sunos4*)
9962      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963      wlarc=
9964      hardcode_direct=yes
9965      hardcode_shlibpath_var=no
9966      ;;
9967
9968    *)
9969      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9970	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9971	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9972      else
9973	ld_shlibs=no
9974      fi
9975      ;;
9976    esac
9977
9978    if test no = "$ld_shlibs"; then
9979      runpath_var=
9980      hardcode_libdir_flag_spec=
9981      export_dynamic_flag_spec=
9982      whole_archive_flag_spec=
9983    fi
9984  else
9985    # PORTME fill in a description of your system's linker (not GNU ld)
9986    case $host_os in
9987    aix3*)
9988      allow_undefined_flag=unsupported
9989      always_export_symbols=yes
9990      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'
9991      # Note: this linker hardcodes the directories in LIBPATH if there
9992      # are no directories specified by -L.
9993      hardcode_minus_L=yes
9994      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9995	# Neither direct hardcoding nor static linking is supported with a
9996	# broken collect2.
9997	hardcode_direct=unsupported
9998      fi
9999      ;;
10000
10001    aix[4-9]*)
10002      if test ia64 = "$host_cpu"; then
10003	# On IA64, the linker does run time linking by default, so we don't
10004	# have to do anything special.
10005	aix_use_runtimelinking=no
10006	exp_sym_flag='-Bexport'
10007	no_entry_flag=
10008      else
10009	# If we're using GNU nm, then we don't want the "-C" option.
10010	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10011	# Without the "-l" option, or with the "-B" option, AIX nm treats
10012	# weak defined symbols like other global defined symbols, whereas
10013	# GNU nm marks them as "W".
10014	# While the 'weak' keyword is ignored in the Export File, we need
10015	# it in the Import File for the 'aix-soname' feature, so we have
10016	# to replace the "-B" option with "-P" for AIX nm.
10017	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10018	  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'
10019	else
10020	  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'
10021	fi
10022	aix_use_runtimelinking=no
10023
10024	# Test if we are trying to use run time linking or normal
10025	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10026	# have runtime linking enabled, and use it for executables.
10027	# For shared libraries, we enable/disable runtime linking
10028	# depending on the kind of the shared library created -
10029	# when "with_aix_soname,aix_use_runtimelinking" is:
10030	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10031	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10032	#            lib.a           static archive
10033	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10034	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10035	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10036	#            lib.a(lib.so.V) shared, rtl:no
10037	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10038	#            lib.a           static archive
10039	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10040	  for ld_flag in $LDFLAGS; do
10041	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10042	    aix_use_runtimelinking=yes
10043	    break
10044	  fi
10045	  done
10046	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10047	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10048	    # so we don't have lib.a shared libs to link our executables.
10049	    # We have to force runtime linking in this case.
10050	    aix_use_runtimelinking=yes
10051	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10052	  fi
10053	  ;;
10054	esac
10055
10056	exp_sym_flag='-bexport'
10057	no_entry_flag='-bnoentry'
10058      fi
10059
10060      # When large executables or shared objects are built, AIX ld can
10061      # have problems creating the table of contents.  If linking a library
10062      # or program results in "error TOC overflow" add -mminimal-toc to
10063      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10064      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10065
10066      archive_cmds=''
10067      hardcode_direct=yes
10068      hardcode_direct_absolute=yes
10069      hardcode_libdir_separator=':'
10070      link_all_deplibs=yes
10071      file_list_spec='$wl-f,'
10072      case $with_aix_soname,$aix_use_runtimelinking in
10073      aix,*) ;; # traditional, no import file
10074      svr4,* | *,yes) # use import file
10075	# The Import File defines what to hardcode.
10076	hardcode_direct=no
10077	hardcode_direct_absolute=no
10078	;;
10079      esac
10080
10081      if test yes = "$GCC"; then
10082	case $host_os in aix4.[012]|aix4.[012].*)
10083	# We only want to do this on AIX 4.2 and lower, the check
10084	# below for broken collect2 doesn't work under 4.3+
10085	  collect2name=`$CC -print-prog-name=collect2`
10086	  if test -f "$collect2name" &&
10087	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10088	  then
10089	  # We have reworked collect2
10090	  :
10091	  else
10092	  # We have old collect2
10093	  hardcode_direct=unsupported
10094	  # It fails to find uninstalled libraries when the uninstalled
10095	  # path is not listed in the libpath.  Setting hardcode_minus_L
10096	  # to unsupported forces relinking
10097	  hardcode_minus_L=yes
10098	  hardcode_libdir_flag_spec='-L$libdir'
10099	  hardcode_libdir_separator=
10100	  fi
10101	  ;;
10102	esac
10103	shared_flag='-shared'
10104	if test yes = "$aix_use_runtimelinking"; then
10105	  shared_flag="$shared_flag "'$wl-G'
10106	fi
10107	# Need to ensure runtime linking is disabled for the traditional
10108	# shared library, or the linker may eventually find shared libraries
10109	# /with/ Import File - we do not want to mix them.
10110	shared_flag_aix='-shared'
10111	shared_flag_svr4='-shared $wl-G'
10112      else
10113	# not using gcc
10114	if test ia64 = "$host_cpu"; then
10115	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10116	# chokes on -Wl,-G. The following line is correct:
10117	  shared_flag='-G'
10118	else
10119	  if test yes = "$aix_use_runtimelinking"; then
10120	    shared_flag='$wl-G'
10121	  else
10122	    shared_flag='$wl-bM:SRE'
10123	  fi
10124	  shared_flag_aix='$wl-bM:SRE'
10125	  shared_flag_svr4='$wl-G'
10126	fi
10127      fi
10128
10129      export_dynamic_flag_spec='$wl-bexpall'
10130      # It seems that -bexpall does not export symbols beginning with
10131      # underscore (_), so it is better to generate a list of symbols to export.
10132      always_export_symbols=yes
10133      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10134	# Warning - without using the other runtime loading flags (-brtl),
10135	# -berok will link without error, but may produce a broken library.
10136	allow_undefined_flag='-berok'
10137        # Determine the default libpath from the value encoded in an
10138        # empty executable.
10139        if test set = "${lt_cv_aix_libpath+set}"; then
10140  aix_libpath=$lt_cv_aix_libpath
10141else
10142  if ${lt_cv_aix_libpath_+:} false; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147
10148int
10149main ()
10150{
10151
10152  ;
10153  return 0;
10154}
10155_ACEOF
10156if ac_fn_c_try_link "$LINENO"; then :
10157
10158  lt_aix_libpath_sed='
10159      /Import File Strings/,/^$/ {
10160	  /^0/ {
10161	      s/^0  *\([^ ]*\) *$/\1/
10162	      p
10163	  }
10164      }'
10165  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10166  # Check for a 64-bit object if we didn't find anything.
10167  if test -z "$lt_cv_aix_libpath_"; then
10168    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10169  fi
10170fi
10171rm -f core conftest.err conftest.$ac_objext \
10172    conftest$ac_exeext conftest.$ac_ext
10173  if test -z "$lt_cv_aix_libpath_"; then
10174    lt_cv_aix_libpath_=/usr/lib:/lib
10175  fi
10176
10177fi
10178
10179  aix_libpath=$lt_cv_aix_libpath_
10180fi
10181
10182        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10183        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
10184      else
10185	if test ia64 = "$host_cpu"; then
10186	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10187	  allow_undefined_flag="-z nodefs"
10188	  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"
10189	else
10190	 # Determine the default libpath from the value encoded in an
10191	 # empty executable.
10192	 if test set = "${lt_cv_aix_libpath+set}"; then
10193  aix_libpath=$lt_cv_aix_libpath
10194else
10195  if ${lt_cv_aix_libpath_+:} false; then :
10196  $as_echo_n "(cached) " >&6
10197else
10198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h.  */
10200
10201int
10202main ()
10203{
10204
10205  ;
10206  return 0;
10207}
10208_ACEOF
10209if ac_fn_c_try_link "$LINENO"; then :
10210
10211  lt_aix_libpath_sed='
10212      /Import File Strings/,/^$/ {
10213	  /^0/ {
10214	      s/^0  *\([^ ]*\) *$/\1/
10215	      p
10216	  }
10217      }'
10218  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219  # Check for a 64-bit object if we didn't find anything.
10220  if test -z "$lt_cv_aix_libpath_"; then
10221    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222  fi
10223fi
10224rm -f core conftest.err conftest.$ac_objext \
10225    conftest$ac_exeext conftest.$ac_ext
10226  if test -z "$lt_cv_aix_libpath_"; then
10227    lt_cv_aix_libpath_=/usr/lib:/lib
10228  fi
10229
10230fi
10231
10232  aix_libpath=$lt_cv_aix_libpath_
10233fi
10234
10235	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10236	  # Warning - without using the other run time loading flags,
10237	  # -berok will link without error, but may produce a broken library.
10238	  no_undefined_flag=' $wl-bernotok'
10239	  allow_undefined_flag=' $wl-berok'
10240	  if test yes = "$with_gnu_ld"; then
10241	    # We only use this code for GNU lds that support --whole-archive.
10242	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10243	  else
10244	    # Exported symbols can be pulled into shared objects from archives
10245	    whole_archive_flag_spec='$convenience'
10246	  fi
10247	  archive_cmds_need_lc=yes
10248	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10249	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10250	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10251	  if test svr4 != "$with_aix_soname"; then
10252	    # This is similar to how AIX traditionally builds its shared libraries.
10253	    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'
10254	  fi
10255	  if test aix != "$with_aix_soname"; then
10256	    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'
10257	  else
10258	    # used by -dlpreopen to get the symbols
10259	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10260	  fi
10261	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10262	fi
10263      fi
10264      ;;
10265
10266    amigaos*)
10267      case $host_cpu in
10268      powerpc)
10269            # see comment about AmigaOS4 .so support
10270            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10271            archive_expsym_cmds=''
10272        ;;
10273      m68k)
10274            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)'
10275            hardcode_libdir_flag_spec='-L$libdir'
10276            hardcode_minus_L=yes
10277        ;;
10278      esac
10279      ;;
10280
10281    bsdi[45]*)
10282      export_dynamic_flag_spec=-rdynamic
10283      ;;
10284
10285    cygwin* | mingw* | pw32* | cegcc*)
10286      # When not using gcc, we currently assume that we are using
10287      # Microsoft Visual C++.
10288      # hardcode_libdir_flag_spec is actually meaningless, as there is
10289      # no search path for DLLs.
10290      case $cc_basename in
10291      cl*)
10292	# Native MSVC
10293	hardcode_libdir_flag_spec=' '
10294	allow_undefined_flag=unsupported
10295	always_export_symbols=yes
10296	file_list_spec='@'
10297	# Tell ltmain to make .lib files, not .a files.
10298	libext=lib
10299	# Tell ltmain to make .dll files, not .so files.
10300	shrext_cmds=.dll
10301	# FIXME: Setting linknames here is a bad hack.
10302	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10303	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10304            cp "$export_symbols" "$output_objdir/$soname.def";
10305            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10306          else
10307            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10308          fi~
10309          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10310          linknames='
10311	# The linker will not automatically build a static lib if we build a DLL.
10312	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10313	enable_shared_with_static_runtimes=yes
10314	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10315	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10316	# Don't use ranlib
10317	old_postinstall_cmds='chmod 644 $oldlib'
10318	postlink_cmds='lt_outputfile="@OUTPUT@"~
10319          lt_tool_outputfile="@TOOL_OUTPUT@"~
10320          case $lt_outputfile in
10321            *.exe|*.EXE) ;;
10322            *)
10323              lt_outputfile=$lt_outputfile.exe
10324              lt_tool_outputfile=$lt_tool_outputfile.exe
10325              ;;
10326          esac~
10327          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10328            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10329            $RM "$lt_outputfile.manifest";
10330          fi'
10331	;;
10332      *)
10333	# Assume MSVC wrapper
10334	hardcode_libdir_flag_spec=' '
10335	allow_undefined_flag=unsupported
10336	# Tell ltmain to make .lib files, not .a files.
10337	libext=lib
10338	# Tell ltmain to make .dll files, not .so files.
10339	shrext_cmds=.dll
10340	# FIXME: Setting linknames here is a bad hack.
10341	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10342	# The linker will automatically build a .lib file if we build a DLL.
10343	old_archive_from_new_cmds='true'
10344	# FIXME: Should let the user specify the lib program.
10345	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10346	enable_shared_with_static_runtimes=yes
10347	;;
10348      esac
10349      ;;
10350
10351    darwin* | rhapsody*)
10352
10353
10354  archive_cmds_need_lc=no
10355  hardcode_direct=no
10356  hardcode_automatic=yes
10357  hardcode_shlibpath_var=unsupported
10358  if test yes = "$lt_cv_ld_force_load"; then
10359    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\"`'
10360
10361  else
10362    whole_archive_flag_spec=''
10363  fi
10364  link_all_deplibs=yes
10365  allow_undefined_flag=$_lt_dar_allow_undefined
10366  case $cc_basename in
10367     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10368     *) _lt_dar_can_shared=$GCC ;;
10369  esac
10370  if test yes = "$_lt_dar_can_shared"; then
10371    output_verbose_link_cmd=func_echo_all
10372    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10373    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10374    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"
10375    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"
10376
10377  else
10378  ld_shlibs=no
10379  fi
10380
10381      ;;
10382
10383    dgux*)
10384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10385      hardcode_libdir_flag_spec='-L$libdir'
10386      hardcode_shlibpath_var=no
10387      ;;
10388
10389    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10390    # support.  Future versions do this automatically, but an explicit c++rt0.o
10391    # does not break anything, and helps significantly (at the cost of a little
10392    # extra space).
10393    freebsd2.2*)
10394      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10395      hardcode_libdir_flag_spec='-R$libdir'
10396      hardcode_direct=yes
10397      hardcode_shlibpath_var=no
10398      ;;
10399
10400    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10401    freebsd2.*)
10402      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10403      hardcode_direct=yes
10404      hardcode_minus_L=yes
10405      hardcode_shlibpath_var=no
10406      ;;
10407
10408    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10409    freebsd* | dragonfly*)
10410      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10411      hardcode_libdir_flag_spec='-R$libdir'
10412      hardcode_direct=yes
10413      hardcode_shlibpath_var=no
10414      ;;
10415
10416    hpux9*)
10417      if test yes = "$GCC"; then
10418	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'
10419      else
10420	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'
10421      fi
10422      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10423      hardcode_libdir_separator=:
10424      hardcode_direct=yes
10425
10426      # hardcode_minus_L: Not really in the search PATH,
10427      # but as the default location of the library.
10428      hardcode_minus_L=yes
10429      export_dynamic_flag_spec='$wl-E'
10430      ;;
10431
10432    hpux10*)
10433      if test yes,no = "$GCC,$with_gnu_ld"; then
10434	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10435      else
10436	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10437      fi
10438      if test no = "$with_gnu_ld"; then
10439	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10440	hardcode_libdir_separator=:
10441	hardcode_direct=yes
10442	hardcode_direct_absolute=yes
10443	export_dynamic_flag_spec='$wl-E'
10444	# hardcode_minus_L: Not really in the search PATH,
10445	# but as the default location of the library.
10446	hardcode_minus_L=yes
10447      fi
10448      ;;
10449
10450    hpux11*)
10451      if test yes,no = "$GCC,$with_gnu_ld"; then
10452	case $host_cpu in
10453	hppa*64*)
10454	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10455	  ;;
10456	ia64*)
10457	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10458	  ;;
10459	*)
10460	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10461	  ;;
10462	esac
10463      else
10464	case $host_cpu in
10465	hppa*64*)
10466	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10467	  ;;
10468	ia64*)
10469	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10470	  ;;
10471	*)
10472
10473	  # Older versions of the 11.00 compiler do not understand -b yet
10474	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10475	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10476$as_echo_n "checking if $CC understands -b... " >&6; }
10477if ${lt_cv_prog_compiler__b+:} false; then :
10478  $as_echo_n "(cached) " >&6
10479else
10480  lt_cv_prog_compiler__b=no
10481   save_LDFLAGS=$LDFLAGS
10482   LDFLAGS="$LDFLAGS -b"
10483   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10484   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10485     # The linker can only warn and ignore the option if not recognized
10486     # So say no if there are warnings
10487     if test -s conftest.err; then
10488       # Append any errors to the config.log.
10489       cat conftest.err 1>&5
10490       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10491       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10492       if diff conftest.exp conftest.er2 >/dev/null; then
10493         lt_cv_prog_compiler__b=yes
10494       fi
10495     else
10496       lt_cv_prog_compiler__b=yes
10497     fi
10498   fi
10499   $RM -r conftest*
10500   LDFLAGS=$save_LDFLAGS
10501
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10504$as_echo "$lt_cv_prog_compiler__b" >&6; }
10505
10506if test yes = "$lt_cv_prog_compiler__b"; then
10507    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10508else
10509    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10510fi
10511
10512	  ;;
10513	esac
10514      fi
10515      if test no = "$with_gnu_ld"; then
10516	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10517	hardcode_libdir_separator=:
10518
10519	case $host_cpu in
10520	hppa*64*|ia64*)
10521	  hardcode_direct=no
10522	  hardcode_shlibpath_var=no
10523	  ;;
10524	*)
10525	  hardcode_direct=yes
10526	  hardcode_direct_absolute=yes
10527	  export_dynamic_flag_spec='$wl-E'
10528
10529	  # hardcode_minus_L: Not really in the search PATH,
10530	  # but as the default location of the library.
10531	  hardcode_minus_L=yes
10532	  ;;
10533	esac
10534      fi
10535      ;;
10536
10537    irix5* | irix6* | nonstopux*)
10538      if test yes = "$GCC"; then
10539	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'
10540	# Try to use the -exported_symbol ld option, if it does not
10541	# work, assume that -exports_file does not work either and
10542	# implicitly export all symbols.
10543	# This should be the same for all languages, so no per-tag cache variable.
10544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10545$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10546if ${lt_cv_irix_exported_symbol+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  save_LDFLAGS=$LDFLAGS
10550	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10551	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h.  */
10553int foo (void) { return 0; }
10554_ACEOF
10555if ac_fn_c_try_link "$LINENO"; then :
10556  lt_cv_irix_exported_symbol=yes
10557else
10558  lt_cv_irix_exported_symbol=no
10559fi
10560rm -f core conftest.err conftest.$ac_objext \
10561    conftest$ac_exeext conftest.$ac_ext
10562           LDFLAGS=$save_LDFLAGS
10563fi
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10565$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10566	if test yes = "$lt_cv_irix_exported_symbol"; then
10567          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'
10568	fi
10569	link_all_deplibs=no
10570      else
10571	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'
10572	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'
10573      fi
10574      archive_cmds_need_lc='no'
10575      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10576      hardcode_libdir_separator=:
10577      inherit_rpath=yes
10578      link_all_deplibs=yes
10579      ;;
10580
10581    linux*)
10582      case $cc_basename in
10583      tcc*)
10584	# Fabrice Bellard et al's Tiny C Compiler
10585	ld_shlibs=yes
10586	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10587	;;
10588      esac
10589      ;;
10590
10591    netbsd* | netbsdelf*-gnu)
10592      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10593	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10594      else
10595	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10596      fi
10597      hardcode_libdir_flag_spec='-R$libdir'
10598      hardcode_direct=yes
10599      hardcode_shlibpath_var=no
10600      ;;
10601
10602    newsos6)
10603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604      hardcode_direct=yes
10605      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10606      hardcode_libdir_separator=:
10607      hardcode_shlibpath_var=no
10608      ;;
10609
10610    *nto* | *qnx*)
10611      ;;
10612
10613    openbsd* | bitrig*)
10614      if test -f /usr/libexec/ld.so; then
10615	hardcode_direct=yes
10616	hardcode_shlibpath_var=no
10617	hardcode_direct_absolute=yes
10618	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10619	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10620	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10621	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10622	  export_dynamic_flag_spec='$wl-E'
10623	else
10624	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10625	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10626	fi
10627      else
10628	ld_shlibs=no
10629      fi
10630      ;;
10631
10632    os2*)
10633      hardcode_libdir_flag_spec='-L$libdir'
10634      hardcode_minus_L=yes
10635      allow_undefined_flag=unsupported
10636      shrext_cmds=.dll
10637      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10638	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10639	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10640	$ECHO EXPORTS >> $output_objdir/$libname.def~
10641	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10642	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10643	emximp -o $lib $output_objdir/$libname.def'
10644      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10645	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10646	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10647	$ECHO EXPORTS >> $output_objdir/$libname.def~
10648	prefix_cmds="$SED"~
10649	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10650	  prefix_cmds="$prefix_cmds -e 1d";
10651	fi~
10652	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10653	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10654	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10655	emximp -o $lib $output_objdir/$libname.def'
10656      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10657      enable_shared_with_static_runtimes=yes
10658      ;;
10659
10660    osf3*)
10661      if test yes = "$GCC"; then
10662	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10663	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'
10664      else
10665	allow_undefined_flag=' -expect_unresolved \*'
10666	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'
10667      fi
10668      archive_cmds_need_lc='no'
10669      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10670      hardcode_libdir_separator=:
10671      ;;
10672
10673    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10674      if test yes = "$GCC"; then
10675	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10676	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'
10677	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10678      else
10679	allow_undefined_flag=' -expect_unresolved \*'
10680	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'
10681	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~
10682          $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'
10683
10684	# Both c and cxx compiler support -rpath directly
10685	hardcode_libdir_flag_spec='-rpath $libdir'
10686      fi
10687      archive_cmds_need_lc='no'
10688      hardcode_libdir_separator=:
10689      ;;
10690
10691    solaris*)
10692      no_undefined_flag=' -z defs'
10693      if test yes = "$GCC"; then
10694	wlarc='$wl'
10695	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10696	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10697          $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'
10698      else
10699	case `$CC -V 2>&1` in
10700	*"Compilers 5.0"*)
10701	  wlarc=''
10702	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10704            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10705	  ;;
10706	*)
10707	  wlarc='$wl'
10708	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10709	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10710            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10711	  ;;
10712	esac
10713      fi
10714      hardcode_libdir_flag_spec='-R$libdir'
10715      hardcode_shlibpath_var=no
10716      case $host_os in
10717      solaris2.[0-5] | solaris2.[0-5].*) ;;
10718      *)
10719	# The compiler driver will combine and reorder linker options,
10720	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10721	# but is careful enough not to reorder.
10722	# Supported since Solaris 2.6 (maybe 2.5.1?)
10723	if test yes = "$GCC"; then
10724	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10725	else
10726	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10727	fi
10728	;;
10729      esac
10730      link_all_deplibs=yes
10731      ;;
10732
10733    sunos4*)
10734      if test sequent = "$host_vendor"; then
10735	# Use $CC to link under sequent, because it throws in some extra .o
10736	# files that make .init and .fini sections work.
10737	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10738      else
10739	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10740      fi
10741      hardcode_libdir_flag_spec='-L$libdir'
10742      hardcode_direct=yes
10743      hardcode_minus_L=yes
10744      hardcode_shlibpath_var=no
10745      ;;
10746
10747    sysv4)
10748      case $host_vendor in
10749	sni)
10750	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751	  hardcode_direct=yes # is this really true???
10752	;;
10753	siemens)
10754	  ## LD is ld it makes a PLAMLIB
10755	  ## CC just makes a GrossModule.
10756	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10757	  reload_cmds='$CC -r -o $output$reload_objs'
10758	  hardcode_direct=no
10759        ;;
10760	motorola)
10761	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10763	;;
10764      esac
10765      runpath_var='LD_RUN_PATH'
10766      hardcode_shlibpath_var=no
10767      ;;
10768
10769    sysv4.3*)
10770      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771      hardcode_shlibpath_var=no
10772      export_dynamic_flag_spec='-Bexport'
10773      ;;
10774
10775    sysv4*MP*)
10776      if test -d /usr/nec; then
10777	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778	hardcode_shlibpath_var=no
10779	runpath_var=LD_RUN_PATH
10780	hardcode_runpath_var=yes
10781	ld_shlibs=yes
10782      fi
10783      ;;
10784
10785    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10786      no_undefined_flag='$wl-z,text'
10787      archive_cmds_need_lc=no
10788      hardcode_shlibpath_var=no
10789      runpath_var='LD_RUN_PATH'
10790
10791      if test yes = "$GCC"; then
10792	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794      else
10795	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797      fi
10798      ;;
10799
10800    sysv5* | sco3.2v5* | sco5v6*)
10801      # Note: We CANNOT use -z defs as we might desire, because we do not
10802      # link with -lc, and that would cause any symbols used from libc to
10803      # always be unresolved, which means just about no library would
10804      # ever link correctly.  If we're not using GNU ld we use -z text
10805      # though, which does catch some bad symbols but isn't as heavy-handed
10806      # as -z defs.
10807      no_undefined_flag='$wl-z,text'
10808      allow_undefined_flag='$wl-z,nodefs'
10809      archive_cmds_need_lc=no
10810      hardcode_shlibpath_var=no
10811      hardcode_libdir_flag_spec='$wl-R,$libdir'
10812      hardcode_libdir_separator=':'
10813      link_all_deplibs=yes
10814      export_dynamic_flag_spec='$wl-Bexport'
10815      runpath_var='LD_RUN_PATH'
10816
10817      if test yes = "$GCC"; then
10818	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820      else
10821	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823      fi
10824      ;;
10825
10826    uts4*)
10827      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828      hardcode_libdir_flag_spec='-L$libdir'
10829      hardcode_shlibpath_var=no
10830      ;;
10831
10832    *)
10833      ld_shlibs=no
10834      ;;
10835    esac
10836
10837    if test sni = "$host_vendor"; then
10838      case $host in
10839      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10840	export_dynamic_flag_spec='$wl-Blargedynsym'
10841	;;
10842      esac
10843    fi
10844  fi
10845
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10847$as_echo "$ld_shlibs" >&6; }
10848test no = "$ld_shlibs" && can_build_shared=no
10849
10850with_gnu_ld=$with_gnu_ld
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866#
10867# Do we need to explicitly link libc?
10868#
10869case "x$archive_cmds_need_lc" in
10870x|xyes)
10871  # Assume -lc should be added
10872  archive_cmds_need_lc=yes
10873
10874  if test yes,yes = "$GCC,$enable_shared"; then
10875    case $archive_cmds in
10876    *'~'*)
10877      # FIXME: we may have to deal with multi-command sequences.
10878      ;;
10879    '$CC '*)
10880      # Test whether the compiler implicitly links with -lc since on some
10881      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10882      # to ld, don't add -lc before -lgcc.
10883      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10884$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10885if ${lt_cv_archive_cmds_need_lc+:} false; then :
10886  $as_echo_n "(cached) " >&6
10887else
10888  $RM conftest*
10889	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10890
10891	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10892  (eval $ac_compile) 2>&5
10893  ac_status=$?
10894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895  test $ac_status = 0; } 2>conftest.err; then
10896	  soname=conftest
10897	  lib=conftest
10898	  libobjs=conftest.$ac_objext
10899	  deplibs=
10900	  wl=$lt_prog_compiler_wl
10901	  pic_flag=$lt_prog_compiler_pic
10902	  compiler_flags=-v
10903	  linker_flags=-v
10904	  verstring=
10905	  output_objdir=.
10906	  libname=conftest
10907	  lt_save_allow_undefined_flag=$allow_undefined_flag
10908	  allow_undefined_flag=
10909	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10910  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10911  ac_status=$?
10912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10913  test $ac_status = 0; }
10914	  then
10915	    lt_cv_archive_cmds_need_lc=no
10916	  else
10917	    lt_cv_archive_cmds_need_lc=yes
10918	  fi
10919	  allow_undefined_flag=$lt_save_allow_undefined_flag
10920	else
10921	  cat conftest.err 1>&5
10922	fi
10923	$RM conftest*
10924
10925fi
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10927$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10928      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10929      ;;
10930    esac
10931  fi
10932  ;;
10933esac
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11087$as_echo_n "checking dynamic linker characteristics... " >&6; }
11088
11089if test yes = "$GCC"; then
11090  case $host_os in
11091    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11092    *) lt_awk_arg='/^libraries:/' ;;
11093  esac
11094  case $host_os in
11095    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11096    *) lt_sed_strip_eq='s|=/|/|g' ;;
11097  esac
11098  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11099  case $lt_search_path_spec in
11100  *\;*)
11101    # if the path contains ";" then we assume it to be the separator
11102    # otherwise default to the standard path separator (i.e. ":") - it is
11103    # assumed that no part of a normal pathname contains ";" but that should
11104    # okay in the real world where ";" in dirpaths is itself problematic.
11105    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11106    ;;
11107  *)
11108    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11109    ;;
11110  esac
11111  # Ok, now we have the path, separated by spaces, we can step through it
11112  # and add multilib dir if necessary...
11113  lt_tmp_lt_search_path_spec=
11114  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11115  # ...but if some path component already ends with the multilib dir we assume
11116  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11117  case "$lt_multi_os_dir; $lt_search_path_spec " in
11118  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11119    lt_multi_os_dir=
11120    ;;
11121  esac
11122  for lt_sys_path in $lt_search_path_spec; do
11123    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11124      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11125    elif test -n "$lt_multi_os_dir"; then
11126      test -d "$lt_sys_path" && \
11127	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11128    fi
11129  done
11130  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11131BEGIN {RS = " "; FS = "/|\n";} {
11132  lt_foo = "";
11133  lt_count = 0;
11134  for (lt_i = NF; lt_i > 0; lt_i--) {
11135    if ($lt_i != "" && $lt_i != ".") {
11136      if ($lt_i == "..") {
11137        lt_count++;
11138      } else {
11139        if (lt_count == 0) {
11140          lt_foo = "/" $lt_i lt_foo;
11141        } else {
11142          lt_count--;
11143        }
11144      }
11145    }
11146  }
11147  if (lt_foo != "") { lt_freq[lt_foo]++; }
11148  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11149}'`
11150  # AWK program above erroneously prepends '/' to C:/dos/paths
11151  # for these hosts.
11152  case $host_os in
11153    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11154      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11155  esac
11156  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11157else
11158  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11159fi
11160library_names_spec=
11161libname_spec='lib$name'
11162soname_spec=
11163shrext_cmds=.so
11164postinstall_cmds=
11165postuninstall_cmds=
11166finish_cmds=
11167finish_eval=
11168shlibpath_var=
11169shlibpath_overrides_runpath=unknown
11170version_type=none
11171dynamic_linker="$host_os ld.so"
11172sys_lib_dlsearch_path_spec="/lib /usr/lib"
11173need_lib_prefix=unknown
11174hardcode_into_libs=no
11175
11176# when you set need_version to no, make sure it does not cause -set_version
11177# flags to be left without arguments
11178need_version=unknown
11179
11180
11181
11182case $host_os in
11183aix3*)
11184  version_type=linux # correct to gnu/linux during the next big refactor
11185  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11186  shlibpath_var=LIBPATH
11187
11188  # AIX 3 has no versioning support, so we append a major version to the name.
11189  soname_spec='$libname$release$shared_ext$major'
11190  ;;
11191
11192aix[4-9]*)
11193  version_type=linux # correct to gnu/linux during the next big refactor
11194  need_lib_prefix=no
11195  need_version=no
11196  hardcode_into_libs=yes
11197  if test ia64 = "$host_cpu"; then
11198    # AIX 5 supports IA64
11199    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11200    shlibpath_var=LD_LIBRARY_PATH
11201  else
11202    # With GCC up to 2.95.x, collect2 would create an import file
11203    # for dependence libraries.  The import file would start with
11204    # the line '#! .'.  This would cause the generated library to
11205    # depend on '.', always an invalid library.  This was fixed in
11206    # development snapshots of GCC prior to 3.0.
11207    case $host_os in
11208      aix4 | aix4.[01] | aix4.[01].*)
11209      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11210	   echo ' yes '
11211	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11212	:
11213      else
11214	can_build_shared=no
11215      fi
11216      ;;
11217    esac
11218    # Using Import Files as archive members, it is possible to support
11219    # filename-based versioning of shared library archives on AIX. While
11220    # this would work for both with and without runtime linking, it will
11221    # prevent static linking of such archives. So we do filename-based
11222    # shared library versioning with .so extension only, which is used
11223    # when both runtime linking and shared linking is enabled.
11224    # Unfortunately, runtime linking may impact performance, so we do
11225    # not want this to be the default eventually. Also, we use the
11226    # versioned .so libs for executables only if there is the -brtl
11227    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11228    # To allow for filename-based versioning support, we need to create
11229    # libNAME.so.V as an archive file, containing:
11230    # *) an Import File, referring to the versioned filename of the
11231    #    archive as well as the shared archive member, telling the
11232    #    bitwidth (32 or 64) of that shared object, and providing the
11233    #    list of exported symbols of that shared object, eventually
11234    #    decorated with the 'weak' keyword
11235    # *) the shared object with the F_LOADONLY flag set, to really avoid
11236    #    it being seen by the linker.
11237    # At run time we better use the real file rather than another symlink,
11238    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11239
11240    case $with_aix_soname,$aix_use_runtimelinking in
11241    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11242    # soname into executable. Probably we can add versioning support to
11243    # collect2, so additional links can be useful in future.
11244    aix,yes) # traditional libtool
11245      dynamic_linker='AIX unversionable lib.so'
11246      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11247      # instead of lib<name>.a to let people know that these are not
11248      # typical AIX shared libraries.
11249      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11250      ;;
11251    aix,no) # traditional AIX only
11252      dynamic_linker='AIX lib.a(lib.so.V)'
11253      # We preserve .a as extension for shared libraries through AIX4.2
11254      # and later when we are not doing run time linking.
11255      library_names_spec='$libname$release.a $libname.a'
11256      soname_spec='$libname$release$shared_ext$major'
11257      ;;
11258    svr4,*) # full svr4 only
11259      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11260      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11261      # We do not specify a path in Import Files, so LIBPATH fires.
11262      shlibpath_overrides_runpath=yes
11263      ;;
11264    *,yes) # both, prefer svr4
11265      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11266      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11267      # unpreferred sharedlib libNAME.a needs extra handling
11268      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"'
11269      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"'
11270      # We do not specify a path in Import Files, so LIBPATH fires.
11271      shlibpath_overrides_runpath=yes
11272      ;;
11273    *,no) # both, prefer aix
11274      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11275      library_names_spec='$libname$release.a $libname.a'
11276      soname_spec='$libname$release$shared_ext$major'
11277      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11278      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)'
11279      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"'
11280      ;;
11281    esac
11282    shlibpath_var=LIBPATH
11283  fi
11284  ;;
11285
11286amigaos*)
11287  case $host_cpu in
11288  powerpc)
11289    # Since July 2007 AmigaOS4 officially supports .so libraries.
11290    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11291    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292    ;;
11293  m68k)
11294    library_names_spec='$libname.ixlibrary $libname.a'
11295    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11296    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'
11297    ;;
11298  esac
11299  ;;
11300
11301beos*)
11302  library_names_spec='$libname$shared_ext'
11303  dynamic_linker="$host_os ld.so"
11304  shlibpath_var=LIBRARY_PATH
11305  ;;
11306
11307bsdi[45]*)
11308  version_type=linux # correct to gnu/linux during the next big refactor
11309  need_version=no
11310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311  soname_spec='$libname$release$shared_ext$major'
11312  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11313  shlibpath_var=LD_LIBRARY_PATH
11314  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11315  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11316  # the default ld.so.conf also contains /usr/contrib/lib and
11317  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11318  # libtool to hard-code these into programs
11319  ;;
11320
11321cygwin* | mingw* | pw32* | cegcc*)
11322  version_type=windows
11323  shrext_cmds=.dll
11324  need_version=no
11325  need_lib_prefix=no
11326
11327  case $GCC,$cc_basename in
11328  yes,*)
11329    # gcc
11330    library_names_spec='$libname.dll.a'
11331    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11332    postinstall_cmds='base_file=`basename \$file`~
11333      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11334      dldir=$destdir/`dirname \$dlpath`~
11335      test -d \$dldir || mkdir -p \$dldir~
11336      $install_prog $dir/$dlname \$dldir/$dlname~
11337      chmod a+x \$dldir/$dlname~
11338      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11339        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11340      fi'
11341    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11342      dlpath=$dir/\$dldll~
11343       $RM \$dlpath'
11344    shlibpath_overrides_runpath=yes
11345
11346    case $host_os in
11347    cygwin*)
11348      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11349      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11350
11351      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11352      ;;
11353    mingw* | cegcc*)
11354      # MinGW DLLs use traditional 'lib' prefix
11355      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11356      ;;
11357    pw32*)
11358      # pw32 DLLs use 'pw' prefix rather than 'lib'
11359      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11360      ;;
11361    esac
11362    dynamic_linker='Win32 ld.exe'
11363    ;;
11364
11365  *,cl*)
11366    # Native MSVC
11367    libname_spec='$name'
11368    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11369    library_names_spec='$libname.dll.lib'
11370
11371    case $build_os in
11372    mingw*)
11373      sys_lib_search_path_spec=
11374      lt_save_ifs=$IFS
11375      IFS=';'
11376      for lt_path in $LIB
11377      do
11378        IFS=$lt_save_ifs
11379        # Let DOS variable expansion print the short 8.3 style file name.
11380        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11381        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11382      done
11383      IFS=$lt_save_ifs
11384      # Convert to MSYS style.
11385      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11386      ;;
11387    cygwin*)
11388      # Convert to unix form, then to dos form, then back to unix form
11389      # but this time dos style (no spaces!) so that the unix form looks
11390      # like /cygdrive/c/PROGRA~1:/cygdr...
11391      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11392      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11393      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11394      ;;
11395    *)
11396      sys_lib_search_path_spec=$LIB
11397      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11398        # It is most probably a Windows format PATH.
11399        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11400      else
11401        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11402      fi
11403      # FIXME: find the short name or the path components, as spaces are
11404      # common. (e.g. "Program Files" -> "PROGRA~1")
11405      ;;
11406    esac
11407
11408    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11409    postinstall_cmds='base_file=`basename \$file`~
11410      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11411      dldir=$destdir/`dirname \$dlpath`~
11412      test -d \$dldir || mkdir -p \$dldir~
11413      $install_prog $dir/$dlname \$dldir/$dlname'
11414    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11415      dlpath=$dir/\$dldll~
11416       $RM \$dlpath'
11417    shlibpath_overrides_runpath=yes
11418    dynamic_linker='Win32 link.exe'
11419    ;;
11420
11421  *)
11422    # Assume MSVC wrapper
11423    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11424    dynamic_linker='Win32 ld.exe'
11425    ;;
11426  esac
11427  # FIXME: first we should search . and the directory the executable is in
11428  shlibpath_var=PATH
11429  ;;
11430
11431darwin* | rhapsody*)
11432  dynamic_linker="$host_os dyld"
11433  version_type=darwin
11434  need_lib_prefix=no
11435  need_version=no
11436  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11437  soname_spec='$libname$release$major$shared_ext'
11438  shlibpath_overrides_runpath=yes
11439  shlibpath_var=DYLD_LIBRARY_PATH
11440  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11441
11442  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11443  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11444  ;;
11445
11446dgux*)
11447  version_type=linux # correct to gnu/linux during the next big refactor
11448  need_lib_prefix=no
11449  need_version=no
11450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451  soname_spec='$libname$release$shared_ext$major'
11452  shlibpath_var=LD_LIBRARY_PATH
11453  ;;
11454
11455freebsd* | dragonfly*)
11456  # DragonFly does not have aout.  When/if they implement a new
11457  # versioning mechanism, adjust this.
11458  if test -x /usr/bin/objformat; then
11459    objformat=`/usr/bin/objformat`
11460  else
11461    case $host_os in
11462    freebsd[23].*) objformat=aout ;;
11463    *) objformat=elf ;;
11464    esac
11465  fi
11466  version_type=freebsd-$objformat
11467  case $version_type in
11468    freebsd-elf*)
11469      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470      soname_spec='$libname$release$shared_ext$major'
11471      need_version=no
11472      need_lib_prefix=no
11473      ;;
11474    freebsd-*)
11475      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11476      need_version=yes
11477      ;;
11478  esac
11479  shlibpath_var=LD_LIBRARY_PATH
11480  case $host_os in
11481  freebsd2.*)
11482    shlibpath_overrides_runpath=yes
11483    ;;
11484  freebsd3.[01]* | freebsdelf3.[01]*)
11485    shlibpath_overrides_runpath=yes
11486    hardcode_into_libs=yes
11487    ;;
11488  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11489  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11490    shlibpath_overrides_runpath=no
11491    hardcode_into_libs=yes
11492    ;;
11493  *) # from 4.6 on, and DragonFly
11494    shlibpath_overrides_runpath=yes
11495    hardcode_into_libs=yes
11496    ;;
11497  esac
11498  ;;
11499
11500haiku*)
11501  version_type=linux # correct to gnu/linux during the next big refactor
11502  need_lib_prefix=no
11503  need_version=no
11504  dynamic_linker="$host_os runtime_loader"
11505  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506  soname_spec='$libname$release$shared_ext$major'
11507  shlibpath_var=LIBRARY_PATH
11508  shlibpath_overrides_runpath=no
11509  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11510  hardcode_into_libs=yes
11511  ;;
11512
11513hpux9* | hpux10* | hpux11*)
11514  # Give a soname corresponding to the major version so that dld.sl refuses to
11515  # link against other versions.
11516  version_type=sunos
11517  need_lib_prefix=no
11518  need_version=no
11519  case $host_cpu in
11520  ia64*)
11521    shrext_cmds='.so'
11522    hardcode_into_libs=yes
11523    dynamic_linker="$host_os dld.so"
11524    shlibpath_var=LD_LIBRARY_PATH
11525    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11526    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11527    soname_spec='$libname$release$shared_ext$major'
11528    if test 32 = "$HPUX_IA64_MODE"; then
11529      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11530      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11531    else
11532      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11533      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11534    fi
11535    ;;
11536  hppa*64*)
11537    shrext_cmds='.sl'
11538    hardcode_into_libs=yes
11539    dynamic_linker="$host_os dld.sl"
11540    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11541    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11542    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543    soname_spec='$libname$release$shared_ext$major'
11544    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11545    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11546    ;;
11547  *)
11548    shrext_cmds='.sl'
11549    dynamic_linker="$host_os dld.sl"
11550    shlibpath_var=SHLIB_PATH
11551    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11552    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553    soname_spec='$libname$release$shared_ext$major'
11554    ;;
11555  esac
11556  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11557  postinstall_cmds='chmod 555 $lib'
11558  # or fails outright, so override atomically:
11559  install_override_mode=555
11560  ;;
11561
11562interix[3-9]*)
11563  version_type=linux # correct to gnu/linux during the next big refactor
11564  need_lib_prefix=no
11565  need_version=no
11566  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11567  soname_spec='$libname$release$shared_ext$major'
11568  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11569  shlibpath_var=LD_LIBRARY_PATH
11570  shlibpath_overrides_runpath=no
11571  hardcode_into_libs=yes
11572  ;;
11573
11574irix5* | irix6* | nonstopux*)
11575  case $host_os in
11576    nonstopux*) version_type=nonstopux ;;
11577    *)
11578	if test yes = "$lt_cv_prog_gnu_ld"; then
11579		version_type=linux # correct to gnu/linux during the next big refactor
11580	else
11581		version_type=irix
11582	fi ;;
11583  esac
11584  need_lib_prefix=no
11585  need_version=no
11586  soname_spec='$libname$release$shared_ext$major'
11587  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11588  case $host_os in
11589  irix5* | nonstopux*)
11590    libsuff= shlibsuff=
11591    ;;
11592  *)
11593    case $LD in # libtool.m4 will add one of these switches to LD
11594    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11595      libsuff= shlibsuff= libmagic=32-bit;;
11596    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11597      libsuff=32 shlibsuff=N32 libmagic=N32;;
11598    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11599      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11600    *) libsuff= shlibsuff= libmagic=never-match;;
11601    esac
11602    ;;
11603  esac
11604  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11605  shlibpath_overrides_runpath=no
11606  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11607  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11608  hardcode_into_libs=yes
11609  ;;
11610
11611# No shared lib support for Linux oldld, aout, or coff.
11612linux*oldld* | linux*aout* | linux*coff*)
11613  dynamic_linker=no
11614  ;;
11615
11616linux*android*)
11617  version_type=none # Android doesn't support versioned libraries.
11618  need_lib_prefix=no
11619  need_version=no
11620  library_names_spec='$libname$release$shared_ext'
11621  soname_spec='$libname$release$shared_ext'
11622  finish_cmds=
11623  shlibpath_var=LD_LIBRARY_PATH
11624  shlibpath_overrides_runpath=yes
11625
11626  # This implies no fast_install, which is unacceptable.
11627  # Some rework will be needed to allow for fast_install
11628  # before this can be enabled.
11629  hardcode_into_libs=yes
11630
11631  dynamic_linker='Android linker'
11632  # Don't embed -rpath directories since the linker doesn't support them.
11633  hardcode_libdir_flag_spec='-L$libdir'
11634  ;;
11635
11636# This must be glibc/ELF.
11637linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11638  version_type=linux # correct to gnu/linux during the next big refactor
11639  need_lib_prefix=no
11640  need_version=no
11641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642  soname_spec='$libname$release$shared_ext$major'
11643  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11644  shlibpath_var=LD_LIBRARY_PATH
11645  shlibpath_overrides_runpath=no
11646
11647  # Some binutils ld are patched to set DT_RUNPATH
11648  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11649  $as_echo_n "(cached) " >&6
11650else
11651  lt_cv_shlibpath_overrides_runpath=no
11652    save_LDFLAGS=$LDFLAGS
11653    save_libdir=$libdir
11654    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11655	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11656    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657/* end confdefs.h.  */
11658
11659int
11660main ()
11661{
11662
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667if ac_fn_c_try_link "$LINENO"; then :
11668  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11669  lt_cv_shlibpath_overrides_runpath=yes
11670fi
11671fi
11672rm -f core conftest.err conftest.$ac_objext \
11673    conftest$ac_exeext conftest.$ac_ext
11674    LDFLAGS=$save_LDFLAGS
11675    libdir=$save_libdir
11676
11677fi
11678
11679  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11680
11681  # This implies no fast_install, which is unacceptable.
11682  # Some rework will be needed to allow for fast_install
11683  # before this can be enabled.
11684  hardcode_into_libs=yes
11685
11686  # Ideally, we could use ldconfig to report *all* directores which are
11687  # searched for libraries, however this is still not possible.  Aside from not
11688  # being certain /sbin/ldconfig is available, command
11689  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11690  # even though it is searched at run-time.  Try to do the best guess by
11691  # appending ld.so.conf contents (and includes) to the search path.
11692  if test -f /etc/ld.so.conf; then
11693    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' ' '`
11694    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11695  fi
11696
11697  # We used to test for /lib/ld.so.1 and disable shared libraries on
11698  # powerpc, because MkLinux only supported shared libraries with the
11699  # GNU dynamic linker.  Since this was broken with cross compilers,
11700  # most powerpc-linux boxes support dynamic linking these days and
11701  # people can always --disable-shared, the test was removed, and we
11702  # assume the GNU/Linux dynamic linker is in use.
11703  dynamic_linker='GNU/Linux ld.so'
11704  ;;
11705
11706netbsdelf*-gnu)
11707  version_type=linux
11708  need_lib_prefix=no
11709  need_version=no
11710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11711  soname_spec='${libname}${release}${shared_ext}$major'
11712  shlibpath_var=LD_LIBRARY_PATH
11713  shlibpath_overrides_runpath=no
11714  hardcode_into_libs=yes
11715  dynamic_linker='NetBSD ld.elf_so'
11716  ;;
11717
11718netbsd*)
11719  version_type=sunos
11720  need_lib_prefix=no
11721  need_version=no
11722  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11723    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11724    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11725    dynamic_linker='NetBSD (a.out) ld.so'
11726  else
11727    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11728    soname_spec='$libname$release$shared_ext$major'
11729    dynamic_linker='NetBSD ld.elf_so'
11730  fi
11731  shlibpath_var=LD_LIBRARY_PATH
11732  shlibpath_overrides_runpath=yes
11733  hardcode_into_libs=yes
11734  ;;
11735
11736newsos6)
11737  version_type=linux # correct to gnu/linux during the next big refactor
11738  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11739  shlibpath_var=LD_LIBRARY_PATH
11740  shlibpath_overrides_runpath=yes
11741  ;;
11742
11743*nto* | *qnx*)
11744  version_type=qnx
11745  need_lib_prefix=no
11746  need_version=no
11747  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11748  soname_spec='$libname$release$shared_ext$major'
11749  shlibpath_var=LD_LIBRARY_PATH
11750  shlibpath_overrides_runpath=no
11751  hardcode_into_libs=yes
11752  dynamic_linker='ldqnx.so'
11753  ;;
11754
11755openbsd* | bitrig*)
11756  version_type=sunos
11757  sys_lib_dlsearch_path_spec=/usr/lib
11758  need_lib_prefix=no
11759  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11760    need_version=no
11761  else
11762    need_version=yes
11763  fi
11764  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11765  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11766  shlibpath_var=LD_LIBRARY_PATH
11767  shlibpath_overrides_runpath=yes
11768  ;;
11769
11770os2*)
11771  libname_spec='$name'
11772  version_type=windows
11773  shrext_cmds=.dll
11774  need_version=no
11775  need_lib_prefix=no
11776  # OS/2 can only load a DLL with a base name of 8 characters or less.
11777  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11778    v=$($ECHO $release$versuffix | tr -d .-);
11779    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11780    $ECHO $n$v`$shared_ext'
11781  library_names_spec='${libname}_dll.$libext'
11782  dynamic_linker='OS/2 ld.exe'
11783  shlibpath_var=BEGINLIBPATH
11784  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11785  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786  postinstall_cmds='base_file=`basename \$file`~
11787    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11788    dldir=$destdir/`dirname \$dlpath`~
11789    test -d \$dldir || mkdir -p \$dldir~
11790    $install_prog $dir/$dlname \$dldir/$dlname~
11791    chmod a+x \$dldir/$dlname~
11792    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11793      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11794    fi'
11795  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11796    dlpath=$dir/\$dldll~
11797    $RM \$dlpath'
11798  ;;
11799
11800osf3* | osf4* | osf5*)
11801  version_type=osf
11802  need_lib_prefix=no
11803  need_version=no
11804  soname_spec='$libname$release$shared_ext$major'
11805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11806  shlibpath_var=LD_LIBRARY_PATH
11807  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11808  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11809  ;;
11810
11811rdos*)
11812  dynamic_linker=no
11813  ;;
11814
11815solaris*)
11816  version_type=linux # correct to gnu/linux during the next big refactor
11817  need_lib_prefix=no
11818  need_version=no
11819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11820  soname_spec='$libname$release$shared_ext$major'
11821  shlibpath_var=LD_LIBRARY_PATH
11822  shlibpath_overrides_runpath=yes
11823  hardcode_into_libs=yes
11824  # ldd complains unless libraries are executable
11825  postinstall_cmds='chmod +x $lib'
11826  ;;
11827
11828sunos4*)
11829  version_type=sunos
11830  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11831  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11832  shlibpath_var=LD_LIBRARY_PATH
11833  shlibpath_overrides_runpath=yes
11834  if test yes = "$with_gnu_ld"; then
11835    need_lib_prefix=no
11836  fi
11837  need_version=yes
11838  ;;
11839
11840sysv4 | sysv4.3*)
11841  version_type=linux # correct to gnu/linux during the next big refactor
11842  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11843  soname_spec='$libname$release$shared_ext$major'
11844  shlibpath_var=LD_LIBRARY_PATH
11845  case $host_vendor in
11846    sni)
11847      shlibpath_overrides_runpath=no
11848      need_lib_prefix=no
11849      runpath_var=LD_RUN_PATH
11850      ;;
11851    siemens)
11852      need_lib_prefix=no
11853      ;;
11854    motorola)
11855      need_lib_prefix=no
11856      need_version=no
11857      shlibpath_overrides_runpath=no
11858      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11859      ;;
11860  esac
11861  ;;
11862
11863sysv4*MP*)
11864  if test -d /usr/nec; then
11865    version_type=linux # correct to gnu/linux during the next big refactor
11866    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11867    soname_spec='$libname$shared_ext.$major'
11868    shlibpath_var=LD_LIBRARY_PATH
11869  fi
11870  ;;
11871
11872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873  version_type=sco
11874  need_lib_prefix=no
11875  need_version=no
11876  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11877  soname_spec='$libname$release$shared_ext$major'
11878  shlibpath_var=LD_LIBRARY_PATH
11879  shlibpath_overrides_runpath=yes
11880  hardcode_into_libs=yes
11881  if test yes = "$with_gnu_ld"; then
11882    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11883  else
11884    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11885    case $host_os in
11886      sco3.2v5*)
11887        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11888	;;
11889    esac
11890  fi
11891  sys_lib_dlsearch_path_spec='/usr/lib'
11892  ;;
11893
11894tpf*)
11895  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11896  version_type=linux # correct to gnu/linux during the next big refactor
11897  need_lib_prefix=no
11898  need_version=no
11899  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11900  shlibpath_var=LD_LIBRARY_PATH
11901  shlibpath_overrides_runpath=no
11902  hardcode_into_libs=yes
11903  ;;
11904
11905uts4*)
11906  version_type=linux # correct to gnu/linux during the next big refactor
11907  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11908  soname_spec='$libname$release$shared_ext$major'
11909  shlibpath_var=LD_LIBRARY_PATH
11910  ;;
11911
11912*)
11913  dynamic_linker=no
11914  ;;
11915esac
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11917$as_echo "$dynamic_linker" >&6; }
11918test no = "$dynamic_linker" && can_build_shared=no
11919
11920variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11921if test yes = "$GCC"; then
11922  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11923fi
11924
11925if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11926  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11927fi
11928
11929if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11930  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11931fi
11932
11933# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11934configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11935
11936# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11937func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11938
11939# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11940configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12039$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12040hardcode_action=
12041if test -n "$hardcode_libdir_flag_spec" ||
12042   test -n "$runpath_var" ||
12043   test yes = "$hardcode_automatic"; then
12044
12045  # We can hardcode non-existent directories.
12046  if test no != "$hardcode_direct" &&
12047     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12048     # have to relink, otherwise we might link with an installed library
12049     # when we should be linking with a yet-to-be-installed one
12050     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12051     test no != "$hardcode_minus_L"; then
12052    # Linking always hardcodes the temporary library directory.
12053    hardcode_action=relink
12054  else
12055    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12056    hardcode_action=immediate
12057  fi
12058else
12059  # We cannot hardcode anything, or else we can only hardcode existing
12060  # directories.
12061  hardcode_action=unsupported
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12064$as_echo "$hardcode_action" >&6; }
12065
12066if test relink = "$hardcode_action" ||
12067   test yes = "$inherit_rpath"; then
12068  # Fast installation is not supported
12069  enable_fast_install=no
12070elif test yes = "$shlibpath_overrides_runpath" ||
12071     test no = "$enable_shared"; then
12072  # Fast installation is not necessary
12073  enable_fast_install=needless
12074fi
12075
12076
12077
12078
12079
12080
12081  if test yes != "$enable_dlopen"; then
12082  enable_dlopen=unknown
12083  enable_dlopen_self=unknown
12084  enable_dlopen_self_static=unknown
12085else
12086  lt_cv_dlopen=no
12087  lt_cv_dlopen_libs=
12088
12089  case $host_os in
12090  beos*)
12091    lt_cv_dlopen=load_add_on
12092    lt_cv_dlopen_libs=
12093    lt_cv_dlopen_self=yes
12094    ;;
12095
12096  mingw* | pw32* | cegcc*)
12097    lt_cv_dlopen=LoadLibrary
12098    lt_cv_dlopen_libs=
12099    ;;
12100
12101  cygwin*)
12102    lt_cv_dlopen=dlopen
12103    lt_cv_dlopen_libs=
12104    ;;
12105
12106  darwin*)
12107    # if libdl is installed we need to link against it
12108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12109$as_echo_n "checking for dlopen in -ldl... " >&6; }
12110if ${ac_cv_lib_dl_dlopen+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  ac_check_lib_save_LIBS=$LIBS
12114LIBS="-ldl  $LIBS"
12115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116/* end confdefs.h.  */
12117
12118/* Override any GCC internal prototype to avoid an error.
12119   Use char because int might match the return type of a GCC
12120   builtin and then its argument prototype would still apply.  */
12121#ifdef __cplusplus
12122extern "C"
12123#endif
12124char dlopen ();
12125int
12126main ()
12127{
12128return dlopen ();
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_link "$LINENO"; then :
12134  ac_cv_lib_dl_dlopen=yes
12135else
12136  ac_cv_lib_dl_dlopen=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139    conftest$ac_exeext conftest.$ac_ext
12140LIBS=$ac_check_lib_save_LIBS
12141fi
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12143$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12144if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12145  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12146else
12147
12148    lt_cv_dlopen=dyld
12149    lt_cv_dlopen_libs=
12150    lt_cv_dlopen_self=yes
12151
12152fi
12153
12154    ;;
12155
12156  tpf*)
12157    # Don't try to run any link tests for TPF.  We know it's impossible
12158    # because TPF is a cross-compiler, and we know how we open DSOs.
12159    lt_cv_dlopen=dlopen
12160    lt_cv_dlopen_libs=
12161    lt_cv_dlopen_self=no
12162    ;;
12163
12164  *)
12165    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12166if test "x$ac_cv_func_shl_load" = xyes; then :
12167  lt_cv_dlopen=shl_load
12168else
12169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12170$as_echo_n "checking for shl_load in -ldld... " >&6; }
12171if ${ac_cv_lib_dld_shl_load+:} false; then :
12172  $as_echo_n "(cached) " >&6
12173else
12174  ac_check_lib_save_LIBS=$LIBS
12175LIBS="-ldld  $LIBS"
12176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179/* Override any GCC internal prototype to avoid an error.
12180   Use char because int might match the return type of a GCC
12181   builtin and then its argument prototype would still apply.  */
12182#ifdef __cplusplus
12183extern "C"
12184#endif
12185char shl_load ();
12186int
12187main ()
12188{
12189return shl_load ();
12190  ;
12191  return 0;
12192}
12193_ACEOF
12194if ac_fn_c_try_link "$LINENO"; then :
12195  ac_cv_lib_dld_shl_load=yes
12196else
12197  ac_cv_lib_dld_shl_load=no
12198fi
12199rm -f core conftest.err conftest.$ac_objext \
12200    conftest$ac_exeext conftest.$ac_ext
12201LIBS=$ac_check_lib_save_LIBS
12202fi
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12204$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12205if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12206  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12207else
12208  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12209if test "x$ac_cv_func_dlopen" = xyes; then :
12210  lt_cv_dlopen=dlopen
12211else
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12213$as_echo_n "checking for dlopen in -ldl... " >&6; }
12214if ${ac_cv_lib_dl_dlopen+:} false; then :
12215  $as_echo_n "(cached) " >&6
12216else
12217  ac_check_lib_save_LIBS=$LIBS
12218LIBS="-ldl  $LIBS"
12219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h.  */
12221
12222/* Override any GCC internal prototype to avoid an error.
12223   Use char because int might match the return type of a GCC
12224   builtin and then its argument prototype would still apply.  */
12225#ifdef __cplusplus
12226extern "C"
12227#endif
12228char dlopen ();
12229int
12230main ()
12231{
12232return dlopen ();
12233  ;
12234  return 0;
12235}
12236_ACEOF
12237if ac_fn_c_try_link "$LINENO"; then :
12238  ac_cv_lib_dl_dlopen=yes
12239else
12240  ac_cv_lib_dl_dlopen=no
12241fi
12242rm -f core conftest.err conftest.$ac_objext \
12243    conftest$ac_exeext conftest.$ac_ext
12244LIBS=$ac_check_lib_save_LIBS
12245fi
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12247$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12248if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12249  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12250else
12251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12252$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12253if ${ac_cv_lib_svld_dlopen+:} false; then :
12254  $as_echo_n "(cached) " >&6
12255else
12256  ac_check_lib_save_LIBS=$LIBS
12257LIBS="-lsvld  $LIBS"
12258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h.  */
12260
12261/* Override any GCC internal prototype to avoid an error.
12262   Use char because int might match the return type of a GCC
12263   builtin and then its argument prototype would still apply.  */
12264#ifdef __cplusplus
12265extern "C"
12266#endif
12267char dlopen ();
12268int
12269main ()
12270{
12271return dlopen ();
12272  ;
12273  return 0;
12274}
12275_ACEOF
12276if ac_fn_c_try_link "$LINENO"; then :
12277  ac_cv_lib_svld_dlopen=yes
12278else
12279  ac_cv_lib_svld_dlopen=no
12280fi
12281rm -f core conftest.err conftest.$ac_objext \
12282    conftest$ac_exeext conftest.$ac_ext
12283LIBS=$ac_check_lib_save_LIBS
12284fi
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12286$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12287if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12288  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12289else
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12291$as_echo_n "checking for dld_link in -ldld... " >&6; }
12292if ${ac_cv_lib_dld_dld_link+:} false; then :
12293  $as_echo_n "(cached) " >&6
12294else
12295  ac_check_lib_save_LIBS=$LIBS
12296LIBS="-ldld  $LIBS"
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h.  */
12299
12300/* Override any GCC internal prototype to avoid an error.
12301   Use char because int might match the return type of a GCC
12302   builtin and then its argument prototype would still apply.  */
12303#ifdef __cplusplus
12304extern "C"
12305#endif
12306char dld_link ();
12307int
12308main ()
12309{
12310return dld_link ();
12311  ;
12312  return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_link "$LINENO"; then :
12316  ac_cv_lib_dld_dld_link=yes
12317else
12318  ac_cv_lib_dld_dld_link=no
12319fi
12320rm -f core conftest.err conftest.$ac_objext \
12321    conftest$ac_exeext conftest.$ac_ext
12322LIBS=$ac_check_lib_save_LIBS
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12325$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12326if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12327  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12328fi
12329
12330
12331fi
12332
12333
12334fi
12335
12336
12337fi
12338
12339
12340fi
12341
12342
12343fi
12344
12345    ;;
12346  esac
12347
12348  if test no = "$lt_cv_dlopen"; then
12349    enable_dlopen=no
12350  else
12351    enable_dlopen=yes
12352  fi
12353
12354  case $lt_cv_dlopen in
12355  dlopen)
12356    save_CPPFLAGS=$CPPFLAGS
12357    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12358
12359    save_LDFLAGS=$LDFLAGS
12360    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12361
12362    save_LIBS=$LIBS
12363    LIBS="$lt_cv_dlopen_libs $LIBS"
12364
12365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12366$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12367if ${lt_cv_dlopen_self+:} false; then :
12368  $as_echo_n "(cached) " >&6
12369else
12370  	  if test yes = "$cross_compiling"; then :
12371  lt_cv_dlopen_self=cross
12372else
12373  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12374  lt_status=$lt_dlunknown
12375  cat > conftest.$ac_ext <<_LT_EOF
12376#line $LINENO "configure"
12377#include "confdefs.h"
12378
12379#if HAVE_DLFCN_H
12380#include <dlfcn.h>
12381#endif
12382
12383#include <stdio.h>
12384
12385#ifdef RTLD_GLOBAL
12386#  define LT_DLGLOBAL		RTLD_GLOBAL
12387#else
12388#  ifdef DL_GLOBAL
12389#    define LT_DLGLOBAL		DL_GLOBAL
12390#  else
12391#    define LT_DLGLOBAL		0
12392#  endif
12393#endif
12394
12395/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12396   find out it does not work in some platform. */
12397#ifndef LT_DLLAZY_OR_NOW
12398#  ifdef RTLD_LAZY
12399#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12400#  else
12401#    ifdef DL_LAZY
12402#      define LT_DLLAZY_OR_NOW		DL_LAZY
12403#    else
12404#      ifdef RTLD_NOW
12405#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12406#      else
12407#        ifdef DL_NOW
12408#          define LT_DLLAZY_OR_NOW	DL_NOW
12409#        else
12410#          define LT_DLLAZY_OR_NOW	0
12411#        endif
12412#      endif
12413#    endif
12414#  endif
12415#endif
12416
12417/* When -fvisibility=hidden is used, assume the code has been annotated
12418   correspondingly for the symbols needed.  */
12419#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12420int fnord () __attribute__((visibility("default")));
12421#endif
12422
12423int fnord () { return 42; }
12424int main ()
12425{
12426  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12427  int status = $lt_dlunknown;
12428
12429  if (self)
12430    {
12431      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12432      else
12433        {
12434	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12435          else puts (dlerror ());
12436	}
12437      /* dlclose (self); */
12438    }
12439  else
12440    puts (dlerror ());
12441
12442  return status;
12443}
12444_LT_EOF
12445  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12446  (eval $ac_link) 2>&5
12447  ac_status=$?
12448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12450    (./conftest; exit; ) >&5 2>/dev/null
12451    lt_status=$?
12452    case x$lt_status in
12453      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12454      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12455      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12456    esac
12457  else :
12458    # compilation failed
12459    lt_cv_dlopen_self=no
12460  fi
12461fi
12462rm -fr conftest*
12463
12464
12465fi
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12467$as_echo "$lt_cv_dlopen_self" >&6; }
12468
12469    if test yes = "$lt_cv_dlopen_self"; then
12470      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12471      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12472$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12473if ${lt_cv_dlopen_self_static+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  	  if test yes = "$cross_compiling"; then :
12477  lt_cv_dlopen_self_static=cross
12478else
12479  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12480  lt_status=$lt_dlunknown
12481  cat > conftest.$ac_ext <<_LT_EOF
12482#line $LINENO "configure"
12483#include "confdefs.h"
12484
12485#if HAVE_DLFCN_H
12486#include <dlfcn.h>
12487#endif
12488
12489#include <stdio.h>
12490
12491#ifdef RTLD_GLOBAL
12492#  define LT_DLGLOBAL		RTLD_GLOBAL
12493#else
12494#  ifdef DL_GLOBAL
12495#    define LT_DLGLOBAL		DL_GLOBAL
12496#  else
12497#    define LT_DLGLOBAL		0
12498#  endif
12499#endif
12500
12501/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12502   find out it does not work in some platform. */
12503#ifndef LT_DLLAZY_OR_NOW
12504#  ifdef RTLD_LAZY
12505#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12506#  else
12507#    ifdef DL_LAZY
12508#      define LT_DLLAZY_OR_NOW		DL_LAZY
12509#    else
12510#      ifdef RTLD_NOW
12511#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12512#      else
12513#        ifdef DL_NOW
12514#          define LT_DLLAZY_OR_NOW	DL_NOW
12515#        else
12516#          define LT_DLLAZY_OR_NOW	0
12517#        endif
12518#      endif
12519#    endif
12520#  endif
12521#endif
12522
12523/* When -fvisibility=hidden is used, assume the code has been annotated
12524   correspondingly for the symbols needed.  */
12525#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12526int fnord () __attribute__((visibility("default")));
12527#endif
12528
12529int fnord () { return 42; }
12530int main ()
12531{
12532  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12533  int status = $lt_dlunknown;
12534
12535  if (self)
12536    {
12537      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12538      else
12539        {
12540	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12541          else puts (dlerror ());
12542	}
12543      /* dlclose (self); */
12544    }
12545  else
12546    puts (dlerror ());
12547
12548  return status;
12549}
12550_LT_EOF
12551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12552  (eval $ac_link) 2>&5
12553  ac_status=$?
12554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12556    (./conftest; exit; ) >&5 2>/dev/null
12557    lt_status=$?
12558    case x$lt_status in
12559      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12560      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12561      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12562    esac
12563  else :
12564    # compilation failed
12565    lt_cv_dlopen_self_static=no
12566  fi
12567fi
12568rm -fr conftest*
12569
12570
12571fi
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12573$as_echo "$lt_cv_dlopen_self_static" >&6; }
12574    fi
12575
12576    CPPFLAGS=$save_CPPFLAGS
12577    LDFLAGS=$save_LDFLAGS
12578    LIBS=$save_LIBS
12579    ;;
12580  esac
12581
12582  case $lt_cv_dlopen_self in
12583  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12584  *) enable_dlopen_self=unknown ;;
12585  esac
12586
12587  case $lt_cv_dlopen_self_static in
12588  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12589  *) enable_dlopen_self_static=unknown ;;
12590  esac
12591fi
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609striplib=
12610old_striplib=
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12612$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12613if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12614  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12615  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617$as_echo "yes" >&6; }
12618else
12619# FIXME - insert some real tests, host_os isn't really good enough
12620  case $host_os in
12621  darwin*)
12622    if test -n "$STRIP"; then
12623      striplib="$STRIP -x"
12624      old_striplib="$STRIP -S"
12625      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626$as_echo "yes" >&6; }
12627    else
12628      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630    fi
12631    ;;
12632  *)
12633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
12635    ;;
12636  esac
12637fi
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650  # Report what library types will actually be built
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12652$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12654$as_echo "$can_build_shared" >&6; }
12655
12656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12657$as_echo_n "checking whether to build shared libraries... " >&6; }
12658  test no = "$can_build_shared" && enable_shared=no
12659
12660  # On AIX, shared libraries and static libraries use the same namespace, and
12661  # are all built from PIC.
12662  case $host_os in
12663  aix3*)
12664    test yes = "$enable_shared" && enable_static=no
12665    if test -n "$RANLIB"; then
12666      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12667      postinstall_cmds='$RANLIB $lib'
12668    fi
12669    ;;
12670
12671  aix[4-9]*)
12672    if test ia64 != "$host_cpu"; then
12673      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12674      yes,aix,yes) ;;			# shared object as lib.so file only
12675      yes,svr4,*) ;;			# shared object as lib.so archive member only
12676      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12677      esac
12678    fi
12679    ;;
12680  esac
12681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12682$as_echo "$enable_shared" >&6; }
12683
12684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12685$as_echo_n "checking whether to build static libraries... " >&6; }
12686  # Make sure either enable_shared or enable_static is yes.
12687  test yes = "$enable_shared" || enable_static=yes
12688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12689$as_echo "$enable_static" >&6; }
12690
12691
12692
12693
12694fi
12695ac_ext=c
12696ac_cpp='$CPP $CPPFLAGS'
12697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700
12701CC=$lt_save_CC
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717        ac_config_commands="$ac_config_commands libtool"
12718
12719
12720
12721
12722# Only expand once:
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12734	if test -n "$ac_tool_prefix"; then
12735  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12736set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738$as_echo_n "checking for $ac_word... " >&6; }
12739if ${ac_cv_path_PKG_CONFIG+:} false; then :
12740  $as_echo_n "(cached) " >&6
12741else
12742  case $PKG_CONFIG in
12743  [\\/]* | ?:[\\/]*)
12744  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12745  ;;
12746  *)
12747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750  IFS=$as_save_IFS
12751  test -z "$as_dir" && as_dir=.
12752    for ac_exec_ext in '' $ac_executable_extensions; do
12753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756    break 2
12757  fi
12758done
12759  done
12760IFS=$as_save_IFS
12761
12762  ;;
12763esac
12764fi
12765PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12766if test -n "$PKG_CONFIG"; then
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12768$as_echo "$PKG_CONFIG" >&6; }
12769else
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774
12775fi
12776if test -z "$ac_cv_path_PKG_CONFIG"; then
12777  ac_pt_PKG_CONFIG=$PKG_CONFIG
12778  # Extract the first word of "pkg-config", so it can be a program name with args.
12779set dummy pkg-config; ac_word=$2
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781$as_echo_n "checking for $ac_word... " >&6; }
12782if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12783  $as_echo_n "(cached) " >&6
12784else
12785  case $ac_pt_PKG_CONFIG in
12786  [\\/]* | ?:[\\/]*)
12787  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12788  ;;
12789  *)
12790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $PATH
12792do
12793  IFS=$as_save_IFS
12794  test -z "$as_dir" && as_dir=.
12795    for ac_exec_ext in '' $ac_executable_extensions; do
12796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799    break 2
12800  fi
12801done
12802  done
12803IFS=$as_save_IFS
12804
12805  ;;
12806esac
12807fi
12808ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12809if test -n "$ac_pt_PKG_CONFIG"; then
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12811$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12812else
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814$as_echo "no" >&6; }
12815fi
12816
12817  if test "x$ac_pt_PKG_CONFIG" = x; then
12818    PKG_CONFIG=""
12819  else
12820    case $cross_compiling:$ac_tool_warned in
12821yes:)
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12824ac_tool_warned=yes ;;
12825esac
12826    PKG_CONFIG=$ac_pt_PKG_CONFIG
12827  fi
12828else
12829  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12830fi
12831
12832fi
12833if test -n "$PKG_CONFIG"; then
12834	_pkg_min_version=0.9.0
12835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12836$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12837	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12839$as_echo "yes" >&6; }
12840	else
12841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843		PKG_CONFIG=""
12844	fi
12845fi
12846
12847if test "$GCC" = "yes"
12848then
12849
12850
12851
12852
12853
12854        # $is_release = (.git directory does not exist)
12855        if test -d ${srcdir}/.git; then :
12856  ax_is_release=no
12857else
12858  ax_is_release=yes
12859fi
12860
12861
12862
12863
12864    # C support is enabled by default.
12865
12866
12867    # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
12868    # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
12869    # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
12870    # checked.
12871
12872
12873
12874
12875    # Default value for IS-RELEASE is $ax_is_release
12876    ax_compiler_flags_is_release=$ax_is_release
12877
12878    # Check whether --enable-compile-warnings was given.
12879if test "${enable_compile_warnings+set}" = set; then :
12880  enableval=$enable_compile_warnings;
12881else
12882  if test "$ax_compiler_flags_is_release" = "yes"; then :
12883  enable_compile_warnings="yes"
12884else
12885  enable_compile_warnings="error"
12886fi
12887fi
12888
12889    # Check whether --enable-Werror was given.
12890if test "${enable_Werror+set}" = set; then :
12891  enableval=$enable_Werror;
12892else
12893  enable_Werror=maybe
12894fi
12895
12896
12897    # Return the user's chosen warning level
12898    if test "$enable_Werror" = "no" -a \
12899                "$enable_compile_warnings" = "error"; then :
12900
12901        enable_compile_warnings="yes"
12902
12903fi
12904
12905    ax_enable_compile_warnings=$enable_compile_warnings
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916    # Variable names
12917
12918
12919    ac_ext=c
12920ac_cpp='$CPP $CPPFLAGS'
12921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12923ac_compiler_gnu=$ac_cv_c_compiler_gnu
12924
12925
12926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927/* end confdefs.h.  */
12928
12929      #ifndef __cplusplus
12930       #error "no C++"
12931       #endif
12932int
12933main ()
12934{
12935
12936  ;
12937  return 0;
12938}
12939_ACEOF
12940if ac_fn_c_try_compile "$LINENO"; then :
12941  ax_compiler_cxx=yes;
12942else
12943  ax_compiler_cxx=no;
12944fi
12945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946
12947    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
12948    # flags, otherwise they are always appended to the warn_cflags variable, and
12949    # Clang warns on them for every compilation unit.
12950    # If this is passed to GCC, it will explode, so the flag must be enabled
12951    # conditionally.
12952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
12953$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
12954if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
12955  $as_echo_n "(cached) " >&6
12956else
12957
12958  ax_check_save_flags=$CFLAGS
12959  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
12960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h.  */
12962
12963int
12964main ()
12965{
12966
12967  ;
12968  return 0;
12969}
12970_ACEOF
12971if ac_fn_c_try_compile "$LINENO"; then :
12972  ax_cv_check_cflags___Werror_unknown_warning_option=yes
12973else
12974  ax_cv_check_cflags___Werror_unknown_warning_option=no
12975fi
12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977  CFLAGS=$ax_check_save_flags
12978fi
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
12980$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
12981if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
12982
12983        ax_compiler_flags_test="-Werror=unknown-warning-option"
12984
12985else
12986
12987        ax_compiler_flags_test=""
12988
12989fi
12990
12991
12992    # Check that -Wno-suggest-attribute=format is supported
12993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
12994$as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
12995if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
12996  $as_echo_n "(cached) " >&6
12997else
12998
12999  ax_check_save_flags=$CFLAGS
13000  CFLAGS="$CFLAGS  -Wno-suggest-attribute=format"
13001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002/* end confdefs.h.  */
13003
13004int
13005main ()
13006{
13007
13008  ;
13009  return 0;
13010}
13011_ACEOF
13012if ac_fn_c_try_compile "$LINENO"; then :
13013  ax_cv_check_cflags___Wno_suggest_attribute_format=yes
13014else
13015  ax_cv_check_cflags___Wno_suggest_attribute_format=no
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018  CFLAGS=$ax_check_save_flags
13019fi
13020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
13021$as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
13022if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
13023
13024        ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
13025
13026else
13027
13028        ax_compiler_no_suggest_attribute_flags=""
13029
13030fi
13031
13032
13033    # Base flags
13034
13035
13036
13037
13038for flag in          -fno-strict-aliasing              ; do
13039  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13041$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13042if eval \${$as_CACHEVAR+:} false; then :
13043  $as_echo_n "(cached) " >&6
13044else
13045
13046  ax_check_save_flags=$CFLAGS
13047  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050
13051int
13052main ()
13053{
13054
13055  ;
13056  return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_compile "$LINENO"; then :
13060  eval "$as_CACHEVAR=yes"
13061else
13062  eval "$as_CACHEVAR=no"
13063fi
13064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065  CFLAGS=$ax_check_save_flags
13066fi
13067eval ac_res=\$$as_CACHEVAR
13068	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13069$as_echo "$ac_res" >&6; }
13070if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13071
13072if ${WARN_CFLAGS+:} false; then :
13073
13074  case " $WARN_CFLAGS " in #(
13075  *" $flag "*) :
13076    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13077  (: WARN_CFLAGS already contains $flag) 2>&5
13078  ac_status=$?
13079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080  test $ac_status = 0; } ;; #(
13081  *) :
13082
13083     as_fn_append WARN_CFLAGS " $flag"
13084     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13085  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13086  ac_status=$?
13087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13088  test $ac_status = 0; }
13089     ;;
13090esac
13091
13092else
13093
13094  WARN_CFLAGS=$flag
13095  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13096  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13097  ac_status=$?
13098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13099  test $ac_status = 0; }
13100
13101fi
13102
13103else
13104  :
13105fi
13106
13107done
13108
13109
13110    if test "$ax_enable_compile_warnings" != "no"; then :
13111
13112        if test "$ax_compiler_cxx" = "no" ; then
13113            # C-only flags. Warn in C++
13114
13115
13116
13117
13118for flag in                  -Wnested-externs                 -Wmissing-prototypes                 -Wstrict-prototypes                 -Wdeclaration-after-statement                 -Wimplicit-function-declaration                 -Wold-style-definition                 -Wjump-misses-init             ; do
13119  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13121$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13122if eval \${$as_CACHEVAR+:} false; then :
13123  $as_echo_n "(cached) " >&6
13124else
13125
13126  ax_check_save_flags=$CFLAGS
13127  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129/* end confdefs.h.  */
13130
13131int
13132main ()
13133{
13134
13135  ;
13136  return 0;
13137}
13138_ACEOF
13139if ac_fn_c_try_compile "$LINENO"; then :
13140  eval "$as_CACHEVAR=yes"
13141else
13142  eval "$as_CACHEVAR=no"
13143fi
13144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145  CFLAGS=$ax_check_save_flags
13146fi
13147eval ac_res=\$$as_CACHEVAR
13148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13149$as_echo "$ac_res" >&6; }
13150if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13151
13152if ${WARN_CFLAGS+:} false; then :
13153
13154  case " $WARN_CFLAGS " in #(
13155  *" $flag "*) :
13156    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13157  (: WARN_CFLAGS already contains $flag) 2>&5
13158  ac_status=$?
13159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160  test $ac_status = 0; } ;; #(
13161  *) :
13162
13163     as_fn_append WARN_CFLAGS " $flag"
13164     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13165  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13166  ac_status=$?
13167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168  test $ac_status = 0; }
13169     ;;
13170esac
13171
13172else
13173
13174  WARN_CFLAGS=$flag
13175  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13176  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13177  ac_status=$?
13178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179  test $ac_status = 0; }
13180
13181fi
13182
13183else
13184  :
13185fi
13186
13187done
13188
13189        fi
13190
13191        # "yes" flags
13192
13193
13194
13195
13196for flag in              -Wall             -Wextra             -Wundef             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wformat=2             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wreturn-type             -Wswitch-enum             -Wswitch-default             -Wduplicated-cond             -Wduplicated-branches             -Wlogical-op             -Wrestrict             -Wnull-dereference             -Wdouble-promotion             -pedantic -Wunused-parameter -Wmissing-field-initializers                                                   ; do
13197  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13199$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13200if eval \${$as_CACHEVAR+:} false; then :
13201  $as_echo_n "(cached) " >&6
13202else
13203
13204  ax_check_save_flags=$CFLAGS
13205  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h.  */
13208
13209int
13210main ()
13211{
13212
13213  ;
13214  return 0;
13215}
13216_ACEOF
13217if ac_fn_c_try_compile "$LINENO"; then :
13218  eval "$as_CACHEVAR=yes"
13219else
13220  eval "$as_CACHEVAR=no"
13221fi
13222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223  CFLAGS=$ax_check_save_flags
13224fi
13225eval ac_res=\$$as_CACHEVAR
13226	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13227$as_echo "$ac_res" >&6; }
13228if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13229
13230if ${WARN_CFLAGS+:} false; then :
13231
13232  case " $WARN_CFLAGS " in #(
13233  *" $flag "*) :
13234    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13235  (: WARN_CFLAGS already contains $flag) 2>&5
13236  ac_status=$?
13237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238  test $ac_status = 0; } ;; #(
13239  *) :
13240
13241     as_fn_append WARN_CFLAGS " $flag"
13242     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13243  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13244  ac_status=$?
13245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246  test $ac_status = 0; }
13247     ;;
13248esac
13249
13250else
13251
13252  WARN_CFLAGS=$flag
13253  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13254  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13255  ac_status=$?
13256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13257  test $ac_status = 0; }
13258
13259fi
13260
13261else
13262  :
13263fi
13264
13265done
13266
13267
13268fi
13269    if test "$ax_enable_compile_warnings" = "error"; then :
13270
13271        # "error" flags; -Werror has to be appended unconditionally because
13272        # it's not possible to test for
13273        #
13274        # suggest-attribute=format is disabled because it gives too many false
13275        # positives
13276
13277if ${WARN_CFLAGS+:} false; then :
13278
13279  case " $WARN_CFLAGS " in #(
13280  *" -Werror "*) :
13281    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
13282  (: WARN_CFLAGS already contains -Werror) 2>&5
13283  ac_status=$?
13284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13285  test $ac_status = 0; } ;; #(
13286  *) :
13287
13288     as_fn_append WARN_CFLAGS " -Werror"
13289     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13290  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13291  ac_status=$?
13292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293  test $ac_status = 0; }
13294     ;;
13295esac
13296
13297else
13298
13299  WARN_CFLAGS=-Werror
13300  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13301  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13302  ac_status=$?
13303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13304  test $ac_status = 0; }
13305
13306fi
13307
13308
13309
13310
13311
13312
13313for flag in              $ax_compiler_no_suggest_attribute_flags         ; do
13314  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13316$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13317if eval \${$as_CACHEVAR+:} false; then :
13318  $as_echo_n "(cached) " >&6
13319else
13320
13321  ax_check_save_flags=$CFLAGS
13322  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324/* end confdefs.h.  */
13325
13326int
13327main ()
13328{
13329
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334if ac_fn_c_try_compile "$LINENO"; then :
13335  eval "$as_CACHEVAR=yes"
13336else
13337  eval "$as_CACHEVAR=no"
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340  CFLAGS=$ax_check_save_flags
13341fi
13342eval ac_res=\$$as_CACHEVAR
13343	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13344$as_echo "$ac_res" >&6; }
13345if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13346
13347if ${WARN_CFLAGS+:} false; then :
13348
13349  case " $WARN_CFLAGS " in #(
13350  *" $flag "*) :
13351    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13352  (: WARN_CFLAGS already contains $flag) 2>&5
13353  ac_status=$?
13354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13355  test $ac_status = 0; } ;; #(
13356  *) :
13357
13358     as_fn_append WARN_CFLAGS " $flag"
13359     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13360  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13361  ac_status=$?
13362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363  test $ac_status = 0; }
13364     ;;
13365esac
13366
13367else
13368
13369  WARN_CFLAGS=$flag
13370  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13371  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13372  ac_status=$?
13373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13374  test $ac_status = 0; }
13375
13376fi
13377
13378else
13379  :
13380fi
13381
13382done
13383
13384
13385fi
13386
13387    # In the flags below, when disabling specific flags, always add *both*
13388    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
13389    # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
13390    # which effectively turns that flag back on again as an error.
13391    for flag in $WARN_CFLAGS; do
13392        case $flag in #(
13393  -Wno-*=*) :
13394     ;; #(
13395  -Wno-*) :
13396
13397
13398
13399
13400
13401for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
13402  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13404$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13405if eval \${$as_CACHEVAR+:} false; then :
13406  $as_echo_n "(cached) " >&6
13407else
13408
13409  ax_check_save_flags=$CFLAGS
13410  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412/* end confdefs.h.  */
13413
13414int
13415main ()
13416{
13417
13418  ;
13419  return 0;
13420}
13421_ACEOF
13422if ac_fn_c_try_compile "$LINENO"; then :
13423  eval "$as_CACHEVAR=yes"
13424else
13425  eval "$as_CACHEVAR=no"
13426fi
13427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428  CFLAGS=$ax_check_save_flags
13429fi
13430eval ac_res=\$$as_CACHEVAR
13431	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13432$as_echo "$ac_res" >&6; }
13433if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13434
13435if ${WARN_CFLAGS+:} false; then :
13436
13437  case " $WARN_CFLAGS " in #(
13438  *" $flag "*) :
13439    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13440  (: WARN_CFLAGS already contains $flag) 2>&5
13441  ac_status=$?
13442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443  test $ac_status = 0; } ;; #(
13444  *) :
13445
13446     as_fn_append WARN_CFLAGS " $flag"
13447     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13448  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13449  ac_status=$?
13450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451  test $ac_status = 0; }
13452     ;;
13453esac
13454
13455else
13456
13457  WARN_CFLAGS=$flag
13458  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13459  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13460  ac_status=$?
13461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462  test $ac_status = 0; }
13463
13464fi
13465
13466else
13467  :
13468fi
13469
13470done
13471
13472                 ;; #(
13473  *) :
13474     ;;
13475esac
13476    done
13477
13478    ac_ext=c
13479ac_cpp='$CPP $CPPFLAGS'
13480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13482ac_compiler_gnu=$ac_cv_c_compiler_gnu
13483
13484
13485    # Substitute the variables
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499    # Variable names
13500
13501
13502    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
13503    # flags, otherwise they are always appended to the warn_ldflags variable,
13504    # and Clang warns on them for every compilation unit.
13505    # If this is passed to GCC, it will explode, so the flag must be enabled
13506    # conditionally.
13507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
13508$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
13509if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512
13513  ax_check_save_flags=$CFLAGS
13514  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
13515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516/* end confdefs.h.  */
13517
13518int
13519main ()
13520{
13521
13522  ;
13523  return 0;
13524}
13525_ACEOF
13526if ac_fn_c_try_compile "$LINENO"; then :
13527  ax_cv_check_cflags___Werror_unknown_warning_option=yes
13528else
13529  ax_cv_check_cflags___Werror_unknown_warning_option=no
13530fi
13531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532  CFLAGS=$ax_check_save_flags
13533fi
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
13535$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
13536if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
13537
13538        ax_compiler_flags_test="-Werror=unknown-warning-option"
13539
13540else
13541
13542        ax_compiler_flags_test=""
13543
13544fi
13545
13546
13547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5
13548$as_echo_n "checking whether the linker accepts -Wl,--as-needed... " >&6; }
13549if ${ax_cv_check_ldflags___Wl___as_needed+:} false; then :
13550  $as_echo_n "(cached) " >&6
13551else
13552
13553  ax_check_save_flags=$LDFLAGS
13554  LDFLAGS="$LDFLAGS  -Wl,--as-needed"
13555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557
13558int
13559main ()
13560{
13561
13562  ;
13563  return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_link "$LINENO"; then :
13567  ax_cv_check_ldflags___Wl___as_needed=yes
13568else
13569  ax_cv_check_ldflags___Wl___as_needed=no
13570fi
13571rm -f core conftest.err conftest.$ac_objext \
13572    conftest$ac_exeext conftest.$ac_ext
13573  LDFLAGS=$ax_check_save_flags
13574fi
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5
13576$as_echo "$ax_cv_check_ldflags___Wl___as_needed" >&6; }
13577if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes; then :
13578
13579
13580
13581
13582
13583for flag in -Wl,--as-needed; do
13584  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13586$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13587if eval \${$as_CACHEVAR+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590
13591  ax_check_save_flags=$LDFLAGS
13592  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594/* end confdefs.h.  */
13595
13596int
13597main ()
13598{
13599
13600  ;
13601  return 0;
13602}
13603_ACEOF
13604if ac_fn_c_try_link "$LINENO"; then :
13605  eval "$as_CACHEVAR=yes"
13606else
13607  eval "$as_CACHEVAR=no"
13608fi
13609rm -f core conftest.err conftest.$ac_objext \
13610    conftest$ac_exeext conftest.$ac_ext
13611  LDFLAGS=$ax_check_save_flags
13612fi
13613eval ac_res=\$$as_CACHEVAR
13614	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13615$as_echo "$ac_res" >&6; }
13616if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13617
13618if ${AM_LDFLAGS+:} false; then :
13619
13620  case " $AM_LDFLAGS " in #(
13621  *" $flag "*) :
13622    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13623  (: AM_LDFLAGS already contains $flag) 2>&5
13624  ac_status=$?
13625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626  test $ac_status = 0; } ;; #(
13627  *) :
13628
13629     as_fn_append AM_LDFLAGS " $flag"
13630     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13631  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13632  ac_status=$?
13633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634  test $ac_status = 0; }
13635     ;;
13636esac
13637
13638else
13639
13640  AM_LDFLAGS=$flag
13641  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13642  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13643  ac_status=$?
13644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645  test $ac_status = 0; }
13646
13647fi
13648
13649else
13650  :
13651fi
13652
13653done
13654
13655
13656else
13657  :
13658fi
13659
13660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
13661$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
13662if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
13663  $as_echo_n "(cached) " >&6
13664else
13665
13666  ax_check_save_flags=$LDFLAGS
13667  LDFLAGS="$LDFLAGS  -Wl,-z,relro"
13668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669/* end confdefs.h.  */
13670
13671int
13672main ()
13673{
13674
13675  ;
13676  return 0;
13677}
13678_ACEOF
13679if ac_fn_c_try_link "$LINENO"; then :
13680  ax_cv_check_ldflags___Wl__z_relro=yes
13681else
13682  ax_cv_check_ldflags___Wl__z_relro=no
13683fi
13684rm -f core conftest.err conftest.$ac_objext \
13685    conftest$ac_exeext conftest.$ac_ext
13686  LDFLAGS=$ax_check_save_flags
13687fi
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
13689$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
13690if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
13691
13692
13693
13694
13695
13696for flag in -Wl,-z,relro; do
13697  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13699$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13700if eval \${$as_CACHEVAR+:} false; then :
13701  $as_echo_n "(cached) " >&6
13702else
13703
13704  ax_check_save_flags=$LDFLAGS
13705  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707/* end confdefs.h.  */
13708
13709int
13710main ()
13711{
13712
13713  ;
13714  return 0;
13715}
13716_ACEOF
13717if ac_fn_c_try_link "$LINENO"; then :
13718  eval "$as_CACHEVAR=yes"
13719else
13720  eval "$as_CACHEVAR=no"
13721fi
13722rm -f core conftest.err conftest.$ac_objext \
13723    conftest$ac_exeext conftest.$ac_ext
13724  LDFLAGS=$ax_check_save_flags
13725fi
13726eval ac_res=\$$as_CACHEVAR
13727	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13728$as_echo "$ac_res" >&6; }
13729if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13730
13731if ${AM_LDFLAGS+:} false; then :
13732
13733  case " $AM_LDFLAGS " in #(
13734  *" $flag "*) :
13735    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13736  (: AM_LDFLAGS already contains $flag) 2>&5
13737  ac_status=$?
13738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13739  test $ac_status = 0; } ;; #(
13740  *) :
13741
13742     as_fn_append AM_LDFLAGS " $flag"
13743     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13744  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13745  ac_status=$?
13746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13747  test $ac_status = 0; }
13748     ;;
13749esac
13750
13751else
13752
13753  AM_LDFLAGS=$flag
13754  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13755  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13756  ac_status=$?
13757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758  test $ac_status = 0; }
13759
13760fi
13761
13762else
13763  :
13764fi
13765
13766done
13767
13768
13769else
13770  :
13771fi
13772
13773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
13774$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
13775if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
13776  $as_echo_n "(cached) " >&6
13777else
13778
13779  ax_check_save_flags=$LDFLAGS
13780  LDFLAGS="$LDFLAGS  -Wl,-z,now"
13781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782/* end confdefs.h.  */
13783
13784int
13785main ()
13786{
13787
13788  ;
13789  return 0;
13790}
13791_ACEOF
13792if ac_fn_c_try_link "$LINENO"; then :
13793  ax_cv_check_ldflags___Wl__z_now=yes
13794else
13795  ax_cv_check_ldflags___Wl__z_now=no
13796fi
13797rm -f core conftest.err conftest.$ac_objext \
13798    conftest$ac_exeext conftest.$ac_ext
13799  LDFLAGS=$ax_check_save_flags
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
13802$as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
13803if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
13804
13805
13806
13807
13808
13809for flag in -Wl,-z,now; do
13810  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13812$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13813if eval \${$as_CACHEVAR+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816
13817  ax_check_save_flags=$LDFLAGS
13818  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820/* end confdefs.h.  */
13821
13822int
13823main ()
13824{
13825
13826  ;
13827  return 0;
13828}
13829_ACEOF
13830if ac_fn_c_try_link "$LINENO"; then :
13831  eval "$as_CACHEVAR=yes"
13832else
13833  eval "$as_CACHEVAR=no"
13834fi
13835rm -f core conftest.err conftest.$ac_objext \
13836    conftest$ac_exeext conftest.$ac_ext
13837  LDFLAGS=$ax_check_save_flags
13838fi
13839eval ac_res=\$$as_CACHEVAR
13840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13841$as_echo "$ac_res" >&6; }
13842if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13843
13844if ${AM_LDFLAGS+:} false; then :
13845
13846  case " $AM_LDFLAGS " in #(
13847  *" $flag "*) :
13848    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13849  (: AM_LDFLAGS already contains $flag) 2>&5
13850  ac_status=$?
13851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852  test $ac_status = 0; } ;; #(
13853  *) :
13854
13855     as_fn_append AM_LDFLAGS " $flag"
13856     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13857  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13858  ac_status=$?
13859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13860  test $ac_status = 0; }
13861     ;;
13862esac
13863
13864else
13865
13866  AM_LDFLAGS=$flag
13867  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13868  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13869  ac_status=$?
13870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13871  test $ac_status = 0; }
13872
13873fi
13874
13875else
13876  :
13877fi
13878
13879done
13880
13881
13882else
13883  :
13884fi
13885
13886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
13887$as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
13888if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
13889  $as_echo_n "(cached) " >&6
13890else
13891
13892  ax_check_save_flags=$LDFLAGS
13893  LDFLAGS="$LDFLAGS  -Wl,-z,noexecstack"
13894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895/* end confdefs.h.  */
13896
13897int
13898main ()
13899{
13900
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905if ac_fn_c_try_link "$LINENO"; then :
13906  ax_cv_check_ldflags___Wl__z_noexecstack=yes
13907else
13908  ax_cv_check_ldflags___Wl__z_noexecstack=no
13909fi
13910rm -f core conftest.err conftest.$ac_objext \
13911    conftest$ac_exeext conftest.$ac_ext
13912  LDFLAGS=$ax_check_save_flags
13913fi
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
13915$as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
13916if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
13917
13918
13919
13920
13921
13922for flag in -Wl,-z,noexecstack; do
13923  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13925$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13926if eval \${$as_CACHEVAR+:} false; then :
13927  $as_echo_n "(cached) " >&6
13928else
13929
13930  ax_check_save_flags=$LDFLAGS
13931  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933/* end confdefs.h.  */
13934
13935int
13936main ()
13937{
13938
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943if ac_fn_c_try_link "$LINENO"; then :
13944  eval "$as_CACHEVAR=yes"
13945else
13946  eval "$as_CACHEVAR=no"
13947fi
13948rm -f core conftest.err conftest.$ac_objext \
13949    conftest$ac_exeext conftest.$ac_ext
13950  LDFLAGS=$ax_check_save_flags
13951fi
13952eval ac_res=\$$as_CACHEVAR
13953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13954$as_echo "$ac_res" >&6; }
13955if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13956
13957if ${AM_LDFLAGS+:} false; then :
13958
13959  case " $AM_LDFLAGS " in #(
13960  *" $flag "*) :
13961    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13962  (: AM_LDFLAGS already contains $flag) 2>&5
13963  ac_status=$?
13964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13965  test $ac_status = 0; } ;; #(
13966  *) :
13967
13968     as_fn_append AM_LDFLAGS " $flag"
13969     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13970  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13971  ac_status=$?
13972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13973  test $ac_status = 0; }
13974     ;;
13975esac
13976
13977else
13978
13979  AM_LDFLAGS=$flag
13980  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13981  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13982  ac_status=$?
13983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13984  test $ac_status = 0; }
13985
13986fi
13987
13988else
13989  :
13990fi
13991
13992done
13993
13994
13995else
13996  :
13997fi
13998
13999    # textonly, retpolineplt not yet
14000
14001    # macOS and cygwin linker do not have --as-needed
14002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
14003$as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
14004if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then :
14005  $as_echo_n "(cached) " >&6
14006else
14007
14008  ax_check_save_flags=$LDFLAGS
14009  LDFLAGS="$LDFLAGS  -Wl,--no-as-needed"
14010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011/* end confdefs.h.  */
14012
14013int
14014main ()
14015{
14016
14017  ;
14018  return 0;
14019}
14020_ACEOF
14021if ac_fn_c_try_link "$LINENO"; then :
14022  ax_cv_check_ldflags___Wl___no_as_needed=yes
14023else
14024  ax_cv_check_ldflags___Wl___no_as_needed=no
14025fi
14026rm -f core conftest.err conftest.$ac_objext \
14027    conftest$ac_exeext conftest.$ac_ext
14028  LDFLAGS=$ax_check_save_flags
14029fi
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
14031$as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
14032if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then :
14033
14034        ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
14035
14036else
14037
14038        ax_compiler_flags_as_needed_option=""
14039
14040fi
14041
14042
14043    # macOS linker speaks with a different accent
14044    ax_compiler_flags_fatal_warnings_option=""
14045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
14046$as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
14047if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then :
14048  $as_echo_n "(cached) " >&6
14049else
14050
14051  ax_check_save_flags=$LDFLAGS
14052  LDFLAGS="$LDFLAGS  -Wl,--fatal-warnings"
14053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054/* end confdefs.h.  */
14055
14056int
14057main ()
14058{
14059
14060  ;
14061  return 0;
14062}
14063_ACEOF
14064if ac_fn_c_try_link "$LINENO"; then :
14065  ax_cv_check_ldflags___Wl___fatal_warnings=yes
14066else
14067  ax_cv_check_ldflags___Wl___fatal_warnings=no
14068fi
14069rm -f core conftest.err conftest.$ac_objext \
14070    conftest$ac_exeext conftest.$ac_ext
14071  LDFLAGS=$ax_check_save_flags
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
14074$as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
14075if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then :
14076
14077        ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
14078
14079else
14080  :
14081fi
14082
14083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
14084$as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
14085if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088
14089  ax_check_save_flags=$LDFLAGS
14090  LDFLAGS="$LDFLAGS  -Wl,-fatal_warnings"
14091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093
14094int
14095main ()
14096{
14097
14098  ;
14099  return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_link "$LINENO"; then :
14103  ax_cv_check_ldflags___Wl__fatal_warnings=yes
14104else
14105  ax_cv_check_ldflags___Wl__fatal_warnings=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext \
14108    conftest$ac_exeext conftest.$ac_ext
14109  LDFLAGS=$ax_check_save_flags
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
14112$as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
14113if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then :
14114
14115        ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
14116
14117else
14118  :
14119fi
14120
14121
14122    # Base flags
14123
14124
14125
14126
14127for flag in          $ax_compiler_flags_as_needed_option              ; do
14128  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14130$as_echo_n "checking whether the linker accepts $flag... " >&6; }
14131if eval \${$as_CACHEVAR+:} false; then :
14132  $as_echo_n "(cached) " >&6
14133else
14134
14135  ax_check_save_flags=$LDFLAGS
14136  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138/* end confdefs.h.  */
14139
14140int
14141main ()
14142{
14143
14144  ;
14145  return 0;
14146}
14147_ACEOF
14148if ac_fn_c_try_link "$LINENO"; then :
14149  eval "$as_CACHEVAR=yes"
14150else
14151  eval "$as_CACHEVAR=no"
14152fi
14153rm -f core conftest.err conftest.$ac_objext \
14154    conftest$ac_exeext conftest.$ac_ext
14155  LDFLAGS=$ax_check_save_flags
14156fi
14157eval ac_res=\$$as_CACHEVAR
14158	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14159$as_echo "$ac_res" >&6; }
14160if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14161
14162if ${WARN_LDFLAGS+:} false; then :
14163
14164  case " $WARN_LDFLAGS " in #(
14165  *" $flag "*) :
14166    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
14167  (: WARN_LDFLAGS already contains $flag) 2>&5
14168  ac_status=$?
14169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170  test $ac_status = 0; } ;; #(
14171  *) :
14172
14173     as_fn_append WARN_LDFLAGS " $flag"
14174     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14175  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14176  ac_status=$?
14177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178  test $ac_status = 0; }
14179     ;;
14180esac
14181
14182else
14183
14184  WARN_LDFLAGS=$flag
14185  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14186  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14187  ac_status=$?
14188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14189  test $ac_status = 0; }
14190
14191fi
14192
14193else
14194  :
14195fi
14196
14197done
14198
14199
14200    if test "$ax_enable_compile_warnings" != "no"; then :
14201
14202        # "yes" flags
14203
14204
14205
14206
14207for flag in       ; do
14208  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14210$as_echo_n "checking whether the linker accepts $flag... " >&6; }
14211if eval \${$as_CACHEVAR+:} false; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214
14215  ax_check_save_flags=$LDFLAGS
14216  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218/* end confdefs.h.  */
14219
14220int
14221main ()
14222{
14223
14224  ;
14225  return 0;
14226}
14227_ACEOF
14228if ac_fn_c_try_link "$LINENO"; then :
14229  eval "$as_CACHEVAR=yes"
14230else
14231  eval "$as_CACHEVAR=no"
14232fi
14233rm -f core conftest.err conftest.$ac_objext \
14234    conftest$ac_exeext conftest.$ac_ext
14235  LDFLAGS=$ax_check_save_flags
14236fi
14237eval ac_res=\$$as_CACHEVAR
14238	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14239$as_echo "$ac_res" >&6; }
14240if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14241
14242if ${WARN_LDFLAGS+:} false; then :
14243
14244  case " $WARN_LDFLAGS " in #(
14245  *" $flag "*) :
14246    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
14247  (: WARN_LDFLAGS already contains $flag) 2>&5
14248  ac_status=$?
14249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14250  test $ac_status = 0; } ;; #(
14251  *) :
14252
14253     as_fn_append WARN_LDFLAGS " $flag"
14254     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14255  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14256  ac_status=$?
14257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14258  test $ac_status = 0; }
14259     ;;
14260esac
14261
14262else
14263
14264  WARN_LDFLAGS=$flag
14265  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14266  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14267  ac_status=$?
14268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269  test $ac_status = 0; }
14270
14271fi
14272
14273else
14274  :
14275fi
14276
14277done
14278
14279
14280fi
14281    if test "$ax_enable_compile_warnings" = "error"; then :
14282
14283        # "error" flags; -Werror has to be appended unconditionally because
14284        # it's not possible to test for
14285        #
14286        # suggest-attribute=format is disabled because it gives too many false
14287        # positives
14288
14289
14290
14291
14292for flag in              $ax_compiler_flags_fatal_warnings_option         ; do
14293  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14295$as_echo_n "checking whether the linker accepts $flag... " >&6; }
14296if eval \${$as_CACHEVAR+:} false; then :
14297  $as_echo_n "(cached) " >&6
14298else
14299
14300  ax_check_save_flags=$LDFLAGS
14301  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303/* end confdefs.h.  */
14304
14305int
14306main ()
14307{
14308
14309  ;
14310  return 0;
14311}
14312_ACEOF
14313if ac_fn_c_try_link "$LINENO"; then :
14314  eval "$as_CACHEVAR=yes"
14315else
14316  eval "$as_CACHEVAR=no"
14317fi
14318rm -f core conftest.err conftest.$ac_objext \
14319    conftest$ac_exeext conftest.$ac_ext
14320  LDFLAGS=$ax_check_save_flags
14321fi
14322eval ac_res=\$$as_CACHEVAR
14323	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14324$as_echo "$ac_res" >&6; }
14325if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14326
14327if ${WARN_LDFLAGS+:} false; then :
14328
14329  case " $WARN_LDFLAGS " in #(
14330  *" $flag "*) :
14331    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
14332  (: WARN_LDFLAGS already contains $flag) 2>&5
14333  ac_status=$?
14334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14335  test $ac_status = 0; } ;; #(
14336  *) :
14337
14338     as_fn_append WARN_LDFLAGS " $flag"
14339     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14340  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14341  ac_status=$?
14342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343  test $ac_status = 0; }
14344     ;;
14345esac
14346
14347else
14348
14349  WARN_LDFLAGS=$flag
14350  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14351  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14352  ac_status=$?
14353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354  test $ac_status = 0; }
14355
14356fi
14357
14358else
14359  :
14360fi
14361
14362done
14363
14364
14365fi
14366
14367    # Substitute the variables
14368
14369
14370
14371
14372
14373
14374    # Variable names
14375
14376
14377    # Base flags
14378
14379if ${WARN_SCANNERFLAGS+:} false; then :
14380
14381  case " $WARN_SCANNERFLAGS " in #(
14382  *"  "*) :
14383    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
14384  (: WARN_SCANNERFLAGS already contains ) 2>&5
14385  ac_status=$?
14386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14387  test $ac_status = 0; } ;; #(
14388  *) :
14389
14390     as_fn_append WARN_SCANNERFLAGS " "
14391     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14392  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14393  ac_status=$?
14394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14395  test $ac_status = 0; }
14396     ;;
14397esac
14398
14399else
14400
14401  WARN_SCANNERFLAGS=
14402  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14403  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14404  ac_status=$?
14405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14406  test $ac_status = 0; }
14407
14408fi
14409
14410
14411    if test "$ax_enable_compile_warnings" != "no"; then :
14412
14413        # "yes" flags
14414
14415if ${WARN_SCANNERFLAGS+:} false; then :
14416
14417  case " $WARN_SCANNERFLAGS " in #(
14418  *"              --warn-all                                                              "*) :
14419    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-all                                                             "; } >&5
14420  (: WARN_SCANNERFLAGS already contains              --warn-all                                                             ) 2>&5
14421  ac_status=$?
14422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423  test $ac_status = 0; } ;; #(
14424  *) :
14425
14426     as_fn_append WARN_SCANNERFLAGS "              --warn-all                                                             "
14427     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14428  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14429  ac_status=$?
14430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14431  test $ac_status = 0; }
14432     ;;
14433esac
14434
14435else
14436
14437  WARN_SCANNERFLAGS=             --warn-all
14438  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14439  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14440  ac_status=$?
14441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14442  test $ac_status = 0; }
14443
14444fi
14445
14446
14447fi
14448    if test "$ax_enable_compile_warnings" = "error"; then :
14449
14450        # "error" flags
14451
14452if ${WARN_SCANNERFLAGS+:} false; then :
14453
14454  case " $WARN_SCANNERFLAGS " in #(
14455  *"              --warn-error          "*) :
14456    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-error         "; } >&5
14457  (: WARN_SCANNERFLAGS already contains              --warn-error         ) 2>&5
14458  ac_status=$?
14459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460  test $ac_status = 0; } ;; #(
14461  *) :
14462
14463     as_fn_append WARN_SCANNERFLAGS "              --warn-error         "
14464     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14465  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14466  ac_status=$?
14467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14468  test $ac_status = 0; }
14469     ;;
14470esac
14471
14472else
14473
14474  WARN_SCANNERFLAGS=             --warn-error
14475  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14476  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14477  ac_status=$?
14478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14479  test $ac_status = 0; }
14480
14481fi
14482
14483
14484fi
14485
14486    # Substitute the variables
14487
14488
14489
14490			# unfortunately, AX_COMPILER_FLAGS does not provide a way to override
14491			# the default -Wno-error=warning" flags. So we do this via sed below.
14492			# Note: we *really* want to have this error out during CI testing!
14493			# -Wdeclaration-after-statement in gcc always generates a warning,
14494			# even in c99 mode. So we need to unset it.
14495			# rgerhards, 2018-05-09
14496			WARN_CFLAGS="$(echo "$WARN_CFLAGS" | sed s/-Wno-error=/-W/g | sed s/-W.*declaration-after-statement//g)"
14497
14498
14499else
14500	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&5
14501$as_echo "$as_me: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&2;}
14502fi
14503
14504# Checks for libraries.
14505save_LIBS=$LIBS
14506LIBS=
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14508$as_echo_n "checking for library containing clock_gettime... " >&6; }
14509if ${ac_cv_search_clock_gettime+:} false; then :
14510  $as_echo_n "(cached) " >&6
14511else
14512  ac_func_search_save_LIBS=$LIBS
14513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514/* end confdefs.h.  */
14515
14516/* Override any GCC internal prototype to avoid an error.
14517   Use char because int might match the return type of a GCC
14518   builtin and then its argument prototype would still apply.  */
14519#ifdef __cplusplus
14520extern "C"
14521#endif
14522char clock_gettime ();
14523int
14524main ()
14525{
14526return clock_gettime ();
14527  ;
14528  return 0;
14529}
14530_ACEOF
14531for ac_lib in '' rt; do
14532  if test -z "$ac_lib"; then
14533    ac_res="none required"
14534  else
14535    ac_res=-l$ac_lib
14536    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14537  fi
14538  if ac_fn_c_try_link "$LINENO"; then :
14539  ac_cv_search_clock_gettime=$ac_res
14540fi
14541rm -f core conftest.err conftest.$ac_objext \
14542    conftest$ac_exeext
14543  if ${ac_cv_search_clock_gettime+:} false; then :
14544  break
14545fi
14546done
14547if ${ac_cv_search_clock_gettime+:} false; then :
14548
14549else
14550  ac_cv_search_clock_gettime=no
14551fi
14552rm conftest.$ac_ext
14553LIBS=$ac_func_search_save_LIBS
14554fi
14555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14556$as_echo "$ac_cv_search_clock_gettime" >&6; }
14557ac_res=$ac_cv_search_clock_gettime
14558if test "$ac_res" != no; then :
14559  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14560
14561fi
14562
14563rt_libs=$LIBS
14564LIBS=$save_LIBS
14565
14566
14567
14568# Checks for header files.
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14570$as_echo_n "checking for ANSI C header files... " >&6; }
14571if ${ac_cv_header_stdc+:} false; then :
14572  $as_echo_n "(cached) " >&6
14573else
14574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575/* end confdefs.h.  */
14576#include <stdlib.h>
14577#include <stdarg.h>
14578#include <string.h>
14579#include <float.h>
14580
14581int
14582main ()
14583{
14584
14585  ;
14586  return 0;
14587}
14588_ACEOF
14589if ac_fn_c_try_compile "$LINENO"; then :
14590  ac_cv_header_stdc=yes
14591else
14592  ac_cv_header_stdc=no
14593fi
14594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595
14596if test $ac_cv_header_stdc = yes; then
14597  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599/* end confdefs.h.  */
14600#include <string.h>
14601
14602_ACEOF
14603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14604  $EGREP "memchr" >/dev/null 2>&1; then :
14605
14606else
14607  ac_cv_header_stdc=no
14608fi
14609rm -f conftest*
14610
14611fi
14612
14613if test $ac_cv_header_stdc = yes; then
14614  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617#include <stdlib.h>
14618
14619_ACEOF
14620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621  $EGREP "free" >/dev/null 2>&1; then :
14622
14623else
14624  ac_cv_header_stdc=no
14625fi
14626rm -f conftest*
14627
14628fi
14629
14630if test $ac_cv_header_stdc = yes; then
14631  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14632  if test "$cross_compiling" = yes; then :
14633  :
14634else
14635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h.  */
14637#include <ctype.h>
14638#include <stdlib.h>
14639#if ((' ' & 0x0FF) == 0x020)
14640# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14641# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14642#else
14643# define ISLOWER(c) \
14644		   (('a' <= (c) && (c) <= 'i') \
14645		     || ('j' <= (c) && (c) <= 'r') \
14646		     || ('s' <= (c) && (c) <= 'z'))
14647# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14648#endif
14649
14650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14651int
14652main ()
14653{
14654  int i;
14655  for (i = 0; i < 256; i++)
14656    if (XOR (islower (i), ISLOWER (i))
14657	|| toupper (i) != TOUPPER (i))
14658      return 2;
14659  return 0;
14660}
14661_ACEOF
14662if ac_fn_c_try_run "$LINENO"; then :
14663
14664else
14665  ac_cv_header_stdc=no
14666fi
14667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14668  conftest.$ac_objext conftest.beam conftest.$ac_ext
14669fi
14670
14671fi
14672fi
14673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14674$as_echo "$ac_cv_header_stdc" >&6; }
14675if test $ac_cv_header_stdc = yes; then
14676
14677$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14678
14679fi
14680
14681for ac_header in sys/epoll.h
14682do :
14683  ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
14684if test "x$ac_cv_header_sys_epoll_h" = xyes; then :
14685  cat >>confdefs.h <<_ACEOF
14686#define HAVE_SYS_EPOLL_H 1
14687_ACEOF
14688
14689fi
14690
14691done
14692
14693
14694# Checks for typedefs, structures, and compiler characteristics.
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14696$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14697if ${ac_cv_c_const+:} false; then :
14698  $as_echo_n "(cached) " >&6
14699else
14700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702
14703int
14704main ()
14705{
14706
14707#ifndef __cplusplus
14708  /* Ultrix mips cc rejects this sort of thing.  */
14709  typedef int charset[2];
14710  const charset cs = { 0, 0 };
14711  /* SunOS 4.1.1 cc rejects this.  */
14712  char const *const *pcpcc;
14713  char **ppc;
14714  /* NEC SVR4.0.2 mips cc rejects this.  */
14715  struct point {int x, y;};
14716  static struct point const zero = {0,0};
14717  /* AIX XL C 1.02.0.0 rejects this.
14718     It does not let you subtract one const X* pointer from another in
14719     an arm of an if-expression whose if-part is not a constant
14720     expression */
14721  const char *g = "string";
14722  pcpcc = &g + (g ? g-g : 0);
14723  /* HPUX 7.0 cc rejects these. */
14724  ++pcpcc;
14725  ppc = (char**) pcpcc;
14726  pcpcc = (char const *const *) ppc;
14727  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14728    char tx;
14729    char *t = &tx;
14730    char const *s = 0 ? (char *) 0 : (char const *) 0;
14731
14732    *t++ = 0;
14733    if (s) return 0;
14734  }
14735  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14736    int x[] = {25, 17};
14737    const int *foo = &x[0];
14738    ++foo;
14739  }
14740  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14741    typedef const int *iptr;
14742    iptr p = 0;
14743    ++p;
14744  }
14745  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14746       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14747    struct s { int j; const int *ap[3]; } bx;
14748    struct s *b = &bx; b->j = 5;
14749  }
14750  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14751    const int foo = 10;
14752    if (!foo) return 0;
14753  }
14754  return !cs[0] && !zero.x;
14755#endif
14756
14757  ;
14758  return 0;
14759}
14760_ACEOF
14761if ac_fn_c_try_compile "$LINENO"; then :
14762  ac_cv_c_const=yes
14763else
14764  ac_cv_c_const=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767fi
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14769$as_echo "$ac_cv_c_const" >&6; }
14770if test $ac_cv_c_const = no; then
14771
14772$as_echo "#define const /**/" >>confdefs.h
14773
14774fi
14775
14776ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14777if test "x$ac_cv_type_size_t" = xyes; then :
14778
14779else
14780
14781cat >>confdefs.h <<_ACEOF
14782#define size_t unsigned int
14783_ACEOF
14784
14785fi
14786
14787#AC_HEADER_TIME
14788#AC_STRUCT_TM
14789
14790ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "$sa_includes
14791"
14792if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14793
14794cat >>confdefs.h <<_ACEOF
14795#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14796_ACEOF
14797
14798
14799fi
14800
14801
14802# Checks for library functions.
14803for ac_header in sys/select.h sys/socket.h
14804do :
14805  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14806ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14808  cat >>confdefs.h <<_ACEOF
14809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14810_ACEOF
14811
14812fi
14813
14814done
14815
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14817$as_echo_n "checking types of arguments for select... " >&6; }
14818if ${ac_cv_func_select_args+:} false; then :
14819  $as_echo_n "(cached) " >&6
14820else
14821  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14822 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14823  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825/* end confdefs.h.  */
14826$ac_includes_default
14827#ifdef HAVE_SYS_SELECT_H
14828# include <sys/select.h>
14829#endif
14830#ifdef HAVE_SYS_SOCKET_H
14831# include <sys/socket.h>
14832#endif
14833
14834int
14835main ()
14836{
14837extern int select ($ac_arg1,
14838					    $ac_arg234, $ac_arg234, $ac_arg234,
14839					    $ac_arg5);
14840  ;
14841  return 0;
14842}
14843_ACEOF
14844if ac_fn_c_try_compile "$LINENO"; then :
14845  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14846fi
14847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14848  done
14849 done
14850done
14851# Provide a safe default value.
14852: "${ac_cv_func_select_args=int,int *,struct timeval *}"
14853
14854fi
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14856$as_echo "$ac_cv_func_select_args" >&6; }
14857ac_save_IFS=$IFS; IFS=','
14858set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14859IFS=$ac_save_IFS
14860shift
14861
14862cat >>confdefs.h <<_ACEOF
14863#define SELECT_TYPE_ARG1 $1
14864_ACEOF
14865
14866
14867cat >>confdefs.h <<_ACEOF
14868#define SELECT_TYPE_ARG234 ($2)
14869_ACEOF
14870
14871
14872cat >>confdefs.h <<_ACEOF
14873#define SELECT_TYPE_ARG5 ($3)
14874_ACEOF
14875
14876rm -f conftest*
14877
14878ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
14879if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
14880  ac_have_decl=1
14881else
14882  ac_have_decl=0
14883fi
14884
14885cat >>confdefs.h <<_ACEOF
14886#define HAVE_DECL_STRERROR_R $ac_have_decl
14887_ACEOF
14888
14889for ac_func in strerror_r
14890do :
14891  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14892if test "x$ac_cv_func_strerror_r" = xyes; then :
14893  cat >>confdefs.h <<_ACEOF
14894#define HAVE_STRERROR_R 1
14895_ACEOF
14896
14897fi
14898done
14899
14900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
14901$as_echo_n "checking whether strerror_r returns char *... " >&6; }
14902if ${ac_cv_func_strerror_r_char_p+:} false; then :
14903  $as_echo_n "(cached) " >&6
14904else
14905
14906    ac_cv_func_strerror_r_char_p=no
14907    if test $ac_cv_have_decl_strerror_r = yes; then
14908      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h.  */
14910$ac_includes_default
14911int
14912main ()
14913{
14914
14915	  char buf[100];
14916	  char x = *strerror_r (0, buf, sizeof buf);
14917	  char *p = strerror_r (0, buf, sizeof buf);
14918	  return !p || x;
14919
14920  ;
14921  return 0;
14922}
14923_ACEOF
14924if ac_fn_c_try_compile "$LINENO"; then :
14925  ac_cv_func_strerror_r_char_p=yes
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928    else
14929      # strerror_r is not declared.  Choose between
14930      # systems that have relatively inaccessible declarations for the
14931      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14932      # former has a strerror_r that returns char*, while the latter
14933      # has a strerror_r that returns `int'.
14934      # This test should segfault on the DEC system.
14935      if test "$cross_compiling" = yes; then :
14936  :
14937else
14938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939/* end confdefs.h.  */
14940$ac_includes_default
14941	extern char *strerror_r ();
14942int
14943main ()
14944{
14945char buf[100];
14946	  char x = *strerror_r (0, buf, sizeof buf);
14947	  return ! isalpha (x);
14948  ;
14949  return 0;
14950}
14951_ACEOF
14952if ac_fn_c_try_run "$LINENO"; then :
14953  ac_cv_func_strerror_r_char_p=yes
14954fi
14955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14956  conftest.$ac_objext conftest.beam conftest.$ac_ext
14957fi
14958
14959    fi
14960
14961fi
14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
14963$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14964if test $ac_cv_func_strerror_r_char_p = yes; then
14965
14966$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14967
14968fi
14969
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14971$as_echo_n "checking return type of signal handlers... " >&6; }
14972if ${ac_cv_type_signal+:} false; then :
14973  $as_echo_n "(cached) " >&6
14974else
14975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h.  */
14977#include <sys/types.h>
14978#include <signal.h>
14979
14980int
14981main ()
14982{
14983return *(signal (0, 0)) (0) == 1;
14984  ;
14985  return 0;
14986}
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"; then :
14989  ac_cv_type_signal=int
14990else
14991  ac_cv_type_signal=void
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14996$as_echo "$ac_cv_type_signal" >&6; }
14997
14998cat >>confdefs.h <<_ACEOF
14999#define RETSIGTYPE $ac_cv_type_signal
15000_ACEOF
15001
15002
15003for ac_func in strerror_r strdup strndup epoll_create epoll_create1
15004do :
15005  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15006ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15007if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15008  cat >>confdefs.h <<_ACEOF
15009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15010_ACEOF
15011
15012fi
15013done
15014
15015
15016# enable TLS (may not be possible on platforms with too-old GnuTLS)
15017# Check whether --enable-tls was given.
15018if test "${enable_tls+set}" = set; then :
15019  enableval=$enable_tls; case "${enableval}" in
15020         yes) enable_tls="yes" ;;
15021          no) enable_tls="no" ;;
15022           *) as_fn_error $? "bad value ${enableval} for --enable-tls" "$LINENO" 5 ;;
15023         esac
15024else
15025  enable_tls="yes"
15026
15027fi
15028
15029# enable Openssl TLS
15030# Check whether --enable-tls-openssl was given.
15031if test "${enable_tls_openssl+set}" = set; then :
15032  enableval=$enable_tls_openssl; case "${enableval}" in
15033         yes) enable_tls_openssl="yes" ;;
15034          no) enable_tls_openssl="no" ;;
15035           *) as_fn_error $? "bad value ${enableval} for --enable-tls-openssl" "$LINENO" 5 ;;
15036         esac
15037else
15038  enable_tls_openssl="yes"
15039
15040fi
15041
15042
15043if test "$enable_tls_openssl" = "yes"; then
15044
15045pkg_failed=no
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
15047$as_echo_n "checking for OPENSSL... " >&6; }
15048
15049if test -n "$OPENSSL_CFLAGS"; then
15050    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15051 elif test -n "$PKG_CONFIG"; then
15052    if test -n "$PKG_CONFIG" && \
15053    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15054  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15055  ac_status=$?
15056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15057  test $ac_status = 0; }; then
15058  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
15059		      test "x$?" != "x0" && pkg_failed=yes
15060else
15061  pkg_failed=yes
15062fi
15063 else
15064    pkg_failed=untried
15065fi
15066if test -n "$OPENSSL_LIBS"; then
15067    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15068 elif test -n "$PKG_CONFIG"; then
15069    if test -n "$PKG_CONFIG" && \
15070    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15071  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15072  ac_status=$?
15073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15074  test $ac_status = 0; }; then
15075  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
15076		      test "x$?" != "x0" && pkg_failed=yes
15077else
15078  pkg_failed=yes
15079fi
15080 else
15081    pkg_failed=untried
15082fi
15083
15084
15085
15086if test $pkg_failed = yes; then
15087   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088$as_echo "no" >&6; }
15089
15090if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15091        _pkg_short_errors_supported=yes
15092else
15093        _pkg_short_errors_supported=no
15094fi
15095        if test $_pkg_short_errors_supported = yes; then
15096	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
15097        else
15098	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
15099        fi
15100	# Put the nasty error message in config.log where it belongs
15101	echo "$OPENSSL_PKG_ERRORS" >&5
15102
15103	as_fn_error $? "Package requirements (openssl) were not met:
15104
15105$OPENSSL_PKG_ERRORS
15106
15107Consider adjusting the PKG_CONFIG_PATH environment variable if you
15108installed software in a non-standard prefix.
15109
15110Alternatively, you may set the environment variables OPENSSL_CFLAGS
15111and OPENSSL_LIBS to avoid the need to call pkg-config.
15112See the pkg-config man page for more details." "$LINENO" 5
15113elif test $pkg_failed = untried; then
15114     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115$as_echo "no" >&6; }
15116	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15118as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15119is in your PATH or set the PKG_CONFIG environment variable to the full
15120path to pkg-config.
15121
15122Alternatively, you may set the environment variables OPENSSL_CFLAGS
15123and OPENSSL_LIBS to avoid the need to call pkg-config.
15124See the pkg-config man page for more details.
15125
15126To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15127See \`config.log' for more details" "$LINENO" 5; }
15128else
15129	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15130	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15131        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15132$as_echo "yes" >&6; }
15133
15134fi
15135
15136$as_echo "#define ENABLE_TLS_OPENSSL 1" >>confdefs.h
15137
15138	enable_tls_generic="yes"
15139	save_CFLAGS="$CFLAGS"
15140	CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
15141	save_LIBS="$LIBS"
15142	LIBS="$LIBS $OPENSSL_LIBS"
15143fi
15144 if test "$enable_tls_openssl" = "yes"; then
15145  ENABLE_TLS_OPENSSL_TRUE=
15146  ENABLE_TLS_OPENSSL_FALSE='#'
15147else
15148  ENABLE_TLS_OPENSSL_TRUE='#'
15149  ENABLE_TLS_OPENSSL_FALSE=
15150fi
15151
15152
15153if test "$enable_tls" = "yes"; then
15154
15155pkg_failed=no
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15157$as_echo_n "checking for GNUTLS... " >&6; }
15158
15159if test -n "$GNUTLS_CFLAGS"; then
15160    pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15161 elif test -n "$PKG_CONFIG"; then
15162    if test -n "$PKG_CONFIG" && \
15163    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.0.0\""; } >&5
15164  ($PKG_CONFIG --exists --print-errors "gnutls >= 2.0.0") 2>&5
15165  ac_status=$?
15166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167  test $ac_status = 0; }; then
15168  pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.0.0" 2>/dev/null`
15169		      test "x$?" != "x0" && pkg_failed=yes
15170else
15171  pkg_failed=yes
15172fi
15173 else
15174    pkg_failed=untried
15175fi
15176if test -n "$GNUTLS_LIBS"; then
15177    pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15178 elif test -n "$PKG_CONFIG"; then
15179    if test -n "$PKG_CONFIG" && \
15180    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.0.0\""; } >&5
15181  ($PKG_CONFIG --exists --print-errors "gnutls >= 2.0.0") 2>&5
15182  ac_status=$?
15183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15184  test $ac_status = 0; }; then
15185  pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.0.0" 2>/dev/null`
15186		      test "x$?" != "x0" && pkg_failed=yes
15187else
15188  pkg_failed=yes
15189fi
15190 else
15191    pkg_failed=untried
15192fi
15193
15194
15195
15196if test $pkg_failed = yes; then
15197   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15198$as_echo "no" >&6; }
15199
15200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15201        _pkg_short_errors_supported=yes
15202else
15203        _pkg_short_errors_supported=no
15204fi
15205        if test $_pkg_short_errors_supported = yes; then
15206	        GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.0.0" 2>&1`
15207        else
15208	        GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.0.0" 2>&1`
15209        fi
15210	# Put the nasty error message in config.log where it belongs
15211	echo "$GNUTLS_PKG_ERRORS" >&5
15212
15213	as_fn_error $? "Package requirements (gnutls >= 2.0.0) were not met:
15214
15215$GNUTLS_PKG_ERRORS
15216
15217Consider adjusting the PKG_CONFIG_PATH environment variable if you
15218installed software in a non-standard prefix.
15219
15220Alternatively, you may set the environment variables GNUTLS_CFLAGS
15221and GNUTLS_LIBS to avoid the need to call pkg-config.
15222See the pkg-config man page for more details." "$LINENO" 5
15223elif test $pkg_failed = untried; then
15224     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225$as_echo "no" >&6; }
15226	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15228as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15229is in your PATH or set the PKG_CONFIG environment variable to the full
15230path to pkg-config.
15231
15232Alternatively, you may set the environment variables GNUTLS_CFLAGS
15233and GNUTLS_LIBS to avoid the need to call pkg-config.
15234See the pkg-config man page for more details.
15235
15236To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15237See \`config.log' for more details" "$LINENO" 5; }
15238else
15239	GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15240	GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242$as_echo "yes" >&6; }
15243
15244fi
15245
15246$as_echo "#define ENABLE_TLS 1" >>confdefs.h
15247
15248	enable_tls_generic="yes"
15249	# Check if we have support for proper cert validation
15250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have gnutls_certificate_set_verify_function" >&5
15251$as_echo_n "checking if we have gnutls_certificate_set_verify_function... " >&6; }
15252	save_CFLAGS="$CFLAGS"
15253	CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
15254	save_LIBS="$LIBS"
15255	LIBS="$LIBS $GNUTLS_LIBS"
15256	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258
15259		#include <gnutls/gnutls.h>
15260		#include <gnutls/x509.h>
15261
15262int
15263main ()
15264{
15265
15266		gnutls_certificate_set_verify_function(NULL, NULL);
15267
15268  ;
15269  return 0;
15270}
15271_ACEOF
15272if ac_fn_c_try_link "$LINENO"; then :
15273
15274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15275$as_echo "yes" >&6; }
15276
15277$as_echo "#define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1" >>confdefs.h
15278
15279		have_gnutls_certificate_set_verify_function=yes
15280
15281else
15282
15283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no; authentication disabled" >&5
15284$as_echo "no; authentication disabled" >&6; }
15285		have_gnutls_certificate_set_verify_function=no
15286
15287
15288fi
15289rm -f core conftest.err conftest.$ac_objext \
15290    conftest$ac_exeext conftest.$ac_ext
15291	CFLAGS="$save_CFLAGS"
15292	LIBS="$save_LIBS"
15293fi
15294 if test "$enable_tls" = "yes"; then
15295  ENABLE_TLS_TRUE=
15296  ENABLE_TLS_FALSE='#'
15297else
15298  ENABLE_TLS_TRUE='#'
15299  ENABLE_TLS_FALSE=
15300fi
15301
15302 if test "$enable_tls_generic" = "yes"; then
15303  ENABLE_TLS_GENERIC_TRUE=
15304  ENABLE_TLS_GENERIC_FALSE='#'
15305else
15306  ENABLE_TLS_GENERIC_TRUE='#'
15307  ENABLE_TLS_GENERIC_FALSE=
15308fi
15309
15310
15311if test "$enable_tls_generic" = "yes"; then
15312
15313$as_echo "#define WITH_TLS 1" >>confdefs.h
15314
15315fi
15316
15317# enable Openssl TLS
15318# Check whether --enable-tls-openssl was given.
15319if test "${enable_tls_openssl+set}" = set; then :
15320  enableval=$enable_tls_openssl; case "${enableval}" in
15321         yes) enable_tls_openssl="yes" ;;
15322          no) enable_tls_openssl="no" ;;
15323           *) as_fn_error $? "bad value ${enableval} for --enable-tls-openssl" "$LINENO" 5 ;;
15324         esac
15325else
15326  enable_tls_openssl="no"
15327
15328fi
15329
15330
15331if test "$enable_tls_openssl" = "yes"; then
15332
15333pkg_failed=no
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
15335$as_echo_n "checking for OPENSSL... " >&6; }
15336
15337if test -n "$OPENSSL_CFLAGS"; then
15338    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15339 elif test -n "$PKG_CONFIG"; then
15340    if test -n "$PKG_CONFIG" && \
15341    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15342  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15343  ac_status=$?
15344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15345  test $ac_status = 0; }; then
15346  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
15347		      test "x$?" != "x0" && pkg_failed=yes
15348else
15349  pkg_failed=yes
15350fi
15351 else
15352    pkg_failed=untried
15353fi
15354if test -n "$OPENSSL_LIBS"; then
15355    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15356 elif test -n "$PKG_CONFIG"; then
15357    if test -n "$PKG_CONFIG" && \
15358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15359  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15360  ac_status=$?
15361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15362  test $ac_status = 0; }; then
15363  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
15364		      test "x$?" != "x0" && pkg_failed=yes
15365else
15366  pkg_failed=yes
15367fi
15368 else
15369    pkg_failed=untried
15370fi
15371
15372
15373
15374if test $pkg_failed = yes; then
15375   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376$as_echo "no" >&6; }
15377
15378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15379        _pkg_short_errors_supported=yes
15380else
15381        _pkg_short_errors_supported=no
15382fi
15383        if test $_pkg_short_errors_supported = yes; then
15384	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
15385        else
15386	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
15387        fi
15388	# Put the nasty error message in config.log where it belongs
15389	echo "$OPENSSL_PKG_ERRORS" >&5
15390
15391	as_fn_error $? "Package requirements (openssl) were not met:
15392
15393$OPENSSL_PKG_ERRORS
15394
15395Consider adjusting the PKG_CONFIG_PATH environment variable if you
15396installed software in a non-standard prefix.
15397
15398Alternatively, you may set the environment variables OPENSSL_CFLAGS
15399and OPENSSL_LIBS to avoid the need to call pkg-config.
15400See the pkg-config man page for more details." "$LINENO" 5
15401elif test $pkg_failed = untried; then
15402     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403$as_echo "no" >&6; }
15404	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15406as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15407is in your PATH or set the PKG_CONFIG environment variable to the full
15408path to pkg-config.
15409
15410Alternatively, you may set the environment variables OPENSSL_CFLAGS
15411and OPENSSL_LIBS to avoid the need to call pkg-config.
15412See the pkg-config man page for more details.
15413
15414To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15415See \`config.log' for more details" "$LINENO" 5; }
15416else
15417	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15418	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15419        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15420$as_echo "yes" >&6; }
15421
15422fi
15423
15424$as_echo "#define ENABLE_TLS_OPENSSL 1" >>confdefs.h
15425
15426	save_CFLAGS="$CFLAGS"
15427	CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
15428	save_LIBS="$LIBS"
15429	LIBS="$LIBS $OPENSSL_LIBS"
15430fi
15431 if test x$enable_tls_openssl = xyes; then
15432  ENABLE_TLS_OPENSSL_TRUE=
15433  ENABLE_TLS_OPENSSL_FALSE='#'
15434else
15435  ENABLE_TLS_OPENSSL_TRUE='#'
15436  ENABLE_TLS_OPENSSL_FALSE=
15437fi
15438
15439
15440# debug mode settings
15441# Check whether --enable-debug was given.
15442if test "${enable_debug+set}" = set; then :
15443  enableval=$enable_debug; case "${enableval}" in
15444         yes) enable_debug="yes" ;;
15445          no) enable_debug="no" ;;
15446           *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
15447         esac
15448else
15449  enable_debug="no"
15450
15451fi
15452
15453if test "$enable_debug" = "yes"; then
15454
15455$as_echo "#define DEBUG 1" >>confdefs.h
15456
15457fi
15458if test "$enable_debug" = "no"; then
15459
15460$as_echo "#define NDEBUG 1" >>confdefs.h
15461
15462fi
15463
15464# valgrind
15465# Check whether --enable-valgrind was given.
15466if test "${enable_valgrind+set}" = set; then :
15467  enableval=$enable_valgrind; case "${enableval}" in
15468         yes) enable_valgrind="yes" ;;
15469          no) enable_valgrind="no" ;;
15470           *) as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
15471         esac
15472else
15473  enable_valgrind="yes"
15474
15475fi
15476
15477if test "$enable_valgrind" = "yes"; then
15478        # Extract the first word of "valgrind", so it can be a program name with args.
15479set dummy valgrind; ac_word=$2
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15481$as_echo_n "checking for $ac_word... " >&6; }
15482if ${ac_cv_prog_VALGRIND+:} false; then :
15483  $as_echo_n "(cached) " >&6
15484else
15485  if test -n "$VALGRIND"; then
15486  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
15487else
15488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489for as_dir in $PATH
15490do
15491  IFS=$as_save_IFS
15492  test -z "$as_dir" && as_dir=.
15493    for ac_exec_ext in '' $ac_executable_extensions; do
15494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495    ac_cv_prog_VALGRIND="valgrind"
15496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15497    break 2
15498  fi
15499done
15500  done
15501IFS=$as_save_IFS
15502
15503  test -z "$ac_cv_prog_VALGRIND" && ac_cv_prog_VALGRIND="no"
15504fi
15505fi
15506VALGRIND=$ac_cv_prog_VALGRIND
15507if test -n "$VALGRIND"; then
15508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
15509$as_echo "$VALGRIND" >&6; }
15510else
15511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15512$as_echo "no" >&6; }
15513fi
15514
15515
15516fi
15517 if test "$enable_valgrind" == "yes"; then
15518  HAVE_VALGRIND_TRUE=
15519  HAVE_VALGRIND_FALSE='#'
15520else
15521  HAVE_VALGRIND_TRUE='#'
15522  HAVE_VALGRIND_FALSE=
15523fi
15524
15525
15526
15527
15528ac_config_files="$ac_config_files Makefile relp.pc doc/Makefile tests/set-envvars tests/Makefile src/Makefile"
15529
15530cat >confcache <<\_ACEOF
15531# This file is a shell script that caches the results of configure
15532# tests run on this system so they can be shared between configure
15533# scripts and configure runs, see configure's option --config-cache.
15534# It is not useful on other systems.  If it contains results you don't
15535# want to keep, you may remove or edit it.
15536#
15537# config.status only pays attention to the cache file if you give it
15538# the --recheck option to rerun configure.
15539#
15540# `ac_cv_env_foo' variables (set or unset) will be overridden when
15541# loading this file, other *unset* `ac_cv_foo' will be assigned the
15542# following values.
15543
15544_ACEOF
15545
15546# The following way of writing the cache mishandles newlines in values,
15547# but we know of no workaround that is simple, portable, and efficient.
15548# So, we kill variables containing newlines.
15549# Ultrix sh set writes to stderr and can't be redirected directly,
15550# and sets the high bit in the cache file unless we assign to the vars.
15551(
15552  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15553    eval ac_val=\$$ac_var
15554    case $ac_val in #(
15555    *${as_nl}*)
15556      case $ac_var in #(
15557      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15558$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15559      esac
15560      case $ac_var in #(
15561      _ | IFS | as_nl) ;; #(
15562      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15563      *) { eval $ac_var=; unset $ac_var;} ;;
15564      esac ;;
15565    esac
15566  done
15567
15568  (set) 2>&1 |
15569    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15570    *${as_nl}ac_space=\ *)
15571      # `set' does not quote correctly, so add quotes: double-quote
15572      # substitution turns \\\\ into \\, and sed turns \\ into \.
15573      sed -n \
15574	"s/'/'\\\\''/g;
15575	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15576      ;; #(
15577    *)
15578      # `set' quotes correctly as required by POSIX, so do not add quotes.
15579      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15580      ;;
15581    esac |
15582    sort
15583) |
15584  sed '
15585     /^ac_cv_env_/b end
15586     t clear
15587     :clear
15588     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15589     t end
15590     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15591     :end' >>confcache
15592if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15593  if test -w "$cache_file"; then
15594    if test "x$cache_file" != "x/dev/null"; then
15595      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15596$as_echo "$as_me: updating cache $cache_file" >&6;}
15597      if test ! -f "$cache_file" || test -h "$cache_file"; then
15598	cat confcache >"$cache_file"
15599      else
15600        case $cache_file in #(
15601        */* | ?:*)
15602	  mv -f confcache "$cache_file"$$ &&
15603	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15604        *)
15605	  mv -f confcache "$cache_file" ;;
15606	esac
15607      fi
15608    fi
15609  else
15610    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15611$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15612  fi
15613fi
15614rm -f confcache
15615
15616test "x$prefix" = xNONE && prefix=$ac_default_prefix
15617# Let make expand exec_prefix.
15618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15619
15620DEFS=-DHAVE_CONFIG_H
15621
15622ac_libobjs=
15623ac_ltlibobjs=
15624U=
15625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15626  # 1. Remove the extension, and $U if already installed.
15627  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15628  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15629  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15630  #    will be set to the directory where LIBOBJS objects are built.
15631  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15632  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15633done
15634LIBOBJS=$ac_libobjs
15635
15636LTLIBOBJS=$ac_ltlibobjs
15637
15638
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15640$as_echo_n "checking that generated files are newer than configure... " >&6; }
15641   if test -n "$am_sleep_pid"; then
15642     # Hide warnings about reused PIDs.
15643     wait $am_sleep_pid 2>/dev/null
15644   fi
15645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15646$as_echo "done" >&6; }
15647 if test -n "$EXEEXT"; then
15648  am__EXEEXT_TRUE=
15649  am__EXEEXT_FALSE='#'
15650else
15651  am__EXEEXT_TRUE='#'
15652  am__EXEEXT_FALSE=
15653fi
15654
15655if test -z "${OS_APPLE_TRUE}" && test -z "${OS_APPLE_FALSE}"; then
15656  as_fn_error $? "conditional \"OS_APPLE\" was never defined.
15657Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658fi
15659if test -z "${xOS_LINUX_TRUE}" && test -z "${xOS_LINUX_FALSE}"; then
15660  as_fn_error $? "conditional \"xOS_LINUX\" was never defined.
15661Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662fi
15663if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
15664  as_fn_error $? "conditional \"OS_LINUX\" was never defined.
15665Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666fi
15667if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
15668  as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
15669Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670fi
15671if test -z "${OS_AIX_TRUE}" && test -z "${OS_AIX_FALSE}"; then
15672  as_fn_error $? "conditional \"OS_AIX\" was never defined.
15673Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674fi
15675if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15676  as_fn_error $? "conditional \"AMDEP\" was never defined.
15677Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678fi
15679if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15680  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15681Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682fi
15683if test -z "${ENABLE_TLS_OPENSSL_TRUE}" && test -z "${ENABLE_TLS_OPENSSL_FALSE}"; then
15684  as_fn_error $? "conditional \"ENABLE_TLS_OPENSSL\" was never defined.
15685Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686fi
15687if test -z "${ENABLE_TLS_TRUE}" && test -z "${ENABLE_TLS_FALSE}"; then
15688  as_fn_error $? "conditional \"ENABLE_TLS\" was never defined.
15689Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690fi
15691if test -z "${ENABLE_TLS_GENERIC_TRUE}" && test -z "${ENABLE_TLS_GENERIC_FALSE}"; then
15692  as_fn_error $? "conditional \"ENABLE_TLS_GENERIC\" was never defined.
15693Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694fi
15695if test -z "${ENABLE_TLS_OPENSSL_TRUE}" && test -z "${ENABLE_TLS_OPENSSL_FALSE}"; then
15696  as_fn_error $? "conditional \"ENABLE_TLS_OPENSSL\" was never defined.
15697Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698fi
15699if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
15700  as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
15701Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702fi
15703
15704: "${CONFIG_STATUS=./config.status}"
15705ac_write_fail=0
15706ac_clean_files_save=$ac_clean_files
15707ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15709$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15710as_write_fail=0
15711cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15712#! $SHELL
15713# Generated by $as_me.
15714# Run this file to recreate the current configuration.
15715# Compiler output produced by configure, useful for debugging
15716# configure, is in config.log if it exists.
15717
15718debug=false
15719ac_cs_recheck=false
15720ac_cs_silent=false
15721
15722SHELL=\${CONFIG_SHELL-$SHELL}
15723export SHELL
15724_ASEOF
15725cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15726## -------------------- ##
15727## M4sh Initialization. ##
15728## -------------------- ##
15729
15730# Be more Bourne compatible
15731DUALCASE=1; export DUALCASE # for MKS sh
15732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15733  emulate sh
15734  NULLCMD=:
15735  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15736  # is contrary to our usage.  Disable this feature.
15737  alias -g '${1+"$@"}'='"$@"'
15738  setopt NO_GLOB_SUBST
15739else
15740  case `(set -o) 2>/dev/null` in #(
15741  *posix*) :
15742    set -o posix ;; #(
15743  *) :
15744     ;;
15745esac
15746fi
15747
15748
15749as_nl='
15750'
15751export as_nl
15752# Printing a long string crashes Solaris 7 /usr/bin/printf.
15753as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15754as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15755as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15756# Prefer a ksh shell builtin over an external printf program on Solaris,
15757# but without wasting forks for bash or zsh.
15758if test -z "$BASH_VERSION$ZSH_VERSION" \
15759    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15760  as_echo='print -r --'
15761  as_echo_n='print -rn --'
15762elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15763  as_echo='printf %s\n'
15764  as_echo_n='printf %s'
15765else
15766  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15767    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15768    as_echo_n='/usr/ucb/echo -n'
15769  else
15770    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15771    as_echo_n_body='eval
15772      arg=$1;
15773      case $arg in #(
15774      *"$as_nl"*)
15775	expr "X$arg" : "X\\(.*\\)$as_nl";
15776	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15777      esac;
15778      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15779    '
15780    export as_echo_n_body
15781    as_echo_n='sh -c $as_echo_n_body as_echo'
15782  fi
15783  export as_echo_body
15784  as_echo='sh -c $as_echo_body as_echo'
15785fi
15786
15787# The user is always right.
15788if test "${PATH_SEPARATOR+set}" != set; then
15789  PATH_SEPARATOR=:
15790  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15791    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15792      PATH_SEPARATOR=';'
15793  }
15794fi
15795
15796
15797# IFS
15798# We need space, tab and new line, in precisely that order.  Quoting is
15799# there to prevent editors from complaining about space-tab.
15800# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15801# splitting by setting IFS to empty value.)
15802IFS=" ""	$as_nl"
15803
15804# Find who we are.  Look in the path if we contain no directory separator.
15805as_myself=
15806case $0 in #((
15807  *[\\/]* ) as_myself=$0 ;;
15808  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809for as_dir in $PATH
15810do
15811  IFS=$as_save_IFS
15812  test -z "$as_dir" && as_dir=.
15813    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15814  done
15815IFS=$as_save_IFS
15816
15817     ;;
15818esac
15819# We did not find ourselves, most probably we were run as `sh COMMAND'
15820# in which case we are not to be found in the path.
15821if test "x$as_myself" = x; then
15822  as_myself=$0
15823fi
15824if test ! -f "$as_myself"; then
15825  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15826  exit 1
15827fi
15828
15829# Unset variables that we do not need and which cause bugs (e.g. in
15830# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15831# suppresses any "Segmentation fault" message there.  '((' could
15832# trigger a bug in pdksh 5.2.14.
15833for as_var in BASH_ENV ENV MAIL MAILPATH
15834do eval test x\${$as_var+set} = xset \
15835  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15836done
15837PS1='$ '
15838PS2='> '
15839PS4='+ '
15840
15841# NLS nuisances.
15842LC_ALL=C
15843export LC_ALL
15844LANGUAGE=C
15845export LANGUAGE
15846
15847# CDPATH.
15848(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15849
15850
15851# as_fn_error STATUS ERROR [LINENO LOG_FD]
15852# ----------------------------------------
15853# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15854# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15855# script with STATUS, using 1 if that was 0.
15856as_fn_error ()
15857{
15858  as_status=$1; test $as_status -eq 0 && as_status=1
15859  if test "$4"; then
15860    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15861    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15862  fi
15863  $as_echo "$as_me: error: $2" >&2
15864  as_fn_exit $as_status
15865} # as_fn_error
15866
15867
15868# as_fn_set_status STATUS
15869# -----------------------
15870# Set $? to STATUS, without forking.
15871as_fn_set_status ()
15872{
15873  return $1
15874} # as_fn_set_status
15875
15876# as_fn_exit STATUS
15877# -----------------
15878# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15879as_fn_exit ()
15880{
15881  set +e
15882  as_fn_set_status $1
15883  exit $1
15884} # as_fn_exit
15885
15886# as_fn_unset VAR
15887# ---------------
15888# Portably unset VAR.
15889as_fn_unset ()
15890{
15891  { eval $1=; unset $1;}
15892}
15893as_unset=as_fn_unset
15894# as_fn_append VAR VALUE
15895# ----------------------
15896# Append the text in VALUE to the end of the definition contained in VAR. Take
15897# advantage of any shell optimizations that allow amortized linear growth over
15898# repeated appends, instead of the typical quadratic growth present in naive
15899# implementations.
15900if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15901  eval 'as_fn_append ()
15902  {
15903    eval $1+=\$2
15904  }'
15905else
15906  as_fn_append ()
15907  {
15908    eval $1=\$$1\$2
15909  }
15910fi # as_fn_append
15911
15912# as_fn_arith ARG...
15913# ------------------
15914# Perform arithmetic evaluation on the ARGs, and store the result in the
15915# global $as_val. Take advantage of shells that can avoid forks. The arguments
15916# must be portable across $(()) and expr.
15917if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15918  eval 'as_fn_arith ()
15919  {
15920    as_val=$(( $* ))
15921  }'
15922else
15923  as_fn_arith ()
15924  {
15925    as_val=`expr "$@" || test $? -eq 1`
15926  }
15927fi # as_fn_arith
15928
15929
15930if expr a : '\(a\)' >/dev/null 2>&1 &&
15931   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15932  as_expr=expr
15933else
15934  as_expr=false
15935fi
15936
15937if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15938  as_basename=basename
15939else
15940  as_basename=false
15941fi
15942
15943if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15944  as_dirname=dirname
15945else
15946  as_dirname=false
15947fi
15948
15949as_me=`$as_basename -- "$0" ||
15950$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15951	 X"$0" : 'X\(//\)$' \| \
15952	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15953$as_echo X/"$0" |
15954    sed '/^.*\/\([^/][^/]*\)\/*$/{
15955	    s//\1/
15956	    q
15957	  }
15958	  /^X\/\(\/\/\)$/{
15959	    s//\1/
15960	    q
15961	  }
15962	  /^X\/\(\/\).*/{
15963	    s//\1/
15964	    q
15965	  }
15966	  s/.*/./; q'`
15967
15968# Avoid depending upon Character Ranges.
15969as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15970as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15971as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15972as_cr_digits='0123456789'
15973as_cr_alnum=$as_cr_Letters$as_cr_digits
15974
15975ECHO_C= ECHO_N= ECHO_T=
15976case `echo -n x` in #(((((
15977-n*)
15978  case `echo 'xy\c'` in
15979  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15980  xy)  ECHO_C='\c';;
15981  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15982       ECHO_T='	';;
15983  esac;;
15984*)
15985  ECHO_N='-n';;
15986esac
15987
15988rm -f conf$$ conf$$.exe conf$$.file
15989if test -d conf$$.dir; then
15990  rm -f conf$$.dir/conf$$.file
15991else
15992  rm -f conf$$.dir
15993  mkdir conf$$.dir 2>/dev/null
15994fi
15995if (echo >conf$$.file) 2>/dev/null; then
15996  if ln -s conf$$.file conf$$ 2>/dev/null; then
15997    as_ln_s='ln -s'
15998    # ... but there are two gotchas:
15999    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16000    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16001    # In both cases, we have to default to `cp -pR'.
16002    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16003      as_ln_s='cp -pR'
16004  elif ln conf$$.file conf$$ 2>/dev/null; then
16005    as_ln_s=ln
16006  else
16007    as_ln_s='cp -pR'
16008  fi
16009else
16010  as_ln_s='cp -pR'
16011fi
16012rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16013rmdir conf$$.dir 2>/dev/null
16014
16015
16016# as_fn_mkdir_p
16017# -------------
16018# Create "$as_dir" as a directory, including parents if necessary.
16019as_fn_mkdir_p ()
16020{
16021
16022  case $as_dir in #(
16023  -*) as_dir=./$as_dir;;
16024  esac
16025  test -d "$as_dir" || eval $as_mkdir_p || {
16026    as_dirs=
16027    while :; do
16028      case $as_dir in #(
16029      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16030      *) as_qdir=$as_dir;;
16031      esac
16032      as_dirs="'$as_qdir' $as_dirs"
16033      as_dir=`$as_dirname -- "$as_dir" ||
16034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16035	 X"$as_dir" : 'X\(//\)[^/]' \| \
16036	 X"$as_dir" : 'X\(//\)$' \| \
16037	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16038$as_echo X"$as_dir" |
16039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16040	    s//\1/
16041	    q
16042	  }
16043	  /^X\(\/\/\)[^/].*/{
16044	    s//\1/
16045	    q
16046	  }
16047	  /^X\(\/\/\)$/{
16048	    s//\1/
16049	    q
16050	  }
16051	  /^X\(\/\).*/{
16052	    s//\1/
16053	    q
16054	  }
16055	  s/.*/./; q'`
16056      test -d "$as_dir" && break
16057    done
16058    test -z "$as_dirs" || eval "mkdir $as_dirs"
16059  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16060
16061
16062} # as_fn_mkdir_p
16063if mkdir -p . 2>/dev/null; then
16064  as_mkdir_p='mkdir -p "$as_dir"'
16065else
16066  test -d ./-p && rmdir ./-p
16067  as_mkdir_p=false
16068fi
16069
16070
16071# as_fn_executable_p FILE
16072# -----------------------
16073# Test if FILE is an executable regular file.
16074as_fn_executable_p ()
16075{
16076  test -f "$1" && test -x "$1"
16077} # as_fn_executable_p
16078as_test_x='test -x'
16079as_executable_p=as_fn_executable_p
16080
16081# Sed expression to map a string onto a valid CPP name.
16082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16083
16084# Sed expression to map a string onto a valid variable name.
16085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16086
16087
16088exec 6>&1
16089## ----------------------------------- ##
16090## Main body of $CONFIG_STATUS script. ##
16091## ----------------------------------- ##
16092_ASEOF
16093test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16094
16095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096# Save the log message, to keep $0 and so on meaningful, and to
16097# report actual input values of CONFIG_FILES etc. instead of their
16098# values after options handling.
16099ac_log="
16100This file was extended by librelp $as_me 1.10.0, which was
16101generated by GNU Autoconf 2.69.  Invocation command line was
16102
16103  CONFIG_FILES    = $CONFIG_FILES
16104  CONFIG_HEADERS  = $CONFIG_HEADERS
16105  CONFIG_LINKS    = $CONFIG_LINKS
16106  CONFIG_COMMANDS = $CONFIG_COMMANDS
16107  $ $0 $@
16108
16109on `(hostname || uname -n) 2>/dev/null | sed 1q`
16110"
16111
16112_ACEOF
16113
16114case $ac_config_files in *"
16115"*) set x $ac_config_files; shift; ac_config_files=$*;;
16116esac
16117
16118case $ac_config_headers in *"
16119"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16120esac
16121
16122
16123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124# Files that config.status was made for.
16125config_files="$ac_config_files"
16126config_headers="$ac_config_headers"
16127config_commands="$ac_config_commands"
16128
16129_ACEOF
16130
16131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132ac_cs_usage="\
16133\`$as_me' instantiates files and other configuration actions
16134from templates according to the current configuration.  Unless the files
16135and actions are specified as TAGs, all are instantiated by default.
16136
16137Usage: $0 [OPTION]... [TAG]...
16138
16139  -h, --help       print this help, then exit
16140  -V, --version    print version number and configuration settings, then exit
16141      --config     print configuration, then exit
16142  -q, --quiet, --silent
16143                   do not print progress messages
16144  -d, --debug      don't remove temporary files
16145      --recheck    update $as_me by reconfiguring in the same conditions
16146      --file=FILE[:TEMPLATE]
16147                   instantiate the configuration file FILE
16148      --header=FILE[:TEMPLATE]
16149                   instantiate the configuration header FILE
16150
16151Configuration files:
16152$config_files
16153
16154Configuration headers:
16155$config_headers
16156
16157Configuration commands:
16158$config_commands
16159
16160Report bugs to <rgerhards@adiscon.com>."
16161
16162_ACEOF
16163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16165ac_cs_version="\\
16166librelp config.status 1.10.0
16167configured by $0, generated by GNU Autoconf 2.69,
16168  with options \\"\$ac_cs_config\\"
16169
16170Copyright (C) 2012 Free Software Foundation, Inc.
16171This config.status script is free software; the Free Software Foundation
16172gives unlimited permission to copy, distribute and modify it."
16173
16174ac_pwd='$ac_pwd'
16175srcdir='$srcdir'
16176INSTALL='$INSTALL'
16177MKDIR_P='$MKDIR_P'
16178AWK='$AWK'
16179test -n "\$AWK" || AWK=awk
16180_ACEOF
16181
16182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183# The default lists apply if the user does not specify any file.
16184ac_need_defaults=:
16185while test $# != 0
16186do
16187  case $1 in
16188  --*=?*)
16189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16190    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16191    ac_shift=:
16192    ;;
16193  --*=)
16194    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16195    ac_optarg=
16196    ac_shift=:
16197    ;;
16198  *)
16199    ac_option=$1
16200    ac_optarg=$2
16201    ac_shift=shift
16202    ;;
16203  esac
16204
16205  case $ac_option in
16206  # Handling of the options.
16207  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16208    ac_cs_recheck=: ;;
16209  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16210    $as_echo "$ac_cs_version"; exit ;;
16211  --config | --confi | --conf | --con | --co | --c )
16212    $as_echo "$ac_cs_config"; exit ;;
16213  --debug | --debu | --deb | --de | --d | -d )
16214    debug=: ;;
16215  --file | --fil | --fi | --f )
16216    $ac_shift
16217    case $ac_optarg in
16218    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16219    '') as_fn_error $? "missing file argument" ;;
16220    esac
16221    as_fn_append CONFIG_FILES " '$ac_optarg'"
16222    ac_need_defaults=false;;
16223  --header | --heade | --head | --hea )
16224    $ac_shift
16225    case $ac_optarg in
16226    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16227    esac
16228    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16229    ac_need_defaults=false;;
16230  --he | --h)
16231    # Conflict between --help and --header
16232    as_fn_error $? "ambiguous option: \`$1'
16233Try \`$0 --help' for more information.";;
16234  --help | --hel | -h )
16235    $as_echo "$ac_cs_usage"; exit ;;
16236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16237  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16238    ac_cs_silent=: ;;
16239
16240  # This is an error.
16241  -*) as_fn_error $? "unrecognized option: \`$1'
16242Try \`$0 --help' for more information." ;;
16243
16244  *) as_fn_append ac_config_targets " $1"
16245     ac_need_defaults=false ;;
16246
16247  esac
16248  shift
16249done
16250
16251ac_configure_extra_args=
16252
16253if $ac_cs_silent; then
16254  exec 6>/dev/null
16255  ac_configure_extra_args="$ac_configure_extra_args --silent"
16256fi
16257
16258_ACEOF
16259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16260if \$ac_cs_recheck; then
16261  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16262  shift
16263  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16264  CONFIG_SHELL='$SHELL'
16265  export CONFIG_SHELL
16266  exec "\$@"
16267fi
16268
16269_ACEOF
16270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271exec 5>>config.log
16272{
16273  echo
16274  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16275## Running $as_me. ##
16276_ASBOX
16277  $as_echo "$ac_log"
16278} >&5
16279
16280_ACEOF
16281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16282#
16283# INIT-COMMANDS
16284#
16285AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16286
16287
16288# The HP-UX ksh and POSIX shell print the target directory to stdout
16289# if CDPATH is set.
16290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16291
16292sed_quote_subst='$sed_quote_subst'
16293double_quote_subst='$double_quote_subst'
16294delay_variable_subst='$delay_variable_subst'
16295macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16296macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16297enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16298enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16299pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16300enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16301shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16302SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16303ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16304PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16305host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16306host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16307host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16308build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16309build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16310build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16311SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16312Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16313GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16314EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16315FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16316LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16317NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16318LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16319max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16320ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16321exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16322lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16323lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16324lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16325lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16326lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16327reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16328reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16329OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16330deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16331file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16332file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16333want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16334DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16335sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16336AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16337AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16338archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16339STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16340RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16341old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16342old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16343old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16344lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16345CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16346CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16347compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16348GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16349lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16350lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16351lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16352lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16353lt_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"`'
16354lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16355nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16356lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16357lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16358objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16359MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16360lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16361lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16362lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16363lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16364lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16365need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16366MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16367DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16368NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16369LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16370OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16371OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16372libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16373shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16374extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16375archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16376enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16377export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16378whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16379compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16380old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16381old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16382archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16383archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16384module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16385module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16386with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16387allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16388no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16389hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16390hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16391hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16392hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16393hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16394hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16395hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16396inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16397link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16398always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16399export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16400exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16401include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16402prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16403postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16404file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16405variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16406need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16407need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16408version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16409runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16410shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16411shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16412libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16413library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16414soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16415install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16416postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16417postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16418finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16419finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16420hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16421sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16422configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16423configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16424hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16425enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16426enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16427enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16428old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16429striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16430
16431LTCC='$LTCC'
16432LTCFLAGS='$LTCFLAGS'
16433compiler='$compiler_DEFAULT'
16434
16435# A function that is used when there is no print builtin or printf.
16436func_fallback_echo ()
16437{
16438  eval 'cat <<_LTECHO_EOF
16439\$1
16440_LTECHO_EOF'
16441}
16442
16443# Quote evaled strings.
16444for var in SHELL \
16445ECHO \
16446PATH_SEPARATOR \
16447SED \
16448GREP \
16449EGREP \
16450FGREP \
16451LD \
16452NM \
16453LN_S \
16454lt_SP2NL \
16455lt_NL2SP \
16456reload_flag \
16457OBJDUMP \
16458deplibs_check_method \
16459file_magic_cmd \
16460file_magic_glob \
16461want_nocaseglob \
16462DLLTOOL \
16463sharedlib_from_linklib_cmd \
16464AR \
16465AR_FLAGS \
16466archiver_list_spec \
16467STRIP \
16468RANLIB \
16469CC \
16470CFLAGS \
16471compiler \
16472lt_cv_sys_global_symbol_pipe \
16473lt_cv_sys_global_symbol_to_cdecl \
16474lt_cv_sys_global_symbol_to_import \
16475lt_cv_sys_global_symbol_to_c_name_address \
16476lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16477lt_cv_nm_interface \
16478nm_file_list_spec \
16479lt_cv_truncate_bin \
16480lt_prog_compiler_no_builtin_flag \
16481lt_prog_compiler_pic \
16482lt_prog_compiler_wl \
16483lt_prog_compiler_static \
16484lt_cv_prog_compiler_c_o \
16485need_locks \
16486MANIFEST_TOOL \
16487DSYMUTIL \
16488NMEDIT \
16489LIPO \
16490OTOOL \
16491OTOOL64 \
16492shrext_cmds \
16493export_dynamic_flag_spec \
16494whole_archive_flag_spec \
16495compiler_needs_object \
16496with_gnu_ld \
16497allow_undefined_flag \
16498no_undefined_flag \
16499hardcode_libdir_flag_spec \
16500hardcode_libdir_separator \
16501exclude_expsyms \
16502include_expsyms \
16503file_list_spec \
16504variables_saved_for_relink \
16505libname_spec \
16506library_names_spec \
16507soname_spec \
16508install_override_mode \
16509finish_eval \
16510old_striplib \
16511striplib; do
16512    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16513    *[\\\\\\\`\\"\\\$]*)
16514      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16515      ;;
16516    *)
16517      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16518      ;;
16519    esac
16520done
16521
16522# Double-quote double-evaled strings.
16523for var in reload_cmds \
16524old_postinstall_cmds \
16525old_postuninstall_cmds \
16526old_archive_cmds \
16527extract_expsyms_cmds \
16528old_archive_from_new_cmds \
16529old_archive_from_expsyms_cmds \
16530archive_cmds \
16531archive_expsym_cmds \
16532module_cmds \
16533module_expsym_cmds \
16534export_symbols_cmds \
16535prelink_cmds \
16536postlink_cmds \
16537postinstall_cmds \
16538postuninstall_cmds \
16539finish_cmds \
16540sys_lib_search_path_spec \
16541configure_time_dlsearch_path \
16542configure_time_lt_sys_library_path; do
16543    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16544    *[\\\\\\\`\\"\\\$]*)
16545      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16546      ;;
16547    *)
16548      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16549      ;;
16550    esac
16551done
16552
16553ac_aux_dir='$ac_aux_dir'
16554
16555# See if we are running on zsh, and set the options that allow our
16556# commands through without removal of \ escapes INIT.
16557if test -n "\${ZSH_VERSION+set}"; then
16558   setopt NO_GLOB_SUBST
16559fi
16560
16561
16562    PACKAGE='$PACKAGE'
16563    VERSION='$VERSION'
16564    RM='$RM'
16565    ofile='$ofile'
16566
16567
16568
16569
16570_ACEOF
16571
16572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16573
16574# Handling of arguments.
16575for ac_config_target in $ac_config_targets
16576do
16577  case $ac_config_target in
16578    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16579    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16580    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16581    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16582    "relp.pc") CONFIG_FILES="$CONFIG_FILES relp.pc" ;;
16583    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16584    "tests/set-envvars") CONFIG_FILES="$CONFIG_FILES tests/set-envvars" ;;
16585    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16586    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16587
16588  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16589  esac
16590done
16591
16592
16593# If the user did not use the arguments to specify the items to instantiate,
16594# then the envvar interface is used.  Set only those that are not.
16595# We use the long form for the default assignment because of an extremely
16596# bizarre bug on SunOS 4.1.3.
16597if $ac_need_defaults; then
16598  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16599  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16600  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16601fi
16602
16603# Have a temporary directory for convenience.  Make it in the build tree
16604# simply because there is no reason against having it here, and in addition,
16605# creating and moving files from /tmp can sometimes cause problems.
16606# Hook for its removal unless debugging.
16607# Note that there is a small window in which the directory will not be cleaned:
16608# after its creation but before its name has been assigned to `$tmp'.
16609$debug ||
16610{
16611  tmp= ac_tmp=
16612  trap 'exit_status=$?
16613  : "${ac_tmp:=$tmp}"
16614  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16615' 0
16616  trap 'as_fn_exit 1' 1 2 13 15
16617}
16618# Create a (secure) tmp directory for tmp files.
16619
16620{
16621  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16622  test -d "$tmp"
16623}  ||
16624{
16625  tmp=./conf$$-$RANDOM
16626  (umask 077 && mkdir "$tmp")
16627} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16628ac_tmp=$tmp
16629
16630# Set up the scripts for CONFIG_FILES section.
16631# No need to generate them if there are no CONFIG_FILES.
16632# This happens for instance with `./config.status config.h'.
16633if test -n "$CONFIG_FILES"; then
16634
16635
16636ac_cr=`echo X | tr X '\015'`
16637# On cygwin, bash can eat \r inside `` if the user requested igncr.
16638# But we know of no other shell where ac_cr would be empty at this
16639# point, so we can use a bashism as a fallback.
16640if test "x$ac_cr" = x; then
16641  eval ac_cr=\$\'\\r\'
16642fi
16643ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16644if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16645  ac_cs_awk_cr='\\r'
16646else
16647  ac_cs_awk_cr=$ac_cr
16648fi
16649
16650echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16651_ACEOF
16652
16653
16654{
16655  echo "cat >conf$$subs.awk <<_ACEOF" &&
16656  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16657  echo "_ACEOF"
16658} >conf$$subs.sh ||
16659  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16660ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16661ac_delim='%!_!# '
16662for ac_last_try in false false false false false :; do
16663  . ./conf$$subs.sh ||
16664    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16665
16666  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16667  if test $ac_delim_n = $ac_delim_num; then
16668    break
16669  elif $ac_last_try; then
16670    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16671  else
16672    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16673  fi
16674done
16675rm -f conf$$subs.sh
16676
16677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16678cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16679_ACEOF
16680sed -n '
16681h
16682s/^/S["/; s/!.*/"]=/
16683p
16684g
16685s/^[^!]*!//
16686:repl
16687t repl
16688s/'"$ac_delim"'$//
16689t delim
16690:nl
16691h
16692s/\(.\{148\}\)..*/\1/
16693t more1
16694s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16695p
16696n
16697b repl
16698:more1
16699s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16700p
16701g
16702s/.\{148\}//
16703t nl
16704:delim
16705h
16706s/\(.\{148\}\)..*/\1/
16707t more2
16708s/["\\]/\\&/g; s/^/"/; s/$/"/
16709p
16710b
16711:more2
16712s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16713p
16714g
16715s/.\{148\}//
16716t delim
16717' <conf$$subs.awk | sed '
16718/^[^""]/{
16719  N
16720  s/\n//
16721}
16722' >>$CONFIG_STATUS || ac_write_fail=1
16723rm -f conf$$subs.awk
16724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725_ACAWK
16726cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16727  for (key in S) S_is_set[key] = 1
16728  FS = ""
16729
16730}
16731{
16732  line = $ 0
16733  nfields = split(line, field, "@")
16734  substed = 0
16735  len = length(field[1])
16736  for (i = 2; i < nfields; i++) {
16737    key = field[i]
16738    keylen = length(key)
16739    if (S_is_set[key]) {
16740      value = S[key]
16741      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16742      len += length(value) + length(field[++i])
16743      substed = 1
16744    } else
16745      len += 1 + keylen
16746  }
16747
16748  print line
16749}
16750
16751_ACAWK
16752_ACEOF
16753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16754if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16755  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16756else
16757  cat
16758fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16759  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16760_ACEOF
16761
16762# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16763# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16764# trailing colons and then remove the whole line if VPATH becomes empty
16765# (actually we leave an empty line to preserve line numbers).
16766if test "x$srcdir" = x.; then
16767  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16768h
16769s///
16770s/^/:/
16771s/[	 ]*$/:/
16772s/:\$(srcdir):/:/g
16773s/:\${srcdir}:/:/g
16774s/:@srcdir@:/:/g
16775s/^:*//
16776s/:*$//
16777x
16778s/\(=[	 ]*\).*/\1/
16779G
16780s/\n//
16781s/^[^=]*=[	 ]*$//
16782}'
16783fi
16784
16785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16786fi # test -n "$CONFIG_FILES"
16787
16788# Set up the scripts for CONFIG_HEADERS section.
16789# No need to generate them if there are no CONFIG_HEADERS.
16790# This happens for instance with `./config.status Makefile'.
16791if test -n "$CONFIG_HEADERS"; then
16792cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16793BEGIN {
16794_ACEOF
16795
16796# Transform confdefs.h into an awk script `defines.awk', embedded as
16797# here-document in config.status, that substitutes the proper values into
16798# config.h.in to produce config.h.
16799
16800# Create a delimiter string that does not exist in confdefs.h, to ease
16801# handling of long lines.
16802ac_delim='%!_!# '
16803for ac_last_try in false false :; do
16804  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16805  if test -z "$ac_tt"; then
16806    break
16807  elif $ac_last_try; then
16808    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16809  else
16810    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16811  fi
16812done
16813
16814# For the awk script, D is an array of macro values keyed by name,
16815# likewise P contains macro parameters if any.  Preserve backslash
16816# newline sequences.
16817
16818ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16819sed -n '
16820s/.\{148\}/&'"$ac_delim"'/g
16821t rset
16822:rset
16823s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16824t def
16825d
16826:def
16827s/\\$//
16828t bsnl
16829s/["\\]/\\&/g
16830s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16831D["\1"]=" \3"/p
16832s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16833d
16834:bsnl
16835s/["\\]/\\&/g
16836s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16837D["\1"]=" \3\\\\\\n"\\/p
16838t cont
16839s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16840t cont
16841d
16842:cont
16843n
16844s/.\{148\}/&'"$ac_delim"'/g
16845t clear
16846:clear
16847s/\\$//
16848t bsnlc
16849s/["\\]/\\&/g; s/^/"/; s/$/"/p
16850d
16851:bsnlc
16852s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16853b cont
16854' <confdefs.h | sed '
16855s/'"$ac_delim"'/"\\\
16856"/g' >>$CONFIG_STATUS || ac_write_fail=1
16857
16858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16859  for (key in D) D_is_set[key] = 1
16860  FS = ""
16861}
16862/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16863  line = \$ 0
16864  split(line, arg, " ")
16865  if (arg[1] == "#") {
16866    defundef = arg[2]
16867    mac1 = arg[3]
16868  } else {
16869    defundef = substr(arg[1], 2)
16870    mac1 = arg[2]
16871  }
16872  split(mac1, mac2, "(") #)
16873  macro = mac2[1]
16874  prefix = substr(line, 1, index(line, defundef) - 1)
16875  if (D_is_set[macro]) {
16876    # Preserve the white space surrounding the "#".
16877    print prefix "define", macro P[macro] D[macro]
16878    next
16879  } else {
16880    # Replace #undef with comments.  This is necessary, for example,
16881    # in the case of _POSIX_SOURCE, which is predefined and required
16882    # on some systems where configure will not decide to define it.
16883    if (defundef == "undef") {
16884      print "/*", prefix defundef, macro, "*/"
16885      next
16886    }
16887  }
16888}
16889{ print }
16890_ACAWK
16891_ACEOF
16892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16893  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16894fi # test -n "$CONFIG_HEADERS"
16895
16896
16897eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16898shift
16899for ac_tag
16900do
16901  case $ac_tag in
16902  :[FHLC]) ac_mode=$ac_tag; continue;;
16903  esac
16904  case $ac_mode$ac_tag in
16905  :[FHL]*:*);;
16906  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16907  :[FH]-) ac_tag=-:-;;
16908  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16909  esac
16910  ac_save_IFS=$IFS
16911  IFS=:
16912  set x $ac_tag
16913  IFS=$ac_save_IFS
16914  shift
16915  ac_file=$1
16916  shift
16917
16918  case $ac_mode in
16919  :L) ac_source=$1;;
16920  :[FH])
16921    ac_file_inputs=
16922    for ac_f
16923    do
16924      case $ac_f in
16925      -) ac_f="$ac_tmp/stdin";;
16926      *) # Look for the file first in the build tree, then in the source tree
16927	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16928	 # because $ac_f cannot contain `:'.
16929	 test -f "$ac_f" ||
16930	   case $ac_f in
16931	   [\\/$]*) false;;
16932	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16933	   esac ||
16934	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16935      esac
16936      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16937      as_fn_append ac_file_inputs " '$ac_f'"
16938    done
16939
16940    # Let's still pretend it is `configure' which instantiates (i.e., don't
16941    # use $as_me), people would be surprised to read:
16942    #    /* config.h.  Generated by config.status.  */
16943    configure_input='Generated from '`
16944	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16945	`' by configure.'
16946    if test x"$ac_file" != x-; then
16947      configure_input="$ac_file.  $configure_input"
16948      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16949$as_echo "$as_me: creating $ac_file" >&6;}
16950    fi
16951    # Neutralize special characters interpreted by sed in replacement strings.
16952    case $configure_input in #(
16953    *\&* | *\|* | *\\* )
16954       ac_sed_conf_input=`$as_echo "$configure_input" |
16955       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16956    *) ac_sed_conf_input=$configure_input;;
16957    esac
16958
16959    case $ac_tag in
16960    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16961      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16962    esac
16963    ;;
16964  esac
16965
16966  ac_dir=`$as_dirname -- "$ac_file" ||
16967$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16968	 X"$ac_file" : 'X\(//\)[^/]' \| \
16969	 X"$ac_file" : 'X\(//\)$' \| \
16970	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16971$as_echo X"$ac_file" |
16972    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16973	    s//\1/
16974	    q
16975	  }
16976	  /^X\(\/\/\)[^/].*/{
16977	    s//\1/
16978	    q
16979	  }
16980	  /^X\(\/\/\)$/{
16981	    s//\1/
16982	    q
16983	  }
16984	  /^X\(\/\).*/{
16985	    s//\1/
16986	    q
16987	  }
16988	  s/.*/./; q'`
16989  as_dir="$ac_dir"; as_fn_mkdir_p
16990  ac_builddir=.
16991
16992case "$ac_dir" in
16993.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16994*)
16995  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16996  # A ".." for each directory in $ac_dir_suffix.
16997  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16998  case $ac_top_builddir_sub in
16999  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17000  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17001  esac ;;
17002esac
17003ac_abs_top_builddir=$ac_pwd
17004ac_abs_builddir=$ac_pwd$ac_dir_suffix
17005# for backward compatibility:
17006ac_top_builddir=$ac_top_build_prefix
17007
17008case $srcdir in
17009  .)  # We are building in place.
17010    ac_srcdir=.
17011    ac_top_srcdir=$ac_top_builddir_sub
17012    ac_abs_top_srcdir=$ac_pwd ;;
17013  [\\/]* | ?:[\\/]* )  # Absolute name.
17014    ac_srcdir=$srcdir$ac_dir_suffix;
17015    ac_top_srcdir=$srcdir
17016    ac_abs_top_srcdir=$srcdir ;;
17017  *) # Relative name.
17018    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17019    ac_top_srcdir=$ac_top_build_prefix$srcdir
17020    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17021esac
17022ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17023
17024
17025  case $ac_mode in
17026  :F)
17027  #
17028  # CONFIG_FILE
17029  #
17030
17031  case $INSTALL in
17032  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17033  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17034  esac
17035  ac_MKDIR_P=$MKDIR_P
17036  case $MKDIR_P in
17037  [\\/$]* | ?:[\\/]* ) ;;
17038  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17039  esac
17040_ACEOF
17041
17042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17043# If the template does not know about datarootdir, expand it.
17044# FIXME: This hack should be removed a few years after 2.60.
17045ac_datarootdir_hack=; ac_datarootdir_seen=
17046ac_sed_dataroot='
17047/datarootdir/ {
17048  p
17049  q
17050}
17051/@datadir@/p
17052/@docdir@/p
17053/@infodir@/p
17054/@localedir@/p
17055/@mandir@/p'
17056case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17057*datarootdir*) ac_datarootdir_seen=yes;;
17058*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17059  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17060$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17061_ACEOF
17062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063  ac_datarootdir_hack='
17064  s&@datadir@&$datadir&g
17065  s&@docdir@&$docdir&g
17066  s&@infodir@&$infodir&g
17067  s&@localedir@&$localedir&g
17068  s&@mandir@&$mandir&g
17069  s&\\\${datarootdir}&$datarootdir&g' ;;
17070esac
17071_ACEOF
17072
17073# Neutralize VPATH when `$srcdir' = `.'.
17074# Shell code in configure.ac might set extrasub.
17075# FIXME: do we really want to maintain this feature?
17076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17077ac_sed_extra="$ac_vpsub
17078$extrasub
17079_ACEOF
17080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17081:t
17082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17083s|@configure_input@|$ac_sed_conf_input|;t t
17084s&@top_builddir@&$ac_top_builddir_sub&;t t
17085s&@top_build_prefix@&$ac_top_build_prefix&;t t
17086s&@srcdir@&$ac_srcdir&;t t
17087s&@abs_srcdir@&$ac_abs_srcdir&;t t
17088s&@top_srcdir@&$ac_top_srcdir&;t t
17089s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17090s&@builddir@&$ac_builddir&;t t
17091s&@abs_builddir@&$ac_abs_builddir&;t t
17092s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17093s&@INSTALL@&$ac_INSTALL&;t t
17094s&@MKDIR_P@&$ac_MKDIR_P&;t t
17095$ac_datarootdir_hack
17096"
17097eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17098  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17099
17100test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17101  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17102  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17103      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17104  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17105which seems to be undefined.  Please make sure it is defined" >&5
17106$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17107which seems to be undefined.  Please make sure it is defined" >&2;}
17108
17109  rm -f "$ac_tmp/stdin"
17110  case $ac_file in
17111  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17112  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17113  esac \
17114  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17115 ;;
17116  :H)
17117  #
17118  # CONFIG_HEADER
17119  #
17120  if test x"$ac_file" != x-; then
17121    {
17122      $as_echo "/* $configure_input  */" \
17123      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17124    } >"$ac_tmp/config.h" \
17125      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17126    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17127      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17128$as_echo "$as_me: $ac_file is unchanged" >&6;}
17129    else
17130      rm -f "$ac_file"
17131      mv "$ac_tmp/config.h" "$ac_file" \
17132	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17133    fi
17134  else
17135    $as_echo "/* $configure_input  */" \
17136      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17137      || as_fn_error $? "could not create -" "$LINENO" 5
17138  fi
17139# Compute "$ac_file"'s index in $config_headers.
17140_am_arg="$ac_file"
17141_am_stamp_count=1
17142for _am_header in $config_headers :; do
17143  case $_am_header in
17144    $_am_arg | $_am_arg:* )
17145      break ;;
17146    * )
17147      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17148  esac
17149done
17150echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17151$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17152	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17153	 X"$_am_arg" : 'X\(//\)$' \| \
17154	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17155$as_echo X"$_am_arg" |
17156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17157	    s//\1/
17158	    q
17159	  }
17160	  /^X\(\/\/\)[^/].*/{
17161	    s//\1/
17162	    q
17163	  }
17164	  /^X\(\/\/\)$/{
17165	    s//\1/
17166	    q
17167	  }
17168	  /^X\(\/\).*/{
17169	    s//\1/
17170	    q
17171	  }
17172	  s/.*/./; q'`/stamp-h$_am_stamp_count
17173 ;;
17174
17175  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17176$as_echo "$as_me: executing $ac_file commands" >&6;}
17177 ;;
17178  esac
17179
17180
17181  case $ac_file$ac_mode in
17182    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17183  # Older Autoconf quotes --file arguments for eval, but not when files
17184  # are listed without --file.  Let's play safe and only enable the eval
17185  # if we detect the quoting.
17186  # TODO: see whether this extra hack can be removed once we start
17187  # requiring Autoconf 2.70 or later.
17188  case $CONFIG_FILES in #(
17189  *\'*) :
17190    eval set x "$CONFIG_FILES" ;; #(
17191  *) :
17192    set x $CONFIG_FILES ;; #(
17193  *) :
17194     ;;
17195esac
17196  shift
17197  # Used to flag and report bootstrapping failures.
17198  am_rc=0
17199  for am_mf
17200  do
17201    # Strip MF so we end up with the name of the file.
17202    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17203    # Check whether this is an Automake generated Makefile which includes
17204    # dependency-tracking related rules and includes.
17205    # Grep'ing the whole file directly is not great: AIX grep has a line
17206    # limit of 2048, but all sed's we know have understand at least 4000.
17207    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17208      || continue
17209    am_dirpart=`$as_dirname -- "$am_mf" ||
17210$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17211	 X"$am_mf" : 'X\(//\)[^/]' \| \
17212	 X"$am_mf" : 'X\(//\)$' \| \
17213	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17214$as_echo X"$am_mf" |
17215    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17216	    s//\1/
17217	    q
17218	  }
17219	  /^X\(\/\/\)[^/].*/{
17220	    s//\1/
17221	    q
17222	  }
17223	  /^X\(\/\/\)$/{
17224	    s//\1/
17225	    q
17226	  }
17227	  /^X\(\/\).*/{
17228	    s//\1/
17229	    q
17230	  }
17231	  s/.*/./; q'`
17232    am_filepart=`$as_basename -- "$am_mf" ||
17233$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17234	 X"$am_mf" : 'X\(//\)$' \| \
17235	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17236$as_echo X/"$am_mf" |
17237    sed '/^.*\/\([^/][^/]*\)\/*$/{
17238	    s//\1/
17239	    q
17240	  }
17241	  /^X\/\(\/\/\)$/{
17242	    s//\1/
17243	    q
17244	  }
17245	  /^X\/\(\/\).*/{
17246	    s//\1/
17247	    q
17248	  }
17249	  s/.*/./; q'`
17250    { echo "$as_me:$LINENO: cd "$am_dirpart" \
17251      && sed -e '/# am--include-marker/d' "$am_filepart" \
17252        | $MAKE -f - am--depfiles" >&5
17253   (cd "$am_dirpart" \
17254      && sed -e '/# am--include-marker/d' "$am_filepart" \
17255        | $MAKE -f - am--depfiles) >&5 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); } || am_rc=$?
17259  done
17260  if test $am_rc -ne 0; then
17261    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17263as_fn_error $? "Something went wrong bootstrapping makefile fragments
17264    for automatic dependency tracking.  Try re-running configure with the
17265    '--disable-dependency-tracking' option to at least be able to build
17266    the package (albeit without support for automatic dependency tracking).
17267See \`config.log' for more details" "$LINENO" 5; }
17268  fi
17269  { am_dirpart=; unset am_dirpart;}
17270  { am_filepart=; unset am_filepart;}
17271  { am_mf=; unset am_mf;}
17272  { am_rc=; unset am_rc;}
17273  rm -f conftest-deps.mk
17274}
17275 ;;
17276    "libtool":C)
17277
17278    # See if we are running on zsh, and set the options that allow our
17279    # commands through without removal of \ escapes.
17280    if test -n "${ZSH_VERSION+set}"; then
17281      setopt NO_GLOB_SUBST
17282    fi
17283
17284    cfgfile=${ofile}T
17285    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17286    $RM "$cfgfile"
17287
17288    cat <<_LT_EOF >> "$cfgfile"
17289#! $SHELL
17290# Generated automatically by $as_me ($PACKAGE) $VERSION
17291# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17292
17293# Provide generalized library-building support services.
17294# Written by Gordon Matzigkeit, 1996
17295
17296# Copyright (C) 2014 Free Software Foundation, Inc.
17297# This is free software; see the source for copying conditions.  There is NO
17298# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17299
17300# GNU Libtool is free software; you can redistribute it and/or modify
17301# it under the terms of the GNU General Public License as published by
17302# the Free Software Foundation; either version 2 of of the License, or
17303# (at your option) any later version.
17304#
17305# As a special exception to the GNU General Public License, if you
17306# distribute this file as part of a program or library that is built
17307# using GNU Libtool, you may include this file under the  same
17308# distribution terms that you use for the rest of that program.
17309#
17310# GNU Libtool is distributed in the hope that it will be useful, but
17311# WITHOUT ANY WARRANTY; without even the implied warranty of
17312# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17313# GNU General Public License for more details.
17314#
17315# You should have received a copy of the GNU General Public License
17316# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17317
17318
17319# The names of the tagged configurations supported by this script.
17320available_tags=''
17321
17322# Configured defaults for sys_lib_dlsearch_path munging.
17323: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17324
17325# ### BEGIN LIBTOOL CONFIG
17326
17327# Which release of libtool.m4 was used?
17328macro_version=$macro_version
17329macro_revision=$macro_revision
17330
17331# Whether or not to build shared libraries.
17332build_libtool_libs=$enable_shared
17333
17334# Whether or not to build static libraries.
17335build_old_libs=$enable_static
17336
17337# What type of objects to build.
17338pic_mode=$pic_mode
17339
17340# Whether or not to optimize for fast installation.
17341fast_install=$enable_fast_install
17342
17343# Shared archive member basename,for filename based shared library versioning on AIX.
17344shared_archive_member_spec=$shared_archive_member_spec
17345
17346# Shell to use when invoking shell scripts.
17347SHELL=$lt_SHELL
17348
17349# An echo program that protects backslashes.
17350ECHO=$lt_ECHO
17351
17352# The PATH separator for the build system.
17353PATH_SEPARATOR=$lt_PATH_SEPARATOR
17354
17355# The host system.
17356host_alias=$host_alias
17357host=$host
17358host_os=$host_os
17359
17360# The build system.
17361build_alias=$build_alias
17362build=$build
17363build_os=$build_os
17364
17365# A sed program that does not truncate output.
17366SED=$lt_SED
17367
17368# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17369Xsed="\$SED -e 1s/^X//"
17370
17371# A grep program that handles long lines.
17372GREP=$lt_GREP
17373
17374# An ERE matcher.
17375EGREP=$lt_EGREP
17376
17377# A literal string matcher.
17378FGREP=$lt_FGREP
17379
17380# A BSD- or MS-compatible name lister.
17381NM=$lt_NM
17382
17383# Whether we need soft or hard links.
17384LN_S=$lt_LN_S
17385
17386# What is the maximum length of a command?
17387max_cmd_len=$max_cmd_len
17388
17389# Object file suffix (normally "o").
17390objext=$ac_objext
17391
17392# Executable file suffix (normally "").
17393exeext=$exeext
17394
17395# whether the shell understands "unset".
17396lt_unset=$lt_unset
17397
17398# turn spaces into newlines.
17399SP2NL=$lt_lt_SP2NL
17400
17401# turn newlines into spaces.
17402NL2SP=$lt_lt_NL2SP
17403
17404# convert \$build file names to \$host format.
17405to_host_file_cmd=$lt_cv_to_host_file_cmd
17406
17407# convert \$build files to toolchain format.
17408to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17409
17410# An object symbol dumper.
17411OBJDUMP=$lt_OBJDUMP
17412
17413# Method to check whether dependent libraries are shared objects.
17414deplibs_check_method=$lt_deplibs_check_method
17415
17416# Command to use when deplibs_check_method = "file_magic".
17417file_magic_cmd=$lt_file_magic_cmd
17418
17419# How to find potential files when deplibs_check_method = "file_magic".
17420file_magic_glob=$lt_file_magic_glob
17421
17422# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17423want_nocaseglob=$lt_want_nocaseglob
17424
17425# DLL creation program.
17426DLLTOOL=$lt_DLLTOOL
17427
17428# Command to associate shared and link libraries.
17429sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17430
17431# The archiver.
17432AR=$lt_AR
17433
17434# Flags to create an archive.
17435AR_FLAGS=$lt_AR_FLAGS
17436
17437# How to feed a file listing to the archiver.
17438archiver_list_spec=$lt_archiver_list_spec
17439
17440# A symbol stripping program.
17441STRIP=$lt_STRIP
17442
17443# Commands used to install an old-style archive.
17444RANLIB=$lt_RANLIB
17445old_postinstall_cmds=$lt_old_postinstall_cmds
17446old_postuninstall_cmds=$lt_old_postuninstall_cmds
17447
17448# Whether to use a lock for old archive extraction.
17449lock_old_archive_extraction=$lock_old_archive_extraction
17450
17451# A C compiler.
17452LTCC=$lt_CC
17453
17454# LTCC compiler flags.
17455LTCFLAGS=$lt_CFLAGS
17456
17457# Take the output of nm and produce a listing of raw symbols and C names.
17458global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17459
17460# Transform the output of nm in a proper C declaration.
17461global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17462
17463# Transform the output of nm into a list of symbols to manually relocate.
17464global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17465
17466# Transform the output of nm in a C name address pair.
17467global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17468
17469# Transform the output of nm in a C name address pair when lib prefix is needed.
17470global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17471
17472# The name lister interface.
17473nm_interface=$lt_lt_cv_nm_interface
17474
17475# Specify filename containing input files for \$NM.
17476nm_file_list_spec=$lt_nm_file_list_spec
17477
17478# The root where to search for dependent libraries,and where our libraries should be installed.
17479lt_sysroot=$lt_sysroot
17480
17481# Command to truncate a binary pipe.
17482lt_truncate_bin=$lt_lt_cv_truncate_bin
17483
17484# The name of the directory that contains temporary libtool files.
17485objdir=$objdir
17486
17487# Used to examine libraries when file_magic_cmd begins with "file".
17488MAGIC_CMD=$MAGIC_CMD
17489
17490# Must we lock files when doing compilation?
17491need_locks=$lt_need_locks
17492
17493# Manifest tool.
17494MANIFEST_TOOL=$lt_MANIFEST_TOOL
17495
17496# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17497DSYMUTIL=$lt_DSYMUTIL
17498
17499# Tool to change global to local symbols on Mac OS X.
17500NMEDIT=$lt_NMEDIT
17501
17502# Tool to manipulate fat objects and archives on Mac OS X.
17503LIPO=$lt_LIPO
17504
17505# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17506OTOOL=$lt_OTOOL
17507
17508# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17509OTOOL64=$lt_OTOOL64
17510
17511# Old archive suffix (normally "a").
17512libext=$libext
17513
17514# Shared library suffix (normally ".so").
17515shrext_cmds=$lt_shrext_cmds
17516
17517# The commands to extract the exported symbol list from a shared archive.
17518extract_expsyms_cmds=$lt_extract_expsyms_cmds
17519
17520# Variables whose values should be saved in libtool wrapper scripts and
17521# restored at link time.
17522variables_saved_for_relink=$lt_variables_saved_for_relink
17523
17524# Do we need the "lib" prefix for modules?
17525need_lib_prefix=$need_lib_prefix
17526
17527# Do we need a version for libraries?
17528need_version=$need_version
17529
17530# Library versioning type.
17531version_type=$version_type
17532
17533# Shared library runtime path variable.
17534runpath_var=$runpath_var
17535
17536# Shared library path variable.
17537shlibpath_var=$shlibpath_var
17538
17539# Is shlibpath searched before the hard-coded library search path?
17540shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17541
17542# Format of library name prefix.
17543libname_spec=$lt_libname_spec
17544
17545# List of archive names.  First name is the real one, the rest are links.
17546# The last name is the one that the linker finds with -lNAME
17547library_names_spec=$lt_library_names_spec
17548
17549# The coded name of the library, if different from the real name.
17550soname_spec=$lt_soname_spec
17551
17552# Permission mode override for installation of shared libraries.
17553install_override_mode=$lt_install_override_mode
17554
17555# Command to use after installation of a shared archive.
17556postinstall_cmds=$lt_postinstall_cmds
17557
17558# Command to use after uninstallation of a shared archive.
17559postuninstall_cmds=$lt_postuninstall_cmds
17560
17561# Commands used to finish a libtool library installation in a directory.
17562finish_cmds=$lt_finish_cmds
17563
17564# As "finish_cmds", except a single script fragment to be evaled but
17565# not shown.
17566finish_eval=$lt_finish_eval
17567
17568# Whether we should hardcode library paths into libraries.
17569hardcode_into_libs=$hardcode_into_libs
17570
17571# Compile-time system search path for libraries.
17572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17573
17574# Detected run-time system search path for libraries.
17575sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17576
17577# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17578configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17579
17580# Whether dlopen is supported.
17581dlopen_support=$enable_dlopen
17582
17583# Whether dlopen of programs is supported.
17584dlopen_self=$enable_dlopen_self
17585
17586# Whether dlopen of statically linked programs is supported.
17587dlopen_self_static=$enable_dlopen_self_static
17588
17589# Commands to strip libraries.
17590old_striplib=$lt_old_striplib
17591striplib=$lt_striplib
17592
17593
17594# The linker used to build libraries.
17595LD=$lt_LD
17596
17597# How to create reloadable object files.
17598reload_flag=$lt_reload_flag
17599reload_cmds=$lt_reload_cmds
17600
17601# Commands used to build an old-style archive.
17602old_archive_cmds=$lt_old_archive_cmds
17603
17604# A language specific compiler.
17605CC=$lt_compiler
17606
17607# Is the compiler the GNU compiler?
17608with_gcc=$GCC
17609
17610# Compiler flag to turn off builtin functions.
17611no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17612
17613# Additional compiler flags for building library objects.
17614pic_flag=$lt_lt_prog_compiler_pic
17615
17616# How to pass a linker flag through the compiler.
17617wl=$lt_lt_prog_compiler_wl
17618
17619# Compiler flag to prevent dynamic linking.
17620link_static_flag=$lt_lt_prog_compiler_static
17621
17622# Does compiler simultaneously support -c and -o options?
17623compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17624
17625# Whether or not to add -lc for building shared libraries.
17626build_libtool_need_lc=$archive_cmds_need_lc
17627
17628# Whether or not to disallow shared libs when runtime libs are static.
17629allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17630
17631# Compiler flag to allow reflexive dlopens.
17632export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17633
17634# Compiler flag to generate shared objects directly from archives.
17635whole_archive_flag_spec=$lt_whole_archive_flag_spec
17636
17637# Whether the compiler copes with passing no objects directly.
17638compiler_needs_object=$lt_compiler_needs_object
17639
17640# Create an old-style archive from a shared archive.
17641old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17642
17643# Create a temporary old-style archive to link instead of a shared archive.
17644old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17645
17646# Commands used to build a shared archive.
17647archive_cmds=$lt_archive_cmds
17648archive_expsym_cmds=$lt_archive_expsym_cmds
17649
17650# Commands used to build a loadable module if different from building
17651# a shared archive.
17652module_cmds=$lt_module_cmds
17653module_expsym_cmds=$lt_module_expsym_cmds
17654
17655# Whether we are building with GNU ld or not.
17656with_gnu_ld=$lt_with_gnu_ld
17657
17658# Flag that allows shared libraries with undefined symbols to be built.
17659allow_undefined_flag=$lt_allow_undefined_flag
17660
17661# Flag that enforces no undefined symbols.
17662no_undefined_flag=$lt_no_undefined_flag
17663
17664# Flag to hardcode \$libdir into a binary during linking.
17665# This must work even if \$libdir does not exist
17666hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17667
17668# Whether we need a single "-rpath" flag with a separated argument.
17669hardcode_libdir_separator=$lt_hardcode_libdir_separator
17670
17671# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17672# DIR into the resulting binary.
17673hardcode_direct=$hardcode_direct
17674
17675# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17676# DIR into the resulting binary and the resulting library dependency is
17677# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17678# library is relocated.
17679hardcode_direct_absolute=$hardcode_direct_absolute
17680
17681# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17682# into the resulting binary.
17683hardcode_minus_L=$hardcode_minus_L
17684
17685# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17686# into the resulting binary.
17687hardcode_shlibpath_var=$hardcode_shlibpath_var
17688
17689# Set to "yes" if building a shared library automatically hardcodes DIR
17690# into the library and all subsequent libraries and executables linked
17691# against it.
17692hardcode_automatic=$hardcode_automatic
17693
17694# Set to yes if linker adds runtime paths of dependent libraries
17695# to runtime path list.
17696inherit_rpath=$inherit_rpath
17697
17698# Whether libtool must link a program against all its dependency libraries.
17699link_all_deplibs=$link_all_deplibs
17700
17701# Set to "yes" if exported symbols are required.
17702always_export_symbols=$always_export_symbols
17703
17704# The commands to list exported symbols.
17705export_symbols_cmds=$lt_export_symbols_cmds
17706
17707# Symbols that should not be listed in the preloaded symbols.
17708exclude_expsyms=$lt_exclude_expsyms
17709
17710# Symbols that must always be exported.
17711include_expsyms=$lt_include_expsyms
17712
17713# Commands necessary for linking programs (against libraries) with templates.
17714prelink_cmds=$lt_prelink_cmds
17715
17716# Commands necessary for finishing linking programs.
17717postlink_cmds=$lt_postlink_cmds
17718
17719# Specify filename containing input files.
17720file_list_spec=$lt_file_list_spec
17721
17722# How to hardcode a shared library path into an executable.
17723hardcode_action=$hardcode_action
17724
17725# ### END LIBTOOL CONFIG
17726
17727_LT_EOF
17728
17729    cat <<'_LT_EOF' >> "$cfgfile"
17730
17731# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17732
17733# func_munge_path_list VARIABLE PATH
17734# -----------------------------------
17735# VARIABLE is name of variable containing _space_ separated list of
17736# directories to be munged by the contents of PATH, which is string
17737# having a format:
17738# "DIR[:DIR]:"
17739#       string "DIR[ DIR]" will be prepended to VARIABLE
17740# ":DIR[:DIR]"
17741#       string "DIR[ DIR]" will be appended to VARIABLE
17742# "DIRP[:DIRP]::[DIRA:]DIRA"
17743#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17744#       "DIRA[ DIRA]" will be appended to VARIABLE
17745# "DIR[:DIR]"
17746#       VARIABLE will be replaced by "DIR[ DIR]"
17747func_munge_path_list ()
17748{
17749    case x$2 in
17750    x)
17751        ;;
17752    *:)
17753        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17754        ;;
17755    x:*)
17756        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17757        ;;
17758    *::*)
17759        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17760        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17761        ;;
17762    *)
17763        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17764        ;;
17765    esac
17766}
17767
17768
17769# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17770func_cc_basename ()
17771{
17772    for cc_temp in $*""; do
17773      case $cc_temp in
17774        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17775        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17776        \-*) ;;
17777        *) break;;
17778      esac
17779    done
17780    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17781}
17782
17783
17784# ### END FUNCTIONS SHARED WITH CONFIGURE
17785
17786_LT_EOF
17787
17788  case $host_os in
17789  aix3*)
17790    cat <<\_LT_EOF >> "$cfgfile"
17791# AIX sometimes has problems with the GCC collect2 program.  For some
17792# reason, if we set the COLLECT_NAMES environment variable, the problems
17793# vanish in a puff of smoke.
17794if test set != "${COLLECT_NAMES+set}"; then
17795  COLLECT_NAMES=
17796  export COLLECT_NAMES
17797fi
17798_LT_EOF
17799    ;;
17800  esac
17801
17802
17803ltmain=$ac_aux_dir/ltmain.sh
17804
17805
17806  # We use sed instead of cat because bash on DJGPP gets confused if
17807  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17808  # text mode, it properly converts lines to CR/LF.  This bash problem
17809  # is reportedly fixed, but why not run on old versions too?
17810  sed '$q' "$ltmain" >> "$cfgfile" \
17811     || (rm -f "$cfgfile"; exit 1)
17812
17813   mv -f "$cfgfile" "$ofile" ||
17814    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17815  chmod +x "$ofile"
17816
17817 ;;
17818
17819  esac
17820done # for ac_tag
17821
17822
17823as_fn_exit 0
17824_ACEOF
17825ac_clean_files=$ac_clean_files_save
17826
17827test $ac_write_fail = 0 ||
17828  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17829
17830
17831# configure is writing to config.log, and then calls config.status.
17832# config.status does its own redirection, appending to config.log.
17833# Unfortunately, on DOS this fails, as config.log is still kept open
17834# by configure, so config.status won't be able to write to it; its
17835# output is simply discarded.  So we exec the FD to /dev/null,
17836# effectively closing config.log, so it can be properly (re)opened and
17837# appended to by config.status.  When coming back to configure, we
17838# need to make the FD available again.
17839if test "$no_create" != yes; then
17840  ac_cs_success=:
17841  ac_config_status_args=
17842  test "$silent" = yes &&
17843    ac_config_status_args="$ac_config_status_args --quiet"
17844  exec 5>/dev/null
17845  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17846  exec 5>>config.log
17847  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17848  # would make configure fail if this is the last instruction.
17849  $ac_cs_success || as_fn_exit 1
17850fi
17851if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17852  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17853$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17854fi
17855
17856
17857
17858echo "*****************************************************"
17859echo "librelp will be compiled with the following settings:"
17860echo
17861echo "run valgrind in testbench:       $enable_valgrind"
17862echo "Debug mode enabled:              $enable_debug"
17863echo "GNUTLS enabled:                  $enable_tls"
17864echo "GNUTLS authentication supported: $have_gnutls_certificate_set_verify_function"
17865echo "OPENSSL enabled:                 $enable_tls_openssl"
17866echo "generic TLS tests enabled:       $enable_tls_generic"
17867
17868