1#! /bin/sh
2# From configure.ac Id: configure.ac 9989 2021-06-16 10:09:33Z michael .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.39.
5#
6# Report bugs to <bugs@ircd-hybrid.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210test \$(( 1 + 1 )) = 2 || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279$0: bugs@ircd-hybrid.org about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568lt_ltdl_dir='libltdl'
569
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573test -n "$DJDIR" || exec 7<&0 </dev/null
574exec 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592
593# Identity of this package.
594PACKAGE_NAME='ircd-hybrid'
595PACKAGE_TARNAME='ircd-hybrid'
596PACKAGE_VERSION='8.2.39'
597PACKAGE_STRING='ircd-hybrid 8.2.39'
598PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599PACKAGE_URL=''
600
601ac_unique_file="src/ircd.c"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_func_list=
639ac_header_list=
640ac_subst_vars='ltdl_LTLIBOBJS
641ltdl_LIBOBJS
642am__EXEEXT_FALSE
643am__EXEEXT_TRUE
644LTLIBOBJS
645LIBOBJS
646LOCALSTATEDIR
647DATADIR
648LIBDIR
649SYSCONFDIR
650PREFIX
651LTDLOPEN
652LT_CONFIG_H
653CONVENIENCE_LTDL_FALSE
654CONVENIENCE_LTDL_TRUE
655INSTALL_LTDL_FALSE
656INSTALL_LTDL_TRUE
657LT_ARGZ_H
658sys_symbol_underscore
659LIBADD_DL
660LT_DLPREOPEN
661LIBADD_DLD_LINK
662LIBADD_SHL_LOAD
663LIBADD_DLOPEN
664LT_DLLOADERS
665INCLTDL
666LTDLINCL
667LTDLDEPS
668LIBLTDL
669CPP
670LT_SYS_LIBRARY_PATH
671OTOOL64
672OTOOL
673LIPO
674NMEDIT
675DSYMUTIL
676MANIFEST_TOOL
677RANLIB
678ac_ct_AR
679AR
680DLLTOOL
681OBJDUMP
682LN_S
683NM
684ac_ct_DUMPBIN
685DUMPBIN
686LD
687FGREP
688EGREP
689GREP
690SED
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699LIBTOOL
700LEXLIB
701LEX_OUTPUT_ROOT
702LEX
703YFLAGS
704YACC
705am__fastdepCC_FALSE
706am__fastdepCC_TRUE
707CCDEPMODE
708am__nodep
709AMDEPBACKSLASH
710AMDEP_FALSE
711AMDEP_TRUE
712am__include
713DEPDIR
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721MAINT
722MAINTAINER_MODE_FALSE
723MAINTAINER_MODE_TRUE
724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770runstatedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL
790am__quote'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_silent_rules
795enable_maintainer_mode
796enable_dependency_tracking
797enable_static
798enable_shared
799with_pic
800enable_fast_install
801with_aix_soname
802with_gnu_ld
803with_sysroot
804enable_libtool_lock
805with_included_ltdl
806with_ltdl_include
807with_ltdl_lib
808enable_ltdl_install
809enable_kqueue
810enable_epoll
811enable_devpoll
812enable_poll
813enable_assert
814enable_debugging
815enable_warnings
816enable_efence
817with_tls
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827YACC
828YFLAGS
829LT_SYS_LIBRARY_PATH
830CPP'
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 ircd-hybrid 8.2.39 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/ircd-hybrid]
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 ircd-hybrid 8.2.39:";;
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-maintainer-mode
1463                          enable make rules and dependencies not useful (and
1464                          sometimes confusing) to the casual installer
1465  --enable-dependency-tracking
1466                          do not reject slow dependency extractors
1467  --disable-dependency-tracking
1468                          speeds up one-time build
1469  --enable-static[=PKGS]  build static libraries [default=no]
1470  --enable-shared[=PKGS]  build shared libraries [default=yes]
1471  --enable-fast-install[=PKGS]
1472                          optimize for fast installation [default=yes]
1473  --disable-libtool-lock  avoid locking (might break parallel builds)
1474  --enable-ltdl-install   install libltdl
1475  --enable-kqueue         Force kqueue usage.
1476  --enable-epoll          Force epoll usage.
1477  --enable-devpoll        Force devpoll usage.
1478  --enable-poll           Force poll usage.
1479  --enable-assert         Enable assert() statements
1480  --enable-debugging      Enable debugging.
1481  --enable-warnings       Enable compiler warnings.
1482  --enable-efence         Enable linking with Electric Fence 'efence' memory
1483                          debugger library.
1484
1485Optional Packages:
1486  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1489                          both]
1490  --with-aix-soname=aix|svr4|both
1491                          shared library versioning (aka "SONAME") variant to
1492                          provide on AIX, [default=aix].
1493  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1495                          compiler's sysroot if not specified).
1496  --with-included-ltdl    use the GNU ltdl sources included here
1497  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1498  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1499  --with-tls              Enables TLS with specified library. Options:
1500                          'openssl', 'wolfssl', 'gnutls' or 'none'
1501
1502Some influential environment variables:
1503  CC          C compiler command
1504  CFLAGS      C compiler flags
1505  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506              nonstandard directory <lib dir>
1507  LIBS        libraries to pass to the linker, e.g. -l<library>
1508  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509              you have headers in a nonstandard directory <include dir>
1510  YACC        The `Yet Another Compiler Compiler' implementation to use.
1511              Defaults to the first program found out of: `bison -y', `byacc',
1512              `yacc'.
1513  YFLAGS      The list of arguments that will be passed by default to $YACC.
1514              This script will default YFLAGS to the empty string to avoid a
1515              default value of `-d' given by some make applications.
1516  LT_SYS_LIBRARY_PATH
1517              User-defined run-time library search path.
1518  CPP         C preprocessor
1519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
1523Report bugs to <bugs@ircd-hybrid.org>.
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529  # If there are subdirs, report their specific --help.
1530  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531    test -d "$ac_dir" ||
1532      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533      continue
1534    ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540  # A ".." for each directory in $ac_dir_suffix.
1541  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542  case $ac_top_builddir_sub in
1543  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545  esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553  .)  # We are building in place.
1554    ac_srcdir=.
1555    ac_top_srcdir=$ac_top_builddir_sub
1556    ac_abs_top_srcdir=$ac_pwd ;;
1557  [\\/]* | ?:[\\/]* )  # Absolute name.
1558    ac_srcdir=$srcdir$ac_dir_suffix;
1559    ac_top_srcdir=$srcdir
1560    ac_abs_top_srcdir=$srcdir ;;
1561  *) # Relative name.
1562    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563    ac_top_srcdir=$ac_top_build_prefix$srcdir
1564    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568    cd "$ac_dir" || { ac_status=$?; continue; }
1569    # Check for guested configure.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586ircd-hybrid configure 8.2.39
1587generated by GNU Autoconf 2.69
1588
1589Copyright (C) 2012 Free Software Foundation, Inc.
1590This configure script is free software; the Free Software Foundation
1591gives unlimited permission to copy, distribute and modify it.
1592_ACEOF
1593  exit
1594fi
1595
1596## ------------------------ ##
1597## Autoconf initialization. ##
1598## ------------------------ ##
1599
1600# ac_fn_c_try_compile LINENO
1601# --------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_compile ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext
1607  if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_compile") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest.$ac_objext; then :
1626  ac_retval=0
1627else
1628  $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631	ac_retval=1
1632fi
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_compile
1637
1638# ac_fn_c_try_link LINENO
1639# -----------------------
1640# Try to link conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_link ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  rm -f conftest.$ac_objext conftest$ac_exeext
1645  if { { ac_try="$ac_link"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_link") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } && {
1661	 test -z "$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       } && test -s conftest$ac_exeext && {
1664	 test "$cross_compiling" = yes ||
1665	 test -x conftest$ac_exeext
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672	ac_retval=1
1673fi
1674  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676  # interfere with the next link command; also delete a directory that is
1677  # left behind by Apple's compiler.  We do this before executing the actions.
1678  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_link
1683
1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists and can be compiled using the include files in
1687# INCLUDES, setting the cache variable VAR accordingly.
1688ac_fn_c_check_header_compile ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695else
1696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702  eval "$3=yes"
1703else
1704  eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_compile
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } > conftest.i && {
1737	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745    ac_retval=1
1746fi
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770  { { case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_try") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; }; }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: program exited with status $ac_status" >&5
1783       $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786       ac_retval=$ac_status
1787fi
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812    which can conflict with char $2 (); below.
1813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814    <limits.h> exists even on freestanding compilers.  */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825   Use char because int might match the return type of a GCC
1826   builtin and then its argument prototype would still apply.  */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832    to always fail with ENOSYS.  Some functions are actually named
1833    something starting with __ and the normal name is an alias.  */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852    conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_func
1860
1861# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1862# ---------------------------------------------
1863# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1864# accordingly.
1865ac_fn_c_check_decl ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  as_decl_name=`echo $2|sed 's/ *(.*//'`
1869  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1871$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878int
1879main ()
1880{
1881#ifndef $as_decl_name
1882#ifdef __cplusplus
1883  (void) $as_decl_use;
1884#else
1885  (void) $as_decl_name;
1886#endif
1887#endif
1888
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  eval "$3=yes"
1895else
1896  eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_decl
1906
1907# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1908# -------------------------------------------
1909# Tests whether TYPE exists after having included INCLUDES, setting cache
1910# variable VAR accordingly.
1911ac_fn_c_check_type ()
1912{
1913  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917  $as_echo_n "(cached) " >&6
1918else
1919  eval "$3=no"
1920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main ()
1925{
1926if (sizeof ($2))
1927	 return 0;
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935$4
1936int
1937main ()
1938{
1939if (sizeof (($2)))
1940	    return 0;
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946
1947else
1948  eval "$3=yes"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954eval ac_res=\$$3
1955	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959} # ac_fn_c_check_type
1960
1961# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1962# -------------------------------------------------------
1963# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1964# the include files in INCLUDES and setting the cache variable VAR
1965# accordingly.
1966ac_fn_c_check_header_mongrel ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  if eval \${$3+:} false; then :
1970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval \${$3+:} false; then :
1973  $as_echo_n "(cached) " >&6
1974fi
1975eval ac_res=\$$3
1976	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977$as_echo "$ac_res" >&6; }
1978else
1979  # Is the header compilable?
1980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1981$as_echo_n "checking $2 usability... " >&6; }
1982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h.  */
1984$4
1985#include <$2>
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988  ac_header_compiler=yes
1989else
1990  ac_header_compiler=no
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1994$as_echo "$ac_header_compiler" >&6; }
1995
1996# Is the header present?
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1998$as_echo_n "checking $2 presence... " >&6; }
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001#include <$2>
2002_ACEOF
2003if ac_fn_c_try_cpp "$LINENO"; then :
2004  ac_header_preproc=yes
2005else
2006  ac_header_preproc=no
2007fi
2008rm -f conftest.err conftest.i conftest.$ac_ext
2009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2010$as_echo "$ac_header_preproc" >&6; }
2011
2012# So?  What about this header?
2013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2014  yes:no: )
2015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2016$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019    ;;
2020  no:yes:* )
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2022$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2024$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2026$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2028$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031( $as_echo "## ----------------------------------- ##
2032## Report this to bugs@ircd-hybrid.org ##
2033## ----------------------------------- ##"
2034     ) | sed "s/^/$as_me: WARNING:     /" >&2
2035    ;;
2036esac
2037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
2039if eval \${$3+:} false; then :
2040  $as_echo_n "(cached) " >&6
2041else
2042  eval "$3=\$ac_header_compiler"
2043fi
2044eval ac_res=\$$3
2045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047fi
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_header_mongrel
2051cat >config.log <<_ACEOF
2052This file contains any messages produced by compilers while
2053running configure, to aid debugging if configure makes a mistake.
2054
2055It was created by ircd-hybrid $as_me 8.2.39, which was
2056generated by GNU Autoconf 2.69.  Invocation command line was
2057
2058  $ $0 $@
2059
2060_ACEOF
2061exec 5>>config.log
2062{
2063cat <<_ASUNAME
2064## --------- ##
2065## Platform. ##
2066## --------- ##
2067
2068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2069uname -m = `(uname -m) 2>/dev/null || echo unknown`
2070uname -r = `(uname -r) 2>/dev/null || echo unknown`
2071uname -s = `(uname -s) 2>/dev/null || echo unknown`
2072uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073
2074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2075/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2076
2077/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2078/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2080/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2081/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2082/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2083/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2084
2085_ASUNAME
2086
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090  IFS=$as_save_IFS
2091  test -z "$as_dir" && as_dir=.
2092    $as_echo "PATH: $as_dir"
2093  done
2094IFS=$as_save_IFS
2095
2096} >&5
2097
2098cat >&5 <<_ACEOF
2099
2100
2101## ----------- ##
2102## Core tests. ##
2103## ----------- ##
2104
2105_ACEOF
2106
2107
2108# Keep a trace of the command line.
2109# Strip out --no-create and --no-recursion so they do not pile up.
2110# Strip out --silent because we don't want to record it for future runs.
2111# Also quote any args containing shell meta-characters.
2112# Make two passes to allow for proper duplicate-argument suppression.
2113ac_configure_args=
2114ac_configure_args0=
2115ac_configure_args1=
2116ac_must_keep_next=false
2117for ac_pass in 1 2
2118do
2119  for ac_arg
2120  do
2121    case $ac_arg in
2122    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124    | -silent | --silent | --silen | --sile | --sil)
2125      continue ;;
2126    *\'*)
2127      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128    esac
2129    case $ac_pass in
2130    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131    2)
2132      as_fn_append ac_configure_args1 " '$ac_arg'"
2133      if test $ac_must_keep_next = true; then
2134	ac_must_keep_next=false # Got value, back to normal.
2135      else
2136	case $ac_arg in
2137	  *=* | --config-cache | -C | -disable-* | --disable-* \
2138	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140	  | -with-* | --with-* | -without-* | --without-* | --x)
2141	    case "$ac_configure_args0 " in
2142	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143	    esac
2144	    ;;
2145	  -* ) ac_must_keep_next=true ;;
2146	esac
2147      fi
2148      as_fn_append ac_configure_args " '$ac_arg'"
2149      ;;
2150    esac
2151  done
2152done
2153{ ac_configure_args0=; unset ac_configure_args0;}
2154{ ac_configure_args1=; unset ac_configure_args1;}
2155
2156# When interrupted or exit'd, cleanup temporary files, and complete
2157# config.log.  We remove comments because anyway the quotes in there
2158# would cause problems or look ugly.
2159# WARNING: Use '\'' to represent an apostrophe within the trap.
2160# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161trap 'exit_status=$?
2162  # Save into config.log some information that might help in debugging.
2163  {
2164    echo
2165
2166    $as_echo "## ---------------- ##
2167## Cache variables. ##
2168## ---------------- ##"
2169    echo
2170    # The following way of writing the cache mishandles newlines in values,
2171(
2172  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2173    eval ac_val=\$$ac_var
2174    case $ac_val in #(
2175    *${as_nl}*)
2176      case $ac_var in #(
2177      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2178$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2179      esac
2180      case $ac_var in #(
2181      _ | IFS | as_nl) ;; #(
2182      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2183      *) { eval $ac_var=; unset $ac_var;} ;;
2184      esac ;;
2185    esac
2186  done
2187  (set) 2>&1 |
2188    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2189    *${as_nl}ac_space=\ *)
2190      sed -n \
2191	"s/'\''/'\''\\\\'\'''\''/g;
2192	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2193      ;; #(
2194    *)
2195      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2196      ;;
2197    esac |
2198    sort
2199)
2200    echo
2201
2202    $as_echo "## ----------------- ##
2203## Output variables. ##
2204## ----------------- ##"
2205    echo
2206    for ac_var in $ac_subst_vars
2207    do
2208      eval ac_val=\$$ac_var
2209      case $ac_val in
2210      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211      esac
2212      $as_echo "$ac_var='\''$ac_val'\''"
2213    done | sort
2214    echo
2215
2216    if test -n "$ac_subst_files"; then
2217      $as_echo "## ------------------- ##
2218## File substitutions. ##
2219## ------------------- ##"
2220      echo
2221      for ac_var in $ac_subst_files
2222      do
2223	eval ac_val=\$$ac_var
2224	case $ac_val in
2225	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226	esac
2227	$as_echo "$ac_var='\''$ac_val'\''"
2228      done | sort
2229      echo
2230    fi
2231
2232    if test -s confdefs.h; then
2233      $as_echo "## ----------- ##
2234## confdefs.h. ##
2235## ----------- ##"
2236      echo
2237      cat confdefs.h
2238      echo
2239    fi
2240    test "$ac_signal" != 0 &&
2241      $as_echo "$as_me: caught signal $ac_signal"
2242    $as_echo "$as_me: exit $exit_status"
2243  } >&5
2244  rm -f core *.core core.conftest.* &&
2245    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2246    exit $exit_status
2247' 0
2248for ac_signal in 1 2 13 15; do
2249  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2250done
2251ac_signal=0
2252
2253# confdefs.h avoids OS command line length limits that DEFS can exceed.
2254rm -f -r conftest* confdefs.h
2255
2256$as_echo "/* confdefs.h */" > confdefs.h
2257
2258# Predefined preprocessor variables.
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_NAME "$PACKAGE_NAME"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_VERSION "$PACKAGE_VERSION"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_STRING "$PACKAGE_STRING"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_URL "$PACKAGE_URL"
2282_ACEOF
2283
2284
2285# Let the site file select an alternate cache file if it wants to.
2286# Prefer an explicitly selected file to automatically selected ones.
2287ac_site_file1=NONE
2288ac_site_file2=NONE
2289if test -n "$CONFIG_SITE"; then
2290  # We do not want a PATH search for config.site.
2291  case $CONFIG_SITE in #((
2292    -*)  ac_site_file1=./$CONFIG_SITE;;
2293    */*) ac_site_file1=$CONFIG_SITE;;
2294    *)   ac_site_file1=./$CONFIG_SITE;;
2295  esac
2296elif test "x$prefix" != xNONE; then
2297  ac_site_file1=$prefix/share/config.site
2298  ac_site_file2=$prefix/etc/config.site
2299else
2300  ac_site_file1=$ac_default_prefix/share/config.site
2301  ac_site_file2=$ac_default_prefix/etc/config.site
2302fi
2303for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2304do
2305  test "x$ac_site_file" = xNONE && continue
2306  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2307    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2308$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2309    sed 's/^/| /' "$ac_site_file" >&5
2310    . "$ac_site_file" \
2311      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313as_fn_error $? "failed to load site script $ac_site_file
2314See \`config.log' for more details" "$LINENO" 5; }
2315  fi
2316done
2317
2318if test -r "$cache_file"; then
2319  # Some versions of bash will fail to source /dev/null (special files
2320  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2321  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2322    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2323$as_echo "$as_me: loading cache $cache_file" >&6;}
2324    case $cache_file in
2325      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2326      *)                      . "./$cache_file";;
2327    esac
2328  fi
2329else
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2331$as_echo "$as_me: creating cache $cache_file" >&6;}
2332  >$cache_file
2333fi
2334
2335as_fn_append ac_func_list " strlcat"
2336as_fn_append ac_func_list " strlcpy"
2337as_fn_append ac_header_list " crypt.h"
2338as_fn_append ac_header_list " sys/param.h"
2339as_fn_append ac_header_list " types.h"
2340as_fn_append ac_header_list " socket.h"
2341as_fn_append ac_header_list " sys/wait.h"
2342# Check that the precious variables saved in the cache have kept the same
2343# value.
2344ac_cache_corrupted=false
2345for ac_var in $ac_precious_vars; do
2346  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347  eval ac_new_set=\$ac_env_${ac_var}_set
2348  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349  eval ac_new_val=\$ac_env_${ac_var}_value
2350  case $ac_old_set,$ac_new_set in
2351    set,)
2352      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354      ac_cache_corrupted=: ;;
2355    ,set)
2356      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358      ac_cache_corrupted=: ;;
2359    ,);;
2360    *)
2361      if test "x$ac_old_val" != "x$ac_new_val"; then
2362	# differences in whitespace do not lead to failure.
2363	ac_old_val_w=`echo x $ac_old_val`
2364	ac_new_val_w=`echo x $ac_new_val`
2365	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368	  ac_cache_corrupted=:
2369	else
2370	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372	  eval $ac_var=\$ac_old_val
2373	fi
2374	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2375$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2376	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2377$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2378      fi;;
2379  esac
2380  # Pass precious variables to config.status.
2381  if test "$ac_new_set" = set; then
2382    case $ac_new_val in
2383    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384    *) ac_arg=$ac_var=$ac_new_val ;;
2385    esac
2386    case " $ac_configure_args " in
2387      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2388      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389    esac
2390  fi
2391done
2392if $ac_cache_corrupted; then
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398fi
2399## -------------------- ##
2400## Main body of script. ##
2401## -------------------- ##
2402
2403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410am__api_version='1.16'
2411
2412ac_aux_dir=
2413for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2414  if test -f "$ac_dir/install-sh"; then
2415    ac_aux_dir=$ac_dir
2416    ac_install_sh="$ac_aux_dir/install-sh -c"
2417    break
2418  elif test -f "$ac_dir/install.sh"; then
2419    ac_aux_dir=$ac_dir
2420    ac_install_sh="$ac_aux_dir/install.sh -c"
2421    break
2422  elif test -f "$ac_dir/shtool"; then
2423    ac_aux_dir=$ac_dir
2424    ac_install_sh="$ac_aux_dir/shtool install -c"
2425    break
2426  fi
2427done
2428if test -z "$ac_aux_dir"; then
2429  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2430fi
2431
2432# These three variables are undocumented and unsupported,
2433# and are intended to be withdrawn in a future Autoconf release.
2434# They can cause serious problems if a builder's source tree is in a directory
2435# whose full name contains unusual characters.
2436ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2437ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2438ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2439
2440
2441# Find a good install program.  We prefer a C program (faster),
2442# so one script is as good as another.  But avoid the broken or
2443# incompatible versions:
2444# SysV /etc/install, /usr/sbin/install
2445# SunOS /usr/etc/install
2446# IRIX /sbin/install
2447# AIX /bin/install
2448# AmigaOS /C/install, which installs bootblocks on floppy discs
2449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2452# OS/2's system install, which has a completely different semantic
2453# ./install, which can be erroneously created by make from ./install.sh.
2454# Reject install programs that cannot install multiple files.
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2456$as_echo_n "checking for a BSD-compatible install... " >&6; }
2457if test -z "$INSTALL"; then
2458if ${ac_cv_path_install+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464  IFS=$as_save_IFS
2465  test -z "$as_dir" && as_dir=.
2466    # Account for people who put trailing slashes in PATH elements.
2467case $as_dir/ in #((
2468  ./ | .// | /[cC]/* | \
2469  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2470  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471  /usr/ucb/* ) ;;
2472  *)
2473    # OSF1 and SCO ODT 3.0 have their own names for install.
2474    # Don't use installbsd from OSF since it installs stuff as root
2475    # by default.
2476    for ac_prog in ginstall scoinst install; do
2477      for ac_exec_ext in '' $ac_executable_extensions; do
2478	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2479	  if test $ac_prog = install &&
2480	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481	    # AIX install.  It has an incompatible calling convention.
2482	    :
2483	  elif test $ac_prog = install &&
2484	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485	    # program-specific install script used by HP pwplus--don't use.
2486	    :
2487	  else
2488	    rm -rf conftest.one conftest.two conftest.dir
2489	    echo one > conftest.one
2490	    echo two > conftest.two
2491	    mkdir conftest.dir
2492	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2493	      test -s conftest.one && test -s conftest.two &&
2494	      test -s conftest.dir/conftest.one &&
2495	      test -s conftest.dir/conftest.two
2496	    then
2497	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498	      break 3
2499	    fi
2500	  fi
2501	fi
2502      done
2503    done
2504    ;;
2505esac
2506
2507  done
2508IFS=$as_save_IFS
2509
2510rm -rf conftest.one conftest.two conftest.dir
2511
2512fi
2513  if test "${ac_cv_path_install+set}" = set; then
2514    INSTALL=$ac_cv_path_install
2515  else
2516    # As a last resort, use the slow shell script.  Don't cache a
2517    # value for INSTALL within a source directory, because that will
2518    # break other packages using the cache if that directory is
2519    # removed, or if the value is a relative name.
2520    INSTALL=$ac_install_sh
2521  fi
2522fi
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2524$as_echo "$INSTALL" >&6; }
2525
2526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527# It thinks the first close brace ends the variable substitution.
2528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529
2530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2531
2532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2535$as_echo_n "checking whether build environment is sane... " >&6; }
2536# Reject unsafe characters in $srcdir or the absolute working directory
2537# name.  Accept space and tab only in the latter.
2538am_lf='
2539'
2540case `pwd` in
2541  *[\\\"\#\$\&\'\`$am_lf]*)
2542    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2543esac
2544case $srcdir in
2545  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2546    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2547esac
2548
2549# Do 'set' in a subshell so we don't clobber the current shell's
2550# arguments.  Must try -L first in case configure is actually a
2551# symlink; some systems play weird games with the mod time of symlinks
2552# (eg FreeBSD returns the mod time of the symlink's containing
2553# directory).
2554if (
2555   am_has_slept=no
2556   for am_try in 1 2; do
2557     echo "timestamp, slept: $am_has_slept" > conftest.file
2558     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2559     if test "$*" = "X"; then
2560	# -L didn't work.
2561	set X `ls -t "$srcdir/configure" conftest.file`
2562     fi
2563     if test "$*" != "X $srcdir/configure conftest.file" \
2564	&& test "$*" != "X conftest.file $srcdir/configure"; then
2565
2566	# If neither matched, then we have a broken ls.  This can happen
2567	# if, for instance, CONFIG_SHELL is bash and it inherits a
2568	# broken ls alias from the environment.  This has actually
2569	# happened.  Such a system could not be considered "sane".
2570	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2571  alias in your environment" "$LINENO" 5
2572     fi
2573     if test "$2" = conftest.file || test $am_try -eq 2; then
2574       break
2575     fi
2576     # Just in case.
2577     sleep 1
2578     am_has_slept=yes
2579   done
2580   test "$2" = conftest.file
2581   )
2582then
2583   # Ok.
2584   :
2585else
2586   as_fn_error $? "newly created file is older than distributed files!
2587Check your system clock" "$LINENO" 5
2588fi
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590$as_echo "yes" >&6; }
2591# If we didn't sleep, we still need to ensure time stamps of config.status and
2592# generated files are strictly newer.
2593am_sleep_pid=
2594if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2595  ( sleep 1 ) &
2596  am_sleep_pid=$!
2597fi
2598
2599rm -f conftest.file
2600
2601test "$program_prefix" != NONE &&
2602  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603# Use a double $ so make ignores it.
2604test "$program_suffix" != NONE &&
2605  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606# Double any \ or $.
2607# By default was `s,x,x', remove it if useless.
2608ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2610
2611# Expand $ac_aux_dir to an absolute path.
2612am_aux_dir=`cd "$ac_aux_dir" && pwd`
2613
2614if test x"${MISSING+set}" != xset; then
2615  case $am_aux_dir in
2616  *\ * | *\	*)
2617    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2618  *)
2619    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620  esac
2621fi
2622# Use eval to expand $SHELL
2623if eval "$MISSING --is-lightweight"; then
2624  am_missing_run="$MISSING "
2625else
2626  am_missing_run=
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2628$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2629fi
2630
2631if test x"${install_sh+set}" != xset; then
2632  case $am_aux_dir in
2633  *\ * | *\	*)
2634    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2635  *)
2636    install_sh="\${SHELL} $am_aux_dir/install-sh"
2637  esac
2638fi
2639
2640# Installed binaries are usually stripped using 'strip' when the user
2641# run "make install-strip".  However 'strip' might not be the right
2642# tool to use in cross-compilation environments, therefore Automake
2643# will honor the 'STRIP' environment variable to overrule this program.
2644if test "$cross_compiling" != no; then
2645  if test -n "$ac_tool_prefix"; then
2646  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647set dummy ${ac_tool_prefix}strip; ac_word=$2
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649$as_echo_n "checking for $ac_word... " >&6; }
2650if ${ac_cv_prog_STRIP+:} false; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  if test -n "$STRIP"; then
2654  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661    for ac_exec_ext in '' $ac_executable_extensions; do
2662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665    break 2
2666  fi
2667done
2668  done
2669IFS=$as_save_IFS
2670
2671fi
2672fi
2673STRIP=$ac_cv_prog_STRIP
2674if test -n "$STRIP"; then
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676$as_echo "$STRIP" >&6; }
2677else
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683fi
2684if test -z "$ac_cv_prog_STRIP"; then
2685  ac_ct_STRIP=$STRIP
2686  # Extract the first word of "strip", so it can be a program name with args.
2687set dummy strip; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2691  $as_echo_n "(cached) " >&6
2692else
2693  if test -n "$ac_ct_STRIP"; then
2694  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699  IFS=$as_save_IFS
2700  test -z "$as_dir" && as_dir=.
2701    for ac_exec_ext in '' $ac_executable_extensions; do
2702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703    ac_cv_prog_ac_ct_STRIP="strip"
2704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705    break 2
2706  fi
2707done
2708  done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714if test -n "$ac_ct_STRIP"; then
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716$as_echo "$ac_ct_STRIP" >&6; }
2717else
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722  if test "x$ac_ct_STRIP" = x; then
2723    STRIP=":"
2724  else
2725    case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731    STRIP=$ac_ct_STRIP
2732  fi
2733else
2734  STRIP="$ac_cv_prog_STRIP"
2735fi
2736
2737fi
2738INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742if test -z "$MKDIR_P"; then
2743  if ${ac_cv_path_mkdir+:} false; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_prog in mkdir gmkdir; do
2752	 for ac_exec_ext in '' $ac_executable_extensions; do
2753	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2754	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755	     'mkdir (GNU coreutils) '* | \
2756	     'mkdir (coreutils) '* | \
2757	     'mkdir (fileutils) '4.1*)
2758	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759	       break 3;;
2760	   esac
2761	 done
2762       done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767
2768  test -d ./--version && rmdir ./--version
2769  if test "${ac_cv_path_mkdir+set}" = set; then
2770    MKDIR_P="$ac_cv_path_mkdir -p"
2771  else
2772    # As a last resort, use the slow shell script.  Don't cache a
2773    # value for MKDIR_P within a source directory, because that will
2774    # break other packages using the cache if that directory is
2775    # removed, or if the value is a relative name.
2776    MKDIR_P="$ac_install_sh -d"
2777  fi
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780$as_echo "$MKDIR_P" >&6; }
2781
2782for ac_prog in gawk mawk nawk awk
2783do
2784  # Extract the first word of "$ac_prog", so it can be a program name with args.
2785set dummy $ac_prog; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_AWK+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$AWK"; then
2792  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  test -z "$as_dir" && as_dir=.
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801    ac_cv_prog_AWK="$ac_prog"
2802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811AWK=$ac_cv_prog_AWK
2812if test -n "$AWK"; then
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2814$as_echo "$AWK" >&6; }
2815else
2816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821  test -n "$AWK" && break
2822done
2823
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2825$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2826set x ${MAKE-make}
2827ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2828if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  cat >conftest.make <<\_ACEOF
2832SHELL = /bin/sh
2833all:
2834	@echo '@@@%%%=$(MAKE)=@@@%%%'
2835_ACEOF
2836# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2837case `${MAKE-make} -f conftest.make 2>/dev/null` in
2838  *@@@%%%=?*=@@@%%%*)
2839    eval ac_cv_prog_make_${ac_make}_set=yes;;
2840  *)
2841    eval ac_cv_prog_make_${ac_make}_set=no;;
2842esac
2843rm -f conftest.make
2844fi
2845if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2847$as_echo "yes" >&6; }
2848  SET_MAKE=
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852  SET_MAKE="MAKE=${MAKE-make}"
2853fi
2854
2855rm -rf .tst 2>/dev/null
2856mkdir .tst 2>/dev/null
2857if test -d .tst; then
2858  am__leading_dot=.
2859else
2860  am__leading_dot=_
2861fi
2862rmdir .tst 2>/dev/null
2863
2864# Check whether --enable-silent-rules was given.
2865if test "${enable_silent_rules+set}" = set; then :
2866  enableval=$enable_silent_rules;
2867fi
2868
2869case $enable_silent_rules in # (((
2870  yes) AM_DEFAULT_VERBOSITY=0;;
2871   no) AM_DEFAULT_VERBOSITY=1;;
2872    *) AM_DEFAULT_VERBOSITY=1;;
2873esac
2874am_make=${MAKE-make}
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2876$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2877if ${am_cv_make_support_nested_variables+:} false; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  if $as_echo 'TRUE=$(BAR$(V))
2881BAR0=false
2882BAR1=true
2883V=1
2884am__doit:
2885	@$(TRUE)
2886.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2887  am_cv_make_support_nested_variables=yes
2888else
2889  am_cv_make_support_nested_variables=no
2890fi
2891fi
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2893$as_echo "$am_cv_make_support_nested_variables" >&6; }
2894if test $am_cv_make_support_nested_variables = yes; then
2895    AM_V='$(V)'
2896  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2897else
2898  AM_V=$AM_DEFAULT_VERBOSITY
2899  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2900fi
2901AM_BACKSLASH='\'
2902
2903if test "`cd $srcdir && pwd`" != "`pwd`"; then
2904  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2905  # is not polluted with repeated "-I."
2906  am__isrc=' -I$(srcdir)'
2907  # test to see if srcdir already configured
2908  if test -f $srcdir/config.status; then
2909    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2910  fi
2911fi
2912
2913# test whether we have cygpath
2914if test -z "$CYGPATH_W"; then
2915  if (cygpath --version) >/dev/null 2>/dev/null; then
2916    CYGPATH_W='cygpath -w'
2917  else
2918    CYGPATH_W=echo
2919  fi
2920fi
2921
2922
2923# Define the identity of the package.
2924 PACKAGE='ircd-hybrid'
2925 VERSION='8.2.39'
2926
2927
2928cat >>confdefs.h <<_ACEOF
2929#define PACKAGE "$PACKAGE"
2930_ACEOF
2931
2932
2933cat >>confdefs.h <<_ACEOF
2934#define VERSION "$VERSION"
2935_ACEOF
2936
2937# Some tools Automake needs.
2938
2939ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2940
2941
2942AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2943
2944
2945AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2946
2947
2948AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2949
2950
2951MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2952
2953# For better backward compatibility.  To be removed once Automake 1.9.x
2954# dies out for good.  For more background, see:
2955# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2956# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2957mkdir_p='$(MKDIR_P)'
2958
2959# We need awk for the "check" target (and possibly the TAP driver).  The
2960# system "awk" is bad on some platforms.
2961# Always define AMTAR for backward compatibility.  Yes, it's still used
2962# in the wild :-(  We should find a proper way to deprecate it ...
2963AMTAR='$${TAR-tar}'
2964
2965
2966# We'll loop over all known methods to create a tar archive until one works.
2967_am_tools='gnutar  pax cpio none'
2968
2969am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2970
2971
2972
2973
2974
2975
2976# POSIX will say in a future version that running "rm -f" with no argument
2977# is OK; and we want to be able to make that assumption in our Makefile
2978# recipes.  So use an aggressive probe to check that the usage we want is
2979# actually supported "in the wild" to an acceptable degree.
2980# See automake bug#10828.
2981# To make any issue more visible, cause the running configure to be aborted
2982# by default if the 'rm' program in use doesn't match our expectations; the
2983# user can still override this though.
2984if rm -f && rm -fr && rm -rf; then : OK; else
2985  cat >&2 <<'END'
2986Oops!
2987
2988Your 'rm' program seems unable to run without file operands specified
2989on the command line, even when the '-f' option is present.  This is contrary
2990to the behaviour of most rm programs out there, and not conforming with
2991the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2992
2993Please tell bug-automake@gnu.org about your system, including the value
2994of your $PATH and any error possibly output before this message.  This
2995can help us improve future automake versions.
2996
2997END
2998  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2999    echo 'Configuration will proceed anyway, since you have set the' >&2
3000    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3001    echo >&2
3002  else
3003    cat >&2 <<'END'
3004Aborting the configuration process, to ensure you take notice of the issue.
3005
3006You can download and install GNU coreutils to get an 'rm' implementation
3007that behaves properly: <https://www.gnu.org/software/coreutils/>.
3008
3009If you want to complete the configuration process using your problematic
3010'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3011to "yes", and re-run configure.
3012
3013END
3014    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3015  fi
3016fi
3017
3018
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3020$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3021    # Check whether --enable-maintainer-mode was given.
3022if test "${enable_maintainer_mode+set}" = set; then :
3023  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3024else
3025  USE_MAINTAINER_MODE=no
3026fi
3027
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3029$as_echo "$USE_MAINTAINER_MODE" >&6; }
3030   if test $USE_MAINTAINER_MODE = yes; then
3031  MAINTAINER_MODE_TRUE=
3032  MAINTAINER_MODE_FALSE='#'
3033else
3034  MAINTAINER_MODE_TRUE='#'
3035  MAINTAINER_MODE_FALSE=
3036fi
3037
3038  MAINT=$MAINTAINER_MODE_TRUE
3039
3040
3041
3042ac_config_headers="$ac_config_headers config.h"
3043
3044
3045
3046# Checks for programs.
3047DEPDIR="${am__leading_dot}deps"
3048
3049ac_config_commands="$ac_config_commands depfiles"
3050
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3052$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3053cat > confinc.mk << 'END'
3054am__doit:
3055	@echo this is the am__doit target >confinc.out
3056.PHONY: am__doit
3057END
3058am__include="#"
3059am__quote=
3060# BSD make does it like this.
3061echo '.include "confinc.mk" # ignored' > confmf.BSD
3062# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3063echo 'include confinc.mk # ignored' > confmf.GNU
3064_am_result=no
3065for s in GNU BSD; do
3066  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3067   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }
3071  case $?:`cat confinc.out 2>/dev/null` in #(
3072  '0:this is the am__doit target') :
3073    case $s in #(
3074  BSD) :
3075    am__include='.include' am__quote='"' ;; #(
3076  *) :
3077    am__include='include' am__quote='' ;;
3078esac ;; #(
3079  *) :
3080     ;;
3081esac
3082  if test "$am__include" != "#"; then
3083    _am_result="yes ($s style)"
3084    break
3085  fi
3086done
3087rm -f confinc.* confmf.*
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3089$as_echo "${_am_result}" >&6; }
3090
3091# Check whether --enable-dependency-tracking was given.
3092if test "${enable_dependency_tracking+set}" = set; then :
3093  enableval=$enable_dependency_tracking;
3094fi
3095
3096if test "x$enable_dependency_tracking" != xno; then
3097  am_depcomp="$ac_aux_dir/depcomp"
3098  AMDEPBACKSLASH='\'
3099  am__nodep='_no'
3100fi
3101 if test "x$enable_dependency_tracking" != xno; then
3102  AMDEP_TRUE=
3103  AMDEP_FALSE='#'
3104else
3105  AMDEP_TRUE='#'
3106  AMDEP_FALSE=
3107fi
3108
3109
3110ac_ext=c
3111ac_cpp='$CPP $CPPFLAGS'
3112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115if test -n "$ac_tool_prefix"; then
3116  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3117set dummy ${ac_tool_prefix}gcc; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if ${ac_cv_prog_CC+:} false; then :
3121  $as_echo_n "(cached) " >&6
3122else
3123  if test -n "$CC"; then
3124  ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129  IFS=$as_save_IFS
3130  test -z "$as_dir" && as_dir=.
3131    for ac_exec_ext in '' $ac_executable_extensions; do
3132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135    break 2
3136  fi
3137done
3138  done
3139IFS=$as_save_IFS
3140
3141fi
3142fi
3143CC=$ac_cv_prog_CC
3144if test -n "$CC"; then
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146$as_echo "$CC" >&6; }
3147else
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150fi
3151
3152
3153fi
3154if test -z "$ac_cv_prog_CC"; then
3155  ac_ct_CC=$CC
3156  # Extract the first word of "gcc", so it can be a program name with args.
3157set dummy gcc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if ${ac_cv_prog_ac_ct_CC+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$ac_ct_CC"; then
3164  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173    ac_cv_prog_ac_ct_CC="gcc"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184if test -n "$ac_ct_CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186$as_echo "$ac_ct_CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192  if test "x$ac_ct_CC" = x; then
3193    CC=""
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    CC=$ac_ct_CC
3202  fi
3203else
3204  CC="$ac_cv_prog_CC"
3205fi
3206
3207if test -z "$CC"; then
3208          if test -n "$ac_tool_prefix"; then
3209    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3210set dummy ${ac_tool_prefix}cc; ac_word=$2
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212$as_echo_n "checking for $ac_word... " >&6; }
3213if ${ac_cv_prog_CC+:} false; then :
3214  $as_echo_n "(cached) " >&6
3215else
3216  if test -n "$CC"; then
3217  ac_cv_prog_CC="$CC" # Let the user override the test.
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  test -z "$as_dir" && as_dir=.
3224    for ac_exec_ext in '' $ac_executable_extensions; do
3225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226    ac_cv_prog_CC="${ac_tool_prefix}cc"
3227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228    break 2
3229  fi
3230done
3231  done
3232IFS=$as_save_IFS
3233
3234fi
3235fi
3236CC=$ac_cv_prog_CC
3237if test -n "$CC"; then
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239$as_echo "$CC" >&6; }
3240else
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243fi
3244
3245
3246  fi
3247fi
3248if test -z "$CC"; then
3249  # Extract the first word of "cc", so it can be a program name with args.
3250set dummy cc; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if ${ac_cv_prog_CC+:} false; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  if test -n "$CC"; then
3257  ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259  ac_prog_rejected=no
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265    for ac_exec_ext in '' $ac_executable_extensions; do
3266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3268       ac_prog_rejected=yes
3269       continue
3270     fi
3271    ac_cv_prog_CC="cc"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279if test $ac_prog_rejected = yes; then
3280  # We found a bogon in the path, so make sure we never use it.
3281  set dummy $ac_cv_prog_CC
3282  shift
3283  if test $# != 0; then
3284    # We chose a different compiler from the bogus one.
3285    # However, it has the same basename, so the bogon will be chosen
3286    # first if we set CC to just the basename; use the full file name.
3287    shift
3288    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3289  fi
3290fi
3291fi
3292fi
3293CC=$ac_cv_prog_CC
3294if test -n "$CC"; then
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296$as_echo "$CC" >&6; }
3297else
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302
3303fi
3304if test -z "$CC"; then
3305  if test -n "$ac_tool_prefix"; then
3306  for ac_prog in cl.exe
3307  do
3308    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311$as_echo_n "checking for $ac_word... " >&6; }
3312if ${ac_cv_prog_CC+:} false; then :
3313  $as_echo_n "(cached) " >&6
3314else
3315  if test -n "$CC"; then
3316  ac_cv_prog_CC="$CC" # Let the user override the test.
3317else
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323    for ac_exec_ext in '' $ac_executable_extensions; do
3324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329done
3330  done
3331IFS=$as_save_IFS
3332
3333fi
3334fi
3335CC=$ac_cv_prog_CC
3336if test -n "$CC"; then
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338$as_echo "$CC" >&6; }
3339else
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341$as_echo "no" >&6; }
3342fi
3343
3344
3345    test -n "$CC" && break
3346  done
3347fi
3348if test -z "$CC"; then
3349  ac_ct_CC=$CC
3350  for ac_prog in cl.exe
3351do
3352  # Extract the first word of "$ac_prog", so it can be a program name with args.
3353set dummy $ac_prog; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_ac_ct_CC+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  if test -n "$ac_ct_CC"; then
3360  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_ac_ct_CC="$ac_prog"
3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374  done
3375IFS=$as_save_IFS
3376
3377fi
3378fi
3379ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380if test -n "$ac_ct_CC"; then
3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3382$as_echo "$ac_ct_CC" >&6; }
3383else
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386fi
3387
3388
3389  test -n "$ac_ct_CC" && break
3390done
3391
3392  if test "x$ac_ct_CC" = x; then
3393    CC=""
3394  else
3395    case $cross_compiling:$ac_tool_warned in
3396yes:)
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3399ac_tool_warned=yes ;;
3400esac
3401    CC=$ac_ct_CC
3402  fi
3403fi
3404
3405fi
3406
3407
3408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410as_fn_error $? "no acceptable C compiler found in \$PATH
3411See \`config.log' for more details" "$LINENO" 5; }
3412
3413# Provide some information about the compiler.
3414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3415set X $ac_compile
3416ac_compiler=$2
3417for ac_option in --version -v -V -qversion; do
3418  { { ac_try="$ac_compiler $ac_option >&5"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3426  ac_status=$?
3427  if test -s conftest.err; then
3428    sed '10a\
3429... rest of stderr output deleted ...
3430         10q' conftest.err >conftest.er1
3431    cat conftest.er1 >&5
3432  fi
3433  rm -f conftest.er1 conftest.err
3434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435  test $ac_status = 0; }
3436done
3437
3438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449ac_clean_files_save=$ac_clean_files
3450ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3451# Try to create an executable without -o first, disregard a.out.
3452# It will help us diagnose broken compilers, and finding out an intuition
3453# of exeext.
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3455$as_echo_n "checking whether the C compiler works... " >&6; }
3456ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3457
3458# The possible output files:
3459ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3460
3461ac_rmfiles=
3462for ac_file in $ac_files
3463do
3464  case $ac_file in
3465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3466    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3467  esac
3468done
3469rm -f $ac_rmfiles
3470
3471if { { ac_try="$ac_link_default"
3472case "(($ac_try" in
3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474  *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477$as_echo "$ac_try_echo"; } >&5
3478  (eval "$ac_link_default") 2>&5
3479  ac_status=$?
3480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481  test $ac_status = 0; }; then :
3482  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3483# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3484# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3485# so that the user can short-circuit this test for compilers unknown to
3486# Autoconf.
3487for ac_file in $ac_files ''
3488do
3489  test -f "$ac_file" || continue
3490  case $ac_file in
3491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3492	;;
3493    [ab].out )
3494	# We found the default executable, but exeext='' is most
3495	# certainly right.
3496	break;;
3497    *.* )
3498	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3499	then :; else
3500	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3501	fi
3502	# We set ac_cv_exeext here because the later test for it is not
3503	# safe: cross compilers may not add the suffix if given an `-o'
3504	# argument, so we may need to know it at that point already.
3505	# Even if this section looks crufty: it has the advantage of
3506	# actually working.
3507	break;;
3508    * )
3509	break;;
3510  esac
3511done
3512test "$ac_cv_exeext" = no && ac_cv_exeext=
3513
3514else
3515  ac_file=''
3516fi
3517if test -z "$ac_file"; then :
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519$as_echo "no" >&6; }
3520$as_echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525as_fn_error 77 "C compiler cannot create executables
3526See \`config.log' for more details" "$LINENO" 5; }
3527else
3528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529$as_echo "yes" >&6; }
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3532$as_echo_n "checking for C compiler default output file name... " >&6; }
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3534$as_echo "$ac_file" >&6; }
3535ac_exeext=$ac_cv_exeext
3536
3537rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3538ac_clean_files=$ac_clean_files_save
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540$as_echo_n "checking for suffix of executables... " >&6; }
3541if { { ac_try="$ac_link"
3542case "(($ac_try" in
3543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544  *) ac_try_echo=$ac_try;;
3545esac
3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547$as_echo "$ac_try_echo"; } >&5
3548  (eval "$ac_link") 2>&5
3549  ac_status=$?
3550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551  test $ac_status = 0; }; then :
3552  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3554# work properly (i.e., refer to `conftest.exe'), while it won't with
3555# `rm'.
3556for ac_file in conftest.exe conftest conftest.*; do
3557  test -f "$ac_file" || continue
3558  case $ac_file in
3559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561	  break;;
3562    * ) break;;
3563  esac
3564done
3565else
3566  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3569See \`config.log' for more details" "$LINENO" 5; }
3570fi
3571rm -f conftest conftest$ac_cv_exeext
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573$as_echo "$ac_cv_exeext" >&6; }
3574
3575rm -f conftest.$ac_ext
3576EXEEXT=$ac_cv_exeext
3577ac_exeext=$EXEEXT
3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h.  */
3580#include <stdio.h>
3581int
3582main ()
3583{
3584FILE *f = fopen ("conftest.out", "w");
3585 return ferror (f) || fclose (f) != 0;
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591ac_clean_files="$ac_clean_files conftest.out"
3592# Check that the compiler produces executables we can run.  If not, either
3593# the compiler is broken, or we cross compile.
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3595$as_echo_n "checking whether we are cross compiling... " >&6; }
3596if test "$cross_compiling" != yes; then
3597  { { ac_try="$ac_link"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603$as_echo "$ac_try_echo"; } >&5
3604  (eval "$ac_link") 2>&5
3605  ac_status=$?
3606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607  test $ac_status = 0; }
3608  if { ac_try='./conftest$ac_cv_exeext'
3609  { { case "(($ac_try" in
3610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611  *) ac_try_echo=$ac_try;;
3612esac
3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614$as_echo "$ac_try_echo"; } >&5
3615  (eval "$ac_try") 2>&5
3616  ac_status=$?
3617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618  test $ac_status = 0; }; }; then
3619    cross_compiling=no
3620  else
3621    if test "$cross_compiling" = maybe; then
3622	cross_compiling=yes
3623    else
3624	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626as_fn_error $? "cannot run C compiled programs.
3627If you meant to cross compile, use \`--host'.
3628See \`config.log' for more details" "$LINENO" 5; }
3629    fi
3630  fi
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3633$as_echo "$cross_compiling" >&6; }
3634
3635rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3636ac_clean_files=$ac_clean_files_save
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3638$as_echo_n "checking for suffix of object files... " >&6; }
3639if ${ac_cv_objext+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644
3645int
3646main ()
3647{
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653rm -f conftest.o conftest.obj
3654if { { ac_try="$ac_compile"
3655case "(($ac_try" in
3656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657  *) ac_try_echo=$ac_try;;
3658esac
3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660$as_echo "$ac_try_echo"; } >&5
3661  (eval "$ac_compile") 2>&5
3662  ac_status=$?
3663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664  test $ac_status = 0; }; then :
3665  for ac_file in conftest.o conftest.obj conftest.*; do
3666  test -f "$ac_file" || continue;
3667  case $ac_file in
3668    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670       break;;
3671  esac
3672done
3673else
3674  $as_echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679as_fn_error $? "cannot compute suffix of object files: cannot compile
3680See \`config.log' for more details" "$LINENO" 5; }
3681fi
3682rm -f conftest.$ac_cv_objext conftest.$ac_ext
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3685$as_echo "$ac_cv_objext" >&6; }
3686OBJEXT=$ac_cv_objext
3687ac_objext=$OBJEXT
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3689$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3690if ${ac_cv_c_compiler_gnu+:} false; then :
3691  $as_echo_n "(cached) " >&6
3692else
3693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695
3696int
3697main ()
3698{
3699#ifndef __GNUC__
3700       choke me
3701#endif
3702
3703  ;
3704  return 0;
3705}
3706_ACEOF
3707if ac_fn_c_try_compile "$LINENO"; then :
3708  ac_compiler_gnu=yes
3709else
3710  ac_compiler_gnu=no
3711fi
3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713ac_cv_c_compiler_gnu=$ac_compiler_gnu
3714
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3717$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3718if test $ac_compiler_gnu = yes; then
3719  GCC=yes
3720else
3721  GCC=
3722fi
3723ac_test_CFLAGS=${CFLAGS+set}
3724ac_save_CFLAGS=$CFLAGS
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3726$as_echo_n "checking whether $CC accepts -g... " >&6; }
3727if ${ac_cv_prog_cc_g+:} false; then :
3728  $as_echo_n "(cached) " >&6
3729else
3730  ac_save_c_werror_flag=$ac_c_werror_flag
3731   ac_c_werror_flag=yes
3732   ac_cv_prog_cc_g=no
3733   CFLAGS="-g"
3734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"; then :
3746  ac_cv_prog_cc_g=yes
3747else
3748  CFLAGS=""
3749      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751
3752int
3753main ()
3754{
3755
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761
3762else
3763  ac_c_werror_flag=$ac_save_c_werror_flag
3764	 CFLAGS="-g"
3765	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768int
3769main ()
3770{
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_compile "$LINENO"; then :
3777  ac_cv_prog_cc_g=yes
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784   ac_c_werror_flag=$ac_save_c_werror_flag
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3787$as_echo "$ac_cv_prog_cc_g" >&6; }
3788if test "$ac_test_CFLAGS" = set; then
3789  CFLAGS=$ac_save_CFLAGS
3790elif test $ac_cv_prog_cc_g = yes; then
3791  if test "$GCC" = yes; then
3792    CFLAGS="-g -O2"
3793  else
3794    CFLAGS="-g"
3795  fi
3796else
3797  if test "$GCC" = yes; then
3798    CFLAGS="-O2"
3799  else
3800    CFLAGS=
3801  fi
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3804$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3805if ${ac_cv_prog_cc_c89+:} false; then :
3806  $as_echo_n "(cached) " >&6
3807else
3808  ac_cv_prog_cc_c89=no
3809ac_save_CC=$CC
3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812#include <stdarg.h>
3813#include <stdio.h>
3814struct stat;
3815/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3816struct buf { int x; };
3817FILE * (*rcsopen) (struct buf *, struct stat *, int);
3818static char *e (p, i)
3819     char **p;
3820     int i;
3821{
3822  return p[i];
3823}
3824static char *f (char * (*g) (char **, int), char **p, ...)
3825{
3826  char *s;
3827  va_list v;
3828  va_start (v,p);
3829  s = g (p, va_arg (v,int));
3830  va_end (v);
3831  return s;
3832}
3833
3834/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3835   function prototypes and stuff, but not '\xHH' hex character constants.
3836   These don't provoke an error unfortunately, instead are silently treated
3837   as 'x'.  The following induces an error, until -std is added to get
3838   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3839   array size at least.  It's necessary to write '\x00'==0 to get something
3840   that's true only with -std.  */
3841int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3842
3843/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3844   inside strings and character constants.  */
3845#define FOO(x) 'x'
3846int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3847
3848int test (int i, double x);
3849struct s1 {int (*f) (int a);};
3850struct s2 {int (*f) (double a);};
3851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852int argc;
3853char **argv;
3854int
3855main ()
3856{
3857return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3863	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864do
3865  CC="$ac_save_CC $ac_arg"
3866  if ac_fn_c_try_compile "$LINENO"; then :
3867  ac_cv_prog_cc_c89=$ac_arg
3868fi
3869rm -f core conftest.err conftest.$ac_objext
3870  test "x$ac_cv_prog_cc_c89" != "xno" && break
3871done
3872rm -f conftest.$ac_ext
3873CC=$ac_save_CC
3874
3875fi
3876# AC_CACHE_VAL
3877case "x$ac_cv_prog_cc_c89" in
3878  x)
3879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3880$as_echo "none needed" >&6; } ;;
3881  xno)
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3883$as_echo "unsupported" >&6; } ;;
3884  *)
3885    CC="$CC $ac_cv_prog_cc_c89"
3886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3887$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3888esac
3889if test "x$ac_cv_prog_cc_c89" != xno; then :
3890
3891fi
3892
3893ac_ext=c
3894ac_cpp='$CPP $CPPFLAGS'
3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3905$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3906if ${am_cv_prog_cc_c_o+:} false; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h.  */
3911
3912int
3913main ()
3914{
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920  # Make sure it works both with $CC and with simple cc.
3921  # Following AC_PROG_CC_C_O, we do the test twice because some
3922  # compilers refuse to overwrite an existing .o file with -o,
3923  # though they will create one.
3924  am_cv_prog_cc_c_o=yes
3925  for am_i in 1 2; do
3926    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3927   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } \
3931         && test -f conftest2.$ac_objext; then
3932      : OK
3933    else
3934      am_cv_prog_cc_c_o=no
3935      break
3936    fi
3937  done
3938  rm -f core conftest*
3939  unset am_i
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3942$as_echo "$am_cv_prog_cc_c_o" >&6; }
3943if test "$am_cv_prog_cc_c_o" != yes; then
3944   # Losing compiler, so override with the script.
3945   # FIXME: It is wrong to rewrite CC.
3946   # But if we don't then we get into trouble of one sort or another.
3947   # A longer-term fix would be to have automake use am__CC in this case,
3948   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3949   CC="$am_aux_dir/compile $CC"
3950fi
3951ac_ext=c
3952ac_cpp='$CPP $CPPFLAGS'
3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957
3958depcc="$CC"   am_compiler_list=
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3961$as_echo_n "checking dependency style of $depcc... " >&6; }
3962if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3963  $as_echo_n "(cached) " >&6
3964else
3965  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3966  # We make a subdir and do the tests there.  Otherwise we can end up
3967  # making bogus files that we don't know about and never remove.  For
3968  # instance it was reported that on HP-UX the gcc test will end up
3969  # making a dummy file named 'D' -- because '-MD' means "put the output
3970  # in D".
3971  rm -rf conftest.dir
3972  mkdir conftest.dir
3973  # Copy depcomp to subdir because otherwise we won't find it if we're
3974  # using a relative directory.
3975  cp "$am_depcomp" conftest.dir
3976  cd conftest.dir
3977  # We will build objects and dependencies in a subdirectory because
3978  # it helps to detect inapplicable dependency modes.  For instance
3979  # both Tru64's cc and ICC support -MD to output dependencies as a
3980  # side effect of compilation, but ICC will put the dependencies in
3981  # the current directory while Tru64 will put them in the object
3982  # directory.
3983  mkdir sub
3984
3985  am_cv_CC_dependencies_compiler_type=none
3986  if test "$am_compiler_list" = ""; then
3987     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3988  fi
3989  am__universal=false
3990  case " $depcc " in #(
3991     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3992     esac
3993
3994  for depmode in $am_compiler_list; do
3995    # Setup a source with many dependencies, because some compilers
3996    # like to wrap large dependency lists on column 80 (with \), and
3997    # we should not choose a depcomp mode which is confused by this.
3998    #
3999    # We need to recreate these files for each test, as the compiler may
4000    # overwrite some of them when testing with obscure command lines.
4001    # This happens at least with the AIX C compiler.
4002    : > sub/conftest.c
4003    for i in 1 2 3 4 5 6; do
4004      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4005      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4006      # Solaris 10 /bin/sh.
4007      echo '/* dummy */' > sub/conftst$i.h
4008    done
4009    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4010
4011    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4012    # mode.  It turns out that the SunPro C++ compiler does not properly
4013    # handle '-M -o', and we need to detect this.  Also, some Intel
4014    # versions had trouble with output in subdirs.
4015    am__obj=sub/conftest.${OBJEXT-o}
4016    am__minus_obj="-o $am__obj"
4017    case $depmode in
4018    gcc)
4019      # This depmode causes a compiler race in universal mode.
4020      test "$am__universal" = false || continue
4021      ;;
4022    nosideeffect)
4023      # After this tag, mechanisms are not by side-effect, so they'll
4024      # only be used when explicitly requested.
4025      if test "x$enable_dependency_tracking" = xyes; then
4026	continue
4027      else
4028	break
4029      fi
4030      ;;
4031    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4032      # This compiler won't grok '-c -o', but also, the minuso test has
4033      # not run yet.  These depmodes are late enough in the game, and
4034      # so weak that their functioning should not be impacted.
4035      am__obj=conftest.${OBJEXT-o}
4036      am__minus_obj=
4037      ;;
4038    none) break ;;
4039    esac
4040    if depmode=$depmode \
4041       source=sub/conftest.c object=$am__obj \
4042       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4043       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4044         >/dev/null 2>conftest.err &&
4045       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4046       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4047       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4048       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4049      # icc doesn't choke on unknown options, it will just issue warnings
4050      # or remarks (even with -Werror).  So we grep stderr for any message
4051      # that says an option was ignored or not supported.
4052      # When given -MP, icc 7.0 and 7.1 complain thusly:
4053      #   icc: Command line warning: ignoring option '-M'; no argument required
4054      # The diagnosis changed in icc 8.0:
4055      #   icc: Command line remark: option '-MP' not supported
4056      if (grep 'ignoring option' conftest.err ||
4057          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4058        am_cv_CC_dependencies_compiler_type=$depmode
4059        break
4060      fi
4061    fi
4062  done
4063
4064  cd ..
4065  rm -rf conftest.dir
4066else
4067  am_cv_CC_dependencies_compiler_type=none
4068fi
4069
4070fi
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4072$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4073CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4074
4075 if
4076  test "x$enable_dependency_tracking" != xno \
4077  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4078  am__fastdepCC_TRUE=
4079  am__fastdepCC_FALSE='#'
4080else
4081  am__fastdepCC_TRUE='#'
4082  am__fastdepCC_FALSE=
4083fi
4084
4085
4086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4087$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4088if ${ac_cv_prog_cc_c99+:} false; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091  ac_cv_prog_cc_c99=no
4092ac_save_CC=$CC
4093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095#include <stdarg.h>
4096#include <stdbool.h>
4097#include <stdlib.h>
4098#include <wchar.h>
4099#include <stdio.h>
4100
4101// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4102#define debug(...) fprintf (stderr, __VA_ARGS__)
4103#define showlist(...) puts (#__VA_ARGS__)
4104#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4105static void
4106test_varargs_macros (void)
4107{
4108  int x = 1234;
4109  int y = 5678;
4110  debug ("Flag");
4111  debug ("X = %d\n", x);
4112  showlist (The first, second, and third items.);
4113  report (x>y, "x is %d but y is %d", x, y);
4114}
4115
4116// Check long long types.
4117#define BIG64 18446744073709551615ull
4118#define BIG32 4294967295ul
4119#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4120#if !BIG_OK
4121  your preprocessor is broken;
4122#endif
4123#if BIG_OK
4124#else
4125  your preprocessor is broken;
4126#endif
4127static long long int bignum = -9223372036854775807LL;
4128static unsigned long long int ubignum = BIG64;
4129
4130struct incomplete_array
4131{
4132  int datasize;
4133  double data[];
4134};
4135
4136struct named_init {
4137  int number;
4138  const wchar_t *name;
4139  double average;
4140};
4141
4142typedef const char *ccp;
4143
4144static inline int
4145test_restrict (ccp restrict text)
4146{
4147  // See if C++-style comments work.
4148  // Iterate through items via the restricted pointer.
4149  // Also check for declarations in for loops.
4150  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4151    continue;
4152  return 0;
4153}
4154
4155// Check varargs and va_copy.
4156static void
4157test_varargs (const char *format, ...)
4158{
4159  va_list args;
4160  va_start (args, format);
4161  va_list args_copy;
4162  va_copy (args_copy, args);
4163
4164  const char *str;
4165  int number;
4166  float fnumber;
4167
4168  while (*format)
4169    {
4170      switch (*format++)
4171	{
4172	case 's': // string
4173	  str = va_arg (args_copy, const char *);
4174	  break;
4175	case 'd': // int
4176	  number = va_arg (args_copy, int);
4177	  break;
4178	case 'f': // float
4179	  fnumber = va_arg (args_copy, double);
4180	  break;
4181	default:
4182	  break;
4183	}
4184    }
4185  va_end (args_copy);
4186  va_end (args);
4187}
4188
4189int
4190main ()
4191{
4192
4193  // Check bool.
4194  _Bool success = false;
4195
4196  // Check restrict.
4197  if (test_restrict ("String literal") == 0)
4198    success = true;
4199  char *restrict newvar = "Another string";
4200
4201  // Check varargs.
4202  test_varargs ("s, d' f .", "string", 65, 34.234);
4203  test_varargs_macros ();
4204
4205  // Check flexible array members.
4206  struct incomplete_array *ia =
4207    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4208  ia->datasize = 10;
4209  for (int i = 0; i < ia->datasize; ++i)
4210    ia->data[i] = i * 1.234;
4211
4212  // Check named initializers.
4213  struct named_init ni = {
4214    .number = 34,
4215    .name = L"Test wide string",
4216    .average = 543.34343,
4217  };
4218
4219  ni.number = 58;
4220
4221  int dynamic_array[ni.number];
4222  dynamic_array[ni.number - 1] = 543;
4223
4224  // work around unused variable warnings
4225  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4226	  || dynamic_array[ni.number - 1] != 543);
4227
4228  ;
4229  return 0;
4230}
4231_ACEOF
4232for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4233do
4234  CC="$ac_save_CC $ac_arg"
4235  if ac_fn_c_try_compile "$LINENO"; then :
4236  ac_cv_prog_cc_c99=$ac_arg
4237fi
4238rm -f core conftest.err conftest.$ac_objext
4239  test "x$ac_cv_prog_cc_c99" != "xno" && break
4240done
4241rm -f conftest.$ac_ext
4242CC=$ac_save_CC
4243
4244fi
4245# AC_CACHE_VAL
4246case "x$ac_cv_prog_cc_c99" in
4247  x)
4248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249$as_echo "none needed" >&6; } ;;
4250  xno)
4251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252$as_echo "unsupported" >&6; } ;;
4253  *)
4254    CC="$CC $ac_cv_prog_cc_c99"
4255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4256$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4257esac
4258if test "x$ac_cv_prog_cc_c99" != xno; then :
4259
4260fi
4261
4262
4263if test "$ac_cv_prog_cc_c99" = "no"; then :
4264  as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4265fi
4266for ac_prog in 'bison -y' byacc
4267do
4268  # Extract the first word of "$ac_prog", so it can be a program name with args.
4269set dummy $ac_prog; ac_word=$2
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if ${ac_cv_prog_YACC+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  if test -n "$YACC"; then
4276  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285    ac_cv_prog_YACC="$ac_prog"
4286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287    break 2
4288  fi
4289done
4290  done
4291IFS=$as_save_IFS
4292
4293fi
4294fi
4295YACC=$ac_cv_prog_YACC
4296if test -n "$YACC"; then
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4298$as_echo "$YACC" >&6; }
4299else
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304
4305  test -n "$YACC" && break
4306done
4307test -n "$YACC" || YACC="yacc"
4308
4309
4310for ac_prog in flex lex
4311do
4312  # Extract the first word of "$ac_prog", so it can be a program name with args.
4313set dummy $ac_prog; ac_word=$2
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if ${ac_cv_prog_LEX+:} false; then :
4317  $as_echo_n "(cached) " >&6
4318else
4319  if test -n "$LEX"; then
4320  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327    for ac_exec_ext in '' $ac_executable_extensions; do
4328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329    ac_cv_prog_LEX="$ac_prog"
4330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331    break 2
4332  fi
4333done
4334  done
4335IFS=$as_save_IFS
4336
4337fi
4338fi
4339LEX=$ac_cv_prog_LEX
4340if test -n "$LEX"; then
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4342$as_echo "$LEX" >&6; }
4343else
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
4346fi
4347
4348
4349  test -n "$LEX" && break
4350done
4351test -n "$LEX" || LEX=":"
4352
4353if test "x$LEX" != "x:"; then
4354  cat >conftest.l <<_ACEOF
4355%%
4356a { ECHO; }
4357b { REJECT; }
4358c { yymore (); }
4359d { yyless (1); }
4360e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4361    yyless ((input () != 0)); }
4362f { unput (yytext[0]); }
4363. { BEGIN INITIAL; }
4364%%
4365#ifdef YYTEXT_POINTER
4366extern char *yytext;
4367#endif
4368int
4369main (void)
4370{
4371  return ! yylex () + ! yywrap ();
4372}
4373_ACEOF
4374{ { ac_try="$LEX conftest.l"
4375case "(($ac_try" in
4376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377  *) ac_try_echo=$ac_try;;
4378esac
4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380$as_echo "$ac_try_echo"; } >&5
4381  (eval "$LEX conftest.l") 2>&5
4382  ac_status=$?
4383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384  test $ac_status = 0; }
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4386$as_echo_n "checking lex output file root... " >&6; }
4387if ${ac_cv_prog_lex_root+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390
4391if test -f lex.yy.c; then
4392  ac_cv_prog_lex_root=lex.yy
4393elif test -f lexyy.c; then
4394  ac_cv_prog_lex_root=lexyy
4395else
4396  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4397fi
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4400$as_echo "$ac_cv_prog_lex_root" >&6; }
4401LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4402
4403if test -z "${LEXLIB+set}"; then
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4405$as_echo_n "checking lex library... " >&6; }
4406if ${ac_cv_lib_lex+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409
4410    ac_save_LIBS=$LIBS
4411    ac_cv_lib_lex='none needed'
4412    for ac_lib in '' -lfl -ll; do
4413      LIBS="$ac_lib $ac_save_LIBS"
4414      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h.  */
4416`cat $LEX_OUTPUT_ROOT.c`
4417_ACEOF
4418if ac_fn_c_try_link "$LINENO"; then :
4419  ac_cv_lib_lex=$ac_lib
4420fi
4421rm -f core conftest.err conftest.$ac_objext \
4422    conftest$ac_exeext conftest.$ac_ext
4423      test "$ac_cv_lib_lex" != 'none needed' && break
4424    done
4425    LIBS=$ac_save_LIBS
4426
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4429$as_echo "$ac_cv_lib_lex" >&6; }
4430  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4431fi
4432
4433
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4435$as_echo_n "checking whether yytext is a pointer... " >&6; }
4436if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4437  $as_echo_n "(cached) " >&6
4438else
4439  # POSIX says lex can declare yytext either as a pointer or an array; the
4440# default is implementation-dependent.  Figure out which it is, since
4441# not all implementations provide the %pointer and %array declarations.
4442ac_cv_prog_lex_yytext_pointer=no
4443ac_save_LIBS=$LIBS
4444LIBS="$LEXLIB $ac_save_LIBS"
4445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h.  */
4447
4448  #define YYTEXT_POINTER 1
4449`cat $LEX_OUTPUT_ROOT.c`
4450_ACEOF
4451if ac_fn_c_try_link "$LINENO"; then :
4452  ac_cv_prog_lex_yytext_pointer=yes
4453fi
4454rm -f core conftest.err conftest.$ac_objext \
4455    conftest$ac_exeext conftest.$ac_ext
4456LIBS=$ac_save_LIBS
4457
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4460$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4461if test $ac_cv_prog_lex_yytext_pointer = yes; then
4462
4463$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4464
4465fi
4466rm -f conftest.l $LEX_OUTPUT_ROOT.c
4467
4468fi
4469if test "$LEX" = :; then
4470  LEX=${am_missing_run}flex
4471fi
4472
4473
4474# Initializing libtool.
4475
4476
4477
4478
4479
4480
4481
4482case `pwd` in
4483  *\ * | *\	*)
4484    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4485$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4486esac
4487
4488
4489
4490macro_version='2.4.6'
4491macro_revision='2.4.6'
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505ltmain=$ac_aux_dir/ltmain.sh
4506
4507# Make sure we can run config.sub.
4508$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4509  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4512$as_echo_n "checking build system type... " >&6; }
4513if ${ac_cv_build+:} false; then :
4514  $as_echo_n "(cached) " >&6
4515else
4516  ac_build_alias=$build_alias
4517test "x$ac_build_alias" = x &&
4518  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4519test "x$ac_build_alias" = x &&
4520  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4521ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4522  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4523
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4526$as_echo "$ac_cv_build" >&6; }
4527case $ac_cv_build in
4528*-*-*) ;;
4529*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4530esac
4531build=$ac_cv_build
4532ac_save_IFS=$IFS; IFS='-'
4533set x $ac_cv_build
4534shift
4535build_cpu=$1
4536build_vendor=$2
4537shift; shift
4538# Remember, the first character of IFS is used to create $*,
4539# except with old shells:
4540build_os=$*
4541IFS=$ac_save_IFS
4542case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4543
4544
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4546$as_echo_n "checking host system type... " >&6; }
4547if ${ac_cv_host+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test "x$host_alias" = x; then
4551  ac_cv_host=$ac_cv_build
4552else
4553  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4554    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4555fi
4556
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4559$as_echo "$ac_cv_host" >&6; }
4560case $ac_cv_host in
4561*-*-*) ;;
4562*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4563esac
4564host=$ac_cv_host
4565ac_save_IFS=$IFS; IFS='-'
4566set x $ac_cv_host
4567shift
4568host_cpu=$1
4569host_vendor=$2
4570shift; shift
4571# Remember, the first character of IFS is used to create $*,
4572# except with old shells:
4573host_os=$*
4574IFS=$ac_save_IFS
4575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4576
4577
4578# Backslashify metacharacters that are still active within
4579# double-quoted strings.
4580sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4581
4582# Same as above, but do not quote variable references.
4583double_quote_subst='s/\(["`\\]\)/\\\1/g'
4584
4585# Sed substitution to delay expansion of an escaped shell variable in a
4586# double_quote_subst'ed string.
4587delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4588
4589# Sed substitution to delay expansion of an escaped single quote.
4590delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4591
4592# Sed substitution to avoid accidental globbing in evaled expressions
4593no_glob_subst='s/\*/\\\*/g'
4594
4595ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4596ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4597ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4600$as_echo_n "checking how to print strings... " >&6; }
4601# Test print first, because it will be a builtin if present.
4602if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4603   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4604  ECHO='print -r --'
4605elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4606  ECHO='printf %s\n'
4607else
4608  # Use this function as a fallback that always works.
4609  func_fallback_echo ()
4610  {
4611    eval 'cat <<_LTECHO_EOF
4612$1
4613_LTECHO_EOF'
4614  }
4615  ECHO='func_fallback_echo'
4616fi
4617
4618# func_echo_all arg...
4619# Invoke $ECHO with all args, space-separated.
4620func_echo_all ()
4621{
4622    $ECHO ""
4623}
4624
4625case $ECHO in
4626  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4627$as_echo "printf" >&6; } ;;
4628  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4629$as_echo "print -r" >&6; } ;;
4630  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4631$as_echo "cat" >&6; } ;;
4632esac
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4648$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4649if ${ac_cv_path_SED+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4653     for ac_i in 1 2 3 4 5 6 7; do
4654       ac_script="$ac_script$as_nl$ac_script"
4655     done
4656     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4657     { ac_script=; unset ac_script;}
4658     if test -z "$SED"; then
4659  ac_path_SED_found=false
4660  # Loop through the user's path and test for each of PROGNAME-LIST
4661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666    for ac_prog in sed gsed; do
4667    for ac_exec_ext in '' $ac_executable_extensions; do
4668      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4669      as_fn_executable_p "$ac_path_SED" || continue
4670# Check for GNU ac_path_SED and select it if it is found.
4671  # Check for GNU $ac_path_SED
4672case `"$ac_path_SED" --version 2>&1` in
4673*GNU*)
4674  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4675*)
4676  ac_count=0
4677  $as_echo_n 0123456789 >"conftest.in"
4678  while :
4679  do
4680    cat "conftest.in" "conftest.in" >"conftest.tmp"
4681    mv "conftest.tmp" "conftest.in"
4682    cp "conftest.in" "conftest.nl"
4683    $as_echo '' >> "conftest.nl"
4684    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686    as_fn_arith $ac_count + 1 && ac_count=$as_val
4687    if test $ac_count -gt ${ac_path_SED_max-0}; then
4688      # Best one so far, save it but keep looking for a better one
4689      ac_cv_path_SED="$ac_path_SED"
4690      ac_path_SED_max=$ac_count
4691    fi
4692    # 10*(2^10) chars as input seems more than enough
4693    test $ac_count -gt 10 && break
4694  done
4695  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696esac
4697
4698      $ac_path_SED_found && break 3
4699    done
4700  done
4701  done
4702IFS=$as_save_IFS
4703  if test -z "$ac_cv_path_SED"; then
4704    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4705  fi
4706else
4707  ac_cv_path_SED=$SED
4708fi
4709
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4712$as_echo "$ac_cv_path_SED" >&6; }
4713 SED="$ac_cv_path_SED"
4714  rm -f conftest.sed
4715
4716test -z "$SED" && SED=sed
4717Xsed="$SED -e 1s/^X//"
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4730$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4731if ${ac_cv_path_GREP+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  if test -z "$GREP"; then
4735  ac_path_GREP_found=false
4736  # Loop through the user's path and test for each of PROGNAME-LIST
4737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742    for ac_prog in grep ggrep; do
4743    for ac_exec_ext in '' $ac_executable_extensions; do
4744      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4745      as_fn_executable_p "$ac_path_GREP" || continue
4746# Check for GNU ac_path_GREP and select it if it is found.
4747  # Check for GNU $ac_path_GREP
4748case `"$ac_path_GREP" --version 2>&1` in
4749*GNU*)
4750  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4751*)
4752  ac_count=0
4753  $as_echo_n 0123456789 >"conftest.in"
4754  while :
4755  do
4756    cat "conftest.in" "conftest.in" >"conftest.tmp"
4757    mv "conftest.tmp" "conftest.in"
4758    cp "conftest.in" "conftest.nl"
4759    $as_echo 'GREP' >> "conftest.nl"
4760    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762    as_fn_arith $ac_count + 1 && ac_count=$as_val
4763    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4764      # Best one so far, save it but keep looking for a better one
4765      ac_cv_path_GREP="$ac_path_GREP"
4766      ac_path_GREP_max=$ac_count
4767    fi
4768    # 10*(2^10) chars as input seems more than enough
4769    test $ac_count -gt 10 && break
4770  done
4771  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772esac
4773
4774      $ac_path_GREP_found && break 3
4775    done
4776  done
4777  done
4778IFS=$as_save_IFS
4779  if test -z "$ac_cv_path_GREP"; then
4780    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781  fi
4782else
4783  ac_cv_path_GREP=$GREP
4784fi
4785
4786fi
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4788$as_echo "$ac_cv_path_GREP" >&6; }
4789 GREP="$ac_cv_path_GREP"
4790
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4793$as_echo_n "checking for egrep... " >&6; }
4794if ${ac_cv_path_EGREP+:} false; then :
4795  $as_echo_n "(cached) " >&6
4796else
4797  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4798   then ac_cv_path_EGREP="$GREP -E"
4799   else
4800     if test -z "$EGREP"; then
4801  ac_path_EGREP_found=false
4802  # Loop through the user's path and test for each of PROGNAME-LIST
4803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4805do
4806  IFS=$as_save_IFS
4807  test -z "$as_dir" && as_dir=.
4808    for ac_prog in egrep; do
4809    for ac_exec_ext in '' $ac_executable_extensions; do
4810      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4811      as_fn_executable_p "$ac_path_EGREP" || continue
4812# Check for GNU ac_path_EGREP and select it if it is found.
4813  # Check for GNU $ac_path_EGREP
4814case `"$ac_path_EGREP" --version 2>&1` in
4815*GNU*)
4816  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4817*)
4818  ac_count=0
4819  $as_echo_n 0123456789 >"conftest.in"
4820  while :
4821  do
4822    cat "conftest.in" "conftest.in" >"conftest.tmp"
4823    mv "conftest.tmp" "conftest.in"
4824    cp "conftest.in" "conftest.nl"
4825    $as_echo 'EGREP' >> "conftest.nl"
4826    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4827    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4828    as_fn_arith $ac_count + 1 && ac_count=$as_val
4829    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4830      # Best one so far, save it but keep looking for a better one
4831      ac_cv_path_EGREP="$ac_path_EGREP"
4832      ac_path_EGREP_max=$ac_count
4833    fi
4834    # 10*(2^10) chars as input seems more than enough
4835    test $ac_count -gt 10 && break
4836  done
4837  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4838esac
4839
4840      $ac_path_EGREP_found && break 3
4841    done
4842  done
4843  done
4844IFS=$as_save_IFS
4845  if test -z "$ac_cv_path_EGREP"; then
4846    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4847  fi
4848else
4849  ac_cv_path_EGREP=$EGREP
4850fi
4851
4852   fi
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4855$as_echo "$ac_cv_path_EGREP" >&6; }
4856 EGREP="$ac_cv_path_EGREP"
4857
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4860$as_echo_n "checking for fgrep... " >&6; }
4861if ${ac_cv_path_FGREP+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4865   then ac_cv_path_FGREP="$GREP -F"
4866   else
4867     if test -z "$FGREP"; then
4868  ac_path_FGREP_found=false
4869  # Loop through the user's path and test for each of PROGNAME-LIST
4870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875    for ac_prog in fgrep; do
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4878      as_fn_executable_p "$ac_path_FGREP" || continue
4879# Check for GNU ac_path_FGREP and select it if it is found.
4880  # Check for GNU $ac_path_FGREP
4881case `"$ac_path_FGREP" --version 2>&1` in
4882*GNU*)
4883  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4884*)
4885  ac_count=0
4886  $as_echo_n 0123456789 >"conftest.in"
4887  while :
4888  do
4889    cat "conftest.in" "conftest.in" >"conftest.tmp"
4890    mv "conftest.tmp" "conftest.in"
4891    cp "conftest.in" "conftest.nl"
4892    $as_echo 'FGREP' >> "conftest.nl"
4893    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895    as_fn_arith $ac_count + 1 && ac_count=$as_val
4896    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4897      # Best one so far, save it but keep looking for a better one
4898      ac_cv_path_FGREP="$ac_path_FGREP"
4899      ac_path_FGREP_max=$ac_count
4900    fi
4901    # 10*(2^10) chars as input seems more than enough
4902    test $ac_count -gt 10 && break
4903  done
4904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905esac
4906
4907      $ac_path_FGREP_found && break 3
4908    done
4909  done
4910  done
4911IFS=$as_save_IFS
4912  if test -z "$ac_cv_path_FGREP"; then
4913    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914  fi
4915else
4916  ac_cv_path_FGREP=$FGREP
4917fi
4918
4919   fi
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4922$as_echo "$ac_cv_path_FGREP" >&6; }
4923 FGREP="$ac_cv_path_FGREP"
4924
4925
4926test -z "$GREP" && GREP=grep
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946# Check whether --with-gnu-ld was given.
4947if test "${with_gnu_ld+set}" = set; then :
4948  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4949else
4950  with_gnu_ld=no
4951fi
4952
4953ac_prog=ld
4954if test yes = "$GCC"; then
4955  # Check if gcc -print-prog-name=ld gives a path.
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4957$as_echo_n "checking for ld used by $CC... " >&6; }
4958  case $host in
4959  *-*-mingw*)
4960    # gcc leaves a trailing carriage return, which upsets mingw
4961    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4962  *)
4963    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4964  esac
4965  case $ac_prog in
4966    # Accept absolute paths.
4967    [\\/]* | ?:[\\/]*)
4968      re_direlt='/[^/][^/]*/\.\./'
4969      # Canonicalize the pathname of ld
4970      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4971      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4972	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4973      done
4974      test -z "$LD" && LD=$ac_prog
4975      ;;
4976  "")
4977    # If it fails, then pretend we aren't using GCC.
4978    ac_prog=ld
4979    ;;
4980  *)
4981    # If it is relative, then search for the first ld in PATH.
4982    with_gnu_ld=unknown
4983    ;;
4984  esac
4985elif test yes = "$with_gnu_ld"; then
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4987$as_echo_n "checking for GNU ld... " >&6; }
4988else
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4990$as_echo_n "checking for non-GNU ld... " >&6; }
4991fi
4992if ${lt_cv_path_LD+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  if test -z "$LD"; then
4996  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4997  for ac_dir in $PATH; do
4998    IFS=$lt_save_ifs
4999    test -z "$ac_dir" && ac_dir=.
5000    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5001      lt_cv_path_LD=$ac_dir/$ac_prog
5002      # Check to see if the program is GNU ld.  I'd rather use --version,
5003      # but apparently some variants of GNU ld only accept -v.
5004      # Break only if it was the GNU/non-GNU ld that we prefer.
5005      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5006      *GNU* | *'with BFD'*)
5007	test no != "$with_gnu_ld" && break
5008	;;
5009      *)
5010	test yes != "$with_gnu_ld" && break
5011	;;
5012      esac
5013    fi
5014  done
5015  IFS=$lt_save_ifs
5016else
5017  lt_cv_path_LD=$LD # Let the user override the test with a path.
5018fi
5019fi
5020
5021LD=$lt_cv_path_LD
5022if test -n "$LD"; then
5023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5024$as_echo "$LD" >&6; }
5025else
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028fi
5029test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5031$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5032if ${lt_cv_prog_gnu_ld+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5036case `$LD -v 2>&1 </dev/null` in
5037*GNU* | *'with BFD'*)
5038  lt_cv_prog_gnu_ld=yes
5039  ;;
5040*)
5041  lt_cv_prog_gnu_ld=no
5042  ;;
5043esac
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5046$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5047with_gnu_ld=$lt_cv_prog_gnu_ld
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5058$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5059if ${lt_cv_path_NM+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  if test -n "$NM"; then
5063  # Let the user override the test.
5064  lt_cv_path_NM=$NM
5065else
5066  lt_nm_to_check=${ac_tool_prefix}nm
5067  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5068    lt_nm_to_check="$lt_nm_to_check nm"
5069  fi
5070  for lt_tmp_nm in $lt_nm_to_check; do
5071    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5072    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5073      IFS=$lt_save_ifs
5074      test -z "$ac_dir" && ac_dir=.
5075      tmp_nm=$ac_dir/$lt_tmp_nm
5076      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5077	# Check to see if the nm accepts a BSD-compat flag.
5078	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5079	#   nm: unknown option "B" ignored
5080	# Tru64's nm complains that /dev/null is an invalid object file
5081	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5082	case $build_os in
5083	mingw*) lt_bad_file=conftest.nm/nofile ;;
5084	*) lt_bad_file=/dev/null ;;
5085	esac
5086	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5087	*$lt_bad_file* | *'Invalid file or object type'*)
5088	  lt_cv_path_NM="$tmp_nm -B"
5089	  break 2
5090	  ;;
5091	*)
5092	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5093	  */dev/null*)
5094	    lt_cv_path_NM="$tmp_nm -p"
5095	    break 2
5096	    ;;
5097	  *)
5098	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5099	    continue # so that we can try to find one that supports BSD flags
5100	    ;;
5101	  esac
5102	  ;;
5103	esac
5104      fi
5105    done
5106    IFS=$lt_save_ifs
5107  done
5108  : ${lt_cv_path_NM=no}
5109fi
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5112$as_echo "$lt_cv_path_NM" >&6; }
5113if test no != "$lt_cv_path_NM"; then
5114  NM=$lt_cv_path_NM
5115else
5116  # Didn't find any BSD compatible name lister, look for dumpbin.
5117  if test -n "$DUMPBIN"; then :
5118    # Let the user override the test.
5119  else
5120    if test -n "$ac_tool_prefix"; then
5121  for ac_prog in dumpbin "link -dump"
5122  do
5123    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if ${ac_cv_prog_DUMPBIN+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$DUMPBIN"; then
5131  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145  done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150DUMPBIN=$ac_cv_prog_DUMPBIN
5151if test -n "$DUMPBIN"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5153$as_echo "$DUMPBIN" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160    test -n "$DUMPBIN" && break
5161  done
5162fi
5163if test -z "$DUMPBIN"; then
5164  ac_ct_DUMPBIN=$DUMPBIN
5165  for ac_prog in dumpbin "link -dump"
5166do
5167  # Extract the first word of "$ac_prog", so it can be a program name with args.
5168set dummy $ac_prog; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test -n "$ac_ct_DUMPBIN"; then
5175  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189  done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5195if test -n "$ac_ct_DUMPBIN"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5197$as_echo "$ac_ct_DUMPBIN" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204  test -n "$ac_ct_DUMPBIN" && break
5205done
5206
5207  if test "x$ac_ct_DUMPBIN" = x; then
5208    DUMPBIN=":"
5209  else
5210    case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216    DUMPBIN=$ac_ct_DUMPBIN
5217  fi
5218fi
5219
5220    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5221    *COFF*)
5222      DUMPBIN="$DUMPBIN -symbols -headers"
5223      ;;
5224    *)
5225      DUMPBIN=:
5226      ;;
5227    esac
5228  fi
5229
5230  if test : != "$DUMPBIN"; then
5231    NM=$DUMPBIN
5232  fi
5233fi
5234test -z "$NM" && NM=nm
5235
5236
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5242$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5243if ${lt_cv_nm_interface+:} false; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  lt_cv_nm_interface="BSD nm"
5247  echo "int some_variable = 0;" > conftest.$ac_ext
5248  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5249  (eval "$ac_compile" 2>conftest.err)
5250  cat conftest.err >&5
5251  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5252  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5253  cat conftest.err >&5
5254  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5255  cat conftest.out >&5
5256  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5257    lt_cv_nm_interface="MS dumpbin"
5258  fi
5259  rm -f conftest*
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5262$as_echo "$lt_cv_nm_interface" >&6; }
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5265$as_echo_n "checking whether ln -s works... " >&6; }
5266LN_S=$as_ln_s
5267if test "$LN_S" = "ln -s"; then
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5269$as_echo "yes" >&6; }
5270else
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5272$as_echo "no, using $LN_S" >&6; }
5273fi
5274
5275# find the maximum length of command line arguments
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5277$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5278if ${lt_cv_sys_max_cmd_len+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281    i=0
5282  teststring=ABCD
5283
5284  case $build_os in
5285  msdosdjgpp*)
5286    # On DJGPP, this test can blow up pretty badly due to problems in libc
5287    # (any single argument exceeding 2000 bytes causes a buffer overrun
5288    # during glob expansion).  Even if it were fixed, the result of this
5289    # check would be larger than it should be.
5290    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5291    ;;
5292
5293  gnu*)
5294    # Under GNU Hurd, this test is not required because there is
5295    # no limit to the length of command line arguments.
5296    # Libtool will interpret -1 as no limit whatsoever
5297    lt_cv_sys_max_cmd_len=-1;
5298    ;;
5299
5300  cygwin* | mingw* | cegcc*)
5301    # On Win9x/ME, this test blows up -- it succeeds, but takes
5302    # about 5 minutes as the teststring grows exponentially.
5303    # Worse, since 9x/ME are not pre-emptively multitasking,
5304    # you end up with a "frozen" computer, even though with patience
5305    # the test eventually succeeds (with a max line length of 256k).
5306    # Instead, let's just punt: use the minimum linelength reported by
5307    # all of the supported platforms: 8192 (on NT/2K/XP).
5308    lt_cv_sys_max_cmd_len=8192;
5309    ;;
5310
5311  mint*)
5312    # On MiNT this can take a long time and run out of memory.
5313    lt_cv_sys_max_cmd_len=8192;
5314    ;;
5315
5316  amigaos*)
5317    # On AmigaOS with pdksh, this test takes hours, literally.
5318    # So we just punt and use a minimum line length of 8192.
5319    lt_cv_sys_max_cmd_len=8192;
5320    ;;
5321
5322  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5323    # This has been around since 386BSD, at least.  Likely further.
5324    if test -x /sbin/sysctl; then
5325      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5326    elif test -x /usr/sbin/sysctl; then
5327      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5328    else
5329      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5330    fi
5331    # And add a safety zone
5332    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5333    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5334    ;;
5335
5336  interix*)
5337    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5338    lt_cv_sys_max_cmd_len=196608
5339    ;;
5340
5341  os2*)
5342    # The test takes a long time on OS/2.
5343    lt_cv_sys_max_cmd_len=8192
5344    ;;
5345
5346  osf*)
5347    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5348    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5349    # nice to cause kernel panics so lets avoid the loop below.
5350    # First set a reasonable default.
5351    lt_cv_sys_max_cmd_len=16384
5352    #
5353    if test -x /sbin/sysconfig; then
5354      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5355        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5356      esac
5357    fi
5358    ;;
5359  sco3.2v5*)
5360    lt_cv_sys_max_cmd_len=102400
5361    ;;
5362  sysv5* | sco5v6* | sysv4.2uw2*)
5363    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5364    if test -n "$kargmax"; then
5365      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5366    else
5367      lt_cv_sys_max_cmd_len=32768
5368    fi
5369    ;;
5370  *)
5371    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5372    if test -n "$lt_cv_sys_max_cmd_len" && \
5373       test undefined != "$lt_cv_sys_max_cmd_len"; then
5374      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5375      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5376    else
5377      # Make teststring a little bigger before we do anything with it.
5378      # a 1K string should be a reasonable start.
5379      for i in 1 2 3 4 5 6 7 8; do
5380        teststring=$teststring$teststring
5381      done
5382      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5383      # If test is not a shell built-in, we'll probably end up computing a
5384      # maximum length that is only half of the actual maximum length, but
5385      # we can't tell.
5386      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5387	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5388	      test 17 != "$i" # 1/2 MB should be enough
5389      do
5390        i=`expr $i + 1`
5391        teststring=$teststring$teststring
5392      done
5393      # Only check the string length outside the loop.
5394      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5395      teststring=
5396      # Add a significant safety factor because C++ compilers can tack on
5397      # massive amounts of additional arguments before passing them to the
5398      # linker.  It appears as though 1/2 is a usable value.
5399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5400    fi
5401    ;;
5402  esac
5403
5404fi
5405
5406if test -n "$lt_cv_sys_max_cmd_len"; then
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5408$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5409else
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5411$as_echo "none" >&6; }
5412fi
5413max_cmd_len=$lt_cv_sys_max_cmd_len
5414
5415
5416
5417
5418
5419
5420: ${CP="cp -f"}
5421: ${MV="mv -f"}
5422: ${RM="rm -f"}
5423
5424if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5425  lt_unset=unset
5426else
5427  lt_unset=false
5428fi
5429
5430
5431
5432
5433
5434# test EBCDIC or ASCII
5435case `echo X|tr X '\101'` in
5436 A) # ASCII based system
5437    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5438  lt_SP2NL='tr \040 \012'
5439  lt_NL2SP='tr \015\012 \040\040'
5440  ;;
5441 *) # EBCDIC based system
5442  lt_SP2NL='tr \100 \n'
5443  lt_NL2SP='tr \r\n \100\100'
5444  ;;
5445esac
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5456$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5457if ${lt_cv_to_host_file_cmd+:} false; then :
5458  $as_echo_n "(cached) " >&6
5459else
5460  case $host in
5461  *-*-mingw* )
5462    case $build in
5463      *-*-mingw* ) # actually msys
5464        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5465        ;;
5466      *-*-cygwin* )
5467        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5468        ;;
5469      * ) # otherwise, assume *nix
5470        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5471        ;;
5472    esac
5473    ;;
5474  *-*-cygwin* )
5475    case $build in
5476      *-*-mingw* ) # actually msys
5477        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5478        ;;
5479      *-*-cygwin* )
5480        lt_cv_to_host_file_cmd=func_convert_file_noop
5481        ;;
5482      * ) # otherwise, assume *nix
5483        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5484        ;;
5485    esac
5486    ;;
5487  * ) # unhandled hosts (and "normal" native builds)
5488    lt_cv_to_host_file_cmd=func_convert_file_noop
5489    ;;
5490esac
5491
5492fi
5493
5494to_host_file_cmd=$lt_cv_to_host_file_cmd
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5496$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5497
5498
5499
5500
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5503$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5504if ${lt_cv_to_tool_file_cmd+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507  #assume ordinary cross tools, or native build.
5508lt_cv_to_tool_file_cmd=func_convert_file_noop
5509case $host in
5510  *-*-mingw* )
5511    case $build in
5512      *-*-mingw* ) # actually msys
5513        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5514        ;;
5515    esac
5516    ;;
5517esac
5518
5519fi
5520
5521to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5523$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5524
5525
5526
5527
5528
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5530$as_echo_n "checking for $LD option to reload object files... " >&6; }
5531if ${lt_cv_ld_reload_flag+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  lt_cv_ld_reload_flag='-r'
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5537$as_echo "$lt_cv_ld_reload_flag" >&6; }
5538reload_flag=$lt_cv_ld_reload_flag
5539case $reload_flag in
5540"" | " "*) ;;
5541*) reload_flag=" $reload_flag" ;;
5542esac
5543reload_cmds='$LD$reload_flag -o $output$reload_objs'
5544case $host_os in
5545  cygwin* | mingw* | pw32* | cegcc*)
5546    if test yes != "$GCC"; then
5547      reload_cmds=false
5548    fi
5549    ;;
5550  darwin*)
5551    if test yes = "$GCC"; then
5552      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5553    else
5554      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555    fi
5556    ;;
5557esac
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567if test -n "$ac_tool_prefix"; then
5568  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}objdump; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if ${ac_cv_prog_OBJDUMP+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$OBJDUMP"; then
5576  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_exec_ext in '' $ac_executable_extensions; do
5584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590  done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595OBJDUMP=$ac_cv_prog_OBJDUMP
5596if test -n "$OBJDUMP"; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5598$as_echo "$OBJDUMP" >&6; }
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605fi
5606if test -z "$ac_cv_prog_OBJDUMP"; then
5607  ac_ct_OBJDUMP=$OBJDUMP
5608  # Extract the first word of "objdump", so it can be a program name with args.
5609set dummy objdump; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if test -n "$ac_ct_OBJDUMP"; then
5616  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623    for ac_exec_ext in '' $ac_executable_extensions; do
5624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630  done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5636if test -n "$ac_ct_OBJDUMP"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5638$as_echo "$ac_ct_OBJDUMP" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644  if test "x$ac_ct_OBJDUMP" = x; then
5645    OBJDUMP="false"
5646  else
5647    case $cross_compiling:$ac_tool_warned in
5648yes:)
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651ac_tool_warned=yes ;;
5652esac
5653    OBJDUMP=$ac_ct_OBJDUMP
5654  fi
5655else
5656  OBJDUMP="$ac_cv_prog_OBJDUMP"
5657fi
5658
5659test -z "$OBJDUMP" && OBJDUMP=objdump
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5670$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5671if ${lt_cv_deplibs_check_method+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  lt_cv_file_magic_cmd='$MAGIC_CMD'
5675lt_cv_file_magic_test_file=
5676lt_cv_deplibs_check_method='unknown'
5677# Need to set the preceding variable on all platforms that support
5678# interlibrary dependencies.
5679# 'none' -- dependencies not supported.
5680# 'unknown' -- same as none, but documents that we really don't know.
5681# 'pass_all' -- all dependencies passed with no checks.
5682# 'test_compile' -- check by making test program.
5683# 'file_magic [[regex]]' -- check by looking for files in library path
5684# that responds to the $file_magic_cmd with a given extended regex.
5685# If you have 'file' or equivalent on your system and you're not sure
5686# whether 'pass_all' will *always* work, you probably want this one.
5687
5688case $host_os in
5689aix[4-9]*)
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692
5693beos*)
5694  lt_cv_deplibs_check_method=pass_all
5695  ;;
5696
5697bsdi[45]*)
5698  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5699  lt_cv_file_magic_cmd='/usr/bin/file -L'
5700  lt_cv_file_magic_test_file=/shlib/libc.so
5701  ;;
5702
5703cygwin*)
5704  # func_win32_libid is a shell function defined in ltmain.sh
5705  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5706  lt_cv_file_magic_cmd='func_win32_libid'
5707  ;;
5708
5709mingw* | pw32*)
5710  # Base MSYS/MinGW do not provide the 'file' command needed by
5711  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5712  # unless we find 'file', for example because we are cross-compiling.
5713  if ( file / ) >/dev/null 2>&1; then
5714    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715    lt_cv_file_magic_cmd='func_win32_libid'
5716  else
5717    # Keep this pattern in sync with the one in func_win32_libid.
5718    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5719    lt_cv_file_magic_cmd='$OBJDUMP -f'
5720  fi
5721  ;;
5722
5723cegcc*)
5724  # use the weaker test based on 'objdump'. See mingw*.
5725  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5726  lt_cv_file_magic_cmd='$OBJDUMP -f'
5727  ;;
5728
5729darwin* | rhapsody*)
5730  lt_cv_deplibs_check_method=pass_all
5731  ;;
5732
5733freebsd* | dragonfly*)
5734  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5735    case $host_cpu in
5736    i*86 )
5737      # Not sure whether the presence of OpenBSD here was a mistake.
5738      # Let's accept both of them until this is cleared up.
5739      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5740      lt_cv_file_magic_cmd=/usr/bin/file
5741      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5742      ;;
5743    esac
5744  else
5745    lt_cv_deplibs_check_method=pass_all
5746  fi
5747  ;;
5748
5749haiku*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753hpux10.20* | hpux11*)
5754  lt_cv_file_magic_cmd=/usr/bin/file
5755  case $host_cpu in
5756  ia64*)
5757    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5758    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5759    ;;
5760  hppa*64*)
5761    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]'
5762    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5763    ;;
5764  *)
5765    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5766    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5767    ;;
5768  esac
5769  ;;
5770
5771interix[3-9]*)
5772  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5773  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5774  ;;
5775
5776irix5* | irix6* | nonstopux*)
5777  case $LD in
5778  *-32|*"-32 ") libmagic=32-bit;;
5779  *-n32|*"-n32 ") libmagic=N32;;
5780  *-64|*"-64 ") libmagic=64-bit;;
5781  *) libmagic=never-match;;
5782  esac
5783  lt_cv_deplibs_check_method=pass_all
5784  ;;
5785
5786# This must be glibc/ELF.
5787linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791netbsd* | netbsdelf*-gnu)
5792  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5794  else
5795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5796  fi
5797  ;;
5798
5799newos6*)
5800  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5801  lt_cv_file_magic_cmd=/usr/bin/file
5802  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5803  ;;
5804
5805*nto* | *qnx*)
5806  lt_cv_deplibs_check_method=pass_all
5807  ;;
5808
5809openbsd* | bitrig*)
5810  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5812  else
5813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5814  fi
5815  ;;
5816
5817osf3* | osf4* | osf5*)
5818  lt_cv_deplibs_check_method=pass_all
5819  ;;
5820
5821rdos*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825solaris*)
5826  lt_cv_deplibs_check_method=pass_all
5827  ;;
5828
5829sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833sysv4 | sysv4.3*)
5834  case $host_vendor in
5835  motorola)
5836    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]'
5837    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5838    ;;
5839  ncr)
5840    lt_cv_deplibs_check_method=pass_all
5841    ;;
5842  sequent)
5843    lt_cv_file_magic_cmd='/bin/file'
5844    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5845    ;;
5846  sni)
5847    lt_cv_file_magic_cmd='/bin/file'
5848    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5849    lt_cv_file_magic_test_file=/lib/libc.so
5850    ;;
5851  siemens)
5852    lt_cv_deplibs_check_method=pass_all
5853    ;;
5854  pc)
5855    lt_cv_deplibs_check_method=pass_all
5856    ;;
5857  esac
5858  ;;
5859
5860tpf*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863os2*)
5864  lt_cv_deplibs_check_method=pass_all
5865  ;;
5866esac
5867
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5870$as_echo "$lt_cv_deplibs_check_method" >&6; }
5871
5872file_magic_glob=
5873want_nocaseglob=no
5874if test "$build" = "$host"; then
5875  case $host_os in
5876  mingw* | pw32*)
5877    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5878      want_nocaseglob=yes
5879    else
5880      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5881    fi
5882    ;;
5883  esac
5884fi
5885
5886file_magic_cmd=$lt_cv_file_magic_cmd
5887deplibs_check_method=$lt_cv_deplibs_check_method
5888test -z "$deplibs_check_method" && deplibs_check_method=unknown
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911if test -n "$ac_tool_prefix"; then
5912  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5913set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
5916if ${ac_cv_prog_DLLTOOL+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  if test -n "$DLLTOOL"; then
5920  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927    for ac_exec_ext in '' $ac_executable_extensions; do
5928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934  done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939DLLTOOL=$ac_cv_prog_DLLTOOL
5940if test -n "$DLLTOOL"; then
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5942$as_echo "$DLLTOOL" >&6; }
5943else
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947
5948
5949fi
5950if test -z "$ac_cv_prog_DLLTOOL"; then
5951  ac_ct_DLLTOOL=$DLLTOOL
5952  # Extract the first word of "dlltool", so it can be a program name with args.
5953set dummy dlltool; ac_word=$2
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955$as_echo_n "checking for $ac_word... " >&6; }
5956if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  if test -n "$ac_ct_DLLTOOL"; then
5960  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967    for ac_exec_ext in '' $ac_executable_extensions; do
5968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974  done
5975IFS=$as_save_IFS
5976
5977fi
5978fi
5979ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5980if test -n "$ac_ct_DLLTOOL"; then
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5982$as_echo "$ac_ct_DLLTOOL" >&6; }
5983else
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985$as_echo "no" >&6; }
5986fi
5987
5988  if test "x$ac_ct_DLLTOOL" = x; then
5989    DLLTOOL="false"
5990  else
5991    case $cross_compiling:$ac_tool_warned in
5992yes:)
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995ac_tool_warned=yes ;;
5996esac
5997    DLLTOOL=$ac_ct_DLLTOOL
5998  fi
5999else
6000  DLLTOOL="$ac_cv_prog_DLLTOOL"
6001fi
6002
6003test -z "$DLLTOOL" && DLLTOOL=dlltool
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6015$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6016if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  lt_cv_sharedlib_from_linklib_cmd='unknown'
6020
6021case $host_os in
6022cygwin* | mingw* | pw32* | cegcc*)
6023  # two different shell functions defined in ltmain.sh;
6024  # decide which one to use based on capabilities of $DLLTOOL
6025  case `$DLLTOOL --help 2>&1` in
6026  *--identify-strict*)
6027    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6028    ;;
6029  *)
6030    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6031    ;;
6032  esac
6033  ;;
6034*)
6035  # fallback: assume linklib IS sharedlib
6036  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6037  ;;
6038esac
6039
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6042$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6043sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6044test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6045
6046
6047
6048
6049
6050
6051
6052if test -n "$ac_tool_prefix"; then
6053  for ac_prog in ar
6054  do
6055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_prog_AR+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  if test -n "$AR"; then
6063  ac_cv_prog_AR="$AR" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068  IFS=$as_save_IFS
6069  test -z "$as_dir" && as_dir=.
6070    for ac_exec_ext in '' $ac_executable_extensions; do
6071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074    break 2
6075  fi
6076done
6077  done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082AR=$ac_cv_prog_AR
6083if test -n "$AR"; then
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6085$as_echo "$AR" >&6; }
6086else
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091
6092    test -n "$AR" && break
6093  done
6094fi
6095if test -z "$AR"; then
6096  ac_ct_AR=$AR
6097  for ac_prog in ar
6098do
6099  # Extract the first word of "$ac_prog", so it can be a program name with args.
6100set dummy $ac_prog; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_prog_ac_ct_AR+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  if test -n "$ac_ct_AR"; then
6107  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112  IFS=$as_save_IFS
6113  test -z "$as_dir" && as_dir=.
6114    for ac_exec_ext in '' $ac_executable_extensions; do
6115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116    ac_cv_prog_ac_ct_AR="$ac_prog"
6117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118    break 2
6119  fi
6120done
6121  done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126ac_ct_AR=$ac_cv_prog_ac_ct_AR
6127if test -n "$ac_ct_AR"; then
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6129$as_echo "$ac_ct_AR" >&6; }
6130else
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135
6136  test -n "$ac_ct_AR" && break
6137done
6138
6139  if test "x$ac_ct_AR" = x; then
6140    AR="false"
6141  else
6142    case $cross_compiling:$ac_tool_warned in
6143yes:)
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146ac_tool_warned=yes ;;
6147esac
6148    AR=$ac_ct_AR
6149  fi
6150fi
6151
6152: ${AR=ar}
6153: ${AR_FLAGS=cr}
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6166$as_echo_n "checking for archiver @FILE support... " >&6; }
6167if ${lt_cv_ar_at_file+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  lt_cv_ar_at_file=no
6171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182if ac_fn_c_try_compile "$LINENO"; then :
6183  echo conftest.$ac_objext > conftest.lst
6184      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6185      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6186  (eval $lt_ar_try) 2>&5
6187  ac_status=$?
6188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189  test $ac_status = 0; }
6190      if test 0 -eq "$ac_status"; then
6191	# Ensure the archiver fails upon bogus file names.
6192	rm -f conftest.$ac_objext libconftest.a
6193	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6194  (eval $lt_ar_try) 2>&5
6195  ac_status=$?
6196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197  test $ac_status = 0; }
6198	if test 0 -ne "$ac_status"; then
6199          lt_cv_ar_at_file=@
6200        fi
6201      fi
6202      rm -f conftest.* libconftest.a
6203
6204fi
6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6209$as_echo "$lt_cv_ar_at_file" >&6; }
6210
6211if test no = "$lt_cv_ar_at_file"; then
6212  archiver_list_spec=
6213else
6214  archiver_list_spec=$lt_cv_ar_at_file
6215fi
6216
6217
6218
6219
6220
6221
6222
6223if test -n "$ac_tool_prefix"; then
6224  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6225set dummy ${ac_tool_prefix}strip; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if ${ac_cv_prog_STRIP+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$STRIP"; then
6232  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237  IFS=$as_save_IFS
6238  test -z "$as_dir" && as_dir=.
6239    for ac_exec_ext in '' $ac_executable_extensions; do
6240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243    break 2
6244  fi
6245done
6246  done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251STRIP=$ac_cv_prog_STRIP
6252if test -n "$STRIP"; then
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6254$as_echo "$STRIP" >&6; }
6255else
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260
6261fi
6262if test -z "$ac_cv_prog_STRIP"; then
6263  ac_ct_STRIP=$STRIP
6264  # Extract the first word of "strip", so it can be a program name with args.
6265set dummy strip; ac_word=$2
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267$as_echo_n "checking for $ac_word... " >&6; }
6268if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  if test -n "$ac_ct_STRIP"; then
6272  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279    for ac_exec_ext in '' $ac_executable_extensions; do
6280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281    ac_cv_prog_ac_ct_STRIP="strip"
6282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286  done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6292if test -n "$ac_ct_STRIP"; then
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6294$as_echo "$ac_ct_STRIP" >&6; }
6295else
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297$as_echo "no" >&6; }
6298fi
6299
6300  if test "x$ac_ct_STRIP" = x; then
6301    STRIP=":"
6302  else
6303    case $cross_compiling:$ac_tool_warned in
6304yes:)
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307ac_tool_warned=yes ;;
6308esac
6309    STRIP=$ac_ct_STRIP
6310  fi
6311else
6312  STRIP="$ac_cv_prog_STRIP"
6313fi
6314
6315test -z "$STRIP" && STRIP=:
6316
6317
6318
6319
6320
6321
6322if test -n "$ac_tool_prefix"; then
6323  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6324set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_RANLIB+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  if test -n "$RANLIB"; then
6331  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338    for ac_exec_ext in '' $ac_executable_extensions; do
6339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345  done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350RANLIB=$ac_cv_prog_RANLIB
6351if test -n "$RANLIB"; then
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6353$as_echo "$RANLIB" >&6; }
6354else
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359
6360fi
6361if test -z "$ac_cv_prog_RANLIB"; then
6362  ac_ct_RANLIB=$RANLIB
6363  # Extract the first word of "ranlib", so it can be a program name with args.
6364set dummy ranlib; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  if test -n "$ac_ct_RANLIB"; then
6371  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378    for ac_exec_ext in '' $ac_executable_extensions; do
6379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380    ac_cv_prog_ac_ct_RANLIB="ranlib"
6381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6391if test -n "$ac_ct_RANLIB"; then
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6393$as_echo "$ac_ct_RANLIB" >&6; }
6394else
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399  if test "x$ac_ct_RANLIB" = x; then
6400    RANLIB=":"
6401  else
6402    case $cross_compiling:$ac_tool_warned in
6403yes:)
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406ac_tool_warned=yes ;;
6407esac
6408    RANLIB=$ac_ct_RANLIB
6409  fi
6410else
6411  RANLIB="$ac_cv_prog_RANLIB"
6412fi
6413
6414test -z "$RANLIB" && RANLIB=:
6415
6416
6417
6418
6419
6420
6421# Determine commands to create old-style static archives.
6422old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6423old_postinstall_cmds='chmod 644 $oldlib'
6424old_postuninstall_cmds=
6425
6426if test -n "$RANLIB"; then
6427  case $host_os in
6428  bitrig* | openbsd*)
6429    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6430    ;;
6431  *)
6432    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6433    ;;
6434  esac
6435  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6436fi
6437
6438case $host_os in
6439  darwin*)
6440    lock_old_archive_extraction=yes ;;
6441  *)
6442    lock_old_archive_extraction=no ;;
6443esac
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483# If no C compiler was specified, use CC.
6484LTCC=${LTCC-"$CC"}
6485
6486# If no C compiler flags were specified, use CFLAGS.
6487LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6488
6489# Allow CC to be a program name with arguments.
6490compiler=$CC
6491
6492
6493# Check for command to grab the raw symbol name followed by C symbol from nm.
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6495$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6496if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499
6500# These are sane defaults that work on at least a few old systems.
6501# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6502
6503# Character class describing NM global symbol codes.
6504symcode='[BCDEGRST]'
6505
6506# Regexp to match symbols that can be accessed directly from C.
6507sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6508
6509# Define system-specific variables.
6510case $host_os in
6511aix*)
6512  symcode='[BCDT]'
6513  ;;
6514cygwin* | mingw* | pw32* | cegcc*)
6515  symcode='[ABCDGISTW]'
6516  ;;
6517hpux*)
6518  if test ia64 = "$host_cpu"; then
6519    symcode='[ABCDEGRST]'
6520  fi
6521  ;;
6522irix* | nonstopux*)
6523  symcode='[BCDEGRST]'
6524  ;;
6525osf*)
6526  symcode='[BCDEGQRST]'
6527  ;;
6528solaris*)
6529  symcode='[BDRT]'
6530  ;;
6531sco3.2v5*)
6532  symcode='[DT]'
6533  ;;
6534sysv4.2uw2*)
6535  symcode='[DT]'
6536  ;;
6537sysv5* | sco5v6* | unixware* | OpenUNIX*)
6538  symcode='[ABDT]'
6539  ;;
6540sysv4)
6541  symcode='[DFNSTU]'
6542  ;;
6543esac
6544
6545# If we're using GNU nm, then use its standard symbol codes.
6546case `$NM -V 2>&1` in
6547*GNU* | *'with BFD'*)
6548  symcode='[ABCDGIRSTW]' ;;
6549esac
6550
6551if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6552  # Gets list of data symbols to import.
6553  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6554  # Adjust the below global symbol transforms to fixup imported variables.
6555  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6556  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6557  lt_c_name_lib_hook="\
6558  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6559  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6560else
6561  # Disable hooks by default.
6562  lt_cv_sys_global_symbol_to_import=
6563  lt_cdecl_hook=
6564  lt_c_name_hook=
6565  lt_c_name_lib_hook=
6566fi
6567
6568# Transform an extracted symbol line into a proper C declaration.
6569# Some systems (esp. on ia64) link data and code symbols differently,
6570# so use this general approach.
6571lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6572$lt_cdecl_hook\
6573" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6574" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6575
6576# Transform an extracted symbol line into symbol name and symbol address
6577lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6578$lt_c_name_hook\
6579" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6580" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6581
6582# Transform an extracted symbol line into symbol name with lib prefix and
6583# symbol address.
6584lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6585$lt_c_name_lib_hook\
6586" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6587" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6588" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6589
6590# Handle CRLF in mingw tool chain
6591opt_cr=
6592case $build_os in
6593mingw*)
6594  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6595  ;;
6596esac
6597
6598# Try without a prefix underscore, then with it.
6599for ac_symprfx in "" "_"; do
6600
6601  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6602  symxfrm="\\1 $ac_symprfx\\2 \\2"
6603
6604  # Write the raw and C identifiers.
6605  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6606    # Fake it for dumpbin and say T for any non-static function,
6607    # D for any global variable and I for any imported variable.
6608    # Also find C++ and __fastcall symbols from MSVC++,
6609    # which start with @ or ?.
6610    lt_cv_sys_global_symbol_pipe="$AWK '"\
6611"     {last_section=section; section=\$ 3};"\
6612"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6613"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6614"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6615"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6616"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6617"     \$ 0!~/External *\|/{next};"\
6618"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6619"     {if(hide[section]) next};"\
6620"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6621"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6622"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6623"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6624"     ' prfx=^$ac_symprfx"
6625  else
6626    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6627  fi
6628  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6629
6630  # Check to see that the pipe works correctly.
6631  pipe_works=no
6632
6633  rm -f conftest*
6634  cat > conftest.$ac_ext <<_LT_EOF
6635#ifdef __cplusplus
6636extern "C" {
6637#endif
6638char nm_test_var;
6639void nm_test_func(void);
6640void nm_test_func(void){}
6641#ifdef __cplusplus
6642}
6643#endif
6644int main(){nm_test_var='a';nm_test_func();return(0);}
6645_LT_EOF
6646
6647  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6648  (eval $ac_compile) 2>&5
6649  ac_status=$?
6650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651  test $ac_status = 0; }; then
6652    # Now try to grab the symbols.
6653    nlist=conftest.nm
6654    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6655    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6656      # Try sorting and uniquifying the output.
6657      if sort "$nlist" | uniq > "$nlist"T; then
6658	mv -f "$nlist"T "$nlist"
6659      else
6660	rm -f "$nlist"T
6661      fi
6662
6663      # Make sure that we snagged all the symbols we need.
6664      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6665	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6666	  cat <<_LT_EOF > conftest.$ac_ext
6667/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6668#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6669/* DATA imports from DLLs on WIN32 can't be const, because runtime
6670   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6671# define LT_DLSYM_CONST
6672#elif defined __osf__
6673/* This system does not cope well with relocations in const data.  */
6674# define LT_DLSYM_CONST
6675#else
6676# define LT_DLSYM_CONST const
6677#endif
6678
6679#ifdef __cplusplus
6680extern "C" {
6681#endif
6682
6683_LT_EOF
6684	  # Now generate the symbol file.
6685	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6686
6687	  cat <<_LT_EOF >> conftest.$ac_ext
6688
6689/* The mapping between symbol names and symbols.  */
6690LT_DLSYM_CONST struct {
6691  const char *name;
6692  void       *address;
6693}
6694lt__PROGRAM__LTX_preloaded_symbols[] =
6695{
6696  { "@PROGRAM@", (void *) 0 },
6697_LT_EOF
6698	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6699	  cat <<\_LT_EOF >> conftest.$ac_ext
6700  {0, (void *) 0}
6701};
6702
6703/* This works around a problem in FreeBSD linker */
6704#ifdef FREEBSD_WORKAROUND
6705static const void *lt_preloaded_setup() {
6706  return lt__PROGRAM__LTX_preloaded_symbols;
6707}
6708#endif
6709
6710#ifdef __cplusplus
6711}
6712#endif
6713_LT_EOF
6714	  # Now try linking the two files.
6715	  mv conftest.$ac_objext conftstm.$ac_objext
6716	  lt_globsym_save_LIBS=$LIBS
6717	  lt_globsym_save_CFLAGS=$CFLAGS
6718	  LIBS=conftstm.$ac_objext
6719	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6720	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6721  (eval $ac_link) 2>&5
6722  ac_status=$?
6723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6725	    pipe_works=yes
6726	  fi
6727	  LIBS=$lt_globsym_save_LIBS
6728	  CFLAGS=$lt_globsym_save_CFLAGS
6729	else
6730	  echo "cannot find nm_test_func in $nlist" >&5
6731	fi
6732      else
6733	echo "cannot find nm_test_var in $nlist" >&5
6734      fi
6735    else
6736      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6737    fi
6738  else
6739    echo "$progname: failed program was:" >&5
6740    cat conftest.$ac_ext >&5
6741  fi
6742  rm -rf conftest* conftst*
6743
6744  # Do not use the global_symbol_pipe unless it works.
6745  if test yes = "$pipe_works"; then
6746    break
6747  else
6748    lt_cv_sys_global_symbol_pipe=
6749  fi
6750done
6751
6752fi
6753
6754if test -z "$lt_cv_sys_global_symbol_pipe"; then
6755  lt_cv_sys_global_symbol_to_cdecl=
6756fi
6757if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6759$as_echo "failed" >&6; }
6760else
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6762$as_echo "ok" >&6; }
6763fi
6764
6765# Response file support.
6766if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6767  nm_file_list_spec='@'
6768elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6769  nm_file_list_spec='@'
6770fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6809$as_echo_n "checking for sysroot... " >&6; }
6810
6811# Check whether --with-sysroot was given.
6812if test "${with_sysroot+set}" = set; then :
6813  withval=$with_sysroot;
6814else
6815  with_sysroot=no
6816fi
6817
6818
6819lt_sysroot=
6820case $with_sysroot in #(
6821 yes)
6822   if test yes = "$GCC"; then
6823     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6824   fi
6825   ;; #(
6826 /*)
6827   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6828   ;; #(
6829 no|'')
6830   ;; #(
6831 *)
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6833$as_echo "$with_sysroot" >&6; }
6834   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6835   ;;
6836esac
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6839$as_echo "${lt_sysroot:-no}" >&6; }
6840
6841
6842
6843
6844
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6846$as_echo_n "checking for a working dd... " >&6; }
6847if ${ac_cv_path_lt_DD+:} false; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  printf 0123456789abcdef0123456789abcdef >conftest.i
6851cat conftest.i conftest.i >conftest2.i
6852: ${lt_DD:=$DD}
6853if test -z "$lt_DD"; then
6854  ac_path_lt_DD_found=false
6855  # Loop through the user's path and test for each of PROGNAME-LIST
6856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859  IFS=$as_save_IFS
6860  test -z "$as_dir" && as_dir=.
6861    for ac_prog in dd; do
6862    for ac_exec_ext in '' $ac_executable_extensions; do
6863      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6864      as_fn_executable_p "$ac_path_lt_DD" || continue
6865if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6866  cmp -s conftest.i conftest.out \
6867  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6868fi
6869      $ac_path_lt_DD_found && break 3
6870    done
6871  done
6872  done
6873IFS=$as_save_IFS
6874  if test -z "$ac_cv_path_lt_DD"; then
6875    :
6876  fi
6877else
6878  ac_cv_path_lt_DD=$lt_DD
6879fi
6880
6881rm -f conftest.i conftest2.i conftest.out
6882fi
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6884$as_echo "$ac_cv_path_lt_DD" >&6; }
6885
6886
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6888$as_echo_n "checking how to truncate binary pipes... " >&6; }
6889if ${lt_cv_truncate_bin+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  printf 0123456789abcdef0123456789abcdef >conftest.i
6893cat conftest.i conftest.i >conftest2.i
6894lt_cv_truncate_bin=
6895if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6896  cmp -s conftest.i conftest.out \
6897  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6898fi
6899rm -f conftest.i conftest2.i conftest.out
6900test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6903$as_echo "$lt_cv_truncate_bin" >&6; }
6904
6905
6906
6907
6908
6909
6910
6911# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6912func_cc_basename ()
6913{
6914    for cc_temp in $*""; do
6915      case $cc_temp in
6916        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6917        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6918        \-*) ;;
6919        *) break;;
6920      esac
6921    done
6922    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6923}
6924
6925# Check whether --enable-libtool-lock was given.
6926if test "${enable_libtool_lock+set}" = set; then :
6927  enableval=$enable_libtool_lock;
6928fi
6929
6930test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6931
6932# Some flags need to be propagated to the compiler or linker for good
6933# libtool support.
6934case $host in
6935ia64-*-hpux*)
6936  # Find out what ABI is being produced by ac_compile, and set mode
6937  # options accordingly.
6938  echo 'int i;' > conftest.$ac_ext
6939  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940  (eval $ac_compile) 2>&5
6941  ac_status=$?
6942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943  test $ac_status = 0; }; then
6944    case `/usr/bin/file conftest.$ac_objext` in
6945      *ELF-32*)
6946	HPUX_IA64_MODE=32
6947	;;
6948      *ELF-64*)
6949	HPUX_IA64_MODE=64
6950	;;
6951    esac
6952  fi
6953  rm -rf conftest*
6954  ;;
6955*-*-irix6*)
6956  # Find out what ABI is being produced by ac_compile, and set linker
6957  # options accordingly.
6958  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6959  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6960  (eval $ac_compile) 2>&5
6961  ac_status=$?
6962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963  test $ac_status = 0; }; then
6964    if test yes = "$lt_cv_prog_gnu_ld"; then
6965      case `/usr/bin/file conftest.$ac_objext` in
6966	*32-bit*)
6967	  LD="${LD-ld} -melf32bsmip"
6968	  ;;
6969	*N32*)
6970	  LD="${LD-ld} -melf32bmipn32"
6971	  ;;
6972	*64-bit*)
6973	  LD="${LD-ld} -melf64bmip"
6974	;;
6975      esac
6976    else
6977      case `/usr/bin/file conftest.$ac_objext` in
6978	*32-bit*)
6979	  LD="${LD-ld} -32"
6980	  ;;
6981	*N32*)
6982	  LD="${LD-ld} -n32"
6983	  ;;
6984	*64-bit*)
6985	  LD="${LD-ld} -64"
6986	  ;;
6987      esac
6988    fi
6989  fi
6990  rm -rf conftest*
6991  ;;
6992
6993mips64*-*linux*)
6994  # Find out what ABI is being produced by ac_compile, and set linker
6995  # options accordingly.
6996  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6997  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998  (eval $ac_compile) 2>&5
6999  ac_status=$?
7000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001  test $ac_status = 0; }; then
7002    emul=elf
7003    case `/usr/bin/file conftest.$ac_objext` in
7004      *32-bit*)
7005	emul="${emul}32"
7006	;;
7007      *64-bit*)
7008	emul="${emul}64"
7009	;;
7010    esac
7011    case `/usr/bin/file conftest.$ac_objext` in
7012      *MSB*)
7013	emul="${emul}btsmip"
7014	;;
7015      *LSB*)
7016	emul="${emul}ltsmip"
7017	;;
7018    esac
7019    case `/usr/bin/file conftest.$ac_objext` in
7020      *N32*)
7021	emul="${emul}n32"
7022	;;
7023    esac
7024    LD="${LD-ld} -m $emul"
7025  fi
7026  rm -rf conftest*
7027  ;;
7028
7029x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7030s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7031  # Find out what ABI is being produced by ac_compile, and set linker
7032  # options accordingly.  Note that the listed cases only cover the
7033  # situations where additional linker options are needed (such as when
7034  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7035  # vice versa); the common cases where no linker options are needed do
7036  # not appear in the list.
7037  echo 'int i;' > conftest.$ac_ext
7038  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039  (eval $ac_compile) 2>&5
7040  ac_status=$?
7041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042  test $ac_status = 0; }; then
7043    case `/usr/bin/file conftest.o` in
7044      *32-bit*)
7045	case $host in
7046	  x86_64-*kfreebsd*-gnu)
7047	    LD="${LD-ld} -m elf_i386_fbsd"
7048	    ;;
7049	  x86_64-*linux*)
7050	    case `/usr/bin/file conftest.o` in
7051	      *x86-64*)
7052		LD="${LD-ld} -m elf32_x86_64"
7053		;;
7054	      *)
7055		LD="${LD-ld} -m elf_i386"
7056		;;
7057	    esac
7058	    ;;
7059	  powerpc64le-*linux*)
7060	    LD="${LD-ld} -m elf32lppclinux"
7061	    ;;
7062	  powerpc64-*linux*)
7063	    LD="${LD-ld} -m elf32ppclinux"
7064	    ;;
7065	  s390x-*linux*)
7066	    LD="${LD-ld} -m elf_s390"
7067	    ;;
7068	  sparc64-*linux*)
7069	    LD="${LD-ld} -m elf32_sparc"
7070	    ;;
7071	esac
7072	;;
7073      *64-bit*)
7074	case $host in
7075	  x86_64-*kfreebsd*-gnu)
7076	    LD="${LD-ld} -m elf_x86_64_fbsd"
7077	    ;;
7078	  x86_64-*linux*)
7079	    LD="${LD-ld} -m elf_x86_64"
7080	    ;;
7081	  powerpcle-*linux*)
7082	    LD="${LD-ld} -m elf64lppc"
7083	    ;;
7084	  powerpc-*linux*)
7085	    LD="${LD-ld} -m elf64ppc"
7086	    ;;
7087	  s390*-*linux*|s390*-*tpf*)
7088	    LD="${LD-ld} -m elf64_s390"
7089	    ;;
7090	  sparc*-*linux*)
7091	    LD="${LD-ld} -m elf64_sparc"
7092	    ;;
7093	esac
7094	;;
7095    esac
7096  fi
7097  rm -rf conftest*
7098  ;;
7099
7100*-*-sco3.2v5*)
7101  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7102  SAVE_CFLAGS=$CFLAGS
7103  CFLAGS="$CFLAGS -belf"
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7105$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7106if ${lt_cv_cc_needs_belf+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  ac_ext=c
7110ac_cpp='$CPP $CPPFLAGS'
7111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114
7115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117
7118int
7119main ()
7120{
7121
7122  ;
7123  return 0;
7124}
7125_ACEOF
7126if ac_fn_c_try_link "$LINENO"; then :
7127  lt_cv_cc_needs_belf=yes
7128else
7129  lt_cv_cc_needs_belf=no
7130fi
7131rm -f core conftest.err conftest.$ac_objext \
7132    conftest$ac_exeext conftest.$ac_ext
7133     ac_ext=c
7134ac_cpp='$CPP $CPPFLAGS'
7135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138
7139fi
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7141$as_echo "$lt_cv_cc_needs_belf" >&6; }
7142  if test yes != "$lt_cv_cc_needs_belf"; then
7143    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7144    CFLAGS=$SAVE_CFLAGS
7145  fi
7146  ;;
7147*-*solaris*)
7148  # Find out what ABI is being produced by ac_compile, and set linker
7149  # options accordingly.
7150  echo 'int i;' > conftest.$ac_ext
7151  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7152  (eval $ac_compile) 2>&5
7153  ac_status=$?
7154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155  test $ac_status = 0; }; then
7156    case `/usr/bin/file conftest.o` in
7157    *64-bit*)
7158      case $lt_cv_prog_gnu_ld in
7159      yes*)
7160        case $host in
7161        i?86-*-solaris*|x86_64-*-solaris*)
7162          LD="${LD-ld} -m elf_x86_64"
7163          ;;
7164        sparc*-*-solaris*)
7165          LD="${LD-ld} -m elf64_sparc"
7166          ;;
7167        esac
7168        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7169        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7170          LD=${LD-ld}_sol2
7171        fi
7172        ;;
7173      *)
7174	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7175	  LD="${LD-ld} -64"
7176	fi
7177	;;
7178      esac
7179      ;;
7180    esac
7181  fi
7182  rm -rf conftest*
7183  ;;
7184esac
7185
7186need_locks=$enable_libtool_lock
7187
7188if test -n "$ac_tool_prefix"; then
7189  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}mt; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$MANIFEST_TOOL"; then
7197  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211  done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7217if test -n "$MANIFEST_TOOL"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7219$as_echo "$MANIFEST_TOOL" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7228  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7229  # Extract the first word of "mt", so it can be a program name with args.
7230set dummy mt; ac_word=$2
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  if test -n "$ac_ct_MANIFEST_TOOL"; then
7237  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244    for ac_exec_ext in '' $ac_executable_extensions; do
7245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251  done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7257if test -n "$ac_ct_MANIFEST_TOOL"; then
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7259$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7266    MANIFEST_TOOL=":"
7267  else
7268    case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7275  fi
7276else
7277  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7278fi
7279
7280test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7282$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7283if ${lt_cv_path_mainfest_tool+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  lt_cv_path_mainfest_tool=no
7287  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7288  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7289  cat conftest.err >&5
7290  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7291    lt_cv_path_mainfest_tool=yes
7292  fi
7293  rm -f conftest*
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7296$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7297if test yes != "$lt_cv_path_mainfest_tool"; then
7298  MANIFEST_TOOL=:
7299fi
7300
7301
7302
7303
7304
7305
7306  case $host_os in
7307    rhapsody* | darwin*)
7308    if test -n "$ac_tool_prefix"; then
7309  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7310set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if ${ac_cv_prog_DSYMUTIL+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  if test -n "$DSYMUTIL"; then
7317  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324    for ac_exec_ext in '' $ac_executable_extensions; do
7325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331  done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336DSYMUTIL=$ac_cv_prog_DSYMUTIL
7337if test -n "$DSYMUTIL"; then
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7339$as_echo "$DSYMUTIL" >&6; }
7340else
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345
7346fi
7347if test -z "$ac_cv_prog_DSYMUTIL"; then
7348  ac_ct_DSYMUTIL=$DSYMUTIL
7349  # Extract the first word of "dsymutil", so it can be a program name with args.
7350set dummy dsymutil; ac_word=$2
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356  if test -n "$ac_ct_DSYMUTIL"; then
7357  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
7364    for ac_exec_ext in '' $ac_executable_extensions; do
7365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368    break 2
7369  fi
7370done
7371  done
7372IFS=$as_save_IFS
7373
7374fi
7375fi
7376ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7377if test -n "$ac_ct_DSYMUTIL"; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7379$as_echo "$ac_ct_DSYMUTIL" >&6; }
7380else
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385  if test "x$ac_ct_DSYMUTIL" = x; then
7386    DSYMUTIL=":"
7387  else
7388    case $cross_compiling:$ac_tool_warned in
7389yes:)
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392ac_tool_warned=yes ;;
7393esac
7394    DSYMUTIL=$ac_ct_DSYMUTIL
7395  fi
7396else
7397  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7398fi
7399
7400    if test -n "$ac_tool_prefix"; then
7401  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7402set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404$as_echo_n "checking for $ac_word... " >&6; }
7405if ${ac_cv_prog_NMEDIT+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  if test -n "$NMEDIT"; then
7409  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414  IFS=$as_save_IFS
7415  test -z "$as_dir" && as_dir=.
7416    for ac_exec_ext in '' $ac_executable_extensions; do
7417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420    break 2
7421  fi
7422done
7423  done
7424IFS=$as_save_IFS
7425
7426fi
7427fi
7428NMEDIT=$ac_cv_prog_NMEDIT
7429if test -n "$NMEDIT"; then
7430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7431$as_echo "$NMEDIT" >&6; }
7432else
7433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434$as_echo "no" >&6; }
7435fi
7436
7437
7438fi
7439if test -z "$ac_cv_prog_NMEDIT"; then
7440  ac_ct_NMEDIT=$NMEDIT
7441  # Extract the first word of "nmedit", so it can be a program name with args.
7442set dummy nmedit; ac_word=$2
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
7445if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  if test -n "$ac_ct_NMEDIT"; then
7449  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454  IFS=$as_save_IFS
7455  test -z "$as_dir" && as_dir=.
7456    for ac_exec_ext in '' $ac_executable_extensions; do
7457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460    break 2
7461  fi
7462done
7463  done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
7468ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7469if test -n "$ac_ct_NMEDIT"; then
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7471$as_echo "$ac_ct_NMEDIT" >&6; }
7472else
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
7477  if test "x$ac_ct_NMEDIT" = x; then
7478    NMEDIT=":"
7479  else
7480    case $cross_compiling:$ac_tool_warned in
7481yes:)
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484ac_tool_warned=yes ;;
7485esac
7486    NMEDIT=$ac_ct_NMEDIT
7487  fi
7488else
7489  NMEDIT="$ac_cv_prog_NMEDIT"
7490fi
7491
7492    if test -n "$ac_tool_prefix"; then
7493  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7494set dummy ${ac_tool_prefix}lipo; ac_word=$2
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
7497if ${ac_cv_prog_LIPO+:} false; then :
7498  $as_echo_n "(cached) " >&6
7499else
7500  if test -n "$LIPO"; then
7501  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508    for ac_exec_ext in '' $ac_executable_extensions; do
7509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515  done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
7520LIPO=$ac_cv_prog_LIPO
7521if test -n "$LIPO"; then
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7523$as_echo "$LIPO" >&6; }
7524else
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529
7530fi
7531if test -z "$ac_cv_prog_LIPO"; then
7532  ac_ct_LIPO=$LIPO
7533  # Extract the first word of "lipo", so it can be a program name with args.
7534set dummy lipo; ac_word=$2
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
7537if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540  if test -n "$ac_ct_LIPO"; then
7541  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546  IFS=$as_save_IFS
7547  test -z "$as_dir" && as_dir=.
7548    for ac_exec_ext in '' $ac_executable_extensions; do
7549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550    ac_cv_prog_ac_ct_LIPO="lipo"
7551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552    break 2
7553  fi
7554done
7555  done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
7560ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7561if test -n "$ac_ct_LIPO"; then
7562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7563$as_echo "$ac_ct_LIPO" >&6; }
7564else
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
7569  if test "x$ac_ct_LIPO" = x; then
7570    LIPO=":"
7571  else
7572    case $cross_compiling:$ac_tool_warned in
7573yes:)
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576ac_tool_warned=yes ;;
7577esac
7578    LIPO=$ac_ct_LIPO
7579  fi
7580else
7581  LIPO="$ac_cv_prog_LIPO"
7582fi
7583
7584    if test -n "$ac_tool_prefix"; then
7585  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7586set dummy ${ac_tool_prefix}otool; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if ${ac_cv_prog_OTOOL+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  if test -n "$OTOOL"; then
7593  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598  IFS=$as_save_IFS
7599  test -z "$as_dir" && as_dir=.
7600    for ac_exec_ext in '' $ac_executable_extensions; do
7601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604    break 2
7605  fi
7606done
7607  done
7608IFS=$as_save_IFS
7609
7610fi
7611fi
7612OTOOL=$ac_cv_prog_OTOOL
7613if test -n "$OTOOL"; then
7614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7615$as_echo "$OTOOL" >&6; }
7616else
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621
7622fi
7623if test -z "$ac_cv_prog_OTOOL"; then
7624  ac_ct_OTOOL=$OTOOL
7625  # Extract the first word of "otool", so it can be a program name with args.
7626set dummy otool; ac_word=$2
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  if test -n "$ac_ct_OTOOL"; then
7633  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638  IFS=$as_save_IFS
7639  test -z "$as_dir" && as_dir=.
7640    for ac_exec_ext in '' $ac_executable_extensions; do
7641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642    ac_cv_prog_ac_ct_OTOOL="otool"
7643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644    break 2
7645  fi
7646done
7647  done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7653if test -n "$ac_ct_OTOOL"; then
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7655$as_echo "$ac_ct_OTOOL" >&6; }
7656else
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661  if test "x$ac_ct_OTOOL" = x; then
7662    OTOOL=":"
7663  else
7664    case $cross_compiling:$ac_tool_warned in
7665yes:)
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668ac_tool_warned=yes ;;
7669esac
7670    OTOOL=$ac_ct_OTOOL
7671  fi
7672else
7673  OTOOL="$ac_cv_prog_OTOOL"
7674fi
7675
7676    if test -n "$ac_tool_prefix"; then
7677  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7678set dummy ${ac_tool_prefix}otool64; ac_word=$2
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
7681if ${ac_cv_prog_OTOOL64+:} false; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  if test -n "$OTOOL64"; then
7685  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7686else
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690  IFS=$as_save_IFS
7691  test -z "$as_dir" && as_dir=.
7692    for ac_exec_ext in '' $ac_executable_extensions; do
7693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696    break 2
7697  fi
7698done
7699  done
7700IFS=$as_save_IFS
7701
7702fi
7703fi
7704OTOOL64=$ac_cv_prog_OTOOL64
7705if test -n "$OTOOL64"; then
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7707$as_echo "$OTOOL64" >&6; }
7708else
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
7711fi
7712
7713
7714fi
7715if test -z "$ac_cv_prog_OTOOL64"; then
7716  ac_ct_OTOOL64=$OTOOL64
7717  # Extract the first word of "otool64", so it can be a program name with args.
7718set dummy otool64; ac_word=$2
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  if test -n "$ac_ct_OTOOL64"; then
7725  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730  IFS=$as_save_IFS
7731  test -z "$as_dir" && as_dir=.
7732    for ac_exec_ext in '' $ac_executable_extensions; do
7733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734    ac_cv_prog_ac_ct_OTOOL64="otool64"
7735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736    break 2
7737  fi
7738done
7739  done
7740IFS=$as_save_IFS
7741
7742fi
7743fi
7744ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7745if test -n "$ac_ct_OTOOL64"; then
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7747$as_echo "$ac_ct_OTOOL64" >&6; }
7748else
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751fi
7752
7753  if test "x$ac_ct_OTOOL64" = x; then
7754    OTOOL64=":"
7755  else
7756    case $cross_compiling:$ac_tool_warned in
7757yes:)
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760ac_tool_warned=yes ;;
7761esac
7762    OTOOL64=$ac_ct_OTOOL64
7763  fi
7764else
7765  OTOOL64="$ac_cv_prog_OTOOL64"
7766fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7795$as_echo_n "checking for -single_module linker flag... " >&6; }
7796if ${lt_cv_apple_cc_single_mod+:} false; then :
7797  $as_echo_n "(cached) " >&6
7798else
7799  lt_cv_apple_cc_single_mod=no
7800      if test -z "$LT_MULTI_MODULE"; then
7801	# By default we will add the -single_module flag. You can override
7802	# by either setting the environment variable LT_MULTI_MODULE
7803	# non-empty at configure time, or by adding -multi_module to the
7804	# link flags.
7805	rm -rf libconftest.dylib*
7806	echo "int foo(void){return 1;}" > conftest.c
7807	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7808-dynamiclib -Wl,-single_module conftest.c" >&5
7809	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7811        _lt_result=$?
7812	# If there is a non-empty error log, and "single_module"
7813	# appears in it, assume the flag caused a linker warning
7814        if test -s conftest.err && $GREP single_module conftest.err; then
7815	  cat conftest.err >&5
7816	# Otherwise, if the output was created with a 0 exit code from
7817	# the compiler, it worked.
7818	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7819	  lt_cv_apple_cc_single_mod=yes
7820	else
7821	  cat conftest.err >&5
7822	fi
7823	rm -rf libconftest.dylib*
7824	rm -f conftest.*
7825      fi
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7828$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7829
7830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7831$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7832if ${lt_cv_ld_exported_symbols_list+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  lt_cv_ld_exported_symbols_list=no
7836      save_LDFLAGS=$LDFLAGS
7837      echo "_main" > conftest.sym
7838      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7839      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841
7842int
7843main ()
7844{
7845
7846  ;
7847  return 0;
7848}
7849_ACEOF
7850if ac_fn_c_try_link "$LINENO"; then :
7851  lt_cv_ld_exported_symbols_list=yes
7852else
7853  lt_cv_ld_exported_symbols_list=no
7854fi
7855rm -f core conftest.err conftest.$ac_objext \
7856    conftest$ac_exeext conftest.$ac_ext
7857	LDFLAGS=$save_LDFLAGS
7858
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7861$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7862
7863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7864$as_echo_n "checking for -force_load linker flag... " >&6; }
7865if ${lt_cv_ld_force_load+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  lt_cv_ld_force_load=no
7869      cat > conftest.c << _LT_EOF
7870int forced_loaded() { return 2;}
7871_LT_EOF
7872      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7873      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7874      echo "$AR cr libconftest.a conftest.o" >&5
7875      $AR cr libconftest.a conftest.o 2>&5
7876      echo "$RANLIB libconftest.a" >&5
7877      $RANLIB libconftest.a 2>&5
7878      cat > conftest.c << _LT_EOF
7879int main() { return 0;}
7880_LT_EOF
7881      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7882      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7883      _lt_result=$?
7884      if test -s conftest.err && $GREP force_load conftest.err; then
7885	cat conftest.err >&5
7886      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7887	lt_cv_ld_force_load=yes
7888      else
7889	cat conftest.err >&5
7890      fi
7891        rm -f conftest.err libconftest.a conftest conftest.c
7892        rm -rf conftest.dSYM
7893
7894fi
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7896$as_echo "$lt_cv_ld_force_load" >&6; }
7897    case $host_os in
7898    rhapsody* | darwin1.[012])
7899      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7900    darwin1.*)
7901      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7902    darwin*) # darwin 5.x on
7903      # if running on 10.5 or later, the deployment target defaults
7904      # to the OS version, if on x86, and 10.4, the deployment
7905      # target defaults to 10.4. Don't you love it?
7906      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7907	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7908	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7909	10.[012][,.]*)
7910	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7911	10.*)
7912	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7913      esac
7914    ;;
7915  esac
7916    if test yes = "$lt_cv_apple_cc_single_mod"; then
7917      _lt_dar_single_mod='$single_module'
7918    fi
7919    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7920      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7921    else
7922      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7923    fi
7924    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7925      _lt_dsymutil='~$DSYMUTIL $lib || :'
7926    else
7927      _lt_dsymutil=
7928    fi
7929    ;;
7930  esac
7931
7932# func_munge_path_list VARIABLE PATH
7933# -----------------------------------
7934# VARIABLE is name of variable containing _space_ separated list of
7935# directories to be munged by the contents of PATH, which is string
7936# having a format:
7937# "DIR[:DIR]:"
7938#       string "DIR[ DIR]" will be prepended to VARIABLE
7939# ":DIR[:DIR]"
7940#       string "DIR[ DIR]" will be appended to VARIABLE
7941# "DIRP[:DIRP]::[DIRA:]DIRA"
7942#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7943#       "DIRA[ DIRA]" will be appended to VARIABLE
7944# "DIR[:DIR]"
7945#       VARIABLE will be replaced by "DIR[ DIR]"
7946func_munge_path_list ()
7947{
7948    case x$2 in
7949    x)
7950        ;;
7951    *:)
7952        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7953        ;;
7954    x:*)
7955        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7956        ;;
7957    *::*)
7958        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7959        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7960        ;;
7961    *)
7962        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7963        ;;
7964    esac
7965}
7966
7967ac_ext=c
7968ac_cpp='$CPP $CPPFLAGS'
7969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7973$as_echo_n "checking how to run the C preprocessor... " >&6; }
7974# On Suns, sometimes $CPP names a directory.
7975if test -n "$CPP" && test -d "$CPP"; then
7976  CPP=
7977fi
7978if test -z "$CPP"; then
7979  if ${ac_cv_prog_CPP+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982      # Double quotes because CPP needs to be expanded
7983    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7984    do
7985      ac_preproc_ok=false
7986for ac_c_preproc_warn_flag in '' yes
7987do
7988  # Use a header file that comes with gcc, so configuring glibc
7989  # with a fresh cross-compiler works.
7990  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7991  # <limits.h> exists even on freestanding compilers.
7992  # On the NeXT, cc -E runs the code through the compiler's parser,
7993  # not just through cpp. "Syntax error" is here to catch this case.
7994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996#ifdef __STDC__
7997# include <limits.h>
7998#else
7999# include <assert.h>
8000#endif
8001		     Syntax error
8002_ACEOF
8003if ac_fn_c_try_cpp "$LINENO"; then :
8004
8005else
8006  # Broken: fails on valid input.
8007continue
8008fi
8009rm -f conftest.err conftest.i conftest.$ac_ext
8010
8011  # OK, works on sane cases.  Now check whether nonexistent headers
8012  # can be detected and how.
8013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015#include <ac_nonexistent.h>
8016_ACEOF
8017if ac_fn_c_try_cpp "$LINENO"; then :
8018  # Broken: success on invalid input.
8019continue
8020else
8021  # Passes both tests.
8022ac_preproc_ok=:
8023break
8024fi
8025rm -f conftest.err conftest.i conftest.$ac_ext
8026
8027done
8028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8029rm -f conftest.i conftest.err conftest.$ac_ext
8030if $ac_preproc_ok; then :
8031  break
8032fi
8033
8034    done
8035    ac_cv_prog_CPP=$CPP
8036
8037fi
8038  CPP=$ac_cv_prog_CPP
8039else
8040  ac_cv_prog_CPP=$CPP
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8043$as_echo "$CPP" >&6; }
8044ac_preproc_ok=false
8045for ac_c_preproc_warn_flag in '' yes
8046do
8047  # Use a header file that comes with gcc, so configuring glibc
8048  # with a fresh cross-compiler works.
8049  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8050  # <limits.h> exists even on freestanding compilers.
8051  # On the NeXT, cc -E runs the code through the compiler's parser,
8052  # not just through cpp. "Syntax error" is here to catch this case.
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055#ifdef __STDC__
8056# include <limits.h>
8057#else
8058# include <assert.h>
8059#endif
8060		     Syntax error
8061_ACEOF
8062if ac_fn_c_try_cpp "$LINENO"; then :
8063
8064else
8065  # Broken: fails on valid input.
8066continue
8067fi
8068rm -f conftest.err conftest.i conftest.$ac_ext
8069
8070  # OK, works on sane cases.  Now check whether nonexistent headers
8071  # can be detected and how.
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074#include <ac_nonexistent.h>
8075_ACEOF
8076if ac_fn_c_try_cpp "$LINENO"; then :
8077  # Broken: success on invalid input.
8078continue
8079else
8080  # Passes both tests.
8081ac_preproc_ok=:
8082break
8083fi
8084rm -f conftest.err conftest.i conftest.$ac_ext
8085
8086done
8087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8088rm -f conftest.i conftest.err conftest.$ac_ext
8089if $ac_preproc_ok; then :
8090
8091else
8092  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8094as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8095See \`config.log' for more details" "$LINENO" 5; }
8096fi
8097
8098ac_ext=c
8099ac_cpp='$CPP $CPPFLAGS'
8100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8106$as_echo_n "checking for ANSI C header files... " >&6; }
8107if ${ac_cv_header_stdc+:} false; then :
8108  $as_echo_n "(cached) " >&6
8109else
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112#include <stdlib.h>
8113#include <stdarg.h>
8114#include <string.h>
8115#include <float.h>
8116
8117int
8118main ()
8119{
8120
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125if ac_fn_c_try_compile "$LINENO"; then :
8126  ac_cv_header_stdc=yes
8127else
8128  ac_cv_header_stdc=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131
8132if test $ac_cv_header_stdc = yes; then
8133  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136#include <string.h>
8137
8138_ACEOF
8139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8140  $EGREP "memchr" >/dev/null 2>&1; then :
8141
8142else
8143  ac_cv_header_stdc=no
8144fi
8145rm -f conftest*
8146
8147fi
8148
8149if test $ac_cv_header_stdc = yes; then
8150  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153#include <stdlib.h>
8154
8155_ACEOF
8156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157  $EGREP "free" >/dev/null 2>&1; then :
8158
8159else
8160  ac_cv_header_stdc=no
8161fi
8162rm -f conftest*
8163
8164fi
8165
8166if test $ac_cv_header_stdc = yes; then
8167  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168  if test "$cross_compiling" = yes; then :
8169  :
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173#include <ctype.h>
8174#include <stdlib.h>
8175#if ((' ' & 0x0FF) == 0x020)
8176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8178#else
8179# define ISLOWER(c) \
8180		   (('a' <= (c) && (c) <= 'i') \
8181		     || ('j' <= (c) && (c) <= 'r') \
8182		     || ('s' <= (c) && (c) <= 'z'))
8183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8184#endif
8185
8186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8187int
8188main ()
8189{
8190  int i;
8191  for (i = 0; i < 256; i++)
8192    if (XOR (islower (i), ISLOWER (i))
8193	|| toupper (i) != TOUPPER (i))
8194      return 2;
8195  return 0;
8196}
8197_ACEOF
8198if ac_fn_c_try_run "$LINENO"; then :
8199
8200else
8201  ac_cv_header_stdc=no
8202fi
8203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8204  conftest.$ac_objext conftest.beam conftest.$ac_ext
8205fi
8206
8207fi
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8210$as_echo "$ac_cv_header_stdc" >&6; }
8211if test $ac_cv_header_stdc = yes; then
8212
8213$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8214
8215fi
8216
8217# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8218for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8219		  inttypes.h stdint.h unistd.h
8220do :
8221  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8222ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8223"
8224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8225  cat >>confdefs.h <<_ACEOF
8226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227_ACEOF
8228
8229fi
8230
8231done
8232
8233
8234for ac_header in dlfcn.h
8235do :
8236  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8237"
8238if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8239  cat >>confdefs.h <<_ACEOF
8240#define HAVE_DLFCN_H 1
8241_ACEOF
8242
8243fi
8244
8245done
8246
8247
8248
8249
8250
8251# Set options
8252enable_dlopen=yes
8253# Check whether --enable-static was given.
8254if test "${enable_static+set}" = set; then :
8255  enableval=$enable_static; p=${PACKAGE-default}
8256    case $enableval in
8257    yes) enable_static=yes ;;
8258    no) enable_static=no ;;
8259    *)
8260     enable_static=no
8261      # Look at the argument we got.  We use all the common list separators.
8262      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8263      for pkg in $enableval; do
8264	IFS=$lt_save_ifs
8265	if test "X$pkg" = "X$p"; then
8266	  enable_static=yes
8267	fi
8268      done
8269      IFS=$lt_save_ifs
8270      ;;
8271    esac
8272else
8273  enable_static=no
8274fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286  enable_win32_dll=no
8287
8288
8289            # Check whether --enable-shared was given.
8290if test "${enable_shared+set}" = set; then :
8291  enableval=$enable_shared; p=${PACKAGE-default}
8292    case $enableval in
8293    yes) enable_shared=yes ;;
8294    no) enable_shared=no ;;
8295    *)
8296      enable_shared=no
8297      # Look at the argument we got.  We use all the common list separators.
8298      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8299      for pkg in $enableval; do
8300	IFS=$lt_save_ifs
8301	if test "X$pkg" = "X$p"; then
8302	  enable_shared=yes
8303	fi
8304      done
8305      IFS=$lt_save_ifs
8306      ;;
8307    esac
8308else
8309  enable_shared=yes
8310fi
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322# Check whether --with-pic was given.
8323if test "${with_pic+set}" = set; then :
8324  withval=$with_pic; lt_p=${PACKAGE-default}
8325    case $withval in
8326    yes|no) pic_mode=$withval ;;
8327    *)
8328      pic_mode=default
8329      # Look at the argument we got.  We use all the common list separators.
8330      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8331      for lt_pkg in $withval; do
8332	IFS=$lt_save_ifs
8333	if test "X$lt_pkg" = "X$lt_p"; then
8334	  pic_mode=yes
8335	fi
8336      done
8337      IFS=$lt_save_ifs
8338      ;;
8339    esac
8340else
8341  pic_mode=default
8342fi
8343
8344
8345
8346
8347
8348
8349
8350
8351  # Check whether --enable-fast-install was given.
8352if test "${enable_fast_install+set}" = set; then :
8353  enableval=$enable_fast_install; p=${PACKAGE-default}
8354    case $enableval in
8355    yes) enable_fast_install=yes ;;
8356    no) enable_fast_install=no ;;
8357    *)
8358      enable_fast_install=no
8359      # Look at the argument we got.  We use all the common list separators.
8360      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8361      for pkg in $enableval; do
8362	IFS=$lt_save_ifs
8363	if test "X$pkg" = "X$p"; then
8364	  enable_fast_install=yes
8365	fi
8366      done
8367      IFS=$lt_save_ifs
8368      ;;
8369    esac
8370else
8371  enable_fast_install=yes
8372fi
8373
8374
8375
8376
8377
8378
8379
8380
8381  shared_archive_member_spec=
8382case $host,$enable_shared in
8383power*-*-aix[5-9]*,yes)
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8385$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8386
8387# Check whether --with-aix-soname was given.
8388if test "${with_aix_soname+set}" = set; then :
8389  withval=$with_aix_soname; case $withval in
8390    aix|svr4|both)
8391      ;;
8392    *)
8393      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8394      ;;
8395    esac
8396    lt_cv_with_aix_soname=$with_aix_soname
8397else
8398  if ${lt_cv_with_aix_soname+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  lt_cv_with_aix_soname=aix
8402fi
8403
8404    with_aix_soname=$lt_cv_with_aix_soname
8405fi
8406
8407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8408$as_echo "$with_aix_soname" >&6; }
8409  if test aix != "$with_aix_soname"; then
8410    # For the AIX way of multilib, we name the shared archive member
8411    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8412    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8413    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8414    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8415    if test 64 = "${OBJECT_MODE-32}"; then
8416      shared_archive_member_spec=shr_64
8417    else
8418      shared_archive_member_spec=shr
8419    fi
8420  fi
8421  ;;
8422*)
8423  with_aix_soname=aix
8424  ;;
8425esac
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436# This can be used to rebuild libtool when needed
8437LIBTOOL_DEPS=$ltmain
8438
8439# Always use our own libtool.
8440LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471test -z "$LN_S" && LN_S="ln -s"
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486if test -n "${ZSH_VERSION+set}"; then
8487   setopt NO_GLOB_SUBST
8488fi
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8491$as_echo_n "checking for objdir... " >&6; }
8492if ${lt_cv_objdir+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  rm -f .libs 2>/dev/null
8496mkdir .libs 2>/dev/null
8497if test -d .libs; then
8498  lt_cv_objdir=.libs
8499else
8500  # MS-DOS does not allow filenames that begin with a dot.
8501  lt_cv_objdir=_libs
8502fi
8503rmdir .libs 2>/dev/null
8504fi
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8506$as_echo "$lt_cv_objdir" >&6; }
8507objdir=$lt_cv_objdir
8508
8509
8510
8511
8512
8513cat >>confdefs.h <<_ACEOF
8514#define LT_OBJDIR "$lt_cv_objdir/"
8515_ACEOF
8516
8517
8518
8519
8520case $host_os in
8521aix3*)
8522  # AIX sometimes has problems with the GCC collect2 program.  For some
8523  # reason, if we set the COLLECT_NAMES environment variable, the problems
8524  # vanish in a puff of smoke.
8525  if test set != "${COLLECT_NAMES+set}"; then
8526    COLLECT_NAMES=
8527    export COLLECT_NAMES
8528  fi
8529  ;;
8530esac
8531
8532# Global variables:
8533ofile=libtool
8534can_build_shared=yes
8535
8536# All known linkers require a '.a' archive for static linking (except MSVC,
8537# which needs '.lib').
8538libext=a
8539
8540with_gnu_ld=$lt_cv_prog_gnu_ld
8541
8542old_CC=$CC
8543old_CFLAGS=$CFLAGS
8544
8545# Set sane defaults for various variables
8546test -z "$CC" && CC=cc
8547test -z "$LTCC" && LTCC=$CC
8548test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8549test -z "$LD" && LD=ld
8550test -z "$ac_objext" && ac_objext=o
8551
8552func_cc_basename $compiler
8553cc_basename=$func_cc_basename_result
8554
8555
8556# Only perform the check for file, if the check method requires it
8557test -z "$MAGIC_CMD" && MAGIC_CMD=file
8558case $deplibs_check_method in
8559file_magic*)
8560  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8562$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8563if ${lt_cv_path_MAGIC_CMD+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  case $MAGIC_CMD in
8567[\\/*] |  ?:[\\/]*)
8568  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8569  ;;
8570*)
8571  lt_save_MAGIC_CMD=$MAGIC_CMD
8572  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8573  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8574  for ac_dir in $ac_dummy; do
8575    IFS=$lt_save_ifs
8576    test -z "$ac_dir" && ac_dir=.
8577    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8578      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8579      if test -n "$file_magic_test_file"; then
8580	case $deplibs_check_method in
8581	"file_magic "*)
8582	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8583	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8584	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8585	    $EGREP "$file_magic_regex" > /dev/null; then
8586	    :
8587	  else
8588	    cat <<_LT_EOF 1>&2
8589
8590*** Warning: the command libtool uses to detect shared libraries,
8591*** $file_magic_cmd, produces output that libtool cannot recognize.
8592*** The result is that libtool may fail to recognize shared libraries
8593*** as such.  This will affect the creation of libtool libraries that
8594*** depend on shared libraries, but programs linked with such libtool
8595*** libraries will work regardless of this problem.  Nevertheless, you
8596*** may want to report the problem to your system manager and/or to
8597*** bug-libtool@gnu.org
8598
8599_LT_EOF
8600	  fi ;;
8601	esac
8602      fi
8603      break
8604    fi
8605  done
8606  IFS=$lt_save_ifs
8607  MAGIC_CMD=$lt_save_MAGIC_CMD
8608  ;;
8609esac
8610fi
8611
8612MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8613if test -n "$MAGIC_CMD"; then
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8615$as_echo "$MAGIC_CMD" >&6; }
8616else
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622
8623
8624
8625if test -z "$lt_cv_path_MAGIC_CMD"; then
8626  if test -n "$ac_tool_prefix"; then
8627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8628$as_echo_n "checking for file... " >&6; }
8629if ${lt_cv_path_MAGIC_CMD+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  case $MAGIC_CMD in
8633[\\/*] |  ?:[\\/]*)
8634  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8635  ;;
8636*)
8637  lt_save_MAGIC_CMD=$MAGIC_CMD
8638  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8639  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8640  for ac_dir in $ac_dummy; do
8641    IFS=$lt_save_ifs
8642    test -z "$ac_dir" && ac_dir=.
8643    if test -f "$ac_dir/file"; then
8644      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8645      if test -n "$file_magic_test_file"; then
8646	case $deplibs_check_method in
8647	"file_magic "*)
8648	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8649	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8650	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8651	    $EGREP "$file_magic_regex" > /dev/null; then
8652	    :
8653	  else
8654	    cat <<_LT_EOF 1>&2
8655
8656*** Warning: the command libtool uses to detect shared libraries,
8657*** $file_magic_cmd, produces output that libtool cannot recognize.
8658*** The result is that libtool may fail to recognize shared libraries
8659*** as such.  This will affect the creation of libtool libraries that
8660*** depend on shared libraries, but programs linked with such libtool
8661*** libraries will work regardless of this problem.  Nevertheless, you
8662*** may want to report the problem to your system manager and/or to
8663*** bug-libtool@gnu.org
8664
8665_LT_EOF
8666	  fi ;;
8667	esac
8668      fi
8669      break
8670    fi
8671  done
8672  IFS=$lt_save_ifs
8673  MAGIC_CMD=$lt_save_MAGIC_CMD
8674  ;;
8675esac
8676fi
8677
8678MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8679if test -n "$MAGIC_CMD"; then
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8681$as_echo "$MAGIC_CMD" >&6; }
8682else
8683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
8685fi
8686
8687
8688  else
8689    MAGIC_CMD=:
8690  fi
8691fi
8692
8693  fi
8694  ;;
8695esac
8696
8697# Use C for the default configuration in the libtool script
8698
8699lt_save_CC=$CC
8700ac_ext=c
8701ac_cpp='$CPP $CPPFLAGS'
8702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705
8706
8707# Source file extension for C test sources.
8708ac_ext=c
8709
8710# Object file extension for compiled C test sources.
8711objext=o
8712objext=$objext
8713
8714# Code to be used in simple compile tests
8715lt_simple_compile_test_code="int some_variable = 0;"
8716
8717# Code to be used in simple link tests
8718lt_simple_link_test_code='int main(){return(0);}'
8719
8720
8721
8722
8723
8724
8725
8726# If no C compiler was specified, use CC.
8727LTCC=${LTCC-"$CC"}
8728
8729# If no C compiler flags were specified, use CFLAGS.
8730LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8731
8732# Allow CC to be a program name with arguments.
8733compiler=$CC
8734
8735# Save the default compiler, since it gets overwritten when the other
8736# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8737compiler_DEFAULT=$CC
8738
8739# save warnings/boilerplate of simple test code
8740ac_outfile=conftest.$ac_objext
8741echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8743_lt_compiler_boilerplate=`cat conftest.err`
8744$RM conftest*
8745
8746ac_outfile=conftest.$ac_objext
8747echo "$lt_simple_link_test_code" >conftest.$ac_ext
8748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8749_lt_linker_boilerplate=`cat conftest.err`
8750$RM -r conftest*
8751
8752
8753## CAVEAT EMPTOR:
8754## There is no encapsulation within the following macros, do not change
8755## the running order or otherwise move them around unless you know exactly
8756## what you are doing...
8757if test -n "$compiler"; then
8758
8759lt_prog_compiler_no_builtin_flag=
8760
8761if test yes = "$GCC"; then
8762  case $cc_basename in
8763  nvcc*)
8764    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8765  *)
8766    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8767  esac
8768
8769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8770$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8771if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  lt_cv_prog_compiler_rtti_exceptions=no
8775   ac_outfile=conftest.$ac_objext
8776   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8778   # Insert the option either (1) after the last *FLAGS variable, or
8779   # (2) before a word containing "conftest.", or (3) at the end.
8780   # Note that $ac_compile itself does not contain backslashes and begins
8781   # with a dollar sign (not a hyphen), so the echo should work correctly.
8782   # The option is referenced via a variable to avoid confusing sed.
8783   lt_compile=`echo "$ac_compile" | $SED \
8784   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786   -e 's:$: $lt_compiler_flag:'`
8787   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788   (eval "$lt_compile" 2>conftest.err)
8789   ac_status=$?
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   if (exit $ac_status) && test -s "$ac_outfile"; then
8793     # The compiler can only warn and ignore the option if not recognized
8794     # So say no if there are warnings other than the usual output.
8795     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8796     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8797     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8798       lt_cv_prog_compiler_rtti_exceptions=yes
8799     fi
8800   fi
8801   $RM conftest*
8802
8803fi
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8805$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8806
8807if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8808    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8809else
8810    :
8811fi
8812
8813fi
8814
8815
8816
8817
8818
8819
8820  lt_prog_compiler_wl=
8821lt_prog_compiler_pic=
8822lt_prog_compiler_static=
8823
8824
8825  if test yes = "$GCC"; then
8826    lt_prog_compiler_wl='-Wl,'
8827    lt_prog_compiler_static='-static'
8828
8829    case $host_os in
8830      aix*)
8831      # All AIX code is PIC.
8832      if test ia64 = "$host_cpu"; then
8833	# AIX 5 now supports IA64 processor
8834	lt_prog_compiler_static='-Bstatic'
8835      fi
8836      lt_prog_compiler_pic='-fPIC'
8837      ;;
8838
8839    amigaos*)
8840      case $host_cpu in
8841      powerpc)
8842            # see comment about AmigaOS4 .so support
8843            lt_prog_compiler_pic='-fPIC'
8844        ;;
8845      m68k)
8846            # FIXME: we need at least 68020 code to build shared libraries, but
8847            # adding the '-m68020' flag to GCC prevents building anything better,
8848            # like '-m68040'.
8849            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8850        ;;
8851      esac
8852      ;;
8853
8854    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8855      # PIC is the default for these OSes.
8856      ;;
8857
8858    mingw* | cygwin* | pw32* | os2* | cegcc*)
8859      # This hack is so that the source file can tell whether it is being
8860      # built for inclusion in a dll (and should export symbols for example).
8861      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8862      # (--disable-auto-import) libraries
8863      lt_prog_compiler_pic='-DDLL_EXPORT'
8864      case $host_os in
8865      os2*)
8866	lt_prog_compiler_static='$wl-static'
8867	;;
8868      esac
8869      ;;
8870
8871    darwin* | rhapsody*)
8872      # PIC is the default on this platform
8873      # Common symbols not allowed in MH_DYLIB files
8874      lt_prog_compiler_pic='-fno-common'
8875      ;;
8876
8877    haiku*)
8878      # PIC is the default for Haiku.
8879      # The "-static" flag exists, but is broken.
8880      lt_prog_compiler_static=
8881      ;;
8882
8883    hpux*)
8884      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8885      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8886      # sets the default TLS model and affects inlining.
8887      case $host_cpu in
8888      hppa*64*)
8889	# +Z the default
8890	;;
8891      *)
8892	lt_prog_compiler_pic='-fPIC'
8893	;;
8894      esac
8895      ;;
8896
8897    interix[3-9]*)
8898      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8899      # Instead, we relocate shared libraries at runtime.
8900      ;;
8901
8902    msdosdjgpp*)
8903      # Just because we use GCC doesn't mean we suddenly get shared libraries
8904      # on systems that don't support them.
8905      lt_prog_compiler_can_build_shared=no
8906      enable_shared=no
8907      ;;
8908
8909    *nto* | *qnx*)
8910      # QNX uses GNU C++, but need to define -shared option too, otherwise
8911      # it will coredump.
8912      lt_prog_compiler_pic='-fPIC -shared'
8913      ;;
8914
8915    sysv4*MP*)
8916      if test -d /usr/nec; then
8917	lt_prog_compiler_pic=-Kconform_pic
8918      fi
8919      ;;
8920
8921    *)
8922      lt_prog_compiler_pic='-fPIC'
8923      ;;
8924    esac
8925
8926    case $cc_basename in
8927    nvcc*) # Cuda Compiler Driver 2.2
8928      lt_prog_compiler_wl='-Xlinker '
8929      if test -n "$lt_prog_compiler_pic"; then
8930        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8931      fi
8932      ;;
8933    esac
8934  else
8935    # PORTME Check for flag to pass linker flags through the system compiler.
8936    case $host_os in
8937    aix*)
8938      lt_prog_compiler_wl='-Wl,'
8939      if test ia64 = "$host_cpu"; then
8940	# AIX 5 now supports IA64 processor
8941	lt_prog_compiler_static='-Bstatic'
8942      else
8943	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8944      fi
8945      ;;
8946
8947    darwin* | rhapsody*)
8948      # PIC is the default on this platform
8949      # Common symbols not allowed in MH_DYLIB files
8950      lt_prog_compiler_pic='-fno-common'
8951      case $cc_basename in
8952      nagfor*)
8953        # NAG Fortran compiler
8954        lt_prog_compiler_wl='-Wl,-Wl,,'
8955        lt_prog_compiler_pic='-PIC'
8956        lt_prog_compiler_static='-Bstatic'
8957        ;;
8958      esac
8959      ;;
8960
8961    mingw* | cygwin* | pw32* | os2* | cegcc*)
8962      # This hack is so that the source file can tell whether it is being
8963      # built for inclusion in a dll (and should export symbols for example).
8964      lt_prog_compiler_pic='-DDLL_EXPORT'
8965      case $host_os in
8966      os2*)
8967	lt_prog_compiler_static='$wl-static'
8968	;;
8969      esac
8970      ;;
8971
8972    hpux9* | hpux10* | hpux11*)
8973      lt_prog_compiler_wl='-Wl,'
8974      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8975      # not for PA HP-UX.
8976      case $host_cpu in
8977      hppa*64*|ia64*)
8978	# +Z the default
8979	;;
8980      *)
8981	lt_prog_compiler_pic='+Z'
8982	;;
8983      esac
8984      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8985      lt_prog_compiler_static='$wl-a ${wl}archive'
8986      ;;
8987
8988    irix5* | irix6* | nonstopux*)
8989      lt_prog_compiler_wl='-Wl,'
8990      # PIC (with -KPIC) is the default.
8991      lt_prog_compiler_static='-non_shared'
8992      ;;
8993
8994    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8995      case $cc_basename in
8996      # old Intel for x86_64, which still supported -KPIC.
8997      ecc*)
8998	lt_prog_compiler_wl='-Wl,'
8999	lt_prog_compiler_pic='-KPIC'
9000	lt_prog_compiler_static='-static'
9001        ;;
9002      # flang / f18. f95 an alias for gfortran or flang on Debian
9003      flang* | f18* | f95*)
9004	lt_prog_compiler_wl='-Wl,'
9005	lt_prog_compiler_pic='-fPIC'
9006	lt_prog_compiler_static='-static'
9007        ;;
9008      # icc used to be incompatible with GCC.
9009      # ICC 10 doesn't accept -KPIC any more.
9010      icc* | ifort*)
9011	lt_prog_compiler_wl='-Wl,'
9012	lt_prog_compiler_pic='-fPIC'
9013	lt_prog_compiler_static='-static'
9014        ;;
9015      # Lahey Fortran 8.1.
9016      lf95*)
9017	lt_prog_compiler_wl='-Wl,'
9018	lt_prog_compiler_pic='--shared'
9019	lt_prog_compiler_static='--static'
9020	;;
9021      nagfor*)
9022	# NAG Fortran compiler
9023	lt_prog_compiler_wl='-Wl,-Wl,,'
9024	lt_prog_compiler_pic='-PIC'
9025	lt_prog_compiler_static='-Bstatic'
9026	;;
9027      tcc*)
9028	# Fabrice Bellard et al's Tiny C Compiler
9029	lt_prog_compiler_wl='-Wl,'
9030	lt_prog_compiler_pic='-fPIC'
9031	lt_prog_compiler_static='-static'
9032	;;
9033      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9034        # Portland Group compilers (*not* the Pentium gcc compiler,
9035	# which looks to be a dead project)
9036	lt_prog_compiler_wl='-Wl,'
9037	lt_prog_compiler_pic='-fpic'
9038	lt_prog_compiler_static='-Bstatic'
9039        ;;
9040      ccc*)
9041        lt_prog_compiler_wl='-Wl,'
9042        # All Alpha code is PIC.
9043        lt_prog_compiler_static='-non_shared'
9044        ;;
9045      xl* | bgxl* | bgf* | mpixl*)
9046	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9047	lt_prog_compiler_wl='-Wl,'
9048	lt_prog_compiler_pic='-qpic'
9049	lt_prog_compiler_static='-qstaticlink'
9050	;;
9051      *)
9052	case `$CC -V 2>&1 | sed 5q` in
9053	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9054	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9055	  lt_prog_compiler_pic='-KPIC'
9056	  lt_prog_compiler_static='-Bstatic'
9057	  lt_prog_compiler_wl=''
9058	  ;;
9059	*Sun\ F* | *Sun*Fortran*)
9060	  lt_prog_compiler_pic='-KPIC'
9061	  lt_prog_compiler_static='-Bstatic'
9062	  lt_prog_compiler_wl='-Qoption ld '
9063	  ;;
9064	*Sun\ C*)
9065	  # Sun C 5.9
9066	  lt_prog_compiler_pic='-KPIC'
9067	  lt_prog_compiler_static='-Bstatic'
9068	  lt_prog_compiler_wl='-Wl,'
9069	  ;;
9070        *Intel*\ [CF]*Compiler*)
9071	  lt_prog_compiler_wl='-Wl,'
9072	  lt_prog_compiler_pic='-fPIC'
9073	  lt_prog_compiler_static='-static'
9074	  ;;
9075	*Portland\ Group*)
9076	  lt_prog_compiler_wl='-Wl,'
9077	  lt_prog_compiler_pic='-fpic'
9078	  lt_prog_compiler_static='-Bstatic'
9079	  ;;
9080	esac
9081	;;
9082      esac
9083      ;;
9084
9085    newsos6)
9086      lt_prog_compiler_pic='-KPIC'
9087      lt_prog_compiler_static='-Bstatic'
9088      ;;
9089
9090    *nto* | *qnx*)
9091      # QNX uses GNU C++, but need to define -shared option too, otherwise
9092      # it will coredump.
9093      lt_prog_compiler_pic='-fPIC -shared'
9094      ;;
9095
9096    osf3* | osf4* | osf5*)
9097      lt_prog_compiler_wl='-Wl,'
9098      # All OSF/1 code is PIC.
9099      lt_prog_compiler_static='-non_shared'
9100      ;;
9101
9102    rdos*)
9103      lt_prog_compiler_static='-non_shared'
9104      ;;
9105
9106    solaris*)
9107      lt_prog_compiler_pic='-KPIC'
9108      lt_prog_compiler_static='-Bstatic'
9109      case $cc_basename in
9110      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9111	lt_prog_compiler_wl='-Qoption ld ';;
9112      *)
9113	lt_prog_compiler_wl='-Wl,';;
9114      esac
9115      ;;
9116
9117    sunos4*)
9118      lt_prog_compiler_wl='-Qoption ld '
9119      lt_prog_compiler_pic='-PIC'
9120      lt_prog_compiler_static='-Bstatic'
9121      ;;
9122
9123    sysv4 | sysv4.2uw2* | sysv4.3*)
9124      lt_prog_compiler_wl='-Wl,'
9125      lt_prog_compiler_pic='-KPIC'
9126      lt_prog_compiler_static='-Bstatic'
9127      ;;
9128
9129    sysv4*MP*)
9130      if test -d /usr/nec; then
9131	lt_prog_compiler_pic='-Kconform_pic'
9132	lt_prog_compiler_static='-Bstatic'
9133      fi
9134      ;;
9135
9136    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9137      lt_prog_compiler_wl='-Wl,'
9138      lt_prog_compiler_pic='-KPIC'
9139      lt_prog_compiler_static='-Bstatic'
9140      ;;
9141
9142    unicos*)
9143      lt_prog_compiler_wl='-Wl,'
9144      lt_prog_compiler_can_build_shared=no
9145      ;;
9146
9147    uts4*)
9148      lt_prog_compiler_pic='-pic'
9149      lt_prog_compiler_static='-Bstatic'
9150      ;;
9151
9152    *)
9153      lt_prog_compiler_can_build_shared=no
9154      ;;
9155    esac
9156  fi
9157
9158case $host_os in
9159  # For platforms that do not support PIC, -DPIC is meaningless:
9160  *djgpp*)
9161    lt_prog_compiler_pic=
9162    ;;
9163  *)
9164    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9165    ;;
9166esac
9167
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9169$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9170if ${lt_cv_prog_compiler_pic+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9176$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9177lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9178
9179#
9180# Check to make sure the PIC flag actually works.
9181#
9182if test -n "$lt_prog_compiler_pic"; then
9183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9184$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9185if ${lt_cv_prog_compiler_pic_works+:} false; then :
9186  $as_echo_n "(cached) " >&6
9187else
9188  lt_cv_prog_compiler_pic_works=no
9189   ac_outfile=conftest.$ac_objext
9190   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9191   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9192   # Insert the option either (1) after the last *FLAGS variable, or
9193   # (2) before a word containing "conftest.", or (3) at the end.
9194   # Note that $ac_compile itself does not contain backslashes and begins
9195   # with a dollar sign (not a hyphen), so the echo should work correctly.
9196   # The option is referenced via a variable to avoid confusing sed.
9197   lt_compile=`echo "$ac_compile" | $SED \
9198   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9199   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9200   -e 's:$: $lt_compiler_flag:'`
9201   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9202   (eval "$lt_compile" 2>conftest.err)
9203   ac_status=$?
9204   cat conftest.err >&5
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   if (exit $ac_status) && test -s "$ac_outfile"; then
9207     # The compiler can only warn and ignore the option if not recognized
9208     # So say no if there are warnings other than the usual output.
9209     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9210     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9211     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9212       lt_cv_prog_compiler_pic_works=yes
9213     fi
9214   fi
9215   $RM conftest*
9216
9217fi
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9219$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9220
9221if test yes = "$lt_cv_prog_compiler_pic_works"; then
9222    case $lt_prog_compiler_pic in
9223     "" | " "*) ;;
9224     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9225     esac
9226else
9227    lt_prog_compiler_pic=
9228     lt_prog_compiler_can_build_shared=no
9229fi
9230
9231fi
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243#
9244# Check to make sure the static flag actually works.
9245#
9246wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9248$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9249if ${lt_cv_prog_compiler_static_works+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  lt_cv_prog_compiler_static_works=no
9253   save_LDFLAGS=$LDFLAGS
9254   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9255   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9256   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9257     # The linker can only warn and ignore the option if not recognized
9258     # So say no if there are warnings
9259     if test -s conftest.err; then
9260       # Append any errors to the config.log.
9261       cat conftest.err 1>&5
9262       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9263       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264       if diff conftest.exp conftest.er2 >/dev/null; then
9265         lt_cv_prog_compiler_static_works=yes
9266       fi
9267     else
9268       lt_cv_prog_compiler_static_works=yes
9269     fi
9270   fi
9271   $RM -r conftest*
9272   LDFLAGS=$save_LDFLAGS
9273
9274fi
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9276$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9277
9278if test yes = "$lt_cv_prog_compiler_static_works"; then
9279    :
9280else
9281    lt_prog_compiler_static=
9282fi
9283
9284
9285
9286
9287
9288
9289
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9291$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9292if ${lt_cv_prog_compiler_c_o+:} false; then :
9293  $as_echo_n "(cached) " >&6
9294else
9295  lt_cv_prog_compiler_c_o=no
9296   $RM -r conftest 2>/dev/null
9297   mkdir conftest
9298   cd conftest
9299   mkdir out
9300   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301
9302   lt_compiler_flag="-o out/conftest2.$ac_objext"
9303   # Insert the option either (1) after the last *FLAGS variable, or
9304   # (2) before a word containing "conftest.", or (3) at the end.
9305   # Note that $ac_compile itself does not contain backslashes and begins
9306   # with a dollar sign (not a hyphen), so the echo should work correctly.
9307   lt_compile=`echo "$ac_compile" | $SED \
9308   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310   -e 's:$: $lt_compiler_flag:'`
9311   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312   (eval "$lt_compile" 2>out/conftest.err)
9313   ac_status=$?
9314   cat out/conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9317   then
9318     # The compiler can only warn and ignore the option if not recognized
9319     # So say no if there are warnings
9320     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9321     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9322     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9323       lt_cv_prog_compiler_c_o=yes
9324     fi
9325   fi
9326   chmod u+w . 2>&5
9327   $RM conftest*
9328   # SGI C++ compiler will create directory out/ii_files/ for
9329   # template instantiation
9330   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9331   $RM out/* && rmdir out
9332   cd ..
9333   $RM -r conftest
9334   $RM conftest*
9335
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9338$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9339
9340
9341
9342
9343
9344
9345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9346$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9347if ${lt_cv_prog_compiler_c_o+:} false; then :
9348  $as_echo_n "(cached) " >&6
9349else
9350  lt_cv_prog_compiler_c_o=no
9351   $RM -r conftest 2>/dev/null
9352   mkdir conftest
9353   cd conftest
9354   mkdir out
9355   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356
9357   lt_compiler_flag="-o out/conftest2.$ac_objext"
9358   # Insert the option either (1) after the last *FLAGS variable, or
9359   # (2) before a word containing "conftest.", or (3) at the end.
9360   # Note that $ac_compile itself does not contain backslashes and begins
9361   # with a dollar sign (not a hyphen), so the echo should work correctly.
9362   lt_compile=`echo "$ac_compile" | $SED \
9363   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9364   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9365   -e 's:$: $lt_compiler_flag:'`
9366   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9367   (eval "$lt_compile" 2>out/conftest.err)
9368   ac_status=$?
9369   cat out/conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9372   then
9373     # The compiler can only warn and ignore the option if not recognized
9374     # So say no if there are warnings
9375     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9376     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9377     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9378       lt_cv_prog_compiler_c_o=yes
9379     fi
9380   fi
9381   chmod u+w . 2>&5
9382   $RM conftest*
9383   # SGI C++ compiler will create directory out/ii_files/ for
9384   # template instantiation
9385   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9386   $RM out/* && rmdir out
9387   cd ..
9388   $RM -r conftest
9389   $RM conftest*
9390
9391fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9393$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9394
9395
9396
9397
9398hard_links=nottested
9399if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9400  # do not overwrite the value of need_locks provided by the user
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9402$as_echo_n "checking if we can lock with hard links... " >&6; }
9403  hard_links=yes
9404  $RM conftest*
9405  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9406  touch conftest.a
9407  ln conftest.a conftest.b 2>&5 || hard_links=no
9408  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9410$as_echo "$hard_links" >&6; }
9411  if test no = "$hard_links"; then
9412    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9413$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9414    need_locks=warn
9415  fi
9416else
9417  need_locks=no
9418fi
9419
9420
9421
9422
9423
9424
9425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9426$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9427
9428  runpath_var=
9429  allow_undefined_flag=
9430  always_export_symbols=no
9431  archive_cmds=
9432  archive_expsym_cmds=
9433  compiler_needs_object=no
9434  enable_shared_with_static_runtimes=no
9435  export_dynamic_flag_spec=
9436  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9437  hardcode_automatic=no
9438  hardcode_direct=no
9439  hardcode_direct_absolute=no
9440  hardcode_libdir_flag_spec=
9441  hardcode_libdir_separator=
9442  hardcode_minus_L=no
9443  hardcode_shlibpath_var=unsupported
9444  inherit_rpath=no
9445  link_all_deplibs=unknown
9446  module_cmds=
9447  module_expsym_cmds=
9448  old_archive_from_new_cmds=
9449  old_archive_from_expsyms_cmds=
9450  thread_safe_flag_spec=
9451  whole_archive_flag_spec=
9452  # include_expsyms should be a list of space-separated symbols to be *always*
9453  # included in the symbol list
9454  include_expsyms=
9455  # exclude_expsyms can be an extended regexp of symbols to exclude
9456  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9457  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9458  # as well as any symbol that contains 'd'.
9459  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9460  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9461  # platforms (ab)use it in PIC code, but their linkers get confused if
9462  # the symbol is explicitly referenced.  Since portable code cannot
9463  # rely on this symbol name, it's probably fine to never include it in
9464  # preloaded symbol tables.
9465  # Exclude shared library initialization/finalization symbols.
9466  extract_expsyms_cmds=
9467
9468  case $host_os in
9469  cygwin* | mingw* | pw32* | cegcc*)
9470    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9471    # When not using gcc, we currently assume that we are using
9472    # Microsoft Visual C++.
9473    if test yes != "$GCC"; then
9474      with_gnu_ld=no
9475    fi
9476    ;;
9477  interix*)
9478    # we just hope/assume this is gcc and not c89 (= MSVC++)
9479    with_gnu_ld=yes
9480    ;;
9481  openbsd* | bitrig*)
9482    with_gnu_ld=no
9483    ;;
9484  linux* | k*bsd*-gnu | gnu*)
9485    link_all_deplibs=no
9486    ;;
9487  esac
9488
9489  ld_shlibs=yes
9490
9491  # On some targets, GNU ld is compatible enough with the native linker
9492  # that we're better off using the native interface for both.
9493  lt_use_gnu_ld_interface=no
9494  if test yes = "$with_gnu_ld"; then
9495    case $host_os in
9496      aix*)
9497	# The AIX port of GNU ld has always aspired to compatibility
9498	# with the native linker.  However, as the warning in the GNU ld
9499	# block says, versions before 2.19.5* couldn't really create working
9500	# shared libraries, regardless of the interface used.
9501	case `$LD -v 2>&1` in
9502	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9503	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9504	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9505	  *)
9506	    lt_use_gnu_ld_interface=yes
9507	    ;;
9508	esac
9509	;;
9510      *)
9511	lt_use_gnu_ld_interface=yes
9512	;;
9513    esac
9514  fi
9515
9516  if test yes = "$lt_use_gnu_ld_interface"; then
9517    # If archive_cmds runs LD, not CC, wlarc should be empty
9518    wlarc='$wl'
9519
9520    # Set some defaults for GNU ld with shared library support. These
9521    # are reset later if shared libraries are not supported. Putting them
9522    # here allows them to be overridden if necessary.
9523    runpath_var=LD_RUN_PATH
9524    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9525    export_dynamic_flag_spec='$wl--export-dynamic'
9526    # ancient GNU ld didn't support --whole-archive et. al.
9527    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9528      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9529    else
9530      whole_archive_flag_spec=
9531    fi
9532    supports_anon_versioning=no
9533    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9534      *GNU\ gold*) supports_anon_versioning=yes ;;
9535      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9536      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9537      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9538      *\ 2.11.*) ;; # other 2.11 versions
9539      *) supports_anon_versioning=yes ;;
9540    esac
9541
9542    # See if GNU ld supports shared libraries.
9543    case $host_os in
9544    aix[3-9]*)
9545      # On AIX/PPC, the GNU linker is very broken
9546      if test ia64 != "$host_cpu"; then
9547	ld_shlibs=no
9548	cat <<_LT_EOF 1>&2
9549
9550*** Warning: the GNU linker, at least up to release 2.19, is reported
9551*** to be unable to reliably create shared libraries on AIX.
9552*** Therefore, libtool is disabling shared libraries support.  If you
9553*** really care for shared libraries, you may want to install binutils
9554*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9555*** You will then need to restart the configuration process.
9556
9557_LT_EOF
9558      fi
9559      ;;
9560
9561    amigaos*)
9562      case $host_cpu in
9563      powerpc)
9564            # see comment about AmigaOS4 .so support
9565            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9566            archive_expsym_cmds=''
9567        ;;
9568      m68k)
9569            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)'
9570            hardcode_libdir_flag_spec='-L$libdir'
9571            hardcode_minus_L=yes
9572        ;;
9573      esac
9574      ;;
9575
9576    beos*)
9577      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9578	allow_undefined_flag=unsupported
9579	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9580	# support --undefined.  This deserves some investigation.  FIXME
9581	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9582      else
9583	ld_shlibs=no
9584      fi
9585      ;;
9586
9587    cygwin* | mingw* | pw32* | cegcc*)
9588      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9589      # as there is no search path for DLLs.
9590      hardcode_libdir_flag_spec='-L$libdir'
9591      export_dynamic_flag_spec='$wl--export-all-symbols'
9592      allow_undefined_flag=unsupported
9593      always_export_symbols=no
9594      enable_shared_with_static_runtimes=yes
9595      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'
9596      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9597
9598      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9599        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9600	# If the export-symbols file already is a .def file, use it as
9601	# is; otherwise, prepend EXPORTS...
9602	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9603          cp $export_symbols $output_objdir/$soname.def;
9604        else
9605          echo EXPORTS > $output_objdir/$soname.def;
9606          cat $export_symbols >> $output_objdir/$soname.def;
9607        fi~
9608        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9609      else
9610	ld_shlibs=no
9611      fi
9612      ;;
9613
9614    haiku*)
9615      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9616      link_all_deplibs=yes
9617      ;;
9618
9619    os2*)
9620      hardcode_libdir_flag_spec='-L$libdir'
9621      hardcode_minus_L=yes
9622      allow_undefined_flag=unsupported
9623      shrext_cmds=.dll
9624      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9625	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9626	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9627	$ECHO EXPORTS >> $output_objdir/$libname.def~
9628	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9629	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9630	emximp -o $lib $output_objdir/$libname.def'
9631      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9632	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9633	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9634	$ECHO EXPORTS >> $output_objdir/$libname.def~
9635	prefix_cmds="$SED"~
9636	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9637	  prefix_cmds="$prefix_cmds -e 1d";
9638	fi~
9639	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9640	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9641	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9642	emximp -o $lib $output_objdir/$libname.def'
9643      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9644      enable_shared_with_static_runtimes=yes
9645      ;;
9646
9647    interix[3-9]*)
9648      hardcode_direct=no
9649      hardcode_shlibpath_var=no
9650      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9651      export_dynamic_flag_spec='$wl-E'
9652      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9653      # Instead, shared libraries are loaded at an image base (0x10000000 by
9654      # default) and relocated if they conflict, which is a slow very memory
9655      # consuming and fragmenting process.  To avoid this, we pick a random,
9656      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9657      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9658      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9659      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'
9660      ;;
9661
9662    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9663      tmp_diet=no
9664      if test linux-dietlibc = "$host_os"; then
9665	case $cc_basename in
9666	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9667	esac
9668      fi
9669      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9670	 && test no = "$tmp_diet"
9671      then
9672	tmp_addflag=' $pic_flag'
9673	tmp_sharedflag='-shared'
9674	case $cc_basename,$host_cpu in
9675        pgcc*)				# Portland Group C compiler
9676	  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'
9677	  tmp_addflag=' $pic_flag'
9678	  ;;
9679	pgf77* | pgf90* | pgf95* | pgfortran*)
9680					# Portland Group f77 and f90 compilers
9681	  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'
9682	  tmp_addflag=' $pic_flag -Mnomain' ;;
9683	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9684	  tmp_addflag=' -i_dynamic' ;;
9685	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9686	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9687	ifc* | ifort*)			# Intel Fortran compiler
9688	  tmp_addflag=' -nofor_main' ;;
9689	lf95*)				# Lahey Fortran 8.1
9690	  whole_archive_flag_spec=
9691	  tmp_sharedflag='--shared' ;;
9692        nagfor*)                        # NAGFOR 5.3
9693          tmp_sharedflag='-Wl,-shared' ;;
9694	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9695	  tmp_sharedflag='-qmkshrobj'
9696	  tmp_addflag= ;;
9697	nvcc*)	# Cuda Compiler Driver 2.2
9698	  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'
9699	  compiler_needs_object=yes
9700	  ;;
9701	esac
9702	case `$CC -V 2>&1 | sed 5q` in
9703	*Sun\ C*)			# Sun C 5.9
9704	  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'
9705	  compiler_needs_object=yes
9706	  tmp_sharedflag='-G' ;;
9707	*Sun\ F*)			# Sun Fortran 8.3
9708	  tmp_sharedflag='-G' ;;
9709	esac
9710	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9711
9712        if test yes = "$supports_anon_versioning"; then
9713          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9714            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9715            echo "local: *; };" >> $output_objdir/$libname.ver~
9716            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9717        fi
9718
9719	case $cc_basename in
9720	tcc*)
9721	  export_dynamic_flag_spec='-rdynamic'
9722	  ;;
9723	xlf* | bgf* | bgxlf* | mpixlf*)
9724	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9725	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9726	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9727	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9728	  if test yes = "$supports_anon_versioning"; then
9729	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9730              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9731              echo "local: *; };" >> $output_objdir/$libname.ver~
9732              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9733	  fi
9734	  ;;
9735	esac
9736      else
9737        ld_shlibs=no
9738      fi
9739      ;;
9740
9741    netbsd* | netbsdelf*-gnu)
9742      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9743	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9744	wlarc=
9745      else
9746	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9747	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9748      fi
9749      ;;
9750
9751    solaris*)
9752      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9753	ld_shlibs=no
9754	cat <<_LT_EOF 1>&2
9755
9756*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9757*** create shared libraries on Solaris systems.  Therefore, libtool
9758*** is disabling shared libraries support.  We urge you to upgrade GNU
9759*** binutils to release 2.9.1 or newer.  Another option is to modify
9760*** your PATH or compiler configuration so that the native linker is
9761*** used, and then restart.
9762
9763_LT_EOF
9764      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9765	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9766	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9767      else
9768	ld_shlibs=no
9769      fi
9770      ;;
9771
9772    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9773      case `$LD -v 2>&1` in
9774        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9775	ld_shlibs=no
9776	cat <<_LT_EOF 1>&2
9777
9778*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9779*** reliably create shared libraries on SCO systems.  Therefore, libtool
9780*** is disabling shared libraries support.  We urge you to upgrade GNU
9781*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9782*** your PATH or compiler configuration so that the native linker is
9783*** used, and then restart.
9784
9785_LT_EOF
9786	;;
9787	*)
9788	  # For security reasons, it is highly recommended that you always
9789	  # use absolute paths for naming shared libraries, and exclude the
9790	  # DT_RUNPATH tag from executables and libraries.  But doing so
9791	  # requires that you compile everything twice, which is a pain.
9792	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9793	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9794	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9795	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9796	  else
9797	    ld_shlibs=no
9798	  fi
9799	;;
9800      esac
9801      ;;
9802
9803    sunos4*)
9804      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805      wlarc=
9806      hardcode_direct=yes
9807      hardcode_shlibpath_var=no
9808      ;;
9809
9810    *)
9811      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9812	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9813	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9814      else
9815	ld_shlibs=no
9816      fi
9817      ;;
9818    esac
9819
9820    if test no = "$ld_shlibs"; then
9821      runpath_var=
9822      hardcode_libdir_flag_spec=
9823      export_dynamic_flag_spec=
9824      whole_archive_flag_spec=
9825    fi
9826  else
9827    # PORTME fill in a description of your system's linker (not GNU ld)
9828    case $host_os in
9829    aix3*)
9830      allow_undefined_flag=unsupported
9831      always_export_symbols=yes
9832      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'
9833      # Note: this linker hardcodes the directories in LIBPATH if there
9834      # are no directories specified by -L.
9835      hardcode_minus_L=yes
9836      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9837	# Neither direct hardcoding nor static linking is supported with a
9838	# broken collect2.
9839	hardcode_direct=unsupported
9840      fi
9841      ;;
9842
9843    aix[4-9]*)
9844      if test ia64 = "$host_cpu"; then
9845	# On IA64, the linker does run time linking by default, so we don't
9846	# have to do anything special.
9847	aix_use_runtimelinking=no
9848	exp_sym_flag='-Bexport'
9849	no_entry_flag=
9850      else
9851	# If we're using GNU nm, then we don't want the "-C" option.
9852	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9853	# Without the "-l" option, or with the "-B" option, AIX nm treats
9854	# weak defined symbols like other global defined symbols, whereas
9855	# GNU nm marks them as "W".
9856	# While the 'weak' keyword is ignored in the Export File, we need
9857	# it in the Import File for the 'aix-soname' feature, so we have
9858	# to replace the "-B" option with "-P" for AIX nm.
9859	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9860	  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'
9861	else
9862	  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'
9863	fi
9864	aix_use_runtimelinking=no
9865
9866	# Test if we are trying to use run time linking or normal
9867	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9868	# have runtime linking enabled, and use it for executables.
9869	# For shared libraries, we enable/disable runtime linking
9870	# depending on the kind of the shared library created -
9871	# when "with_aix_soname,aix_use_runtimelinking" is:
9872	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9873	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9874	#            lib.a           static archive
9875	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9876	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9877	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9878	#            lib.a(lib.so.V) shared, rtl:no
9879	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9880	#            lib.a           static archive
9881	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9882	  for ld_flag in $LDFLAGS; do
9883	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9884	    aix_use_runtimelinking=yes
9885	    break
9886	  fi
9887	  done
9888	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9889	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9890	    # so we don't have lib.a shared libs to link our executables.
9891	    # We have to force runtime linking in this case.
9892	    aix_use_runtimelinking=yes
9893	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9894	  fi
9895	  ;;
9896	esac
9897
9898	exp_sym_flag='-bexport'
9899	no_entry_flag='-bnoentry'
9900      fi
9901
9902      # When large executables or shared objects are built, AIX ld can
9903      # have problems creating the table of contents.  If linking a library
9904      # or program results in "error TOC overflow" add -mminimal-toc to
9905      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9906      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9907
9908      archive_cmds=''
9909      hardcode_direct=yes
9910      hardcode_direct_absolute=yes
9911      hardcode_libdir_separator=':'
9912      link_all_deplibs=yes
9913      file_list_spec='$wl-f,'
9914      case $with_aix_soname,$aix_use_runtimelinking in
9915      aix,*) ;; # traditional, no import file
9916      svr4,* | *,yes) # use import file
9917	# The Import File defines what to hardcode.
9918	hardcode_direct=no
9919	hardcode_direct_absolute=no
9920	;;
9921      esac
9922
9923      if test yes = "$GCC"; then
9924	case $host_os in aix4.[012]|aix4.[012].*)
9925	# We only want to do this on AIX 4.2 and lower, the check
9926	# below for broken collect2 doesn't work under 4.3+
9927	  collect2name=`$CC -print-prog-name=collect2`
9928	  if test -f "$collect2name" &&
9929	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9930	  then
9931	  # We have reworked collect2
9932	  :
9933	  else
9934	  # We have old collect2
9935	  hardcode_direct=unsupported
9936	  # It fails to find uninstalled libraries when the uninstalled
9937	  # path is not listed in the libpath.  Setting hardcode_minus_L
9938	  # to unsupported forces relinking
9939	  hardcode_minus_L=yes
9940	  hardcode_libdir_flag_spec='-L$libdir'
9941	  hardcode_libdir_separator=
9942	  fi
9943	  ;;
9944	esac
9945	shared_flag='-shared'
9946	if test yes = "$aix_use_runtimelinking"; then
9947	  shared_flag="$shared_flag "'$wl-G'
9948	fi
9949	# Need to ensure runtime linking is disabled for the traditional
9950	# shared library, or the linker may eventually find shared libraries
9951	# /with/ Import File - we do not want to mix them.
9952	shared_flag_aix='-shared'
9953	shared_flag_svr4='-shared $wl-G'
9954      else
9955	# not using gcc
9956	if test ia64 = "$host_cpu"; then
9957	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9958	# chokes on -Wl,-G. The following line is correct:
9959	  shared_flag='-G'
9960	else
9961	  if test yes = "$aix_use_runtimelinking"; then
9962	    shared_flag='$wl-G'
9963	  else
9964	    shared_flag='$wl-bM:SRE'
9965	  fi
9966	  shared_flag_aix='$wl-bM:SRE'
9967	  shared_flag_svr4='$wl-G'
9968	fi
9969      fi
9970
9971      export_dynamic_flag_spec='$wl-bexpall'
9972      # It seems that -bexpall does not export symbols beginning with
9973      # underscore (_), so it is better to generate a list of symbols to export.
9974      always_export_symbols=yes
9975      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9976	# Warning - without using the other runtime loading flags (-brtl),
9977	# -berok will link without error, but may produce a broken library.
9978	allow_undefined_flag='-berok'
9979        # Determine the default libpath from the value encoded in an
9980        # empty executable.
9981        if test set = "${lt_cv_aix_libpath+set}"; then
9982  aix_libpath=$lt_cv_aix_libpath
9983else
9984  if ${lt_cv_aix_libpath_+:} false; then :
9985  $as_echo_n "(cached) " >&6
9986else
9987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h.  */
9989
9990int
9991main ()
9992{
9993
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998if ac_fn_c_try_link "$LINENO"; then :
9999
10000  lt_aix_libpath_sed='
10001      /Import File Strings/,/^$/ {
10002	  /^0/ {
10003	      s/^0  *\([^ ]*\) *$/\1/
10004	      p
10005	  }
10006      }'
10007  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10008  # Check for a 64-bit object if we didn't find anything.
10009  if test -z "$lt_cv_aix_libpath_"; then
10010    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10011  fi
10012fi
10013rm -f core conftest.err conftest.$ac_objext \
10014    conftest$ac_exeext conftest.$ac_ext
10015  if test -z "$lt_cv_aix_libpath_"; then
10016    lt_cv_aix_libpath_=/usr/lib:/lib
10017  fi
10018
10019fi
10020
10021  aix_libpath=$lt_cv_aix_libpath_
10022fi
10023
10024        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10025        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
10026      else
10027	if test ia64 = "$host_cpu"; then
10028	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10029	  allow_undefined_flag="-z nodefs"
10030	  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"
10031	else
10032	 # Determine the default libpath from the value encoded in an
10033	 # empty executable.
10034	 if test set = "${lt_cv_aix_libpath+set}"; then
10035  aix_libpath=$lt_cv_aix_libpath
10036else
10037  if ${lt_cv_aix_libpath_+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042
10043int
10044main ()
10045{
10046
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052
10053  lt_aix_libpath_sed='
10054      /Import File Strings/,/^$/ {
10055	  /^0/ {
10056	      s/^0  *\([^ ]*\) *$/\1/
10057	      p
10058	  }
10059      }'
10060  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10061  # Check for a 64-bit object if we didn't find anything.
10062  if test -z "$lt_cv_aix_libpath_"; then
10063    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10064  fi
10065fi
10066rm -f core conftest.err conftest.$ac_objext \
10067    conftest$ac_exeext conftest.$ac_ext
10068  if test -z "$lt_cv_aix_libpath_"; then
10069    lt_cv_aix_libpath_=/usr/lib:/lib
10070  fi
10071
10072fi
10073
10074  aix_libpath=$lt_cv_aix_libpath_
10075fi
10076
10077	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10078	  # Warning - without using the other run time loading flags,
10079	  # -berok will link without error, but may produce a broken library.
10080	  no_undefined_flag=' $wl-bernotok'
10081	  allow_undefined_flag=' $wl-berok'
10082	  if test yes = "$with_gnu_ld"; then
10083	    # We only use this code for GNU lds that support --whole-archive.
10084	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10085	  else
10086	    # Exported symbols can be pulled into shared objects from archives
10087	    whole_archive_flag_spec='$convenience'
10088	  fi
10089	  archive_cmds_need_lc=yes
10090	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10091	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10092	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10093	  if test svr4 != "$with_aix_soname"; then
10094	    # This is similar to how AIX traditionally builds its shared libraries.
10095	    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'
10096	  fi
10097	  if test aix != "$with_aix_soname"; then
10098	    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'
10099	  else
10100	    # used by -dlpreopen to get the symbols
10101	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10102	  fi
10103	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10104	fi
10105      fi
10106      ;;
10107
10108    amigaos*)
10109      case $host_cpu in
10110      powerpc)
10111            # see comment about AmigaOS4 .so support
10112            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10113            archive_expsym_cmds=''
10114        ;;
10115      m68k)
10116            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)'
10117            hardcode_libdir_flag_spec='-L$libdir'
10118            hardcode_minus_L=yes
10119        ;;
10120      esac
10121      ;;
10122
10123    bsdi[45]*)
10124      export_dynamic_flag_spec=-rdynamic
10125      ;;
10126
10127    cygwin* | mingw* | pw32* | cegcc*)
10128      # When not using gcc, we currently assume that we are using
10129      # Microsoft Visual C++.
10130      # hardcode_libdir_flag_spec is actually meaningless, as there is
10131      # no search path for DLLs.
10132      case $cc_basename in
10133      cl*)
10134	# Native MSVC
10135	hardcode_libdir_flag_spec=' '
10136	allow_undefined_flag=unsupported
10137	always_export_symbols=yes
10138	file_list_spec='@'
10139	# Tell ltmain to make .lib files, not .a files.
10140	libext=lib
10141	# Tell ltmain to make .dll files, not .so files.
10142	shrext_cmds=.dll
10143	# FIXME: Setting linknames here is a bad hack.
10144	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10145	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10146            cp "$export_symbols" "$output_objdir/$soname.def";
10147            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10148          else
10149            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10150          fi~
10151          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10152          linknames='
10153	# The linker will not automatically build a static lib if we build a DLL.
10154	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10155	enable_shared_with_static_runtimes=yes
10156	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10157	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10158	# Don't use ranlib
10159	old_postinstall_cmds='chmod 644 $oldlib'
10160	postlink_cmds='lt_outputfile="@OUTPUT@"~
10161          lt_tool_outputfile="@TOOL_OUTPUT@"~
10162          case $lt_outputfile in
10163            *.exe|*.EXE) ;;
10164            *)
10165              lt_outputfile=$lt_outputfile.exe
10166              lt_tool_outputfile=$lt_tool_outputfile.exe
10167              ;;
10168          esac~
10169          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10170            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10171            $RM "$lt_outputfile.manifest";
10172          fi'
10173	;;
10174      *)
10175	# Assume MSVC wrapper
10176	hardcode_libdir_flag_spec=' '
10177	allow_undefined_flag=unsupported
10178	# Tell ltmain to make .lib files, not .a files.
10179	libext=lib
10180	# Tell ltmain to make .dll files, not .so files.
10181	shrext_cmds=.dll
10182	# FIXME: Setting linknames here is a bad hack.
10183	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10184	# The linker will automatically build a .lib file if we build a DLL.
10185	old_archive_from_new_cmds='true'
10186	# FIXME: Should let the user specify the lib program.
10187	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10188	enable_shared_with_static_runtimes=yes
10189	;;
10190      esac
10191      ;;
10192
10193    darwin* | rhapsody*)
10194
10195
10196  archive_cmds_need_lc=no
10197  hardcode_direct=no
10198  hardcode_automatic=yes
10199  hardcode_shlibpath_var=unsupported
10200  if test yes = "$lt_cv_ld_force_load"; then
10201    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\"`'
10202
10203  else
10204    whole_archive_flag_spec=''
10205  fi
10206  link_all_deplibs=yes
10207  allow_undefined_flag=$_lt_dar_allow_undefined
10208  case $cc_basename in
10209     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10210     *) _lt_dar_can_shared=$GCC ;;
10211  esac
10212  if test yes = "$_lt_dar_can_shared"; then
10213    output_verbose_link_cmd=func_echo_all
10214    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10215    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10216    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"
10217    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"
10218
10219  else
10220  ld_shlibs=no
10221  fi
10222
10223      ;;
10224
10225    dgux*)
10226      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227      hardcode_libdir_flag_spec='-L$libdir'
10228      hardcode_shlibpath_var=no
10229      ;;
10230
10231    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10232    # support.  Future versions do this automatically, but an explicit c++rt0.o
10233    # does not break anything, and helps significantly (at the cost of a little
10234    # extra space).
10235    freebsd2.2*)
10236      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10237      hardcode_libdir_flag_spec='-R$libdir'
10238      hardcode_direct=yes
10239      hardcode_shlibpath_var=no
10240      ;;
10241
10242    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10243    freebsd2.*)
10244      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10245      hardcode_direct=yes
10246      hardcode_minus_L=yes
10247      hardcode_shlibpath_var=no
10248      ;;
10249
10250    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10251    freebsd* | dragonfly*)
10252      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253      hardcode_libdir_flag_spec='-R$libdir'
10254      hardcode_direct=yes
10255      hardcode_shlibpath_var=no
10256      ;;
10257
10258    hpux9*)
10259      if test yes = "$GCC"; then
10260	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'
10261      else
10262	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'
10263      fi
10264      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10265      hardcode_libdir_separator=:
10266      hardcode_direct=yes
10267
10268      # hardcode_minus_L: Not really in the search PATH,
10269      # but as the default location of the library.
10270      hardcode_minus_L=yes
10271      export_dynamic_flag_spec='$wl-E'
10272      ;;
10273
10274    hpux10*)
10275      if test yes,no = "$GCC,$with_gnu_ld"; then
10276	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10277      else
10278	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10279      fi
10280      if test no = "$with_gnu_ld"; then
10281	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10282	hardcode_libdir_separator=:
10283	hardcode_direct=yes
10284	hardcode_direct_absolute=yes
10285	export_dynamic_flag_spec='$wl-E'
10286	# hardcode_minus_L: Not really in the search PATH,
10287	# but as the default location of the library.
10288	hardcode_minus_L=yes
10289      fi
10290      ;;
10291
10292    hpux11*)
10293      if test yes,no = "$GCC,$with_gnu_ld"; then
10294	case $host_cpu in
10295	hppa*64*)
10296	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10297	  ;;
10298	ia64*)
10299	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10300	  ;;
10301	*)
10302	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10303	  ;;
10304	esac
10305      else
10306	case $host_cpu in
10307	hppa*64*)
10308	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10309	  ;;
10310	ia64*)
10311	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10312	  ;;
10313	*)
10314
10315	  # Older versions of the 11.00 compiler do not understand -b yet
10316	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10317	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10318$as_echo_n "checking if $CC understands -b... " >&6; }
10319if ${lt_cv_prog_compiler__b+:} false; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  lt_cv_prog_compiler__b=no
10323   save_LDFLAGS=$LDFLAGS
10324   LDFLAGS="$LDFLAGS -b"
10325   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10326   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10327     # The linker can only warn and ignore the option if not recognized
10328     # So say no if there are warnings
10329     if test -s conftest.err; then
10330       # Append any errors to the config.log.
10331       cat conftest.err 1>&5
10332       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10333       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10334       if diff conftest.exp conftest.er2 >/dev/null; then
10335         lt_cv_prog_compiler__b=yes
10336       fi
10337     else
10338       lt_cv_prog_compiler__b=yes
10339     fi
10340   fi
10341   $RM -r conftest*
10342   LDFLAGS=$save_LDFLAGS
10343
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10346$as_echo "$lt_cv_prog_compiler__b" >&6; }
10347
10348if test yes = "$lt_cv_prog_compiler__b"; then
10349    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10350else
10351    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10352fi
10353
10354	  ;;
10355	esac
10356      fi
10357      if test no = "$with_gnu_ld"; then
10358	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10359	hardcode_libdir_separator=:
10360
10361	case $host_cpu in
10362	hppa*64*|ia64*)
10363	  hardcode_direct=no
10364	  hardcode_shlibpath_var=no
10365	  ;;
10366	*)
10367	  hardcode_direct=yes
10368	  hardcode_direct_absolute=yes
10369	  export_dynamic_flag_spec='$wl-E'
10370
10371	  # hardcode_minus_L: Not really in the search PATH,
10372	  # but as the default location of the library.
10373	  hardcode_minus_L=yes
10374	  ;;
10375	esac
10376      fi
10377      ;;
10378
10379    irix5* | irix6* | nonstopux*)
10380      if test yes = "$GCC"; then
10381	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'
10382	# Try to use the -exported_symbol ld option, if it does not
10383	# work, assume that -exports_file does not work either and
10384	# implicitly export all symbols.
10385	# This should be the same for all languages, so no per-tag cache variable.
10386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10387$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10388if ${lt_cv_irix_exported_symbol+:} false; then :
10389  $as_echo_n "(cached) " >&6
10390else
10391  save_LDFLAGS=$LDFLAGS
10392	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10393	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int foo (void) { return 0; }
10396_ACEOF
10397if ac_fn_c_try_link "$LINENO"; then :
10398  lt_cv_irix_exported_symbol=yes
10399else
10400  lt_cv_irix_exported_symbol=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403    conftest$ac_exeext conftest.$ac_ext
10404           LDFLAGS=$save_LDFLAGS
10405fi
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10407$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10408	if test yes = "$lt_cv_irix_exported_symbol"; then
10409          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'
10410	fi
10411	link_all_deplibs=no
10412      else
10413	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'
10414	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'
10415      fi
10416      archive_cmds_need_lc='no'
10417      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10418      hardcode_libdir_separator=:
10419      inherit_rpath=yes
10420      link_all_deplibs=yes
10421      ;;
10422
10423    linux*)
10424      case $cc_basename in
10425      tcc*)
10426	# Fabrice Bellard et al's Tiny C Compiler
10427	ld_shlibs=yes
10428	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10429	;;
10430      esac
10431      ;;
10432
10433    netbsd* | netbsdelf*-gnu)
10434      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10435	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10436      else
10437	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10438      fi
10439      hardcode_libdir_flag_spec='-R$libdir'
10440      hardcode_direct=yes
10441      hardcode_shlibpath_var=no
10442      ;;
10443
10444    newsos6)
10445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446      hardcode_direct=yes
10447      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10448      hardcode_libdir_separator=:
10449      hardcode_shlibpath_var=no
10450      ;;
10451
10452    *nto* | *qnx*)
10453      ;;
10454
10455    openbsd* | bitrig*)
10456      if test -f /usr/libexec/ld.so; then
10457	hardcode_direct=yes
10458	hardcode_shlibpath_var=no
10459	hardcode_direct_absolute=yes
10460	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10461	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10463	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10464	  export_dynamic_flag_spec='$wl-E'
10465	else
10466	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10467	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10468	fi
10469      else
10470	ld_shlibs=no
10471      fi
10472      ;;
10473
10474    os2*)
10475      hardcode_libdir_flag_spec='-L$libdir'
10476      hardcode_minus_L=yes
10477      allow_undefined_flag=unsupported
10478      shrext_cmds=.dll
10479      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10480	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10481	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10482	$ECHO EXPORTS >> $output_objdir/$libname.def~
10483	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10484	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10485	emximp -o $lib $output_objdir/$libname.def'
10486      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10487	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10488	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10489	$ECHO EXPORTS >> $output_objdir/$libname.def~
10490	prefix_cmds="$SED"~
10491	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10492	  prefix_cmds="$prefix_cmds -e 1d";
10493	fi~
10494	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10495	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10496	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10497	emximp -o $lib $output_objdir/$libname.def'
10498      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10499      enable_shared_with_static_runtimes=yes
10500      ;;
10501
10502    osf3*)
10503      if test yes = "$GCC"; then
10504	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10505	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'
10506      else
10507	allow_undefined_flag=' -expect_unresolved \*'
10508	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'
10509      fi
10510      archive_cmds_need_lc='no'
10511      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10512      hardcode_libdir_separator=:
10513      ;;
10514
10515    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10516      if test yes = "$GCC"; then
10517	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10518	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'
10519	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10520      else
10521	allow_undefined_flag=' -expect_unresolved \*'
10522	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'
10523	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~
10524          $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'
10525
10526	# Both c and cxx compiler support -rpath directly
10527	hardcode_libdir_flag_spec='-rpath $libdir'
10528      fi
10529      archive_cmds_need_lc='no'
10530      hardcode_libdir_separator=:
10531      ;;
10532
10533    solaris*)
10534      no_undefined_flag=' -z defs'
10535      if test yes = "$GCC"; then
10536	wlarc='$wl'
10537	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10538	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539          $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'
10540      else
10541	case `$CC -V 2>&1` in
10542	*"Compilers 5.0"*)
10543	  wlarc=''
10544	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10546            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10547	  ;;
10548	*)
10549	  wlarc='$wl'
10550	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10551	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10552            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10553	  ;;
10554	esac
10555      fi
10556      hardcode_libdir_flag_spec='-R$libdir'
10557      hardcode_shlibpath_var=no
10558      case $host_os in
10559      solaris2.[0-5] | solaris2.[0-5].*) ;;
10560      *)
10561	# The compiler driver will combine and reorder linker options,
10562	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10563	# but is careful enough not to reorder.
10564	# Supported since Solaris 2.6 (maybe 2.5.1?)
10565	if test yes = "$GCC"; then
10566	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10567	else
10568	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10569	fi
10570	;;
10571      esac
10572      link_all_deplibs=yes
10573      ;;
10574
10575    sunos4*)
10576      if test sequent = "$host_vendor"; then
10577	# Use $CC to link under sequent, because it throws in some extra .o
10578	# files that make .init and .fini sections work.
10579	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10580      else
10581	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10582      fi
10583      hardcode_libdir_flag_spec='-L$libdir'
10584      hardcode_direct=yes
10585      hardcode_minus_L=yes
10586      hardcode_shlibpath_var=no
10587      ;;
10588
10589    sysv4)
10590      case $host_vendor in
10591	sni)
10592	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593	  hardcode_direct=yes # is this really true???
10594	;;
10595	siemens)
10596	  ## LD is ld it makes a PLAMLIB
10597	  ## CC just makes a GrossModule.
10598	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10599	  reload_cmds='$CC -r -o $output$reload_objs'
10600	  hardcode_direct=no
10601        ;;
10602	motorola)
10603	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10605	;;
10606      esac
10607      runpath_var='LD_RUN_PATH'
10608      hardcode_shlibpath_var=no
10609      ;;
10610
10611    sysv4.3*)
10612      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613      hardcode_shlibpath_var=no
10614      export_dynamic_flag_spec='-Bexport'
10615      ;;
10616
10617    sysv4*MP*)
10618      if test -d /usr/nec; then
10619	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620	hardcode_shlibpath_var=no
10621	runpath_var=LD_RUN_PATH
10622	hardcode_runpath_var=yes
10623	ld_shlibs=yes
10624      fi
10625      ;;
10626
10627    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10628      no_undefined_flag='$wl-z,text'
10629      archive_cmds_need_lc=no
10630      hardcode_shlibpath_var=no
10631      runpath_var='LD_RUN_PATH'
10632
10633      if test yes = "$GCC"; then
10634	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636      else
10637	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639      fi
10640      ;;
10641
10642    sysv5* | sco3.2v5* | sco5v6*)
10643      # Note: We CANNOT use -z defs as we might desire, because we do not
10644      # link with -lc, and that would cause any symbols used from libc to
10645      # always be unresolved, which means just about no library would
10646      # ever link correctly.  If we're not using GNU ld we use -z text
10647      # though, which does catch some bad symbols but isn't as heavy-handed
10648      # as -z defs.
10649      no_undefined_flag='$wl-z,text'
10650      allow_undefined_flag='$wl-z,nodefs'
10651      archive_cmds_need_lc=no
10652      hardcode_shlibpath_var=no
10653      hardcode_libdir_flag_spec='$wl-R,$libdir'
10654      hardcode_libdir_separator=':'
10655      link_all_deplibs=yes
10656      export_dynamic_flag_spec='$wl-Bexport'
10657      runpath_var='LD_RUN_PATH'
10658
10659      if test yes = "$GCC"; then
10660	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662      else
10663	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665      fi
10666      ;;
10667
10668    uts4*)
10669      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670      hardcode_libdir_flag_spec='-L$libdir'
10671      hardcode_shlibpath_var=no
10672      ;;
10673
10674    *)
10675      ld_shlibs=no
10676      ;;
10677    esac
10678
10679    if test sni = "$host_vendor"; then
10680      case $host in
10681      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10682	export_dynamic_flag_spec='$wl-Blargedynsym'
10683	;;
10684      esac
10685    fi
10686  fi
10687
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10689$as_echo "$ld_shlibs" >&6; }
10690test no = "$ld_shlibs" && can_build_shared=no
10691
10692with_gnu_ld=$with_gnu_ld
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708#
10709# Do we need to explicitly link libc?
10710#
10711case "x$archive_cmds_need_lc" in
10712x|xyes)
10713  # Assume -lc should be added
10714  archive_cmds_need_lc=yes
10715
10716  if test yes,yes = "$GCC,$enable_shared"; then
10717    case $archive_cmds in
10718    *'~'*)
10719      # FIXME: we may have to deal with multi-command sequences.
10720      ;;
10721    '$CC '*)
10722      # Test whether the compiler implicitly links with -lc since on some
10723      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10724      # to ld, don't add -lc before -lgcc.
10725      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10726$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10727if ${lt_cv_archive_cmds_need_lc+:} false; then :
10728  $as_echo_n "(cached) " >&6
10729else
10730  $RM conftest*
10731	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10732
10733	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10734  (eval $ac_compile) 2>&5
10735  ac_status=$?
10736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737  test $ac_status = 0; } 2>conftest.err; then
10738	  soname=conftest
10739	  lib=conftest
10740	  libobjs=conftest.$ac_objext
10741	  deplibs=
10742	  wl=$lt_prog_compiler_wl
10743	  pic_flag=$lt_prog_compiler_pic
10744	  compiler_flags=-v
10745	  linker_flags=-v
10746	  verstring=
10747	  output_objdir=.
10748	  libname=conftest
10749	  lt_save_allow_undefined_flag=$allow_undefined_flag
10750	  allow_undefined_flag=
10751	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10752  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10753  ac_status=$?
10754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755  test $ac_status = 0; }
10756	  then
10757	    lt_cv_archive_cmds_need_lc=no
10758	  else
10759	    lt_cv_archive_cmds_need_lc=yes
10760	  fi
10761	  allow_undefined_flag=$lt_save_allow_undefined_flag
10762	else
10763	  cat conftest.err 1>&5
10764	fi
10765	$RM conftest*
10766
10767fi
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10769$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10770      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10771      ;;
10772    esac
10773  fi
10774  ;;
10775esac
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10929$as_echo_n "checking dynamic linker characteristics... " >&6; }
10930
10931if test yes = "$GCC"; then
10932  case $host_os in
10933    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10934    *) lt_awk_arg='/^libraries:/' ;;
10935  esac
10936  case $host_os in
10937    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10938    *) lt_sed_strip_eq='s|=/|/|g' ;;
10939  esac
10940  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10941  case $lt_search_path_spec in
10942  *\;*)
10943    # if the path contains ";" then we assume it to be the separator
10944    # otherwise default to the standard path separator (i.e. ":") - it is
10945    # assumed that no part of a normal pathname contains ";" but that should
10946    # okay in the real world where ";" in dirpaths is itself problematic.
10947    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10948    ;;
10949  *)
10950    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10951    ;;
10952  esac
10953  # Ok, now we have the path, separated by spaces, we can step through it
10954  # and add multilib dir if necessary...
10955  lt_tmp_lt_search_path_spec=
10956  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10957  # ...but if some path component already ends with the multilib dir we assume
10958  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10959  case "$lt_multi_os_dir; $lt_search_path_spec " in
10960  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10961    lt_multi_os_dir=
10962    ;;
10963  esac
10964  for lt_sys_path in $lt_search_path_spec; do
10965    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10966      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10967    elif test -n "$lt_multi_os_dir"; then
10968      test -d "$lt_sys_path" && \
10969	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10970    fi
10971  done
10972  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10973BEGIN {RS = " "; FS = "/|\n";} {
10974  lt_foo = "";
10975  lt_count = 0;
10976  for (lt_i = NF; lt_i > 0; lt_i--) {
10977    if ($lt_i != "" && $lt_i != ".") {
10978      if ($lt_i == "..") {
10979        lt_count++;
10980      } else {
10981        if (lt_count == 0) {
10982          lt_foo = "/" $lt_i lt_foo;
10983        } else {
10984          lt_count--;
10985        }
10986      }
10987    }
10988  }
10989  if (lt_foo != "") { lt_freq[lt_foo]++; }
10990  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10991}'`
10992  # AWK program above erroneously prepends '/' to C:/dos/paths
10993  # for these hosts.
10994  case $host_os in
10995    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10996      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10997  esac
10998  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10999else
11000  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11001fi
11002library_names_spec=
11003libname_spec='lib$name'
11004soname_spec=
11005shrext_cmds=.so
11006postinstall_cmds=
11007postuninstall_cmds=
11008finish_cmds=
11009finish_eval=
11010shlibpath_var=
11011shlibpath_overrides_runpath=unknown
11012version_type=none
11013dynamic_linker="$host_os ld.so"
11014sys_lib_dlsearch_path_spec="/lib /usr/lib"
11015need_lib_prefix=unknown
11016hardcode_into_libs=no
11017
11018# when you set need_version to no, make sure it does not cause -set_version
11019# flags to be left without arguments
11020need_version=unknown
11021
11022
11023
11024case $host_os in
11025aix3*)
11026  version_type=linux # correct to gnu/linux during the next big refactor
11027  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11028  shlibpath_var=LIBPATH
11029
11030  # AIX 3 has no versioning support, so we append a major version to the name.
11031  soname_spec='$libname$release$shared_ext$major'
11032  ;;
11033
11034aix[4-9]*)
11035  version_type=linux # correct to gnu/linux during the next big refactor
11036  need_lib_prefix=no
11037  need_version=no
11038  hardcode_into_libs=yes
11039  if test ia64 = "$host_cpu"; then
11040    # AIX 5 supports IA64
11041    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11042    shlibpath_var=LD_LIBRARY_PATH
11043  else
11044    # With GCC up to 2.95.x, collect2 would create an import file
11045    # for dependence libraries.  The import file would start with
11046    # the line '#! .'.  This would cause the generated library to
11047    # depend on '.', always an invalid library.  This was fixed in
11048    # development snapshots of GCC prior to 3.0.
11049    case $host_os in
11050      aix4 | aix4.[01] | aix4.[01].*)
11051      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11052	   echo ' yes '
11053	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11054	:
11055      else
11056	can_build_shared=no
11057      fi
11058      ;;
11059    esac
11060    # Using Import Files as archive members, it is possible to support
11061    # filename-based versioning of shared library archives on AIX. While
11062    # this would work for both with and without runtime linking, it will
11063    # prevent static linking of such archives. So we do filename-based
11064    # shared library versioning with .so extension only, which is used
11065    # when both runtime linking and shared linking is enabled.
11066    # Unfortunately, runtime linking may impact performance, so we do
11067    # not want this to be the default eventually. Also, we use the
11068    # versioned .so libs for executables only if there is the -brtl
11069    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11070    # To allow for filename-based versioning support, we need to create
11071    # libNAME.so.V as an archive file, containing:
11072    # *) an Import File, referring to the versioned filename of the
11073    #    archive as well as the shared archive member, telling the
11074    #    bitwidth (32 or 64) of that shared object, and providing the
11075    #    list of exported symbols of that shared object, eventually
11076    #    decorated with the 'weak' keyword
11077    # *) the shared object with the F_LOADONLY flag set, to really avoid
11078    #    it being seen by the linker.
11079    # At run time we better use the real file rather than another symlink,
11080    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11081
11082    case $with_aix_soname,$aix_use_runtimelinking in
11083    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11084    # soname into executable. Probably we can add versioning support to
11085    # collect2, so additional links can be useful in future.
11086    aix,yes) # traditional libtool
11087      dynamic_linker='AIX unversionable lib.so'
11088      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089      # instead of lib<name>.a to let people know that these are not
11090      # typical AIX shared libraries.
11091      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092      ;;
11093    aix,no) # traditional AIX only
11094      dynamic_linker='AIX lib.a(lib.so.V)'
11095      # We preserve .a as extension for shared libraries through AIX4.2
11096      # and later when we are not doing run time linking.
11097      library_names_spec='$libname$release.a $libname.a'
11098      soname_spec='$libname$release$shared_ext$major'
11099      ;;
11100    svr4,*) # full svr4 only
11101      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11102      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11103      # We do not specify a path in Import Files, so LIBPATH fires.
11104      shlibpath_overrides_runpath=yes
11105      ;;
11106    *,yes) # both, prefer svr4
11107      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11108      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11109      # unpreferred sharedlib libNAME.a needs extra handling
11110      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"'
11111      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"'
11112      # We do not specify a path in Import Files, so LIBPATH fires.
11113      shlibpath_overrides_runpath=yes
11114      ;;
11115    *,no) # both, prefer aix
11116      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11117      library_names_spec='$libname$release.a $libname.a'
11118      soname_spec='$libname$release$shared_ext$major'
11119      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11120      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)'
11121      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"'
11122      ;;
11123    esac
11124    shlibpath_var=LIBPATH
11125  fi
11126  ;;
11127
11128amigaos*)
11129  case $host_cpu in
11130  powerpc)
11131    # Since July 2007 AmigaOS4 officially supports .so libraries.
11132    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11133    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134    ;;
11135  m68k)
11136    library_names_spec='$libname.ixlibrary $libname.a'
11137    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11138    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'
11139    ;;
11140  esac
11141  ;;
11142
11143beos*)
11144  library_names_spec='$libname$shared_ext'
11145  dynamic_linker="$host_os ld.so"
11146  shlibpath_var=LIBRARY_PATH
11147  ;;
11148
11149bsdi[45]*)
11150  version_type=linux # correct to gnu/linux during the next big refactor
11151  need_version=no
11152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153  soname_spec='$libname$release$shared_ext$major'
11154  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11155  shlibpath_var=LD_LIBRARY_PATH
11156  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11157  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11158  # the default ld.so.conf also contains /usr/contrib/lib and
11159  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11160  # libtool to hard-code these into programs
11161  ;;
11162
11163cygwin* | mingw* | pw32* | cegcc*)
11164  version_type=windows
11165  shrext_cmds=.dll
11166  need_version=no
11167  need_lib_prefix=no
11168
11169  case $GCC,$cc_basename in
11170  yes,*)
11171    # gcc
11172    library_names_spec='$libname.dll.a'
11173    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11174    postinstall_cmds='base_file=`basename \$file`~
11175      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11176      dldir=$destdir/`dirname \$dlpath`~
11177      test -d \$dldir || mkdir -p \$dldir~
11178      $install_prog $dir/$dlname \$dldir/$dlname~
11179      chmod a+x \$dldir/$dlname~
11180      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11181        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11182      fi'
11183    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11184      dlpath=$dir/\$dldll~
11185       $RM \$dlpath'
11186    shlibpath_overrides_runpath=yes
11187
11188    case $host_os in
11189    cygwin*)
11190      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11191      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11192
11193      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11194      ;;
11195    mingw* | cegcc*)
11196      # MinGW DLLs use traditional 'lib' prefix
11197      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11198      ;;
11199    pw32*)
11200      # pw32 DLLs use 'pw' prefix rather than 'lib'
11201      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11202      ;;
11203    esac
11204    dynamic_linker='Win32 ld.exe'
11205    ;;
11206
11207  *,cl*)
11208    # Native MSVC
11209    libname_spec='$name'
11210    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11211    library_names_spec='$libname.dll.lib'
11212
11213    case $build_os in
11214    mingw*)
11215      sys_lib_search_path_spec=
11216      lt_save_ifs=$IFS
11217      IFS=';'
11218      for lt_path in $LIB
11219      do
11220        IFS=$lt_save_ifs
11221        # Let DOS variable expansion print the short 8.3 style file name.
11222        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11223        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11224      done
11225      IFS=$lt_save_ifs
11226      # Convert to MSYS style.
11227      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11228      ;;
11229    cygwin*)
11230      # Convert to unix form, then to dos form, then back to unix form
11231      # but this time dos style (no spaces!) so that the unix form looks
11232      # like /cygdrive/c/PROGRA~1:/cygdr...
11233      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11234      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11235      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11236      ;;
11237    *)
11238      sys_lib_search_path_spec=$LIB
11239      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11240        # It is most probably a Windows format PATH.
11241        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11242      else
11243        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11244      fi
11245      # FIXME: find the short name or the path components, as spaces are
11246      # common. (e.g. "Program Files" -> "PROGRA~1")
11247      ;;
11248    esac
11249
11250    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11251    postinstall_cmds='base_file=`basename \$file`~
11252      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11253      dldir=$destdir/`dirname \$dlpath`~
11254      test -d \$dldir || mkdir -p \$dldir~
11255      $install_prog $dir/$dlname \$dldir/$dlname'
11256    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11257      dlpath=$dir/\$dldll~
11258       $RM \$dlpath'
11259    shlibpath_overrides_runpath=yes
11260    dynamic_linker='Win32 link.exe'
11261    ;;
11262
11263  *)
11264    # Assume MSVC wrapper
11265    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11266    dynamic_linker='Win32 ld.exe'
11267    ;;
11268  esac
11269  # FIXME: first we should search . and the directory the executable is in
11270  shlibpath_var=PATH
11271  ;;
11272
11273darwin* | rhapsody*)
11274  dynamic_linker="$host_os dyld"
11275  version_type=darwin
11276  need_lib_prefix=no
11277  need_version=no
11278  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11279  soname_spec='$libname$release$major$shared_ext'
11280  shlibpath_overrides_runpath=yes
11281  shlibpath_var=DYLD_LIBRARY_PATH
11282  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11283
11284  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11285  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11286  ;;
11287
11288dgux*)
11289  version_type=linux # correct to gnu/linux during the next big refactor
11290  need_lib_prefix=no
11291  need_version=no
11292  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11293  soname_spec='$libname$release$shared_ext$major'
11294  shlibpath_var=LD_LIBRARY_PATH
11295  ;;
11296
11297freebsd* | dragonfly*)
11298  # DragonFly does not have aout.  When/if they implement a new
11299  # versioning mechanism, adjust this.
11300  if test -x /usr/bin/objformat; then
11301    objformat=`/usr/bin/objformat`
11302  else
11303    case $host_os in
11304    freebsd[23].*) objformat=aout ;;
11305    *) objformat=elf ;;
11306    esac
11307  fi
11308  version_type=freebsd-$objformat
11309  case $version_type in
11310    freebsd-elf*)
11311      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312      soname_spec='$libname$release$shared_ext$major'
11313      need_version=no
11314      need_lib_prefix=no
11315      ;;
11316    freebsd-*)
11317      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11318      need_version=yes
11319      ;;
11320  esac
11321  shlibpath_var=LD_LIBRARY_PATH
11322  case $host_os in
11323  freebsd2.*)
11324    shlibpath_overrides_runpath=yes
11325    ;;
11326  freebsd3.[01]* | freebsdelf3.[01]*)
11327    shlibpath_overrides_runpath=yes
11328    hardcode_into_libs=yes
11329    ;;
11330  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11331  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11332    shlibpath_overrides_runpath=no
11333    hardcode_into_libs=yes
11334    ;;
11335  *) # from 4.6 on, and DragonFly
11336    shlibpath_overrides_runpath=yes
11337    hardcode_into_libs=yes
11338    ;;
11339  esac
11340  ;;
11341
11342haiku*)
11343  version_type=linux # correct to gnu/linux during the next big refactor
11344  need_lib_prefix=no
11345  need_version=no
11346  dynamic_linker="$host_os runtime_loader"
11347  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348  soname_spec='$libname$release$shared_ext$major'
11349  shlibpath_var=LIBRARY_PATH
11350  shlibpath_overrides_runpath=no
11351  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11352  hardcode_into_libs=yes
11353  ;;
11354
11355hpux9* | hpux10* | hpux11*)
11356  # Give a soname corresponding to the major version so that dld.sl refuses to
11357  # link against other versions.
11358  version_type=sunos
11359  need_lib_prefix=no
11360  need_version=no
11361  case $host_cpu in
11362  ia64*)
11363    shrext_cmds='.so'
11364    hardcode_into_libs=yes
11365    dynamic_linker="$host_os dld.so"
11366    shlibpath_var=LD_LIBRARY_PATH
11367    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11368    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11369    soname_spec='$libname$release$shared_ext$major'
11370    if test 32 = "$HPUX_IA64_MODE"; then
11371      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11372      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11373    else
11374      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11375      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11376    fi
11377    ;;
11378  hppa*64*)
11379    shrext_cmds='.sl'
11380    hardcode_into_libs=yes
11381    dynamic_linker="$host_os dld.sl"
11382    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11384    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385    soname_spec='$libname$release$shared_ext$major'
11386    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11387    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11388    ;;
11389  *)
11390    shrext_cmds='.sl'
11391    dynamic_linker="$host_os dld.sl"
11392    shlibpath_var=SHLIB_PATH
11393    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11394    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11395    soname_spec='$libname$release$shared_ext$major'
11396    ;;
11397  esac
11398  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11399  postinstall_cmds='chmod 555 $lib'
11400  # or fails outright, so override atomically:
11401  install_override_mode=555
11402  ;;
11403
11404interix[3-9]*)
11405  version_type=linux # correct to gnu/linux during the next big refactor
11406  need_lib_prefix=no
11407  need_version=no
11408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11409  soname_spec='$libname$release$shared_ext$major'
11410  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11411  shlibpath_var=LD_LIBRARY_PATH
11412  shlibpath_overrides_runpath=no
11413  hardcode_into_libs=yes
11414  ;;
11415
11416irix5* | irix6* | nonstopux*)
11417  case $host_os in
11418    nonstopux*) version_type=nonstopux ;;
11419    *)
11420	if test yes = "$lt_cv_prog_gnu_ld"; then
11421		version_type=linux # correct to gnu/linux during the next big refactor
11422	else
11423		version_type=irix
11424	fi ;;
11425  esac
11426  need_lib_prefix=no
11427  need_version=no
11428  soname_spec='$libname$release$shared_ext$major'
11429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11430  case $host_os in
11431  irix5* | nonstopux*)
11432    libsuff= shlibsuff=
11433    ;;
11434  *)
11435    case $LD in # libtool.m4 will add one of these switches to LD
11436    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11437      libsuff= shlibsuff= libmagic=32-bit;;
11438    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11439      libsuff=32 shlibsuff=N32 libmagic=N32;;
11440    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11441      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11442    *) libsuff= shlibsuff= libmagic=never-match;;
11443    esac
11444    ;;
11445  esac
11446  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11447  shlibpath_overrides_runpath=no
11448  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11449  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11450  hardcode_into_libs=yes
11451  ;;
11452
11453# No shared lib support for Linux oldld, aout, or coff.
11454linux*oldld* | linux*aout* | linux*coff*)
11455  dynamic_linker=no
11456  ;;
11457
11458linux*android*)
11459  version_type=none # Android doesn't support versioned libraries.
11460  need_lib_prefix=no
11461  need_version=no
11462  library_names_spec='$libname$release$shared_ext'
11463  soname_spec='$libname$release$shared_ext'
11464  finish_cmds=
11465  shlibpath_var=LD_LIBRARY_PATH
11466  shlibpath_overrides_runpath=yes
11467
11468  # This implies no fast_install, which is unacceptable.
11469  # Some rework will be needed to allow for fast_install
11470  # before this can be enabled.
11471  hardcode_into_libs=yes
11472
11473  dynamic_linker='Android linker'
11474  # Don't embed -rpath directories since the linker doesn't support them.
11475  hardcode_libdir_flag_spec='-L$libdir'
11476  ;;
11477
11478# This must be glibc/ELF.
11479linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11480  version_type=linux # correct to gnu/linux during the next big refactor
11481  need_lib_prefix=no
11482  need_version=no
11483  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484  soname_spec='$libname$release$shared_ext$major'
11485  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11486  shlibpath_var=LD_LIBRARY_PATH
11487  shlibpath_overrides_runpath=no
11488
11489  # Some binutils ld are patched to set DT_RUNPATH
11490  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11491  $as_echo_n "(cached) " >&6
11492else
11493  lt_cv_shlibpath_overrides_runpath=no
11494    save_LDFLAGS=$LDFLAGS
11495    save_libdir=$libdir
11496    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11497	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11498    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499/* end confdefs.h.  */
11500
11501int
11502main ()
11503{
11504
11505  ;
11506  return 0;
11507}
11508_ACEOF
11509if ac_fn_c_try_link "$LINENO"; then :
11510  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11511  lt_cv_shlibpath_overrides_runpath=yes
11512fi
11513fi
11514rm -f core conftest.err conftest.$ac_objext \
11515    conftest$ac_exeext conftest.$ac_ext
11516    LDFLAGS=$save_LDFLAGS
11517    libdir=$save_libdir
11518
11519fi
11520
11521  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11522
11523  # This implies no fast_install, which is unacceptable.
11524  # Some rework will be needed to allow for fast_install
11525  # before this can be enabled.
11526  hardcode_into_libs=yes
11527
11528  # Ideally, we could use ldconfig to report *all* directores which are
11529  # searched for libraries, however this is still not possible.  Aside from not
11530  # being certain /sbin/ldconfig is available, command
11531  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11532  # even though it is searched at run-time.  Try to do the best guess by
11533  # appending ld.so.conf contents (and includes) to the search path.
11534  if test -f /etc/ld.so.conf; then
11535    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' ' '`
11536    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11537  fi
11538
11539  # We used to test for /lib/ld.so.1 and disable shared libraries on
11540  # powerpc, because MkLinux only supported shared libraries with the
11541  # GNU dynamic linker.  Since this was broken with cross compilers,
11542  # most powerpc-linux boxes support dynamic linking these days and
11543  # people can always --disable-shared, the test was removed, and we
11544  # assume the GNU/Linux dynamic linker is in use.
11545  dynamic_linker='GNU/Linux ld.so'
11546  ;;
11547
11548netbsdelf*-gnu)
11549  version_type=linux
11550  need_lib_prefix=no
11551  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
11555  shlibpath_overrides_runpath=no
11556  hardcode_into_libs=yes
11557  dynamic_linker='NetBSD ld.elf_so'
11558  ;;
11559
11560netbsd*)
11561  version_type=sunos
11562  need_lib_prefix=no
11563  need_version=no
11564  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11565    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11566    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11567    dynamic_linker='NetBSD (a.out) ld.so'
11568  else
11569    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11570    soname_spec='$libname$release$shared_ext$major'
11571    dynamic_linker='NetBSD ld.elf_so'
11572  fi
11573  shlibpath_var=LD_LIBRARY_PATH
11574  shlibpath_overrides_runpath=yes
11575  hardcode_into_libs=yes
11576  ;;
11577
11578newsos6)
11579  version_type=linux # correct to gnu/linux during the next big refactor
11580  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581  shlibpath_var=LD_LIBRARY_PATH
11582  shlibpath_overrides_runpath=yes
11583  ;;
11584
11585*nto* | *qnx*)
11586  version_type=qnx
11587  need_lib_prefix=no
11588  need_version=no
11589  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11590  soname_spec='$libname$release$shared_ext$major'
11591  shlibpath_var=LD_LIBRARY_PATH
11592  shlibpath_overrides_runpath=no
11593  hardcode_into_libs=yes
11594  dynamic_linker='ldqnx.so'
11595  ;;
11596
11597openbsd* | bitrig*)
11598  version_type=sunos
11599  sys_lib_dlsearch_path_spec=/usr/lib
11600  need_lib_prefix=no
11601  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11602    need_version=no
11603  else
11604    need_version=yes
11605  fi
11606  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11607  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11608  shlibpath_var=LD_LIBRARY_PATH
11609  shlibpath_overrides_runpath=yes
11610  ;;
11611
11612os2*)
11613  libname_spec='$name'
11614  version_type=windows
11615  shrext_cmds=.dll
11616  need_version=no
11617  need_lib_prefix=no
11618  # OS/2 can only load a DLL with a base name of 8 characters or less.
11619  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11620    v=$($ECHO $release$versuffix | tr -d .-);
11621    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11622    $ECHO $n$v`$shared_ext'
11623  library_names_spec='${libname}_dll.$libext'
11624  dynamic_linker='OS/2 ld.exe'
11625  shlibpath_var=BEGINLIBPATH
11626  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11627  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11628  postinstall_cmds='base_file=`basename \$file`~
11629    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11630    dldir=$destdir/`dirname \$dlpath`~
11631    test -d \$dldir || mkdir -p \$dldir~
11632    $install_prog $dir/$dlname \$dldir/$dlname~
11633    chmod a+x \$dldir/$dlname~
11634    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11635      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11636    fi'
11637  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11638    dlpath=$dir/\$dldll~
11639    $RM \$dlpath'
11640  ;;
11641
11642osf3* | osf4* | osf5*)
11643  version_type=osf
11644  need_lib_prefix=no
11645  need_version=no
11646  soname_spec='$libname$release$shared_ext$major'
11647  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648  shlibpath_var=LD_LIBRARY_PATH
11649  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11650  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11651  ;;
11652
11653rdos*)
11654  dynamic_linker=no
11655  ;;
11656
11657solaris*)
11658  version_type=linux # correct to gnu/linux during the next big refactor
11659  need_lib_prefix=no
11660  need_version=no
11661  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11662  soname_spec='$libname$release$shared_ext$major'
11663  shlibpath_var=LD_LIBRARY_PATH
11664  shlibpath_overrides_runpath=yes
11665  hardcode_into_libs=yes
11666  # ldd complains unless libraries are executable
11667  postinstall_cmds='chmod +x $lib'
11668  ;;
11669
11670sunos4*)
11671  version_type=sunos
11672  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11673  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11674  shlibpath_var=LD_LIBRARY_PATH
11675  shlibpath_overrides_runpath=yes
11676  if test yes = "$with_gnu_ld"; then
11677    need_lib_prefix=no
11678  fi
11679  need_version=yes
11680  ;;
11681
11682sysv4 | sysv4.3*)
11683  version_type=linux # correct to gnu/linux during the next big refactor
11684  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685  soname_spec='$libname$release$shared_ext$major'
11686  shlibpath_var=LD_LIBRARY_PATH
11687  case $host_vendor in
11688    sni)
11689      shlibpath_overrides_runpath=no
11690      need_lib_prefix=no
11691      runpath_var=LD_RUN_PATH
11692      ;;
11693    siemens)
11694      need_lib_prefix=no
11695      ;;
11696    motorola)
11697      need_lib_prefix=no
11698      need_version=no
11699      shlibpath_overrides_runpath=no
11700      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11701      ;;
11702  esac
11703  ;;
11704
11705sysv4*MP*)
11706  if test -d /usr/nec; then
11707    version_type=linux # correct to gnu/linux during the next big refactor
11708    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11709    soname_spec='$libname$shared_ext.$major'
11710    shlibpath_var=LD_LIBRARY_PATH
11711  fi
11712  ;;
11713
11714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11715  version_type=sco
11716  need_lib_prefix=no
11717  need_version=no
11718  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11719  soname_spec='$libname$release$shared_ext$major'
11720  shlibpath_var=LD_LIBRARY_PATH
11721  shlibpath_overrides_runpath=yes
11722  hardcode_into_libs=yes
11723  if test yes = "$with_gnu_ld"; then
11724    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11725  else
11726    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11727    case $host_os in
11728      sco3.2v5*)
11729        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11730	;;
11731    esac
11732  fi
11733  sys_lib_dlsearch_path_spec='/usr/lib'
11734  ;;
11735
11736tpf*)
11737  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11738  version_type=linux # correct to gnu/linux during the next big refactor
11739  need_lib_prefix=no
11740  need_version=no
11741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11742  shlibpath_var=LD_LIBRARY_PATH
11743  shlibpath_overrides_runpath=no
11744  hardcode_into_libs=yes
11745  ;;
11746
11747uts4*)
11748  version_type=linux # correct to gnu/linux during the next big refactor
11749  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750  soname_spec='$libname$release$shared_ext$major'
11751  shlibpath_var=LD_LIBRARY_PATH
11752  ;;
11753
11754*)
11755  dynamic_linker=no
11756  ;;
11757esac
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11759$as_echo "$dynamic_linker" >&6; }
11760test no = "$dynamic_linker" && can_build_shared=no
11761
11762variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11763if test yes = "$GCC"; then
11764  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11765fi
11766
11767if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11768  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11769fi
11770
11771if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11772  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11773fi
11774
11775# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11776configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11777
11778# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11779func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11780
11781# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11782configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11881$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11882hardcode_action=
11883if test -n "$hardcode_libdir_flag_spec" ||
11884   test -n "$runpath_var" ||
11885   test yes = "$hardcode_automatic"; then
11886
11887  # We can hardcode non-existent directories.
11888  if test no != "$hardcode_direct" &&
11889     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11890     # have to relink, otherwise we might link with an installed library
11891     # when we should be linking with a yet-to-be-installed one
11892     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11893     test no != "$hardcode_minus_L"; then
11894    # Linking always hardcodes the temporary library directory.
11895    hardcode_action=relink
11896  else
11897    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11898    hardcode_action=immediate
11899  fi
11900else
11901  # We cannot hardcode anything, or else we can only hardcode existing
11902  # directories.
11903  hardcode_action=unsupported
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11906$as_echo "$hardcode_action" >&6; }
11907
11908if test relink = "$hardcode_action" ||
11909   test yes = "$inherit_rpath"; then
11910  # Fast installation is not supported
11911  enable_fast_install=no
11912elif test yes = "$shlibpath_overrides_runpath" ||
11913     test no = "$enable_shared"; then
11914  # Fast installation is not necessary
11915  enable_fast_install=needless
11916fi
11917
11918
11919
11920
11921
11922
11923  if test yes != "$enable_dlopen"; then
11924  enable_dlopen=unknown
11925  enable_dlopen_self=unknown
11926  enable_dlopen_self_static=unknown
11927else
11928  lt_cv_dlopen=no
11929  lt_cv_dlopen_libs=
11930
11931  case $host_os in
11932  beos*)
11933    lt_cv_dlopen=load_add_on
11934    lt_cv_dlopen_libs=
11935    lt_cv_dlopen_self=yes
11936    ;;
11937
11938  mingw* | pw32* | cegcc*)
11939    lt_cv_dlopen=LoadLibrary
11940    lt_cv_dlopen_libs=
11941    ;;
11942
11943  cygwin*)
11944    lt_cv_dlopen=dlopen
11945    lt_cv_dlopen_libs=
11946    ;;
11947
11948  darwin*)
11949    # if libdl is installed we need to link against it
11950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11951$as_echo_n "checking for dlopen in -ldl... " >&6; }
11952if ${ac_cv_lib_dl_dlopen+:} false; then :
11953  $as_echo_n "(cached) " >&6
11954else
11955  ac_check_lib_save_LIBS=$LIBS
11956LIBS="-ldl  $LIBS"
11957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958/* end confdefs.h.  */
11959
11960/* Override any GCC internal prototype to avoid an error.
11961   Use char because int might match the return type of a GCC
11962   builtin and then its argument prototype would still apply.  */
11963#ifdef __cplusplus
11964extern "C"
11965#endif
11966char dlopen ();
11967int
11968main ()
11969{
11970return dlopen ();
11971  ;
11972  return 0;
11973}
11974_ACEOF
11975if ac_fn_c_try_link "$LINENO"; then :
11976  ac_cv_lib_dl_dlopen=yes
11977else
11978  ac_cv_lib_dl_dlopen=no
11979fi
11980rm -f core conftest.err conftest.$ac_objext \
11981    conftest$ac_exeext conftest.$ac_ext
11982LIBS=$ac_check_lib_save_LIBS
11983fi
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11985$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11986if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11987  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11988else
11989
11990    lt_cv_dlopen=dyld
11991    lt_cv_dlopen_libs=
11992    lt_cv_dlopen_self=yes
11993
11994fi
11995
11996    ;;
11997
11998  tpf*)
11999    # Don't try to run any link tests for TPF.  We know it's impossible
12000    # because TPF is a cross-compiler, and we know how we open DSOs.
12001    lt_cv_dlopen=dlopen
12002    lt_cv_dlopen_libs=
12003    lt_cv_dlopen_self=no
12004    ;;
12005
12006  *)
12007    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12008if test "x$ac_cv_func_shl_load" = xyes; then :
12009  lt_cv_dlopen=shl_load
12010else
12011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12012$as_echo_n "checking for shl_load in -ldld... " >&6; }
12013if ${ac_cv_lib_dld_shl_load+:} false; then :
12014  $as_echo_n "(cached) " >&6
12015else
12016  ac_check_lib_save_LIBS=$LIBS
12017LIBS="-ldld  $LIBS"
12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020
12021/* Override any GCC internal prototype to avoid an error.
12022   Use char because int might match the return type of a GCC
12023   builtin and then its argument prototype would still apply.  */
12024#ifdef __cplusplus
12025extern "C"
12026#endif
12027char shl_load ();
12028int
12029main ()
12030{
12031return shl_load ();
12032  ;
12033  return 0;
12034}
12035_ACEOF
12036if ac_fn_c_try_link "$LINENO"; then :
12037  ac_cv_lib_dld_shl_load=yes
12038else
12039  ac_cv_lib_dld_shl_load=no
12040fi
12041rm -f core conftest.err conftest.$ac_objext \
12042    conftest$ac_exeext conftest.$ac_ext
12043LIBS=$ac_check_lib_save_LIBS
12044fi
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12046$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12047if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12048  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12049else
12050  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12051if test "x$ac_cv_func_dlopen" = xyes; then :
12052  lt_cv_dlopen=dlopen
12053else
12054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12055$as_echo_n "checking for dlopen in -ldl... " >&6; }
12056if ${ac_cv_lib_dl_dlopen+:} false; then :
12057  $as_echo_n "(cached) " >&6
12058else
12059  ac_check_lib_save_LIBS=$LIBS
12060LIBS="-ldl  $LIBS"
12061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062/* end confdefs.h.  */
12063
12064/* Override any GCC internal prototype to avoid an error.
12065   Use char because int might match the return type of a GCC
12066   builtin and then its argument prototype would still apply.  */
12067#ifdef __cplusplus
12068extern "C"
12069#endif
12070char dlopen ();
12071int
12072main ()
12073{
12074return dlopen ();
12075  ;
12076  return 0;
12077}
12078_ACEOF
12079if ac_fn_c_try_link "$LINENO"; then :
12080  ac_cv_lib_dl_dlopen=yes
12081else
12082  ac_cv_lib_dl_dlopen=no
12083fi
12084rm -f core conftest.err conftest.$ac_objext \
12085    conftest$ac_exeext conftest.$ac_ext
12086LIBS=$ac_check_lib_save_LIBS
12087fi
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12089$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12090if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12091  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12092else
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12094$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12095if ${ac_cv_lib_svld_dlopen+:} false; then :
12096  $as_echo_n "(cached) " >&6
12097else
12098  ac_check_lib_save_LIBS=$LIBS
12099LIBS="-lsvld  $LIBS"
12100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h.  */
12102
12103/* Override any GCC internal prototype to avoid an error.
12104   Use char because int might match the return type of a GCC
12105   builtin and then its argument prototype would still apply.  */
12106#ifdef __cplusplus
12107extern "C"
12108#endif
12109char dlopen ();
12110int
12111main ()
12112{
12113return dlopen ();
12114  ;
12115  return 0;
12116}
12117_ACEOF
12118if ac_fn_c_try_link "$LINENO"; then :
12119  ac_cv_lib_svld_dlopen=yes
12120else
12121  ac_cv_lib_svld_dlopen=no
12122fi
12123rm -f core conftest.err conftest.$ac_objext \
12124    conftest$ac_exeext conftest.$ac_ext
12125LIBS=$ac_check_lib_save_LIBS
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12128$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12129if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12130  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12131else
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12133$as_echo_n "checking for dld_link in -ldld... " >&6; }
12134if ${ac_cv_lib_dld_dld_link+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  ac_check_lib_save_LIBS=$LIBS
12138LIBS="-ldld  $LIBS"
12139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h.  */
12141
12142/* Override any GCC internal prototype to avoid an error.
12143   Use char because int might match the return type of a GCC
12144   builtin and then its argument prototype would still apply.  */
12145#ifdef __cplusplus
12146extern "C"
12147#endif
12148char dld_link ();
12149int
12150main ()
12151{
12152return dld_link ();
12153  ;
12154  return 0;
12155}
12156_ACEOF
12157if ac_fn_c_try_link "$LINENO"; then :
12158  ac_cv_lib_dld_dld_link=yes
12159else
12160  ac_cv_lib_dld_dld_link=no
12161fi
12162rm -f core conftest.err conftest.$ac_objext \
12163    conftest$ac_exeext conftest.$ac_ext
12164LIBS=$ac_check_lib_save_LIBS
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12167$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12168if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12169  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12170fi
12171
12172
12173fi
12174
12175
12176fi
12177
12178
12179fi
12180
12181
12182fi
12183
12184
12185fi
12186
12187    ;;
12188  esac
12189
12190  if test no = "$lt_cv_dlopen"; then
12191    enable_dlopen=no
12192  else
12193    enable_dlopen=yes
12194  fi
12195
12196  case $lt_cv_dlopen in
12197  dlopen)
12198    save_CPPFLAGS=$CPPFLAGS
12199    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12200
12201    save_LDFLAGS=$LDFLAGS
12202    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12203
12204    save_LIBS=$LIBS
12205    LIBS="$lt_cv_dlopen_libs $LIBS"
12206
12207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12208$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12209if ${lt_cv_dlopen_self+:} false; then :
12210  $as_echo_n "(cached) " >&6
12211else
12212  	  if test yes = "$cross_compiling"; then :
12213  lt_cv_dlopen_self=cross
12214else
12215  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12216  lt_status=$lt_dlunknown
12217  cat > conftest.$ac_ext <<_LT_EOF
12218#line $LINENO "configure"
12219#include "confdefs.h"
12220
12221#if HAVE_DLFCN_H
12222#include <dlfcn.h>
12223#endif
12224
12225#include <stdio.h>
12226
12227#ifdef RTLD_GLOBAL
12228#  define LT_DLGLOBAL		RTLD_GLOBAL
12229#else
12230#  ifdef DL_GLOBAL
12231#    define LT_DLGLOBAL		DL_GLOBAL
12232#  else
12233#    define LT_DLGLOBAL		0
12234#  endif
12235#endif
12236
12237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12238   find out it does not work in some platform. */
12239#ifndef LT_DLLAZY_OR_NOW
12240#  ifdef RTLD_LAZY
12241#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12242#  else
12243#    ifdef DL_LAZY
12244#      define LT_DLLAZY_OR_NOW		DL_LAZY
12245#    else
12246#      ifdef RTLD_NOW
12247#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12248#      else
12249#        ifdef DL_NOW
12250#          define LT_DLLAZY_OR_NOW	DL_NOW
12251#        else
12252#          define LT_DLLAZY_OR_NOW	0
12253#        endif
12254#      endif
12255#    endif
12256#  endif
12257#endif
12258
12259/* When -fvisibility=hidden is used, assume the code has been annotated
12260   correspondingly for the symbols needed.  */
12261#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12262int fnord () __attribute__((visibility("default")));
12263#endif
12264
12265int fnord () { return 42; }
12266int main ()
12267{
12268  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12269  int status = $lt_dlunknown;
12270
12271  if (self)
12272    {
12273      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12274      else
12275        {
12276	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12277          else puts (dlerror ());
12278	}
12279      /* dlclose (self); */
12280    }
12281  else
12282    puts (dlerror ());
12283
12284  return status;
12285}
12286_LT_EOF
12287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12288  (eval $ac_link) 2>&5
12289  ac_status=$?
12290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12291  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12292    (./conftest; exit; ) >&5 2>/dev/null
12293    lt_status=$?
12294    case x$lt_status in
12295      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12296      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12297      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12298    esac
12299  else :
12300    # compilation failed
12301    lt_cv_dlopen_self=no
12302  fi
12303fi
12304rm -fr conftest*
12305
12306
12307fi
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12309$as_echo "$lt_cv_dlopen_self" >&6; }
12310
12311    if test yes = "$lt_cv_dlopen_self"; then
12312      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12313      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12314$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12315if ${lt_cv_dlopen_self_static+:} false; then :
12316  $as_echo_n "(cached) " >&6
12317else
12318  	  if test yes = "$cross_compiling"; then :
12319  lt_cv_dlopen_self_static=cross
12320else
12321  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12322  lt_status=$lt_dlunknown
12323  cat > conftest.$ac_ext <<_LT_EOF
12324#line $LINENO "configure"
12325#include "confdefs.h"
12326
12327#if HAVE_DLFCN_H
12328#include <dlfcn.h>
12329#endif
12330
12331#include <stdio.h>
12332
12333#ifdef RTLD_GLOBAL
12334#  define LT_DLGLOBAL		RTLD_GLOBAL
12335#else
12336#  ifdef DL_GLOBAL
12337#    define LT_DLGLOBAL		DL_GLOBAL
12338#  else
12339#    define LT_DLGLOBAL		0
12340#  endif
12341#endif
12342
12343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12344   find out it does not work in some platform. */
12345#ifndef LT_DLLAZY_OR_NOW
12346#  ifdef RTLD_LAZY
12347#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12348#  else
12349#    ifdef DL_LAZY
12350#      define LT_DLLAZY_OR_NOW		DL_LAZY
12351#    else
12352#      ifdef RTLD_NOW
12353#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12354#      else
12355#        ifdef DL_NOW
12356#          define LT_DLLAZY_OR_NOW	DL_NOW
12357#        else
12358#          define LT_DLLAZY_OR_NOW	0
12359#        endif
12360#      endif
12361#    endif
12362#  endif
12363#endif
12364
12365/* When -fvisibility=hidden is used, assume the code has been annotated
12366   correspondingly for the symbols needed.  */
12367#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12368int fnord () __attribute__((visibility("default")));
12369#endif
12370
12371int fnord () { return 42; }
12372int main ()
12373{
12374  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12375  int status = $lt_dlunknown;
12376
12377  if (self)
12378    {
12379      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12380      else
12381        {
12382	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12383          else puts (dlerror ());
12384	}
12385      /* dlclose (self); */
12386    }
12387  else
12388    puts (dlerror ());
12389
12390  return status;
12391}
12392_LT_EOF
12393  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12394  (eval $ac_link) 2>&5
12395  ac_status=$?
12396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12397  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12398    (./conftest; exit; ) >&5 2>/dev/null
12399    lt_status=$?
12400    case x$lt_status in
12401      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12402      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12403      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12404    esac
12405  else :
12406    # compilation failed
12407    lt_cv_dlopen_self_static=no
12408  fi
12409fi
12410rm -fr conftest*
12411
12412
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12415$as_echo "$lt_cv_dlopen_self_static" >&6; }
12416    fi
12417
12418    CPPFLAGS=$save_CPPFLAGS
12419    LDFLAGS=$save_LDFLAGS
12420    LIBS=$save_LIBS
12421    ;;
12422  esac
12423
12424  case $lt_cv_dlopen_self in
12425  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12426  *) enable_dlopen_self=unknown ;;
12427  esac
12428
12429  case $lt_cv_dlopen_self_static in
12430  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12431  *) enable_dlopen_self_static=unknown ;;
12432  esac
12433fi
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451striplib=
12452old_striplib=
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12454$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12455if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12456  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12457  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12459$as_echo "yes" >&6; }
12460else
12461# FIXME - insert some real tests, host_os isn't really good enough
12462  case $host_os in
12463  darwin*)
12464    if test -n "$STRIP"; then
12465      striplib="$STRIP -x"
12466      old_striplib="$STRIP -S"
12467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12468$as_echo "yes" >&6; }
12469    else
12470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471$as_echo "no" >&6; }
12472    fi
12473    ;;
12474  *)
12475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476$as_echo "no" >&6; }
12477    ;;
12478  esac
12479fi
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492  # Report what library types will actually be built
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12494$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12496$as_echo "$can_build_shared" >&6; }
12497
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12499$as_echo_n "checking whether to build shared libraries... " >&6; }
12500  test no = "$can_build_shared" && enable_shared=no
12501
12502  # On AIX, shared libraries and static libraries use the same namespace, and
12503  # are all built from PIC.
12504  case $host_os in
12505  aix3*)
12506    test yes = "$enable_shared" && enable_static=no
12507    if test -n "$RANLIB"; then
12508      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12509      postinstall_cmds='$RANLIB $lib'
12510    fi
12511    ;;
12512
12513  aix[4-9]*)
12514    if test ia64 != "$host_cpu"; then
12515      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12516      yes,aix,yes) ;;			# shared object as lib.so file only
12517      yes,svr4,*) ;;			# shared object as lib.so archive member only
12518      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12519      esac
12520    fi
12521    ;;
12522  esac
12523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12524$as_echo "$enable_shared" >&6; }
12525
12526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12527$as_echo_n "checking whether to build static libraries... " >&6; }
12528  # Make sure either enable_shared or enable_static is yes.
12529  test yes = "$enable_shared" || enable_static=yes
12530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12531$as_echo "$enable_static" >&6; }
12532
12533
12534
12535
12536fi
12537ac_ext=c
12538ac_cpp='$CPP $CPPFLAGS'
12539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12541ac_compiler_gnu=$ac_cv_c_compiler_gnu
12542
12543CC=$lt_save_CC
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559        ac_config_commands="$ac_config_commands libtool"
12560
12561
12562
12563
12564# Only expand once:
12565
12566
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12568$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12569if ${libltdl_cv_shlibext+:} false; then :
12570  $as_echo_n "(cached) " >&6
12571else
12572
12573module=yes
12574eval libltdl_cv_shlibext=$shrext_cmds
12575module=no
12576eval libltdl_cv_shrext=$shrext_cmds
12577
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12580$as_echo "$libltdl_cv_shlibext" >&6; }
12581if test -n "$libltdl_cv_shlibext"; then
12582
12583cat >>confdefs.h <<_ACEOF
12584#define LT_MODULE_EXT "$libltdl_cv_shlibext"
12585_ACEOF
12586
12587fi
12588if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12589
12590cat >>confdefs.h <<_ACEOF
12591#define LT_SHARED_EXT "$libltdl_cv_shrext"
12592_ACEOF
12593
12594fi
12595if test -n "$shared_archive_member_spec"; then
12596
12597cat >>confdefs.h <<_ACEOF
12598#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12599_ACEOF
12600
12601fi
12602
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12604$as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12605if ${lt_cv_module_path_var+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  lt_cv_module_path_var=$shlibpath_var
12609fi
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12611$as_echo "$lt_cv_module_path_var" >&6; }
12612if test -n "$lt_cv_module_path_var"; then
12613
12614cat >>confdefs.h <<_ACEOF
12615#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12616_ACEOF
12617
12618fi
12619
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12621$as_echo_n "checking for the default library search path... " >&6; }
12622if ${lt_cv_sys_dlsearch_path+:} false; then :
12623  $as_echo_n "(cached) " >&6
12624else
12625  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12626fi
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12628$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12629if test -n "$lt_cv_sys_dlsearch_path"; then
12630  sys_dlsearch_path=
12631  for dir in $lt_cv_sys_dlsearch_path; do
12632    if test -z "$sys_dlsearch_path"; then
12633      sys_dlsearch_path=$dir
12634    else
12635      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12636    fi
12637  done
12638
12639cat >>confdefs.h <<_ACEOF
12640#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12641_ACEOF
12642
12643fi
12644
12645
12646LT_DLLOADERS=
12647
12648
12649ac_ext=c
12650ac_cpp='$CPP $CPPFLAGS'
12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655lt_dlload_save_LIBS=$LIBS
12656
12657LIBADD_DLOPEN=
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12659$as_echo_n "checking for library containing dlopen... " >&6; }
12660if ${ac_cv_search_dlopen+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  ac_func_search_save_LIBS=$LIBS
12664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665/* end confdefs.h.  */
12666
12667/* Override any GCC internal prototype to avoid an error.
12668   Use char because int might match the return type of a GCC
12669   builtin and then its argument prototype would still apply.  */
12670#ifdef __cplusplus
12671extern "C"
12672#endif
12673char dlopen ();
12674int
12675main ()
12676{
12677return dlopen ();
12678  ;
12679  return 0;
12680}
12681_ACEOF
12682for ac_lib in '' dl; do
12683  if test -z "$ac_lib"; then
12684    ac_res="none required"
12685  else
12686    ac_res=-l$ac_lib
12687    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12688  fi
12689  if ac_fn_c_try_link "$LINENO"; then :
12690  ac_cv_search_dlopen=$ac_res
12691fi
12692rm -f core conftest.err conftest.$ac_objext \
12693    conftest$ac_exeext
12694  if ${ac_cv_search_dlopen+:} false; then :
12695  break
12696fi
12697done
12698if ${ac_cv_search_dlopen+:} false; then :
12699
12700else
12701  ac_cv_search_dlopen=no
12702fi
12703rm conftest.$ac_ext
12704LIBS=$ac_func_search_save_LIBS
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12707$as_echo "$ac_cv_search_dlopen" >&6; }
12708ac_res=$ac_cv_search_dlopen
12709if test "$ac_res" != no; then :
12710  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12711
12712$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12713
12714	if test "$ac_cv_search_dlopen" != "none required"; then
12715	  LIBADD_DLOPEN=-ldl
12716	fi
12717	libltdl_cv_lib_dl_dlopen=yes
12718	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12719else
12720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h.  */
12722#if HAVE_DLFCN_H
12723#  include <dlfcn.h>
12724#endif
12725
12726int
12727main ()
12728{
12729dlopen(0, 0);
12730  ;
12731  return 0;
12732}
12733_ACEOF
12734if ac_fn_c_try_link "$LINENO"; then :
12735
12736$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12737
12738	    libltdl_cv_func_dlopen=yes
12739	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12740else
12741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12742$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12743if ${ac_cv_lib_svld_dlopen+:} false; then :
12744  $as_echo_n "(cached) " >&6
12745else
12746  ac_check_lib_save_LIBS=$LIBS
12747LIBS="-lsvld  $LIBS"
12748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749/* end confdefs.h.  */
12750
12751/* Override any GCC internal prototype to avoid an error.
12752   Use char because int might match the return type of a GCC
12753   builtin and then its argument prototype would still apply.  */
12754#ifdef __cplusplus
12755extern "C"
12756#endif
12757char dlopen ();
12758int
12759main ()
12760{
12761return dlopen ();
12762  ;
12763  return 0;
12764}
12765_ACEOF
12766if ac_fn_c_try_link "$LINENO"; then :
12767  ac_cv_lib_svld_dlopen=yes
12768else
12769  ac_cv_lib_svld_dlopen=no
12770fi
12771rm -f core conftest.err conftest.$ac_objext \
12772    conftest$ac_exeext conftest.$ac_ext
12773LIBS=$ac_check_lib_save_LIBS
12774fi
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12776$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12777if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12778
12779$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12780
12781	        LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12782		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12783fi
12784
12785fi
12786rm -f core conftest.err conftest.$ac_objext \
12787    conftest$ac_exeext conftest.$ac_ext
12788fi
12789
12790if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12791then
12792  lt_save_LIBS=$LIBS
12793  LIBS="$LIBS $LIBADD_DLOPEN"
12794  for ac_func in dlerror
12795do :
12796  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12797if test "x$ac_cv_func_dlerror" = xyes; then :
12798  cat >>confdefs.h <<_ACEOF
12799#define HAVE_DLERROR 1
12800_ACEOF
12801
12802fi
12803done
12804
12805  LIBS=$lt_save_LIBS
12806fi
12807
12808
12809LIBADD_SHL_LOAD=
12810ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12811if test "x$ac_cv_func_shl_load" = xyes; then :
12812
12813$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12814
12815	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12816else
12817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12818$as_echo_n "checking for shl_load in -ldld... " >&6; }
12819if ${ac_cv_lib_dld_shl_load+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  ac_check_lib_save_LIBS=$LIBS
12823LIBS="-ldld  $LIBS"
12824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825/* end confdefs.h.  */
12826
12827/* Override any GCC internal prototype to avoid an error.
12828   Use char because int might match the return type of a GCC
12829   builtin and then its argument prototype would still apply.  */
12830#ifdef __cplusplus
12831extern "C"
12832#endif
12833char shl_load ();
12834int
12835main ()
12836{
12837return shl_load ();
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842if ac_fn_c_try_link "$LINENO"; then :
12843  ac_cv_lib_dld_shl_load=yes
12844else
12845  ac_cv_lib_dld_shl_load=no
12846fi
12847rm -f core conftest.err conftest.$ac_objext \
12848    conftest$ac_exeext conftest.$ac_ext
12849LIBS=$ac_check_lib_save_LIBS
12850fi
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12852$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12853if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12854
12855$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12856
12857	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12858	    LIBADD_SHL_LOAD=-ldld
12859fi
12860
12861fi
12862
12863
12864
12865case $host_os in
12866darwin[1567].*)
12867# We only want this for pre-Mac OS X 10.4.
12868  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12869if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12870
12871$as_echo "#define HAVE_DYLD 1" >>confdefs.h
12872
12873	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12874fi
12875
12876  ;;
12877beos*)
12878  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12879  ;;
12880cygwin* | mingw* | pw32*)
12881  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12882"
12883if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12884  ac_have_decl=1
12885else
12886  ac_have_decl=0
12887fi
12888
12889cat >>confdefs.h <<_ACEOF
12890#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12891_ACEOF
12892
12893  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12894  ;;
12895esac
12896
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12898$as_echo_n "checking for dld_link in -ldld... " >&6; }
12899if ${ac_cv_lib_dld_dld_link+:} false; then :
12900  $as_echo_n "(cached) " >&6
12901else
12902  ac_check_lib_save_LIBS=$LIBS
12903LIBS="-ldld  $LIBS"
12904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906
12907/* Override any GCC internal prototype to avoid an error.
12908   Use char because int might match the return type of a GCC
12909   builtin and then its argument prototype would still apply.  */
12910#ifdef __cplusplus
12911extern "C"
12912#endif
12913char dld_link ();
12914int
12915main ()
12916{
12917return dld_link ();
12918  ;
12919  return 0;
12920}
12921_ACEOF
12922if ac_fn_c_try_link "$LINENO"; then :
12923  ac_cv_lib_dld_dld_link=yes
12924else
12925  ac_cv_lib_dld_dld_link=no
12926fi
12927rm -f core conftest.err conftest.$ac_objext \
12928    conftest$ac_exeext conftest.$ac_ext
12929LIBS=$ac_check_lib_save_LIBS
12930fi
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12932$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12933if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12934
12935$as_echo "#define HAVE_DLD 1" >>confdefs.h
12936
12937		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12938fi
12939
12940
12941
12942
12943LT_DLPREOPEN=
12944if test -n "$LT_DLLOADERS"
12945then
12946  for lt_loader in $LT_DLLOADERS; do
12947    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12948  done
12949
12950$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12951
12952fi
12953
12954
12955LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12956
12957
12958LIBS=$lt_dlload_save_LIBS
12959ac_ext=c
12960ac_cpp='$CPP $CPPFLAGS'
12961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12967$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12968if ${lt_cv_sys_symbol_underscore+:} false; then :
12969  $as_echo_n "(cached) " >&6
12970else
12971  lt_cv_sys_symbol_underscore=no
12972  cat > conftest.$ac_ext <<_LT_EOF
12973void nm_test_func(){}
12974int main(){nm_test_func;return 0;}
12975_LT_EOF
12976  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12977  (eval $ac_compile) 2>&5
12978  ac_status=$?
12979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12980  test $ac_status = 0; }; then
12981    # Now try to grab the symbols.
12982    ac_nlist=conftest.nm
12983    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12984  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12985  ac_status=$?
12986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987  test $ac_status = 0; } && test -s "$ac_nlist"; then
12988      # See whether the symbols have a leading underscore.
12989      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12990        lt_cv_sys_symbol_underscore=yes
12991      else
12992        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12993	  :
12994        else
12995	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12996        fi
12997      fi
12998    else
12999      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13000    fi
13001  else
13002    echo "configure: failed program was:" >&5
13003    cat conftest.c >&5
13004  fi
13005  rm -rf conftest*
13006
13007fi
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13009$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13010  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13011
13012
13013if test yes = "$lt_cv_sys_symbol_underscore"; then
13014  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
13015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13016$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13017if ${libltdl_cv_need_uscore+:} false; then :
13018  $as_echo_n "(cached) " >&6
13019else
13020  libltdl_cv_need_uscore=unknown
13021      dlsym_uscore_save_LIBS=$LIBS
13022      LIBS="$LIBS $LIBADD_DLOPEN"
13023      libname=conftmod # stay within 8.3 filename limits!
13024      cat >$libname.$ac_ext <<_LT_EOF
13025#line $LINENO "configure"
13026#include "confdefs.h"
13027/* When -fvisibility=hidden is used, assume the code has been annotated
13028   correspondingly for the symbols needed.  */
13029#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13030int fnord () __attribute__((visibility("default")));
13031#endif
13032int fnord () { return 42; }
13033_LT_EOF
13034
13035      # ltfn_module_cmds module_cmds
13036      # Execute tilde-delimited MODULE_CMDS with environment primed for
13037      # $module_cmds or $archive_cmds type content.
13038      ltfn_module_cmds ()
13039      {( # subshell avoids polluting parent global environment
13040          module_cmds_save_ifs=$IFS; IFS='~'
13041          for cmd in $1; do
13042            IFS=$module_cmds_save_ifs
13043            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13044            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13045            major=; versuffix=; verstring=; deplibs=
13046            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13047            eval $cmd
13048          done
13049          IFS=$module_cmds_save_ifs
13050      )}
13051
13052      # Compile a loadable module using libtool macro expansion results.
13053      $CC $pic_flag -c $libname.$ac_ext
13054      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13055
13056      # Try to fetch fnord with dlsym().
13057      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13058      cat >conftest.$ac_ext <<_LT_EOF
13059#line $LINENO "configure"
13060#include "confdefs.h"
13061#if HAVE_DLFCN_H
13062#include <dlfcn.h>
13063#endif
13064#include <stdio.h>
13065#ifndef RTLD_GLOBAL
13066#  ifdef DL_GLOBAL
13067#    define RTLD_GLOBAL DL_GLOBAL
13068#  else
13069#    define RTLD_GLOBAL 0
13070#  endif
13071#endif
13072#ifndef RTLD_NOW
13073#  ifdef DL_NOW
13074#    define RTLD_NOW DL_NOW
13075#  else
13076#    define RTLD_NOW 0
13077#  endif
13078#endif
13079int main () {
13080  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13081  int status = $libltdl_dlunknown;
13082  if (handle) {
13083    if (dlsym (handle, "fnord"))
13084      status = $libltdl_dlnouscore;
13085    else {
13086      if (dlsym (handle, "_fnord"))
13087        status = $libltdl_dluscore;
13088      else
13089	puts (dlerror ());
13090    }
13091    dlclose (handle);
13092  } else
13093    puts (dlerror ());
13094  return status;
13095}
13096_LT_EOF
13097      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13098  (eval $ac_link) 2>&5
13099  ac_status=$?
13100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13101  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13102        (./conftest; exit; ) >&5 2>/dev/null
13103        libltdl_status=$?
13104        case x$libltdl_status in
13105          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13106	  x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13107	  x*) libltdl_cv_need_uscore=unknown ;;
13108        esac
13109      fi
13110      rm -rf conftest* $libname*
13111      LIBS=$dlsym_uscore_save_LIBS
13112
13113fi
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
13115$as_echo "$libltdl_cv_need_uscore" >&6; }
13116  fi
13117fi
13118
13119if test yes = "$libltdl_cv_need_uscore"; then
13120
13121$as_echo "#define NEED_USCORE 1" >>confdefs.h
13122
13123fi
13124
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
13126$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
13127if ${lt_cv_sys_dlopen_deplibs+:} false; then :
13128  $as_echo_n "(cached) " >&6
13129else
13130  # PORTME does your system automatically load deplibs for dlopen?
13131  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
13132  # For now, we just catch OSes we know something about -- in the
13133  # future, we'll try test this programmatically.
13134  lt_cv_sys_dlopen_deplibs=unknown
13135  case $host_os in
13136  aix3*|aix4.1.*|aix4.2.*)
13137    # Unknown whether this is true for these versions of AIX, but
13138    # we want this 'case' here to explicitly catch those versions.
13139    lt_cv_sys_dlopen_deplibs=unknown
13140    ;;
13141  aix[4-9]*)
13142    lt_cv_sys_dlopen_deplibs=yes
13143    ;;
13144  amigaos*)
13145    case $host_cpu in
13146    powerpc)
13147      lt_cv_sys_dlopen_deplibs=no
13148      ;;
13149    esac
13150    ;;
13151  bitrig*)
13152    lt_cv_sys_dlopen_deplibs=yes
13153    ;;
13154  darwin*)
13155    # Assuming the user has installed a libdl from somewhere, this is true
13156    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
13157    lt_cv_sys_dlopen_deplibs=yes
13158    ;;
13159  freebsd* | dragonfly*)
13160    lt_cv_sys_dlopen_deplibs=yes
13161    ;;
13162  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
13163    # GNU and its variants, using gnu ld.so (Glibc)
13164    lt_cv_sys_dlopen_deplibs=yes
13165    ;;
13166  hpux10*|hpux11*)
13167    lt_cv_sys_dlopen_deplibs=yes
13168    ;;
13169  interix*)
13170    lt_cv_sys_dlopen_deplibs=yes
13171    ;;
13172  irix[12345]*|irix6.[01]*)
13173    # Catch all versions of IRIX before 6.2, and indicate that we don't
13174    # know how it worked for any of those versions.
13175    lt_cv_sys_dlopen_deplibs=unknown
13176    ;;
13177  irix*)
13178    # The case above catches anything before 6.2, and it's known that
13179    # at 6.2 and later dlopen does load deplibs.
13180    lt_cv_sys_dlopen_deplibs=yes
13181    ;;
13182  netbsd* | netbsdelf*-gnu)
13183    lt_cv_sys_dlopen_deplibs=yes
13184    ;;
13185  openbsd*)
13186    lt_cv_sys_dlopen_deplibs=yes
13187    ;;
13188  osf[1234]*)
13189    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13190    # it did *not* use an RPATH in a shared library to find objects the
13191    # library depends on, so we explicitly say 'no'.
13192    lt_cv_sys_dlopen_deplibs=no
13193    ;;
13194  osf5.0|osf5.0a|osf5.1)
13195    # dlopen *does* load deplibs and with the right loader patch applied
13196    # it even uses RPATH in a shared library to search for shared objects
13197    # that the library depends on, but there's no easy way to know if that
13198    # patch is installed.  Since this is the case, all we can really
13199    # say is unknown -- it depends on the patch being installed.  If
13200    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13201    lt_cv_sys_dlopen_deplibs=unknown
13202    ;;
13203  osf*)
13204    # the two cases above should catch all versions of osf <= 5.1.  Read
13205    # the comments above for what we know about them.
13206    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13207    # is used to find them so we can finally say 'yes'.
13208    lt_cv_sys_dlopen_deplibs=yes
13209    ;;
13210  qnx*)
13211    lt_cv_sys_dlopen_deplibs=yes
13212    ;;
13213  solaris*)
13214    lt_cv_sys_dlopen_deplibs=yes
13215    ;;
13216  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13217    libltdl_cv_sys_dlopen_deplibs=yes
13218    ;;
13219  esac
13220
13221fi
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13223$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13224if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13225
13226$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13227
13228fi
13229
13230
13231for ac_header in argz.h
13232do :
13233  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
13234"
13235if test "x$ac_cv_header_argz_h" = xyes; then :
13236  cat >>confdefs.h <<_ACEOF
13237#define HAVE_ARGZ_H 1
13238_ACEOF
13239
13240fi
13241
13242done
13243
13244
13245ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
13246#  include <argz.h>
13247#endif
13248"
13249if test "x$ac_cv_type_error_t" = xyes; then :
13250
13251cat >>confdefs.h <<_ACEOF
13252#define HAVE_ERROR_T 1
13253_ACEOF
13254
13255
13256else
13257
13258$as_echo "#define error_t int" >>confdefs.h
13259
13260
13261$as_echo "#define __error_t_defined 1" >>confdefs.h
13262
13263fi
13264
13265
13266LT_ARGZ_H=
13267for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13268	argz_next argz_stringify
13269do :
13270  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13271ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13272if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13273  cat >>confdefs.h <<_ACEOF
13274#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13275_ACEOF
13276
13277else
13278  LT_ARGZ_H=lt__argz.h;
13279
13280  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13281
13282fi
13283done
13284
13285
13286if test -z "$LT_ARGZ_H"; then :
13287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13288$as_echo_n "checking if argz actually works... " >&6; }
13289if ${lt_cv_sys_argz_works+:} false; then :
13290  $as_echo_n "(cached) " >&6
13291else
13292  case $host_os in #(
13293	 *cygwin*)
13294	   lt_cv_sys_argz_works=no
13295	   if test no != "$cross_compiling"; then
13296	     lt_cv_sys_argz_works="guessing no"
13297	   else
13298	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13299	     save_IFS=$IFS
13300	     IFS=-.
13301	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13302	     IFS=$save_IFS
13303	     lt_os_major=${2-0}
13304	     lt_os_minor=${3-0}
13305	     lt_os_micro=${4-0}
13306	     if test 1 -lt "$lt_os_major" \
13307		|| { test 1 -eq "$lt_os_major" \
13308		  && { test 5 -lt "$lt_os_minor" \
13309		    || { test 5 -eq "$lt_os_minor" \
13310		      && test 24 -lt "$lt_os_micro"; }; }; }; then
13311	       lt_cv_sys_argz_works=yes
13312	     fi
13313	   fi
13314	   ;; #(
13315	 *) lt_cv_sys_argz_works=yes ;;
13316	 esac
13317fi
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13319$as_echo "$lt_cv_sys_argz_works" >&6; }
13320     if test yes = "$lt_cv_sys_argz_works"; then :
13321
13322$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13323
13324else
13325  LT_ARGZ_H=lt__argz.h
13326
13327
13328  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13329
13330fi
13331fi
13332
13333
13334
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13336$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13337if ${libltdl_cv_preloaded_symbols+:} false; then :
13338  $as_echo_n "(cached) " >&6
13339else
13340  if test -n "$lt_cv_sys_global_symbol_pipe"; then
13341    libltdl_cv_preloaded_symbols=yes
13342  else
13343    libltdl_cv_preloaded_symbols=no
13344  fi
13345
13346fi
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13348$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13349if test yes = "$libltdl_cv_preloaded_symbols"; then
13350
13351$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13352
13353fi
13354
13355# Set options
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367# Check whether --with-included_ltdl was given.
13368if test "${with_included_ltdl+set}" = set; then :
13369  withval=$with_included_ltdl;
13370fi
13371
13372
13373if test yes != "$with_included_ltdl"; then
13374  # We are not being forced to use the included libltdl sources, so
13375  # decide whether there is a useful installed version we can use.
13376  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13377
13378"
13379if test "x$ac_cv_header_ltdl_h" = xyes; then :
13380  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13381	    #include <ltdl.h>
13382"
13383if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13385$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13386if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13387  $as_echo_n "(cached) " >&6
13388else
13389  ac_check_lib_save_LIBS=$LIBS
13390LIBS="-lltdl  $LIBS"
13391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392/* end confdefs.h.  */
13393
13394/* Override any GCC internal prototype to avoid an error.
13395   Use char because int might match the return type of a GCC
13396   builtin and then its argument prototype would still apply.  */
13397#ifdef __cplusplus
13398extern "C"
13399#endif
13400char lt_dladvise_preload ();
13401int
13402main ()
13403{
13404return lt_dladvise_preload ();
13405  ;
13406  return 0;
13407}
13408_ACEOF
13409if ac_fn_c_try_link "$LINENO"; then :
13410  ac_cv_lib_ltdl_lt_dladvise_preload=yes
13411else
13412  ac_cv_lib_ltdl_lt_dladvise_preload=no
13413fi
13414rm -f core conftest.err conftest.$ac_objext \
13415    conftest$ac_exeext conftest.$ac_ext
13416LIBS=$ac_check_lib_save_LIBS
13417fi
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13419$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13420if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13421  with_included_ltdl=no
13422else
13423  with_included_ltdl=yes
13424fi
13425
13426else
13427  with_included_ltdl=yes
13428fi
13429
13430else
13431  with_included_ltdl=yes
13432fi
13433
13434
13435fi
13436
13437
13438
13439
13440# Check whether --with-ltdl_include was given.
13441if test "${with_ltdl_include+set}" = set; then :
13442  withval=$with_ltdl_include;
13443fi
13444
13445
13446if test -n "$with_ltdl_include"; then
13447  if test -f "$with_ltdl_include/ltdl.h"; then :
13448  else
13449    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13450  fi
13451else
13452  with_ltdl_include=no
13453fi
13454
13455
13456# Check whether --with-ltdl_lib was given.
13457if test "${with_ltdl_lib+set}" = set; then :
13458  withval=$with_ltdl_lib;
13459fi
13460
13461
13462if test -n "$with_ltdl_lib"; then
13463  if test -f "$with_ltdl_lib/libltdl.la"; then :
13464  else
13465    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13466  fi
13467else
13468  with_ltdl_lib=no
13469fi
13470
13471case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13472  ,yes,no,no,)
13473	case $enable_ltdl_convenience in
13474  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13475  "") enable_ltdl_convenience=yes
13476      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13477esac
13478LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13479LTDLDEPS=$LIBLTDL
13480LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13481
13482
13483
13484
13485
13486# For backwards non-gettext consistent compatibility...
13487INCLTDL=$LTDLINCL
13488
13489
13490	;;
13491  ,no,no,no,)
13492	# If the included ltdl is not to be used, then use the
13493	# preinstalled libltdl we found.
13494
13495$as_echo "#define HAVE_LTDL 1" >>confdefs.h
13496
13497	LIBLTDL=-lltdl
13498	LTDLDEPS=
13499	LTDLINCL=
13500	;;
13501  ,no*,no,*)
13502	as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13503	;;
13504  *)	with_included_ltdl=no
13505	LIBLTDL="-L$with_ltdl_lib -lltdl"
13506	LTDLDEPS=
13507	LTDLINCL=-I$with_ltdl_include
13508	;;
13509esac
13510INCLTDL=$LTDLINCL
13511
13512# Report our decision...
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13514$as_echo_n "checking where to find libltdl headers... " >&6; }
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13516$as_echo "$LTDLINCL" >&6; }
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13518$as_echo_n "checking where to find libltdl library... " >&6; }
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13520$as_echo "$LIBLTDL" >&6; }
13521
13522
13523
13524# Check whether --enable-ltdl-install was given.
13525if test "${enable_ltdl_install+set}" = set; then :
13526  enableval=$enable_ltdl_install;
13527fi
13528
13529
13530case ,$enable_ltdl_install,$enable_ltdl_convenience in
13531  *yes*) ;;
13532  *) enable_ltdl_convenience=yes ;;
13533esac
13534
13535 if test no != "${enable_ltdl_install-no}"; then
13536  INSTALL_LTDL_TRUE=
13537  INSTALL_LTDL_FALSE='#'
13538else
13539  INSTALL_LTDL_TRUE='#'
13540  INSTALL_LTDL_FALSE=
13541fi
13542
13543  if test no != "${enable_ltdl_convenience-no}"; then
13544  CONVENIENCE_LTDL_TRUE=
13545  CONVENIENCE_LTDL_FALSE='#'
13546else
13547  CONVENIENCE_LTDL_TRUE='#'
13548  CONVENIENCE_LTDL_FALSE=
13549fi
13550
13551
13552
13553
13554
13555
13556# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13557# the user used.  This is so that ltdl.h can pick up the parent projects
13558# config.h file, The first file in AC_CONFIG_HEADERS must contain the
13559# definitions required by ltdl.c.
13560# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13561
13562
13563
13564for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13565do :
13566  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13567ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13568"
13569if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13570  cat >>confdefs.h <<_ACEOF
13571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13572_ACEOF
13573
13574fi
13575
13576done
13577
13578
13579for ac_func in closedir opendir readdir
13580do :
13581  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13582ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13583if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13584  cat >>confdefs.h <<_ACEOF
13585#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13586_ACEOF
13587
13588else
13589
13590
13591  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13592
13593fi
13594done
13595
13596for ac_func in strlcat strlcpy
13597do :
13598  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13599ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13600if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13601  cat >>confdefs.h <<_ACEOF
13602#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603_ACEOF
13604
13605else
13606
13607
13608  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13609
13610fi
13611done
13612
13613
13614
13615cat >>confdefs.h <<_ACEOF
13616#define LT_LIBEXT "$libext"
13617_ACEOF
13618
13619
13620name=
13621eval "lt_libprefix=\"$libname_spec\""
13622
13623cat >>confdefs.h <<_ACEOF
13624#define LT_LIBPREFIX "$lt_libprefix"
13625_ACEOF
13626
13627
13628name=ltdl
13629eval "LTDLOPEN=\"$libname_spec\""
13630
13631
13632
13633
13634
13635
13636
13637
13638# Only expand once:
13639
13640
13641LIBTOOL="$LIBTOOL --silent"
13642
13643# Checks for libraries.
13644
13645
13646  if test "X$CC" != "X"; then
13647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13648$as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13649if ${ssp_cv_cc+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652  ssp_old_cflags="$CFLAGS"
13653       CFLAGS="$CFLAGS -fstack-protector-strong"
13654       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655/* end confdefs.h.  */
13656
13657int
13658main ()
13659{
13660
13661  ;
13662  return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_compile "$LINENO"; then :
13666  ssp_cv_cc=yes
13667else
13668  ssp_cv_cc=no
13669fi
13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671       CFLAGS="$ssp_old_cflags"
13672
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13675$as_echo "$ssp_cv_cc" >&6; }
13676    if test $ssp_cv_cc = yes; then
13677      CFLAGS="$CFLAGS -fstack-protector-strong"
13678
13679$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13680
13681    else
13682      unset ssp_cv_cc
13683      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13684$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13685if ${ssp_cv_cc+:} false; then :
13686  $as_echo_n "(cached) " >&6
13687else
13688  ssp_old_cflags="$CFLAGS"
13689         CFLAGS="$CFLAGS -fstack-protector"
13690         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h.  */
13692
13693int
13694main ()
13695{
13696
13697  ;
13698  return 0;
13699}
13700_ACEOF
13701if ac_fn_c_try_compile "$LINENO"; then :
13702  ssp_cv_cc=yes
13703else
13704  ssp_cv_cc=no
13705fi
13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707         CFLAGS="$ssp_old_cflags"
13708
13709fi
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13711$as_echo "$ssp_cv_cc" >&6; }
13712      if test $ssp_cv_cc = yes; then
13713        CFLAGS="$CFLAGS -fstack-protector"
13714
13715$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13716
13717      fi
13718    fi
13719  fi
13720
13721
13722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13723$as_echo_n "checking whether libssp exists... " >&6; }
13724if ${ssp_cv_lib+:} false; then :
13725  $as_echo_n "(cached) " >&6
13726else
13727  ssp_old_libs="$LIBS"
13728     LIBS="$LIBS -lssp"
13729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730/* end confdefs.h.  */
13731
13732int
13733main ()
13734{
13735
13736  ;
13737  return 0;
13738}
13739_ACEOF
13740if ac_fn_c_try_link "$LINENO"; then :
13741  ssp_cv_lib=yes
13742else
13743  ssp_cv_lib=no
13744fi
13745rm -f core conftest.err conftest.$ac_objext \
13746    conftest$ac_exeext conftest.$ac_ext
13747     LIBS="$ssp_old_libs"
13748
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13751$as_echo "$ssp_cv_lib" >&6; }
13752  if test $ssp_cv_lib = yes; then
13753    LIBS="$LIBS -lssp"
13754  fi
13755
13756
13757  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13758if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13759
13760else
13761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13762$as_echo_n "checking for library containing getaddrinfo... " >&6; }
13763if ${ac_cv_search_getaddrinfo+:} false; then :
13764  $as_echo_n "(cached) " >&6
13765else
13766  ac_func_search_save_LIBS=$LIBS
13767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768/* end confdefs.h.  */
13769
13770/* Override any GCC internal prototype to avoid an error.
13771   Use char because int might match the return type of a GCC
13772   builtin and then its argument prototype would still apply.  */
13773#ifdef __cplusplus
13774extern "C"
13775#endif
13776char getaddrinfo ();
13777int
13778main ()
13779{
13780return getaddrinfo ();
13781  ;
13782  return 0;
13783}
13784_ACEOF
13785for ac_lib in '' nsl; do
13786  if test -z "$ac_lib"; then
13787    ac_res="none required"
13788  else
13789    ac_res=-l$ac_lib
13790    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13791  fi
13792  if ac_fn_c_try_link "$LINENO"; then :
13793  ac_cv_search_getaddrinfo=$ac_res
13794fi
13795rm -f core conftest.err conftest.$ac_objext \
13796    conftest$ac_exeext
13797  if ${ac_cv_search_getaddrinfo+:} false; then :
13798  break
13799fi
13800done
13801if ${ac_cv_search_getaddrinfo+:} false; then :
13802
13803else
13804  ac_cv_search_getaddrinfo=no
13805fi
13806rm conftest.$ac_ext
13807LIBS=$ac_func_search_save_LIBS
13808fi
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13810$as_echo "$ac_cv_search_getaddrinfo" >&6; }
13811ac_res=$ac_cv_search_getaddrinfo
13812if test "$ac_res" != no; then :
13813  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13814
13815fi
13816
13817fi
13818
13819  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13820if test "x$ac_cv_func_getnameinfo" = xyes; then :
13821
13822else
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13824$as_echo_n "checking for library containing getnameinfo... " >&6; }
13825if ${ac_cv_search_getnameinfo+:} false; then :
13826  $as_echo_n "(cached) " >&6
13827else
13828  ac_func_search_save_LIBS=$LIBS
13829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830/* end confdefs.h.  */
13831
13832/* Override any GCC internal prototype to avoid an error.
13833   Use char because int might match the return type of a GCC
13834   builtin and then its argument prototype would still apply.  */
13835#ifdef __cplusplus
13836extern "C"
13837#endif
13838char getnameinfo ();
13839int
13840main ()
13841{
13842return getnameinfo ();
13843  ;
13844  return 0;
13845}
13846_ACEOF
13847for ac_lib in '' nsl; do
13848  if test -z "$ac_lib"; then
13849    ac_res="none required"
13850  else
13851    ac_res=-l$ac_lib
13852    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13853  fi
13854  if ac_fn_c_try_link "$LINENO"; then :
13855  ac_cv_search_getnameinfo=$ac_res
13856fi
13857rm -f core conftest.err conftest.$ac_objext \
13858    conftest$ac_exeext
13859  if ${ac_cv_search_getnameinfo+:} false; then :
13860  break
13861fi
13862done
13863if ${ac_cv_search_getnameinfo+:} false; then :
13864
13865else
13866  ac_cv_search_getnameinfo=no
13867fi
13868rm conftest.$ac_ext
13869LIBS=$ac_func_search_save_LIBS
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13872$as_echo "$ac_cv_search_getnameinfo" >&6; }
13873ac_res=$ac_cv_search_getnameinfo
13874if test "$ac_res" != no; then :
13875  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13876
13877fi
13878
13879fi
13880
13881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13882$as_echo_n "checking for library containing socket... " >&6; }
13883if ${ac_cv_search_socket+:} false; then :
13884  $as_echo_n "(cached) " >&6
13885else
13886  ac_func_search_save_LIBS=$LIBS
13887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889
13890/* Override any GCC internal prototype to avoid an error.
13891   Use char because int might match the return type of a GCC
13892   builtin and then its argument prototype would still apply.  */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char socket ();
13897int
13898main ()
13899{
13900return socket ();
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905for ac_lib in '' socket; do
13906  if test -z "$ac_lib"; then
13907    ac_res="none required"
13908  else
13909    ac_res=-l$ac_lib
13910    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13911  fi
13912  if ac_fn_c_try_link "$LINENO"; then :
13913  ac_cv_search_socket=$ac_res
13914fi
13915rm -f core conftest.err conftest.$ac_objext \
13916    conftest$ac_exeext
13917  if ${ac_cv_search_socket+:} false; then :
13918  break
13919fi
13920done
13921if ${ac_cv_search_socket+:} false; then :
13922
13923else
13924  ac_cv_search_socket=no
13925fi
13926rm conftest.$ac_ext
13927LIBS=$ac_func_search_save_LIBS
13928fi
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13930$as_echo "$ac_cv_search_socket" >&6; }
13931ac_res=$ac_cv_search_socket
13932if test "$ac_res" != no; then :
13933  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13934
13935else
13936  as_fn_error $? "socket library not found" "$LINENO" 5
13937fi
13938
13939
13940
13941# Checks for typedefs, structures, and compiler characteristics.
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13943$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13944if ${ac_cv_c_bigendian+:} false; then :
13945  $as_echo_n "(cached) " >&6
13946else
13947  ac_cv_c_bigendian=unknown
13948    # See if we're dealing with a universal compiler.
13949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950/* end confdefs.h.  */
13951#ifndef __APPLE_CC__
13952	       not a universal capable compiler
13953	     #endif
13954	     typedef int dummy;
13955
13956_ACEOF
13957if ac_fn_c_try_compile "$LINENO"; then :
13958
13959	# Check for potential -arch flags.  It is not universal unless
13960	# there are at least two -arch flags with different values.
13961	ac_arch=
13962	ac_prev=
13963	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13964	 if test -n "$ac_prev"; then
13965	   case $ac_word in
13966	     i?86 | x86_64 | ppc | ppc64)
13967	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13968		 ac_arch=$ac_word
13969	       else
13970		 ac_cv_c_bigendian=universal
13971		 break
13972	       fi
13973	       ;;
13974	   esac
13975	   ac_prev=
13976	 elif test "x$ac_word" = "x-arch"; then
13977	   ac_prev=arch
13978	 fi
13979       done
13980fi
13981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982    if test $ac_cv_c_bigendian = unknown; then
13983      # See if sys/param.h defines the BYTE_ORDER macro.
13984      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985/* end confdefs.h.  */
13986#include <sys/types.h>
13987	     #include <sys/param.h>
13988
13989int
13990main ()
13991{
13992#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13993		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13994		     && LITTLE_ENDIAN)
13995	      bogus endian macros
13996	     #endif
13997
13998  ;
13999  return 0;
14000}
14001_ACEOF
14002if ac_fn_c_try_compile "$LINENO"; then :
14003  # It does; now see whether it defined to BIG_ENDIAN or not.
14004	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005/* end confdefs.h.  */
14006#include <sys/types.h>
14007		#include <sys/param.h>
14008
14009int
14010main ()
14011{
14012#if BYTE_ORDER != BIG_ENDIAN
14013		 not big endian
14014		#endif
14015
14016  ;
14017  return 0;
14018}
14019_ACEOF
14020if ac_fn_c_try_compile "$LINENO"; then :
14021  ac_cv_c_bigendian=yes
14022else
14023  ac_cv_c_bigendian=no
14024fi
14025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026fi
14027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028    fi
14029    if test $ac_cv_c_bigendian = unknown; then
14030      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14031      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032/* end confdefs.h.  */
14033#include <limits.h>
14034
14035int
14036main ()
14037{
14038#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14039	      bogus endian macros
14040	     #endif
14041
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_compile "$LINENO"; then :
14047  # It does; now see whether it defined to _BIG_ENDIAN or not.
14048	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h.  */
14050#include <limits.h>
14051
14052int
14053main ()
14054{
14055#ifndef _BIG_ENDIAN
14056		 not big endian
14057		#endif
14058
14059  ;
14060  return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_compile "$LINENO"; then :
14064  ac_cv_c_bigendian=yes
14065else
14066  ac_cv_c_bigendian=no
14067fi
14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069fi
14070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071    fi
14072    if test $ac_cv_c_bigendian = unknown; then
14073      # Compile a test program.
14074      if test "$cross_compiling" = yes; then :
14075  # Try to guess by grepping values from an object file.
14076	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077/* end confdefs.h.  */
14078short int ascii_mm[] =
14079		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14080		short int ascii_ii[] =
14081		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14082		int use_ascii (int i) {
14083		  return ascii_mm[i] + ascii_ii[i];
14084		}
14085		short int ebcdic_ii[] =
14086		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14087		short int ebcdic_mm[] =
14088		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14089		int use_ebcdic (int i) {
14090		  return ebcdic_mm[i] + ebcdic_ii[i];
14091		}
14092		extern int foo;
14093
14094int
14095main ()
14096{
14097return use_ascii (foo) == use_ebcdic (foo);
14098  ;
14099  return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_compile "$LINENO"; then :
14103  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14104	      ac_cv_c_bigendian=yes
14105	    fi
14106	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14107	      if test "$ac_cv_c_bigendian" = unknown; then
14108		ac_cv_c_bigendian=no
14109	      else
14110		# finding both strings is unlikely to happen, but who knows?
14111		ac_cv_c_bigendian=unknown
14112	      fi
14113	    fi
14114fi
14115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116else
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119$ac_includes_default
14120int
14121main ()
14122{
14123
14124	     /* Are we little or big endian?  From Harbison&Steele.  */
14125	     union
14126	     {
14127	       long int l;
14128	       char c[sizeof (long int)];
14129	     } u;
14130	     u.l = 1;
14131	     return u.c[sizeof (long int) - 1] == 1;
14132
14133  ;
14134  return 0;
14135}
14136_ACEOF
14137if ac_fn_c_try_run "$LINENO"; then :
14138  ac_cv_c_bigendian=no
14139else
14140  ac_cv_c_bigendian=yes
14141fi
14142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14143  conftest.$ac_objext conftest.beam conftest.$ac_ext
14144fi
14145
14146    fi
14147fi
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14149$as_echo "$ac_cv_c_bigendian" >&6; }
14150 case $ac_cv_c_bigendian in #(
14151   yes)
14152     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14153;; #(
14154   no)
14155      ;; #(
14156   universal)
14157
14158$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14159
14160     ;; #(
14161   *)
14162     as_fn_error $? "unknown endianness
14163 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14164 esac
14165
14166
14167# Checks for library functions.
14168
14169
14170
14171  for ac_func in $ac_func_list
14172do :
14173  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14175if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14176  cat >>confdefs.h <<_ACEOF
14177#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14178_ACEOF
14179
14180fi
14181done
14182
14183
14184
14185
14186
14187
14188
14189# Checks for header files.
14190
14191
14192
14193  for ac_header in $ac_header_list
14194do :
14195  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14196ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14197"
14198if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14199  cat >>confdefs.h <<_ACEOF
14200#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14201_ACEOF
14202
14203fi
14204
14205done
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14220$as_echo_n "checking for library containing crypt... " >&6; }
14221if ${ac_cv_search_crypt+:} false; then :
14222  $as_echo_n "(cached) " >&6
14223else
14224  ac_func_search_save_LIBS=$LIBS
14225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226/* end confdefs.h.  */
14227
14228/* Override any GCC internal prototype to avoid an error.
14229   Use char because int might match the return type of a GCC
14230   builtin and then its argument prototype would still apply.  */
14231#ifdef __cplusplus
14232extern "C"
14233#endif
14234char crypt ();
14235int
14236main ()
14237{
14238return crypt ();
14239  ;
14240  return 0;
14241}
14242_ACEOF
14243for ac_lib in '' crypt; do
14244  if test -z "$ac_lib"; then
14245    ac_res="none required"
14246  else
14247    ac_res=-l$ac_lib
14248    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14249  fi
14250  if ac_fn_c_try_link "$LINENO"; then :
14251  ac_cv_search_crypt=$ac_res
14252fi
14253rm -f core conftest.err conftest.$ac_objext \
14254    conftest$ac_exeext
14255  if ${ac_cv_search_crypt+:} false; then :
14256  break
14257fi
14258done
14259if ${ac_cv_search_crypt+:} false; then :
14260
14261else
14262  ac_cv_search_crypt=no
14263fi
14264rm conftest.$ac_ext
14265LIBS=$ac_func_search_save_LIBS
14266fi
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14268$as_echo "$ac_cv_search_crypt" >&6; }
14269ac_res=$ac_cv_search_crypt
14270if test "$ac_res" != no; then :
14271  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14272
14273fi
14274
14275
14276# Set -Werror=unknown-warning-option for clang so subsequent
14277# AX_APPEND_COMPILE_FLAGS executions work properly.
14278
14279
14280
14281
14282for flag in -Werror=unknown-warning-option; do
14283  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14285$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14286if eval \${$as_CACHEVAR+:} false; then :
14287  $as_echo_n "(cached) " >&6
14288else
14289
14290  ax_check_save_flags=$CFLAGS
14291  CFLAGS="$CFLAGS  $flag"
14292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293/* end confdefs.h.  */
14294
14295int
14296main ()
14297{
14298
14299  ;
14300  return 0;
14301}
14302_ACEOF
14303if ac_fn_c_try_compile "$LINENO"; then :
14304  eval "$as_CACHEVAR=yes"
14305else
14306  eval "$as_CACHEVAR=no"
14307fi
14308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14309  CFLAGS=$ax_check_save_flags
14310fi
14311eval ac_res=\$$as_CACHEVAR
14312	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14313$as_echo "$ac_res" >&6; }
14314if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14315
14316if ${CFLAGS+:} false; then :
14317
14318  case " $CFLAGS " in #(
14319  *" $flag "*) :
14320    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14321  (: CFLAGS already contains $flag) 2>&5
14322  ac_status=$?
14323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14324  test $ac_status = 0; } ;; #(
14325  *) :
14326
14327     as_fn_append CFLAGS " $flag"
14328     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14329  (: CFLAGS="$CFLAGS") 2>&5
14330  ac_status=$?
14331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14332  test $ac_status = 0; }
14333     ;;
14334esac
14335
14336else
14337
14338  CFLAGS=$flag
14339  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14340  (: CFLAGS="$CFLAGS") 2>&5
14341  ac_status=$?
14342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343  test $ac_status = 0; }
14344
14345fi
14346
14347else
14348  :
14349fi
14350
14351done
14352
14353# Disable -Wformat-truncation specifically for gcc.
14354
14355
14356
14357
14358for flag in -Wno-format-truncation; do
14359  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14361$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14362if eval \${$as_CACHEVAR+:} false; then :
14363  $as_echo_n "(cached) " >&6
14364else
14365
14366  ax_check_save_flags=$CFLAGS
14367  CFLAGS="$CFLAGS  $flag"
14368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h.  */
14370
14371int
14372main ()
14373{
14374
14375  ;
14376  return 0;
14377}
14378_ACEOF
14379if ac_fn_c_try_compile "$LINENO"; then :
14380  eval "$as_CACHEVAR=yes"
14381else
14382  eval "$as_CACHEVAR=no"
14383fi
14384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385  CFLAGS=$ax_check_save_flags
14386fi
14387eval ac_res=\$$as_CACHEVAR
14388	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14389$as_echo "$ac_res" >&6; }
14390if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14391
14392if ${CFLAGS+:} false; then :
14393
14394  case " $CFLAGS " in #(
14395  *" $flag "*) :
14396    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14397  (: CFLAGS already contains $flag) 2>&5
14398  ac_status=$?
14399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14400  test $ac_status = 0; } ;; #(
14401  *) :
14402
14403     as_fn_append CFLAGS " $flag"
14404     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14405  (: CFLAGS="$CFLAGS") 2>&5
14406  ac_status=$?
14407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14408  test $ac_status = 0; }
14409     ;;
14410esac
14411
14412else
14413
14414  CFLAGS=$flag
14415  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14416  (: CFLAGS="$CFLAGS") 2>&5
14417  ac_status=$?
14418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14419  test $ac_status = 0; }
14420
14421fi
14422
14423else
14424  :
14425fi
14426
14427done
14428
14429
14430# Argument processing.
14431
14432  desired_iopoll_mechanism="none"
14433
14434  # Check whether --enable-kqueue was given.
14435if test "${enable_kqueue+set}" = set; then :
14436  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14437fi
14438
14439  # Check whether --enable-epoll was given.
14440if test "${enable_epoll+set}" = set; then :
14441  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14442fi
14443
14444  # Check whether --enable-devpoll was given.
14445if test "${enable_devpoll+set}" = set; then :
14446  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14447fi
14448
14449  # Check whether --enable-poll was given.
14450if test "${enable_poll+set}" = set; then :
14451  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14452fi
14453
14454
14455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14456$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14457
14458  iopoll_mechanism_none=0
14459
14460cat >>confdefs.h <<_ACEOF
14461#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14462_ACEOF
14463
14464
14465  iopoll_mechanism_kqueue=1
14466
14467cat >>confdefs.h <<_ACEOF
14468#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14469_ACEOF
14470
14471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h.  */
14473/* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14474   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14475#define kevent innocuous_kevent
14476
14477/* System header to define __stub macros and hopefully few prototypes,
14478    which can conflict with char kevent (); below.
14479    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14480    <limits.h> exists even on freestanding compilers.  */
14481
14482#ifdef __STDC__
14483# include <limits.h>
14484#else
14485# include <assert.h>
14486#endif
14487
14488#undef kevent
14489
14490/* Override any GCC internal prototype to avoid an error.
14491   Use char because int might match the return type of a GCC
14492   builtin and then its argument prototype would still apply.  */
14493#ifdef __cplusplus
14494extern "C"
14495#endif
14496char kevent ();
14497/* The GNU C library defines this for functions which it implements
14498    to always fail with ENOSYS.  Some functions are actually named
14499    something starting with __ and the normal name is an alias.  */
14500#if defined __stub_kevent || defined __stub___kevent
14501choke me
14502#endif
14503
14504int
14505main ()
14506{
14507return kevent ();
14508  ;
14509  return 0;
14510}
14511_ACEOF
14512if ac_fn_c_try_link "$LINENO"; then :
14513  is_kqueue_mechanism_available="yes"
14514else
14515  is_kqueue_mechanism_available="no"
14516fi
14517rm -f core conftest.err conftest.$ac_objext \
14518    conftest$ac_exeext conftest.$ac_ext
14519
14520  iopoll_mechanism_epoll=2
14521
14522cat >>confdefs.h <<_ACEOF
14523#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14524_ACEOF
14525
14526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h.  */
14528#include <sys/epoll.h>
14529int
14530main ()
14531{
14532epoll_create1(EPOLL_CLOEXEC);
14533  ;
14534  return 0;
14535}
14536_ACEOF
14537if ac_fn_c_try_link "$LINENO"; then :
14538  is_epoll_mechanism_available="yes"
14539else
14540  is_epoll_mechanism_available="no"
14541fi
14542rm -f core conftest.err conftest.$ac_objext \
14543    conftest$ac_exeext conftest.$ac_ext
14544
14545  iopoll_mechanism_devpoll=3
14546
14547cat >>confdefs.h <<_ACEOF
14548#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14549_ACEOF
14550
14551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552/* end confdefs.h.  */
14553#include <devpoll.h>
14554int
14555main ()
14556{
14557
14558  ;
14559  return 0;
14560}
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"; then :
14563  is_devpoll_mechanism_available="yes"
14564else
14565  is_devpoll_mechanism_available="no"
14566fi
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568  if test "$is_devpoll_mechanism_available" = "yes" ; then
14569
14570$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14571
14572  fi
14573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575#include <sys/devpoll.h>
14576int
14577main ()
14578{
14579
14580  ;
14581  return 0;
14582}
14583_ACEOF
14584if ac_fn_c_try_compile "$LINENO"; then :
14585  is_devpoll_mechanism_available="yes"
14586else
14587  is_devpoll_mechanism_available="no"
14588fi
14589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590  if test "$is_devpoll_mechanism_available" = "yes" ; then
14591
14592$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14593
14594  fi
14595
14596  iopoll_mechanism_poll=4
14597
14598cat >>confdefs.h <<_ACEOF
14599#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14600_ACEOF
14601
14602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603/* end confdefs.h.  */
14604/* Define poll to an innocuous variant, in case <limits.h> declares poll.
14605   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14606#define poll innocuous_poll
14607
14608/* System header to define __stub macros and hopefully few prototypes,
14609    which can conflict with char poll (); below.
14610    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14611    <limits.h> exists even on freestanding compilers.  */
14612
14613#ifdef __STDC__
14614# include <limits.h>
14615#else
14616# include <assert.h>
14617#endif
14618
14619#undef poll
14620
14621/* Override any GCC internal prototype to avoid an error.
14622   Use char because int might match the return type of a GCC
14623   builtin and then its argument prototype would still apply.  */
14624#ifdef __cplusplus
14625extern "C"
14626#endif
14627char poll ();
14628/* The GNU C library defines this for functions which it implements
14629    to always fail with ENOSYS.  Some functions are actually named
14630    something starting with __ and the normal name is an alias.  */
14631#if defined __stub_poll || defined __stub___poll
14632choke me
14633#endif
14634
14635int
14636main ()
14637{
14638return poll ();
14639  ;
14640  return 0;
14641}
14642_ACEOF
14643if ac_fn_c_try_link "$LINENO"; then :
14644  is_poll_mechanism_available="yes"
14645else
14646  is_poll_mechanism_available="no"
14647fi
14648rm -f core conftest.err conftest.$ac_objext \
14649    conftest$ac_exeext conftest.$ac_ext
14650
14651  optimal_iopoll_mechanism="none"
14652  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14653    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14654    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14655      optimal_iopoll_mechanism="$mechanism"
14656      break
14657    fi
14658  done
14659
14660  if test "$desired_iopoll_mechanism" = "none" ; then
14661    if test "$optimal_iopoll_mechanism" = "none" ; then
14662      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14663$as_echo "none" >&6; }
14664      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14665    else
14666      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14668$as_echo "$selected_iopoll_mechanism" >&6; }
14669    fi
14670  else
14671    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14672    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14673      selected_iopoll_mechanism=$desired_iopoll_mechanism
14674      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14675$as_echo "$selected_iopoll_mechanism" >&6; }
14676    else
14677      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14678$as_echo "none" >&6; }
14679      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14680    fi
14681  fi
14682
14683  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14684
14685cat >>confdefs.h <<_ACEOF
14686#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14687_ACEOF
14688
14689
14690
14691  # Check whether --enable-assert was given.
14692if test "${enable_assert+set}" = set; then :
14693  enableval=$enable_assert; assert=$enableval
14694else
14695  assert=no
14696fi
14697
14698
14699  if test "$assert" = "no"; then :
14700
14701$as_echo "#define NDEBUG 1" >>confdefs.h
14702
14703fi
14704
14705
14706  # Check whether --enable-debugging was given.
14707if test "${enable_debugging+set}" = set; then :
14708  enableval=$enable_debugging; debugging="$enableval"
14709else
14710  debugging="no"
14711fi
14712
14713
14714  if test "$debugging" = "yes"; then :
14715
14716    CFLAGS=$(echo "$CFLAGS" | sed -e 's/-O[0-9s]*//g')
14717    CFLAGS=$(echo "$CFLAGS" | sed -e 's/-g[0-9]*//g')
14718
14719if ${CFLAGS+:} false; then :
14720
14721  case " $CFLAGS " in #(
14722  *" -g -O0 "*) :
14723    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -g -O0"; } >&5
14724  (: CFLAGS already contains -g -O0) 2>&5
14725  ac_status=$?
14726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727  test $ac_status = 0; } ;; #(
14728  *) :
14729
14730     as_fn_append CFLAGS " -g -O0"
14731     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14732  (: CFLAGS="$CFLAGS") 2>&5
14733  ac_status=$?
14734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14735  test $ac_status = 0; }
14736     ;;
14737esac
14738
14739else
14740
14741  CFLAGS=-g -O0
14742  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14743  (: CFLAGS="$CFLAGS") 2>&5
14744  ac_status=$?
14745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14746  test $ac_status = 0; }
14747
14748fi
14749
14750
14751fi
14752
14753
14754  # Check whether --enable-warnings was given.
14755if test "${enable_warnings+set}" = set; then :
14756  enableval=$enable_warnings; warnings="$enableval"
14757else
14758  warnings="no"
14759fi
14760
14761
14762  if test "$warnings" = "yes"; then :
14763
14764
14765
14766
14767
14768for flag in -Wall; do
14769  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14771$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14772if eval \${$as_CACHEVAR+:} false; then :
14773  $as_echo_n "(cached) " >&6
14774else
14775
14776  ax_check_save_flags=$CFLAGS
14777  CFLAGS="$CFLAGS  $flag"
14778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780
14781int
14782main ()
14783{
14784
14785  ;
14786  return 0;
14787}
14788_ACEOF
14789if ac_fn_c_try_compile "$LINENO"; then :
14790  eval "$as_CACHEVAR=yes"
14791else
14792  eval "$as_CACHEVAR=no"
14793fi
14794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795  CFLAGS=$ax_check_save_flags
14796fi
14797eval ac_res=\$$as_CACHEVAR
14798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14799$as_echo "$ac_res" >&6; }
14800if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14801
14802if ${CFLAGS+:} false; then :
14803
14804  case " $CFLAGS " in #(
14805  *" $flag "*) :
14806    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14807  (: CFLAGS already contains $flag) 2>&5
14808  ac_status=$?
14809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810  test $ac_status = 0; } ;; #(
14811  *) :
14812
14813     as_fn_append CFLAGS " $flag"
14814     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14815  (: CFLAGS="$CFLAGS") 2>&5
14816  ac_status=$?
14817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14818  test $ac_status = 0; }
14819     ;;
14820esac
14821
14822else
14823
14824  CFLAGS=$flag
14825  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14826  (: CFLAGS="$CFLAGS") 2>&5
14827  ac_status=$?
14828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14829  test $ac_status = 0; }
14830
14831fi
14832
14833else
14834  :
14835fi
14836
14837done
14838
14839
14840
14841
14842
14843for flag in -Wbad-function-cast; do
14844  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14846$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14847if eval \${$as_CACHEVAR+:} false; then :
14848  $as_echo_n "(cached) " >&6
14849else
14850
14851  ax_check_save_flags=$CFLAGS
14852  CFLAGS="$CFLAGS  $flag"
14853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854/* end confdefs.h.  */
14855
14856int
14857main ()
14858{
14859
14860  ;
14861  return 0;
14862}
14863_ACEOF
14864if ac_fn_c_try_compile "$LINENO"; then :
14865  eval "$as_CACHEVAR=yes"
14866else
14867  eval "$as_CACHEVAR=no"
14868fi
14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870  CFLAGS=$ax_check_save_flags
14871fi
14872eval ac_res=\$$as_CACHEVAR
14873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14874$as_echo "$ac_res" >&6; }
14875if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14876
14877if ${CFLAGS+:} false; then :
14878
14879  case " $CFLAGS " in #(
14880  *" $flag "*) :
14881    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14882  (: CFLAGS already contains $flag) 2>&5
14883  ac_status=$?
14884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14885  test $ac_status = 0; } ;; #(
14886  *) :
14887
14888     as_fn_append CFLAGS " $flag"
14889     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14890  (: CFLAGS="$CFLAGS") 2>&5
14891  ac_status=$?
14892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14893  test $ac_status = 0; }
14894     ;;
14895esac
14896
14897else
14898
14899  CFLAGS=$flag
14900  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14901  (: CFLAGS="$CFLAGS") 2>&5
14902  ac_status=$?
14903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14904  test $ac_status = 0; }
14905
14906fi
14907
14908else
14909  :
14910fi
14911
14912done
14913
14914
14915
14916
14917
14918for flag in -Wcast-align; do
14919  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14921$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14922if eval \${$as_CACHEVAR+:} false; then :
14923  $as_echo_n "(cached) " >&6
14924else
14925
14926  ax_check_save_flags=$CFLAGS
14927  CFLAGS="$CFLAGS  $flag"
14928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929/* end confdefs.h.  */
14930
14931int
14932main ()
14933{
14934
14935  ;
14936  return 0;
14937}
14938_ACEOF
14939if ac_fn_c_try_compile "$LINENO"; then :
14940  eval "$as_CACHEVAR=yes"
14941else
14942  eval "$as_CACHEVAR=no"
14943fi
14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945  CFLAGS=$ax_check_save_flags
14946fi
14947eval ac_res=\$$as_CACHEVAR
14948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14949$as_echo "$ac_res" >&6; }
14950if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14951
14952if ${CFLAGS+:} false; then :
14953
14954  case " $CFLAGS " in #(
14955  *" $flag "*) :
14956    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14957  (: CFLAGS already contains $flag) 2>&5
14958  ac_status=$?
14959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14960  test $ac_status = 0; } ;; #(
14961  *) :
14962
14963     as_fn_append CFLAGS " $flag"
14964     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14965  (: CFLAGS="$CFLAGS") 2>&5
14966  ac_status=$?
14967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14968  test $ac_status = 0; }
14969     ;;
14970esac
14971
14972else
14973
14974  CFLAGS=$flag
14975  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14976  (: CFLAGS="$CFLAGS") 2>&5
14977  ac_status=$?
14978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14979  test $ac_status = 0; }
14980
14981fi
14982
14983else
14984  :
14985fi
14986
14987done
14988
14989
14990
14991
14992
14993for flag in -Wcast-function-type; do
14994  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14996$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14997if eval \${$as_CACHEVAR+:} false; then :
14998  $as_echo_n "(cached) " >&6
14999else
15000
15001  ax_check_save_flags=$CFLAGS
15002  CFLAGS="$CFLAGS  $flag"
15003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h.  */
15005
15006int
15007main ()
15008{
15009
15010  ;
15011  return 0;
15012}
15013_ACEOF
15014if ac_fn_c_try_compile "$LINENO"; then :
15015  eval "$as_CACHEVAR=yes"
15016else
15017  eval "$as_CACHEVAR=no"
15018fi
15019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020  CFLAGS=$ax_check_save_flags
15021fi
15022eval ac_res=\$$as_CACHEVAR
15023	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15024$as_echo "$ac_res" >&6; }
15025if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15026
15027if ${CFLAGS+:} false; then :
15028
15029  case " $CFLAGS " in #(
15030  *" $flag "*) :
15031    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15032  (: CFLAGS already contains $flag) 2>&5
15033  ac_status=$?
15034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035  test $ac_status = 0; } ;; #(
15036  *) :
15037
15038     as_fn_append CFLAGS " $flag"
15039     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15040  (: CFLAGS="$CFLAGS") 2>&5
15041  ac_status=$?
15042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15043  test $ac_status = 0; }
15044     ;;
15045esac
15046
15047else
15048
15049  CFLAGS=$flag
15050  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15051  (: CFLAGS="$CFLAGS") 2>&5
15052  ac_status=$?
15053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054  test $ac_status = 0; }
15055
15056fi
15057
15058else
15059  :
15060fi
15061
15062done
15063
15064
15065
15066
15067
15068for flag in -Wcast-qual; do
15069  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15071$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15072if eval \${$as_CACHEVAR+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075
15076  ax_check_save_flags=$CFLAGS
15077  CFLAGS="$CFLAGS  $flag"
15078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h.  */
15080
15081int
15082main ()
15083{
15084
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_compile "$LINENO"; then :
15090  eval "$as_CACHEVAR=yes"
15091else
15092  eval "$as_CACHEVAR=no"
15093fi
15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095  CFLAGS=$ax_check_save_flags
15096fi
15097eval ac_res=\$$as_CACHEVAR
15098	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15099$as_echo "$ac_res" >&6; }
15100if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15101
15102if ${CFLAGS+:} false; then :
15103
15104  case " $CFLAGS " in #(
15105  *" $flag "*) :
15106    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15107  (: CFLAGS already contains $flag) 2>&5
15108  ac_status=$?
15109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110  test $ac_status = 0; } ;; #(
15111  *) :
15112
15113     as_fn_append CFLAGS " $flag"
15114     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15115  (: CFLAGS="$CFLAGS") 2>&5
15116  ac_status=$?
15117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15118  test $ac_status = 0; }
15119     ;;
15120esac
15121
15122else
15123
15124  CFLAGS=$flag
15125  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15126  (: CFLAGS="$CFLAGS") 2>&5
15127  ac_status=$?
15128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15129  test $ac_status = 0; }
15130
15131fi
15132
15133else
15134  :
15135fi
15136
15137done
15138
15139
15140
15141
15142
15143for flag in -Wclobbered; do
15144  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15146$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15147if eval \${$as_CACHEVAR+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150
15151  ax_check_save_flags=$CFLAGS
15152  CFLAGS="$CFLAGS  $flag"
15153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h.  */
15155
15156int
15157main ()
15158{
15159
15160  ;
15161  return 0;
15162}
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"; then :
15165  eval "$as_CACHEVAR=yes"
15166else
15167  eval "$as_CACHEVAR=no"
15168fi
15169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170  CFLAGS=$ax_check_save_flags
15171fi
15172eval ac_res=\$$as_CACHEVAR
15173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15174$as_echo "$ac_res" >&6; }
15175if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15176
15177if ${CFLAGS+:} false; then :
15178
15179  case " $CFLAGS " in #(
15180  *" $flag "*) :
15181    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15182  (: CFLAGS already contains $flag) 2>&5
15183  ac_status=$?
15184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15185  test $ac_status = 0; } ;; #(
15186  *) :
15187
15188     as_fn_append CFLAGS " $flag"
15189     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15190  (: CFLAGS="$CFLAGS") 2>&5
15191  ac_status=$?
15192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193  test $ac_status = 0; }
15194     ;;
15195esac
15196
15197else
15198
15199  CFLAGS=$flag
15200  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15201  (: CFLAGS="$CFLAGS") 2>&5
15202  ac_status=$?
15203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15204  test $ac_status = 0; }
15205
15206fi
15207
15208else
15209  :
15210fi
15211
15212done
15213
15214
15215
15216
15217
15218for flag in -Wduplicated-cond; do
15219  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15221$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15222if eval \${$as_CACHEVAR+:} false; then :
15223  $as_echo_n "(cached) " >&6
15224else
15225
15226  ax_check_save_flags=$CFLAGS
15227  CFLAGS="$CFLAGS  $flag"
15228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230
15231int
15232main ()
15233{
15234
15235  ;
15236  return 0;
15237}
15238_ACEOF
15239if ac_fn_c_try_compile "$LINENO"; then :
15240  eval "$as_CACHEVAR=yes"
15241else
15242  eval "$as_CACHEVAR=no"
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245  CFLAGS=$ax_check_save_flags
15246fi
15247eval ac_res=\$$as_CACHEVAR
15248	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15249$as_echo "$ac_res" >&6; }
15250if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15251
15252if ${CFLAGS+:} false; then :
15253
15254  case " $CFLAGS " in #(
15255  *" $flag "*) :
15256    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15257  (: CFLAGS already contains $flag) 2>&5
15258  ac_status=$?
15259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15260  test $ac_status = 0; } ;; #(
15261  *) :
15262
15263     as_fn_append CFLAGS " $flag"
15264     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15265  (: CFLAGS="$CFLAGS") 2>&5
15266  ac_status=$?
15267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15268  test $ac_status = 0; }
15269     ;;
15270esac
15271
15272else
15273
15274  CFLAGS=$flag
15275  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15276  (: CFLAGS="$CFLAGS") 2>&5
15277  ac_status=$?
15278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15279  test $ac_status = 0; }
15280
15281fi
15282
15283else
15284  :
15285fi
15286
15287done
15288
15289
15290
15291
15292
15293for flag in -Wempty-body; do
15294  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15296$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15297if eval \${$as_CACHEVAR+:} false; then :
15298  $as_echo_n "(cached) " >&6
15299else
15300
15301  ax_check_save_flags=$CFLAGS
15302  CFLAGS="$CFLAGS  $flag"
15303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304/* end confdefs.h.  */
15305
15306int
15307main ()
15308{
15309
15310  ;
15311  return 0;
15312}
15313_ACEOF
15314if ac_fn_c_try_compile "$LINENO"; then :
15315  eval "$as_CACHEVAR=yes"
15316else
15317  eval "$as_CACHEVAR=no"
15318fi
15319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320  CFLAGS=$ax_check_save_flags
15321fi
15322eval ac_res=\$$as_CACHEVAR
15323	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15324$as_echo "$ac_res" >&6; }
15325if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15326
15327if ${CFLAGS+:} false; then :
15328
15329  case " $CFLAGS " in #(
15330  *" $flag "*) :
15331    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15332  (: CFLAGS already contains $flag) 2>&5
15333  ac_status=$?
15334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335  test $ac_status = 0; } ;; #(
15336  *) :
15337
15338     as_fn_append CFLAGS " $flag"
15339     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15340  (: CFLAGS="$CFLAGS") 2>&5
15341  ac_status=$?
15342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15343  test $ac_status = 0; }
15344     ;;
15345esac
15346
15347else
15348
15349  CFLAGS=$flag
15350  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15351  (: CFLAGS="$CFLAGS") 2>&5
15352  ac_status=$?
15353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15354  test $ac_status = 0; }
15355
15356fi
15357
15358else
15359  :
15360fi
15361
15362done
15363
15364
15365
15366
15367
15368for flag in -Wignored-qualifiers; do
15369  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15371$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15372if eval \${$as_CACHEVAR+:} false; then :
15373  $as_echo_n "(cached) " >&6
15374else
15375
15376  ax_check_save_flags=$CFLAGS
15377  CFLAGS="$CFLAGS  $flag"
15378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379/* end confdefs.h.  */
15380
15381int
15382main ()
15383{
15384
15385  ;
15386  return 0;
15387}
15388_ACEOF
15389if ac_fn_c_try_compile "$LINENO"; then :
15390  eval "$as_CACHEVAR=yes"
15391else
15392  eval "$as_CACHEVAR=no"
15393fi
15394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395  CFLAGS=$ax_check_save_flags
15396fi
15397eval ac_res=\$$as_CACHEVAR
15398	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15399$as_echo "$ac_res" >&6; }
15400if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15401
15402if ${CFLAGS+:} false; then :
15403
15404  case " $CFLAGS " in #(
15405  *" $flag "*) :
15406    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15407  (: CFLAGS already contains $flag) 2>&5
15408  ac_status=$?
15409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15410  test $ac_status = 0; } ;; #(
15411  *) :
15412
15413     as_fn_append CFLAGS " $flag"
15414     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15415  (: CFLAGS="$CFLAGS") 2>&5
15416  ac_status=$?
15417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15418  test $ac_status = 0; }
15419     ;;
15420esac
15421
15422else
15423
15424  CFLAGS=$flag
15425  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15426  (: CFLAGS="$CFLAGS") 2>&5
15427  ac_status=$?
15428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15429  test $ac_status = 0; }
15430
15431fi
15432
15433else
15434  :
15435fi
15436
15437done
15438
15439
15440
15441
15442
15443for flag in -Wlogical-op; do
15444  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15446$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15447if eval \${$as_CACHEVAR+:} false; then :
15448  $as_echo_n "(cached) " >&6
15449else
15450
15451  ax_check_save_flags=$CFLAGS
15452  CFLAGS="$CFLAGS  $flag"
15453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h.  */
15455
15456int
15457main ()
15458{
15459
15460  ;
15461  return 0;
15462}
15463_ACEOF
15464if ac_fn_c_try_compile "$LINENO"; then :
15465  eval "$as_CACHEVAR=yes"
15466else
15467  eval "$as_CACHEVAR=no"
15468fi
15469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470  CFLAGS=$ax_check_save_flags
15471fi
15472eval ac_res=\$$as_CACHEVAR
15473	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15474$as_echo "$ac_res" >&6; }
15475if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15476
15477if ${CFLAGS+:} false; then :
15478
15479  case " $CFLAGS " in #(
15480  *" $flag "*) :
15481    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15482  (: CFLAGS already contains $flag) 2>&5
15483  ac_status=$?
15484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15485  test $ac_status = 0; } ;; #(
15486  *) :
15487
15488     as_fn_append CFLAGS " $flag"
15489     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15490  (: CFLAGS="$CFLAGS") 2>&5
15491  ac_status=$?
15492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15493  test $ac_status = 0; }
15494     ;;
15495esac
15496
15497else
15498
15499  CFLAGS=$flag
15500  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15501  (: CFLAGS="$CFLAGS") 2>&5
15502  ac_status=$?
15503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15504  test $ac_status = 0; }
15505
15506fi
15507
15508else
15509  :
15510fi
15511
15512done
15513
15514
15515
15516
15517
15518for flag in -Wmissing-declarations; do
15519  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15521$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15522if eval \${$as_CACHEVAR+:} false; then :
15523  $as_echo_n "(cached) " >&6
15524else
15525
15526  ax_check_save_flags=$CFLAGS
15527  CFLAGS="$CFLAGS  $flag"
15528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529/* end confdefs.h.  */
15530
15531int
15532main ()
15533{
15534
15535  ;
15536  return 0;
15537}
15538_ACEOF
15539if ac_fn_c_try_compile "$LINENO"; then :
15540  eval "$as_CACHEVAR=yes"
15541else
15542  eval "$as_CACHEVAR=no"
15543fi
15544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545  CFLAGS=$ax_check_save_flags
15546fi
15547eval ac_res=\$$as_CACHEVAR
15548	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15549$as_echo "$ac_res" >&6; }
15550if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15551
15552if ${CFLAGS+:} false; then :
15553
15554  case " $CFLAGS " in #(
15555  *" $flag "*) :
15556    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15557  (: CFLAGS already contains $flag) 2>&5
15558  ac_status=$?
15559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15560  test $ac_status = 0; } ;; #(
15561  *) :
15562
15563     as_fn_append CFLAGS " $flag"
15564     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15565  (: CFLAGS="$CFLAGS") 2>&5
15566  ac_status=$?
15567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15568  test $ac_status = 0; }
15569     ;;
15570esac
15571
15572else
15573
15574  CFLAGS=$flag
15575  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15576  (: CFLAGS="$CFLAGS") 2>&5
15577  ac_status=$?
15578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579  test $ac_status = 0; }
15580
15581fi
15582
15583else
15584  :
15585fi
15586
15587done
15588
15589
15590
15591
15592
15593for flag in -Wmissing-field-initializers; do
15594  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15596$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15597if eval \${$as_CACHEVAR+:} false; then :
15598  $as_echo_n "(cached) " >&6
15599else
15600
15601  ax_check_save_flags=$CFLAGS
15602  CFLAGS="$CFLAGS  $flag"
15603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604/* end confdefs.h.  */
15605
15606int
15607main ()
15608{
15609
15610  ;
15611  return 0;
15612}
15613_ACEOF
15614if ac_fn_c_try_compile "$LINENO"; then :
15615  eval "$as_CACHEVAR=yes"
15616else
15617  eval "$as_CACHEVAR=no"
15618fi
15619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620  CFLAGS=$ax_check_save_flags
15621fi
15622eval ac_res=\$$as_CACHEVAR
15623	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15624$as_echo "$ac_res" >&6; }
15625if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15626
15627if ${CFLAGS+:} false; then :
15628
15629  case " $CFLAGS " in #(
15630  *" $flag "*) :
15631    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15632  (: CFLAGS already contains $flag) 2>&5
15633  ac_status=$?
15634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15635  test $ac_status = 0; } ;; #(
15636  *) :
15637
15638     as_fn_append CFLAGS " $flag"
15639     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15640  (: CFLAGS="$CFLAGS") 2>&5
15641  ac_status=$?
15642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15643  test $ac_status = 0; }
15644     ;;
15645esac
15646
15647else
15648
15649  CFLAGS=$flag
15650  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15651  (: CFLAGS="$CFLAGS") 2>&5
15652  ac_status=$?
15653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15654  test $ac_status = 0; }
15655
15656fi
15657
15658else
15659  :
15660fi
15661
15662done
15663
15664
15665
15666
15667
15668for flag in -Wmissing-include-dirs; do
15669  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15671$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15672if eval \${$as_CACHEVAR+:} false; then :
15673  $as_echo_n "(cached) " >&6
15674else
15675
15676  ax_check_save_flags=$CFLAGS
15677  CFLAGS="$CFLAGS  $flag"
15678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h.  */
15680
15681int
15682main ()
15683{
15684
15685  ;
15686  return 0;
15687}
15688_ACEOF
15689if ac_fn_c_try_compile "$LINENO"; then :
15690  eval "$as_CACHEVAR=yes"
15691else
15692  eval "$as_CACHEVAR=no"
15693fi
15694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695  CFLAGS=$ax_check_save_flags
15696fi
15697eval ac_res=\$$as_CACHEVAR
15698	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15699$as_echo "$ac_res" >&6; }
15700if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15701
15702if ${CFLAGS+:} false; then :
15703
15704  case " $CFLAGS " in #(
15705  *" $flag "*) :
15706    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15707  (: CFLAGS already contains $flag) 2>&5
15708  ac_status=$?
15709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15710  test $ac_status = 0; } ;; #(
15711  *) :
15712
15713     as_fn_append CFLAGS " $flag"
15714     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15715  (: CFLAGS="$CFLAGS") 2>&5
15716  ac_status=$?
15717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718  test $ac_status = 0; }
15719     ;;
15720esac
15721
15722else
15723
15724  CFLAGS=$flag
15725  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15726  (: CFLAGS="$CFLAGS") 2>&5
15727  ac_status=$?
15728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729  test $ac_status = 0; }
15730
15731fi
15732
15733else
15734  :
15735fi
15736
15737done
15738
15739
15740
15741
15742
15743for flag in -Wmissing-parameter-type; do
15744  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15746$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15747if eval \${$as_CACHEVAR+:} false; then :
15748  $as_echo_n "(cached) " >&6
15749else
15750
15751  ax_check_save_flags=$CFLAGS
15752  CFLAGS="$CFLAGS  $flag"
15753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15754/* end confdefs.h.  */
15755
15756int
15757main ()
15758{
15759
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764if ac_fn_c_try_compile "$LINENO"; then :
15765  eval "$as_CACHEVAR=yes"
15766else
15767  eval "$as_CACHEVAR=no"
15768fi
15769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770  CFLAGS=$ax_check_save_flags
15771fi
15772eval ac_res=\$$as_CACHEVAR
15773	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15774$as_echo "$ac_res" >&6; }
15775if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15776
15777if ${CFLAGS+:} false; then :
15778
15779  case " $CFLAGS " in #(
15780  *" $flag "*) :
15781    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15782  (: CFLAGS already contains $flag) 2>&5
15783  ac_status=$?
15784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785  test $ac_status = 0; } ;; #(
15786  *) :
15787
15788     as_fn_append CFLAGS " $flag"
15789     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15790  (: CFLAGS="$CFLAGS") 2>&5
15791  ac_status=$?
15792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15793  test $ac_status = 0; }
15794     ;;
15795esac
15796
15797else
15798
15799  CFLAGS=$flag
15800  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15801  (: CFLAGS="$CFLAGS") 2>&5
15802  ac_status=$?
15803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15804  test $ac_status = 0; }
15805
15806fi
15807
15808else
15809  :
15810fi
15811
15812done
15813
15814
15815
15816
15817
15818for flag in -Wmissing-prototypes; do
15819  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15821$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15822if eval \${$as_CACHEVAR+:} false; then :
15823  $as_echo_n "(cached) " >&6
15824else
15825
15826  ax_check_save_flags=$CFLAGS
15827  CFLAGS="$CFLAGS  $flag"
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830
15831int
15832main ()
15833{
15834
15835  ;
15836  return 0;
15837}
15838_ACEOF
15839if ac_fn_c_try_compile "$LINENO"; then :
15840  eval "$as_CACHEVAR=yes"
15841else
15842  eval "$as_CACHEVAR=no"
15843fi
15844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845  CFLAGS=$ax_check_save_flags
15846fi
15847eval ac_res=\$$as_CACHEVAR
15848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15849$as_echo "$ac_res" >&6; }
15850if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15851
15852if ${CFLAGS+:} false; then :
15853
15854  case " $CFLAGS " in #(
15855  *" $flag "*) :
15856    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15857  (: CFLAGS already contains $flag) 2>&5
15858  ac_status=$?
15859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15860  test $ac_status = 0; } ;; #(
15861  *) :
15862
15863     as_fn_append CFLAGS " $flag"
15864     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15865  (: CFLAGS="$CFLAGS") 2>&5
15866  ac_status=$?
15867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15868  test $ac_status = 0; }
15869     ;;
15870esac
15871
15872else
15873
15874  CFLAGS=$flag
15875  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15876  (: CFLAGS="$CFLAGS") 2>&5
15877  ac_status=$?
15878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15879  test $ac_status = 0; }
15880
15881fi
15882
15883else
15884  :
15885fi
15886
15887done
15888
15889
15890
15891
15892
15893for flag in -Wnested-externs; do
15894  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15896$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15897if eval \${$as_CACHEVAR+:} false; then :
15898  $as_echo_n "(cached) " >&6
15899else
15900
15901  ax_check_save_flags=$CFLAGS
15902  CFLAGS="$CFLAGS  $flag"
15903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905
15906int
15907main ()
15908{
15909
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_compile "$LINENO"; then :
15915  eval "$as_CACHEVAR=yes"
15916else
15917  eval "$as_CACHEVAR=no"
15918fi
15919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15920  CFLAGS=$ax_check_save_flags
15921fi
15922eval ac_res=\$$as_CACHEVAR
15923	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15924$as_echo "$ac_res" >&6; }
15925if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15926
15927if ${CFLAGS+:} false; then :
15928
15929  case " $CFLAGS " in #(
15930  *" $flag "*) :
15931    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15932  (: CFLAGS already contains $flag) 2>&5
15933  ac_status=$?
15934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935  test $ac_status = 0; } ;; #(
15936  *) :
15937
15938     as_fn_append CFLAGS " $flag"
15939     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15940  (: CFLAGS="$CFLAGS") 2>&5
15941  ac_status=$?
15942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943  test $ac_status = 0; }
15944     ;;
15945esac
15946
15947else
15948
15949  CFLAGS=$flag
15950  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15951  (: CFLAGS="$CFLAGS") 2>&5
15952  ac_status=$?
15953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954  test $ac_status = 0; }
15955
15956fi
15957
15958else
15959  :
15960fi
15961
15962done
15963
15964
15965
15966
15967
15968for flag in -Wold-style-declaration; do
15969  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15971$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15972if eval \${$as_CACHEVAR+:} false; then :
15973  $as_echo_n "(cached) " >&6
15974else
15975
15976  ax_check_save_flags=$CFLAGS
15977  CFLAGS="$CFLAGS  $flag"
15978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979/* end confdefs.h.  */
15980
15981int
15982main ()
15983{
15984
15985  ;
15986  return 0;
15987}
15988_ACEOF
15989if ac_fn_c_try_compile "$LINENO"; then :
15990  eval "$as_CACHEVAR=yes"
15991else
15992  eval "$as_CACHEVAR=no"
15993fi
15994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995  CFLAGS=$ax_check_save_flags
15996fi
15997eval ac_res=\$$as_CACHEVAR
15998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15999$as_echo "$ac_res" >&6; }
16000if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16001
16002if ${CFLAGS+:} false; then :
16003
16004  case " $CFLAGS " in #(
16005  *" $flag "*) :
16006    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16007  (: CFLAGS already contains $flag) 2>&5
16008  ac_status=$?
16009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16010  test $ac_status = 0; } ;; #(
16011  *) :
16012
16013     as_fn_append CFLAGS " $flag"
16014     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16015  (: CFLAGS="$CFLAGS") 2>&5
16016  ac_status=$?
16017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16018  test $ac_status = 0; }
16019     ;;
16020esac
16021
16022else
16023
16024  CFLAGS=$flag
16025  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16026  (: CFLAGS="$CFLAGS") 2>&5
16027  ac_status=$?
16028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16029  test $ac_status = 0; }
16030
16031fi
16032
16033else
16034  :
16035fi
16036
16037done
16038
16039
16040
16041
16042
16043for flag in -Woverride-init; do
16044  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16046$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16047if eval \${$as_CACHEVAR+:} false; then :
16048  $as_echo_n "(cached) " >&6
16049else
16050
16051  ax_check_save_flags=$CFLAGS
16052  CFLAGS="$CFLAGS  $flag"
16053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054/* end confdefs.h.  */
16055
16056int
16057main ()
16058{
16059
16060  ;
16061  return 0;
16062}
16063_ACEOF
16064if ac_fn_c_try_compile "$LINENO"; then :
16065  eval "$as_CACHEVAR=yes"
16066else
16067  eval "$as_CACHEVAR=no"
16068fi
16069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070  CFLAGS=$ax_check_save_flags
16071fi
16072eval ac_res=\$$as_CACHEVAR
16073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16074$as_echo "$ac_res" >&6; }
16075if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16076
16077if ${CFLAGS+:} false; then :
16078
16079  case " $CFLAGS " in #(
16080  *" $flag "*) :
16081    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16082  (: CFLAGS already contains $flag) 2>&5
16083  ac_status=$?
16084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16085  test $ac_status = 0; } ;; #(
16086  *) :
16087
16088     as_fn_append CFLAGS " $flag"
16089     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16090  (: CFLAGS="$CFLAGS") 2>&5
16091  ac_status=$?
16092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16093  test $ac_status = 0; }
16094     ;;
16095esac
16096
16097else
16098
16099  CFLAGS=$flag
16100  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16101  (: CFLAGS="$CFLAGS") 2>&5
16102  ac_status=$?
16103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16104  test $ac_status = 0; }
16105
16106fi
16107
16108else
16109  :
16110fi
16111
16112done
16113
16114
16115
16116
16117
16118for flag in -Wpointer-arith; do
16119  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16121$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16122if eval \${$as_CACHEVAR+:} false; then :
16123  $as_echo_n "(cached) " >&6
16124else
16125
16126  ax_check_save_flags=$CFLAGS
16127  CFLAGS="$CFLAGS  $flag"
16128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129/* end confdefs.h.  */
16130
16131int
16132main ()
16133{
16134
16135  ;
16136  return 0;
16137}
16138_ACEOF
16139if ac_fn_c_try_compile "$LINENO"; then :
16140  eval "$as_CACHEVAR=yes"
16141else
16142  eval "$as_CACHEVAR=no"
16143fi
16144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145  CFLAGS=$ax_check_save_flags
16146fi
16147eval ac_res=\$$as_CACHEVAR
16148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16149$as_echo "$ac_res" >&6; }
16150if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16151
16152if ${CFLAGS+:} false; then :
16153
16154  case " $CFLAGS " in #(
16155  *" $flag "*) :
16156    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16157  (: CFLAGS already contains $flag) 2>&5
16158  ac_status=$?
16159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16160  test $ac_status = 0; } ;; #(
16161  *) :
16162
16163     as_fn_append CFLAGS " $flag"
16164     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16165  (: CFLAGS="$CFLAGS") 2>&5
16166  ac_status=$?
16167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16168  test $ac_status = 0; }
16169     ;;
16170esac
16171
16172else
16173
16174  CFLAGS=$flag
16175  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16176  (: CFLAGS="$CFLAGS") 2>&5
16177  ac_status=$?
16178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16179  test $ac_status = 0; }
16180
16181fi
16182
16183else
16184  :
16185fi
16186
16187done
16188
16189
16190
16191
16192
16193for flag in -Wredundant-decls; do
16194  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16196$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16197if eval \${$as_CACHEVAR+:} false; then :
16198  $as_echo_n "(cached) " >&6
16199else
16200
16201  ax_check_save_flags=$CFLAGS
16202  CFLAGS="$CFLAGS  $flag"
16203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204/* end confdefs.h.  */
16205
16206int
16207main ()
16208{
16209
16210  ;
16211  return 0;
16212}
16213_ACEOF
16214if ac_fn_c_try_compile "$LINENO"; then :
16215  eval "$as_CACHEVAR=yes"
16216else
16217  eval "$as_CACHEVAR=no"
16218fi
16219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220  CFLAGS=$ax_check_save_flags
16221fi
16222eval ac_res=\$$as_CACHEVAR
16223	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16224$as_echo "$ac_res" >&6; }
16225if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16226
16227if ${CFLAGS+:} false; then :
16228
16229  case " $CFLAGS " in #(
16230  *" $flag "*) :
16231    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16232  (: CFLAGS already contains $flag) 2>&5
16233  ac_status=$?
16234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16235  test $ac_status = 0; } ;; #(
16236  *) :
16237
16238     as_fn_append CFLAGS " $flag"
16239     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16240  (: CFLAGS="$CFLAGS") 2>&5
16241  ac_status=$?
16242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16243  test $ac_status = 0; }
16244     ;;
16245esac
16246
16247else
16248
16249  CFLAGS=$flag
16250  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16251  (: CFLAGS="$CFLAGS") 2>&5
16252  ac_status=$?
16253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254  test $ac_status = 0; }
16255
16256fi
16257
16258else
16259  :
16260fi
16261
16262done
16263
16264
16265
16266
16267
16268for flag in -Wshadow; do
16269  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16271$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16272if eval \${$as_CACHEVAR+:} false; then :
16273  $as_echo_n "(cached) " >&6
16274else
16275
16276  ax_check_save_flags=$CFLAGS
16277  CFLAGS="$CFLAGS  $flag"
16278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279/* end confdefs.h.  */
16280
16281int
16282main ()
16283{
16284
16285  ;
16286  return 0;
16287}
16288_ACEOF
16289if ac_fn_c_try_compile "$LINENO"; then :
16290  eval "$as_CACHEVAR=yes"
16291else
16292  eval "$as_CACHEVAR=no"
16293fi
16294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295  CFLAGS=$ax_check_save_flags
16296fi
16297eval ac_res=\$$as_CACHEVAR
16298	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16299$as_echo "$ac_res" >&6; }
16300if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16301
16302if ${CFLAGS+:} false; then :
16303
16304  case " $CFLAGS " in #(
16305  *" $flag "*) :
16306    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16307  (: CFLAGS already contains $flag) 2>&5
16308  ac_status=$?
16309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16310  test $ac_status = 0; } ;; #(
16311  *) :
16312
16313     as_fn_append CFLAGS " $flag"
16314     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16315  (: CFLAGS="$CFLAGS") 2>&5
16316  ac_status=$?
16317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16318  test $ac_status = 0; }
16319     ;;
16320esac
16321
16322else
16323
16324  CFLAGS=$flag
16325  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16326  (: CFLAGS="$CFLAGS") 2>&5
16327  ac_status=$?
16328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16329  test $ac_status = 0; }
16330
16331fi
16332
16333else
16334  :
16335fi
16336
16337done
16338
16339
16340
16341
16342
16343for flag in -Wshift-negative-value; do
16344  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16346$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16347if eval \${$as_CACHEVAR+:} false; then :
16348  $as_echo_n "(cached) " >&6
16349else
16350
16351  ax_check_save_flags=$CFLAGS
16352  CFLAGS="$CFLAGS  $flag"
16353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h.  */
16355
16356int
16357main ()
16358{
16359
16360  ;
16361  return 0;
16362}
16363_ACEOF
16364if ac_fn_c_try_compile "$LINENO"; then :
16365  eval "$as_CACHEVAR=yes"
16366else
16367  eval "$as_CACHEVAR=no"
16368fi
16369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370  CFLAGS=$ax_check_save_flags
16371fi
16372eval ac_res=\$$as_CACHEVAR
16373	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16374$as_echo "$ac_res" >&6; }
16375if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16376
16377if ${CFLAGS+:} false; then :
16378
16379  case " $CFLAGS " in #(
16380  *" $flag "*) :
16381    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16382  (: CFLAGS already contains $flag) 2>&5
16383  ac_status=$?
16384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16385  test $ac_status = 0; } ;; #(
16386  *) :
16387
16388     as_fn_append CFLAGS " $flag"
16389     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16390  (: CFLAGS="$CFLAGS") 2>&5
16391  ac_status=$?
16392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16393  test $ac_status = 0; }
16394     ;;
16395esac
16396
16397else
16398
16399  CFLAGS=$flag
16400  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16401  (: CFLAGS="$CFLAGS") 2>&5
16402  ac_status=$?
16403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16404  test $ac_status = 0; }
16405
16406fi
16407
16408else
16409  :
16410fi
16411
16412done
16413
16414
16415
16416
16417
16418for flag in -Wsign-compare; do
16419  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16421$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16422if eval \${$as_CACHEVAR+:} false; then :
16423  $as_echo_n "(cached) " >&6
16424else
16425
16426  ax_check_save_flags=$CFLAGS
16427  CFLAGS="$CFLAGS  $flag"
16428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h.  */
16430
16431int
16432main ()
16433{
16434
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_compile "$LINENO"; then :
16440  eval "$as_CACHEVAR=yes"
16441else
16442  eval "$as_CACHEVAR=no"
16443fi
16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445  CFLAGS=$ax_check_save_flags
16446fi
16447eval ac_res=\$$as_CACHEVAR
16448	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16449$as_echo "$ac_res" >&6; }
16450if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16451
16452if ${CFLAGS+:} false; then :
16453
16454  case " $CFLAGS " in #(
16455  *" $flag "*) :
16456    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16457  (: CFLAGS already contains $flag) 2>&5
16458  ac_status=$?
16459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16460  test $ac_status = 0; } ;; #(
16461  *) :
16462
16463     as_fn_append CFLAGS " $flag"
16464     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16465  (: CFLAGS="$CFLAGS") 2>&5
16466  ac_status=$?
16467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16468  test $ac_status = 0; }
16469     ;;
16470esac
16471
16472else
16473
16474  CFLAGS=$flag
16475  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16476  (: CFLAGS="$CFLAGS") 2>&5
16477  ac_status=$?
16478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16479  test $ac_status = 0; }
16480
16481fi
16482
16483else
16484  :
16485fi
16486
16487done
16488
16489
16490
16491
16492
16493for flag in -Wtype-limits; do
16494  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16496$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16497if eval \${$as_CACHEVAR+:} false; then :
16498  $as_echo_n "(cached) " >&6
16499else
16500
16501  ax_check_save_flags=$CFLAGS
16502  CFLAGS="$CFLAGS  $flag"
16503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504/* end confdefs.h.  */
16505
16506int
16507main ()
16508{
16509
16510  ;
16511  return 0;
16512}
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"; then :
16515  eval "$as_CACHEVAR=yes"
16516else
16517  eval "$as_CACHEVAR=no"
16518fi
16519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520  CFLAGS=$ax_check_save_flags
16521fi
16522eval ac_res=\$$as_CACHEVAR
16523	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16524$as_echo "$ac_res" >&6; }
16525if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16526
16527if ${CFLAGS+:} false; then :
16528
16529  case " $CFLAGS " in #(
16530  *" $flag "*) :
16531    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16532  (: CFLAGS already contains $flag) 2>&5
16533  ac_status=$?
16534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16535  test $ac_status = 0; } ;; #(
16536  *) :
16537
16538     as_fn_append CFLAGS " $flag"
16539     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16540  (: CFLAGS="$CFLAGS") 2>&5
16541  ac_status=$?
16542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16543  test $ac_status = 0; }
16544     ;;
16545esac
16546
16547else
16548
16549  CFLAGS=$flag
16550  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16551  (: CFLAGS="$CFLAGS") 2>&5
16552  ac_status=$?
16553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554  test $ac_status = 0; }
16555
16556fi
16557
16558else
16559  :
16560fi
16561
16562done
16563
16564
16565
16566
16567
16568for flag in -Wundef; do
16569  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16571$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16572if eval \${$as_CACHEVAR+:} false; then :
16573  $as_echo_n "(cached) " >&6
16574else
16575
16576  ax_check_save_flags=$CFLAGS
16577  CFLAGS="$CFLAGS  $flag"
16578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579/* end confdefs.h.  */
16580
16581int
16582main ()
16583{
16584
16585  ;
16586  return 0;
16587}
16588_ACEOF
16589if ac_fn_c_try_compile "$LINENO"; then :
16590  eval "$as_CACHEVAR=yes"
16591else
16592  eval "$as_CACHEVAR=no"
16593fi
16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595  CFLAGS=$ax_check_save_flags
16596fi
16597eval ac_res=\$$as_CACHEVAR
16598	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16599$as_echo "$ac_res" >&6; }
16600if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16601
16602if ${CFLAGS+:} false; then :
16603
16604  case " $CFLAGS " in #(
16605  *" $flag "*) :
16606    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16607  (: CFLAGS already contains $flag) 2>&5
16608  ac_status=$?
16609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610  test $ac_status = 0; } ;; #(
16611  *) :
16612
16613     as_fn_append CFLAGS " $flag"
16614     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16615  (: CFLAGS="$CFLAGS") 2>&5
16616  ac_status=$?
16617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618  test $ac_status = 0; }
16619     ;;
16620esac
16621
16622else
16623
16624  CFLAGS=$flag
16625  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16626  (: CFLAGS="$CFLAGS") 2>&5
16627  ac_status=$?
16628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629  test $ac_status = 0; }
16630
16631fi
16632
16633else
16634  :
16635fi
16636
16637done
16638
16639
16640
16641
16642
16643for flag in -Wuninitialized; do
16644  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16646$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16647if eval \${$as_CACHEVAR+:} false; then :
16648  $as_echo_n "(cached) " >&6
16649else
16650
16651  ax_check_save_flags=$CFLAGS
16652  CFLAGS="$CFLAGS  $flag"
16653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h.  */
16655
16656int
16657main ()
16658{
16659
16660  ;
16661  return 0;
16662}
16663_ACEOF
16664if ac_fn_c_try_compile "$LINENO"; then :
16665  eval "$as_CACHEVAR=yes"
16666else
16667  eval "$as_CACHEVAR=no"
16668fi
16669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670  CFLAGS=$ax_check_save_flags
16671fi
16672eval ac_res=\$$as_CACHEVAR
16673	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16674$as_echo "$ac_res" >&6; }
16675if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16676
16677if ${CFLAGS+:} false; then :
16678
16679  case " $CFLAGS " in #(
16680  *" $flag "*) :
16681    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16682  (: CFLAGS already contains $flag) 2>&5
16683  ac_status=$?
16684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685  test $ac_status = 0; } ;; #(
16686  *) :
16687
16688     as_fn_append CFLAGS " $flag"
16689     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16690  (: CFLAGS="$CFLAGS") 2>&5
16691  ac_status=$?
16692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16693  test $ac_status = 0; }
16694     ;;
16695esac
16696
16697else
16698
16699  CFLAGS=$flag
16700  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16701  (: CFLAGS="$CFLAGS") 2>&5
16702  ac_status=$?
16703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16704  test $ac_status = 0; }
16705
16706fi
16707
16708else
16709  :
16710fi
16711
16712done
16713
16714
16715
16716
16717
16718for flag in -Wwrite-strings; do
16719  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16721$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16722if eval \${$as_CACHEVAR+:} false; then :
16723  $as_echo_n "(cached) " >&6
16724else
16725
16726  ax_check_save_flags=$CFLAGS
16727  CFLAGS="$CFLAGS  $flag"
16728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729/* end confdefs.h.  */
16730
16731int
16732main ()
16733{
16734
16735  ;
16736  return 0;
16737}
16738_ACEOF
16739if ac_fn_c_try_compile "$LINENO"; then :
16740  eval "$as_CACHEVAR=yes"
16741else
16742  eval "$as_CACHEVAR=no"
16743fi
16744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745  CFLAGS=$ax_check_save_flags
16746fi
16747eval ac_res=\$$as_CACHEVAR
16748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16749$as_echo "$ac_res" >&6; }
16750if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16751
16752if ${CFLAGS+:} false; then :
16753
16754  case " $CFLAGS " in #(
16755  *" $flag "*) :
16756    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16757  (: CFLAGS already contains $flag) 2>&5
16758  ac_status=$?
16759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760  test $ac_status = 0; } ;; #(
16761  *) :
16762
16763     as_fn_append CFLAGS " $flag"
16764     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16765  (: CFLAGS="$CFLAGS") 2>&5
16766  ac_status=$?
16767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16768  test $ac_status = 0; }
16769     ;;
16770esac
16771
16772else
16773
16774  CFLAGS=$flag
16775  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16776  (: CFLAGS="$CFLAGS") 2>&5
16777  ac_status=$?
16778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16779  test $ac_status = 0; }
16780
16781fi
16782
16783else
16784  :
16785fi
16786
16787done
16788
16789
16790fi
16791
16792
16793  # Check whether --enable-efence was given.
16794if test "${enable_efence+set}" = set; then :
16795  enableval=$enable_efence; efence="$enableval"
16796else
16797  efence="no"
16798fi
16799
16800
16801  if test "$efence" = "yes"; then :
16802
16803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16804$as_echo_n "checking for library containing EF_Print... " >&6; }
16805if ${ac_cv_search_EF_Print+:} false; then :
16806  $as_echo_n "(cached) " >&6
16807else
16808  ac_func_search_save_LIBS=$LIBS
16809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810/* end confdefs.h.  */
16811
16812/* Override any GCC internal prototype to avoid an error.
16813   Use char because int might match the return type of a GCC
16814   builtin and then its argument prototype would still apply.  */
16815#ifdef __cplusplus
16816extern "C"
16817#endif
16818char EF_Print ();
16819int
16820main ()
16821{
16822return EF_Print ();
16823  ;
16824  return 0;
16825}
16826_ACEOF
16827for ac_lib in '' efence; do
16828  if test -z "$ac_lib"; then
16829    ac_res="none required"
16830  else
16831    ac_res=-l$ac_lib
16832    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16833  fi
16834  if ac_fn_c_try_link "$LINENO"; then :
16835  ac_cv_search_EF_Print=$ac_res
16836fi
16837rm -f core conftest.err conftest.$ac_objext \
16838    conftest$ac_exeext
16839  if ${ac_cv_search_EF_Print+:} false; then :
16840  break
16841fi
16842done
16843if ${ac_cv_search_EF_Print+:} false; then :
16844
16845else
16846  ac_cv_search_EF_Print=no
16847fi
16848rm conftest.$ac_ext
16849LIBS=$ac_func_search_save_LIBS
16850fi
16851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16852$as_echo "$ac_cv_search_EF_Print" >&6; }
16853ac_res=$ac_cv_search_EF_Print
16854if test "$ac_res" != no; then :
16855  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16856
16857else
16858  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16860as_fn_error $? "Electric Fence 'efence' library not found
16861See \`config.log' for more details" "$LINENO" 5; }
16862fi
16863
16864
16865fi
16866
16867
16868
16869
16870# Check whether --with-tls was given.
16871if test "${with_tls+set}" = set; then :
16872  withval=$with_tls; with_tls=$withval
16873else
16874  with_tls=auto
16875fi
16876
16877
16878if test "$with_tls" = "openssl" ||
16879   test "$with_tls" = "auto"; then
16880    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16881if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16882
16883      if test "$cross_compiling" = yes; then :
16884  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16886as_fn_error $? "cannot run test program while cross compiling
16887See \`config.log' for more details" "$LINENO" 5; }
16888else
16889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890/* end confdefs.h.  */
16891
16892
16893          #include <openssl/opensslv.h>
16894          #include <stdlib.h>
16895int
16896main ()
16897{
16898
16899          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16900  ;
16901  return 0;
16902}
16903_ACEOF
16904if ac_fn_c_try_run "$LINENO"; then :
16905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16906$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16907if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16908  $as_echo_n "(cached) " >&6
16909else
16910  ac_check_lib_save_LIBS=$LIBS
16911LIBS="-lcrypto  $LIBS"
16912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913/* end confdefs.h.  */
16914
16915/* Override any GCC internal prototype to avoid an error.
16916   Use char because int might match the return type of a GCC
16917   builtin and then its argument prototype would still apply.  */
16918#ifdef __cplusplus
16919extern "C"
16920#endif
16921char RSA_free ();
16922int
16923main ()
16924{
16925return RSA_free ();
16926  ;
16927  return 0;
16928}
16929_ACEOF
16930if ac_fn_c_try_link "$LINENO"; then :
16931  ac_cv_lib_crypto_RSA_free=yes
16932else
16933  ac_cv_lib_crypto_RSA_free=no
16934fi
16935rm -f core conftest.err conftest.$ac_objext \
16936    conftest$ac_exeext conftest.$ac_ext
16937LIBS=$ac_check_lib_save_LIBS
16938fi
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16940$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16941if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16942  cat >>confdefs.h <<_ACEOF
16943#define HAVE_LIBCRYPTO 1
16944_ACEOF
16945
16946  LIBS="-lcrypto $LIBS"
16947
16948fi
16949
16950fi
16951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16952  conftest.$ac_objext conftest.beam conftest.$ac_ext
16953fi
16954
16955fi
16956
16957
16958
16959    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16961$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16962if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16963  $as_echo_n "(cached) " >&6
16964else
16965  ac_check_lib_save_LIBS=$LIBS
16966LIBS="-lssl  $LIBS"
16967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h.  */
16969
16970/* Override any GCC internal prototype to avoid an error.
16971   Use char because int might match the return type of a GCC
16972   builtin and then its argument prototype would still apply.  */
16973#ifdef __cplusplus
16974extern "C"
16975#endif
16976char SSL_connect ();
16977int
16978main ()
16979{
16980return SSL_connect ();
16981  ;
16982  return 0;
16983}
16984_ACEOF
16985if ac_fn_c_try_link "$LINENO"; then :
16986  ac_cv_lib_ssl_SSL_connect=yes
16987else
16988  ac_cv_lib_ssl_SSL_connect=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext \
16991    conftest$ac_exeext conftest.$ac_ext
16992LIBS=$ac_check_lib_save_LIBS
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16995$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16996if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16997  cat >>confdefs.h <<_ACEOF
16998#define HAVE_LIBSSL 1
16999_ACEOF
17000
17001  LIBS="-lssl $LIBS"
17002
17003fi
17004
17005fi
17006
17007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
17008$as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
17009    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
17010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17011$as_echo "found" >&6; }
17012else
17013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
17014$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
17015fi
17016
17017fi
17018
17019if test "$with_tls" = "gnutls" ||
17020   test "$with_tls" = "auto"; then
17021  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
17022
17023    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
17024if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
17025
17026      if test "$cross_compiling" = yes; then :
17027  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17029as_fn_error $? "cannot run test program while cross compiling
17030See \`config.log' for more details" "$LINENO" 5; }
17031else
17032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034
17035
17036          #include <gnutls/gnutls.h>
17037          #include <stdlib.h>
17038int
17039main ()
17040{
17041
17042          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
17043  ;
17044  return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_run "$LINENO"; then :
17048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
17049$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
17050if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
17051  $as_echo_n "(cached) " >&6
17052else
17053  ac_check_lib_save_LIBS=$LIBS
17054LIBS="-lgnutls  $LIBS"
17055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056/* end confdefs.h.  */
17057
17058/* Override any GCC internal prototype to avoid an error.
17059   Use char because int might match the return type of a GCC
17060   builtin and then its argument prototype would still apply.  */
17061#ifdef __cplusplus
17062extern "C"
17063#endif
17064char gnutls_init ();
17065int
17066main ()
17067{
17068return gnutls_init ();
17069  ;
17070  return 0;
17071}
17072_ACEOF
17073if ac_fn_c_try_link "$LINENO"; then :
17074  ac_cv_lib_gnutls_gnutls_init=yes
17075else
17076  ac_cv_lib_gnutls_gnutls_init=no
17077fi
17078rm -f core conftest.err conftest.$ac_objext \
17079    conftest$ac_exeext conftest.$ac_ext
17080LIBS=$ac_check_lib_save_LIBS
17081fi
17082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
17083$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
17084if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
17085  cat >>confdefs.h <<_ACEOF
17086#define HAVE_LIBGNUTLS 1
17087_ACEOF
17088
17089  LIBS="-lgnutls $LIBS"
17090
17091fi
17092
17093fi
17094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17095  conftest.$ac_objext conftest.beam conftest.$ac_ext
17096fi
17097
17098fi
17099
17100
17101
17102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
17103$as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
17104    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
17105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17106$as_echo "found" >&6; }
17107else
17108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
17109$as_echo "no - GnuTLS support disabled" >&6; }
17110fi
17111
17112  fi
17113fi
17114
17115if test "$with_tls" = "wolfssl" ||
17116   test "$with_tls" = "auto"; then
17117  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
17118     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
17119
17120    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
17121if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
17122
17123      if test "$cross_compiling" = yes; then :
17124  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17126as_fn_error $? "cannot run test program while cross compiling
17127See \`config.log' for more details" "$LINENO" 5; }
17128else
17129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130/* end confdefs.h.  */
17131
17132
17133          #include <wolfssl/version.h>
17134          #include <stdlib.h>
17135int
17136main ()
17137{
17138
17139          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
17140  ;
17141  return 0;
17142}
17143_ACEOF
17144if ac_fn_c_try_run "$LINENO"; then :
17145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
17146$as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
17147if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
17148  $as_echo_n "(cached) " >&6
17149else
17150  ac_check_lib_save_LIBS=$LIBS
17151LIBS="-lwolfssl  $LIBS"
17152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h.  */
17154
17155/* Override any GCC internal prototype to avoid an error.
17156   Use char because int might match the return type of a GCC
17157   builtin and then its argument prototype would still apply.  */
17158#ifdef __cplusplus
17159extern "C"
17160#endif
17161char wolfSSL_X509_digest ();
17162int
17163main ()
17164{
17165return wolfSSL_X509_digest ();
17166  ;
17167  return 0;
17168}
17169_ACEOF
17170if ac_fn_c_try_link "$LINENO"; then :
17171  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
17172else
17173  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
17174fi
17175rm -f core conftest.err conftest.$ac_objext \
17176    conftest$ac_exeext conftest.$ac_ext
17177LIBS=$ac_check_lib_save_LIBS
17178fi
17179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
17180$as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
17181if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
17182  cat >>confdefs.h <<_ACEOF
17183#define HAVE_LIBWOLFSSL 1
17184_ACEOF
17185
17186  LIBS="-lwolfssl $LIBS"
17187
17188fi
17189
17190fi
17191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17192  conftest.$ac_objext conftest.beam conftest.$ac_ext
17193fi
17194
17195fi
17196
17197
17198
17199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17200$as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17201    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17203$as_echo "found" >&6; }
17204else
17205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17206$as_echo "no - wolfSSL support disabled" >&6; }
17207fi
17208
17209  fi
17210fi
17211
17212
17213
17214
17215  prefix_NONE=
17216  exec_prefix_NONE=
17217  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17218  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17219  eval ac_define_dir="\"$prefix\""
17220  eval ac_define_dir="\"$ac_define_dir\""
17221  PREFIX="$ac_define_dir"
17222
17223
17224cat >>confdefs.h <<_ACEOF
17225#define PREFIX "$ac_define_dir"
17226_ACEOF
17227
17228  test "$prefix_NONE" && prefix=NONE
17229  test "$exec_prefix_NONE" && exec_prefix=NONE
17230
17231
17232  prefix_NONE=
17233  exec_prefix_NONE=
17234  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17235  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17236  eval ac_define_dir="\"$sysconfdir\""
17237  eval ac_define_dir="\"$ac_define_dir\""
17238  SYSCONFDIR="$ac_define_dir"
17239
17240
17241cat >>confdefs.h <<_ACEOF
17242#define SYSCONFDIR "$ac_define_dir"
17243_ACEOF
17244
17245  test "$prefix_NONE" && prefix=NONE
17246  test "$exec_prefix_NONE" && exec_prefix=NONE
17247
17248
17249  prefix_NONE=
17250  exec_prefix_NONE=
17251  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17252  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17253  eval ac_define_dir="\"$libdir\""
17254  eval ac_define_dir="\"$ac_define_dir\""
17255  LIBDIR="$ac_define_dir"
17256
17257
17258cat >>confdefs.h <<_ACEOF
17259#define LIBDIR "$ac_define_dir"
17260_ACEOF
17261
17262  test "$prefix_NONE" && prefix=NONE
17263  test "$exec_prefix_NONE" && exec_prefix=NONE
17264
17265
17266  prefix_NONE=
17267  exec_prefix_NONE=
17268  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17269  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17270  eval ac_define_dir="\"$datadir\""
17271  eval ac_define_dir="\"$ac_define_dir\""
17272  DATADIR="$ac_define_dir"
17273
17274
17275cat >>confdefs.h <<_ACEOF
17276#define DATADIR "$ac_define_dir"
17277_ACEOF
17278
17279  test "$prefix_NONE" && prefix=NONE
17280  test "$exec_prefix_NONE" && exec_prefix=NONE
17281
17282
17283  prefix_NONE=
17284  exec_prefix_NONE=
17285  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17286  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17287  eval ac_define_dir="\"$localstatedir\""
17288  eval ac_define_dir="\"$ac_define_dir\""
17289  LOCALSTATEDIR="$ac_define_dir"
17290
17291
17292cat >>confdefs.h <<_ACEOF
17293#define LOCALSTATEDIR "$ac_define_dir"
17294_ACEOF
17295
17296  test "$prefix_NONE" && prefix=NONE
17297  test "$exec_prefix_NONE" && exec_prefix=NONE
17298
17299
17300ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile modules/extra/Makefile doc/Makefile help/Makefile tools/Makefile"
17301
17302
17303cat >confcache <<\_ACEOF
17304# This file is a shell script that caches the results of configure
17305# tests run on this system so they can be shared between configure
17306# scripts and configure runs, see configure's option --config-cache.
17307# It is not useful on other systems.  If it contains results you don't
17308# want to keep, you may remove or edit it.
17309#
17310# config.status only pays attention to the cache file if you give it
17311# the --recheck option to rerun configure.
17312#
17313# `ac_cv_env_foo' variables (set or unset) will be overridden when
17314# loading this file, other *unset* `ac_cv_foo' will be assigned the
17315# following values.
17316
17317_ACEOF
17318
17319# The following way of writing the cache mishandles newlines in values,
17320# but we know of no workaround that is simple, portable, and efficient.
17321# So, we kill variables containing newlines.
17322# Ultrix sh set writes to stderr and can't be redirected directly,
17323# and sets the high bit in the cache file unless we assign to the vars.
17324(
17325  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17326    eval ac_val=\$$ac_var
17327    case $ac_val in #(
17328    *${as_nl}*)
17329      case $ac_var in #(
17330      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17332      esac
17333      case $ac_var in #(
17334      _ | IFS | as_nl) ;; #(
17335      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17336      *) { eval $ac_var=; unset $ac_var;} ;;
17337      esac ;;
17338    esac
17339  done
17340
17341  (set) 2>&1 |
17342    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17343    *${as_nl}ac_space=\ *)
17344      # `set' does not quote correctly, so add quotes: double-quote
17345      # substitution turns \\\\ into \\, and sed turns \\ into \.
17346      sed -n \
17347	"s/'/'\\\\''/g;
17348	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17349      ;; #(
17350    *)
17351      # `set' quotes correctly as required by POSIX, so do not add quotes.
17352      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17353      ;;
17354    esac |
17355    sort
17356) |
17357  sed '
17358     /^ac_cv_env_/b end
17359     t clear
17360     :clear
17361     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17362     t end
17363     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17364     :end' >>confcache
17365if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17366  if test -w "$cache_file"; then
17367    if test "x$cache_file" != "x/dev/null"; then
17368      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17369$as_echo "$as_me: updating cache $cache_file" >&6;}
17370      if test ! -f "$cache_file" || test -h "$cache_file"; then
17371	cat confcache >"$cache_file"
17372      else
17373        case $cache_file in #(
17374        */* | ?:*)
17375	  mv -f confcache "$cache_file"$$ &&
17376	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17377        *)
17378	  mv -f confcache "$cache_file" ;;
17379	esac
17380      fi
17381    fi
17382  else
17383    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17384$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17385  fi
17386fi
17387rm -f confcache
17388
17389test "x$prefix" = xNONE && prefix=$ac_default_prefix
17390# Let make expand exec_prefix.
17391test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17392
17393DEFS=-DHAVE_CONFIG_H
17394
17395ac_libobjs=
17396ac_ltlibobjs=
17397U=
17398for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17399  # 1. Remove the extension, and $U if already installed.
17400  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17401  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17402  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17403  #    will be set to the directory where LIBOBJS objects are built.
17404  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17405  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17406done
17407LIBOBJS=$ac_libobjs
17408
17409LTLIBOBJS=$ac_ltlibobjs
17410
17411
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17413$as_echo_n "checking that generated files are newer than configure... " >&6; }
17414   if test -n "$am_sleep_pid"; then
17415     # Hide warnings about reused PIDs.
17416     wait $am_sleep_pid 2>/dev/null
17417   fi
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17419$as_echo "done" >&6; }
17420 if test -n "$EXEEXT"; then
17421  am__EXEEXT_TRUE=
17422  am__EXEEXT_FALSE='#'
17423else
17424  am__EXEEXT_TRUE='#'
17425  am__EXEEXT_FALSE=
17426fi
17427
17428if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17429  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17430Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431fi
17432if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17433  as_fn_error $? "conditional \"AMDEP\" was never defined.
17434Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435fi
17436if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17437  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17438Usually this means the macro was only invoked conditionally." "$LINENO" 5
17439fi
17440if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17441  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
17442Usually this means the macro was only invoked conditionally." "$LINENO" 5
17443fi
17444if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17445  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
17446Usually this means the macro was only invoked conditionally." "$LINENO" 5
17447fi
17448LT_CONFIG_H=config.h
17449
17450    _ltdl_libobjs=
17451    _ltdl_ltlibobjs=
17452    if test -n "$_LT_LIBOBJS"; then
17453      # Remove the extension.
17454      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17455      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17456        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17457        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17458      done
17459    fi
17460    ltdl_LIBOBJS=$_ltdl_libobjs
17461
17462    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17463
17464
17465
17466
17467: "${CONFIG_STATUS=./config.status}"
17468ac_write_fail=0
17469ac_clean_files_save=$ac_clean_files
17470ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17471{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17472$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17473as_write_fail=0
17474cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17475#! $SHELL
17476# Generated by $as_me.
17477# Run this file to recreate the current configuration.
17478# Compiler output produced by configure, useful for debugging
17479# configure, is in config.log if it exists.
17480
17481debug=false
17482ac_cs_recheck=false
17483ac_cs_silent=false
17484
17485SHELL=\${CONFIG_SHELL-$SHELL}
17486export SHELL
17487_ASEOF
17488cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17489## -------------------- ##
17490## M4sh Initialization. ##
17491## -------------------- ##
17492
17493# Be more Bourne compatible
17494DUALCASE=1; export DUALCASE # for MKS sh
17495if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17496  emulate sh
17497  NULLCMD=:
17498  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17499  # is contrary to our usage.  Disable this feature.
17500  alias -g '${1+"$@"}'='"$@"'
17501  setopt NO_GLOB_SUBST
17502else
17503  case `(set -o) 2>/dev/null` in #(
17504  *posix*) :
17505    set -o posix ;; #(
17506  *) :
17507     ;;
17508esac
17509fi
17510
17511
17512as_nl='
17513'
17514export as_nl
17515# Printing a long string crashes Solaris 7 /usr/bin/printf.
17516as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17517as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17519# Prefer a ksh shell builtin over an external printf program on Solaris,
17520# but without wasting forks for bash or zsh.
17521if test -z "$BASH_VERSION$ZSH_VERSION" \
17522    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17523  as_echo='print -r --'
17524  as_echo_n='print -rn --'
17525elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17526  as_echo='printf %s\n'
17527  as_echo_n='printf %s'
17528else
17529  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17530    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17531    as_echo_n='/usr/ucb/echo -n'
17532  else
17533    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17534    as_echo_n_body='eval
17535      arg=$1;
17536      case $arg in #(
17537      *"$as_nl"*)
17538	expr "X$arg" : "X\\(.*\\)$as_nl";
17539	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17540      esac;
17541      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17542    '
17543    export as_echo_n_body
17544    as_echo_n='sh -c $as_echo_n_body as_echo'
17545  fi
17546  export as_echo_body
17547  as_echo='sh -c $as_echo_body as_echo'
17548fi
17549
17550# The user is always right.
17551if test "${PATH_SEPARATOR+set}" != set; then
17552  PATH_SEPARATOR=:
17553  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17554    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17555      PATH_SEPARATOR=';'
17556  }
17557fi
17558
17559
17560# IFS
17561# We need space, tab and new line, in precisely that order.  Quoting is
17562# there to prevent editors from complaining about space-tab.
17563# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17564# splitting by setting IFS to empty value.)
17565IFS=" ""	$as_nl"
17566
17567# Find who we are.  Look in the path if we contain no directory separator.
17568as_myself=
17569case $0 in #((
17570  *[\\/]* ) as_myself=$0 ;;
17571  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572for as_dir in $PATH
17573do
17574  IFS=$as_save_IFS
17575  test -z "$as_dir" && as_dir=.
17576    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17577  done
17578IFS=$as_save_IFS
17579
17580     ;;
17581esac
17582# We did not find ourselves, most probably we were run as `sh COMMAND'
17583# in which case we are not to be found in the path.
17584if test "x$as_myself" = x; then
17585  as_myself=$0
17586fi
17587if test ! -f "$as_myself"; then
17588  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17589  exit 1
17590fi
17591
17592# Unset variables that we do not need and which cause bugs (e.g. in
17593# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17594# suppresses any "Segmentation fault" message there.  '((' could
17595# trigger a bug in pdksh 5.2.14.
17596for as_var in BASH_ENV ENV MAIL MAILPATH
17597do eval test x\${$as_var+set} = xset \
17598  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17599done
17600PS1='$ '
17601PS2='> '
17602PS4='+ '
17603
17604# NLS nuisances.
17605LC_ALL=C
17606export LC_ALL
17607LANGUAGE=C
17608export LANGUAGE
17609
17610# CDPATH.
17611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17612
17613
17614# as_fn_error STATUS ERROR [LINENO LOG_FD]
17615# ----------------------------------------
17616# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17617# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17618# script with STATUS, using 1 if that was 0.
17619as_fn_error ()
17620{
17621  as_status=$1; test $as_status -eq 0 && as_status=1
17622  if test "$4"; then
17623    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17624    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17625  fi
17626  $as_echo "$as_me: error: $2" >&2
17627  as_fn_exit $as_status
17628} # as_fn_error
17629
17630
17631# as_fn_set_status STATUS
17632# -----------------------
17633# Set $? to STATUS, without forking.
17634as_fn_set_status ()
17635{
17636  return $1
17637} # as_fn_set_status
17638
17639# as_fn_exit STATUS
17640# -----------------
17641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17642as_fn_exit ()
17643{
17644  set +e
17645  as_fn_set_status $1
17646  exit $1
17647} # as_fn_exit
17648
17649# as_fn_unset VAR
17650# ---------------
17651# Portably unset VAR.
17652as_fn_unset ()
17653{
17654  { eval $1=; unset $1;}
17655}
17656as_unset=as_fn_unset
17657# as_fn_append VAR VALUE
17658# ----------------------
17659# Append the text in VALUE to the end of the definition contained in VAR. Take
17660# advantage of any shell optimizations that allow amortized linear growth over
17661# repeated appends, instead of the typical quadratic growth present in naive
17662# implementations.
17663if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17664  eval 'as_fn_append ()
17665  {
17666    eval $1+=\$2
17667  }'
17668else
17669  as_fn_append ()
17670  {
17671    eval $1=\$$1\$2
17672  }
17673fi # as_fn_append
17674
17675# as_fn_arith ARG...
17676# ------------------
17677# Perform arithmetic evaluation on the ARGs, and store the result in the
17678# global $as_val. Take advantage of shells that can avoid forks. The arguments
17679# must be portable across $(()) and expr.
17680if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17681  eval 'as_fn_arith ()
17682  {
17683    as_val=$(( $* ))
17684  }'
17685else
17686  as_fn_arith ()
17687  {
17688    as_val=`expr "$@" || test $? -eq 1`
17689  }
17690fi # as_fn_arith
17691
17692
17693if expr a : '\(a\)' >/dev/null 2>&1 &&
17694   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17695  as_expr=expr
17696else
17697  as_expr=false
17698fi
17699
17700if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17701  as_basename=basename
17702else
17703  as_basename=false
17704fi
17705
17706if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17707  as_dirname=dirname
17708else
17709  as_dirname=false
17710fi
17711
17712as_me=`$as_basename -- "$0" ||
17713$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17714	 X"$0" : 'X\(//\)$' \| \
17715	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17716$as_echo X/"$0" |
17717    sed '/^.*\/\([^/][^/]*\)\/*$/{
17718	    s//\1/
17719	    q
17720	  }
17721	  /^X\/\(\/\/\)$/{
17722	    s//\1/
17723	    q
17724	  }
17725	  /^X\/\(\/\).*/{
17726	    s//\1/
17727	    q
17728	  }
17729	  s/.*/./; q'`
17730
17731# Avoid depending upon Character Ranges.
17732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17735as_cr_digits='0123456789'
17736as_cr_alnum=$as_cr_Letters$as_cr_digits
17737
17738ECHO_C= ECHO_N= ECHO_T=
17739case `echo -n x` in #(((((
17740-n*)
17741  case `echo 'xy\c'` in
17742  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17743  xy)  ECHO_C='\c';;
17744  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17745       ECHO_T='	';;
17746  esac;;
17747*)
17748  ECHO_N='-n';;
17749esac
17750
17751rm -f conf$$ conf$$.exe conf$$.file
17752if test -d conf$$.dir; then
17753  rm -f conf$$.dir/conf$$.file
17754else
17755  rm -f conf$$.dir
17756  mkdir conf$$.dir 2>/dev/null
17757fi
17758if (echo >conf$$.file) 2>/dev/null; then
17759  if ln -s conf$$.file conf$$ 2>/dev/null; then
17760    as_ln_s='ln -s'
17761    # ... but there are two gotchas:
17762    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17763    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17764    # In both cases, we have to default to `cp -pR'.
17765    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17766      as_ln_s='cp -pR'
17767  elif ln conf$$.file conf$$ 2>/dev/null; then
17768    as_ln_s=ln
17769  else
17770    as_ln_s='cp -pR'
17771  fi
17772else
17773  as_ln_s='cp -pR'
17774fi
17775rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17776rmdir conf$$.dir 2>/dev/null
17777
17778
17779# as_fn_mkdir_p
17780# -------------
17781# Create "$as_dir" as a directory, including parents if necessary.
17782as_fn_mkdir_p ()
17783{
17784
17785  case $as_dir in #(
17786  -*) as_dir=./$as_dir;;
17787  esac
17788  test -d "$as_dir" || eval $as_mkdir_p || {
17789    as_dirs=
17790    while :; do
17791      case $as_dir in #(
17792      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17793      *) as_qdir=$as_dir;;
17794      esac
17795      as_dirs="'$as_qdir' $as_dirs"
17796      as_dir=`$as_dirname -- "$as_dir" ||
17797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17798	 X"$as_dir" : 'X\(//\)[^/]' \| \
17799	 X"$as_dir" : 'X\(//\)$' \| \
17800	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17801$as_echo X"$as_dir" |
17802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17803	    s//\1/
17804	    q
17805	  }
17806	  /^X\(\/\/\)[^/].*/{
17807	    s//\1/
17808	    q
17809	  }
17810	  /^X\(\/\/\)$/{
17811	    s//\1/
17812	    q
17813	  }
17814	  /^X\(\/\).*/{
17815	    s//\1/
17816	    q
17817	  }
17818	  s/.*/./; q'`
17819      test -d "$as_dir" && break
17820    done
17821    test -z "$as_dirs" || eval "mkdir $as_dirs"
17822  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17823
17824
17825} # as_fn_mkdir_p
17826if mkdir -p . 2>/dev/null; then
17827  as_mkdir_p='mkdir -p "$as_dir"'
17828else
17829  test -d ./-p && rmdir ./-p
17830  as_mkdir_p=false
17831fi
17832
17833
17834# as_fn_executable_p FILE
17835# -----------------------
17836# Test if FILE is an executable regular file.
17837as_fn_executable_p ()
17838{
17839  test -f "$1" && test -x "$1"
17840} # as_fn_executable_p
17841as_test_x='test -x'
17842as_executable_p=as_fn_executable_p
17843
17844# Sed expression to map a string onto a valid CPP name.
17845as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17846
17847# Sed expression to map a string onto a valid variable name.
17848as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17849
17850
17851exec 6>&1
17852## ----------------------------------- ##
17853## Main body of $CONFIG_STATUS script. ##
17854## ----------------------------------- ##
17855_ASEOF
17856test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17857
17858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17859# Save the log message, to keep $0 and so on meaningful, and to
17860# report actual input values of CONFIG_FILES etc. instead of their
17861# values after options handling.
17862ac_log="
17863This file was extended by ircd-hybrid $as_me 8.2.39, which was
17864generated by GNU Autoconf 2.69.  Invocation command line was
17865
17866  CONFIG_FILES    = $CONFIG_FILES
17867  CONFIG_HEADERS  = $CONFIG_HEADERS
17868  CONFIG_LINKS    = $CONFIG_LINKS
17869  CONFIG_COMMANDS = $CONFIG_COMMANDS
17870  $ $0 $@
17871
17872on `(hostname || uname -n) 2>/dev/null | sed 1q`
17873"
17874
17875_ACEOF
17876
17877case $ac_config_files in *"
17878"*) set x $ac_config_files; shift; ac_config_files=$*;;
17879esac
17880
17881case $ac_config_headers in *"
17882"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17883esac
17884
17885
17886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17887# Files that config.status was made for.
17888config_files="$ac_config_files"
17889config_headers="$ac_config_headers"
17890config_commands="$ac_config_commands"
17891
17892_ACEOF
17893
17894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17895ac_cs_usage="\
17896\`$as_me' instantiates files and other configuration actions
17897from templates according to the current configuration.  Unless the files
17898and actions are specified as TAGs, all are instantiated by default.
17899
17900Usage: $0 [OPTION]... [TAG]...
17901
17902  -h, --help       print this help, then exit
17903  -V, --version    print version number and configuration settings, then exit
17904      --config     print configuration, then exit
17905  -q, --quiet, --silent
17906                   do not print progress messages
17907  -d, --debug      don't remove temporary files
17908      --recheck    update $as_me by reconfiguring in the same conditions
17909      --file=FILE[:TEMPLATE]
17910                   instantiate the configuration file FILE
17911      --header=FILE[:TEMPLATE]
17912                   instantiate the configuration header FILE
17913
17914Configuration files:
17915$config_files
17916
17917Configuration headers:
17918$config_headers
17919
17920Configuration commands:
17921$config_commands
17922
17923Report bugs to <bugs@ircd-hybrid.org>."
17924
17925_ACEOF
17926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17927ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17928ac_cs_version="\\
17929ircd-hybrid config.status 8.2.39
17930configured by $0, generated by GNU Autoconf 2.69,
17931  with options \\"\$ac_cs_config\\"
17932
17933Copyright (C) 2012 Free Software Foundation, Inc.
17934This config.status script is free software; the Free Software Foundation
17935gives unlimited permission to copy, distribute and modify it."
17936
17937ac_pwd='$ac_pwd'
17938srcdir='$srcdir'
17939INSTALL='$INSTALL'
17940MKDIR_P='$MKDIR_P'
17941AWK='$AWK'
17942test -n "\$AWK" || AWK=awk
17943_ACEOF
17944
17945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17946# The default lists apply if the user does not specify any file.
17947ac_need_defaults=:
17948while test $# != 0
17949do
17950  case $1 in
17951  --*=?*)
17952    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17953    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17954    ac_shift=:
17955    ;;
17956  --*=)
17957    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17958    ac_optarg=
17959    ac_shift=:
17960    ;;
17961  *)
17962    ac_option=$1
17963    ac_optarg=$2
17964    ac_shift=shift
17965    ;;
17966  esac
17967
17968  case $ac_option in
17969  # Handling of the options.
17970  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17971    ac_cs_recheck=: ;;
17972  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17973    $as_echo "$ac_cs_version"; exit ;;
17974  --config | --confi | --conf | --con | --co | --c )
17975    $as_echo "$ac_cs_config"; exit ;;
17976  --debug | --debu | --deb | --de | --d | -d )
17977    debug=: ;;
17978  --file | --fil | --fi | --f )
17979    $ac_shift
17980    case $ac_optarg in
17981    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17982    '') as_fn_error $? "missing file argument" ;;
17983    esac
17984    as_fn_append CONFIG_FILES " '$ac_optarg'"
17985    ac_need_defaults=false;;
17986  --header | --heade | --head | --hea )
17987    $ac_shift
17988    case $ac_optarg in
17989    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17990    esac
17991    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17992    ac_need_defaults=false;;
17993  --he | --h)
17994    # Conflict between --help and --header
17995    as_fn_error $? "ambiguous option: \`$1'
17996Try \`$0 --help' for more information.";;
17997  --help | --hel | -h )
17998    $as_echo "$ac_cs_usage"; exit ;;
17999  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18000  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18001    ac_cs_silent=: ;;
18002
18003  # This is an error.
18004  -*) as_fn_error $? "unrecognized option: \`$1'
18005Try \`$0 --help' for more information." ;;
18006
18007  *) as_fn_append ac_config_targets " $1"
18008     ac_need_defaults=false ;;
18009
18010  esac
18011  shift
18012done
18013
18014ac_configure_extra_args=
18015
18016if $ac_cs_silent; then
18017  exec 6>/dev/null
18018  ac_configure_extra_args="$ac_configure_extra_args --silent"
18019fi
18020
18021_ACEOF
18022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18023if \$ac_cs_recheck; then
18024  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18025  shift
18026  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18027  CONFIG_SHELL='$SHELL'
18028  export CONFIG_SHELL
18029  exec "\$@"
18030fi
18031
18032_ACEOF
18033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034exec 5>>config.log
18035{
18036  echo
18037  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18038## Running $as_me. ##
18039_ASBOX
18040  $as_echo "$ac_log"
18041} >&5
18042
18043_ACEOF
18044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18045#
18046# INIT-COMMANDS
18047#
18048AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18049
18050
18051# The HP-UX ksh and POSIX shell print the target directory to stdout
18052# if CDPATH is set.
18053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18054
18055sed_quote_subst='$sed_quote_subst'
18056double_quote_subst='$double_quote_subst'
18057delay_variable_subst='$delay_variable_subst'
18058macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18059macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18060enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18061enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18062pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18063enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18064shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18065SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18066ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18067PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18068host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18069host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18070host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18071build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18072build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18073build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18074SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18075Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18076GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18077EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18078FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18079LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18080NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18081LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18082max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18083ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18084exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18085lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18086lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18087lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18088lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18089lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18090reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18091reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18092OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18093deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18094file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18095file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18096want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18097DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18098sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18099AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18100AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18101archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18102STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18103RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18104old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18105old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18106old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18107lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18108CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18109CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18110compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18111GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18112lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18113lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18114lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18115lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18116lt_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"`'
18117lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18118nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18119lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18120lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18121objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18122MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18123lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18124lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18125lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18126lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18127lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18128need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18129MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18130DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18131NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18132LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18133OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18134OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18135libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18136shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18137extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18138archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18139enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18140export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18141whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18142compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18143old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18144old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18145archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18146archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18147module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18148module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18149with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18150allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18151no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18152hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18153hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18154hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18155hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18156hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18157hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18158hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18159inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18160link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18161always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18162export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18163exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18164include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18165prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18166postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18167file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18168variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18169need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18170need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18171version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18172runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18173shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18174shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18175libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18176library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18177soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18178install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18179postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18180postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18181finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18182finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18183hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18184sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18185configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18186configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18187hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18188enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18189enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18190enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18191old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18192striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18193
18194LTCC='$LTCC'
18195LTCFLAGS='$LTCFLAGS'
18196compiler='$compiler_DEFAULT'
18197
18198# A function that is used when there is no print builtin or printf.
18199func_fallback_echo ()
18200{
18201  eval 'cat <<_LTECHO_EOF
18202\$1
18203_LTECHO_EOF'
18204}
18205
18206# Quote evaled strings.
18207for var in SHELL \
18208ECHO \
18209PATH_SEPARATOR \
18210SED \
18211GREP \
18212EGREP \
18213FGREP \
18214LD \
18215NM \
18216LN_S \
18217lt_SP2NL \
18218lt_NL2SP \
18219reload_flag \
18220OBJDUMP \
18221deplibs_check_method \
18222file_magic_cmd \
18223file_magic_glob \
18224want_nocaseglob \
18225DLLTOOL \
18226sharedlib_from_linklib_cmd \
18227AR \
18228AR_FLAGS \
18229archiver_list_spec \
18230STRIP \
18231RANLIB \
18232CC \
18233CFLAGS \
18234compiler \
18235lt_cv_sys_global_symbol_pipe \
18236lt_cv_sys_global_symbol_to_cdecl \
18237lt_cv_sys_global_symbol_to_import \
18238lt_cv_sys_global_symbol_to_c_name_address \
18239lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18240lt_cv_nm_interface \
18241nm_file_list_spec \
18242lt_cv_truncate_bin \
18243lt_prog_compiler_no_builtin_flag \
18244lt_prog_compiler_pic \
18245lt_prog_compiler_wl \
18246lt_prog_compiler_static \
18247lt_cv_prog_compiler_c_o \
18248need_locks \
18249MANIFEST_TOOL \
18250DSYMUTIL \
18251NMEDIT \
18252LIPO \
18253OTOOL \
18254OTOOL64 \
18255shrext_cmds \
18256export_dynamic_flag_spec \
18257whole_archive_flag_spec \
18258compiler_needs_object \
18259with_gnu_ld \
18260allow_undefined_flag \
18261no_undefined_flag \
18262hardcode_libdir_flag_spec \
18263hardcode_libdir_separator \
18264exclude_expsyms \
18265include_expsyms \
18266file_list_spec \
18267variables_saved_for_relink \
18268libname_spec \
18269library_names_spec \
18270soname_spec \
18271install_override_mode \
18272finish_eval \
18273old_striplib \
18274striplib; do
18275    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18276    *[\\\\\\\`\\"\\\$]*)
18277      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18278      ;;
18279    *)
18280      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18281      ;;
18282    esac
18283done
18284
18285# Double-quote double-evaled strings.
18286for var in reload_cmds \
18287old_postinstall_cmds \
18288old_postuninstall_cmds \
18289old_archive_cmds \
18290extract_expsyms_cmds \
18291old_archive_from_new_cmds \
18292old_archive_from_expsyms_cmds \
18293archive_cmds \
18294archive_expsym_cmds \
18295module_cmds \
18296module_expsym_cmds \
18297export_symbols_cmds \
18298prelink_cmds \
18299postlink_cmds \
18300postinstall_cmds \
18301postuninstall_cmds \
18302finish_cmds \
18303sys_lib_search_path_spec \
18304configure_time_dlsearch_path \
18305configure_time_lt_sys_library_path; do
18306    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18307    *[\\\\\\\`\\"\\\$]*)
18308      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18309      ;;
18310    *)
18311      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18312      ;;
18313    esac
18314done
18315
18316ac_aux_dir='$ac_aux_dir'
18317
18318# See if we are running on zsh, and set the options that allow our
18319# commands through without removal of \ escapes INIT.
18320if test -n "\${ZSH_VERSION+set}"; then
18321   setopt NO_GLOB_SUBST
18322fi
18323
18324
18325    PACKAGE='$PACKAGE'
18326    VERSION='$VERSION'
18327    RM='$RM'
18328    ofile='$ofile'
18329
18330
18331
18332
18333_ACEOF
18334
18335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18336
18337# Handling of arguments.
18338for ac_config_target in $ac_config_targets
18339do
18340  case $ac_config_target in
18341    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18342    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18343    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18344    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18345    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18346    "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18347    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18348    "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18349    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18350    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18351    "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18352    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18353
18354  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18355  esac
18356done
18357
18358
18359# If the user did not use the arguments to specify the items to instantiate,
18360# then the envvar interface is used.  Set only those that are not.
18361# We use the long form for the default assignment because of an extremely
18362# bizarre bug on SunOS 4.1.3.
18363if $ac_need_defaults; then
18364  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18365  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18366  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18367fi
18368
18369# Have a temporary directory for convenience.  Make it in the build tree
18370# simply because there is no reason against having it here, and in addition,
18371# creating and moving files from /tmp can sometimes cause problems.
18372# Hook for its removal unless debugging.
18373# Note that there is a small window in which the directory will not be cleaned:
18374# after its creation but before its name has been assigned to `$tmp'.
18375$debug ||
18376{
18377  tmp= ac_tmp=
18378  trap 'exit_status=$?
18379  : "${ac_tmp:=$tmp}"
18380  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18381' 0
18382  trap 'as_fn_exit 1' 1 2 13 15
18383}
18384# Create a (secure) tmp directory for tmp files.
18385
18386{
18387  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18388  test -d "$tmp"
18389}  ||
18390{
18391  tmp=./conf$$-$RANDOM
18392  (umask 077 && mkdir "$tmp")
18393} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18394ac_tmp=$tmp
18395
18396# Set up the scripts for CONFIG_FILES section.
18397# No need to generate them if there are no CONFIG_FILES.
18398# This happens for instance with `./config.status config.h'.
18399if test -n "$CONFIG_FILES"; then
18400
18401
18402ac_cr=`echo X | tr X '\015'`
18403# On cygwin, bash can eat \r inside `` if the user requested igncr.
18404# But we know of no other shell where ac_cr would be empty at this
18405# point, so we can use a bashism as a fallback.
18406if test "x$ac_cr" = x; then
18407  eval ac_cr=\$\'\\r\'
18408fi
18409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18411  ac_cs_awk_cr='\\r'
18412else
18413  ac_cs_awk_cr=$ac_cr
18414fi
18415
18416echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18417_ACEOF
18418
18419
18420{
18421  echo "cat >conf$$subs.awk <<_ACEOF" &&
18422  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18423  echo "_ACEOF"
18424} >conf$$subs.sh ||
18425  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18427ac_delim='%!_!# '
18428for ac_last_try in false false false false false :; do
18429  . ./conf$$subs.sh ||
18430    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18431
18432  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18433  if test $ac_delim_n = $ac_delim_num; then
18434    break
18435  elif $ac_last_try; then
18436    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18437  else
18438    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18439  fi
18440done
18441rm -f conf$$subs.sh
18442
18443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18444cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18445_ACEOF
18446sed -n '
18447h
18448s/^/S["/; s/!.*/"]=/
18449p
18450g
18451s/^[^!]*!//
18452:repl
18453t repl
18454s/'"$ac_delim"'$//
18455t delim
18456:nl
18457h
18458s/\(.\{148\}\)..*/\1/
18459t more1
18460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18461p
18462n
18463b repl
18464:more1
18465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18466p
18467g
18468s/.\{148\}//
18469t nl
18470:delim
18471h
18472s/\(.\{148\}\)..*/\1/
18473t more2
18474s/["\\]/\\&/g; s/^/"/; s/$/"/
18475p
18476b
18477:more2
18478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18479p
18480g
18481s/.\{148\}//
18482t delim
18483' <conf$$subs.awk | sed '
18484/^[^""]/{
18485  N
18486  s/\n//
18487}
18488' >>$CONFIG_STATUS || ac_write_fail=1
18489rm -f conf$$subs.awk
18490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18491_ACAWK
18492cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18493  for (key in S) S_is_set[key] = 1
18494  FS = ""
18495
18496}
18497{
18498  line = $ 0
18499  nfields = split(line, field, "@")
18500  substed = 0
18501  len = length(field[1])
18502  for (i = 2; i < nfields; i++) {
18503    key = field[i]
18504    keylen = length(key)
18505    if (S_is_set[key]) {
18506      value = S[key]
18507      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18508      len += length(value) + length(field[++i])
18509      substed = 1
18510    } else
18511      len += 1 + keylen
18512  }
18513
18514  print line
18515}
18516
18517_ACAWK
18518_ACEOF
18519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18521  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18522else
18523  cat
18524fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18525  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18526_ACEOF
18527
18528# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18530# trailing colons and then remove the whole line if VPATH becomes empty
18531# (actually we leave an empty line to preserve line numbers).
18532if test "x$srcdir" = x.; then
18533  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18534h
18535s///
18536s/^/:/
18537s/[	 ]*$/:/
18538s/:\$(srcdir):/:/g
18539s/:\${srcdir}:/:/g
18540s/:@srcdir@:/:/g
18541s/^:*//
18542s/:*$//
18543x
18544s/\(=[	 ]*\).*/\1/
18545G
18546s/\n//
18547s/^[^=]*=[	 ]*$//
18548}'
18549fi
18550
18551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18552fi # test -n "$CONFIG_FILES"
18553
18554# Set up the scripts for CONFIG_HEADERS section.
18555# No need to generate them if there are no CONFIG_HEADERS.
18556# This happens for instance with `./config.status Makefile'.
18557if test -n "$CONFIG_HEADERS"; then
18558cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18559BEGIN {
18560_ACEOF
18561
18562# Transform confdefs.h into an awk script `defines.awk', embedded as
18563# here-document in config.status, that substitutes the proper values into
18564# config.h.in to produce config.h.
18565
18566# Create a delimiter string that does not exist in confdefs.h, to ease
18567# handling of long lines.
18568ac_delim='%!_!# '
18569for ac_last_try in false false :; do
18570  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18571  if test -z "$ac_tt"; then
18572    break
18573  elif $ac_last_try; then
18574    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18575  else
18576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18577  fi
18578done
18579
18580# For the awk script, D is an array of macro values keyed by name,
18581# likewise P contains macro parameters if any.  Preserve backslash
18582# newline sequences.
18583
18584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18585sed -n '
18586s/.\{148\}/&'"$ac_delim"'/g
18587t rset
18588:rset
18589s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18590t def
18591d
18592:def
18593s/\\$//
18594t bsnl
18595s/["\\]/\\&/g
18596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18597D["\1"]=" \3"/p
18598s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18599d
18600:bsnl
18601s/["\\]/\\&/g
18602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18603D["\1"]=" \3\\\\\\n"\\/p
18604t cont
18605s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18606t cont
18607d
18608:cont
18609n
18610s/.\{148\}/&'"$ac_delim"'/g
18611t clear
18612:clear
18613s/\\$//
18614t bsnlc
18615s/["\\]/\\&/g; s/^/"/; s/$/"/p
18616d
18617:bsnlc
18618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18619b cont
18620' <confdefs.h | sed '
18621s/'"$ac_delim"'/"\\\
18622"/g' >>$CONFIG_STATUS || ac_write_fail=1
18623
18624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625  for (key in D) D_is_set[key] = 1
18626  FS = ""
18627}
18628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18629  line = \$ 0
18630  split(line, arg, " ")
18631  if (arg[1] == "#") {
18632    defundef = arg[2]
18633    mac1 = arg[3]
18634  } else {
18635    defundef = substr(arg[1], 2)
18636    mac1 = arg[2]
18637  }
18638  split(mac1, mac2, "(") #)
18639  macro = mac2[1]
18640  prefix = substr(line, 1, index(line, defundef) - 1)
18641  if (D_is_set[macro]) {
18642    # Preserve the white space surrounding the "#".
18643    print prefix "define", macro P[macro] D[macro]
18644    next
18645  } else {
18646    # Replace #undef with comments.  This is necessary, for example,
18647    # in the case of _POSIX_SOURCE, which is predefined and required
18648    # on some systems where configure will not decide to define it.
18649    if (defundef == "undef") {
18650      print "/*", prefix defundef, macro, "*/"
18651      next
18652    }
18653  }
18654}
18655{ print }
18656_ACAWK
18657_ACEOF
18658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18659  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18660fi # test -n "$CONFIG_HEADERS"
18661
18662
18663eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18664shift
18665for ac_tag
18666do
18667  case $ac_tag in
18668  :[FHLC]) ac_mode=$ac_tag; continue;;
18669  esac
18670  case $ac_mode$ac_tag in
18671  :[FHL]*:*);;
18672  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18673  :[FH]-) ac_tag=-:-;;
18674  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18675  esac
18676  ac_save_IFS=$IFS
18677  IFS=:
18678  set x $ac_tag
18679  IFS=$ac_save_IFS
18680  shift
18681  ac_file=$1
18682  shift
18683
18684  case $ac_mode in
18685  :L) ac_source=$1;;
18686  :[FH])
18687    ac_file_inputs=
18688    for ac_f
18689    do
18690      case $ac_f in
18691      -) ac_f="$ac_tmp/stdin";;
18692      *) # Look for the file first in the build tree, then in the source tree
18693	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18694	 # because $ac_f cannot contain `:'.
18695	 test -f "$ac_f" ||
18696	   case $ac_f in
18697	   [\\/$]*) false;;
18698	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18699	   esac ||
18700	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18701      esac
18702      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18703      as_fn_append ac_file_inputs " '$ac_f'"
18704    done
18705
18706    # Let's still pretend it is `configure' which instantiates (i.e., don't
18707    # use $as_me), people would be surprised to read:
18708    #    /* config.h.  Generated by config.status.  */
18709    configure_input='Generated from '`
18710	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18711	`' by configure.'
18712    if test x"$ac_file" != x-; then
18713      configure_input="$ac_file.  $configure_input"
18714      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18715$as_echo "$as_me: creating $ac_file" >&6;}
18716    fi
18717    # Neutralize special characters interpreted by sed in replacement strings.
18718    case $configure_input in #(
18719    *\&* | *\|* | *\\* )
18720       ac_sed_conf_input=`$as_echo "$configure_input" |
18721       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18722    *) ac_sed_conf_input=$configure_input;;
18723    esac
18724
18725    case $ac_tag in
18726    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18727      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18728    esac
18729    ;;
18730  esac
18731
18732  ac_dir=`$as_dirname -- "$ac_file" ||
18733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18734	 X"$ac_file" : 'X\(//\)[^/]' \| \
18735	 X"$ac_file" : 'X\(//\)$' \| \
18736	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18737$as_echo X"$ac_file" |
18738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18739	    s//\1/
18740	    q
18741	  }
18742	  /^X\(\/\/\)[^/].*/{
18743	    s//\1/
18744	    q
18745	  }
18746	  /^X\(\/\/\)$/{
18747	    s//\1/
18748	    q
18749	  }
18750	  /^X\(\/\).*/{
18751	    s//\1/
18752	    q
18753	  }
18754	  s/.*/./; q'`
18755  as_dir="$ac_dir"; as_fn_mkdir_p
18756  ac_builddir=.
18757
18758case "$ac_dir" in
18759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18760*)
18761  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18762  # A ".." for each directory in $ac_dir_suffix.
18763  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18764  case $ac_top_builddir_sub in
18765  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18766  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18767  esac ;;
18768esac
18769ac_abs_top_builddir=$ac_pwd
18770ac_abs_builddir=$ac_pwd$ac_dir_suffix
18771# for backward compatibility:
18772ac_top_builddir=$ac_top_build_prefix
18773
18774case $srcdir in
18775  .)  # We are building in place.
18776    ac_srcdir=.
18777    ac_top_srcdir=$ac_top_builddir_sub
18778    ac_abs_top_srcdir=$ac_pwd ;;
18779  [\\/]* | ?:[\\/]* )  # Absolute name.
18780    ac_srcdir=$srcdir$ac_dir_suffix;
18781    ac_top_srcdir=$srcdir
18782    ac_abs_top_srcdir=$srcdir ;;
18783  *) # Relative name.
18784    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18785    ac_top_srcdir=$ac_top_build_prefix$srcdir
18786    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18787esac
18788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18789
18790
18791  case $ac_mode in
18792  :F)
18793  #
18794  # CONFIG_FILE
18795  #
18796
18797  case $INSTALL in
18798  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18799  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18800  esac
18801  ac_MKDIR_P=$MKDIR_P
18802  case $MKDIR_P in
18803  [\\/$]* | ?:[\\/]* ) ;;
18804  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18805  esac
18806_ACEOF
18807
18808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18809# If the template does not know about datarootdir, expand it.
18810# FIXME: This hack should be removed a few years after 2.60.
18811ac_datarootdir_hack=; ac_datarootdir_seen=
18812ac_sed_dataroot='
18813/datarootdir/ {
18814  p
18815  q
18816}
18817/@datadir@/p
18818/@docdir@/p
18819/@infodir@/p
18820/@localedir@/p
18821/@mandir@/p'
18822case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18823*datarootdir*) ac_datarootdir_seen=yes;;
18824*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18825  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18826$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18827_ACEOF
18828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18829  ac_datarootdir_hack='
18830  s&@datadir@&$datadir&g
18831  s&@docdir@&$docdir&g
18832  s&@infodir@&$infodir&g
18833  s&@localedir@&$localedir&g
18834  s&@mandir@&$mandir&g
18835  s&\\\${datarootdir}&$datarootdir&g' ;;
18836esac
18837_ACEOF
18838
18839# Neutralize VPATH when `$srcdir' = `.'.
18840# Shell code in configure.ac might set extrasub.
18841# FIXME: do we really want to maintain this feature?
18842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18843ac_sed_extra="$ac_vpsub
18844$extrasub
18845_ACEOF
18846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18847:t
18848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18849s|@configure_input@|$ac_sed_conf_input|;t t
18850s&@top_builddir@&$ac_top_builddir_sub&;t t
18851s&@top_build_prefix@&$ac_top_build_prefix&;t t
18852s&@srcdir@&$ac_srcdir&;t t
18853s&@abs_srcdir@&$ac_abs_srcdir&;t t
18854s&@top_srcdir@&$ac_top_srcdir&;t t
18855s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18856s&@builddir@&$ac_builddir&;t t
18857s&@abs_builddir@&$ac_abs_builddir&;t t
18858s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18859s&@INSTALL@&$ac_INSTALL&;t t
18860s&@MKDIR_P@&$ac_MKDIR_P&;t t
18861$ac_datarootdir_hack
18862"
18863eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18864  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18865
18866test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18867  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18868  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18869      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18870  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18871which seems to be undefined.  Please make sure it is defined" >&5
18872$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18873which seems to be undefined.  Please make sure it is defined" >&2;}
18874
18875  rm -f "$ac_tmp/stdin"
18876  case $ac_file in
18877  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18878  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18879  esac \
18880  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18881 ;;
18882  :H)
18883  #
18884  # CONFIG_HEADER
18885  #
18886  if test x"$ac_file" != x-; then
18887    {
18888      $as_echo "/* $configure_input  */" \
18889      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18890    } >"$ac_tmp/config.h" \
18891      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18892    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18893      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18894$as_echo "$as_me: $ac_file is unchanged" >&6;}
18895    else
18896      rm -f "$ac_file"
18897      mv "$ac_tmp/config.h" "$ac_file" \
18898	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18899    fi
18900  else
18901    $as_echo "/* $configure_input  */" \
18902      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18903      || as_fn_error $? "could not create -" "$LINENO" 5
18904  fi
18905# Compute "$ac_file"'s index in $config_headers.
18906_am_arg="$ac_file"
18907_am_stamp_count=1
18908for _am_header in $config_headers :; do
18909  case $_am_header in
18910    $_am_arg | $_am_arg:* )
18911      break ;;
18912    * )
18913      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18914  esac
18915done
18916echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18917$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18918	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18919	 X"$_am_arg" : 'X\(//\)$' \| \
18920	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18921$as_echo X"$_am_arg" |
18922    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18923	    s//\1/
18924	    q
18925	  }
18926	  /^X\(\/\/\)[^/].*/{
18927	    s//\1/
18928	    q
18929	  }
18930	  /^X\(\/\/\)$/{
18931	    s//\1/
18932	    q
18933	  }
18934	  /^X\(\/\).*/{
18935	    s//\1/
18936	    q
18937	  }
18938	  s/.*/./; q'`/stamp-h$_am_stamp_count
18939 ;;
18940
18941  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18942$as_echo "$as_me: executing $ac_file commands" >&6;}
18943 ;;
18944  esac
18945
18946
18947  case $ac_file$ac_mode in
18948    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18949  # Older Autoconf quotes --file arguments for eval, but not when files
18950  # are listed without --file.  Let's play safe and only enable the eval
18951  # if we detect the quoting.
18952  # TODO: see whether this extra hack can be removed once we start
18953  # requiring Autoconf 2.70 or later.
18954  case $CONFIG_FILES in #(
18955  *\'*) :
18956    eval set x "$CONFIG_FILES" ;; #(
18957  *) :
18958    set x $CONFIG_FILES ;; #(
18959  *) :
18960     ;;
18961esac
18962  shift
18963  # Used to flag and report bootstrapping failures.
18964  am_rc=0
18965  for am_mf
18966  do
18967    # Strip MF so we end up with the name of the file.
18968    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18969    # Check whether this is an Automake generated Makefile which includes
18970    # dependency-tracking related rules and includes.
18971    # Grep'ing the whole file directly is not great: AIX grep has a line
18972    # limit of 2048, but all sed's we know have understand at least 4000.
18973    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18974      || continue
18975    am_dirpart=`$as_dirname -- "$am_mf" ||
18976$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18977	 X"$am_mf" : 'X\(//\)[^/]' \| \
18978	 X"$am_mf" : 'X\(//\)$' \| \
18979	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18980$as_echo X"$am_mf" |
18981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18982	    s//\1/
18983	    q
18984	  }
18985	  /^X\(\/\/\)[^/].*/{
18986	    s//\1/
18987	    q
18988	  }
18989	  /^X\(\/\/\)$/{
18990	    s//\1/
18991	    q
18992	  }
18993	  /^X\(\/\).*/{
18994	    s//\1/
18995	    q
18996	  }
18997	  s/.*/./; q'`
18998    am_filepart=`$as_basename -- "$am_mf" ||
18999$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19000	 X"$am_mf" : 'X\(//\)$' \| \
19001	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19002$as_echo X/"$am_mf" |
19003    sed '/^.*\/\([^/][^/]*\)\/*$/{
19004	    s//\1/
19005	    q
19006	  }
19007	  /^X\/\(\/\/\)$/{
19008	    s//\1/
19009	    q
19010	  }
19011	  /^X\/\(\/\).*/{
19012	    s//\1/
19013	    q
19014	  }
19015	  s/.*/./; q'`
19016    { echo "$as_me:$LINENO: cd "$am_dirpart" \
19017      && sed -e '/# am--include-marker/d' "$am_filepart" \
19018        | $MAKE -f - am--depfiles" >&5
19019   (cd "$am_dirpart" \
19020      && sed -e '/# am--include-marker/d' "$am_filepart" \
19021        | $MAKE -f - am--depfiles) >&5 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); } || am_rc=$?
19025  done
19026  if test $am_rc -ne 0; then
19027    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19029as_fn_error $? "Something went wrong bootstrapping makefile fragments
19030    for automatic dependency tracking.  Try re-running configure with the
19031    '--disable-dependency-tracking' option to at least be able to build
19032    the package (albeit without support for automatic dependency tracking).
19033See \`config.log' for more details" "$LINENO" 5; }
19034  fi
19035  { am_dirpart=; unset am_dirpart;}
19036  { am_filepart=; unset am_filepart;}
19037  { am_mf=; unset am_mf;}
19038  { am_rc=; unset am_rc;}
19039  rm -f conftest-deps.mk
19040}
19041 ;;
19042    "libtool":C)
19043
19044    # See if we are running on zsh, and set the options that allow our
19045    # commands through without removal of \ escapes.
19046    if test -n "${ZSH_VERSION+set}"; then
19047      setopt NO_GLOB_SUBST
19048    fi
19049
19050    cfgfile=${ofile}T
19051    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19052    $RM "$cfgfile"
19053
19054    cat <<_LT_EOF >> "$cfgfile"
19055#! $SHELL
19056# Generated automatically by $as_me ($PACKAGE) $VERSION
19057# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19058
19059# Provide generalized library-building support services.
19060# Written by Gordon Matzigkeit, 1996
19061
19062# Copyright (C) 2014 Free Software Foundation, Inc.
19063# This is free software; see the source for copying conditions.  There is NO
19064# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19065
19066# GNU Libtool is free software; you can redistribute it and/or modify
19067# it under the terms of the GNU General Public License as published by
19068# the Free Software Foundation; either version 2 of of the License, or
19069# (at your option) any later version.
19070#
19071# As a special exception to the GNU General Public License, if you
19072# distribute this file as part of a program or library that is built
19073# using GNU Libtool, you may include this file under the  same
19074# distribution terms that you use for the rest of that program.
19075#
19076# GNU Libtool is distributed in the hope that it will be useful, but
19077# WITHOUT ANY WARRANTY; without even the implied warranty of
19078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19079# GNU General Public License for more details.
19080#
19081# You should have received a copy of the GNU General Public License
19082# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19083
19084
19085# The names of the tagged configurations supported by this script.
19086available_tags=''
19087
19088# Configured defaults for sys_lib_dlsearch_path munging.
19089: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19090
19091# ### BEGIN LIBTOOL CONFIG
19092
19093# Which release of libtool.m4 was used?
19094macro_version=$macro_version
19095macro_revision=$macro_revision
19096
19097# Whether or not to build static libraries.
19098build_old_libs=$enable_static
19099
19100# Whether or not to build shared libraries.
19101build_libtool_libs=$enable_shared
19102
19103# What type of objects to build.
19104pic_mode=$pic_mode
19105
19106# Whether or not to optimize for fast installation.
19107fast_install=$enable_fast_install
19108
19109# Shared archive member basename,for filename based shared library versioning on AIX.
19110shared_archive_member_spec=$shared_archive_member_spec
19111
19112# Shell to use when invoking shell scripts.
19113SHELL=$lt_SHELL
19114
19115# An echo program that protects backslashes.
19116ECHO=$lt_ECHO
19117
19118# The PATH separator for the build system.
19119PATH_SEPARATOR=$lt_PATH_SEPARATOR
19120
19121# The host system.
19122host_alias=$host_alias
19123host=$host
19124host_os=$host_os
19125
19126# The build system.
19127build_alias=$build_alias
19128build=$build
19129build_os=$build_os
19130
19131# A sed program that does not truncate output.
19132SED=$lt_SED
19133
19134# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19135Xsed="\$SED -e 1s/^X//"
19136
19137# A grep program that handles long lines.
19138GREP=$lt_GREP
19139
19140# An ERE matcher.
19141EGREP=$lt_EGREP
19142
19143# A literal string matcher.
19144FGREP=$lt_FGREP
19145
19146# A BSD- or MS-compatible name lister.
19147NM=$lt_NM
19148
19149# Whether we need soft or hard links.
19150LN_S=$lt_LN_S
19151
19152# What is the maximum length of a command?
19153max_cmd_len=$max_cmd_len
19154
19155# Object file suffix (normally "o").
19156objext=$ac_objext
19157
19158# Executable file suffix (normally "").
19159exeext=$exeext
19160
19161# whether the shell understands "unset".
19162lt_unset=$lt_unset
19163
19164# turn spaces into newlines.
19165SP2NL=$lt_lt_SP2NL
19166
19167# turn newlines into spaces.
19168NL2SP=$lt_lt_NL2SP
19169
19170# convert \$build file names to \$host format.
19171to_host_file_cmd=$lt_cv_to_host_file_cmd
19172
19173# convert \$build files to toolchain format.
19174to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19175
19176# An object symbol dumper.
19177OBJDUMP=$lt_OBJDUMP
19178
19179# Method to check whether dependent libraries are shared objects.
19180deplibs_check_method=$lt_deplibs_check_method
19181
19182# Command to use when deplibs_check_method = "file_magic".
19183file_magic_cmd=$lt_file_magic_cmd
19184
19185# How to find potential files when deplibs_check_method = "file_magic".
19186file_magic_glob=$lt_file_magic_glob
19187
19188# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19189want_nocaseglob=$lt_want_nocaseglob
19190
19191# DLL creation program.
19192DLLTOOL=$lt_DLLTOOL
19193
19194# Command to associate shared and link libraries.
19195sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19196
19197# The archiver.
19198AR=$lt_AR
19199
19200# Flags to create an archive.
19201AR_FLAGS=$lt_AR_FLAGS
19202
19203# How to feed a file listing to the archiver.
19204archiver_list_spec=$lt_archiver_list_spec
19205
19206# A symbol stripping program.
19207STRIP=$lt_STRIP
19208
19209# Commands used to install an old-style archive.
19210RANLIB=$lt_RANLIB
19211old_postinstall_cmds=$lt_old_postinstall_cmds
19212old_postuninstall_cmds=$lt_old_postuninstall_cmds
19213
19214# Whether to use a lock for old archive extraction.
19215lock_old_archive_extraction=$lock_old_archive_extraction
19216
19217# A C compiler.
19218LTCC=$lt_CC
19219
19220# LTCC compiler flags.
19221LTCFLAGS=$lt_CFLAGS
19222
19223# Take the output of nm and produce a listing of raw symbols and C names.
19224global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19225
19226# Transform the output of nm in a proper C declaration.
19227global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19228
19229# Transform the output of nm into a list of symbols to manually relocate.
19230global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19231
19232# Transform the output of nm in a C name address pair.
19233global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19234
19235# Transform the output of nm in a C name address pair when lib prefix is needed.
19236global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19237
19238# The name lister interface.
19239nm_interface=$lt_lt_cv_nm_interface
19240
19241# Specify filename containing input files for \$NM.
19242nm_file_list_spec=$lt_nm_file_list_spec
19243
19244# The root where to search for dependent libraries,and where our libraries should be installed.
19245lt_sysroot=$lt_sysroot
19246
19247# Command to truncate a binary pipe.
19248lt_truncate_bin=$lt_lt_cv_truncate_bin
19249
19250# The name of the directory that contains temporary libtool files.
19251objdir=$objdir
19252
19253# Used to examine libraries when file_magic_cmd begins with "file".
19254MAGIC_CMD=$MAGIC_CMD
19255
19256# Must we lock files when doing compilation?
19257need_locks=$lt_need_locks
19258
19259# Manifest tool.
19260MANIFEST_TOOL=$lt_MANIFEST_TOOL
19261
19262# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19263DSYMUTIL=$lt_DSYMUTIL
19264
19265# Tool to change global to local symbols on Mac OS X.
19266NMEDIT=$lt_NMEDIT
19267
19268# Tool to manipulate fat objects and archives on Mac OS X.
19269LIPO=$lt_LIPO
19270
19271# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19272OTOOL=$lt_OTOOL
19273
19274# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19275OTOOL64=$lt_OTOOL64
19276
19277# Old archive suffix (normally "a").
19278libext=$libext
19279
19280# Shared library suffix (normally ".so").
19281shrext_cmds=$lt_shrext_cmds
19282
19283# The commands to extract the exported symbol list from a shared archive.
19284extract_expsyms_cmds=$lt_extract_expsyms_cmds
19285
19286# Variables whose values should be saved in libtool wrapper scripts and
19287# restored at link time.
19288variables_saved_for_relink=$lt_variables_saved_for_relink
19289
19290# Do we need the "lib" prefix for modules?
19291need_lib_prefix=$need_lib_prefix
19292
19293# Do we need a version for libraries?
19294need_version=$need_version
19295
19296# Library versioning type.
19297version_type=$version_type
19298
19299# Shared library runtime path variable.
19300runpath_var=$runpath_var
19301
19302# Shared library path variable.
19303shlibpath_var=$shlibpath_var
19304
19305# Is shlibpath searched before the hard-coded library search path?
19306shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19307
19308# Format of library name prefix.
19309libname_spec=$lt_libname_spec
19310
19311# List of archive names.  First name is the real one, the rest are links.
19312# The last name is the one that the linker finds with -lNAME
19313library_names_spec=$lt_library_names_spec
19314
19315# The coded name of the library, if different from the real name.
19316soname_spec=$lt_soname_spec
19317
19318# Permission mode override for installation of shared libraries.
19319install_override_mode=$lt_install_override_mode
19320
19321# Command to use after installation of a shared archive.
19322postinstall_cmds=$lt_postinstall_cmds
19323
19324# Command to use after uninstallation of a shared archive.
19325postuninstall_cmds=$lt_postuninstall_cmds
19326
19327# Commands used to finish a libtool library installation in a directory.
19328finish_cmds=$lt_finish_cmds
19329
19330# As "finish_cmds", except a single script fragment to be evaled but
19331# not shown.
19332finish_eval=$lt_finish_eval
19333
19334# Whether we should hardcode library paths into libraries.
19335hardcode_into_libs=$hardcode_into_libs
19336
19337# Compile-time system search path for libraries.
19338sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19339
19340# Detected run-time system search path for libraries.
19341sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19342
19343# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19344configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19345
19346# Whether dlopen is supported.
19347dlopen_support=$enable_dlopen
19348
19349# Whether dlopen of programs is supported.
19350dlopen_self=$enable_dlopen_self
19351
19352# Whether dlopen of statically linked programs is supported.
19353dlopen_self_static=$enable_dlopen_self_static
19354
19355# Commands to strip libraries.
19356old_striplib=$lt_old_striplib
19357striplib=$lt_striplib
19358
19359
19360# The linker used to build libraries.
19361LD=$lt_LD
19362
19363# How to create reloadable object files.
19364reload_flag=$lt_reload_flag
19365reload_cmds=$lt_reload_cmds
19366
19367# Commands used to build an old-style archive.
19368old_archive_cmds=$lt_old_archive_cmds
19369
19370# A language specific compiler.
19371CC=$lt_compiler
19372
19373# Is the compiler the GNU compiler?
19374with_gcc=$GCC
19375
19376# Compiler flag to turn off builtin functions.
19377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19378
19379# Additional compiler flags for building library objects.
19380pic_flag=$lt_lt_prog_compiler_pic
19381
19382# How to pass a linker flag through the compiler.
19383wl=$lt_lt_prog_compiler_wl
19384
19385# Compiler flag to prevent dynamic linking.
19386link_static_flag=$lt_lt_prog_compiler_static
19387
19388# Does compiler simultaneously support -c and -o options?
19389compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19390
19391# Whether or not to add -lc for building shared libraries.
19392build_libtool_need_lc=$archive_cmds_need_lc
19393
19394# Whether or not to disallow shared libs when runtime libs are static.
19395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19396
19397# Compiler flag to allow reflexive dlopens.
19398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19399
19400# Compiler flag to generate shared objects directly from archives.
19401whole_archive_flag_spec=$lt_whole_archive_flag_spec
19402
19403# Whether the compiler copes with passing no objects directly.
19404compiler_needs_object=$lt_compiler_needs_object
19405
19406# Create an old-style archive from a shared archive.
19407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19408
19409# Create a temporary old-style archive to link instead of a shared archive.
19410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19411
19412# Commands used to build a shared archive.
19413archive_cmds=$lt_archive_cmds
19414archive_expsym_cmds=$lt_archive_expsym_cmds
19415
19416# Commands used to build a loadable module if different from building
19417# a shared archive.
19418module_cmds=$lt_module_cmds
19419module_expsym_cmds=$lt_module_expsym_cmds
19420
19421# Whether we are building with GNU ld or not.
19422with_gnu_ld=$lt_with_gnu_ld
19423
19424# Flag that allows shared libraries with undefined symbols to be built.
19425allow_undefined_flag=$lt_allow_undefined_flag
19426
19427# Flag that enforces no undefined symbols.
19428no_undefined_flag=$lt_no_undefined_flag
19429
19430# Flag to hardcode \$libdir into a binary during linking.
19431# This must work even if \$libdir does not exist
19432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19433
19434# Whether we need a single "-rpath" flag with a separated argument.
19435hardcode_libdir_separator=$lt_hardcode_libdir_separator
19436
19437# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19438# DIR into the resulting binary.
19439hardcode_direct=$hardcode_direct
19440
19441# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19442# DIR into the resulting binary and the resulting library dependency is
19443# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19444# library is relocated.
19445hardcode_direct_absolute=$hardcode_direct_absolute
19446
19447# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19448# into the resulting binary.
19449hardcode_minus_L=$hardcode_minus_L
19450
19451# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19452# into the resulting binary.
19453hardcode_shlibpath_var=$hardcode_shlibpath_var
19454
19455# Set to "yes" if building a shared library automatically hardcodes DIR
19456# into the library and all subsequent libraries and executables linked
19457# against it.
19458hardcode_automatic=$hardcode_automatic
19459
19460# Set to yes if linker adds runtime paths of dependent libraries
19461# to runtime path list.
19462inherit_rpath=$inherit_rpath
19463
19464# Whether libtool must link a program against all its dependency libraries.
19465link_all_deplibs=$link_all_deplibs
19466
19467# Set to "yes" if exported symbols are required.
19468always_export_symbols=$always_export_symbols
19469
19470# The commands to list exported symbols.
19471export_symbols_cmds=$lt_export_symbols_cmds
19472
19473# Symbols that should not be listed in the preloaded symbols.
19474exclude_expsyms=$lt_exclude_expsyms
19475
19476# Symbols that must always be exported.
19477include_expsyms=$lt_include_expsyms
19478
19479# Commands necessary for linking programs (against libraries) with templates.
19480prelink_cmds=$lt_prelink_cmds
19481
19482# Commands necessary for finishing linking programs.
19483postlink_cmds=$lt_postlink_cmds
19484
19485# Specify filename containing input files.
19486file_list_spec=$lt_file_list_spec
19487
19488# How to hardcode a shared library path into an executable.
19489hardcode_action=$hardcode_action
19490
19491# ### END LIBTOOL CONFIG
19492
19493_LT_EOF
19494
19495    cat <<'_LT_EOF' >> "$cfgfile"
19496
19497# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19498
19499# func_munge_path_list VARIABLE PATH
19500# -----------------------------------
19501# VARIABLE is name of variable containing _space_ separated list of
19502# directories to be munged by the contents of PATH, which is string
19503# having a format:
19504# "DIR[:DIR]:"
19505#       string "DIR[ DIR]" will be prepended to VARIABLE
19506# ":DIR[:DIR]"
19507#       string "DIR[ DIR]" will be appended to VARIABLE
19508# "DIRP[:DIRP]::[DIRA:]DIRA"
19509#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19510#       "DIRA[ DIRA]" will be appended to VARIABLE
19511# "DIR[:DIR]"
19512#       VARIABLE will be replaced by "DIR[ DIR]"
19513func_munge_path_list ()
19514{
19515    case x$2 in
19516    x)
19517        ;;
19518    *:)
19519        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19520        ;;
19521    x:*)
19522        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19523        ;;
19524    *::*)
19525        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19526        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19527        ;;
19528    *)
19529        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19530        ;;
19531    esac
19532}
19533
19534
19535# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19536func_cc_basename ()
19537{
19538    for cc_temp in $*""; do
19539      case $cc_temp in
19540        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19541        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19542        \-*) ;;
19543        *) break;;
19544      esac
19545    done
19546    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19547}
19548
19549
19550# ### END FUNCTIONS SHARED WITH CONFIGURE
19551
19552_LT_EOF
19553
19554  case $host_os in
19555  aix3*)
19556    cat <<\_LT_EOF >> "$cfgfile"
19557# AIX sometimes has problems with the GCC collect2 program.  For some
19558# reason, if we set the COLLECT_NAMES environment variable, the problems
19559# vanish in a puff of smoke.
19560if test set != "${COLLECT_NAMES+set}"; then
19561  COLLECT_NAMES=
19562  export COLLECT_NAMES
19563fi
19564_LT_EOF
19565    ;;
19566  esac
19567
19568
19569ltmain=$ac_aux_dir/ltmain.sh
19570
19571
19572  # We use sed instead of cat because bash on DJGPP gets confused if
19573  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19574  # text mode, it properly converts lines to CR/LF.  This bash problem
19575  # is reportedly fixed, but why not run on old versions too?
19576  sed '$q' "$ltmain" >> "$cfgfile" \
19577     || (rm -f "$cfgfile"; exit 1)
19578
19579   mv -f "$cfgfile" "$ofile" ||
19580    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19581  chmod +x "$ofile"
19582
19583 ;;
19584
19585  esac
19586done # for ac_tag
19587
19588
19589as_fn_exit 0
19590_ACEOF
19591ac_clean_files=$ac_clean_files_save
19592
19593test $ac_write_fail = 0 ||
19594  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19595
19596
19597# configure is writing to config.log, and then calls config.status.
19598# config.status does its own redirection, appending to config.log.
19599# Unfortunately, on DOS this fails, as config.log is still kept open
19600# by configure, so config.status won't be able to write to it; its
19601# output is simply discarded.  So we exec the FD to /dev/null,
19602# effectively closing config.log, so it can be properly (re)opened and
19603# appended to by config.status.  When coming back to configure, we
19604# need to make the FD available again.
19605if test "$no_create" != yes; then
19606  ac_cs_success=:
19607  ac_config_status_args=
19608  test "$silent" = yes &&
19609    ac_config_status_args="$ac_config_status_args --quiet"
19610  exec 5>/dev/null
19611  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19612  exec 5>>config.log
19613  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19614  # would make configure fail if this is the last instruction.
19615  $ac_cs_success || as_fn_exit 1
19616fi
19617if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19619$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19620fi
19621
19622
19623echo "###############################################################################"
19624echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19625echo
19626echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19627echo "   ./configure --prefix=DIRECTORY"
19628echo "###############################################################################"
19629