1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libmd5 1.21.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libmd5'
592PACKAGE_TARNAME='libmd5'
593PACKAGE_VERSION='1.21'
594PACKAGE_STRING='libmd5 1.21'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="hmac.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CPP
640LT_SYS_LIBRARY_PATH
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646MANIFEST_TOOL
647RANLIB
648ac_ct_AR
649AR
650DLLTOOL
651OBJDUMP
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
668LIBTOOL
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685LN_S
686HMACC_FALSE
687HMACC_TRUE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL
753am__quote'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_silent_rules
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_aix_soname
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767with_int32
768enable_largefile
769'
770      ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778LT_SYS_LIBRARY_PATH
779CPP'
780
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
785ac_unrecognized_opts=
786ac_unrecognized_sep=
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
809# (The list follows the same order as the GNU Coding Standards.)
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
829
830ac_prev=
831ac_dashdash=
832for ac_option
833do
834  # If the previous option needs an argument, assign it.
835  if test -n "$ac_prev"; then
836    eval $ac_prev=\$ac_option
837    ac_prev=
838    continue
839  fi
840
841  case $ac_option in
842  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843  *=)   ac_optarg= ;;
844  *)    ac_optarg=yes ;;
845  esac
846
847  # Accept the important Cygnus configure options, so we can diagnose typos.
848
849  case $ac_dashdash$ac_option in
850  --)
851    ac_dashdash=yes ;;
852
853  -bindir | --bindir | --bindi | --bind | --bin | --bi)
854    ac_prev=bindir ;;
855  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856    bindir=$ac_optarg ;;
857
858  -build | --build | --buil | --bui | --bu)
859    ac_prev=build_alias ;;
860  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861    build_alias=$ac_optarg ;;
862
863  -cache-file | --cache-file | --cache-fil | --cache-fi \
864  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865    ac_prev=cache_file ;;
866  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868    cache_file=$ac_optarg ;;
869
870  --config-cache | -C)
871    cache_file=config.cache ;;
872
873  -datadir | --datadir | --datadi | --datad)
874    ac_prev=datadir ;;
875  -datadir=* | --datadir=* | --datadi=* | --datad=*)
876    datadir=$ac_optarg ;;
877
878  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879  | --dataroo | --dataro | --datar)
880    ac_prev=datarootdir ;;
881  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883    datarootdir=$ac_optarg ;;
884
885  -disable-* | --disable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error $? "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897	 ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=no ;;
900
901  -docdir | --docdir | --docdi | --doc | --do)
902    ac_prev=docdir ;;
903  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904    docdir=$ac_optarg ;;
905
906  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907    ac_prev=dvidir ;;
908  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909    dvidir=$ac_optarg ;;
910
911  -enable-* | --enable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: $ac_useropt"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=\$ac_optarg ;;
926
927  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929  | --exec | --exe | --ex)
930    ac_prev=exec_prefix ;;
931  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933  | --exec=* | --exe=* | --ex=*)
934    exec_prefix=$ac_optarg ;;
935
936  -gas | --gas | --ga | --g)
937    # Obsolete; use --with-gas.
938    with_gas=yes ;;
939
940  -help | --help | --hel | --he | -h)
941    ac_init_help=long ;;
942  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943    ac_init_help=recursive ;;
944  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945    ac_init_help=short ;;
946
947  -host | --host | --hos | --ho)
948    ac_prev=host_alias ;;
949  -host=* | --host=* | --hos=* | --ho=*)
950    host_alias=$ac_optarg ;;
951
952  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953    ac_prev=htmldir ;;
954  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955  | --ht=*)
956    htmldir=$ac_optarg ;;
957
958  -includedir | --includedir | --includedi | --included | --include \
959  | --includ | --inclu | --incl | --inc)
960    ac_prev=includedir ;;
961  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962  | --includ=* | --inclu=* | --incl=* | --inc=*)
963    includedir=$ac_optarg ;;
964
965  -infodir | --infodir | --infodi | --infod | --info | --inf)
966    ac_prev=infodir ;;
967  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968    infodir=$ac_optarg ;;
969
970  -libdir | --libdir | --libdi | --libd)
971    ac_prev=libdir ;;
972  -libdir=* | --libdir=* | --libdi=* | --libd=*)
973    libdir=$ac_optarg ;;
974
975  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976  | --libexe | --libex | --libe)
977    ac_prev=libexecdir ;;
978  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979  | --libexe=* | --libex=* | --libe=*)
980    libexecdir=$ac_optarg ;;
981
982  -localedir | --localedir | --localedi | --localed | --locale)
983    ac_prev=localedir ;;
984  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985    localedir=$ac_optarg ;;
986
987  -localstatedir | --localstatedir | --localstatedi | --localstated \
988  | --localstate | --localstat | --localsta | --localst | --locals)
989    ac_prev=localstatedir ;;
990  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992    localstatedir=$ac_optarg ;;
993
994  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995    ac_prev=mandir ;;
996  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997    mandir=$ac_optarg ;;
998
999  -nfp | --nfp | --nf)
1000    # Obsolete; use --without-fp.
1001    with_fp=no ;;
1002
1003  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004  | --no-cr | --no-c | -n)
1005    no_create=yes ;;
1006
1007  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009    no_recursion=yes ;;
1010
1011  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013  | --oldin | --oldi | --old | --ol | --o)
1014    ac_prev=oldincludedir ;;
1015  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018    oldincludedir=$ac_optarg ;;
1019
1020  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021    ac_prev=prefix ;;
1022  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023    prefix=$ac_optarg ;;
1024
1025  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026  | --program-pre | --program-pr | --program-p)
1027    ac_prev=program_prefix ;;
1028  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030    program_prefix=$ac_optarg ;;
1031
1032  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033  | --program-suf | --program-su | --program-s)
1034    ac_prev=program_suffix ;;
1035  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037    program_suffix=$ac_optarg ;;
1038
1039  -program-transform-name | --program-transform-name \
1040  | --program-transform-nam | --program-transform-na \
1041  | --program-transform-n | --program-transform- \
1042  | --program-transform | --program-transfor \
1043  | --program-transfo | --program-transf \
1044  | --program-trans | --program-tran \
1045  | --progr-tra | --program-tr | --program-t)
1046    ac_prev=program_transform_name ;;
1047  -program-transform-name=* | --program-transform-name=* \
1048  | --program-transform-nam=* | --program-transform-na=* \
1049  | --program-transform-n=* | --program-transform-=* \
1050  | --program-transform=* | --program-transfor=* \
1051  | --program-transfo=* | --program-transf=* \
1052  | --program-trans=* | --program-tran=* \
1053  | --progr-tra=* | --program-tr=* | --program-t=*)
1054    program_transform_name=$ac_optarg ;;
1055
1056  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057    ac_prev=pdfdir ;;
1058  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059    pdfdir=$ac_optarg ;;
1060
1061  -psdir | --psdir | --psdi | --psd | --ps)
1062    ac_prev=psdir ;;
1063  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064    psdir=$ac_optarg ;;
1065
1066  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067  | -silent | --silent | --silen | --sile | --sil)
1068    silent=yes ;;
1069
1070  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071    ac_prev=sbindir ;;
1072  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073  | --sbi=* | --sb=*)
1074    sbindir=$ac_optarg ;;
1075
1076  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078  | --sharedst | --shareds | --shared | --share | --shar \
1079  | --sha | --sh)
1080    ac_prev=sharedstatedir ;;
1081  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084  | --sha=* | --sh=*)
1085    sharedstatedir=$ac_optarg ;;
1086
1087  -site | --site | --sit)
1088    ac_prev=site ;;
1089  -site=* | --site=* | --sit=*)
1090    site=$ac_optarg ;;
1091
1092  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093    ac_prev=srcdir ;;
1094  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095    srcdir=$ac_optarg ;;
1096
1097  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098  | --syscon | --sysco | --sysc | --sys | --sy)
1099    ac_prev=sysconfdir ;;
1100  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102    sysconfdir=$ac_optarg ;;
1103
1104  -target | --target | --targe | --targ | --tar | --ta | --t)
1105    ac_prev=target_alias ;;
1106  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107    target_alias=$ac_optarg ;;
1108
1109  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110    verbose=yes ;;
1111
1112  -version | --version | --versio | --versi | --vers | -V)
1113    ac_init_version=: ;;
1114
1115  -with-* | --with-*)
1116    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117    # Reject names that are not valid shell variable names.
1118    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119      as_fn_error $? "invalid package name: $ac_useropt"
1120    ac_useropt_orig=$ac_useropt
1121    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122    case $ac_user_opts in
1123      *"
1124"with_$ac_useropt"
1125"*) ;;
1126      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127	 ac_unrecognized_sep=', ';;
1128    esac
1129    eval with_$ac_useropt=\$ac_optarg ;;
1130
1131  -without-* | --without-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=no ;;
1146
1147  --x)
1148    # Obsolete; use --with-x.
1149    with_x=yes ;;
1150
1151  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152  | --x-incl | --x-inc | --x-in | --x-i)
1153    ac_prev=x_includes ;;
1154  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156    x_includes=$ac_optarg ;;
1157
1158  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160    ac_prev=x_libraries ;;
1161  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163    x_libraries=$ac_optarg ;;
1164
1165  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
1167    ;;
1168
1169  *=*)
1170    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171    # Reject names that are not valid shell variable names.
1172    case $ac_envvar in #(
1173      '' | [0-9]* | *[!_$as_cr_alnum]* )
1174      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175    esac
1176    eval $ac_envvar=\$ac_optarg
1177    export $ac_envvar ;;
1178
1179  *)
1180    # FIXME: should be removed in autoconf 3.0.
1181    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185    ;;
1186
1187  esac
1188done
1189
1190if test -n "$ac_prev"; then
1191  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192  as_fn_error $? "missing argument to $ac_option"
1193fi
1194
1195if test -n "$ac_unrecognized_opts"; then
1196  case $enable_option_checking in
1197    no) ;;
1198    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200  esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205		datadir sysconfdir sharedstatedir localstatedir includedir \
1206		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207		libdir localedir mandir
1208do
1209  eval ac_val=\$$ac_var
1210  # Remove trailing slashes.
1211  case $ac_val in
1212    */ )
1213      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214      eval $ac_var=\$ac_val;;
1215  esac
1216  # Be sure to have absolute directory names.
1217  case $ac_val in
1218    [\\/$]* | ?:[\\/]* )  continue;;
1219    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220  esac
1221  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233  if test "x$build_alias" = x; then
1234    cross_compiling=maybe
1235  elif test "x$build_alias" != "x$host_alias"; then
1236    cross_compiling=yes
1237  fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249  as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251  as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256  ac_srcdir_defaulted=yes
1257  # Try the directory containing this script, then the parent directory.
1258  ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260	 X"$as_myself" : 'X\(//\)[^/]' \| \
1261	 X"$as_myself" : 'X\(//\)$' \| \
1262	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)[^/].*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)$/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\).*/{
1277	    s//\1/
1278	    q
1279	  }
1280	  s/.*/./; q'`
1281  srcdir=$ac_confdir
1282  if test ! -r "$srcdir/$ac_unique_file"; then
1283    srcdir=..
1284  fi
1285else
1286  ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295	pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298  srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_env_${ac_var}_value=\$${ac_var}
1309  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317  # Omit some internal or obsolete options to make the list less imposing.
1318  # This message is too long to be a string in the A/UX 3.1 sh.
1319  cat <<_ACEOF
1320\`configure' configures libmd5 1.21 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330  -h, --help              display this help and exit
1331      --help=short        display options specific to this package
1332      --help=recursive    display the short help of all the included packages
1333  -V, --version           display version information and exit
1334  -q, --quiet, --silent   do not print \`checking ...' messages
1335      --cache-file=FILE   cache test results in FILE [disabled]
1336  -C, --config-cache      alias for \`--cache-file=config.cache'
1337  -n, --no-create         do not create output files
1338      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341  --prefix=PREFIX         install architecture-independent files in PREFIX
1342                          [$ac_default_prefix]
1343  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                          [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354  --bindir=DIR            user executables [EPREFIX/bin]
1355  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356  --libexecdir=DIR        program executables [EPREFIX/libexec]
1357  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360  --libdir=DIR            object code libraries [EPREFIX/lib]
1361  --includedir=DIR        C header files [PREFIX/include]
1362  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365  --infodir=DIR           info documentation [DATAROOTDIR/info]
1366  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367  --mandir=DIR            man documentation [DATAROOTDIR/man]
1368  --docdir=DIR            documentation root [DATAROOTDIR/doc/libmd5]
1369  --htmldir=DIR           html documentation [DOCDIR]
1370  --dvidir=DIR            dvi documentation [DOCDIR]
1371  --pdfdir=DIR            pdf documentation [DOCDIR]
1372  --psdir=DIR             ps documentation [DOCDIR]
1373_ACEOF
1374
1375  cat <<\_ACEOF
1376
1377Program names:
1378  --program-prefix=PREFIX            prepend PREFIX to installed program names
1379  --program-suffix=SUFFIX            append SUFFIX to installed program names
1380  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382System types:
1383  --build=BUILD     configure for building on BUILD [guessed]
1384  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389  case $ac_init_help in
1390     short | recursive ) echo "Configuration of libmd5 1.21:";;
1391   esac
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-silent-rules   less verbose build output (undo: "make V=1")
1399  --disable-silent-rules  verbose build output (undo: "make V=0")
1400  --enable-dependency-tracking
1401                          do not reject slow dependency extractors
1402  --disable-dependency-tracking
1403                          speeds up one-time build
1404  --enable-shared[=PKGS]  build shared libraries [default=yes]
1405  --enable-static[=PKGS]  build static libraries [default=yes]
1406  --enable-fast-install[=PKGS]
1407                          optimize for fast installation [default=yes]
1408  --disable-libtool-lock  avoid locking (might break parallel builds)
1409  --disable-largefile     omit support for large files
1410
1411Optional Packages:
1412  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1413  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1414  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1415                          both]
1416  --with-aix-soname=aix|svr4|both
1417                          shared library versioning (aka "SONAME") variant to
1418                          provide on AIX, [default=aix].
1419  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1420  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1421                          compiler's sysroot if not specified).
1422  --with-int32='type'     use 'type' for an unsigned 32 bit integer type
1423                          ( default is 'unsigned')
1424
1425Some influential environment variables:
1426  CC          C compiler command
1427  CFLAGS      C compiler flags
1428  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1429              nonstandard directory <lib dir>
1430  LIBS        libraries to pass to the linker, e.g. -l<library>
1431  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432              you have headers in a nonstandard directory <include dir>
1433  LT_SYS_LIBRARY_PATH
1434              User-defined run-time library search path.
1435  CPP         C preprocessor
1436
1437Use these variables to override the choices made by `configure' or to help
1438it to find libraries and programs with nonstandard names/locations.
1439
1440Report bugs to <courier-users@lists.sourceforge.net>.
1441_ACEOF
1442ac_status=$?
1443fi
1444
1445if test "$ac_init_help" = "recursive"; then
1446  # If there are subdirs, report their specific --help.
1447  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448    test -d "$ac_dir" ||
1449      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450      continue
1451    ac_builddir=.
1452
1453case "$ac_dir" in
1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455*)
1456  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457  # A ".." for each directory in $ac_dir_suffix.
1458  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459  case $ac_top_builddir_sub in
1460  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462  esac ;;
1463esac
1464ac_abs_top_builddir=$ac_pwd
1465ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466# for backward compatibility:
1467ac_top_builddir=$ac_top_build_prefix
1468
1469case $srcdir in
1470  .)  # We are building in place.
1471    ac_srcdir=.
1472    ac_top_srcdir=$ac_top_builddir_sub
1473    ac_abs_top_srcdir=$ac_pwd ;;
1474  [\\/]* | ?:[\\/]* )  # Absolute name.
1475    ac_srcdir=$srcdir$ac_dir_suffix;
1476    ac_top_srcdir=$srcdir
1477    ac_abs_top_srcdir=$srcdir ;;
1478  *) # Relative name.
1479    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480    ac_top_srcdir=$ac_top_build_prefix$srcdir
1481    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482esac
1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485    cd "$ac_dir" || { ac_status=$?; continue; }
1486    # Check for guested configure.
1487    if test -f "$ac_srcdir/configure.gnu"; then
1488      echo &&
1489      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490    elif test -f "$ac_srcdir/configure"; then
1491      echo &&
1492      $SHELL "$ac_srcdir/configure" --help=recursive
1493    else
1494      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495    fi || ac_status=$?
1496    cd "$ac_pwd" || { ac_status=$?; break; }
1497  done
1498fi
1499
1500test -n "$ac_init_help" && exit $ac_status
1501if $ac_init_version; then
1502  cat <<\_ACEOF
1503libmd5 configure 1.21
1504generated by GNU Autoconf 2.69
1505
1506Copyright (C) 2012 Free Software Foundation, Inc.
1507This configure script is free software; the Free Software Foundation
1508gives unlimited permission to copy, distribute and modify it.
1509_ACEOF
1510  exit
1511fi
1512
1513## ------------------------ ##
1514## Autoconf initialization. ##
1515## ------------------------ ##
1516
1517# ac_fn_c_try_compile LINENO
1518# --------------------------
1519# Try to compile conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_compile ()
1521{
1522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523  rm -f conftest.$ac_objext
1524  if { { ac_try="$ac_compile"
1525case "(($ac_try" in
1526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527  *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531  (eval "$ac_compile") 2>conftest.err
1532  ac_status=$?
1533  if test -s conftest.err; then
1534    grep -v '^ *+' conftest.err >conftest.er1
1535    cat conftest.er1 >&5
1536    mv -f conftest.er1 conftest.err
1537  fi
1538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539  test $ac_status = 0; } && {
1540	 test -z "$ac_c_werror_flag" ||
1541	 test ! -s conftest.err
1542       } && test -s conftest.$ac_objext; then :
1543  ac_retval=0
1544else
1545  $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548	ac_retval=1
1549fi
1550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551  as_fn_set_status $ac_retval
1552
1553} # ac_fn_c_try_compile
1554
1555# ac_fn_c_try_link LINENO
1556# -----------------------
1557# Try to link conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_link ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  rm -f conftest.$ac_objext conftest$ac_exeext
1562  if { { ac_try="$ac_link"
1563case "(($ac_try" in
1564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565  *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569  (eval "$ac_link") 2>conftest.err
1570  ac_status=$?
1571  if test -s conftest.err; then
1572    grep -v '^ *+' conftest.err >conftest.er1
1573    cat conftest.er1 >&5
1574    mv -f conftest.er1 conftest.err
1575  fi
1576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } && {
1578	 test -z "$ac_c_werror_flag" ||
1579	 test ! -s conftest.err
1580       } && test -s conftest$ac_exeext && {
1581	 test "$cross_compiling" = yes ||
1582	 test -x conftest$ac_exeext
1583       }; then :
1584  ac_retval=0
1585else
1586  $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1
1590fi
1591  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1592  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1593  # interfere with the next link command; also delete a directory that is
1594  # left behind by Apple's compiler.  We do this before executing the actions.
1595  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_link
1600
1601# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602# -------------------------------------------------------
1603# Tests whether HEADER exists and can be compiled using the include files in
1604# INCLUDES, setting the cache variable VAR accordingly.
1605ac_fn_c_check_header_compile ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609$as_echo_n "checking for $2... " >&6; }
1610if eval \${$3+:} false; then :
1611  $as_echo_n "(cached) " >&6
1612else
1613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615$4
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619  eval "$3=yes"
1620else
1621  eval "$3=no"
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624fi
1625eval ac_res=\$$3
1626	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627$as_echo "$ac_res" >&6; }
1628  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630} # ac_fn_c_check_header_compile
1631
1632# ac_fn_c_try_cpp LINENO
1633# ----------------------
1634# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_c_try_cpp ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  if { { ac_try="$ac_cpp conftest.$ac_ext"
1639case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646  ac_status=$?
1647  if test -s conftest.err; then
1648    grep -v '^ *+' conftest.err >conftest.er1
1649    cat conftest.er1 >&5
1650    mv -f conftest.er1 conftest.err
1651  fi
1652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653  test $ac_status = 0; } > conftest.i && {
1654	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1655	 test ! -s conftest.err
1656       }; then :
1657  ac_retval=0
1658else
1659  $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662    ac_retval=1
1663fi
1664  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665  as_fn_set_status $ac_retval
1666
1667} # ac_fn_c_try_cpp
1668
1669# ac_fn_c_try_run LINENO
1670# ----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672# that executables *can* be run.
1673ac_fn_c_try_run ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_link") 2>&5
1684  ac_status=$?
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687  { { case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_try") 2>&5
1694  ac_status=$?
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; }; }; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: program exited with status $ac_status" >&5
1700       $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703       ac_retval=$ac_status
1704fi
1705  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707  as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_run
1710
1711# ac_fn_c_check_func LINENO FUNC VAR
1712# ----------------------------------
1713# Tests whether FUNC exists, setting the cache variable VAR accordingly
1714ac_fn_c_check_func ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if eval \${$3+:} false; then :
1720  $as_echo_n "(cached) " >&6
1721else
1722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h.  */
1724/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1726#define $2 innocuous_$2
1727
1728/* System header to define __stub macros and hopefully few prototypes,
1729    which can conflict with char $2 (); below.
1730    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1731    <limits.h> exists even on freestanding compilers.  */
1732
1733#ifdef __STDC__
1734# include <limits.h>
1735#else
1736# include <assert.h>
1737#endif
1738
1739#undef $2
1740
1741/* Override any GCC internal prototype to avoid an error.
1742   Use char because int might match the return type of a GCC
1743   builtin and then its argument prototype would still apply.  */
1744#ifdef __cplusplus
1745extern "C"
1746#endif
1747char $2 ();
1748/* The GNU C library defines this for functions which it implements
1749    to always fail with ENOSYS.  Some functions are actually named
1750    something starting with __ and the normal name is an alias.  */
1751#if defined __stub_$2 || defined __stub___$2
1752choke me
1753#endif
1754
1755int
1756main ()
1757{
1758return $2 ();
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_link "$LINENO"; then :
1764  eval "$3=yes"
1765else
1766  eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext \
1769    conftest$ac_exeext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_c_check_func
1777
1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781# the include files in INCLUDES and setting the cache variable VAR
1782# accordingly.
1783ac_fn_c_check_header_mongrel ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  if eval \${$3+:} false; then :
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795else
1796  # Is the header compilable?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798$as_echo_n "checking $2 usability... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805  ac_header_compiler=yes
1806else
1807  ac_header_compiler=no
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811$as_echo "$ac_header_compiler" >&6; }
1812
1813# Is the header present?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815$as_echo_n "checking $2 presence... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_cpp "$LINENO"; then :
1821  ac_header_preproc=yes
1822else
1823  ac_header_preproc=no
1824fi
1825rm -f conftest.err conftest.i conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827$as_echo "$ac_header_preproc" >&6; }
1828
1829# So?  What about this header?
1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831  yes:no: )
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836    ;;
1837  no:yes:* )
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1841$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1845$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848( $as_echo "## -------------------------------------------------- ##
1849## Report this to courier-users@lists.sourceforge.net ##
1850## -------------------------------------------------- ##"
1851     ) | sed "s/^/$as_me: WARNING:     /" >&2
1852    ;;
1853esac
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  eval "$3=\$ac_header_compiler"
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864fi
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_header_mongrel
1868
1869# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1870# --------------------------------------------
1871# Tries to find the compile-time value of EXPR in a program that includes
1872# INCLUDES, setting VAR accordingly. Returns whether the value could be
1873# computed
1874ac_fn_c_compute_int ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  if test "$cross_compiling" = yes; then
1878    # Depending upon the size, compute the lo and hi bounds.
1879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881$4
1882int
1883main ()
1884{
1885static int test_array [1 - 2 * !(($2) >= 0)];
1886test_array [0] = 0;
1887return test_array [0];
1888
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  ac_lo=0 ac_mid=0
1895  while :; do
1896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898$4
1899int
1900main ()
1901{
1902static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1903test_array [0] = 0;
1904return test_array [0];
1905
1906  ;
1907  return 0;
1908}
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911  ac_hi=$ac_mid; break
1912else
1913  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1914			if test $ac_lo -le $ac_mid; then
1915			  ac_lo= ac_hi=
1916			  break
1917			fi
1918			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921  done
1922else
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925$4
1926int
1927main ()
1928{
1929static int test_array [1 - 2 * !(($2) < 0)];
1930test_array [0] = 0;
1931return test_array [0];
1932
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938  ac_hi=-1 ac_mid=-1
1939  while :; do
1940    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943int
1944main ()
1945{
1946static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1947test_array [0] = 0;
1948return test_array [0];
1949
1950  ;
1951  return 0;
1952}
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955  ac_lo=$ac_mid; break
1956else
1957  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1958			if test $ac_mid -le $ac_hi; then
1959			  ac_lo= ac_hi=
1960			  break
1961			fi
1962			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965  done
1966else
1967  ac_lo= ac_hi=
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972# Binary search between lo and hi bounds.
1973while test "x$ac_lo" != "x$ac_hi"; do
1974  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h.  */
1977$4
1978int
1979main ()
1980{
1981static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1982test_array [0] = 0;
1983return test_array [0];
1984
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  ac_hi=$ac_mid
1991else
1992  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995done
1996case $ac_lo in #((
1997?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1998'') ac_retval=1 ;;
1999esac
2000  else
2001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004static long int longval () { return $2; }
2005static unsigned long int ulongval () { return $2; }
2006#include <stdio.h>
2007#include <stdlib.h>
2008int
2009main ()
2010{
2011
2012  FILE *f = fopen ("conftest.val", "w");
2013  if (! f)
2014    return 1;
2015  if (($2) < 0)
2016    {
2017      long int i = longval ();
2018      if (i != ($2))
2019	return 1;
2020      fprintf (f, "%ld", i);
2021    }
2022  else
2023    {
2024      unsigned long int i = ulongval ();
2025      if (i != ($2))
2026	return 1;
2027      fprintf (f, "%lu", i);
2028    }
2029  /* Do not output a trailing newline, as this causes \r\n confusion
2030     on some platforms.  */
2031  return ferror (f) || fclose (f) != 0;
2032
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_run "$LINENO"; then :
2038  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2039else
2040  ac_retval=1
2041fi
2042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2043  conftest.$ac_objext conftest.beam conftest.$ac_ext
2044rm -f conftest.val
2045
2046  fi
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048  as_fn_set_status $ac_retval
2049
2050} # ac_fn_c_compute_int
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 libmd5 $as_me 1.21, 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
2335# Check that the precious variables saved in the cache have kept the same
2336# value.
2337ac_cache_corrupted=false
2338for ac_var in $ac_precious_vars; do
2339  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340  eval ac_new_set=\$ac_env_${ac_var}_set
2341  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342  eval ac_new_val=\$ac_env_${ac_var}_value
2343  case $ac_old_set,$ac_new_set in
2344    set,)
2345      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347      ac_cache_corrupted=: ;;
2348    ,set)
2349      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351      ac_cache_corrupted=: ;;
2352    ,);;
2353    *)
2354      if test "x$ac_old_val" != "x$ac_new_val"; then
2355	# differences in whitespace do not lead to failure.
2356	ac_old_val_w=`echo x $ac_old_val`
2357	ac_new_val_w=`echo x $ac_new_val`
2358	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361	  ac_cache_corrupted=:
2362	else
2363	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365	  eval $ac_var=\$ac_old_val
2366	fi
2367	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2368$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2369	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2370$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2371      fi;;
2372  esac
2373  # Pass precious variables to config.status.
2374  if test "$ac_new_set" = set; then
2375    case $ac_new_val in
2376    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377    *) ac_arg=$ac_var=$ac_new_val ;;
2378    esac
2379    case " $ac_configure_args " in
2380      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2381      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2382    esac
2383  fi
2384done
2385if $ac_cache_corrupted; then
2386  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391fi
2392## -------------------- ##
2393## Main body of script. ##
2394## -------------------- ##
2395
2396ac_ext=c
2397ac_cpp='$CPP $CPPFLAGS'
2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401
2402
2403
2404>confdefs.h  # Kill PACKAGE_ macros
2405
2406
2407ac_aux_dir=
2408for ac_dir in ../.. "$srcdir"/../..; do
2409  if test -f "$ac_dir/install-sh"; then
2410    ac_aux_dir=$ac_dir
2411    ac_install_sh="$ac_aux_dir/install-sh -c"
2412    break
2413  elif test -f "$ac_dir/install.sh"; then
2414    ac_aux_dir=$ac_dir
2415    ac_install_sh="$ac_aux_dir/install.sh -c"
2416    break
2417  elif test -f "$ac_dir/shtool"; then
2418    ac_aux_dir=$ac_dir
2419    ac_install_sh="$ac_aux_dir/shtool install -c"
2420    break
2421  fi
2422done
2423if test -z "$ac_aux_dir"; then
2424  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2425fi
2426
2427# These three variables are undocumented and unsupported,
2428# and are intended to be withdrawn in a future Autoconf release.
2429# They can cause serious problems if a builder's source tree is in a directory
2430# whose full name contains unusual characters.
2431ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2432ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2433ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2434
2435
2436ac_config_headers="$ac_config_headers config.h"
2437
2438am__api_version='1.16'
2439
2440# Find a good install program.  We prefer a C program (faster),
2441# so one script is as good as another.  But avoid the broken or
2442# incompatible versions:
2443# SysV /etc/install, /usr/sbin/install
2444# SunOS /usr/etc/install
2445# IRIX /sbin/install
2446# AIX /bin/install
2447# AmigaOS /C/install, which installs bootblocks on floppy discs
2448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2451# OS/2's system install, which has a completely different semantic
2452# ./install, which can be erroneously created by make from ./install.sh.
2453# Reject install programs that cannot install multiple files.
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455$as_echo_n "checking for a BSD-compatible install... " >&6; }
2456if test -z "$INSTALL"; then
2457if ${ac_cv_path_install+:} false; then :
2458  $as_echo_n "(cached) " >&6
2459else
2460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    # Account for people who put trailing slashes in PATH elements.
2466case $as_dir/ in #((
2467  ./ | .// | /[cC]/* | \
2468  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2469  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2470  /usr/ucb/* ) ;;
2471  *)
2472    # OSF1 and SCO ODT 3.0 have their own names for install.
2473    # Don't use installbsd from OSF since it installs stuff as root
2474    # by default.
2475    for ac_prog in ginstall scoinst install; do
2476      for ac_exec_ext in '' $ac_executable_extensions; do
2477	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2478	  if test $ac_prog = install &&
2479	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480	    # AIX install.  It has an incompatible calling convention.
2481	    :
2482	  elif test $ac_prog = install &&
2483	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484	    # program-specific install script used by HP pwplus--don't use.
2485	    :
2486	  else
2487	    rm -rf conftest.one conftest.two conftest.dir
2488	    echo one > conftest.one
2489	    echo two > conftest.two
2490	    mkdir conftest.dir
2491	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492	      test -s conftest.one && test -s conftest.two &&
2493	      test -s conftest.dir/conftest.one &&
2494	      test -s conftest.dir/conftest.two
2495	    then
2496	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497	      break 3
2498	    fi
2499	  fi
2500	fi
2501      done
2502    done
2503    ;;
2504esac
2505
2506  done
2507IFS=$as_save_IFS
2508
2509rm -rf conftest.one conftest.two conftest.dir
2510
2511fi
2512  if test "${ac_cv_path_install+set}" = set; then
2513    INSTALL=$ac_cv_path_install
2514  else
2515    # As a last resort, use the slow shell script.  Don't cache a
2516    # value for INSTALL within a source directory, because that will
2517    # break other packages using the cache if that directory is
2518    # removed, or if the value is a relative name.
2519    INSTALL=$ac_install_sh
2520  fi
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523$as_echo "$INSTALL" >&6; }
2524
2525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526# It thinks the first close brace ends the variable substitution.
2527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
2529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2530
2531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2534$as_echo_n "checking whether build environment is sane... " >&6; }
2535# Reject unsafe characters in $srcdir or the absolute working directory
2536# name.  Accept space and tab only in the latter.
2537am_lf='
2538'
2539case `pwd` in
2540  *[\\\"\#\$\&\'\`$am_lf]*)
2541    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2542esac
2543case $srcdir in
2544  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2545    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2546esac
2547
2548# Do 'set' in a subshell so we don't clobber the current shell's
2549# arguments.  Must try -L first in case configure is actually a
2550# symlink; some systems play weird games with the mod time of symlinks
2551# (eg FreeBSD returns the mod time of the symlink's containing
2552# directory).
2553if (
2554   am_has_slept=no
2555   for am_try in 1 2; do
2556     echo "timestamp, slept: $am_has_slept" > conftest.file
2557     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2558     if test "$*" = "X"; then
2559	# -L didn't work.
2560	set X `ls -t "$srcdir/configure" conftest.file`
2561     fi
2562     if test "$*" != "X $srcdir/configure conftest.file" \
2563	&& test "$*" != "X conftest.file $srcdir/configure"; then
2564
2565	# If neither matched, then we have a broken ls.  This can happen
2566	# if, for instance, CONFIG_SHELL is bash and it inherits a
2567	# broken ls alias from the environment.  This has actually
2568	# happened.  Such a system could not be considered "sane".
2569	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2570  alias in your environment" "$LINENO" 5
2571     fi
2572     if test "$2" = conftest.file || test $am_try -eq 2; then
2573       break
2574     fi
2575     # Just in case.
2576     sleep 1
2577     am_has_slept=yes
2578   done
2579   test "$2" = conftest.file
2580   )
2581then
2582   # Ok.
2583   :
2584else
2585   as_fn_error $? "newly created file is older than distributed files!
2586Check your system clock" "$LINENO" 5
2587fi
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589$as_echo "yes" >&6; }
2590# If we didn't sleep, we still need to ensure time stamps of config.status and
2591# generated files are strictly newer.
2592am_sleep_pid=
2593if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2594  ( sleep 1 ) &
2595  am_sleep_pid=$!
2596fi
2597
2598rm -f conftest.file
2599
2600test "$program_prefix" != NONE &&
2601  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2602# Use a double $ so make ignores it.
2603test "$program_suffix" != NONE &&
2604  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2605# Double any \ or $.
2606# By default was `s,x,x', remove it if useless.
2607ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2608program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2609
2610# Expand $ac_aux_dir to an absolute path.
2611am_aux_dir=`cd "$ac_aux_dir" && pwd`
2612
2613if test x"${MISSING+set}" != xset; then
2614  case $am_aux_dir in
2615  *\ * | *\	*)
2616    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2617  *)
2618    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2619  esac
2620fi
2621# Use eval to expand $SHELL
2622if eval "$MISSING --is-lightweight"; then
2623  am_missing_run="$MISSING "
2624else
2625  am_missing_run=
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2627$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2628fi
2629
2630if test x"${install_sh+set}" != xset; then
2631  case $am_aux_dir in
2632  *\ * | *\	*)
2633    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2634  *)
2635    install_sh="\${SHELL} $am_aux_dir/install-sh"
2636  esac
2637fi
2638
2639# Installed binaries are usually stripped using 'strip' when the user
2640# run "make install-strip".  However 'strip' might not be the right
2641# tool to use in cross-compilation environments, therefore Automake
2642# will honor the 'STRIP' environment variable to overrule this program.
2643if test "$cross_compiling" != no; then
2644  if test -n "$ac_tool_prefix"; then
2645  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2646set dummy ${ac_tool_prefix}strip; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_STRIP+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  if test -n "$STRIP"; then
2653  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672STRIP=$ac_cv_prog_STRIP
2673if test -n "$STRIP"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2675$as_echo "$STRIP" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682fi
2683if test -z "$ac_cv_prog_STRIP"; then
2684  ac_ct_STRIP=$STRIP
2685  # Extract the first word of "strip", so it can be a program name with args.
2686set dummy strip; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$ac_ct_STRIP"; then
2693  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702    ac_cv_prog_ac_ct_STRIP="strip"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2713if test -n "$ac_ct_STRIP"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2715$as_echo "$ac_ct_STRIP" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721  if test "x$ac_ct_STRIP" = x; then
2722    STRIP=":"
2723  else
2724    case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728ac_tool_warned=yes ;;
2729esac
2730    STRIP=$ac_ct_STRIP
2731  fi
2732else
2733  STRIP="$ac_cv_prog_STRIP"
2734fi
2735
2736fi
2737INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2740$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2741if test -z "$MKDIR_P"; then
2742  if ${ac_cv_path_mkdir+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_prog in mkdir gmkdir; do
2751	 for ac_exec_ext in '' $ac_executable_extensions; do
2752	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2753	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2754	     'mkdir (GNU coreutils) '* | \
2755	     'mkdir (coreutils) '* | \
2756	     'mkdir (fileutils) '4.1*)
2757	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2758	       break 3;;
2759	   esac
2760	 done
2761       done
2762  done
2763IFS=$as_save_IFS
2764
2765fi
2766
2767  test -d ./--version && rmdir ./--version
2768  if test "${ac_cv_path_mkdir+set}" = set; then
2769    MKDIR_P="$ac_cv_path_mkdir -p"
2770  else
2771    # As a last resort, use the slow shell script.  Don't cache a
2772    # value for MKDIR_P within a source directory, because that will
2773    # break other packages using the cache if that directory is
2774    # removed, or if the value is a relative name.
2775    MKDIR_P="$ac_install_sh -d"
2776  fi
2777fi
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2779$as_echo "$MKDIR_P" >&6; }
2780
2781for ac_prog in gawk mawk nawk awk
2782do
2783  # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_AWK+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  if test -n "$AWK"; then
2791  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_AWK="$ac_prog"
2801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810AWK=$ac_cv_prog_AWK
2811if test -n "$AWK"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2813$as_echo "$AWK" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820  test -n "$AWK" && break
2821done
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2824$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2825set x ${MAKE-make}
2826ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2827if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  cat >conftest.make <<\_ACEOF
2831SHELL = /bin/sh
2832all:
2833	@echo '@@@%%%=$(MAKE)=@@@%%%'
2834_ACEOF
2835# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2836case `${MAKE-make} -f conftest.make 2>/dev/null` in
2837  *@@@%%%=?*=@@@%%%*)
2838    eval ac_cv_prog_make_${ac_make}_set=yes;;
2839  *)
2840    eval ac_cv_prog_make_${ac_make}_set=no;;
2841esac
2842rm -f conftest.make
2843fi
2844if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846$as_echo "yes" >&6; }
2847  SET_MAKE=
2848else
2849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851  SET_MAKE="MAKE=${MAKE-make}"
2852fi
2853
2854rm -rf .tst 2>/dev/null
2855mkdir .tst 2>/dev/null
2856if test -d .tst; then
2857  am__leading_dot=.
2858else
2859  am__leading_dot=_
2860fi
2861rmdir .tst 2>/dev/null
2862
2863# Check whether --enable-silent-rules was given.
2864if test "${enable_silent_rules+set}" = set; then :
2865  enableval=$enable_silent_rules;
2866fi
2867
2868case $enable_silent_rules in # (((
2869  yes) AM_DEFAULT_VERBOSITY=0;;
2870   no) AM_DEFAULT_VERBOSITY=1;;
2871    *) AM_DEFAULT_VERBOSITY=1;;
2872esac
2873am_make=${MAKE-make}
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2875$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2876if ${am_cv_make_support_nested_variables+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if $as_echo 'TRUE=$(BAR$(V))
2880BAR0=false
2881BAR1=true
2882V=1
2883am__doit:
2884	@$(TRUE)
2885.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2886  am_cv_make_support_nested_variables=yes
2887else
2888  am_cv_make_support_nested_variables=no
2889fi
2890fi
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2892$as_echo "$am_cv_make_support_nested_variables" >&6; }
2893if test $am_cv_make_support_nested_variables = yes; then
2894    AM_V='$(V)'
2895  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2896else
2897  AM_V=$AM_DEFAULT_VERBOSITY
2898  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2899fi
2900AM_BACKSLASH='\'
2901
2902if test "`cd $srcdir && pwd`" != "`pwd`"; then
2903  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2904  # is not polluted with repeated "-I."
2905  am__isrc=' -I$(srcdir)'
2906  # test to see if srcdir already configured
2907  if test -f $srcdir/config.status; then
2908    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2909  fi
2910fi
2911
2912# test whether we have cygpath
2913if test -z "$CYGPATH_W"; then
2914  if (cygpath --version) >/dev/null 2>/dev/null; then
2915    CYGPATH_W='cygpath -w'
2916  else
2917    CYGPATH_W=echo
2918  fi
2919fi
2920
2921
2922# Define the identity of the package.
2923 PACKAGE='libmd5'
2924 VERSION='1.21'
2925
2926
2927# Some tools Automake needs.
2928
2929ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2930
2931
2932AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2933
2934
2935AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2936
2937
2938AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2939
2940
2941MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2942
2943# For better backward compatibility.  To be removed once Automake 1.9.x
2944# dies out for good.  For more background, see:
2945# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2946# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2947mkdir_p='$(MKDIR_P)'
2948
2949# We need awk for the "check" target (and possibly the TAP driver).  The
2950# system "awk" is bad on some platforms.
2951# Always define AMTAR for backward compatibility.  Yes, it's still used
2952# in the wild :-(  We should find a proper way to deprecate it ...
2953AMTAR='$${TAR-tar}'
2954
2955
2956# We'll loop over all known methods to create a tar archive until one works.
2957_am_tools='gnutar  pax cpio none'
2958
2959am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2960
2961
2962
2963
2964
2965
2966# POSIX will say in a future version that running "rm -f" with no argument
2967# is OK; and we want to be able to make that assumption in our Makefile
2968# recipes.  So use an aggressive probe to check that the usage we want is
2969# actually supported "in the wild" to an acceptable degree.
2970# See automake bug#10828.
2971# To make any issue more visible, cause the running configure to be aborted
2972# by default if the 'rm' program in use doesn't match our expectations; the
2973# user can still override this though.
2974if rm -f && rm -fr && rm -rf; then : OK; else
2975  cat >&2 <<'END'
2976Oops!
2977
2978Your 'rm' program seems unable to run without file operands specified
2979on the command line, even when the '-f' option is present.  This is contrary
2980to the behaviour of most rm programs out there, and not conforming with
2981the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2982
2983Please tell bug-automake@gnu.org about your system, including the value
2984of your $PATH and any error possibly output before this message.  This
2985can help us improve future automake versions.
2986
2987END
2988  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2989    echo 'Configuration will proceed anyway, since you have set the' >&2
2990    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2991    echo >&2
2992  else
2993    cat >&2 <<'END'
2994Aborting the configuration process, to ensure you take notice of the issue.
2995
2996You can download and install GNU coreutils to get an 'rm' implementation
2997that behaves properly: <https://www.gnu.org/software/coreutils/>.
2998
2999If you want to complete the configuration process using your problematic
3000'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3001to "yes", and re-run configure.
3002
3003END
3004    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3005  fi
3006fi
3007
3008
3009 if test -d ${srcdir}/../libhmac; then
3010  HMACC_TRUE=
3011  HMACC_FALSE='#'
3012else
3013  HMACC_TRUE='#'
3014  HMACC_FALSE=
3015fi
3016
3017
3018for ac_prog in gawk mawk nawk awk
3019do
3020  # Extract the first word of "$ac_prog", so it can be a program name with args.
3021set dummy $ac_prog; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
3024if ${ac_cv_prog_AWK+:} false; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  if test -n "$AWK"; then
3028  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035    for ac_exec_ext in '' $ac_executable_extensions; do
3036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037    ac_cv_prog_AWK="$ac_prog"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047AWK=$ac_cv_prog_AWK
3048if test -n "$AWK"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3050$as_echo "$AWK" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057  test -n "$AWK" && break
3058done
3059
3060
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3062$as_echo_n "checking whether ln -s works... " >&6; }
3063LN_S=$as_ln_s
3064if test "$LN_S" = "ln -s"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066$as_echo "yes" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3069$as_echo "no, using $LN_S" >&6; }
3070fi
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077if test -n "$ac_tool_prefix"; then
3078  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if ${ac_cv_prog_CC+:} false; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$CC"; then
3086  ac_cv_prog_CC="$CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108$as_echo "$CC" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$ac_cv_prog_CC"; then
3117  ac_ct_CC=$CC
3118  # Extract the first word of "gcc", so it can be a program name with args.
3119set dummy gcc; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$ac_ct_CC"; then
3126  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135    ac_cv_prog_ac_ct_CC="gcc"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146if test -n "$ac_ct_CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148$as_echo "$ac_ct_CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154  if test "x$ac_ct_CC" = x; then
3155    CC=""
3156  else
3157    case $cross_compiling:$ac_tool_warned in
3158yes:)
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161ac_tool_warned=yes ;;
3162esac
3163    CC=$ac_ct_CC
3164  fi
3165else
3166  CC="$ac_cv_prog_CC"
3167fi
3168
3169if test -z "$CC"; then
3170          if test -n "$ac_tool_prefix"; then
3171    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172set dummy ${ac_tool_prefix}cc; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_CC+:} false; then :
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -n "$CC"; then
3179  ac_cv_prog_CC="$CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186    for ac_exec_ext in '' $ac_executable_extensions; do
3187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188    ac_cv_prog_CC="${ac_tool_prefix}cc"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201$as_echo "$CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208  fi
3209fi
3210if test -z "$CC"; then
3211  # Extract the first word of "cc", so it can be a program name with args.
3212set dummy cc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if ${ac_cv_prog_CC+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221  ac_prog_rejected=no
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230       ac_prog_rejected=yes
3231       continue
3232     fi
3233    ac_cv_prog_CC="cc"
3234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238  done
3239IFS=$as_save_IFS
3240
3241if test $ac_prog_rejected = yes; then
3242  # We found a bogon in the path, so make sure we never use it.
3243  set dummy $ac_cv_prog_CC
3244  shift
3245  if test $# != 0; then
3246    # We chose a different compiler from the bogus one.
3247    # However, it has the same basename, so the bogon will be chosen
3248    # first if we set CC to just the basename; use the full file name.
3249    shift
3250    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3251  fi
3252fi
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265fi
3266if test -z "$CC"; then
3267  if test -n "$ac_tool_prefix"; then
3268  for ac_prog in cl.exe
3269  do
3270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273$as_echo_n "checking for $ac_word... " >&6; }
3274if ${ac_cv_prog_CC+:} false; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  if test -n "$CC"; then
3278  ac_cv_prog_CC="$CC" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292  done
3293IFS=$as_save_IFS
3294
3295fi
3296fi
3297CC=$ac_cv_prog_CC
3298if test -n "$CC"; then
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300$as_echo "$CC" >&6; }
3301else
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304fi
3305
3306
3307    test -n "$CC" && break
3308  done
3309fi
3310if test -z "$CC"; then
3311  ac_ct_CC=$CC
3312  for ac_prog in cl.exe
3313do
3314  # Extract the first word of "$ac_prog", so it can be a program name with args.
3315set dummy $ac_prog; ac_word=$2
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317$as_echo_n "checking for $ac_word... " >&6; }
3318if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  if test -n "$ac_ct_CC"; then
3322  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_ac_ct_CC="$ac_prog"
3332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339fi
3340fi
3341ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342if test -n "$ac_ct_CC"; then
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344$as_echo "$ac_ct_CC" >&6; }
3345else
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348fi
3349
3350
3351  test -n "$ac_ct_CC" && break
3352done
3353
3354  if test "x$ac_ct_CC" = x; then
3355    CC=""
3356  else
3357    case $cross_compiling:$ac_tool_warned in
3358yes:)
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361ac_tool_warned=yes ;;
3362esac
3363    CC=$ac_ct_CC
3364  fi
3365fi
3366
3367fi
3368
3369
3370test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error $? "no acceptable C compiler found in \$PATH
3373See \`config.log' for more details" "$LINENO" 5; }
3374
3375# Provide some information about the compiler.
3376$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3377set X $ac_compile
3378ac_compiler=$2
3379for ac_option in --version -v -V -qversion; do
3380  { { ac_try="$ac_compiler $ac_option >&5"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3388  ac_status=$?
3389  if test -s conftest.err; then
3390    sed '10a\
3391... rest of stderr output deleted ...
3392         10q' conftest.err >conftest.er1
3393    cat conftest.er1 >&5
3394  fi
3395  rm -f conftest.er1 conftest.err
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }
3398done
3399
3400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411ac_clean_files_save=$ac_clean_files
3412ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413# Try to create an executable without -o first, disregard a.out.
3414# It will help us diagnose broken compilers, and finding out an intuition
3415# of exeext.
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417$as_echo_n "checking whether the C compiler works... " >&6; }
3418ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3419
3420# The possible output files:
3421ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3422
3423ac_rmfiles=
3424for ac_file in $ac_files
3425do
3426  case $ac_file in
3427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429  esac
3430done
3431rm -f $ac_rmfiles
3432
3433if { { ac_try="$ac_link_default"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_link_default") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; then :
3444  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3447# so that the user can short-circuit this test for compilers unknown to
3448# Autoconf.
3449for ac_file in $ac_files ''
3450do
3451  test -f "$ac_file" || continue
3452  case $ac_file in
3453    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3454	;;
3455    [ab].out )
3456	# We found the default executable, but exeext='' is most
3457	# certainly right.
3458	break;;
3459    *.* )
3460	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3461	then :; else
3462	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463	fi
3464	# We set ac_cv_exeext here because the later test for it is not
3465	# safe: cross compilers may not add the suffix if given an `-o'
3466	# argument, so we may need to know it at that point already.
3467	# Even if this section looks crufty: it has the advantage of
3468	# actually working.
3469	break;;
3470    * )
3471	break;;
3472  esac
3473done
3474test "$ac_cv_exeext" = no && ac_cv_exeext=
3475
3476else
3477  ac_file=''
3478fi
3479if test -z "$ac_file"; then :
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482$as_echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487as_fn_error 77 "C compiler cannot create executables
3488See \`config.log' for more details" "$LINENO" 5; }
3489else
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491$as_echo "yes" >&6; }
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494$as_echo_n "checking for C compiler default output file name... " >&6; }
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3496$as_echo "$ac_file" >&6; }
3497ac_exeext=$ac_cv_exeext
3498
3499rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3500ac_clean_files=$ac_clean_files_save
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3502$as_echo_n "checking for suffix of executables... " >&6; }
3503if { { ac_try="$ac_link"
3504case "(($ac_try" in
3505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506  *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510  (eval "$ac_link") 2>&5
3511  ac_status=$?
3512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513  test $ac_status = 0; }; then :
3514  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3515# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3516# work properly (i.e., refer to `conftest.exe'), while it won't with
3517# `rm'.
3518for ac_file in conftest.exe conftest conftest.*; do
3519  test -f "$ac_file" || continue
3520  case $ac_file in
3521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523	  break;;
3524    * ) break;;
3525  esac
3526done
3527else
3528  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3531See \`config.log' for more details" "$LINENO" 5; }
3532fi
3533rm -f conftest conftest$ac_cv_exeext
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3535$as_echo "$ac_cv_exeext" >&6; }
3536
3537rm -f conftest.$ac_ext
3538EXEEXT=$ac_cv_exeext
3539ac_exeext=$EXEEXT
3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542#include <stdio.h>
3543int
3544main ()
3545{
3546FILE *f = fopen ("conftest.out", "w");
3547 return ferror (f) || fclose (f) != 0;
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553ac_clean_files="$ac_clean_files conftest.out"
3554# Check that the compiler produces executables we can run.  If not, either
3555# the compiler is broken, or we cross compile.
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3557$as_echo_n "checking whether we are cross compiling... " >&6; }
3558if test "$cross_compiling" != yes; then
3559  { { ac_try="$ac_link"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565$as_echo "$ac_try_echo"; } >&5
3566  (eval "$ac_link") 2>&5
3567  ac_status=$?
3568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569  test $ac_status = 0; }
3570  if { ac_try='./conftest$ac_cv_exeext'
3571  { { case "(($ac_try" in
3572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573  *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577  (eval "$ac_try") 2>&5
3578  ac_status=$?
3579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }; }; then
3581    cross_compiling=no
3582  else
3583    if test "$cross_compiling" = maybe; then
3584	cross_compiling=yes
3585    else
3586	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588as_fn_error $? "cannot run C compiled programs.
3589If you meant to cross compile, use \`--host'.
3590See \`config.log' for more details" "$LINENO" 5; }
3591    fi
3592  fi
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3595$as_echo "$cross_compiling" >&6; }
3596
3597rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3598ac_clean_files=$ac_clean_files_save
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600$as_echo_n "checking for suffix of object files... " >&6; }
3601if ${ac_cv_objext+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest.o conftest.obj
3616if { { ac_try="$ac_compile"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_compile") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }; then :
3627  for ac_file in conftest.o conftest.obj conftest.*; do
3628  test -f "$ac_file" || continue;
3629  case $ac_file in
3630    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632       break;;
3633  esac
3634done
3635else
3636  $as_echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641as_fn_error $? "cannot compute suffix of object files: cannot compile
3642See \`config.log' for more details" "$LINENO" 5; }
3643fi
3644rm -f conftest.$ac_cv_objext conftest.$ac_ext
3645fi
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647$as_echo "$ac_cv_objext" >&6; }
3648OBJEXT=$ac_cv_objext
3649ac_objext=$OBJEXT
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652if ${ac_cv_c_compiler_gnu+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661#ifndef __GNUC__
3662       choke me
3663#endif
3664
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669if ac_fn_c_try_compile "$LINENO"; then :
3670  ac_compiler_gnu=yes
3671else
3672  ac_compiler_gnu=no
3673fi
3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680if test $ac_compiler_gnu = yes; then
3681  GCC=yes
3682else
3683  GCC=
3684fi
3685ac_test_CFLAGS=${CFLAGS+set}
3686ac_save_CFLAGS=$CFLAGS
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688$as_echo_n "checking whether $CC accepts -g... " >&6; }
3689if ${ac_cv_prog_cc_g+:} false; then :
3690  $as_echo_n "(cached) " >&6
3691else
3692  ac_save_c_werror_flag=$ac_c_werror_flag
3693   ac_c_werror_flag=yes
3694   ac_cv_prog_cc_g=no
3695   CFLAGS="-g"
3696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698
3699int
3700main ()
3701{
3702
3703  ;
3704  return 0;
3705}
3706_ACEOF
3707if ac_fn_c_try_compile "$LINENO"; then :
3708  ac_cv_prog_cc_g=yes
3709else
3710  CFLAGS=""
3711      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723
3724else
3725  ac_c_werror_flag=$ac_save_c_werror_flag
3726	 CFLAGS="-g"
3727	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729
3730int
3731main ()
3732{
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738if ac_fn_c_try_compile "$LINENO"; then :
3739  ac_cv_prog_cc_g=yes
3740fi
3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746   ac_c_werror_flag=$ac_save_c_werror_flag
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749$as_echo "$ac_cv_prog_cc_g" >&6; }
3750if test "$ac_test_CFLAGS" = set; then
3751  CFLAGS=$ac_save_CFLAGS
3752elif test $ac_cv_prog_cc_g = yes; then
3753  if test "$GCC" = yes; then
3754    CFLAGS="-g -O2"
3755  else
3756    CFLAGS="-g"
3757  fi
3758else
3759  if test "$GCC" = yes; then
3760    CFLAGS="-O2"
3761  else
3762    CFLAGS=
3763  fi
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767if ${ac_cv_prog_cc_c89+:} false; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  ac_cv_prog_cc_c89=no
3771ac_save_CC=$CC
3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774#include <stdarg.h>
3775#include <stdio.h>
3776struct stat;
3777/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3778struct buf { int x; };
3779FILE * (*rcsopen) (struct buf *, struct stat *, int);
3780static char *e (p, i)
3781     char **p;
3782     int i;
3783{
3784  return p[i];
3785}
3786static char *f (char * (*g) (char **, int), char **p, ...)
3787{
3788  char *s;
3789  va_list v;
3790  va_start (v,p);
3791  s = g (p, va_arg (v,int));
3792  va_end (v);
3793  return s;
3794}
3795
3796/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3797   function prototypes and stuff, but not '\xHH' hex character constants.
3798   These don't provoke an error unfortunately, instead are silently treated
3799   as 'x'.  The following induces an error, until -std is added to get
3800   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3801   array size at least.  It's necessary to write '\x00'==0 to get something
3802   that's true only with -std.  */
3803int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804
3805/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3806   inside strings and character constants.  */
3807#define FOO(x) 'x'
3808int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809
3810int test (int i, double x);
3811struct s1 {int (*f) (int a);};
3812struct s2 {int (*f) (double a);};
3813int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3814int argc;
3815char **argv;
3816int
3817main ()
3818{
3819return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826do
3827  CC="$ac_save_CC $ac_arg"
3828  if ac_fn_c_try_compile "$LINENO"; then :
3829  ac_cv_prog_cc_c89=$ac_arg
3830fi
3831rm -f core conftest.err conftest.$ac_objext
3832  test "x$ac_cv_prog_cc_c89" != "xno" && break
3833done
3834rm -f conftest.$ac_ext
3835CC=$ac_save_CC
3836
3837fi
3838# AC_CACHE_VAL
3839case "x$ac_cv_prog_cc_c89" in
3840  x)
3841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3842$as_echo "none needed" >&6; } ;;
3843  xno)
3844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3845$as_echo "unsupported" >&6; } ;;
3846  *)
3847    CC="$CC $ac_cv_prog_cc_c89"
3848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3849$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3850esac
3851if test "x$ac_cv_prog_cc_c89" != xno; then :
3852
3853fi
3854
3855ac_ext=c
3856ac_cpp='$CPP $CPPFLAGS'
3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860
3861ac_ext=c
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3867$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3868if ${am_cv_prog_cc_c_o+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main ()
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882  # Make sure it works both with $CC and with simple cc.
3883  # Following AC_PROG_CC_C_O, we do the test twice because some
3884  # compilers refuse to overwrite an existing .o file with -o,
3885  # though they will create one.
3886  am_cv_prog_cc_c_o=yes
3887  for am_i in 1 2; do
3888    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3889   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } \
3893         && test -f conftest2.$ac_objext; then
3894      : OK
3895    else
3896      am_cv_prog_cc_c_o=no
3897      break
3898    fi
3899  done
3900  rm -f core conftest*
3901  unset am_i
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3904$as_echo "$am_cv_prog_cc_c_o" >&6; }
3905if test "$am_cv_prog_cc_c_o" != yes; then
3906   # Losing compiler, so override with the script.
3907   # FIXME: It is wrong to rewrite CC.
3908   # But if we don't then we get into trouble of one sort or another.
3909   # A longer-term fix would be to have automake use am__CC in this case,
3910   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3911   CC="$am_aux_dir/compile $CC"
3912fi
3913ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919DEPDIR="${am__leading_dot}deps"
3920
3921ac_config_commands="$ac_config_commands depfiles"
3922
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3924$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3925cat > confinc.mk << 'END'
3926am__doit:
3927	@echo this is the am__doit target >confinc.out
3928.PHONY: am__doit
3929END
3930am__include="#"
3931am__quote=
3932# BSD make does it like this.
3933echo '.include "confinc.mk" # ignored' > confmf.BSD
3934# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3935echo 'include confinc.mk # ignored' > confmf.GNU
3936_am_result=no
3937for s in GNU BSD; do
3938  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3939   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }
3943  case $?:`cat confinc.out 2>/dev/null` in #(
3944  '0:this is the am__doit target') :
3945    case $s in #(
3946  BSD) :
3947    am__include='.include' am__quote='"' ;; #(
3948  *) :
3949    am__include='include' am__quote='' ;;
3950esac ;; #(
3951  *) :
3952     ;;
3953esac
3954  if test "$am__include" != "#"; then
3955    _am_result="yes ($s style)"
3956    break
3957  fi
3958done
3959rm -f confinc.* confmf.*
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3961$as_echo "${_am_result}" >&6; }
3962
3963# Check whether --enable-dependency-tracking was given.
3964if test "${enable_dependency_tracking+set}" = set; then :
3965  enableval=$enable_dependency_tracking;
3966fi
3967
3968if test "x$enable_dependency_tracking" != xno; then
3969  am_depcomp="$ac_aux_dir/depcomp"
3970  AMDEPBACKSLASH='\'
3971  am__nodep='_no'
3972fi
3973 if test "x$enable_dependency_tracking" != xno; then
3974  AMDEP_TRUE=
3975  AMDEP_FALSE='#'
3976else
3977  AMDEP_TRUE='#'
3978  AMDEP_FALSE=
3979fi
3980
3981
3982
3983depcc="$CC"   am_compiler_list=
3984
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3986$as_echo_n "checking dependency style of $depcc... " >&6; }
3987if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3991  # We make a subdir and do the tests there.  Otherwise we can end up
3992  # making bogus files that we don't know about and never remove.  For
3993  # instance it was reported that on HP-UX the gcc test will end up
3994  # making a dummy file named 'D' -- because '-MD' means "put the output
3995  # in D".
3996  rm -rf conftest.dir
3997  mkdir conftest.dir
3998  # Copy depcomp to subdir because otherwise we won't find it if we're
3999  # using a relative directory.
4000  cp "$am_depcomp" conftest.dir
4001  cd conftest.dir
4002  # We will build objects and dependencies in a subdirectory because
4003  # it helps to detect inapplicable dependency modes.  For instance
4004  # both Tru64's cc and ICC support -MD to output dependencies as a
4005  # side effect of compilation, but ICC will put the dependencies in
4006  # the current directory while Tru64 will put them in the object
4007  # directory.
4008  mkdir sub
4009
4010  am_cv_CC_dependencies_compiler_type=none
4011  if test "$am_compiler_list" = ""; then
4012     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4013  fi
4014  am__universal=false
4015  case " $depcc " in #(
4016     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4017     esac
4018
4019  for depmode in $am_compiler_list; do
4020    # Setup a source with many dependencies, because some compilers
4021    # like to wrap large dependency lists on column 80 (with \), and
4022    # we should not choose a depcomp mode which is confused by this.
4023    #
4024    # We need to recreate these files for each test, as the compiler may
4025    # overwrite some of them when testing with obscure command lines.
4026    # This happens at least with the AIX C compiler.
4027    : > sub/conftest.c
4028    for i in 1 2 3 4 5 6; do
4029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4031      # Solaris 10 /bin/sh.
4032      echo '/* dummy */' > sub/conftst$i.h
4033    done
4034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4037    # mode.  It turns out that the SunPro C++ compiler does not properly
4038    # handle '-M -o', and we need to detect this.  Also, some Intel
4039    # versions had trouble with output in subdirs.
4040    am__obj=sub/conftest.${OBJEXT-o}
4041    am__minus_obj="-o $am__obj"
4042    case $depmode in
4043    gcc)
4044      # This depmode causes a compiler race in universal mode.
4045      test "$am__universal" = false || continue
4046      ;;
4047    nosideeffect)
4048      # After this tag, mechanisms are not by side-effect, so they'll
4049      # only be used when explicitly requested.
4050      if test "x$enable_dependency_tracking" = xyes; then
4051	continue
4052      else
4053	break
4054      fi
4055      ;;
4056    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4057      # This compiler won't grok '-c -o', but also, the minuso test has
4058      # not run yet.  These depmodes are late enough in the game, and
4059      # so weak that their functioning should not be impacted.
4060      am__obj=conftest.${OBJEXT-o}
4061      am__minus_obj=
4062      ;;
4063    none) break ;;
4064    esac
4065    if depmode=$depmode \
4066       source=sub/conftest.c object=$am__obj \
4067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069         >/dev/null 2>conftest.err &&
4070       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074      # icc doesn't choke on unknown options, it will just issue warnings
4075      # or remarks (even with -Werror).  So we grep stderr for any message
4076      # that says an option was ignored or not supported.
4077      # When given -MP, icc 7.0 and 7.1 complain thusly:
4078      #   icc: Command line warning: ignoring option '-M'; no argument required
4079      # The diagnosis changed in icc 8.0:
4080      #   icc: Command line remark: option '-MP' not supported
4081      if (grep 'ignoring option' conftest.err ||
4082          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083        am_cv_CC_dependencies_compiler_type=$depmode
4084        break
4085      fi
4086    fi
4087  done
4088
4089  cd ..
4090  rm -rf conftest.dir
4091else
4092  am_cv_CC_dependencies_compiler_type=none
4093fi
4094
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4099
4100 if
4101  test "x$enable_dependency_tracking" != xno \
4102  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103  am__fastdepCC_TRUE=
4104  am__fastdepCC_FALSE='#'
4105else
4106  am__fastdepCC_TRUE='#'
4107  am__fastdepCC_FALSE=
4108fi
4109
4110
4111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4112$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4113if ${ac_cv_prog_cc_c99+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  ac_cv_prog_cc_c99=no
4117ac_save_CC=$CC
4118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120#include <stdarg.h>
4121#include <stdbool.h>
4122#include <stdlib.h>
4123#include <wchar.h>
4124#include <stdio.h>
4125
4126// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4127#define debug(...) fprintf (stderr, __VA_ARGS__)
4128#define showlist(...) puts (#__VA_ARGS__)
4129#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4130static void
4131test_varargs_macros (void)
4132{
4133  int x = 1234;
4134  int y = 5678;
4135  debug ("Flag");
4136  debug ("X = %d\n", x);
4137  showlist (The first, second, and third items.);
4138  report (x>y, "x is %d but y is %d", x, y);
4139}
4140
4141// Check long long types.
4142#define BIG64 18446744073709551615ull
4143#define BIG32 4294967295ul
4144#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4145#if !BIG_OK
4146  your preprocessor is broken;
4147#endif
4148#if BIG_OK
4149#else
4150  your preprocessor is broken;
4151#endif
4152static long long int bignum = -9223372036854775807LL;
4153static unsigned long long int ubignum = BIG64;
4154
4155struct incomplete_array
4156{
4157  int datasize;
4158  double data[];
4159};
4160
4161struct named_init {
4162  int number;
4163  const wchar_t *name;
4164  double average;
4165};
4166
4167typedef const char *ccp;
4168
4169static inline int
4170test_restrict (ccp restrict text)
4171{
4172  // See if C++-style comments work.
4173  // Iterate through items via the restricted pointer.
4174  // Also check for declarations in for loops.
4175  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4176    continue;
4177  return 0;
4178}
4179
4180// Check varargs and va_copy.
4181static void
4182test_varargs (const char *format, ...)
4183{
4184  va_list args;
4185  va_start (args, format);
4186  va_list args_copy;
4187  va_copy (args_copy, args);
4188
4189  const char *str;
4190  int number;
4191  float fnumber;
4192
4193  while (*format)
4194    {
4195      switch (*format++)
4196	{
4197	case 's': // string
4198	  str = va_arg (args_copy, const char *);
4199	  break;
4200	case 'd': // int
4201	  number = va_arg (args_copy, int);
4202	  break;
4203	case 'f': // float
4204	  fnumber = va_arg (args_copy, double);
4205	  break;
4206	default:
4207	  break;
4208	}
4209    }
4210  va_end (args_copy);
4211  va_end (args);
4212}
4213
4214int
4215main ()
4216{
4217
4218  // Check bool.
4219  _Bool success = false;
4220
4221  // Check restrict.
4222  if (test_restrict ("String literal") == 0)
4223    success = true;
4224  char *restrict newvar = "Another string";
4225
4226  // Check varargs.
4227  test_varargs ("s, d' f .", "string", 65, 34.234);
4228  test_varargs_macros ();
4229
4230  // Check flexible array members.
4231  struct incomplete_array *ia =
4232    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4233  ia->datasize = 10;
4234  for (int i = 0; i < ia->datasize; ++i)
4235    ia->data[i] = i * 1.234;
4236
4237  // Check named initializers.
4238  struct named_init ni = {
4239    .number = 34,
4240    .name = L"Test wide string",
4241    .average = 543.34343,
4242  };
4243
4244  ni.number = 58;
4245
4246  int dynamic_array[ni.number];
4247  dynamic_array[ni.number - 1] = 543;
4248
4249  // work around unused variable warnings
4250  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4251	  || dynamic_array[ni.number - 1] != 543);
4252
4253  ;
4254  return 0;
4255}
4256_ACEOF
4257for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4258do
4259  CC="$ac_save_CC $ac_arg"
4260  if ac_fn_c_try_compile "$LINENO"; then :
4261  ac_cv_prog_cc_c99=$ac_arg
4262fi
4263rm -f core conftest.err conftest.$ac_objext
4264  test "x$ac_cv_prog_cc_c99" != "xno" && break
4265done
4266rm -f conftest.$ac_ext
4267CC=$ac_save_CC
4268
4269fi
4270# AC_CACHE_VAL
4271case "x$ac_cv_prog_cc_c99" in
4272  x)
4273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274$as_echo "none needed" >&6; } ;;
4275  xno)
4276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277$as_echo "unsupported" >&6; } ;;
4278  *)
4279    CC="$CC $ac_cv_prog_cc_c99"
4280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4281$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4282esac
4283if test "x$ac_cv_prog_cc_c99" != xno; then :
4284
4285fi
4286
4287
4288case `pwd` in
4289  *\ * | *\	*)
4290    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4291$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4292esac
4293
4294
4295
4296macro_version='2.4.6'
4297macro_revision='2.4.6'
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311ltmain=$ac_aux_dir/ltmain.sh
4312
4313# Make sure we can run config.sub.
4314$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4315  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4316
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4318$as_echo_n "checking build system type... " >&6; }
4319if ${ac_cv_build+:} false; then :
4320  $as_echo_n "(cached) " >&6
4321else
4322  ac_build_alias=$build_alias
4323test "x$ac_build_alias" = x &&
4324  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4325test "x$ac_build_alias" = x &&
4326  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4327ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4328  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4329
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4332$as_echo "$ac_cv_build" >&6; }
4333case $ac_cv_build in
4334*-*-*) ;;
4335*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4336esac
4337build=$ac_cv_build
4338ac_save_IFS=$IFS; IFS='-'
4339set x $ac_cv_build
4340shift
4341build_cpu=$1
4342build_vendor=$2
4343shift; shift
4344# Remember, the first character of IFS is used to create $*,
4345# except with old shells:
4346build_os=$*
4347IFS=$ac_save_IFS
4348case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4349
4350
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4352$as_echo_n "checking host system type... " >&6; }
4353if ${ac_cv_host+:} false; then :
4354  $as_echo_n "(cached) " >&6
4355else
4356  if test "x$host_alias" = x; then
4357  ac_cv_host=$ac_cv_build
4358else
4359  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4360    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4361fi
4362
4363fi
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4365$as_echo "$ac_cv_host" >&6; }
4366case $ac_cv_host in
4367*-*-*) ;;
4368*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4369esac
4370host=$ac_cv_host
4371ac_save_IFS=$IFS; IFS='-'
4372set x $ac_cv_host
4373shift
4374host_cpu=$1
4375host_vendor=$2
4376shift; shift
4377# Remember, the first character of IFS is used to create $*,
4378# except with old shells:
4379host_os=$*
4380IFS=$ac_save_IFS
4381case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4382
4383
4384# Backslashify metacharacters that are still active within
4385# double-quoted strings.
4386sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4387
4388# Same as above, but do not quote variable references.
4389double_quote_subst='s/\(["`\\]\)/\\\1/g'
4390
4391# Sed substitution to delay expansion of an escaped shell variable in a
4392# double_quote_subst'ed string.
4393delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4394
4395# Sed substitution to delay expansion of an escaped single quote.
4396delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4397
4398# Sed substitution to avoid accidental globbing in evaled expressions
4399no_glob_subst='s/\*/\\\*/g'
4400
4401ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4402ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4403ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4406$as_echo_n "checking how to print strings... " >&6; }
4407# Test print first, because it will be a builtin if present.
4408if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4409   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4410  ECHO='print -r --'
4411elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4412  ECHO='printf %s\n'
4413else
4414  # Use this function as a fallback that always works.
4415  func_fallback_echo ()
4416  {
4417    eval 'cat <<_LTECHO_EOF
4418$1
4419_LTECHO_EOF'
4420  }
4421  ECHO='func_fallback_echo'
4422fi
4423
4424# func_echo_all arg...
4425# Invoke $ECHO with all args, space-separated.
4426func_echo_all ()
4427{
4428    $ECHO ""
4429}
4430
4431case $ECHO in
4432  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4433$as_echo "printf" >&6; } ;;
4434  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4435$as_echo "print -r" >&6; } ;;
4436  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4437$as_echo "cat" >&6; } ;;
4438esac
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4454$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4455if ${ac_cv_path_SED+:} false; then :
4456  $as_echo_n "(cached) " >&6
4457else
4458            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4459     for ac_i in 1 2 3 4 5 6 7; do
4460       ac_script="$ac_script$as_nl$ac_script"
4461     done
4462     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4463     { ac_script=; unset ac_script;}
4464     if test -z "$SED"; then
4465  ac_path_SED_found=false
4466  # Loop through the user's path and test for each of PROGNAME-LIST
4467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_prog in sed gsed; do
4473    for ac_exec_ext in '' $ac_executable_extensions; do
4474      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4475      as_fn_executable_p "$ac_path_SED" || continue
4476# Check for GNU ac_path_SED and select it if it is found.
4477  # Check for GNU $ac_path_SED
4478case `"$ac_path_SED" --version 2>&1` in
4479*GNU*)
4480  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4481*)
4482  ac_count=0
4483  $as_echo_n 0123456789 >"conftest.in"
4484  while :
4485  do
4486    cat "conftest.in" "conftest.in" >"conftest.tmp"
4487    mv "conftest.tmp" "conftest.in"
4488    cp "conftest.in" "conftest.nl"
4489    $as_echo '' >> "conftest.nl"
4490    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492    as_fn_arith $ac_count + 1 && ac_count=$as_val
4493    if test $ac_count -gt ${ac_path_SED_max-0}; then
4494      # Best one so far, save it but keep looking for a better one
4495      ac_cv_path_SED="$ac_path_SED"
4496      ac_path_SED_max=$ac_count
4497    fi
4498    # 10*(2^10) chars as input seems more than enough
4499    test $ac_count -gt 10 && break
4500  done
4501  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502esac
4503
4504      $ac_path_SED_found && break 3
4505    done
4506  done
4507  done
4508IFS=$as_save_IFS
4509  if test -z "$ac_cv_path_SED"; then
4510    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4511  fi
4512else
4513  ac_cv_path_SED=$SED
4514fi
4515
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4518$as_echo "$ac_cv_path_SED" >&6; }
4519 SED="$ac_cv_path_SED"
4520  rm -f conftest.sed
4521
4522test -z "$SED" && SED=sed
4523Xsed="$SED -e 1s/^X//"
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4536$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4537if ${ac_cv_path_GREP+:} false; then :
4538  $as_echo_n "(cached) " >&6
4539else
4540  if test -z "$GREP"; then
4541  ac_path_GREP_found=false
4542  # Loop through the user's path and test for each of PROGNAME-LIST
4543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4545do
4546  IFS=$as_save_IFS
4547  test -z "$as_dir" && as_dir=.
4548    for ac_prog in grep ggrep; do
4549    for ac_exec_ext in '' $ac_executable_extensions; do
4550      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4551      as_fn_executable_p "$ac_path_GREP" || continue
4552# Check for GNU ac_path_GREP and select it if it is found.
4553  # Check for GNU $ac_path_GREP
4554case `"$ac_path_GREP" --version 2>&1` in
4555*GNU*)
4556  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4557*)
4558  ac_count=0
4559  $as_echo_n 0123456789 >"conftest.in"
4560  while :
4561  do
4562    cat "conftest.in" "conftest.in" >"conftest.tmp"
4563    mv "conftest.tmp" "conftest.in"
4564    cp "conftest.in" "conftest.nl"
4565    $as_echo 'GREP' >> "conftest.nl"
4566    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568    as_fn_arith $ac_count + 1 && ac_count=$as_val
4569    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4570      # Best one so far, save it but keep looking for a better one
4571      ac_cv_path_GREP="$ac_path_GREP"
4572      ac_path_GREP_max=$ac_count
4573    fi
4574    # 10*(2^10) chars as input seems more than enough
4575    test $ac_count -gt 10 && break
4576  done
4577  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578esac
4579
4580      $ac_path_GREP_found && break 3
4581    done
4582  done
4583  done
4584IFS=$as_save_IFS
4585  if test -z "$ac_cv_path_GREP"; then
4586    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4587  fi
4588else
4589  ac_cv_path_GREP=$GREP
4590fi
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4594$as_echo "$ac_cv_path_GREP" >&6; }
4595 GREP="$ac_cv_path_GREP"
4596
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4599$as_echo_n "checking for egrep... " >&6; }
4600if ${ac_cv_path_EGREP+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4604   then ac_cv_path_EGREP="$GREP -E"
4605   else
4606     if test -z "$EGREP"; then
4607  ac_path_EGREP_found=false
4608  # Loop through the user's path and test for each of PROGNAME-LIST
4609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4611do
4612  IFS=$as_save_IFS
4613  test -z "$as_dir" && as_dir=.
4614    for ac_prog in egrep; do
4615    for ac_exec_ext in '' $ac_executable_extensions; do
4616      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4617      as_fn_executable_p "$ac_path_EGREP" || continue
4618# Check for GNU ac_path_EGREP and select it if it is found.
4619  # Check for GNU $ac_path_EGREP
4620case `"$ac_path_EGREP" --version 2>&1` in
4621*GNU*)
4622  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4623*)
4624  ac_count=0
4625  $as_echo_n 0123456789 >"conftest.in"
4626  while :
4627  do
4628    cat "conftest.in" "conftest.in" >"conftest.tmp"
4629    mv "conftest.tmp" "conftest.in"
4630    cp "conftest.in" "conftest.nl"
4631    $as_echo 'EGREP' >> "conftest.nl"
4632    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4633    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4634    as_fn_arith $ac_count + 1 && ac_count=$as_val
4635    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4636      # Best one so far, save it but keep looking for a better one
4637      ac_cv_path_EGREP="$ac_path_EGREP"
4638      ac_path_EGREP_max=$ac_count
4639    fi
4640    # 10*(2^10) chars as input seems more than enough
4641    test $ac_count -gt 10 && break
4642  done
4643  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4644esac
4645
4646      $ac_path_EGREP_found && break 3
4647    done
4648  done
4649  done
4650IFS=$as_save_IFS
4651  if test -z "$ac_cv_path_EGREP"; then
4652    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4653  fi
4654else
4655  ac_cv_path_EGREP=$EGREP
4656fi
4657
4658   fi
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4661$as_echo "$ac_cv_path_EGREP" >&6; }
4662 EGREP="$ac_cv_path_EGREP"
4663
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4666$as_echo_n "checking for fgrep... " >&6; }
4667if ${ac_cv_path_FGREP+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4671   then ac_cv_path_FGREP="$GREP -F"
4672   else
4673     if test -z "$FGREP"; then
4674  ac_path_FGREP_found=false
4675  # Loop through the user's path and test for each of PROGNAME-LIST
4676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4678do
4679  IFS=$as_save_IFS
4680  test -z "$as_dir" && as_dir=.
4681    for ac_prog in fgrep; do
4682    for ac_exec_ext in '' $ac_executable_extensions; do
4683      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4684      as_fn_executable_p "$ac_path_FGREP" || continue
4685# Check for GNU ac_path_FGREP and select it if it is found.
4686  # Check for GNU $ac_path_FGREP
4687case `"$ac_path_FGREP" --version 2>&1` in
4688*GNU*)
4689  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4690*)
4691  ac_count=0
4692  $as_echo_n 0123456789 >"conftest.in"
4693  while :
4694  do
4695    cat "conftest.in" "conftest.in" >"conftest.tmp"
4696    mv "conftest.tmp" "conftest.in"
4697    cp "conftest.in" "conftest.nl"
4698    $as_echo 'FGREP' >> "conftest.nl"
4699    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4700    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4701    as_fn_arith $ac_count + 1 && ac_count=$as_val
4702    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4703      # Best one so far, save it but keep looking for a better one
4704      ac_cv_path_FGREP="$ac_path_FGREP"
4705      ac_path_FGREP_max=$ac_count
4706    fi
4707    # 10*(2^10) chars as input seems more than enough
4708    test $ac_count -gt 10 && break
4709  done
4710  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4711esac
4712
4713      $ac_path_FGREP_found && break 3
4714    done
4715  done
4716  done
4717IFS=$as_save_IFS
4718  if test -z "$ac_cv_path_FGREP"; then
4719    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4720  fi
4721else
4722  ac_cv_path_FGREP=$FGREP
4723fi
4724
4725   fi
4726fi
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4728$as_echo "$ac_cv_path_FGREP" >&6; }
4729 FGREP="$ac_cv_path_FGREP"
4730
4731
4732test -z "$GREP" && GREP=grep
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752# Check whether --with-gnu-ld was given.
4753if test "${with_gnu_ld+set}" = set; then :
4754  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4755else
4756  with_gnu_ld=no
4757fi
4758
4759ac_prog=ld
4760if test yes = "$GCC"; then
4761  # Check if gcc -print-prog-name=ld gives a path.
4762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4763$as_echo_n "checking for ld used by $CC... " >&6; }
4764  case $host in
4765  *-*-mingw*)
4766    # gcc leaves a trailing carriage return, which upsets mingw
4767    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4768  *)
4769    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4770  esac
4771  case $ac_prog in
4772    # Accept absolute paths.
4773    [\\/]* | ?:[\\/]*)
4774      re_direlt='/[^/][^/]*/\.\./'
4775      # Canonicalize the pathname of ld
4776      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4777      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4778	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4779      done
4780      test -z "$LD" && LD=$ac_prog
4781      ;;
4782  "")
4783    # If it fails, then pretend we aren't using GCC.
4784    ac_prog=ld
4785    ;;
4786  *)
4787    # If it is relative, then search for the first ld in PATH.
4788    with_gnu_ld=unknown
4789    ;;
4790  esac
4791elif test yes = "$with_gnu_ld"; then
4792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4793$as_echo_n "checking for GNU ld... " >&6; }
4794else
4795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4796$as_echo_n "checking for non-GNU ld... " >&6; }
4797fi
4798if ${lt_cv_path_LD+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  if test -z "$LD"; then
4802  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4803  for ac_dir in $PATH; do
4804    IFS=$lt_save_ifs
4805    test -z "$ac_dir" && ac_dir=.
4806    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4807      lt_cv_path_LD=$ac_dir/$ac_prog
4808      # Check to see if the program is GNU ld.  I'd rather use --version,
4809      # but apparently some variants of GNU ld only accept -v.
4810      # Break only if it was the GNU/non-GNU ld that we prefer.
4811      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4812      *GNU* | *'with BFD'*)
4813	test no != "$with_gnu_ld" && break
4814	;;
4815      *)
4816	test yes != "$with_gnu_ld" && break
4817	;;
4818      esac
4819    fi
4820  done
4821  IFS=$lt_save_ifs
4822else
4823  lt_cv_path_LD=$LD # Let the user override the test with a path.
4824fi
4825fi
4826
4827LD=$lt_cv_path_LD
4828if test -n "$LD"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4830$as_echo "$LD" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4837$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4838if ${lt_cv_prog_gnu_ld+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4842case `$LD -v 2>&1 </dev/null` in
4843*GNU* | *'with BFD'*)
4844  lt_cv_prog_gnu_ld=yes
4845  ;;
4846*)
4847  lt_cv_prog_gnu_ld=no
4848  ;;
4849esac
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4852$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4853with_gnu_ld=$lt_cv_prog_gnu_ld
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4864$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4865if ${lt_cv_path_NM+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -n "$NM"; then
4869  # Let the user override the test.
4870  lt_cv_path_NM=$NM
4871else
4872  lt_nm_to_check=${ac_tool_prefix}nm
4873  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4874    lt_nm_to_check="$lt_nm_to_check nm"
4875  fi
4876  for lt_tmp_nm in $lt_nm_to_check; do
4877    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4878    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4879      IFS=$lt_save_ifs
4880      test -z "$ac_dir" && ac_dir=.
4881      tmp_nm=$ac_dir/$lt_tmp_nm
4882      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4883	# Check to see if the nm accepts a BSD-compat flag.
4884	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4885	#   nm: unknown option "B" ignored
4886	# Tru64's nm complains that /dev/null is an invalid object file
4887	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4888	case $build_os in
4889	mingw*) lt_bad_file=conftest.nm/nofile ;;
4890	*) lt_bad_file=/dev/null ;;
4891	esac
4892	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4893	*$lt_bad_file* | *'Invalid file or object type'*)
4894	  lt_cv_path_NM="$tmp_nm -B"
4895	  break 2
4896	  ;;
4897	*)
4898	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4899	  */dev/null*)
4900	    lt_cv_path_NM="$tmp_nm -p"
4901	    break 2
4902	    ;;
4903	  *)
4904	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4905	    continue # so that we can try to find one that supports BSD flags
4906	    ;;
4907	  esac
4908	  ;;
4909	esac
4910      fi
4911    done
4912    IFS=$lt_save_ifs
4913  done
4914  : ${lt_cv_path_NM=no}
4915fi
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4918$as_echo "$lt_cv_path_NM" >&6; }
4919if test no != "$lt_cv_path_NM"; then
4920  NM=$lt_cv_path_NM
4921else
4922  # Didn't find any BSD compatible name lister, look for dumpbin.
4923  if test -n "$DUMPBIN"; then :
4924    # Let the user override the test.
4925  else
4926    if test -n "$ac_tool_prefix"; then
4927  for ac_prog in dumpbin "link -dump"
4928  do
4929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932$as_echo_n "checking for $ac_word... " >&6; }
4933if ${ac_cv_prog_DUMPBIN+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  if test -n "$DUMPBIN"; then
4937  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4938else
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942  IFS=$as_save_IFS
4943  test -z "$as_dir" && as_dir=.
4944    for ac_exec_ext in '' $ac_executable_extensions; do
4945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948    break 2
4949  fi
4950done
4951  done
4952IFS=$as_save_IFS
4953
4954fi
4955fi
4956DUMPBIN=$ac_cv_prog_DUMPBIN
4957if test -n "$DUMPBIN"; then
4958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4959$as_echo "$DUMPBIN" >&6; }
4960else
4961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
4963fi
4964
4965
4966    test -n "$DUMPBIN" && break
4967  done
4968fi
4969if test -z "$DUMPBIN"; then
4970  ac_ct_DUMPBIN=$DUMPBIN
4971  for ac_prog in dumpbin "link -dump"
4972do
4973  # Extract the first word of "$ac_prog", so it can be a program name with args.
4974set dummy $ac_prog; ac_word=$2
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980  if test -n "$ac_ct_DUMPBIN"; then
4981  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4982else
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986  IFS=$as_save_IFS
4987  test -z "$as_dir" && as_dir=.
4988    for ac_exec_ext in '' $ac_executable_extensions; do
4989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992    break 2
4993  fi
4994done
4995  done
4996IFS=$as_save_IFS
4997
4998fi
4999fi
5000ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5001if test -n "$ac_ct_DUMPBIN"; then
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5003$as_echo "$ac_ct_DUMPBIN" >&6; }
5004else
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007fi
5008
5009
5010  test -n "$ac_ct_DUMPBIN" && break
5011done
5012
5013  if test "x$ac_ct_DUMPBIN" = x; then
5014    DUMPBIN=":"
5015  else
5016    case $cross_compiling:$ac_tool_warned in
5017yes:)
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020ac_tool_warned=yes ;;
5021esac
5022    DUMPBIN=$ac_ct_DUMPBIN
5023  fi
5024fi
5025
5026    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5027    *COFF*)
5028      DUMPBIN="$DUMPBIN -symbols -headers"
5029      ;;
5030    *)
5031      DUMPBIN=:
5032      ;;
5033    esac
5034  fi
5035
5036  if test : != "$DUMPBIN"; then
5037    NM=$DUMPBIN
5038  fi
5039fi
5040test -z "$NM" && NM=nm
5041
5042
5043
5044
5045
5046
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5048$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5049if ${lt_cv_nm_interface+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  lt_cv_nm_interface="BSD nm"
5053  echo "int some_variable = 0;" > conftest.$ac_ext
5054  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5055  (eval "$ac_compile" 2>conftest.err)
5056  cat conftest.err >&5
5057  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5058  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5059  cat conftest.err >&5
5060  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5061  cat conftest.out >&5
5062  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5063    lt_cv_nm_interface="MS dumpbin"
5064  fi
5065  rm -f conftest*
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5068$as_echo "$lt_cv_nm_interface" >&6; }
5069
5070# find the maximum length of command line arguments
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5072$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5073if ${lt_cv_sys_max_cmd_len+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076    i=0
5077  teststring=ABCD
5078
5079  case $build_os in
5080  msdosdjgpp*)
5081    # On DJGPP, this test can blow up pretty badly due to problems in libc
5082    # (any single argument exceeding 2000 bytes causes a buffer overrun
5083    # during glob expansion).  Even if it were fixed, the result of this
5084    # check would be larger than it should be.
5085    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5086    ;;
5087
5088  gnu*)
5089    # Under GNU Hurd, this test is not required because there is
5090    # no limit to the length of command line arguments.
5091    # Libtool will interpret -1 as no limit whatsoever
5092    lt_cv_sys_max_cmd_len=-1;
5093    ;;
5094
5095  cygwin* | mingw* | cegcc*)
5096    # On Win9x/ME, this test blows up -- it succeeds, but takes
5097    # about 5 minutes as the teststring grows exponentially.
5098    # Worse, since 9x/ME are not pre-emptively multitasking,
5099    # you end up with a "frozen" computer, even though with patience
5100    # the test eventually succeeds (with a max line length of 256k).
5101    # Instead, let's just punt: use the minimum linelength reported by
5102    # all of the supported platforms: 8192 (on NT/2K/XP).
5103    lt_cv_sys_max_cmd_len=8192;
5104    ;;
5105
5106  mint*)
5107    # On MiNT this can take a long time and run out of memory.
5108    lt_cv_sys_max_cmd_len=8192;
5109    ;;
5110
5111  amigaos*)
5112    # On AmigaOS with pdksh, this test takes hours, literally.
5113    # So we just punt and use a minimum line length of 8192.
5114    lt_cv_sys_max_cmd_len=8192;
5115    ;;
5116
5117  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5118    # This has been around since 386BSD, at least.  Likely further.
5119    if test -x /sbin/sysctl; then
5120      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5121    elif test -x /usr/sbin/sysctl; then
5122      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5123    else
5124      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5125    fi
5126    # And add a safety zone
5127    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5128    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5129    ;;
5130
5131  interix*)
5132    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5133    lt_cv_sys_max_cmd_len=196608
5134    ;;
5135
5136  os2*)
5137    # The test takes a long time on OS/2.
5138    lt_cv_sys_max_cmd_len=8192
5139    ;;
5140
5141  osf*)
5142    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5143    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5144    # nice to cause kernel panics so lets avoid the loop below.
5145    # First set a reasonable default.
5146    lt_cv_sys_max_cmd_len=16384
5147    #
5148    if test -x /sbin/sysconfig; then
5149      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5150        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5151      esac
5152    fi
5153    ;;
5154  sco3.2v5*)
5155    lt_cv_sys_max_cmd_len=102400
5156    ;;
5157  sysv5* | sco5v6* | sysv4.2uw2*)
5158    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5159    if test -n "$kargmax"; then
5160      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5161    else
5162      lt_cv_sys_max_cmd_len=32768
5163    fi
5164    ;;
5165  *)
5166    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5167    if test -n "$lt_cv_sys_max_cmd_len" && \
5168       test undefined != "$lt_cv_sys_max_cmd_len"; then
5169      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5170      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5171    else
5172      # Make teststring a little bigger before we do anything with it.
5173      # a 1K string should be a reasonable start.
5174      for i in 1 2 3 4 5 6 7 8; do
5175        teststring=$teststring$teststring
5176      done
5177      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5178      # If test is not a shell built-in, we'll probably end up computing a
5179      # maximum length that is only half of the actual maximum length, but
5180      # we can't tell.
5181      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5182	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5183	      test 17 != "$i" # 1/2 MB should be enough
5184      do
5185        i=`expr $i + 1`
5186        teststring=$teststring$teststring
5187      done
5188      # Only check the string length outside the loop.
5189      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5190      teststring=
5191      # Add a significant safety factor because C++ compilers can tack on
5192      # massive amounts of additional arguments before passing them to the
5193      # linker.  It appears as though 1/2 is a usable value.
5194      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5195    fi
5196    ;;
5197  esac
5198
5199fi
5200
5201if test -n "$lt_cv_sys_max_cmd_len"; then
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5203$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5204else
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5206$as_echo "none" >&6; }
5207fi
5208max_cmd_len=$lt_cv_sys_max_cmd_len
5209
5210
5211
5212
5213
5214
5215: ${CP="cp -f"}
5216: ${MV="mv -f"}
5217: ${RM="rm -f"}
5218
5219if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5220  lt_unset=unset
5221else
5222  lt_unset=false
5223fi
5224
5225
5226
5227
5228
5229# test EBCDIC or ASCII
5230case `echo X|tr X '\101'` in
5231 A) # ASCII based system
5232    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5233  lt_SP2NL='tr \040 \012'
5234  lt_NL2SP='tr \015\012 \040\040'
5235  ;;
5236 *) # EBCDIC based system
5237  lt_SP2NL='tr \100 \n'
5238  lt_NL2SP='tr \r\n \100\100'
5239  ;;
5240esac
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5251$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5252if ${lt_cv_to_host_file_cmd+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  case $host in
5256  *-*-mingw* )
5257    case $build in
5258      *-*-mingw* ) # actually msys
5259        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5260        ;;
5261      *-*-cygwin* )
5262        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5263        ;;
5264      * ) # otherwise, assume *nix
5265        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5266        ;;
5267    esac
5268    ;;
5269  *-*-cygwin* )
5270    case $build in
5271      *-*-mingw* ) # actually msys
5272        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5273        ;;
5274      *-*-cygwin* )
5275        lt_cv_to_host_file_cmd=func_convert_file_noop
5276        ;;
5277      * ) # otherwise, assume *nix
5278        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5279        ;;
5280    esac
5281    ;;
5282  * ) # unhandled hosts (and "normal" native builds)
5283    lt_cv_to_host_file_cmd=func_convert_file_noop
5284    ;;
5285esac
5286
5287fi
5288
5289to_host_file_cmd=$lt_cv_to_host_file_cmd
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5291$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5292
5293
5294
5295
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5298$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5299if ${lt_cv_to_tool_file_cmd+:} false; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  #assume ordinary cross tools, or native build.
5303lt_cv_to_tool_file_cmd=func_convert_file_noop
5304case $host in
5305  *-*-mingw* )
5306    case $build in
5307      *-*-mingw* ) # actually msys
5308        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5309        ;;
5310    esac
5311    ;;
5312esac
5313
5314fi
5315
5316to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5318$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5319
5320
5321
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5325$as_echo_n "checking for $LD option to reload object files... " >&6; }
5326if ${lt_cv_ld_reload_flag+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  lt_cv_ld_reload_flag='-r'
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5332$as_echo "$lt_cv_ld_reload_flag" >&6; }
5333reload_flag=$lt_cv_ld_reload_flag
5334case $reload_flag in
5335"" | " "*) ;;
5336*) reload_flag=" $reload_flag" ;;
5337esac
5338reload_cmds='$LD$reload_flag -o $output$reload_objs'
5339case $host_os in
5340  cygwin* | mingw* | pw32* | cegcc*)
5341    if test yes != "$GCC"; then
5342      reload_cmds=false
5343    fi
5344    ;;
5345  darwin*)
5346    if test yes = "$GCC"; then
5347      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5348    else
5349      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5350    fi
5351    ;;
5352esac
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362if test -n "$ac_tool_prefix"; then
5363  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5364set dummy ${ac_tool_prefix}objdump; ac_word=$2
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366$as_echo_n "checking for $ac_word... " >&6; }
5367if ${ac_cv_prog_OBJDUMP+:} false; then :
5368  $as_echo_n "(cached) " >&6
5369else
5370  if test -n "$OBJDUMP"; then
5371  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5372else
5373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376  IFS=$as_save_IFS
5377  test -z "$as_dir" && as_dir=.
5378    for ac_exec_ext in '' $ac_executable_extensions; do
5379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382    break 2
5383  fi
5384done
5385  done
5386IFS=$as_save_IFS
5387
5388fi
5389fi
5390OBJDUMP=$ac_cv_prog_OBJDUMP
5391if test -n "$OBJDUMP"; then
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5393$as_echo "$OBJDUMP" >&6; }
5394else
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }
5397fi
5398
5399
5400fi
5401if test -z "$ac_cv_prog_OBJDUMP"; then
5402  ac_ct_OBJDUMP=$OBJDUMP
5403  # Extract the first word of "objdump", so it can be a program name with args.
5404set dummy objdump; ac_word=$2
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406$as_echo_n "checking for $ac_word... " >&6; }
5407if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5408  $as_echo_n "(cached) " >&6
5409else
5410  if test -n "$ac_ct_OBJDUMP"; then
5411  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5412else
5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH
5415do
5416  IFS=$as_save_IFS
5417  test -z "$as_dir" && as_dir=.
5418    for ac_exec_ext in '' $ac_executable_extensions; do
5419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422    break 2
5423  fi
5424done
5425  done
5426IFS=$as_save_IFS
5427
5428fi
5429fi
5430ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5431if test -n "$ac_ct_OBJDUMP"; then
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5433$as_echo "$ac_ct_OBJDUMP" >&6; }
5434else
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436$as_echo "no" >&6; }
5437fi
5438
5439  if test "x$ac_ct_OBJDUMP" = x; then
5440    OBJDUMP="false"
5441  else
5442    case $cross_compiling:$ac_tool_warned in
5443yes:)
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446ac_tool_warned=yes ;;
5447esac
5448    OBJDUMP=$ac_ct_OBJDUMP
5449  fi
5450else
5451  OBJDUMP="$ac_cv_prog_OBJDUMP"
5452fi
5453
5454test -z "$OBJDUMP" && OBJDUMP=objdump
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5465$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5466if ${lt_cv_deplibs_check_method+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  lt_cv_file_magic_cmd='$MAGIC_CMD'
5470lt_cv_file_magic_test_file=
5471lt_cv_deplibs_check_method='unknown'
5472# Need to set the preceding variable on all platforms that support
5473# interlibrary dependencies.
5474# 'none' -- dependencies not supported.
5475# 'unknown' -- same as none, but documents that we really don't know.
5476# 'pass_all' -- all dependencies passed with no checks.
5477# 'test_compile' -- check by making test program.
5478# 'file_magic [[regex]]' -- check by looking for files in library path
5479# that responds to the $file_magic_cmd with a given extended regex.
5480# If you have 'file' or equivalent on your system and you're not sure
5481# whether 'pass_all' will *always* work, you probably want this one.
5482
5483case $host_os in
5484aix[4-9]*)
5485  lt_cv_deplibs_check_method=pass_all
5486  ;;
5487
5488beos*)
5489  lt_cv_deplibs_check_method=pass_all
5490  ;;
5491
5492bsdi[45]*)
5493  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5494  lt_cv_file_magic_cmd='/usr/bin/file -L'
5495  lt_cv_file_magic_test_file=/shlib/libc.so
5496  ;;
5497
5498cygwin*)
5499  # func_win32_libid is a shell function defined in ltmain.sh
5500  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5501  lt_cv_file_magic_cmd='func_win32_libid'
5502  ;;
5503
5504mingw* | pw32*)
5505  # Base MSYS/MinGW do not provide the 'file' command needed by
5506  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5507  # unless we find 'file', for example because we are cross-compiling.
5508  if ( file / ) >/dev/null 2>&1; then
5509    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5510    lt_cv_file_magic_cmd='func_win32_libid'
5511  else
5512    # Keep this pattern in sync with the one in func_win32_libid.
5513    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5514    lt_cv_file_magic_cmd='$OBJDUMP -f'
5515  fi
5516  ;;
5517
5518cegcc*)
5519  # use the weaker test based on 'objdump'. See mingw*.
5520  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5521  lt_cv_file_magic_cmd='$OBJDUMP -f'
5522  ;;
5523
5524darwin* | rhapsody*)
5525  lt_cv_deplibs_check_method=pass_all
5526  ;;
5527
5528freebsd* | dragonfly*)
5529  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5530    case $host_cpu in
5531    i*86 )
5532      # Not sure whether the presence of OpenBSD here was a mistake.
5533      # Let's accept both of them until this is cleared up.
5534      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5535      lt_cv_file_magic_cmd=/usr/bin/file
5536      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5537      ;;
5538    esac
5539  else
5540    lt_cv_deplibs_check_method=pass_all
5541  fi
5542  ;;
5543
5544haiku*)
5545  lt_cv_deplibs_check_method=pass_all
5546  ;;
5547
5548hpux10.20* | hpux11*)
5549  lt_cv_file_magic_cmd=/usr/bin/file
5550  case $host_cpu in
5551  ia64*)
5552    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5553    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5554    ;;
5555  hppa*64*)
5556    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]'
5557    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5558    ;;
5559  *)
5560    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5561    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5562    ;;
5563  esac
5564  ;;
5565
5566interix[3-9]*)
5567  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5568  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5569  ;;
5570
5571irix5* | irix6* | nonstopux*)
5572  case $LD in
5573  *-32|*"-32 ") libmagic=32-bit;;
5574  *-n32|*"-n32 ") libmagic=N32;;
5575  *-64|*"-64 ") libmagic=64-bit;;
5576  *) libmagic=never-match;;
5577  esac
5578  lt_cv_deplibs_check_method=pass_all
5579  ;;
5580
5581# This must be glibc/ELF.
5582linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5583  lt_cv_deplibs_check_method=pass_all
5584  ;;
5585
5586netbsd*)
5587  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5588    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5589  else
5590    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5591  fi
5592  ;;
5593
5594newos6*)
5595  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5596  lt_cv_file_magic_cmd=/usr/bin/file
5597  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5598  ;;
5599
5600*nto* | *qnx*)
5601  lt_cv_deplibs_check_method=pass_all
5602  ;;
5603
5604openbsd* | bitrig*)
5605  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5606    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5607  else
5608    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5609  fi
5610  ;;
5611
5612osf3* | osf4* | osf5*)
5613  lt_cv_deplibs_check_method=pass_all
5614  ;;
5615
5616rdos*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619
5620solaris*)
5621  lt_cv_deplibs_check_method=pass_all
5622  ;;
5623
5624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5625  lt_cv_deplibs_check_method=pass_all
5626  ;;
5627
5628sysv4 | sysv4.3*)
5629  case $host_vendor in
5630  motorola)
5631    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]'
5632    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5633    ;;
5634  ncr)
5635    lt_cv_deplibs_check_method=pass_all
5636    ;;
5637  sequent)
5638    lt_cv_file_magic_cmd='/bin/file'
5639    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5640    ;;
5641  sni)
5642    lt_cv_file_magic_cmd='/bin/file'
5643    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5644    lt_cv_file_magic_test_file=/lib/libc.so
5645    ;;
5646  siemens)
5647    lt_cv_deplibs_check_method=pass_all
5648    ;;
5649  pc)
5650    lt_cv_deplibs_check_method=pass_all
5651    ;;
5652  esac
5653  ;;
5654
5655tpf*)
5656  lt_cv_deplibs_check_method=pass_all
5657  ;;
5658os2*)
5659  lt_cv_deplibs_check_method=pass_all
5660  ;;
5661esac
5662
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5665$as_echo "$lt_cv_deplibs_check_method" >&6; }
5666
5667file_magic_glob=
5668want_nocaseglob=no
5669if test "$build" = "$host"; then
5670  case $host_os in
5671  mingw* | pw32*)
5672    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5673      want_nocaseglob=yes
5674    else
5675      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5676    fi
5677    ;;
5678  esac
5679fi
5680
5681file_magic_cmd=$lt_cv_file_magic_cmd
5682deplibs_check_method=$lt_cv_deplibs_check_method
5683test -z "$deplibs_check_method" && deplibs_check_method=unknown
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706if test -n "$ac_tool_prefix"; then
5707  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5708set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if ${ac_cv_prog_DLLTOOL+:} false; then :
5712  $as_echo_n "(cached) " >&6
5713else
5714  if test -n "$DLLTOOL"; then
5715  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720  IFS=$as_save_IFS
5721  test -z "$as_dir" && as_dir=.
5722    for ac_exec_ext in '' $ac_executable_extensions; do
5723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726    break 2
5727  fi
5728done
5729  done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734DLLTOOL=$ac_cv_prog_DLLTOOL
5735if test -n "$DLLTOOL"; then
5736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5737$as_echo "$DLLTOOL" >&6; }
5738else
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743
5744fi
5745if test -z "$ac_cv_prog_DLLTOOL"; then
5746  ac_ct_DLLTOOL=$DLLTOOL
5747  # Extract the first word of "dlltool", so it can be a program name with args.
5748set dummy dlltool; ac_word=$2
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750$as_echo_n "checking for $ac_word... " >&6; }
5751if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5752  $as_echo_n "(cached) " >&6
5753else
5754  if test -n "$ac_ct_DLLTOOL"; then
5755  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760  IFS=$as_save_IFS
5761  test -z "$as_dir" && as_dir=.
5762    for ac_exec_ext in '' $ac_executable_extensions; do
5763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766    break 2
5767  fi
5768done
5769  done
5770IFS=$as_save_IFS
5771
5772fi
5773fi
5774ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5775if test -n "$ac_ct_DLLTOOL"; then
5776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5777$as_echo "$ac_ct_DLLTOOL" >&6; }
5778else
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780$as_echo "no" >&6; }
5781fi
5782
5783  if test "x$ac_ct_DLLTOOL" = x; then
5784    DLLTOOL="false"
5785  else
5786    case $cross_compiling:$ac_tool_warned in
5787yes:)
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790ac_tool_warned=yes ;;
5791esac
5792    DLLTOOL=$ac_ct_DLLTOOL
5793  fi
5794else
5795  DLLTOOL="$ac_cv_prog_DLLTOOL"
5796fi
5797
5798test -z "$DLLTOOL" && DLLTOOL=dlltool
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5810$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5811if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5812  $as_echo_n "(cached) " >&6
5813else
5814  lt_cv_sharedlib_from_linklib_cmd='unknown'
5815
5816case $host_os in
5817cygwin* | mingw* | pw32* | cegcc*)
5818  # two different shell functions defined in ltmain.sh;
5819  # decide which one to use based on capabilities of $DLLTOOL
5820  case `$DLLTOOL --help 2>&1` in
5821  *--identify-strict*)
5822    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5823    ;;
5824  *)
5825    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5826    ;;
5827  esac
5828  ;;
5829*)
5830  # fallback: assume linklib IS sharedlib
5831  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5832  ;;
5833esac
5834
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5837$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5838sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5839test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5840
5841
5842
5843
5844
5845
5846
5847
5848if test -n "$ac_tool_prefix"; then
5849  for ac_prog in ar
5850  do
5851    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if ${ac_cv_prog_AR+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if test -n "$AR"; then
5859  ac_cv_prog_AR="$AR" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  test -z "$as_dir" && as_dir=.
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878AR=$ac_cv_prog_AR
5879if test -n "$AR"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5881$as_echo "$AR" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887
5888    test -n "$AR" && break
5889  done
5890fi
5891if test -z "$AR"; then
5892  ac_ct_AR=$AR
5893  for ac_prog in ar
5894do
5895  # Extract the first word of "$ac_prog", so it can be a program name with args.
5896set dummy $ac_prog; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
5899if ${ac_cv_prog_ac_ct_AR+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  if test -n "$ac_ct_AR"; then
5903  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910    for ac_exec_ext in '' $ac_executable_extensions; do
5911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912    ac_cv_prog_ac_ct_AR="$ac_prog"
5913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914    break 2
5915  fi
5916done
5917  done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_AR=$ac_cv_prog_ac_ct_AR
5923if test -n "$ac_ct_AR"; then
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5925$as_echo "$ac_ct_AR" >&6; }
5926else
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931
5932  test -n "$ac_ct_AR" && break
5933done
5934
5935  if test "x$ac_ct_AR" = x; then
5936    AR="false"
5937  else
5938    case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942ac_tool_warned=yes ;;
5943esac
5944    AR=$ac_ct_AR
5945  fi
5946fi
5947
5948: ${AR=ar}
5949: ${AR_FLAGS=cru}
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5962$as_echo_n "checking for archiver @FILE support... " >&6; }
5963if ${lt_cv_ar_at_file+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  lt_cv_ar_at_file=no
5967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969
5970int
5971main ()
5972{
5973
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_compile "$LINENO"; then :
5979  echo conftest.$ac_objext > conftest.lst
5980      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5981      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5982  (eval $lt_ar_try) 2>&5
5983  ac_status=$?
5984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985  test $ac_status = 0; }
5986      if test 0 -eq "$ac_status"; then
5987	# Ensure the archiver fails upon bogus file names.
5988	rm -f conftest.$ac_objext libconftest.a
5989	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5990  (eval $lt_ar_try) 2>&5
5991  ac_status=$?
5992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993  test $ac_status = 0; }
5994	if test 0 -ne "$ac_status"; then
5995          lt_cv_ar_at_file=@
5996        fi
5997      fi
5998      rm -f conftest.* libconftest.a
5999
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6005$as_echo "$lt_cv_ar_at_file" >&6; }
6006
6007if test no = "$lt_cv_ar_at_file"; then
6008  archiver_list_spec=
6009else
6010  archiver_list_spec=$lt_cv_ar_at_file
6011fi
6012
6013
6014
6015
6016
6017
6018
6019if test -n "$ac_tool_prefix"; then
6020  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6021set dummy ${ac_tool_prefix}strip; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
6024if ${ac_cv_prog_STRIP+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  if test -n "$STRIP"; then
6028  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033  IFS=$as_save_IFS
6034  test -z "$as_dir" && as_dir=.
6035    for ac_exec_ext in '' $ac_executable_extensions; do
6036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039    break 2
6040  fi
6041done
6042  done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047STRIP=$ac_cv_prog_STRIP
6048if test -n "$STRIP"; then
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6050$as_echo "$STRIP" >&6; }
6051else
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056
6057fi
6058if test -z "$ac_cv_prog_STRIP"; then
6059  ac_ct_STRIP=$STRIP
6060  # Extract the first word of "strip", so it can be a program name with args.
6061set dummy strip; ac_word=$2
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063$as_echo_n "checking for $ac_word... " >&6; }
6064if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  if test -n "$ac_ct_STRIP"; then
6068  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073  IFS=$as_save_IFS
6074  test -z "$as_dir" && as_dir=.
6075    for ac_exec_ext in '' $ac_executable_extensions; do
6076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077    ac_cv_prog_ac_ct_STRIP="strip"
6078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079    break 2
6080  fi
6081done
6082  done
6083IFS=$as_save_IFS
6084
6085fi
6086fi
6087ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6088if test -n "$ac_ct_STRIP"; then
6089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6090$as_echo "$ac_ct_STRIP" >&6; }
6091else
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093$as_echo "no" >&6; }
6094fi
6095
6096  if test "x$ac_ct_STRIP" = x; then
6097    STRIP=":"
6098  else
6099    case $cross_compiling:$ac_tool_warned in
6100yes:)
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103ac_tool_warned=yes ;;
6104esac
6105    STRIP=$ac_ct_STRIP
6106  fi
6107else
6108  STRIP="$ac_cv_prog_STRIP"
6109fi
6110
6111test -z "$STRIP" && STRIP=:
6112
6113
6114
6115
6116
6117
6118if test -n "$ac_tool_prefix"; then
6119  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6120set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if ${ac_cv_prog_RANLIB+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  if test -n "$RANLIB"; then
6127  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134    for ac_exec_ext in '' $ac_executable_extensions; do
6135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138    break 2
6139  fi
6140done
6141  done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146RANLIB=$ac_cv_prog_RANLIB
6147if test -n "$RANLIB"; then
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6149$as_echo "$RANLIB" >&6; }
6150else
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
6153fi
6154
6155
6156fi
6157if test -z "$ac_cv_prog_RANLIB"; then
6158  ac_ct_RANLIB=$RANLIB
6159  # Extract the first word of "ranlib", so it can be a program name with args.
6160set dummy ranlib; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  if test -n "$ac_ct_RANLIB"; then
6167  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  test -z "$as_dir" && as_dir=.
6174    for ac_exec_ext in '' $ac_executable_extensions; do
6175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176    ac_cv_prog_ac_ct_RANLIB="ranlib"
6177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181  done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6187if test -n "$ac_ct_RANLIB"; then
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6189$as_echo "$ac_ct_RANLIB" >&6; }
6190else
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195  if test "x$ac_ct_RANLIB" = x; then
6196    RANLIB=":"
6197  else
6198    case $cross_compiling:$ac_tool_warned in
6199yes:)
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202ac_tool_warned=yes ;;
6203esac
6204    RANLIB=$ac_ct_RANLIB
6205  fi
6206else
6207  RANLIB="$ac_cv_prog_RANLIB"
6208fi
6209
6210test -z "$RANLIB" && RANLIB=:
6211
6212
6213
6214
6215
6216
6217# Determine commands to create old-style static archives.
6218old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6219old_postinstall_cmds='chmod 644 $oldlib'
6220old_postuninstall_cmds=
6221
6222if test -n "$RANLIB"; then
6223  case $host_os in
6224  bitrig* | openbsd*)
6225    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6226    ;;
6227  *)
6228    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6229    ;;
6230  esac
6231  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6232fi
6233
6234case $host_os in
6235  darwin*)
6236    lock_old_archive_extraction=yes ;;
6237  *)
6238    lock_old_archive_extraction=no ;;
6239esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279# If no C compiler was specified, use CC.
6280LTCC=${LTCC-"$CC"}
6281
6282# If no C compiler flags were specified, use CFLAGS.
6283LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6284
6285# Allow CC to be a program name with arguments.
6286compiler=$CC
6287
6288
6289# Check for command to grab the raw symbol name followed by C symbol from nm.
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6291$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6292if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6293  $as_echo_n "(cached) " >&6
6294else
6295
6296# These are sane defaults that work on at least a few old systems.
6297# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6298
6299# Character class describing NM global symbol codes.
6300symcode='[BCDEGRST]'
6301
6302# Regexp to match symbols that can be accessed directly from C.
6303sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6304
6305# Define system-specific variables.
6306case $host_os in
6307aix*)
6308  symcode='[BCDT]'
6309  ;;
6310cygwin* | mingw* | pw32* | cegcc*)
6311  symcode='[ABCDGISTW]'
6312  ;;
6313hpux*)
6314  if test ia64 = "$host_cpu"; then
6315    symcode='[ABCDEGRST]'
6316  fi
6317  ;;
6318irix* | nonstopux*)
6319  symcode='[BCDEGRST]'
6320  ;;
6321osf*)
6322  symcode='[BCDEGQRST]'
6323  ;;
6324solaris*)
6325  symcode='[BDRT]'
6326  ;;
6327sco3.2v5*)
6328  symcode='[DT]'
6329  ;;
6330sysv4.2uw2*)
6331  symcode='[DT]'
6332  ;;
6333sysv5* | sco5v6* | unixware* | OpenUNIX*)
6334  symcode='[ABDT]'
6335  ;;
6336sysv4)
6337  symcode='[DFNSTU]'
6338  ;;
6339esac
6340
6341# If we're using GNU nm, then use its standard symbol codes.
6342case `$NM -V 2>&1` in
6343*GNU* | *'with BFD'*)
6344  symcode='[ABCDGIRSTW]' ;;
6345esac
6346
6347if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6348  # Gets list of data symbols to import.
6349  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6350  # Adjust the below global symbol transforms to fixup imported variables.
6351  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6352  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6353  lt_c_name_lib_hook="\
6354  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6355  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6356else
6357  # Disable hooks by default.
6358  lt_cv_sys_global_symbol_to_import=
6359  lt_cdecl_hook=
6360  lt_c_name_hook=
6361  lt_c_name_lib_hook=
6362fi
6363
6364# Transform an extracted symbol line into a proper C declaration.
6365# Some systems (esp. on ia64) link data and code symbols differently,
6366# so use this general approach.
6367lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6368$lt_cdecl_hook\
6369" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6370" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6371
6372# Transform an extracted symbol line into symbol name and symbol address
6373lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6374$lt_c_name_hook\
6375" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6376" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6377
6378# Transform an extracted symbol line into symbol name with lib prefix and
6379# symbol address.
6380lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6381$lt_c_name_lib_hook\
6382" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6383" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6384" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6385
6386# Handle CRLF in mingw tool chain
6387opt_cr=
6388case $build_os in
6389mingw*)
6390  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6391  ;;
6392esac
6393
6394# Try without a prefix underscore, then with it.
6395for ac_symprfx in "" "_"; do
6396
6397  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6398  symxfrm="\\1 $ac_symprfx\\2 \\2"
6399
6400  # Write the raw and C identifiers.
6401  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6402    # Fake it for dumpbin and say T for any non-static function,
6403    # D for any global variable and I for any imported variable.
6404    # Also find C++ and __fastcall symbols from MSVC++,
6405    # which start with @ or ?.
6406    lt_cv_sys_global_symbol_pipe="$AWK '"\
6407"     {last_section=section; section=\$ 3};"\
6408"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6409"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6410"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6411"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6412"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6413"     \$ 0!~/External *\|/{next};"\
6414"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6415"     {if(hide[section]) next};"\
6416"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6417"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6418"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6419"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6420"     ' prfx=^$ac_symprfx"
6421  else
6422    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6423  fi
6424  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6425
6426  # Check to see that the pipe works correctly.
6427  pipe_works=no
6428
6429  rm -f conftest*
6430  cat > conftest.$ac_ext <<_LT_EOF
6431#ifdef __cplusplus
6432extern "C" {
6433#endif
6434char nm_test_var;
6435void nm_test_func(void);
6436void nm_test_func(void){}
6437#ifdef __cplusplus
6438}
6439#endif
6440int main(){nm_test_var='a';nm_test_func();return(0);}
6441_LT_EOF
6442
6443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444  (eval $ac_compile) 2>&5
6445  ac_status=$?
6446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447  test $ac_status = 0; }; then
6448    # Now try to grab the symbols.
6449    nlist=conftest.nm
6450    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6451  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6452  ac_status=$?
6453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454  test $ac_status = 0; } && test -s "$nlist"; then
6455      # Try sorting and uniquifying the output.
6456      if sort "$nlist" | uniq > "$nlist"T; then
6457	mv -f "$nlist"T "$nlist"
6458      else
6459	rm -f "$nlist"T
6460      fi
6461
6462      # Make sure that we snagged all the symbols we need.
6463      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6464	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6465	  cat <<_LT_EOF > conftest.$ac_ext
6466/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6467#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6468/* DATA imports from DLLs on WIN32 can't be const, because runtime
6469   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6470# define LT_DLSYM_CONST
6471#elif defined __osf__
6472/* This system does not cope well with relocations in const data.  */
6473# define LT_DLSYM_CONST
6474#else
6475# define LT_DLSYM_CONST const
6476#endif
6477
6478#ifdef __cplusplus
6479extern "C" {
6480#endif
6481
6482_LT_EOF
6483	  # Now generate the symbol file.
6484	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6485
6486	  cat <<_LT_EOF >> conftest.$ac_ext
6487
6488/* The mapping between symbol names and symbols.  */
6489LT_DLSYM_CONST struct {
6490  const char *name;
6491  void       *address;
6492}
6493lt__PROGRAM__LTX_preloaded_symbols[] =
6494{
6495  { "@PROGRAM@", (void *) 0 },
6496_LT_EOF
6497	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6498	  cat <<\_LT_EOF >> conftest.$ac_ext
6499  {0, (void *) 0}
6500};
6501
6502/* This works around a problem in FreeBSD linker */
6503#ifdef FREEBSD_WORKAROUND
6504static const void *lt_preloaded_setup() {
6505  return lt__PROGRAM__LTX_preloaded_symbols;
6506}
6507#endif
6508
6509#ifdef __cplusplus
6510}
6511#endif
6512_LT_EOF
6513	  # Now try linking the two files.
6514	  mv conftest.$ac_objext conftstm.$ac_objext
6515	  lt_globsym_save_LIBS=$LIBS
6516	  lt_globsym_save_CFLAGS=$CFLAGS
6517	  LIBS=conftstm.$ac_objext
6518	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6519	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6520  (eval $ac_link) 2>&5
6521  ac_status=$?
6522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6524	    pipe_works=yes
6525	  fi
6526	  LIBS=$lt_globsym_save_LIBS
6527	  CFLAGS=$lt_globsym_save_CFLAGS
6528	else
6529	  echo "cannot find nm_test_func in $nlist" >&5
6530	fi
6531      else
6532	echo "cannot find nm_test_var in $nlist" >&5
6533      fi
6534    else
6535      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6536    fi
6537  else
6538    echo "$progname: failed program was:" >&5
6539    cat conftest.$ac_ext >&5
6540  fi
6541  rm -rf conftest* conftst*
6542
6543  # Do not use the global_symbol_pipe unless it works.
6544  if test yes = "$pipe_works"; then
6545    break
6546  else
6547    lt_cv_sys_global_symbol_pipe=
6548  fi
6549done
6550
6551fi
6552
6553if test -z "$lt_cv_sys_global_symbol_pipe"; then
6554  lt_cv_sys_global_symbol_to_cdecl=
6555fi
6556if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6558$as_echo "failed" >&6; }
6559else
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6561$as_echo "ok" >&6; }
6562fi
6563
6564# Response file support.
6565if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6566  nm_file_list_spec='@'
6567elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6568  nm_file_list_spec='@'
6569fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6608$as_echo_n "checking for sysroot... " >&6; }
6609
6610# Check whether --with-sysroot was given.
6611if test "${with_sysroot+set}" = set; then :
6612  withval=$with_sysroot;
6613else
6614  with_sysroot=no
6615fi
6616
6617
6618lt_sysroot=
6619case $with_sysroot in #(
6620 yes)
6621   if test yes = "$GCC"; then
6622     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6623   fi
6624   ;; #(
6625 /*)
6626   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6627   ;; #(
6628 no|'')
6629   ;; #(
6630 *)
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6632$as_echo "$with_sysroot" >&6; }
6633   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6634   ;;
6635esac
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6638$as_echo "${lt_sysroot:-no}" >&6; }
6639
6640
6641
6642
6643
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6645$as_echo_n "checking for a working dd... " >&6; }
6646if ${ac_cv_path_lt_DD+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  printf 0123456789abcdef0123456789abcdef >conftest.i
6650cat conftest.i conftest.i >conftest2.i
6651: ${lt_DD:=$DD}
6652if test -z "$lt_DD"; then
6653  ac_path_lt_DD_found=false
6654  # Loop through the user's path and test for each of PROGNAME-LIST
6655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_prog in dd; do
6661    for ac_exec_ext in '' $ac_executable_extensions; do
6662      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6663      as_fn_executable_p "$ac_path_lt_DD" || continue
6664if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6665  cmp -s conftest.i conftest.out \
6666  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6667fi
6668      $ac_path_lt_DD_found && break 3
6669    done
6670  done
6671  done
6672IFS=$as_save_IFS
6673  if test -z "$ac_cv_path_lt_DD"; then
6674    :
6675  fi
6676else
6677  ac_cv_path_lt_DD=$lt_DD
6678fi
6679
6680rm -f conftest.i conftest2.i conftest.out
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6683$as_echo "$ac_cv_path_lt_DD" >&6; }
6684
6685
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6687$as_echo_n "checking how to truncate binary pipes... " >&6; }
6688if ${lt_cv_truncate_bin+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  printf 0123456789abcdef0123456789abcdef >conftest.i
6692cat conftest.i conftest.i >conftest2.i
6693lt_cv_truncate_bin=
6694if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6695  cmp -s conftest.i conftest.out \
6696  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6697fi
6698rm -f conftest.i conftest2.i conftest.out
6699test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6702$as_echo "$lt_cv_truncate_bin" >&6; }
6703
6704
6705
6706
6707
6708
6709
6710# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6711func_cc_basename ()
6712{
6713    for cc_temp in $*""; do
6714      case $cc_temp in
6715        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6716        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6717        \-*) ;;
6718        *) break;;
6719      esac
6720    done
6721    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6722}
6723
6724# Check whether --enable-libtool-lock was given.
6725if test "${enable_libtool_lock+set}" = set; then :
6726  enableval=$enable_libtool_lock;
6727fi
6728
6729test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6730
6731# Some flags need to be propagated to the compiler or linker for good
6732# libtool support.
6733case $host in
6734ia64-*-hpux*)
6735  # Find out what ABI is being produced by ac_compile, and set mode
6736  # options accordingly.
6737  echo 'int i;' > conftest.$ac_ext
6738  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739  (eval $ac_compile) 2>&5
6740  ac_status=$?
6741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742  test $ac_status = 0; }; then
6743    case `/usr/bin/file conftest.$ac_objext` in
6744      *ELF-32*)
6745	HPUX_IA64_MODE=32
6746	;;
6747      *ELF-64*)
6748	HPUX_IA64_MODE=64
6749	;;
6750    esac
6751  fi
6752  rm -rf conftest*
6753  ;;
6754*-*-irix6*)
6755  # Find out what ABI is being produced by ac_compile, and set linker
6756  # options accordingly.
6757  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6758  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6759  (eval $ac_compile) 2>&5
6760  ac_status=$?
6761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762  test $ac_status = 0; }; then
6763    if test yes = "$lt_cv_prog_gnu_ld"; then
6764      case `/usr/bin/file conftest.$ac_objext` in
6765	*32-bit*)
6766	  LD="${LD-ld} -melf32bsmip"
6767	  ;;
6768	*N32*)
6769	  LD="${LD-ld} -melf32bmipn32"
6770	  ;;
6771	*64-bit*)
6772	  LD="${LD-ld} -melf64bmip"
6773	;;
6774      esac
6775    else
6776      case `/usr/bin/file conftest.$ac_objext` in
6777	*32-bit*)
6778	  LD="${LD-ld} -32"
6779	  ;;
6780	*N32*)
6781	  LD="${LD-ld} -n32"
6782	  ;;
6783	*64-bit*)
6784	  LD="${LD-ld} -64"
6785	  ;;
6786      esac
6787    fi
6788  fi
6789  rm -rf conftest*
6790  ;;
6791
6792mips64*-*linux*)
6793  # Find out what ABI is being produced by ac_compile, and set linker
6794  # options accordingly.
6795  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6796  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797  (eval $ac_compile) 2>&5
6798  ac_status=$?
6799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800  test $ac_status = 0; }; then
6801    emul=elf
6802    case `/usr/bin/file conftest.$ac_objext` in
6803      *32-bit*)
6804	emul="${emul}32"
6805	;;
6806      *64-bit*)
6807	emul="${emul}64"
6808	;;
6809    esac
6810    case `/usr/bin/file conftest.$ac_objext` in
6811      *MSB*)
6812	emul="${emul}btsmip"
6813	;;
6814      *LSB*)
6815	emul="${emul}ltsmip"
6816	;;
6817    esac
6818    case `/usr/bin/file conftest.$ac_objext` in
6819      *N32*)
6820	emul="${emul}n32"
6821	;;
6822    esac
6823    LD="${LD-ld} -m $emul"
6824  fi
6825  rm -rf conftest*
6826  ;;
6827
6828x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6829s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6830  # Find out what ABI is being produced by ac_compile, and set linker
6831  # options accordingly.  Note that the listed cases only cover the
6832  # situations where additional linker options are needed (such as when
6833  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6834  # vice versa); the common cases where no linker options are needed do
6835  # not appear in the list.
6836  echo 'int i;' > conftest.$ac_ext
6837  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6838  (eval $ac_compile) 2>&5
6839  ac_status=$?
6840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841  test $ac_status = 0; }; then
6842    case `/usr/bin/file conftest.o` in
6843      *32-bit*)
6844	case $host in
6845	  x86_64-*kfreebsd*-gnu)
6846	    LD="${LD-ld} -m elf_i386_fbsd"
6847	    ;;
6848	  x86_64-*linux*)
6849	    case `/usr/bin/file conftest.o` in
6850	      *x86-64*)
6851		LD="${LD-ld} -m elf32_x86_64"
6852		;;
6853	      *)
6854		LD="${LD-ld} -m elf_i386"
6855		;;
6856	    esac
6857	    ;;
6858	  powerpc64le-*linux*)
6859	    LD="${LD-ld} -m elf32lppclinux"
6860	    ;;
6861	  powerpc64-*linux*)
6862	    LD="${LD-ld} -m elf32ppclinux"
6863	    ;;
6864	  s390x-*linux*)
6865	    LD="${LD-ld} -m elf_s390"
6866	    ;;
6867	  sparc64-*linux*)
6868	    LD="${LD-ld} -m elf32_sparc"
6869	    ;;
6870	esac
6871	;;
6872      *64-bit*)
6873	case $host in
6874	  x86_64-*kfreebsd*-gnu)
6875	    LD="${LD-ld} -m elf_x86_64_fbsd"
6876	    ;;
6877	  x86_64-*linux*)
6878	    LD="${LD-ld} -m elf_x86_64"
6879	    ;;
6880	  powerpcle-*linux*)
6881	    LD="${LD-ld} -m elf64lppc"
6882	    ;;
6883	  powerpc-*linux*)
6884	    LD="${LD-ld} -m elf64ppc"
6885	    ;;
6886	  s390*-*linux*|s390*-*tpf*)
6887	    LD="${LD-ld} -m elf64_s390"
6888	    ;;
6889	  sparc*-*linux*)
6890	    LD="${LD-ld} -m elf64_sparc"
6891	    ;;
6892	esac
6893	;;
6894    esac
6895  fi
6896  rm -rf conftest*
6897  ;;
6898
6899*-*-sco3.2v5*)
6900  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6901  SAVE_CFLAGS=$CFLAGS
6902  CFLAGS="$CFLAGS -belf"
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6904$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6905if ${lt_cv_cc_needs_belf+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  ac_ext=c
6909ac_cpp='$CPP $CPPFLAGS'
6910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913
6914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h.  */
6916
6917int
6918main ()
6919{
6920
6921  ;
6922  return 0;
6923}
6924_ACEOF
6925if ac_fn_c_try_link "$LINENO"; then :
6926  lt_cv_cc_needs_belf=yes
6927else
6928  lt_cv_cc_needs_belf=no
6929fi
6930rm -f core conftest.err conftest.$ac_objext \
6931    conftest$ac_exeext conftest.$ac_ext
6932     ac_ext=c
6933ac_cpp='$CPP $CPPFLAGS'
6934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936ac_compiler_gnu=$ac_cv_c_compiler_gnu
6937
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6940$as_echo "$lt_cv_cc_needs_belf" >&6; }
6941  if test yes != "$lt_cv_cc_needs_belf"; then
6942    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6943    CFLAGS=$SAVE_CFLAGS
6944  fi
6945  ;;
6946*-*solaris*)
6947  # Find out what ABI is being produced by ac_compile, and set linker
6948  # options accordingly.
6949  echo 'int i;' > conftest.$ac_ext
6950  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951  (eval $ac_compile) 2>&5
6952  ac_status=$?
6953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954  test $ac_status = 0; }; then
6955    case `/usr/bin/file conftest.o` in
6956    *64-bit*)
6957      case $lt_cv_prog_gnu_ld in
6958      yes*)
6959        case $host in
6960        i?86-*-solaris*|x86_64-*-solaris*)
6961          LD="${LD-ld} -m elf_x86_64"
6962          ;;
6963        sparc*-*-solaris*)
6964          LD="${LD-ld} -m elf64_sparc"
6965          ;;
6966        esac
6967        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6968        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6969          LD=${LD-ld}_sol2
6970        fi
6971        ;;
6972      *)
6973	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6974	  LD="${LD-ld} -64"
6975	fi
6976	;;
6977      esac
6978      ;;
6979    esac
6980  fi
6981  rm -rf conftest*
6982  ;;
6983esac
6984
6985need_locks=$enable_libtool_lock
6986
6987if test -n "$ac_tool_prefix"; then
6988  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}mt; ac_word=$2
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  if test -n "$MANIFEST_TOOL"; then
6996  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  test -z "$as_dir" && as_dir=.
7003    for ac_exec_ext in '' $ac_executable_extensions; do
7004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007    break 2
7008  fi
7009done
7010  done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7016if test -n "$MANIFEST_TOOL"; then
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7018$as_echo "$MANIFEST_TOOL" >&6; }
7019else
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7027  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7028  # Extract the first word of "mt", so it can be a program name with args.
7029set dummy mt; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  if test -n "$ac_ct_MANIFEST_TOOL"; then
7036  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041  IFS=$as_save_IFS
7042  test -z "$as_dir" && as_dir=.
7043    for ac_exec_ext in '' $ac_executable_extensions; do
7044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047    break 2
7048  fi
7049done
7050  done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7056if test -n "$ac_ct_MANIFEST_TOOL"; then
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7058$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7059else
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7065    MANIFEST_TOOL=":"
7066  else
7067    case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7074  fi
7075else
7076  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7077fi
7078
7079test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7081$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7082if ${lt_cv_path_mainfest_tool+:} false; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  lt_cv_path_mainfest_tool=no
7086  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7087  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7088  cat conftest.err >&5
7089  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7090    lt_cv_path_mainfest_tool=yes
7091  fi
7092  rm -f conftest*
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7095$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7096if test yes != "$lt_cv_path_mainfest_tool"; then
7097  MANIFEST_TOOL=:
7098fi
7099
7100
7101
7102
7103
7104
7105  case $host_os in
7106    rhapsody* | darwin*)
7107    if test -n "$ac_tool_prefix"; then
7108  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7109set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if ${ac_cv_prog_DSYMUTIL+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  if test -n "$DSYMUTIL"; then
7116  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121  IFS=$as_save_IFS
7122  test -z "$as_dir" && as_dir=.
7123    for ac_exec_ext in '' $ac_executable_extensions; do
7124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130  done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135DSYMUTIL=$ac_cv_prog_DSYMUTIL
7136if test -n "$DSYMUTIL"; then
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7138$as_echo "$DSYMUTIL" >&6; }
7139else
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144
7145fi
7146if test -z "$ac_cv_prog_DSYMUTIL"; then
7147  ac_ct_DSYMUTIL=$DSYMUTIL
7148  # Extract the first word of "dsymutil", so it can be a program name with args.
7149set dummy dsymutil; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  if test -n "$ac_ct_DSYMUTIL"; then
7156  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161  IFS=$as_save_IFS
7162  test -z "$as_dir" && as_dir=.
7163    for ac_exec_ext in '' $ac_executable_extensions; do
7164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167    break 2
7168  fi
7169done
7170  done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7176if test -n "$ac_ct_DSYMUTIL"; then
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7178$as_echo "$ac_ct_DSYMUTIL" >&6; }
7179else
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184  if test "x$ac_ct_DSYMUTIL" = x; then
7185    DSYMUTIL=":"
7186  else
7187    case $cross_compiling:$ac_tool_warned in
7188yes:)
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191ac_tool_warned=yes ;;
7192esac
7193    DSYMUTIL=$ac_ct_DSYMUTIL
7194  fi
7195else
7196  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7197fi
7198
7199    if test -n "$ac_tool_prefix"; then
7200  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7201set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203$as_echo_n "checking for $ac_word... " >&6; }
7204if ${ac_cv_prog_NMEDIT+:} false; then :
7205  $as_echo_n "(cached) " >&6
7206else
7207  if test -n "$NMEDIT"; then
7208  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213  IFS=$as_save_IFS
7214  test -z "$as_dir" && as_dir=.
7215    for ac_exec_ext in '' $ac_executable_extensions; do
7216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219    break 2
7220  fi
7221done
7222  done
7223IFS=$as_save_IFS
7224
7225fi
7226fi
7227NMEDIT=$ac_cv_prog_NMEDIT
7228if test -n "$NMEDIT"; then
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7230$as_echo "$NMEDIT" >&6; }
7231else
7232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234fi
7235
7236
7237fi
7238if test -z "$ac_cv_prog_NMEDIT"; then
7239  ac_ct_NMEDIT=$NMEDIT
7240  # Extract the first word of "nmedit", so it can be a program name with args.
7241set dummy nmedit; ac_word=$2
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243$as_echo_n "checking for $ac_word... " >&6; }
7244if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  if test -n "$ac_ct_NMEDIT"; then
7248  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253  IFS=$as_save_IFS
7254  test -z "$as_dir" && as_dir=.
7255    for ac_exec_ext in '' $ac_executable_extensions; do
7256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259    break 2
7260  fi
7261done
7262  done
7263IFS=$as_save_IFS
7264
7265fi
7266fi
7267ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7268if test -n "$ac_ct_NMEDIT"; then
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7270$as_echo "$ac_ct_NMEDIT" >&6; }
7271else
7272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273$as_echo "no" >&6; }
7274fi
7275
7276  if test "x$ac_ct_NMEDIT" = x; then
7277    NMEDIT=":"
7278  else
7279    case $cross_compiling:$ac_tool_warned in
7280yes:)
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283ac_tool_warned=yes ;;
7284esac
7285    NMEDIT=$ac_ct_NMEDIT
7286  fi
7287else
7288  NMEDIT="$ac_cv_prog_NMEDIT"
7289fi
7290
7291    if test -n "$ac_tool_prefix"; then
7292  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7293set dummy ${ac_tool_prefix}lipo; ac_word=$2
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
7296if ${ac_cv_prog_LIPO+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  if test -n "$LIPO"; then
7300  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305  IFS=$as_save_IFS
7306  test -z "$as_dir" && as_dir=.
7307    for ac_exec_ext in '' $ac_executable_extensions; do
7308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311    break 2
7312  fi
7313done
7314  done
7315IFS=$as_save_IFS
7316
7317fi
7318fi
7319LIPO=$ac_cv_prog_LIPO
7320if test -n "$LIPO"; then
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7322$as_echo "$LIPO" >&6; }
7323else
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328
7329fi
7330if test -z "$ac_cv_prog_LIPO"; then
7331  ac_ct_LIPO=$LIPO
7332  # Extract the first word of "lipo", so it can be a program name with args.
7333set dummy lipo; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  if test -n "$ac_ct_LIPO"; then
7340  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347    for ac_exec_ext in '' $ac_executable_extensions; do
7348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349    ac_cv_prog_ac_ct_LIPO="lipo"
7350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354  done
7355IFS=$as_save_IFS
7356
7357fi
7358fi
7359ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7360if test -n "$ac_ct_LIPO"; then
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7362$as_echo "$ac_ct_LIPO" >&6; }
7363else
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368  if test "x$ac_ct_LIPO" = x; then
7369    LIPO=":"
7370  else
7371    case $cross_compiling:$ac_tool_warned in
7372yes:)
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375ac_tool_warned=yes ;;
7376esac
7377    LIPO=$ac_ct_LIPO
7378  fi
7379else
7380  LIPO="$ac_cv_prog_LIPO"
7381fi
7382
7383    if test -n "$ac_tool_prefix"; then
7384  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7385set dummy ${ac_tool_prefix}otool; ac_word=$2
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387$as_echo_n "checking for $ac_word... " >&6; }
7388if ${ac_cv_prog_OTOOL+:} false; then :
7389  $as_echo_n "(cached) " >&6
7390else
7391  if test -n "$OTOOL"; then
7392  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399    for ac_exec_ext in '' $ac_executable_extensions; do
7400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406  done
7407IFS=$as_save_IFS
7408
7409fi
7410fi
7411OTOOL=$ac_cv_prog_OTOOL
7412if test -n "$OTOOL"; then
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7414$as_echo "$OTOOL" >&6; }
7415else
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420
7421fi
7422if test -z "$ac_cv_prog_OTOOL"; then
7423  ac_ct_OTOOL=$OTOOL
7424  # Extract the first word of "otool", so it can be a program name with args.
7425set dummy otool; ac_word=$2
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427$as_echo_n "checking for $ac_word... " >&6; }
7428if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7429  $as_echo_n "(cached) " >&6
7430else
7431  if test -n "$ac_ct_OTOOL"; then
7432  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439    for ac_exec_ext in '' $ac_executable_extensions; do
7440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441    ac_cv_prog_ac_ct_OTOOL="otool"
7442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443    break 2
7444  fi
7445done
7446  done
7447IFS=$as_save_IFS
7448
7449fi
7450fi
7451ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7452if test -n "$ac_ct_OTOOL"; then
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7454$as_echo "$ac_ct_OTOOL" >&6; }
7455else
7456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457$as_echo "no" >&6; }
7458fi
7459
7460  if test "x$ac_ct_OTOOL" = x; then
7461    OTOOL=":"
7462  else
7463    case $cross_compiling:$ac_tool_warned in
7464yes:)
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467ac_tool_warned=yes ;;
7468esac
7469    OTOOL=$ac_ct_OTOOL
7470  fi
7471else
7472  OTOOL="$ac_cv_prog_OTOOL"
7473fi
7474
7475    if test -n "$ac_tool_prefix"; then
7476  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7477set dummy ${ac_tool_prefix}otool64; ac_word=$2
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479$as_echo_n "checking for $ac_word... " >&6; }
7480if ${ac_cv_prog_OTOOL64+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  if test -n "$OTOOL64"; then
7484  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  test -z "$as_dir" && as_dir=.
7491    for ac_exec_ext in '' $ac_executable_extensions; do
7492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498  done
7499IFS=$as_save_IFS
7500
7501fi
7502fi
7503OTOOL64=$ac_cv_prog_OTOOL64
7504if test -n "$OTOOL64"; then
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7506$as_echo "$OTOOL64" >&6; }
7507else
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
7510fi
7511
7512
7513fi
7514if test -z "$ac_cv_prog_OTOOL64"; then
7515  ac_ct_OTOOL64=$OTOOL64
7516  # Extract the first word of "otool64", so it can be a program name with args.
7517set dummy otool64; ac_word=$2
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519$as_echo_n "checking for $ac_word... " >&6; }
7520if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523  if test -n "$ac_ct_OTOOL64"; then
7524  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7525else
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529  IFS=$as_save_IFS
7530  test -z "$as_dir" && as_dir=.
7531    for ac_exec_ext in '' $ac_executable_extensions; do
7532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533    ac_cv_prog_ac_ct_OTOOL64="otool64"
7534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535    break 2
7536  fi
7537done
7538  done
7539IFS=$as_save_IFS
7540
7541fi
7542fi
7543ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7544if test -n "$ac_ct_OTOOL64"; then
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7546$as_echo "$ac_ct_OTOOL64" >&6; }
7547else
7548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549$as_echo "no" >&6; }
7550fi
7551
7552  if test "x$ac_ct_OTOOL64" = x; then
7553    OTOOL64=":"
7554  else
7555    case $cross_compiling:$ac_tool_warned in
7556yes:)
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559ac_tool_warned=yes ;;
7560esac
7561    OTOOL64=$ac_ct_OTOOL64
7562  fi
7563else
7564  OTOOL64="$ac_cv_prog_OTOOL64"
7565fi
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7594$as_echo_n "checking for -single_module linker flag... " >&6; }
7595if ${lt_cv_apple_cc_single_mod+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  lt_cv_apple_cc_single_mod=no
7599      if test -z "$LT_MULTI_MODULE"; then
7600	# By default we will add the -single_module flag. You can override
7601	# by either setting the environment variable LT_MULTI_MODULE
7602	# non-empty at configure time, or by adding -multi_module to the
7603	# link flags.
7604	rm -rf libconftest.dylib*
7605	echo "int foo(void){return 1;}" > conftest.c
7606	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607-dynamiclib -Wl,-single_module conftest.c" >&5
7608	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7610        _lt_result=$?
7611	# If there is a non-empty error log, and "single_module"
7612	# appears in it, assume the flag caused a linker warning
7613        if test -s conftest.err && $GREP single_module conftest.err; then
7614	  cat conftest.err >&5
7615	# Otherwise, if the output was created with a 0 exit code from
7616	# the compiler, it worked.
7617	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7618	  lt_cv_apple_cc_single_mod=yes
7619	else
7620	  cat conftest.err >&5
7621	fi
7622	rm -rf libconftest.dylib*
7623	rm -f conftest.*
7624      fi
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7627$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7628
7629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7630$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7631if ${lt_cv_ld_exported_symbols_list+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  lt_cv_ld_exported_symbols_list=no
7635      save_LDFLAGS=$LDFLAGS
7636      echo "_main" > conftest.sym
7637      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7638      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640
7641int
7642main ()
7643{
7644
7645  ;
7646  return 0;
7647}
7648_ACEOF
7649if ac_fn_c_try_link "$LINENO"; then :
7650  lt_cv_ld_exported_symbols_list=yes
7651else
7652  lt_cv_ld_exported_symbols_list=no
7653fi
7654rm -f core conftest.err conftest.$ac_objext \
7655    conftest$ac_exeext conftest.$ac_ext
7656	LDFLAGS=$save_LDFLAGS
7657
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7660$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7661
7662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7663$as_echo_n "checking for -force_load linker flag... " >&6; }
7664if ${lt_cv_ld_force_load+:} false; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  lt_cv_ld_force_load=no
7668      cat > conftest.c << _LT_EOF
7669int forced_loaded() { return 2;}
7670_LT_EOF
7671      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7672      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7673      echo "$AR cru libconftest.a conftest.o" >&5
7674      $AR cru libconftest.a conftest.o 2>&5
7675      echo "$RANLIB libconftest.a" >&5
7676      $RANLIB libconftest.a 2>&5
7677      cat > conftest.c << _LT_EOF
7678int main() { return 0;}
7679_LT_EOF
7680      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7681      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7682      _lt_result=$?
7683      if test -s conftest.err && $GREP force_load conftest.err; then
7684	cat conftest.err >&5
7685      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7686	lt_cv_ld_force_load=yes
7687      else
7688	cat conftest.err >&5
7689      fi
7690        rm -f conftest.err libconftest.a conftest conftest.c
7691        rm -rf conftest.dSYM
7692
7693fi
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7695$as_echo "$lt_cv_ld_force_load" >&6; }
7696    case $host_os in
7697    rhapsody* | darwin1.[012])
7698      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7699    darwin1.*)
7700      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7701    darwin*) # darwin 5.x on
7702      # if running on 10.5 or later, the deployment target defaults
7703      # to the OS version, if on x86, and 10.4, the deployment
7704      # target defaults to 10.4. Don't you love it?
7705      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7706	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7707	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7708	10.[012][,.]*)
7709	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7710	10.*)
7711	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7712      esac
7713    ;;
7714  esac
7715    if test yes = "$lt_cv_apple_cc_single_mod"; then
7716      _lt_dar_single_mod='$single_module'
7717    fi
7718    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7719      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7720    else
7721      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7722    fi
7723    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7724      _lt_dsymutil='~$DSYMUTIL $lib || :'
7725    else
7726      _lt_dsymutil=
7727    fi
7728    ;;
7729  esac
7730
7731# func_munge_path_list VARIABLE PATH
7732# -----------------------------------
7733# VARIABLE is name of variable containing _space_ separated list of
7734# directories to be munged by the contents of PATH, which is string
7735# having a format:
7736# "DIR[:DIR]:"
7737#       string "DIR[ DIR]" will be prepended to VARIABLE
7738# ":DIR[:DIR]"
7739#       string "DIR[ DIR]" will be appended to VARIABLE
7740# "DIRP[:DIRP]::[DIRA:]DIRA"
7741#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7742#       "DIRA[ DIRA]" will be appended to VARIABLE
7743# "DIR[:DIR]"
7744#       VARIABLE will be replaced by "DIR[ DIR]"
7745func_munge_path_list ()
7746{
7747    case x$2 in
7748    x)
7749        ;;
7750    *:)
7751        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7752        ;;
7753    x:*)
7754        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7755        ;;
7756    *::*)
7757        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7758        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7759        ;;
7760    *)
7761        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7762        ;;
7763    esac
7764}
7765
7766ac_ext=c
7767ac_cpp='$CPP $CPPFLAGS'
7768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7772$as_echo_n "checking how to run the C preprocessor... " >&6; }
7773# On Suns, sometimes $CPP names a directory.
7774if test -n "$CPP" && test -d "$CPP"; then
7775  CPP=
7776fi
7777if test -z "$CPP"; then
7778  if ${ac_cv_prog_CPP+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781      # Double quotes because CPP needs to be expanded
7782    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7783    do
7784      ac_preproc_ok=false
7785for ac_c_preproc_warn_flag in '' yes
7786do
7787  # Use a header file that comes with gcc, so configuring glibc
7788  # with a fresh cross-compiler works.
7789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790  # <limits.h> exists even on freestanding compilers.
7791  # On the NeXT, cc -E runs the code through the compiler's parser,
7792  # not just through cpp. "Syntax error" is here to catch this case.
7793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795#ifdef __STDC__
7796# include <limits.h>
7797#else
7798# include <assert.h>
7799#endif
7800		     Syntax error
7801_ACEOF
7802if ac_fn_c_try_cpp "$LINENO"; then :
7803
7804else
7805  # Broken: fails on valid input.
7806continue
7807fi
7808rm -f conftest.err conftest.i conftest.$ac_ext
7809
7810  # OK, works on sane cases.  Now check whether nonexistent headers
7811  # can be detected and how.
7812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814#include <ac_nonexistent.h>
7815_ACEOF
7816if ac_fn_c_try_cpp "$LINENO"; then :
7817  # Broken: success on invalid input.
7818continue
7819else
7820  # Passes both tests.
7821ac_preproc_ok=:
7822break
7823fi
7824rm -f conftest.err conftest.i conftest.$ac_ext
7825
7826done
7827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7828rm -f conftest.i conftest.err conftest.$ac_ext
7829if $ac_preproc_ok; then :
7830  break
7831fi
7832
7833    done
7834    ac_cv_prog_CPP=$CPP
7835
7836fi
7837  CPP=$ac_cv_prog_CPP
7838else
7839  ac_cv_prog_CPP=$CPP
7840fi
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7842$as_echo "$CPP" >&6; }
7843ac_preproc_ok=false
7844for ac_c_preproc_warn_flag in '' yes
7845do
7846  # Use a header file that comes with gcc, so configuring glibc
7847  # with a fresh cross-compiler works.
7848  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7849  # <limits.h> exists even on freestanding compilers.
7850  # On the NeXT, cc -E runs the code through the compiler's parser,
7851  # not just through cpp. "Syntax error" is here to catch this case.
7852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854#ifdef __STDC__
7855# include <limits.h>
7856#else
7857# include <assert.h>
7858#endif
7859		     Syntax error
7860_ACEOF
7861if ac_fn_c_try_cpp "$LINENO"; then :
7862
7863else
7864  # Broken: fails on valid input.
7865continue
7866fi
7867rm -f conftest.err conftest.i conftest.$ac_ext
7868
7869  # OK, works on sane cases.  Now check whether nonexistent headers
7870  # can be detected and how.
7871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873#include <ac_nonexistent.h>
7874_ACEOF
7875if ac_fn_c_try_cpp "$LINENO"; then :
7876  # Broken: success on invalid input.
7877continue
7878else
7879  # Passes both tests.
7880ac_preproc_ok=:
7881break
7882fi
7883rm -f conftest.err conftest.i conftest.$ac_ext
7884
7885done
7886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7887rm -f conftest.i conftest.err conftest.$ac_ext
7888if $ac_preproc_ok; then :
7889
7890else
7891  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7893as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7894See \`config.log' for more details" "$LINENO" 5; }
7895fi
7896
7897ac_ext=c
7898ac_cpp='$CPP $CPPFLAGS'
7899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7905$as_echo_n "checking for ANSI C header files... " >&6; }
7906if ${ac_cv_header_stdc+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910/* end confdefs.h.  */
7911#include <stdlib.h>
7912#include <stdarg.h>
7913#include <string.h>
7914#include <float.h>
7915
7916int
7917main ()
7918{
7919
7920  ;
7921  return 0;
7922}
7923_ACEOF
7924if ac_fn_c_try_compile "$LINENO"; then :
7925  ac_cv_header_stdc=yes
7926else
7927  ac_cv_header_stdc=no
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930
7931if test $ac_cv_header_stdc = yes; then
7932  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h.  */
7935#include <string.h>
7936
7937_ACEOF
7938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7939  $EGREP "memchr" >/dev/null 2>&1; then :
7940
7941else
7942  ac_cv_header_stdc=no
7943fi
7944rm -f conftest*
7945
7946fi
7947
7948if test $ac_cv_header_stdc = yes; then
7949  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h.  */
7952#include <stdlib.h>
7953
7954_ACEOF
7955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956  $EGREP "free" >/dev/null 2>&1; then :
7957
7958else
7959  ac_cv_header_stdc=no
7960fi
7961rm -f conftest*
7962
7963fi
7964
7965if test $ac_cv_header_stdc = yes; then
7966  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7967  if test "$cross_compiling" = yes; then :
7968  :
7969else
7970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972#include <ctype.h>
7973#include <stdlib.h>
7974#if ((' ' & 0x0FF) == 0x020)
7975# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7976# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7977#else
7978# define ISLOWER(c) \
7979		   (('a' <= (c) && (c) <= 'i') \
7980		     || ('j' <= (c) && (c) <= 'r') \
7981		     || ('s' <= (c) && (c) <= 'z'))
7982# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7983#endif
7984
7985#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7986int
7987main ()
7988{
7989  int i;
7990  for (i = 0; i < 256; i++)
7991    if (XOR (islower (i), ISLOWER (i))
7992	|| toupper (i) != TOUPPER (i))
7993      return 2;
7994  return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_run "$LINENO"; then :
7998
7999else
8000  ac_cv_header_stdc=no
8001fi
8002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8003  conftest.$ac_objext conftest.beam conftest.$ac_ext
8004fi
8005
8006fi
8007fi
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8009$as_echo "$ac_cv_header_stdc" >&6; }
8010if test $ac_cv_header_stdc = yes; then
8011
8012$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8013
8014fi
8015
8016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8017for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8018		  inttypes.h stdint.h unistd.h
8019do :
8020  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8021ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8022"
8023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8024  cat >>confdefs.h <<_ACEOF
8025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8026_ACEOF
8027
8028fi
8029
8030done
8031
8032
8033for ac_header in dlfcn.h
8034do :
8035  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8036"
8037if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8038  cat >>confdefs.h <<_ACEOF
8039#define HAVE_DLFCN_H 1
8040_ACEOF
8041
8042fi
8043
8044done
8045
8046
8047
8048
8049
8050# Set options
8051
8052
8053
8054        enable_dlopen=no
8055
8056
8057  enable_win32_dll=no
8058
8059
8060            # Check whether --enable-shared was given.
8061if test "${enable_shared+set}" = set; then :
8062  enableval=$enable_shared; p=${PACKAGE-default}
8063    case $enableval in
8064    yes) enable_shared=yes ;;
8065    no) enable_shared=no ;;
8066    *)
8067      enable_shared=no
8068      # Look at the argument we got.  We use all the common list separators.
8069      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8070      for pkg in $enableval; do
8071	IFS=$lt_save_ifs
8072	if test "X$pkg" = "X$p"; then
8073	  enable_shared=yes
8074	fi
8075      done
8076      IFS=$lt_save_ifs
8077      ;;
8078    esac
8079else
8080  enable_shared=yes
8081fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091  # Check whether --enable-static was given.
8092if test "${enable_static+set}" = set; then :
8093  enableval=$enable_static; p=${PACKAGE-default}
8094    case $enableval in
8095    yes) enable_static=yes ;;
8096    no) enable_static=no ;;
8097    *)
8098     enable_static=no
8099      # Look at the argument we got.  We use all the common list separators.
8100      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8101      for pkg in $enableval; do
8102	IFS=$lt_save_ifs
8103	if test "X$pkg" = "X$p"; then
8104	  enable_static=yes
8105	fi
8106      done
8107      IFS=$lt_save_ifs
8108      ;;
8109    esac
8110else
8111  enable_static=yes
8112fi
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123# Check whether --with-pic was given.
8124if test "${with_pic+set}" = set; then :
8125  withval=$with_pic; lt_p=${PACKAGE-default}
8126    case $withval in
8127    yes|no) pic_mode=$withval ;;
8128    *)
8129      pic_mode=default
8130      # Look at the argument we got.  We use all the common list separators.
8131      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8132      for lt_pkg in $withval; do
8133	IFS=$lt_save_ifs
8134	if test "X$lt_pkg" = "X$lt_p"; then
8135	  pic_mode=yes
8136	fi
8137      done
8138      IFS=$lt_save_ifs
8139      ;;
8140    esac
8141else
8142  pic_mode=default
8143fi
8144
8145
8146
8147
8148
8149
8150
8151
8152  # Check whether --enable-fast-install was given.
8153if test "${enable_fast_install+set}" = set; then :
8154  enableval=$enable_fast_install; p=${PACKAGE-default}
8155    case $enableval in
8156    yes) enable_fast_install=yes ;;
8157    no) enable_fast_install=no ;;
8158    *)
8159      enable_fast_install=no
8160      # Look at the argument we got.  We use all the common list separators.
8161      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8162      for pkg in $enableval; do
8163	IFS=$lt_save_ifs
8164	if test "X$pkg" = "X$p"; then
8165	  enable_fast_install=yes
8166	fi
8167      done
8168      IFS=$lt_save_ifs
8169      ;;
8170    esac
8171else
8172  enable_fast_install=yes
8173fi
8174
8175
8176
8177
8178
8179
8180
8181
8182  shared_archive_member_spec=
8183case $host,$enable_shared in
8184power*-*-aix[5-9]*,yes)
8185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8186$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8187
8188# Check whether --with-aix-soname was given.
8189if test "${with_aix_soname+set}" = set; then :
8190  withval=$with_aix_soname; case $withval in
8191    aix|svr4|both)
8192      ;;
8193    *)
8194      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8195      ;;
8196    esac
8197    lt_cv_with_aix_soname=$with_aix_soname
8198else
8199  if ${lt_cv_with_aix_soname+:} false; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  lt_cv_with_aix_soname=aix
8203fi
8204
8205    with_aix_soname=$lt_cv_with_aix_soname
8206fi
8207
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8209$as_echo "$with_aix_soname" >&6; }
8210  if test aix != "$with_aix_soname"; then
8211    # For the AIX way of multilib, we name the shared archive member
8212    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8213    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8214    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8215    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8216    if test 64 = "${OBJECT_MODE-32}"; then
8217      shared_archive_member_spec=shr_64
8218    else
8219      shared_archive_member_spec=shr
8220    fi
8221  fi
8222  ;;
8223*)
8224  with_aix_soname=aix
8225  ;;
8226esac
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237# This can be used to rebuild libtool when needed
8238LIBTOOL_DEPS=$ltmain
8239
8240# Always use our own libtool.
8241LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272test -z "$LN_S" && LN_S="ln -s"
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287if test -n "${ZSH_VERSION+set}"; then
8288   setopt NO_GLOB_SUBST
8289fi
8290
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8292$as_echo_n "checking for objdir... " >&6; }
8293if ${lt_cv_objdir+:} false; then :
8294  $as_echo_n "(cached) " >&6
8295else
8296  rm -f .libs 2>/dev/null
8297mkdir .libs 2>/dev/null
8298if test -d .libs; then
8299  lt_cv_objdir=.libs
8300else
8301  # MS-DOS does not allow filenames that begin with a dot.
8302  lt_cv_objdir=_libs
8303fi
8304rmdir .libs 2>/dev/null
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8307$as_echo "$lt_cv_objdir" >&6; }
8308objdir=$lt_cv_objdir
8309
8310
8311
8312
8313
8314cat >>confdefs.h <<_ACEOF
8315#define LT_OBJDIR "$lt_cv_objdir/"
8316_ACEOF
8317
8318
8319
8320
8321case $host_os in
8322aix3*)
8323  # AIX sometimes has problems with the GCC collect2 program.  For some
8324  # reason, if we set the COLLECT_NAMES environment variable, the problems
8325  # vanish in a puff of smoke.
8326  if test set != "${COLLECT_NAMES+set}"; then
8327    COLLECT_NAMES=
8328    export COLLECT_NAMES
8329  fi
8330  ;;
8331esac
8332
8333# Global variables:
8334ofile=libtool
8335can_build_shared=yes
8336
8337# All known linkers require a '.a' archive for static linking (except MSVC,
8338# which needs '.lib').
8339libext=a
8340
8341with_gnu_ld=$lt_cv_prog_gnu_ld
8342
8343old_CC=$CC
8344old_CFLAGS=$CFLAGS
8345
8346# Set sane defaults for various variables
8347test -z "$CC" && CC=cc
8348test -z "$LTCC" && LTCC=$CC
8349test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8350test -z "$LD" && LD=ld
8351test -z "$ac_objext" && ac_objext=o
8352
8353func_cc_basename $compiler
8354cc_basename=$func_cc_basename_result
8355
8356
8357# Only perform the check for file, if the check method requires it
8358test -z "$MAGIC_CMD" && MAGIC_CMD=file
8359case $deplibs_check_method in
8360file_magic*)
8361  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8363$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8364if ${lt_cv_path_MAGIC_CMD+:} false; then :
8365  $as_echo_n "(cached) " >&6
8366else
8367  case $MAGIC_CMD in
8368[\\/*] |  ?:[\\/]*)
8369  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8370  ;;
8371*)
8372  lt_save_MAGIC_CMD=$MAGIC_CMD
8373  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8374  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8375  for ac_dir in $ac_dummy; do
8376    IFS=$lt_save_ifs
8377    test -z "$ac_dir" && ac_dir=.
8378    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8379      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8380      if test -n "$file_magic_test_file"; then
8381	case $deplibs_check_method in
8382	"file_magic "*)
8383	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8384	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8385	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8386	    $EGREP "$file_magic_regex" > /dev/null; then
8387	    :
8388	  else
8389	    cat <<_LT_EOF 1>&2
8390
8391*** Warning: the command libtool uses to detect shared libraries,
8392*** $file_magic_cmd, produces output that libtool cannot recognize.
8393*** The result is that libtool may fail to recognize shared libraries
8394*** as such.  This will affect the creation of libtool libraries that
8395*** depend on shared libraries, but programs linked with such libtool
8396*** libraries will work regardless of this problem.  Nevertheless, you
8397*** may want to report the problem to your system manager and/or to
8398*** bug-libtool@gnu.org
8399
8400_LT_EOF
8401	  fi ;;
8402	esac
8403      fi
8404      break
8405    fi
8406  done
8407  IFS=$lt_save_ifs
8408  MAGIC_CMD=$lt_save_MAGIC_CMD
8409  ;;
8410esac
8411fi
8412
8413MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8414if test -n "$MAGIC_CMD"; then
8415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8416$as_echo "$MAGIC_CMD" >&6; }
8417else
8418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
8420fi
8421
8422
8423
8424
8425
8426if test -z "$lt_cv_path_MAGIC_CMD"; then
8427  if test -n "$ac_tool_prefix"; then
8428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8429$as_echo_n "checking for file... " >&6; }
8430if ${lt_cv_path_MAGIC_CMD+:} false; then :
8431  $as_echo_n "(cached) " >&6
8432else
8433  case $MAGIC_CMD in
8434[\\/*] |  ?:[\\/]*)
8435  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8436  ;;
8437*)
8438  lt_save_MAGIC_CMD=$MAGIC_CMD
8439  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8440  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8441  for ac_dir in $ac_dummy; do
8442    IFS=$lt_save_ifs
8443    test -z "$ac_dir" && ac_dir=.
8444    if test -f "$ac_dir/file"; then
8445      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8446      if test -n "$file_magic_test_file"; then
8447	case $deplibs_check_method in
8448	"file_magic "*)
8449	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8450	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8451	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8452	    $EGREP "$file_magic_regex" > /dev/null; then
8453	    :
8454	  else
8455	    cat <<_LT_EOF 1>&2
8456
8457*** Warning: the command libtool uses to detect shared libraries,
8458*** $file_magic_cmd, produces output that libtool cannot recognize.
8459*** The result is that libtool may fail to recognize shared libraries
8460*** as such.  This will affect the creation of libtool libraries that
8461*** depend on shared libraries, but programs linked with such libtool
8462*** libraries will work regardless of this problem.  Nevertheless, you
8463*** may want to report the problem to your system manager and/or to
8464*** bug-libtool@gnu.org
8465
8466_LT_EOF
8467	  fi ;;
8468	esac
8469      fi
8470      break
8471    fi
8472  done
8473  IFS=$lt_save_ifs
8474  MAGIC_CMD=$lt_save_MAGIC_CMD
8475  ;;
8476esac
8477fi
8478
8479MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8480if test -n "$MAGIC_CMD"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8482$as_echo "$MAGIC_CMD" >&6; }
8483else
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486fi
8487
8488
8489  else
8490    MAGIC_CMD=:
8491  fi
8492fi
8493
8494  fi
8495  ;;
8496esac
8497
8498# Use C for the default configuration in the libtool script
8499
8500lt_save_CC=$CC
8501ac_ext=c
8502ac_cpp='$CPP $CPPFLAGS'
8503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505ac_compiler_gnu=$ac_cv_c_compiler_gnu
8506
8507
8508# Source file extension for C test sources.
8509ac_ext=c
8510
8511# Object file extension for compiled C test sources.
8512objext=o
8513objext=$objext
8514
8515# Code to be used in simple compile tests
8516lt_simple_compile_test_code="int some_variable = 0;"
8517
8518# Code to be used in simple link tests
8519lt_simple_link_test_code='int main(){return(0);}'
8520
8521
8522
8523
8524
8525
8526
8527# If no C compiler was specified, use CC.
8528LTCC=${LTCC-"$CC"}
8529
8530# If no C compiler flags were specified, use CFLAGS.
8531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8532
8533# Allow CC to be a program name with arguments.
8534compiler=$CC
8535
8536# Save the default compiler, since it gets overwritten when the other
8537# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8538compiler_DEFAULT=$CC
8539
8540# save warnings/boilerplate of simple test code
8541ac_outfile=conftest.$ac_objext
8542echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8544_lt_compiler_boilerplate=`cat conftest.err`
8545$RM conftest*
8546
8547ac_outfile=conftest.$ac_objext
8548echo "$lt_simple_link_test_code" >conftest.$ac_ext
8549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8550_lt_linker_boilerplate=`cat conftest.err`
8551$RM -r conftest*
8552
8553
8554if test -n "$compiler"; then
8555
8556lt_prog_compiler_no_builtin_flag=
8557
8558if test yes = "$GCC"; then
8559  case $cc_basename in
8560  nvcc*)
8561    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8562  *)
8563    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8564  esac
8565
8566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8567$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8568if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  lt_cv_prog_compiler_rtti_exceptions=no
8572   ac_outfile=conftest.$ac_objext
8573   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8575   # Insert the option either (1) after the last *FLAGS variable, or
8576   # (2) before a word containing "conftest.", or (3) at the end.
8577   # Note that $ac_compile itself does not contain backslashes and begins
8578   # with a dollar sign (not a hyphen), so the echo should work correctly.
8579   # The option is referenced via a variable to avoid confusing sed.
8580   lt_compile=`echo "$ac_compile" | $SED \
8581   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583   -e 's:$: $lt_compiler_flag:'`
8584   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8585   (eval "$lt_compile" 2>conftest.err)
8586   ac_status=$?
8587   cat conftest.err >&5
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   if (exit $ac_status) && test -s "$ac_outfile"; then
8590     # The compiler can only warn and ignore the option if not recognized
8591     # So say no if there are warnings other than the usual output.
8592     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8593     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8594     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8595       lt_cv_prog_compiler_rtti_exceptions=yes
8596     fi
8597   fi
8598   $RM conftest*
8599
8600fi
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8602$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8603
8604if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8605    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8606else
8607    :
8608fi
8609
8610fi
8611
8612
8613
8614
8615
8616
8617  lt_prog_compiler_wl=
8618lt_prog_compiler_pic=
8619lt_prog_compiler_static=
8620
8621
8622  if test yes = "$GCC"; then
8623    lt_prog_compiler_wl='-Wl,'
8624    lt_prog_compiler_static='-static'
8625
8626    case $host_os in
8627      aix*)
8628      # All AIX code is PIC.
8629      if test ia64 = "$host_cpu"; then
8630	# AIX 5 now supports IA64 processor
8631	lt_prog_compiler_static='-Bstatic'
8632      fi
8633      lt_prog_compiler_pic='-fPIC'
8634      ;;
8635
8636    amigaos*)
8637      case $host_cpu in
8638      powerpc)
8639            # see comment about AmigaOS4 .so support
8640            lt_prog_compiler_pic='-fPIC'
8641        ;;
8642      m68k)
8643            # FIXME: we need at least 68020 code to build shared libraries, but
8644            # adding the '-m68020' flag to GCC prevents building anything better,
8645            # like '-m68040'.
8646            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8647        ;;
8648      esac
8649      ;;
8650
8651    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8652      # PIC is the default for these OSes.
8653      ;;
8654
8655    mingw* | cygwin* | pw32* | os2* | cegcc*)
8656      # This hack is so that the source file can tell whether it is being
8657      # built for inclusion in a dll (and should export symbols for example).
8658      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8659      # (--disable-auto-import) libraries
8660      lt_prog_compiler_pic='-DDLL_EXPORT'
8661      case $host_os in
8662      os2*)
8663	lt_prog_compiler_static='$wl-static'
8664	;;
8665      esac
8666      ;;
8667
8668    darwin* | rhapsody*)
8669      # PIC is the default on this platform
8670      # Common symbols not allowed in MH_DYLIB files
8671      lt_prog_compiler_pic='-fno-common'
8672      ;;
8673
8674    haiku*)
8675      # PIC is the default for Haiku.
8676      # The "-static" flag exists, but is broken.
8677      lt_prog_compiler_static=
8678      ;;
8679
8680    hpux*)
8681      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8682      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8683      # sets the default TLS model and affects inlining.
8684      case $host_cpu in
8685      hppa*64*)
8686	# +Z the default
8687	;;
8688      *)
8689	lt_prog_compiler_pic='-fPIC'
8690	;;
8691      esac
8692      ;;
8693
8694    interix[3-9]*)
8695      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8696      # Instead, we relocate shared libraries at runtime.
8697      ;;
8698
8699    msdosdjgpp*)
8700      # Just because we use GCC doesn't mean we suddenly get shared libraries
8701      # on systems that don't support them.
8702      lt_prog_compiler_can_build_shared=no
8703      enable_shared=no
8704      ;;
8705
8706    *nto* | *qnx*)
8707      # QNX uses GNU C++, but need to define -shared option too, otherwise
8708      # it will coredump.
8709      lt_prog_compiler_pic='-fPIC -shared'
8710      ;;
8711
8712    sysv4*MP*)
8713      if test -d /usr/nec; then
8714	lt_prog_compiler_pic=-Kconform_pic
8715      fi
8716      ;;
8717
8718    *)
8719      lt_prog_compiler_pic='-fPIC'
8720      ;;
8721    esac
8722
8723    case $cc_basename in
8724    nvcc*) # Cuda Compiler Driver 2.2
8725      lt_prog_compiler_wl='-Xlinker '
8726      if test -n "$lt_prog_compiler_pic"; then
8727        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8728      fi
8729      ;;
8730    esac
8731  else
8732    # PORTME Check for flag to pass linker flags through the system compiler.
8733    case $host_os in
8734    aix*)
8735      lt_prog_compiler_wl='-Wl,'
8736      if test ia64 = "$host_cpu"; then
8737	# AIX 5 now supports IA64 processor
8738	lt_prog_compiler_static='-Bstatic'
8739      else
8740	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8741      fi
8742      ;;
8743
8744    darwin* | rhapsody*)
8745      # PIC is the default on this platform
8746      # Common symbols not allowed in MH_DYLIB files
8747      lt_prog_compiler_pic='-fno-common'
8748      case $cc_basename in
8749      nagfor*)
8750        # NAG Fortran compiler
8751        lt_prog_compiler_wl='-Wl,-Wl,,'
8752        lt_prog_compiler_pic='-PIC'
8753        lt_prog_compiler_static='-Bstatic'
8754        ;;
8755      esac
8756      ;;
8757
8758    mingw* | cygwin* | pw32* | os2* | cegcc*)
8759      # This hack is so that the source file can tell whether it is being
8760      # built for inclusion in a dll (and should export symbols for example).
8761      lt_prog_compiler_pic='-DDLL_EXPORT'
8762      case $host_os in
8763      os2*)
8764	lt_prog_compiler_static='$wl-static'
8765	;;
8766      esac
8767      ;;
8768
8769    hpux9* | hpux10* | hpux11*)
8770      lt_prog_compiler_wl='-Wl,'
8771      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8772      # not for PA HP-UX.
8773      case $host_cpu in
8774      hppa*64*|ia64*)
8775	# +Z the default
8776	;;
8777      *)
8778	lt_prog_compiler_pic='+Z'
8779	;;
8780      esac
8781      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8782      lt_prog_compiler_static='$wl-a ${wl}archive'
8783      ;;
8784
8785    irix5* | irix6* | nonstopux*)
8786      lt_prog_compiler_wl='-Wl,'
8787      # PIC (with -KPIC) is the default.
8788      lt_prog_compiler_static='-non_shared'
8789      ;;
8790
8791    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8792      case $cc_basename in
8793      # old Intel for x86_64, which still supported -KPIC.
8794      ecc*)
8795	lt_prog_compiler_wl='-Wl,'
8796	lt_prog_compiler_pic='-KPIC'
8797	lt_prog_compiler_static='-static'
8798        ;;
8799      # icc used to be incompatible with GCC.
8800      # ICC 10 doesn't accept -KPIC any more.
8801      icc* | ifort*)
8802	lt_prog_compiler_wl='-Wl,'
8803	lt_prog_compiler_pic='-fPIC'
8804	lt_prog_compiler_static='-static'
8805        ;;
8806      # Lahey Fortran 8.1.
8807      lf95*)
8808	lt_prog_compiler_wl='-Wl,'
8809	lt_prog_compiler_pic='--shared'
8810	lt_prog_compiler_static='--static'
8811	;;
8812      nagfor*)
8813	# NAG Fortran compiler
8814	lt_prog_compiler_wl='-Wl,-Wl,,'
8815	lt_prog_compiler_pic='-PIC'
8816	lt_prog_compiler_static='-Bstatic'
8817	;;
8818      tcc*)
8819	# Fabrice Bellard et al's Tiny C Compiler
8820	lt_prog_compiler_wl='-Wl,'
8821	lt_prog_compiler_pic='-fPIC'
8822	lt_prog_compiler_static='-static'
8823	;;
8824      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8825        # Portland Group compilers (*not* the Pentium gcc compiler,
8826	# which looks to be a dead project)
8827	lt_prog_compiler_wl='-Wl,'
8828	lt_prog_compiler_pic='-fpic'
8829	lt_prog_compiler_static='-Bstatic'
8830        ;;
8831      ccc*)
8832        lt_prog_compiler_wl='-Wl,'
8833        # All Alpha code is PIC.
8834        lt_prog_compiler_static='-non_shared'
8835        ;;
8836      xl* | bgxl* | bgf* | mpixl*)
8837	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8838	lt_prog_compiler_wl='-Wl,'
8839	lt_prog_compiler_pic='-qpic'
8840	lt_prog_compiler_static='-qstaticlink'
8841	;;
8842      *)
8843	case `$CC -V 2>&1 | sed 5q` in
8844	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8845	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8846	  lt_prog_compiler_pic='-KPIC'
8847	  lt_prog_compiler_static='-Bstatic'
8848	  lt_prog_compiler_wl=''
8849	  ;;
8850	*Sun\ F* | *Sun*Fortran*)
8851	  lt_prog_compiler_pic='-KPIC'
8852	  lt_prog_compiler_static='-Bstatic'
8853	  lt_prog_compiler_wl='-Qoption ld '
8854	  ;;
8855	*Sun\ C*)
8856	  # Sun C 5.9
8857	  lt_prog_compiler_pic='-KPIC'
8858	  lt_prog_compiler_static='-Bstatic'
8859	  lt_prog_compiler_wl='-Wl,'
8860	  ;;
8861        *Intel*\ [CF]*Compiler*)
8862	  lt_prog_compiler_wl='-Wl,'
8863	  lt_prog_compiler_pic='-fPIC'
8864	  lt_prog_compiler_static='-static'
8865	  ;;
8866	*Portland\ Group*)
8867	  lt_prog_compiler_wl='-Wl,'
8868	  lt_prog_compiler_pic='-fpic'
8869	  lt_prog_compiler_static='-Bstatic'
8870	  ;;
8871	esac
8872	;;
8873      esac
8874      ;;
8875
8876    newsos6)
8877      lt_prog_compiler_pic='-KPIC'
8878      lt_prog_compiler_static='-Bstatic'
8879      ;;
8880
8881    *nto* | *qnx*)
8882      # QNX uses GNU C++, but need to define -shared option too, otherwise
8883      # it will coredump.
8884      lt_prog_compiler_pic='-fPIC -shared'
8885      ;;
8886
8887    osf3* | osf4* | osf5*)
8888      lt_prog_compiler_wl='-Wl,'
8889      # All OSF/1 code is PIC.
8890      lt_prog_compiler_static='-non_shared'
8891      ;;
8892
8893    rdos*)
8894      lt_prog_compiler_static='-non_shared'
8895      ;;
8896
8897    solaris*)
8898      lt_prog_compiler_pic='-KPIC'
8899      lt_prog_compiler_static='-Bstatic'
8900      case $cc_basename in
8901      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8902	lt_prog_compiler_wl='-Qoption ld ';;
8903      *)
8904	lt_prog_compiler_wl='-Wl,';;
8905      esac
8906      ;;
8907
8908    sunos4*)
8909      lt_prog_compiler_wl='-Qoption ld '
8910      lt_prog_compiler_pic='-PIC'
8911      lt_prog_compiler_static='-Bstatic'
8912      ;;
8913
8914    sysv4 | sysv4.2uw2* | sysv4.3*)
8915      lt_prog_compiler_wl='-Wl,'
8916      lt_prog_compiler_pic='-KPIC'
8917      lt_prog_compiler_static='-Bstatic'
8918      ;;
8919
8920    sysv4*MP*)
8921      if test -d /usr/nec; then
8922	lt_prog_compiler_pic='-Kconform_pic'
8923	lt_prog_compiler_static='-Bstatic'
8924      fi
8925      ;;
8926
8927    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8928      lt_prog_compiler_wl='-Wl,'
8929      lt_prog_compiler_pic='-KPIC'
8930      lt_prog_compiler_static='-Bstatic'
8931      ;;
8932
8933    unicos*)
8934      lt_prog_compiler_wl='-Wl,'
8935      lt_prog_compiler_can_build_shared=no
8936      ;;
8937
8938    uts4*)
8939      lt_prog_compiler_pic='-pic'
8940      lt_prog_compiler_static='-Bstatic'
8941      ;;
8942
8943    *)
8944      lt_prog_compiler_can_build_shared=no
8945      ;;
8946    esac
8947  fi
8948
8949case $host_os in
8950  # For platforms that do not support PIC, -DPIC is meaningless:
8951  *djgpp*)
8952    lt_prog_compiler_pic=
8953    ;;
8954  *)
8955    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8956    ;;
8957esac
8958
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8960$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8961if ${lt_cv_prog_compiler_pic+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8967$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8968lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8969
8970#
8971# Check to make sure the PIC flag actually works.
8972#
8973if test -n "$lt_prog_compiler_pic"; then
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8975$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8976if ${lt_cv_prog_compiler_pic_works+:} false; then :
8977  $as_echo_n "(cached) " >&6
8978else
8979  lt_cv_prog_compiler_pic_works=no
8980   ac_outfile=conftest.$ac_objext
8981   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8982   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8983   # Insert the option either (1) after the last *FLAGS variable, or
8984   # (2) before a word containing "conftest.", or (3) at the end.
8985   # Note that $ac_compile itself does not contain backslashes and begins
8986   # with a dollar sign (not a hyphen), so the echo should work correctly.
8987   # The option is referenced via a variable to avoid confusing sed.
8988   lt_compile=`echo "$ac_compile" | $SED \
8989   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8990   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8991   -e 's:$: $lt_compiler_flag:'`
8992   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8993   (eval "$lt_compile" 2>conftest.err)
8994   ac_status=$?
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   if (exit $ac_status) && test -s "$ac_outfile"; then
8998     # The compiler can only warn and ignore the option if not recognized
8999     # So say no if there are warnings other than the usual output.
9000     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9001     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9002     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9003       lt_cv_prog_compiler_pic_works=yes
9004     fi
9005   fi
9006   $RM conftest*
9007
9008fi
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9010$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9011
9012if test yes = "$lt_cv_prog_compiler_pic_works"; then
9013    case $lt_prog_compiler_pic in
9014     "" | " "*) ;;
9015     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9016     esac
9017else
9018    lt_prog_compiler_pic=
9019     lt_prog_compiler_can_build_shared=no
9020fi
9021
9022fi
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034#
9035# Check to make sure the static flag actually works.
9036#
9037wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9039$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9040if ${lt_cv_prog_compiler_static_works+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  lt_cv_prog_compiler_static_works=no
9044   save_LDFLAGS=$LDFLAGS
9045   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9046   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9047   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9048     # The linker can only warn and ignore the option if not recognized
9049     # So say no if there are warnings
9050     if test -s conftest.err; then
9051       # Append any errors to the config.log.
9052       cat conftest.err 1>&5
9053       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9054       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9055       if diff conftest.exp conftest.er2 >/dev/null; then
9056         lt_cv_prog_compiler_static_works=yes
9057       fi
9058     else
9059       lt_cv_prog_compiler_static_works=yes
9060     fi
9061   fi
9062   $RM -r conftest*
9063   LDFLAGS=$save_LDFLAGS
9064
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9067$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9068
9069if test yes = "$lt_cv_prog_compiler_static_works"; then
9070    :
9071else
9072    lt_prog_compiler_static=
9073fi
9074
9075
9076
9077
9078
9079
9080
9081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9082$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9083if ${lt_cv_prog_compiler_c_o+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  lt_cv_prog_compiler_c_o=no
9087   $RM -r conftest 2>/dev/null
9088   mkdir conftest
9089   cd conftest
9090   mkdir out
9091   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9092
9093   lt_compiler_flag="-o out/conftest2.$ac_objext"
9094   # Insert the option either (1) after the last *FLAGS variable, or
9095   # (2) before a word containing "conftest.", or (3) at the end.
9096   # Note that $ac_compile itself does not contain backslashes and begins
9097   # with a dollar sign (not a hyphen), so the echo should work correctly.
9098   lt_compile=`echo "$ac_compile" | $SED \
9099   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101   -e 's:$: $lt_compiler_flag:'`
9102   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9103   (eval "$lt_compile" 2>out/conftest.err)
9104   ac_status=$?
9105   cat out/conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9108   then
9109     # The compiler can only warn and ignore the option if not recognized
9110     # So say no if there are warnings
9111     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114       lt_cv_prog_compiler_c_o=yes
9115     fi
9116   fi
9117   chmod u+w . 2>&5
9118   $RM conftest*
9119   # SGI C++ compiler will create directory out/ii_files/ for
9120   # template instantiation
9121   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122   $RM out/* && rmdir out
9123   cd ..
9124   $RM -r conftest
9125   $RM conftest*
9126
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9129$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9130
9131
9132
9133
9134
9135
9136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9137$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9138if ${lt_cv_prog_compiler_c_o+:} false; then :
9139  $as_echo_n "(cached) " >&6
9140else
9141  lt_cv_prog_compiler_c_o=no
9142   $RM -r conftest 2>/dev/null
9143   mkdir conftest
9144   cd conftest
9145   mkdir out
9146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147
9148   lt_compiler_flag="-o out/conftest2.$ac_objext"
9149   # Insert the option either (1) after the last *FLAGS variable, or
9150   # (2) before a word containing "conftest.", or (3) at the end.
9151   # Note that $ac_compile itself does not contain backslashes and begins
9152   # with a dollar sign (not a hyphen), so the echo should work correctly.
9153   lt_compile=`echo "$ac_compile" | $SED \
9154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156   -e 's:$: $lt_compiler_flag:'`
9157   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9158   (eval "$lt_compile" 2>out/conftest.err)
9159   ac_status=$?
9160   cat out/conftest.err >&5
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9163   then
9164     # The compiler can only warn and ignore the option if not recognized
9165     # So say no if there are warnings
9166     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9167     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9168     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9169       lt_cv_prog_compiler_c_o=yes
9170     fi
9171   fi
9172   chmod u+w . 2>&5
9173   $RM conftest*
9174   # SGI C++ compiler will create directory out/ii_files/ for
9175   # template instantiation
9176   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9177   $RM out/* && rmdir out
9178   cd ..
9179   $RM -r conftest
9180   $RM conftest*
9181
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9184$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9185
9186
9187
9188
9189hard_links=nottested
9190if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9191  # do not overwrite the value of need_locks provided by the user
9192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9193$as_echo_n "checking if we can lock with hard links... " >&6; }
9194  hard_links=yes
9195  $RM conftest*
9196  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9197  touch conftest.a
9198  ln conftest.a conftest.b 2>&5 || hard_links=no
9199  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9201$as_echo "$hard_links" >&6; }
9202  if test no = "$hard_links"; then
9203    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9204$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9205    need_locks=warn
9206  fi
9207else
9208  need_locks=no
9209fi
9210
9211
9212
9213
9214
9215
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9217$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9218
9219  runpath_var=
9220  allow_undefined_flag=
9221  always_export_symbols=no
9222  archive_cmds=
9223  archive_expsym_cmds=
9224  compiler_needs_object=no
9225  enable_shared_with_static_runtimes=no
9226  export_dynamic_flag_spec=
9227  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9228  hardcode_automatic=no
9229  hardcode_direct=no
9230  hardcode_direct_absolute=no
9231  hardcode_libdir_flag_spec=
9232  hardcode_libdir_separator=
9233  hardcode_minus_L=no
9234  hardcode_shlibpath_var=unsupported
9235  inherit_rpath=no
9236  link_all_deplibs=unknown
9237  module_cmds=
9238  module_expsym_cmds=
9239  old_archive_from_new_cmds=
9240  old_archive_from_expsyms_cmds=
9241  thread_safe_flag_spec=
9242  whole_archive_flag_spec=
9243  # include_expsyms should be a list of space-separated symbols to be *always*
9244  # included in the symbol list
9245  include_expsyms=
9246  # exclude_expsyms can be an extended regexp of symbols to exclude
9247  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9248  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9249  # as well as any symbol that contains 'd'.
9250  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9251  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9252  # platforms (ab)use it in PIC code, but their linkers get confused if
9253  # the symbol is explicitly referenced.  Since portable code cannot
9254  # rely on this symbol name, it's probably fine to never include it in
9255  # preloaded symbol tables.
9256  # Exclude shared library initialization/finalization symbols.
9257  extract_expsyms_cmds=
9258
9259  case $host_os in
9260  cygwin* | mingw* | pw32* | cegcc*)
9261    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9262    # When not using gcc, we currently assume that we are using
9263    # Microsoft Visual C++.
9264    if test yes != "$GCC"; then
9265      with_gnu_ld=no
9266    fi
9267    ;;
9268  interix*)
9269    # we just hope/assume this is gcc and not c89 (= MSVC++)
9270    with_gnu_ld=yes
9271    ;;
9272  openbsd* | bitrig*)
9273    with_gnu_ld=no
9274    ;;
9275  esac
9276
9277  ld_shlibs=yes
9278
9279  # On some targets, GNU ld is compatible enough with the native linker
9280  # that we're better off using the native interface for both.
9281  lt_use_gnu_ld_interface=no
9282  if test yes = "$with_gnu_ld"; then
9283    case $host_os in
9284      aix*)
9285	# The AIX port of GNU ld has always aspired to compatibility
9286	# with the native linker.  However, as the warning in the GNU ld
9287	# block says, versions before 2.19.5* couldn't really create working
9288	# shared libraries, regardless of the interface used.
9289	case `$LD -v 2>&1` in
9290	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9291	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9292	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9293	  *)
9294	    lt_use_gnu_ld_interface=yes
9295	    ;;
9296	esac
9297	;;
9298      *)
9299	lt_use_gnu_ld_interface=yes
9300	;;
9301    esac
9302  fi
9303
9304  if test yes = "$lt_use_gnu_ld_interface"; then
9305    # If archive_cmds runs LD, not CC, wlarc should be empty
9306    wlarc='$wl'
9307
9308    # Set some defaults for GNU ld with shared library support. These
9309    # are reset later if shared libraries are not supported. Putting them
9310    # here allows them to be overridden if necessary.
9311    runpath_var=LD_RUN_PATH
9312    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9313    export_dynamic_flag_spec='$wl--export-dynamic'
9314    # ancient GNU ld didn't support --whole-archive et. al.
9315    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9316      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9317    else
9318      whole_archive_flag_spec=
9319    fi
9320    supports_anon_versioning=no
9321    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9322      *GNU\ gold*) supports_anon_versioning=yes ;;
9323      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9324      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9325      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9326      *\ 2.11.*) ;; # other 2.11 versions
9327      *) supports_anon_versioning=yes ;;
9328    esac
9329
9330    # See if GNU ld supports shared libraries.
9331    case $host_os in
9332    aix[3-9]*)
9333      # On AIX/PPC, the GNU linker is very broken
9334      if test ia64 != "$host_cpu"; then
9335	ld_shlibs=no
9336	cat <<_LT_EOF 1>&2
9337
9338*** Warning: the GNU linker, at least up to release 2.19, is reported
9339*** to be unable to reliably create shared libraries on AIX.
9340*** Therefore, libtool is disabling shared libraries support.  If you
9341*** really care for shared libraries, you may want to install binutils
9342*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9343*** You will then need to restart the configuration process.
9344
9345_LT_EOF
9346      fi
9347      ;;
9348
9349    amigaos*)
9350      case $host_cpu in
9351      powerpc)
9352            # see comment about AmigaOS4 .so support
9353            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9354            archive_expsym_cmds=''
9355        ;;
9356      m68k)
9357            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)'
9358            hardcode_libdir_flag_spec='-L$libdir'
9359            hardcode_minus_L=yes
9360        ;;
9361      esac
9362      ;;
9363
9364    beos*)
9365      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366	allow_undefined_flag=unsupported
9367	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9368	# support --undefined.  This deserves some investigation.  FIXME
9369	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9370      else
9371	ld_shlibs=no
9372      fi
9373      ;;
9374
9375    cygwin* | mingw* | pw32* | cegcc*)
9376      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9377      # as there is no search path for DLLs.
9378      hardcode_libdir_flag_spec='-L$libdir'
9379      export_dynamic_flag_spec='$wl--export-all-symbols'
9380      allow_undefined_flag=unsupported
9381      always_export_symbols=no
9382      enable_shared_with_static_runtimes=yes
9383      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'
9384      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9385
9386      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9387        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9388	# If the export-symbols file already is a .def file, use it as
9389	# is; otherwise, prepend EXPORTS...
9390	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9391          cp $export_symbols $output_objdir/$soname.def;
9392        else
9393          echo EXPORTS > $output_objdir/$soname.def;
9394          cat $export_symbols >> $output_objdir/$soname.def;
9395        fi~
9396        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397      else
9398	ld_shlibs=no
9399      fi
9400      ;;
9401
9402    haiku*)
9403      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9404      link_all_deplibs=yes
9405      ;;
9406
9407    os2*)
9408      hardcode_libdir_flag_spec='-L$libdir'
9409      hardcode_minus_L=yes
9410      allow_undefined_flag=unsupported
9411      shrext_cmds=.dll
9412      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9413	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9414	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9415	$ECHO EXPORTS >> $output_objdir/$libname.def~
9416	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9417	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9418	emximp -o $lib $output_objdir/$libname.def'
9419      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9420	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9421	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9422	$ECHO EXPORTS >> $output_objdir/$libname.def~
9423	prefix_cmds="$SED"~
9424	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9425	  prefix_cmds="$prefix_cmds -e 1d";
9426	fi~
9427	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9428	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9429	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9430	emximp -o $lib $output_objdir/$libname.def'
9431      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9432      enable_shared_with_static_runtimes=yes
9433      ;;
9434
9435    interix[3-9]*)
9436      hardcode_direct=no
9437      hardcode_shlibpath_var=no
9438      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9439      export_dynamic_flag_spec='$wl-E'
9440      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9441      # Instead, shared libraries are loaded at an image base (0x10000000 by
9442      # default) and relocated if they conflict, which is a slow very memory
9443      # consuming and fragmenting process.  To avoid this, we pick a random,
9444      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9445      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9446      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9447      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'
9448      ;;
9449
9450    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9451      tmp_diet=no
9452      if test linux-dietlibc = "$host_os"; then
9453	case $cc_basename in
9454	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9455	esac
9456      fi
9457      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9458	 && test no = "$tmp_diet"
9459      then
9460	tmp_addflag=' $pic_flag'
9461	tmp_sharedflag='-shared'
9462	case $cc_basename,$host_cpu in
9463        pgcc*)				# Portland Group C compiler
9464	  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'
9465	  tmp_addflag=' $pic_flag'
9466	  ;;
9467	pgf77* | pgf90* | pgf95* | pgfortran*)
9468					# Portland Group f77 and f90 compilers
9469	  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'
9470	  tmp_addflag=' $pic_flag -Mnomain' ;;
9471	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9472	  tmp_addflag=' -i_dynamic' ;;
9473	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9474	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9475	ifc* | ifort*)			# Intel Fortran compiler
9476	  tmp_addflag=' -nofor_main' ;;
9477	lf95*)				# Lahey Fortran 8.1
9478	  whole_archive_flag_spec=
9479	  tmp_sharedflag='--shared' ;;
9480        nagfor*)                        # NAGFOR 5.3
9481          tmp_sharedflag='-Wl,-shared' ;;
9482	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9483	  tmp_sharedflag='-qmkshrobj'
9484	  tmp_addflag= ;;
9485	nvcc*)	# Cuda Compiler Driver 2.2
9486	  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'
9487	  compiler_needs_object=yes
9488	  ;;
9489	esac
9490	case `$CC -V 2>&1 | sed 5q` in
9491	*Sun\ C*)			# Sun C 5.9
9492	  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'
9493	  compiler_needs_object=yes
9494	  tmp_sharedflag='-G' ;;
9495	*Sun\ F*)			# Sun Fortran 8.3
9496	  tmp_sharedflag='-G' ;;
9497	esac
9498	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9499
9500        if test yes = "$supports_anon_versioning"; then
9501          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9502            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9503            echo "local: *; };" >> $output_objdir/$libname.ver~
9504            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9505        fi
9506
9507	case $cc_basename in
9508	tcc*)
9509	  export_dynamic_flag_spec='-rdynamic'
9510	  ;;
9511	xlf* | bgf* | bgxlf* | mpixlf*)
9512	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9513	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9514	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9515	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9516	  if test yes = "$supports_anon_versioning"; then
9517	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9518              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9519              echo "local: *; };" >> $output_objdir/$libname.ver~
9520              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9521	  fi
9522	  ;;
9523	esac
9524      else
9525        ld_shlibs=no
9526      fi
9527      ;;
9528
9529    netbsd*)
9530      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9531	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9532	wlarc=
9533      else
9534	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9535	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9536      fi
9537      ;;
9538
9539    solaris*)
9540      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9541	ld_shlibs=no
9542	cat <<_LT_EOF 1>&2
9543
9544*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9545*** create shared libraries on Solaris systems.  Therefore, libtool
9546*** is disabling shared libraries support.  We urge you to upgrade GNU
9547*** binutils to release 2.9.1 or newer.  Another option is to modify
9548*** your PATH or compiler configuration so that the native linker is
9549*** used, and then restart.
9550
9551_LT_EOF
9552      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9553	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9555      else
9556	ld_shlibs=no
9557      fi
9558      ;;
9559
9560    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9561      case `$LD -v 2>&1` in
9562        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9563	ld_shlibs=no
9564	cat <<_LT_EOF 1>&2
9565
9566*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9567*** reliably create shared libraries on SCO systems.  Therefore, libtool
9568*** is disabling shared libraries support.  We urge you to upgrade GNU
9569*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9570*** your PATH or compiler configuration so that the native linker is
9571*** used, and then restart.
9572
9573_LT_EOF
9574	;;
9575	*)
9576	  # For security reasons, it is highly recommended that you always
9577	  # use absolute paths for naming shared libraries, and exclude the
9578	  # DT_RUNPATH tag from executables and libraries.  But doing so
9579	  # requires that you compile everything twice, which is a pain.
9580	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9581	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9582	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9583	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9584	  else
9585	    ld_shlibs=no
9586	  fi
9587	;;
9588      esac
9589      ;;
9590
9591    sunos4*)
9592      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9593      wlarc=
9594      hardcode_direct=yes
9595      hardcode_shlibpath_var=no
9596      ;;
9597
9598    *)
9599      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9600	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9601	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9602      else
9603	ld_shlibs=no
9604      fi
9605      ;;
9606    esac
9607
9608    if test no = "$ld_shlibs"; then
9609      runpath_var=
9610      hardcode_libdir_flag_spec=
9611      export_dynamic_flag_spec=
9612      whole_archive_flag_spec=
9613    fi
9614  else
9615    # PORTME fill in a description of your system's linker (not GNU ld)
9616    case $host_os in
9617    aix3*)
9618      allow_undefined_flag=unsupported
9619      always_export_symbols=yes
9620      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'
9621      # Note: this linker hardcodes the directories in LIBPATH if there
9622      # are no directories specified by -L.
9623      hardcode_minus_L=yes
9624      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9625	# Neither direct hardcoding nor static linking is supported with a
9626	# broken collect2.
9627	hardcode_direct=unsupported
9628      fi
9629      ;;
9630
9631    aix[4-9]*)
9632      if test ia64 = "$host_cpu"; then
9633	# On IA64, the linker does run time linking by default, so we don't
9634	# have to do anything special.
9635	aix_use_runtimelinking=no
9636	exp_sym_flag='-Bexport'
9637	no_entry_flag=
9638      else
9639	# If we're using GNU nm, then we don't want the "-C" option.
9640	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9641	# Without the "-l" option, or with the "-B" option, AIX nm treats
9642	# weak defined symbols like other global defined symbols, whereas
9643	# GNU nm marks them as "W".
9644	# While the 'weak' keyword is ignored in the Export File, we need
9645	# it in the Import File for the 'aix-soname' feature, so we have
9646	# to replace the "-B" option with "-P" for AIX nm.
9647	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9648	  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'
9649	else
9650	  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'
9651	fi
9652	aix_use_runtimelinking=no
9653
9654	# Test if we are trying to use run time linking or normal
9655	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9656	# have runtime linking enabled, and use it for executables.
9657	# For shared libraries, we enable/disable runtime linking
9658	# depending on the kind of the shared library created -
9659	# when "with_aix_soname,aix_use_runtimelinking" is:
9660	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9661	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9662	#            lib.a           static archive
9663	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9664	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9665	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9666	#            lib.a(lib.so.V) shared, rtl:no
9667	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9668	#            lib.a           static archive
9669	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9670	  for ld_flag in $LDFLAGS; do
9671	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9672	    aix_use_runtimelinking=yes
9673	    break
9674	  fi
9675	  done
9676	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9677	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9678	    # so we don't have lib.a shared libs to link our executables.
9679	    # We have to force runtime linking in this case.
9680	    aix_use_runtimelinking=yes
9681	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9682	  fi
9683	  ;;
9684	esac
9685
9686	exp_sym_flag='-bexport'
9687	no_entry_flag='-bnoentry'
9688      fi
9689
9690      # When large executables or shared objects are built, AIX ld can
9691      # have problems creating the table of contents.  If linking a library
9692      # or program results in "error TOC overflow" add -mminimal-toc to
9693      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9694      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9695
9696      archive_cmds=''
9697      hardcode_direct=yes
9698      hardcode_direct_absolute=yes
9699      hardcode_libdir_separator=':'
9700      link_all_deplibs=yes
9701      file_list_spec='$wl-f,'
9702      case $with_aix_soname,$aix_use_runtimelinking in
9703      aix,*) ;; # traditional, no import file
9704      svr4,* | *,yes) # use import file
9705	# The Import File defines what to hardcode.
9706	hardcode_direct=no
9707	hardcode_direct_absolute=no
9708	;;
9709      esac
9710
9711      if test yes = "$GCC"; then
9712	case $host_os in aix4.[012]|aix4.[012].*)
9713	# We only want to do this on AIX 4.2 and lower, the check
9714	# below for broken collect2 doesn't work under 4.3+
9715	  collect2name=`$CC -print-prog-name=collect2`
9716	  if test -f "$collect2name" &&
9717	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9718	  then
9719	  # We have reworked collect2
9720	  :
9721	  else
9722	  # We have old collect2
9723	  hardcode_direct=unsupported
9724	  # It fails to find uninstalled libraries when the uninstalled
9725	  # path is not listed in the libpath.  Setting hardcode_minus_L
9726	  # to unsupported forces relinking
9727	  hardcode_minus_L=yes
9728	  hardcode_libdir_flag_spec='-L$libdir'
9729	  hardcode_libdir_separator=
9730	  fi
9731	  ;;
9732	esac
9733	shared_flag='-shared'
9734	if test yes = "$aix_use_runtimelinking"; then
9735	  shared_flag="$shared_flag "'$wl-G'
9736	fi
9737	# Need to ensure runtime linking is disabled for the traditional
9738	# shared library, or the linker may eventually find shared libraries
9739	# /with/ Import File - we do not want to mix them.
9740	shared_flag_aix='-shared'
9741	shared_flag_svr4='-shared $wl-G'
9742      else
9743	# not using gcc
9744	if test ia64 = "$host_cpu"; then
9745	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9746	# chokes on -Wl,-G. The following line is correct:
9747	  shared_flag='-G'
9748	else
9749	  if test yes = "$aix_use_runtimelinking"; then
9750	    shared_flag='$wl-G'
9751	  else
9752	    shared_flag='$wl-bM:SRE'
9753	  fi
9754	  shared_flag_aix='$wl-bM:SRE'
9755	  shared_flag_svr4='$wl-G'
9756	fi
9757      fi
9758
9759      export_dynamic_flag_spec='$wl-bexpall'
9760      # It seems that -bexpall does not export symbols beginning with
9761      # underscore (_), so it is better to generate a list of symbols to export.
9762      always_export_symbols=yes
9763      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9764	# Warning - without using the other runtime loading flags (-brtl),
9765	# -berok will link without error, but may produce a broken library.
9766	allow_undefined_flag='-berok'
9767        # Determine the default libpath from the value encoded in an
9768        # empty executable.
9769        if test set = "${lt_cv_aix_libpath+set}"; then
9770  aix_libpath=$lt_cv_aix_libpath
9771else
9772  if ${lt_cv_aix_libpath_+:} false; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777
9778int
9779main ()
9780{
9781
9782  ;
9783  return 0;
9784}
9785_ACEOF
9786if ac_fn_c_try_link "$LINENO"; then :
9787
9788  lt_aix_libpath_sed='
9789      /Import File Strings/,/^$/ {
9790	  /^0/ {
9791	      s/^0  *\([^ ]*\) *$/\1/
9792	      p
9793	  }
9794      }'
9795  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796  # Check for a 64-bit object if we didn't find anything.
9797  if test -z "$lt_cv_aix_libpath_"; then
9798    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799  fi
9800fi
9801rm -f core conftest.err conftest.$ac_objext \
9802    conftest$ac_exeext conftest.$ac_ext
9803  if test -z "$lt_cv_aix_libpath_"; then
9804    lt_cv_aix_libpath_=/usr/lib:/lib
9805  fi
9806
9807fi
9808
9809  aix_libpath=$lt_cv_aix_libpath_
9810fi
9811
9812        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9813        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
9814      else
9815	if test ia64 = "$host_cpu"; then
9816	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9817	  allow_undefined_flag="-z nodefs"
9818	  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"
9819	else
9820	 # Determine the default libpath from the value encoded in an
9821	 # empty executable.
9822	 if test set = "${lt_cv_aix_libpath+set}"; then
9823  aix_libpath=$lt_cv_aix_libpath
9824else
9825  if ${lt_cv_aix_libpath_+:} false; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829/* end confdefs.h.  */
9830
9831int
9832main ()
9833{
9834
9835  ;
9836  return 0;
9837}
9838_ACEOF
9839if ac_fn_c_try_link "$LINENO"; then :
9840
9841  lt_aix_libpath_sed='
9842      /Import File Strings/,/^$/ {
9843	  /^0/ {
9844	      s/^0  *\([^ ]*\) *$/\1/
9845	      p
9846	  }
9847      }'
9848  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849  # Check for a 64-bit object if we didn't find anything.
9850  if test -z "$lt_cv_aix_libpath_"; then
9851    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852  fi
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855    conftest$ac_exeext conftest.$ac_ext
9856  if test -z "$lt_cv_aix_libpath_"; then
9857    lt_cv_aix_libpath_=/usr/lib:/lib
9858  fi
9859
9860fi
9861
9862  aix_libpath=$lt_cv_aix_libpath_
9863fi
9864
9865	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9866	  # Warning - without using the other run time loading flags,
9867	  # -berok will link without error, but may produce a broken library.
9868	  no_undefined_flag=' $wl-bernotok'
9869	  allow_undefined_flag=' $wl-berok'
9870	  if test yes = "$with_gnu_ld"; then
9871	    # We only use this code for GNU lds that support --whole-archive.
9872	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9873	  else
9874	    # Exported symbols can be pulled into shared objects from archives
9875	    whole_archive_flag_spec='$convenience'
9876	  fi
9877	  archive_cmds_need_lc=yes
9878	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9879	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9880	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9881	  if test svr4 != "$with_aix_soname"; then
9882	    # This is similar to how AIX traditionally builds its shared libraries.
9883	    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'
9884	  fi
9885	  if test aix != "$with_aix_soname"; then
9886	    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'
9887	  else
9888	    # used by -dlpreopen to get the symbols
9889	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9890	  fi
9891	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9892	fi
9893      fi
9894      ;;
9895
9896    amigaos*)
9897      case $host_cpu in
9898      powerpc)
9899            # see comment about AmigaOS4 .so support
9900            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901            archive_expsym_cmds=''
9902        ;;
9903      m68k)
9904            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)'
9905            hardcode_libdir_flag_spec='-L$libdir'
9906            hardcode_minus_L=yes
9907        ;;
9908      esac
9909      ;;
9910
9911    bsdi[45]*)
9912      export_dynamic_flag_spec=-rdynamic
9913      ;;
9914
9915    cygwin* | mingw* | pw32* | cegcc*)
9916      # When not using gcc, we currently assume that we are using
9917      # Microsoft Visual C++.
9918      # hardcode_libdir_flag_spec is actually meaningless, as there is
9919      # no search path for DLLs.
9920      case $cc_basename in
9921      cl*)
9922	# Native MSVC
9923	hardcode_libdir_flag_spec=' '
9924	allow_undefined_flag=unsupported
9925	always_export_symbols=yes
9926	file_list_spec='@'
9927	# Tell ltmain to make .lib files, not .a files.
9928	libext=lib
9929	# Tell ltmain to make .dll files, not .so files.
9930	shrext_cmds=.dll
9931	# FIXME: Setting linknames here is a bad hack.
9932	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9933	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9934            cp "$export_symbols" "$output_objdir/$soname.def";
9935            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9936          else
9937            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9938          fi~
9939          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9940          linknames='
9941	# The linker will not automatically build a static lib if we build a DLL.
9942	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9943	enable_shared_with_static_runtimes=yes
9944	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9945	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9946	# Don't use ranlib
9947	old_postinstall_cmds='chmod 644 $oldlib'
9948	postlink_cmds='lt_outputfile="@OUTPUT@"~
9949          lt_tool_outputfile="@TOOL_OUTPUT@"~
9950          case $lt_outputfile in
9951            *.exe|*.EXE) ;;
9952            *)
9953              lt_outputfile=$lt_outputfile.exe
9954              lt_tool_outputfile=$lt_tool_outputfile.exe
9955              ;;
9956          esac~
9957          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9958            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9959            $RM "$lt_outputfile.manifest";
9960          fi'
9961	;;
9962      *)
9963	# Assume MSVC wrapper
9964	hardcode_libdir_flag_spec=' '
9965	allow_undefined_flag=unsupported
9966	# Tell ltmain to make .lib files, not .a files.
9967	libext=lib
9968	# Tell ltmain to make .dll files, not .so files.
9969	shrext_cmds=.dll
9970	# FIXME: Setting linknames here is a bad hack.
9971	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9972	# The linker will automatically build a .lib file if we build a DLL.
9973	old_archive_from_new_cmds='true'
9974	# FIXME: Should let the user specify the lib program.
9975	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9976	enable_shared_with_static_runtimes=yes
9977	;;
9978      esac
9979      ;;
9980
9981    darwin* | rhapsody*)
9982
9983
9984  archive_cmds_need_lc=no
9985  hardcode_direct=no
9986  hardcode_automatic=yes
9987  hardcode_shlibpath_var=unsupported
9988  if test yes = "$lt_cv_ld_force_load"; then
9989    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\"`'
9990
9991  else
9992    whole_archive_flag_spec=''
9993  fi
9994  link_all_deplibs=yes
9995  allow_undefined_flag=$_lt_dar_allow_undefined
9996  case $cc_basename in
9997     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9998     *) _lt_dar_can_shared=$GCC ;;
9999  esac
10000  if test yes = "$_lt_dar_can_shared"; then
10001    output_verbose_link_cmd=func_echo_all
10002    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10003    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10004    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"
10005    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"
10006
10007  else
10008  ld_shlibs=no
10009  fi
10010
10011      ;;
10012
10013    dgux*)
10014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015      hardcode_libdir_flag_spec='-L$libdir'
10016      hardcode_shlibpath_var=no
10017      ;;
10018
10019    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10020    # support.  Future versions do this automatically, but an explicit c++rt0.o
10021    # does not break anything, and helps significantly (at the cost of a little
10022    # extra space).
10023    freebsd2.2*)
10024      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10025      hardcode_libdir_flag_spec='-R$libdir'
10026      hardcode_direct=yes
10027      hardcode_shlibpath_var=no
10028      ;;
10029
10030    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10031    freebsd2.*)
10032      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10033      hardcode_direct=yes
10034      hardcode_minus_L=yes
10035      hardcode_shlibpath_var=no
10036      ;;
10037
10038    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10039    freebsd* | dragonfly*)
10040      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10041      hardcode_libdir_flag_spec='-R$libdir'
10042      hardcode_direct=yes
10043      hardcode_shlibpath_var=no
10044      ;;
10045
10046    hpux9*)
10047      if test yes = "$GCC"; then
10048	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'
10049      else
10050	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'
10051      fi
10052      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10053      hardcode_libdir_separator=:
10054      hardcode_direct=yes
10055
10056      # hardcode_minus_L: Not really in the search PATH,
10057      # but as the default location of the library.
10058      hardcode_minus_L=yes
10059      export_dynamic_flag_spec='$wl-E'
10060      ;;
10061
10062    hpux10*)
10063      if test yes,no = "$GCC,$with_gnu_ld"; then
10064	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065      else
10066	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10067      fi
10068      if test no = "$with_gnu_ld"; then
10069	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10070	hardcode_libdir_separator=:
10071	hardcode_direct=yes
10072	hardcode_direct_absolute=yes
10073	export_dynamic_flag_spec='$wl-E'
10074	# hardcode_minus_L: Not really in the search PATH,
10075	# but as the default location of the library.
10076	hardcode_minus_L=yes
10077      fi
10078      ;;
10079
10080    hpux11*)
10081      if test yes,no = "$GCC,$with_gnu_ld"; then
10082	case $host_cpu in
10083	hppa*64*)
10084	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10085	  ;;
10086	ia64*)
10087	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088	  ;;
10089	*)
10090	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10091	  ;;
10092	esac
10093      else
10094	case $host_cpu in
10095	hppa*64*)
10096	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10097	  ;;
10098	ia64*)
10099	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10100	  ;;
10101	*)
10102
10103	  # Older versions of the 11.00 compiler do not understand -b yet
10104	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10105	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10106$as_echo_n "checking if $CC understands -b... " >&6; }
10107if ${lt_cv_prog_compiler__b+:} false; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  lt_cv_prog_compiler__b=no
10111   save_LDFLAGS=$LDFLAGS
10112   LDFLAGS="$LDFLAGS -b"
10113   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10114   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10115     # The linker can only warn and ignore the option if not recognized
10116     # So say no if there are warnings
10117     if test -s conftest.err; then
10118       # Append any errors to the config.log.
10119       cat conftest.err 1>&5
10120       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10121       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10122       if diff conftest.exp conftest.er2 >/dev/null; then
10123         lt_cv_prog_compiler__b=yes
10124       fi
10125     else
10126       lt_cv_prog_compiler__b=yes
10127     fi
10128   fi
10129   $RM -r conftest*
10130   LDFLAGS=$save_LDFLAGS
10131
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10134$as_echo "$lt_cv_prog_compiler__b" >&6; }
10135
10136if test yes = "$lt_cv_prog_compiler__b"; then
10137    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10138else
10139    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10140fi
10141
10142	  ;;
10143	esac
10144      fi
10145      if test no = "$with_gnu_ld"; then
10146	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10147	hardcode_libdir_separator=:
10148
10149	case $host_cpu in
10150	hppa*64*|ia64*)
10151	  hardcode_direct=no
10152	  hardcode_shlibpath_var=no
10153	  ;;
10154	*)
10155	  hardcode_direct=yes
10156	  hardcode_direct_absolute=yes
10157	  export_dynamic_flag_spec='$wl-E'
10158
10159	  # hardcode_minus_L: Not really in the search PATH,
10160	  # but as the default location of the library.
10161	  hardcode_minus_L=yes
10162	  ;;
10163	esac
10164      fi
10165      ;;
10166
10167    irix5* | irix6* | nonstopux*)
10168      if test yes = "$GCC"; then
10169	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'
10170	# Try to use the -exported_symbol ld option, if it does not
10171	# work, assume that -exports_file does not work either and
10172	# implicitly export all symbols.
10173	# This should be the same for all languages, so no per-tag cache variable.
10174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10175$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10176if ${lt_cv_irix_exported_symbol+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  save_LDFLAGS=$LDFLAGS
10180	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10181	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183int foo (void) { return 0; }
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186  lt_cv_irix_exported_symbol=yes
10187else
10188  lt_cv_irix_exported_symbol=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext \
10191    conftest$ac_exeext conftest.$ac_ext
10192           LDFLAGS=$save_LDFLAGS
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10195$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10196	if test yes = "$lt_cv_irix_exported_symbol"; then
10197          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'
10198	fi
10199      else
10200	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'
10201	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'
10202      fi
10203      archive_cmds_need_lc='no'
10204      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10205      hardcode_libdir_separator=:
10206      inherit_rpath=yes
10207      link_all_deplibs=yes
10208      ;;
10209
10210    linux*)
10211      case $cc_basename in
10212      tcc*)
10213	# Fabrice Bellard et al's Tiny C Compiler
10214	ld_shlibs=yes
10215	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10216	;;
10217      esac
10218      ;;
10219
10220    netbsd*)
10221      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10222	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10223      else
10224	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10225      fi
10226      hardcode_libdir_flag_spec='-R$libdir'
10227      hardcode_direct=yes
10228      hardcode_shlibpath_var=no
10229      ;;
10230
10231    newsos6)
10232      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233      hardcode_direct=yes
10234      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10235      hardcode_libdir_separator=:
10236      hardcode_shlibpath_var=no
10237      ;;
10238
10239    *nto* | *qnx*)
10240      ;;
10241
10242    openbsd* | bitrig*)
10243      if test -f /usr/libexec/ld.so; then
10244	hardcode_direct=yes
10245	hardcode_shlibpath_var=no
10246	hardcode_direct_absolute=yes
10247	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10248	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10249	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10250	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10251	  export_dynamic_flag_spec='$wl-E'
10252	else
10253	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10254	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10255	fi
10256      else
10257	ld_shlibs=no
10258      fi
10259      ;;
10260
10261    os2*)
10262      hardcode_libdir_flag_spec='-L$libdir'
10263      hardcode_minus_L=yes
10264      allow_undefined_flag=unsupported
10265      shrext_cmds=.dll
10266      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10267	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10268	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10269	$ECHO EXPORTS >> $output_objdir/$libname.def~
10270	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10271	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10272	emximp -o $lib $output_objdir/$libname.def'
10273      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10274	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10275	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10276	$ECHO EXPORTS >> $output_objdir/$libname.def~
10277	prefix_cmds="$SED"~
10278	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10279	  prefix_cmds="$prefix_cmds -e 1d";
10280	fi~
10281	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10282	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10283	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10284	emximp -o $lib $output_objdir/$libname.def'
10285      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10286      enable_shared_with_static_runtimes=yes
10287      ;;
10288
10289    osf3*)
10290      if test yes = "$GCC"; then
10291	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10292	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'
10293      else
10294	allow_undefined_flag=' -expect_unresolved \*'
10295	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'
10296      fi
10297      archive_cmds_need_lc='no'
10298      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10299      hardcode_libdir_separator=:
10300      ;;
10301
10302    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10303      if test yes = "$GCC"; then
10304	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10305	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'
10306	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10307      else
10308	allow_undefined_flag=' -expect_unresolved \*'
10309	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'
10310	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~
10311          $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'
10312
10313	# Both c and cxx compiler support -rpath directly
10314	hardcode_libdir_flag_spec='-rpath $libdir'
10315      fi
10316      archive_cmds_need_lc='no'
10317      hardcode_libdir_separator=:
10318      ;;
10319
10320    solaris*)
10321      no_undefined_flag=' -z defs'
10322      if test yes = "$GCC"; then
10323	wlarc='$wl'
10324	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10325	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10326          $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'
10327      else
10328	case `$CC -V 2>&1` in
10329	*"Compilers 5.0"*)
10330	  wlarc=''
10331	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10332	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10333            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10334	  ;;
10335	*)
10336	  wlarc='$wl'
10337	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10339            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10340	  ;;
10341	esac
10342      fi
10343      hardcode_libdir_flag_spec='-R$libdir'
10344      hardcode_shlibpath_var=no
10345      case $host_os in
10346      solaris2.[0-5] | solaris2.[0-5].*) ;;
10347      *)
10348	# The compiler driver will combine and reorder linker options,
10349	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10350	# but is careful enough not to reorder.
10351	# Supported since Solaris 2.6 (maybe 2.5.1?)
10352	if test yes = "$GCC"; then
10353	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10354	else
10355	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10356	fi
10357	;;
10358      esac
10359      link_all_deplibs=yes
10360      ;;
10361
10362    sunos4*)
10363      if test sequent = "$host_vendor"; then
10364	# Use $CC to link under sequent, because it throws in some extra .o
10365	# files that make .init and .fini sections work.
10366	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10367      else
10368	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10369      fi
10370      hardcode_libdir_flag_spec='-L$libdir'
10371      hardcode_direct=yes
10372      hardcode_minus_L=yes
10373      hardcode_shlibpath_var=no
10374      ;;
10375
10376    sysv4)
10377      case $host_vendor in
10378	sni)
10379	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380	  hardcode_direct=yes # is this really true???
10381	;;
10382	siemens)
10383	  ## LD is ld it makes a PLAMLIB
10384	  ## CC just makes a GrossModule.
10385	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10386	  reload_cmds='$CC -r -o $output$reload_objs'
10387	  hardcode_direct=no
10388        ;;
10389	motorola)
10390	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10392	;;
10393      esac
10394      runpath_var='LD_RUN_PATH'
10395      hardcode_shlibpath_var=no
10396      ;;
10397
10398    sysv4.3*)
10399      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400      hardcode_shlibpath_var=no
10401      export_dynamic_flag_spec='-Bexport'
10402      ;;
10403
10404    sysv4*MP*)
10405      if test -d /usr/nec; then
10406	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407	hardcode_shlibpath_var=no
10408	runpath_var=LD_RUN_PATH
10409	hardcode_runpath_var=yes
10410	ld_shlibs=yes
10411      fi
10412      ;;
10413
10414    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10415      no_undefined_flag='$wl-z,text'
10416      archive_cmds_need_lc=no
10417      hardcode_shlibpath_var=no
10418      runpath_var='LD_RUN_PATH'
10419
10420      if test yes = "$GCC"; then
10421	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423      else
10424	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426      fi
10427      ;;
10428
10429    sysv5* | sco3.2v5* | sco5v6*)
10430      # Note: We CANNOT use -z defs as we might desire, because we do not
10431      # link with -lc, and that would cause any symbols used from libc to
10432      # always be unresolved, which means just about no library would
10433      # ever link correctly.  If we're not using GNU ld we use -z text
10434      # though, which does catch some bad symbols but isn't as heavy-handed
10435      # as -z defs.
10436      no_undefined_flag='$wl-z,text'
10437      allow_undefined_flag='$wl-z,nodefs'
10438      archive_cmds_need_lc=no
10439      hardcode_shlibpath_var=no
10440      hardcode_libdir_flag_spec='$wl-R,$libdir'
10441      hardcode_libdir_separator=':'
10442      link_all_deplibs=yes
10443      export_dynamic_flag_spec='$wl-Bexport'
10444      runpath_var='LD_RUN_PATH'
10445
10446      if test yes = "$GCC"; then
10447	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449      else
10450	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452      fi
10453      ;;
10454
10455    uts4*)
10456      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457      hardcode_libdir_flag_spec='-L$libdir'
10458      hardcode_shlibpath_var=no
10459      ;;
10460
10461    *)
10462      ld_shlibs=no
10463      ;;
10464    esac
10465
10466    if test sni = "$host_vendor"; then
10467      case $host in
10468      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10469	export_dynamic_flag_spec='$wl-Blargedynsym'
10470	;;
10471      esac
10472    fi
10473  fi
10474
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10476$as_echo "$ld_shlibs" >&6; }
10477test no = "$ld_shlibs" && can_build_shared=no
10478
10479with_gnu_ld=$with_gnu_ld
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495#
10496# Do we need to explicitly link libc?
10497#
10498case "x$archive_cmds_need_lc" in
10499x|xyes)
10500  # Assume -lc should be added
10501  archive_cmds_need_lc=yes
10502
10503  if test yes,yes = "$GCC,$enable_shared"; then
10504    case $archive_cmds in
10505    *'~'*)
10506      # FIXME: we may have to deal with multi-command sequences.
10507      ;;
10508    '$CC '*)
10509      # Test whether the compiler implicitly links with -lc since on some
10510      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10511      # to ld, don't add -lc before -lgcc.
10512      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10513$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10514if ${lt_cv_archive_cmds_need_lc+:} false; then :
10515  $as_echo_n "(cached) " >&6
10516else
10517  $RM conftest*
10518	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10519
10520	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10521  (eval $ac_compile) 2>&5
10522  ac_status=$?
10523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10524  test $ac_status = 0; } 2>conftest.err; then
10525	  soname=conftest
10526	  lib=conftest
10527	  libobjs=conftest.$ac_objext
10528	  deplibs=
10529	  wl=$lt_prog_compiler_wl
10530	  pic_flag=$lt_prog_compiler_pic
10531	  compiler_flags=-v
10532	  linker_flags=-v
10533	  verstring=
10534	  output_objdir=.
10535	  libname=conftest
10536	  lt_save_allow_undefined_flag=$allow_undefined_flag
10537	  allow_undefined_flag=
10538	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10539  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10540  ac_status=$?
10541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10542  test $ac_status = 0; }
10543	  then
10544	    lt_cv_archive_cmds_need_lc=no
10545	  else
10546	    lt_cv_archive_cmds_need_lc=yes
10547	  fi
10548	  allow_undefined_flag=$lt_save_allow_undefined_flag
10549	else
10550	  cat conftest.err 1>&5
10551	fi
10552	$RM conftest*
10553
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10556$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10557      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10558      ;;
10559    esac
10560  fi
10561  ;;
10562esac
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10716$as_echo_n "checking dynamic linker characteristics... " >&6; }
10717
10718if test yes = "$GCC"; then
10719  case $host_os in
10720    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10721    *) lt_awk_arg='/^libraries:/' ;;
10722  esac
10723  case $host_os in
10724    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10725    *) lt_sed_strip_eq='s|=/|/|g' ;;
10726  esac
10727  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10728  case $lt_search_path_spec in
10729  *\;*)
10730    # if the path contains ";" then we assume it to be the separator
10731    # otherwise default to the standard path separator (i.e. ":") - it is
10732    # assumed that no part of a normal pathname contains ";" but that should
10733    # okay in the real world where ";" in dirpaths is itself problematic.
10734    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10735    ;;
10736  *)
10737    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10738    ;;
10739  esac
10740  # Ok, now we have the path, separated by spaces, we can step through it
10741  # and add multilib dir if necessary...
10742  lt_tmp_lt_search_path_spec=
10743  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10744  # ...but if some path component already ends with the multilib dir we assume
10745  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10746  case "$lt_multi_os_dir; $lt_search_path_spec " in
10747  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10748    lt_multi_os_dir=
10749    ;;
10750  esac
10751  for lt_sys_path in $lt_search_path_spec; do
10752    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10753      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10754    elif test -n "$lt_multi_os_dir"; then
10755      test -d "$lt_sys_path" && \
10756	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10757    fi
10758  done
10759  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10760BEGIN {RS = " "; FS = "/|\n";} {
10761  lt_foo = "";
10762  lt_count = 0;
10763  for (lt_i = NF; lt_i > 0; lt_i--) {
10764    if ($lt_i != "" && $lt_i != ".") {
10765      if ($lt_i == "..") {
10766        lt_count++;
10767      } else {
10768        if (lt_count == 0) {
10769          lt_foo = "/" $lt_i lt_foo;
10770        } else {
10771          lt_count--;
10772        }
10773      }
10774    }
10775  }
10776  if (lt_foo != "") { lt_freq[lt_foo]++; }
10777  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10778}'`
10779  # AWK program above erroneously prepends '/' to C:/dos/paths
10780  # for these hosts.
10781  case $host_os in
10782    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10783      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10784  esac
10785  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10786else
10787  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10788fi
10789library_names_spec=
10790libname_spec='lib$name'
10791soname_spec=
10792shrext_cmds=.so
10793postinstall_cmds=
10794postuninstall_cmds=
10795finish_cmds=
10796finish_eval=
10797shlibpath_var=
10798shlibpath_overrides_runpath=unknown
10799version_type=none
10800dynamic_linker="$host_os ld.so"
10801sys_lib_dlsearch_path_spec="/lib /usr/lib"
10802need_lib_prefix=unknown
10803hardcode_into_libs=no
10804
10805# when you set need_version to no, make sure it does not cause -set_version
10806# flags to be left without arguments
10807need_version=unknown
10808
10809
10810
10811case $host_os in
10812aix3*)
10813  version_type=linux # correct to gnu/linux during the next big refactor
10814  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10815  shlibpath_var=LIBPATH
10816
10817  # AIX 3 has no versioning support, so we append a major version to the name.
10818  soname_spec='$libname$release$shared_ext$major'
10819  ;;
10820
10821aix[4-9]*)
10822  version_type=linux # correct to gnu/linux during the next big refactor
10823  need_lib_prefix=no
10824  need_version=no
10825  hardcode_into_libs=yes
10826  if test ia64 = "$host_cpu"; then
10827    # AIX 5 supports IA64
10828    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10829    shlibpath_var=LD_LIBRARY_PATH
10830  else
10831    # With GCC up to 2.95.x, collect2 would create an import file
10832    # for dependence libraries.  The import file would start with
10833    # the line '#! .'.  This would cause the generated library to
10834    # depend on '.', always an invalid library.  This was fixed in
10835    # development snapshots of GCC prior to 3.0.
10836    case $host_os in
10837      aix4 | aix4.[01] | aix4.[01].*)
10838      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10839	   echo ' yes '
10840	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10841	:
10842      else
10843	can_build_shared=no
10844      fi
10845      ;;
10846    esac
10847    # Using Import Files as archive members, it is possible to support
10848    # filename-based versioning of shared library archives on AIX. While
10849    # this would work for both with and without runtime linking, it will
10850    # prevent static linking of such archives. So we do filename-based
10851    # shared library versioning with .so extension only, which is used
10852    # when both runtime linking and shared linking is enabled.
10853    # Unfortunately, runtime linking may impact performance, so we do
10854    # not want this to be the default eventually. Also, we use the
10855    # versioned .so libs for executables only if there is the -brtl
10856    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10857    # To allow for filename-based versioning support, we need to create
10858    # libNAME.so.V as an archive file, containing:
10859    # *) an Import File, referring to the versioned filename of the
10860    #    archive as well as the shared archive member, telling the
10861    #    bitwidth (32 or 64) of that shared object, and providing the
10862    #    list of exported symbols of that shared object, eventually
10863    #    decorated with the 'weak' keyword
10864    # *) the shared object with the F_LOADONLY flag set, to really avoid
10865    #    it being seen by the linker.
10866    # At run time we better use the real file rather than another symlink,
10867    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10868
10869    case $with_aix_soname,$aix_use_runtimelinking in
10870    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10871    # soname into executable. Probably we can add versioning support to
10872    # collect2, so additional links can be useful in future.
10873    aix,yes) # traditional libtool
10874      dynamic_linker='AIX unversionable lib.so'
10875      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10876      # instead of lib<name>.a to let people know that these are not
10877      # typical AIX shared libraries.
10878      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879      ;;
10880    aix,no) # traditional AIX only
10881      dynamic_linker='AIX lib.a(lib.so.V)'
10882      # We preserve .a as extension for shared libraries through AIX4.2
10883      # and later when we are not doing run time linking.
10884      library_names_spec='$libname$release.a $libname.a'
10885      soname_spec='$libname$release$shared_ext$major'
10886      ;;
10887    svr4,*) # full svr4 only
10888      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10889      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10890      # We do not specify a path in Import Files, so LIBPATH fires.
10891      shlibpath_overrides_runpath=yes
10892      ;;
10893    *,yes) # both, prefer svr4
10894      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10895      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10896      # unpreferred sharedlib libNAME.a needs extra handling
10897      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"'
10898      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"'
10899      # We do not specify a path in Import Files, so LIBPATH fires.
10900      shlibpath_overrides_runpath=yes
10901      ;;
10902    *,no) # both, prefer aix
10903      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10904      library_names_spec='$libname$release.a $libname.a'
10905      soname_spec='$libname$release$shared_ext$major'
10906      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10907      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)'
10908      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"'
10909      ;;
10910    esac
10911    shlibpath_var=LIBPATH
10912  fi
10913  ;;
10914
10915amigaos*)
10916  case $host_cpu in
10917  powerpc)
10918    # Since July 2007 AmigaOS4 officially supports .so libraries.
10919    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10920    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921    ;;
10922  m68k)
10923    library_names_spec='$libname.ixlibrary $libname.a'
10924    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10925    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'
10926    ;;
10927  esac
10928  ;;
10929
10930beos*)
10931  library_names_spec='$libname$shared_ext'
10932  dynamic_linker="$host_os ld.so"
10933  shlibpath_var=LIBRARY_PATH
10934  ;;
10935
10936bsdi[45]*)
10937  version_type=linux # correct to gnu/linux during the next big refactor
10938  need_version=no
10939  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10940  soname_spec='$libname$release$shared_ext$major'
10941  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10942  shlibpath_var=LD_LIBRARY_PATH
10943  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10944  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10945  # the default ld.so.conf also contains /usr/contrib/lib and
10946  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10947  # libtool to hard-code these into programs
10948  ;;
10949
10950cygwin* | mingw* | pw32* | cegcc*)
10951  version_type=windows
10952  shrext_cmds=.dll
10953  need_version=no
10954  need_lib_prefix=no
10955
10956  case $GCC,$cc_basename in
10957  yes,*)
10958    # gcc
10959    library_names_spec='$libname.dll.a'
10960    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10961    postinstall_cmds='base_file=`basename \$file`~
10962      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10963      dldir=$destdir/`dirname \$dlpath`~
10964      test -d \$dldir || mkdir -p \$dldir~
10965      $install_prog $dir/$dlname \$dldir/$dlname~
10966      chmod a+x \$dldir/$dlname~
10967      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10968        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10969      fi'
10970    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10971      dlpath=$dir/\$dldll~
10972       $RM \$dlpath'
10973    shlibpath_overrides_runpath=yes
10974
10975    case $host_os in
10976    cygwin*)
10977      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10978      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10979
10980      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10981      ;;
10982    mingw* | cegcc*)
10983      # MinGW DLLs use traditional 'lib' prefix
10984      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10985      ;;
10986    pw32*)
10987      # pw32 DLLs use 'pw' prefix rather than 'lib'
10988      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10989      ;;
10990    esac
10991    dynamic_linker='Win32 ld.exe'
10992    ;;
10993
10994  *,cl*)
10995    # Native MSVC
10996    libname_spec='$name'
10997    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10998    library_names_spec='$libname.dll.lib'
10999
11000    case $build_os in
11001    mingw*)
11002      sys_lib_search_path_spec=
11003      lt_save_ifs=$IFS
11004      IFS=';'
11005      for lt_path in $LIB
11006      do
11007        IFS=$lt_save_ifs
11008        # Let DOS variable expansion print the short 8.3 style file name.
11009        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11010        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11011      done
11012      IFS=$lt_save_ifs
11013      # Convert to MSYS style.
11014      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11015      ;;
11016    cygwin*)
11017      # Convert to unix form, then to dos form, then back to unix form
11018      # but this time dos style (no spaces!) so that the unix form looks
11019      # like /cygdrive/c/PROGRA~1:/cygdr...
11020      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11021      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11022      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11023      ;;
11024    *)
11025      sys_lib_search_path_spec=$LIB
11026      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11027        # It is most probably a Windows format PATH.
11028        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11029      else
11030        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031      fi
11032      # FIXME: find the short name or the path components, as spaces are
11033      # common. (e.g. "Program Files" -> "PROGRA~1")
11034      ;;
11035    esac
11036
11037    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11038    postinstall_cmds='base_file=`basename \$file`~
11039      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11040      dldir=$destdir/`dirname \$dlpath`~
11041      test -d \$dldir || mkdir -p \$dldir~
11042      $install_prog $dir/$dlname \$dldir/$dlname'
11043    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11044      dlpath=$dir/\$dldll~
11045       $RM \$dlpath'
11046    shlibpath_overrides_runpath=yes
11047    dynamic_linker='Win32 link.exe'
11048    ;;
11049
11050  *)
11051    # Assume MSVC wrapper
11052    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11053    dynamic_linker='Win32 ld.exe'
11054    ;;
11055  esac
11056  # FIXME: first we should search . and the directory the executable is in
11057  shlibpath_var=PATH
11058  ;;
11059
11060darwin* | rhapsody*)
11061  dynamic_linker="$host_os dyld"
11062  version_type=darwin
11063  need_lib_prefix=no
11064  need_version=no
11065  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11066  soname_spec='$libname$release$major$shared_ext'
11067  shlibpath_overrides_runpath=yes
11068  shlibpath_var=DYLD_LIBRARY_PATH
11069  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11070
11071  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11072  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11073  ;;
11074
11075dgux*)
11076  version_type=linux # correct to gnu/linux during the next big refactor
11077  need_lib_prefix=no
11078  need_version=no
11079  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11080  soname_spec='$libname$release$shared_ext$major'
11081  shlibpath_var=LD_LIBRARY_PATH
11082  ;;
11083
11084freebsd* | dragonfly*)
11085  # DragonFly does not have aout.  When/if they implement a new
11086  # versioning mechanism, adjust this.
11087  if test -x /usr/bin/objformat; then
11088    objformat=`/usr/bin/objformat`
11089  else
11090    case $host_os in
11091    freebsd[23].*) objformat=aout ;;
11092    *) objformat=elf ;;
11093    esac
11094  fi
11095  version_type=freebsd-$objformat
11096  case $version_type in
11097    freebsd-elf*)
11098      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099      soname_spec='$libname$release$shared_ext$major'
11100      need_version=no
11101      need_lib_prefix=no
11102      ;;
11103    freebsd-*)
11104      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11105      need_version=yes
11106      ;;
11107  esac
11108  shlibpath_var=LD_LIBRARY_PATH
11109  case $host_os in
11110  freebsd2.*)
11111    shlibpath_overrides_runpath=yes
11112    ;;
11113  freebsd3.[01]* | freebsdelf3.[01]*)
11114    shlibpath_overrides_runpath=yes
11115    hardcode_into_libs=yes
11116    ;;
11117  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11118  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11119    shlibpath_overrides_runpath=no
11120    hardcode_into_libs=yes
11121    ;;
11122  *) # from 4.6 on, and DragonFly
11123    shlibpath_overrides_runpath=yes
11124    hardcode_into_libs=yes
11125    ;;
11126  esac
11127  ;;
11128
11129haiku*)
11130  version_type=linux # correct to gnu/linux during the next big refactor
11131  need_lib_prefix=no
11132  need_version=no
11133  dynamic_linker="$host_os runtime_loader"
11134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135  soname_spec='$libname$release$shared_ext$major'
11136  shlibpath_var=LIBRARY_PATH
11137  shlibpath_overrides_runpath=no
11138  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11139  hardcode_into_libs=yes
11140  ;;
11141
11142hpux9* | hpux10* | hpux11*)
11143  # Give a soname corresponding to the major version so that dld.sl refuses to
11144  # link against other versions.
11145  version_type=sunos
11146  need_lib_prefix=no
11147  need_version=no
11148  case $host_cpu in
11149  ia64*)
11150    shrext_cmds='.so'
11151    hardcode_into_libs=yes
11152    dynamic_linker="$host_os dld.so"
11153    shlibpath_var=LD_LIBRARY_PATH
11154    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11155    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156    soname_spec='$libname$release$shared_ext$major'
11157    if test 32 = "$HPUX_IA64_MODE"; then
11158      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11159      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11160    else
11161      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11162      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11163    fi
11164    ;;
11165  hppa*64*)
11166    shrext_cmds='.sl'
11167    hardcode_into_libs=yes
11168    dynamic_linker="$host_os dld.sl"
11169    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11170    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11171    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11172    soname_spec='$libname$release$shared_ext$major'
11173    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11175    ;;
11176  *)
11177    shrext_cmds='.sl'
11178    dynamic_linker="$host_os dld.sl"
11179    shlibpath_var=SHLIB_PATH
11180    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11181    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11182    soname_spec='$libname$release$shared_ext$major'
11183    ;;
11184  esac
11185  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11186  postinstall_cmds='chmod 555 $lib'
11187  # or fails outright, so override atomically:
11188  install_override_mode=555
11189  ;;
11190
11191interix[3-9]*)
11192  version_type=linux # correct to gnu/linux during the next big refactor
11193  need_lib_prefix=no
11194  need_version=no
11195  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196  soname_spec='$libname$release$shared_ext$major'
11197  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11198  shlibpath_var=LD_LIBRARY_PATH
11199  shlibpath_overrides_runpath=no
11200  hardcode_into_libs=yes
11201  ;;
11202
11203irix5* | irix6* | nonstopux*)
11204  case $host_os in
11205    nonstopux*) version_type=nonstopux ;;
11206    *)
11207	if test yes = "$lt_cv_prog_gnu_ld"; then
11208		version_type=linux # correct to gnu/linux during the next big refactor
11209	else
11210		version_type=irix
11211	fi ;;
11212  esac
11213  need_lib_prefix=no
11214  need_version=no
11215  soname_spec='$libname$release$shared_ext$major'
11216  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11217  case $host_os in
11218  irix5* | nonstopux*)
11219    libsuff= shlibsuff=
11220    ;;
11221  *)
11222    case $LD in # libtool.m4 will add one of these switches to LD
11223    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11224      libsuff= shlibsuff= libmagic=32-bit;;
11225    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11226      libsuff=32 shlibsuff=N32 libmagic=N32;;
11227    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11228      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11229    *) libsuff= shlibsuff= libmagic=never-match;;
11230    esac
11231    ;;
11232  esac
11233  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11234  shlibpath_overrides_runpath=no
11235  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11236  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11237  hardcode_into_libs=yes
11238  ;;
11239
11240# No shared lib support for Linux oldld, aout, or coff.
11241linux*oldld* | linux*aout* | linux*coff*)
11242  dynamic_linker=no
11243  ;;
11244
11245linux*android*)
11246  version_type=none # Android doesn't support versioned libraries.
11247  need_lib_prefix=no
11248  need_version=no
11249  library_names_spec='$libname$release$shared_ext'
11250  soname_spec='$libname$release$shared_ext'
11251  finish_cmds=
11252  shlibpath_var=LD_LIBRARY_PATH
11253  shlibpath_overrides_runpath=yes
11254
11255  # This implies no fast_install, which is unacceptable.
11256  # Some rework will be needed to allow for fast_install
11257  # before this can be enabled.
11258  hardcode_into_libs=yes
11259
11260  dynamic_linker='Android linker'
11261  # Don't embed -rpath directories since the linker doesn't support them.
11262  hardcode_libdir_flag_spec='-L$libdir'
11263  ;;
11264
11265# This must be glibc/ELF.
11266linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11267  version_type=linux # correct to gnu/linux during the next big refactor
11268  need_lib_prefix=no
11269  need_version=no
11270  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271  soname_spec='$libname$release$shared_ext$major'
11272  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11273  shlibpath_var=LD_LIBRARY_PATH
11274  shlibpath_overrides_runpath=no
11275
11276  # Some binutils ld are patched to set DT_RUNPATH
11277  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11278  $as_echo_n "(cached) " >&6
11279else
11280  lt_cv_shlibpath_overrides_runpath=no
11281    save_LDFLAGS=$LDFLAGS
11282    save_libdir=$libdir
11283    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11284	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h.  */
11287
11288int
11289main ()
11290{
11291
11292  ;
11293  return 0;
11294}
11295_ACEOF
11296if ac_fn_c_try_link "$LINENO"; then :
11297  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11298  lt_cv_shlibpath_overrides_runpath=yes
11299fi
11300fi
11301rm -f core conftest.err conftest.$ac_objext \
11302    conftest$ac_exeext conftest.$ac_ext
11303    LDFLAGS=$save_LDFLAGS
11304    libdir=$save_libdir
11305
11306fi
11307
11308  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11309
11310  # This implies no fast_install, which is unacceptable.
11311  # Some rework will be needed to allow for fast_install
11312  # before this can be enabled.
11313  hardcode_into_libs=yes
11314
11315  # Add ABI-specific directories to the system library path.
11316  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11317
11318  # Ideally, we could use ldconfig to report *all* directores which are
11319  # searched for libraries, however this is still not possible.  Aside from not
11320  # being certain /sbin/ldconfig is available, command
11321  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11322  # even though it is searched at run-time.  Try to do the best guess by
11323  # appending ld.so.conf contents (and includes) to the search path.
11324  if test -f /etc/ld.so.conf; then
11325    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' ' '`
11326    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11327  fi
11328
11329  # We used to test for /lib/ld.so.1 and disable shared libraries on
11330  # powerpc, because MkLinux only supported shared libraries with the
11331  # GNU dynamic linker.  Since this was broken with cross compilers,
11332  # most powerpc-linux boxes support dynamic linking these days and
11333  # people can always --disable-shared, the test was removed, and we
11334  # assume the GNU/Linux dynamic linker is in use.
11335  dynamic_linker='GNU/Linux ld.so'
11336  ;;
11337
11338netbsd*)
11339  version_type=sunos
11340  need_lib_prefix=no
11341  need_version=no
11342  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11343    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11344    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11345    dynamic_linker='NetBSD (a.out) ld.so'
11346  else
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    dynamic_linker='NetBSD ld.elf_so'
11350  fi
11351  shlibpath_var=LD_LIBRARY_PATH
11352  shlibpath_overrides_runpath=yes
11353  hardcode_into_libs=yes
11354  ;;
11355
11356newsos6)
11357  version_type=linux # correct to gnu/linux during the next big refactor
11358  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359  shlibpath_var=LD_LIBRARY_PATH
11360  shlibpath_overrides_runpath=yes
11361  ;;
11362
11363*nto* | *qnx*)
11364  version_type=qnx
11365  need_lib_prefix=no
11366  need_version=no
11367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368  soname_spec='$libname$release$shared_ext$major'
11369  shlibpath_var=LD_LIBRARY_PATH
11370  shlibpath_overrides_runpath=no
11371  hardcode_into_libs=yes
11372  dynamic_linker='ldqnx.so'
11373  ;;
11374
11375openbsd* | bitrig*)
11376  version_type=sunos
11377  sys_lib_dlsearch_path_spec=/usr/lib
11378  need_lib_prefix=no
11379  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11380    need_version=no
11381  else
11382    need_version=yes
11383  fi
11384  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11385  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11386  shlibpath_var=LD_LIBRARY_PATH
11387  shlibpath_overrides_runpath=yes
11388  ;;
11389
11390os2*)
11391  libname_spec='$name'
11392  version_type=windows
11393  shrext_cmds=.dll
11394  need_version=no
11395  need_lib_prefix=no
11396  # OS/2 can only load a DLL with a base name of 8 characters or less.
11397  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11398    v=$($ECHO $release$versuffix | tr -d .-);
11399    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11400    $ECHO $n$v`$shared_ext'
11401  library_names_spec='${libname}_dll.$libext'
11402  dynamic_linker='OS/2 ld.exe'
11403  shlibpath_var=BEGINLIBPATH
11404  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11405  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11406  postinstall_cmds='base_file=`basename \$file`~
11407    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11408    dldir=$destdir/`dirname \$dlpath`~
11409    test -d \$dldir || mkdir -p \$dldir~
11410    $install_prog $dir/$dlname \$dldir/$dlname~
11411    chmod a+x \$dldir/$dlname~
11412    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11413      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11414    fi'
11415  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11416    dlpath=$dir/\$dldll~
11417    $RM \$dlpath'
11418  ;;
11419
11420osf3* | osf4* | osf5*)
11421  version_type=osf
11422  need_lib_prefix=no
11423  need_version=no
11424  soname_spec='$libname$release$shared_ext$major'
11425  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426  shlibpath_var=LD_LIBRARY_PATH
11427  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11428  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11429  ;;
11430
11431rdos*)
11432  dynamic_linker=no
11433  ;;
11434
11435solaris*)
11436  version_type=linux # correct to gnu/linux during the next big refactor
11437  need_lib_prefix=no
11438  need_version=no
11439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440  soname_spec='$libname$release$shared_ext$major'
11441  shlibpath_var=LD_LIBRARY_PATH
11442  shlibpath_overrides_runpath=yes
11443  hardcode_into_libs=yes
11444  # ldd complains unless libraries are executable
11445  postinstall_cmds='chmod +x $lib'
11446  ;;
11447
11448sunos4*)
11449  version_type=sunos
11450  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11451  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11452  shlibpath_var=LD_LIBRARY_PATH
11453  shlibpath_overrides_runpath=yes
11454  if test yes = "$with_gnu_ld"; then
11455    need_lib_prefix=no
11456  fi
11457  need_version=yes
11458  ;;
11459
11460sysv4 | sysv4.3*)
11461  version_type=linux # correct to gnu/linux during the next big refactor
11462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463  soname_spec='$libname$release$shared_ext$major'
11464  shlibpath_var=LD_LIBRARY_PATH
11465  case $host_vendor in
11466    sni)
11467      shlibpath_overrides_runpath=no
11468      need_lib_prefix=no
11469      runpath_var=LD_RUN_PATH
11470      ;;
11471    siemens)
11472      need_lib_prefix=no
11473      ;;
11474    motorola)
11475      need_lib_prefix=no
11476      need_version=no
11477      shlibpath_overrides_runpath=no
11478      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11479      ;;
11480  esac
11481  ;;
11482
11483sysv4*MP*)
11484  if test -d /usr/nec; then
11485    version_type=linux # correct to gnu/linux during the next big refactor
11486    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11487    soname_spec='$libname$shared_ext.$major'
11488    shlibpath_var=LD_LIBRARY_PATH
11489  fi
11490  ;;
11491
11492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11493  version_type=sco
11494  need_lib_prefix=no
11495  need_version=no
11496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11497  soname_spec='$libname$release$shared_ext$major'
11498  shlibpath_var=LD_LIBRARY_PATH
11499  shlibpath_overrides_runpath=yes
11500  hardcode_into_libs=yes
11501  if test yes = "$with_gnu_ld"; then
11502    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11503  else
11504    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11505    case $host_os in
11506      sco3.2v5*)
11507        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11508	;;
11509    esac
11510  fi
11511  sys_lib_dlsearch_path_spec='/usr/lib'
11512  ;;
11513
11514tpf*)
11515  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11516  version_type=linux # correct to gnu/linux during the next big refactor
11517  need_lib_prefix=no
11518  need_version=no
11519  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11520  shlibpath_var=LD_LIBRARY_PATH
11521  shlibpath_overrides_runpath=no
11522  hardcode_into_libs=yes
11523  ;;
11524
11525uts4*)
11526  version_type=linux # correct to gnu/linux during the next big refactor
11527  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528  soname_spec='$libname$release$shared_ext$major'
11529  shlibpath_var=LD_LIBRARY_PATH
11530  ;;
11531
11532*)
11533  dynamic_linker=no
11534  ;;
11535esac
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11537$as_echo "$dynamic_linker" >&6; }
11538test no = "$dynamic_linker" && can_build_shared=no
11539
11540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11541if test yes = "$GCC"; then
11542  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11543fi
11544
11545if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11546  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11547fi
11548
11549if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11550  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11551fi
11552
11553# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11554configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11555
11556# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11557func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11558
11559# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11560configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11659$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11660hardcode_action=
11661if test -n "$hardcode_libdir_flag_spec" ||
11662   test -n "$runpath_var" ||
11663   test yes = "$hardcode_automatic"; then
11664
11665  # We can hardcode non-existent directories.
11666  if test no != "$hardcode_direct" &&
11667     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11668     # have to relink, otherwise we might link with an installed library
11669     # when we should be linking with a yet-to-be-installed one
11670     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11671     test no != "$hardcode_minus_L"; then
11672    # Linking always hardcodes the temporary library directory.
11673    hardcode_action=relink
11674  else
11675    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11676    hardcode_action=immediate
11677  fi
11678else
11679  # We cannot hardcode anything, or else we can only hardcode existing
11680  # directories.
11681  hardcode_action=unsupported
11682fi
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11684$as_echo "$hardcode_action" >&6; }
11685
11686if test relink = "$hardcode_action" ||
11687   test yes = "$inherit_rpath"; then
11688  # Fast installation is not supported
11689  enable_fast_install=no
11690elif test yes = "$shlibpath_overrides_runpath" ||
11691     test no = "$enable_shared"; then
11692  # Fast installation is not necessary
11693  enable_fast_install=needless
11694fi
11695
11696
11697
11698
11699
11700
11701  if test yes != "$enable_dlopen"; then
11702  enable_dlopen=unknown
11703  enable_dlopen_self=unknown
11704  enable_dlopen_self_static=unknown
11705else
11706  lt_cv_dlopen=no
11707  lt_cv_dlopen_libs=
11708
11709  case $host_os in
11710  beos*)
11711    lt_cv_dlopen=load_add_on
11712    lt_cv_dlopen_libs=
11713    lt_cv_dlopen_self=yes
11714    ;;
11715
11716  mingw* | pw32* | cegcc*)
11717    lt_cv_dlopen=LoadLibrary
11718    lt_cv_dlopen_libs=
11719    ;;
11720
11721  cygwin*)
11722    lt_cv_dlopen=dlopen
11723    lt_cv_dlopen_libs=
11724    ;;
11725
11726  darwin*)
11727    # if libdl is installed we need to link against it
11728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11729$as_echo_n "checking for dlopen in -ldl... " >&6; }
11730if ${ac_cv_lib_dl_dlopen+:} false; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  ac_check_lib_save_LIBS=$LIBS
11734LIBS="-ldl  $LIBS"
11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h.  */
11737
11738/* Override any GCC internal prototype to avoid an error.
11739   Use char because int might match the return type of a GCC
11740   builtin and then its argument prototype would still apply.  */
11741#ifdef __cplusplus
11742extern "C"
11743#endif
11744char dlopen ();
11745int
11746main ()
11747{
11748return dlopen ();
11749  ;
11750  return 0;
11751}
11752_ACEOF
11753if ac_fn_c_try_link "$LINENO"; then :
11754  ac_cv_lib_dl_dlopen=yes
11755else
11756  ac_cv_lib_dl_dlopen=no
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759    conftest$ac_exeext conftest.$ac_ext
11760LIBS=$ac_check_lib_save_LIBS
11761fi
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11763$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11764if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11765  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11766else
11767
11768    lt_cv_dlopen=dyld
11769    lt_cv_dlopen_libs=
11770    lt_cv_dlopen_self=yes
11771
11772fi
11773
11774    ;;
11775
11776  tpf*)
11777    # Don't try to run any link tests for TPF.  We know it's impossible
11778    # because TPF is a cross-compiler, and we know how we open DSOs.
11779    lt_cv_dlopen=dlopen
11780    lt_cv_dlopen_libs=
11781    lt_cv_dlopen_self=no
11782    ;;
11783
11784  *)
11785    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11786if test "x$ac_cv_func_shl_load" = xyes; then :
11787  lt_cv_dlopen=shl_load
11788else
11789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11790$as_echo_n "checking for shl_load in -ldld... " >&6; }
11791if ${ac_cv_lib_dld_shl_load+:} false; then :
11792  $as_echo_n "(cached) " >&6
11793else
11794  ac_check_lib_save_LIBS=$LIBS
11795LIBS="-ldld  $LIBS"
11796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797/* end confdefs.h.  */
11798
11799/* Override any GCC internal prototype to avoid an error.
11800   Use char because int might match the return type of a GCC
11801   builtin and then its argument prototype would still apply.  */
11802#ifdef __cplusplus
11803extern "C"
11804#endif
11805char shl_load ();
11806int
11807main ()
11808{
11809return shl_load ();
11810  ;
11811  return 0;
11812}
11813_ACEOF
11814if ac_fn_c_try_link "$LINENO"; then :
11815  ac_cv_lib_dld_shl_load=yes
11816else
11817  ac_cv_lib_dld_shl_load=no
11818fi
11819rm -f core conftest.err conftest.$ac_objext \
11820    conftest$ac_exeext conftest.$ac_ext
11821LIBS=$ac_check_lib_save_LIBS
11822fi
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11824$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11825if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11826  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11827else
11828  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11829if test "x$ac_cv_func_dlopen" = xyes; then :
11830  lt_cv_dlopen=dlopen
11831else
11832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11833$as_echo_n "checking for dlopen in -ldl... " >&6; }
11834if ${ac_cv_lib_dl_dlopen+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  ac_check_lib_save_LIBS=$LIBS
11838LIBS="-ldl  $LIBS"
11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842/* Override any GCC internal prototype to avoid an error.
11843   Use char because int might match the return type of a GCC
11844   builtin and then its argument prototype would still apply.  */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848char dlopen ();
11849int
11850main ()
11851{
11852return dlopen ();
11853  ;
11854  return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then :
11858  ac_cv_lib_dl_dlopen=yes
11859else
11860  ac_cv_lib_dl_dlopen=no
11861fi
11862rm -f core conftest.err conftest.$ac_objext \
11863    conftest$ac_exeext conftest.$ac_ext
11864LIBS=$ac_check_lib_save_LIBS
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11867$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11868if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11869  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11870else
11871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11872$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11873if ${ac_cv_lib_svld_dlopen+:} false; then :
11874  $as_echo_n "(cached) " >&6
11875else
11876  ac_check_lib_save_LIBS=$LIBS
11877LIBS="-lsvld  $LIBS"
11878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880
11881/* Override any GCC internal prototype to avoid an error.
11882   Use char because int might match the return type of a GCC
11883   builtin and then its argument prototype would still apply.  */
11884#ifdef __cplusplus
11885extern "C"
11886#endif
11887char dlopen ();
11888int
11889main ()
11890{
11891return dlopen ();
11892  ;
11893  return 0;
11894}
11895_ACEOF
11896if ac_fn_c_try_link "$LINENO"; then :
11897  ac_cv_lib_svld_dlopen=yes
11898else
11899  ac_cv_lib_svld_dlopen=no
11900fi
11901rm -f core conftest.err conftest.$ac_objext \
11902    conftest$ac_exeext conftest.$ac_ext
11903LIBS=$ac_check_lib_save_LIBS
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11906$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11907if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11908  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11909else
11910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11911$as_echo_n "checking for dld_link in -ldld... " >&6; }
11912if ${ac_cv_lib_dld_dld_link+:} false; then :
11913  $as_echo_n "(cached) " >&6
11914else
11915  ac_check_lib_save_LIBS=$LIBS
11916LIBS="-ldld  $LIBS"
11917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h.  */
11919
11920/* Override any GCC internal prototype to avoid an error.
11921   Use char because int might match the return type of a GCC
11922   builtin and then its argument prototype would still apply.  */
11923#ifdef __cplusplus
11924extern "C"
11925#endif
11926char dld_link ();
11927int
11928main ()
11929{
11930return dld_link ();
11931  ;
11932  return 0;
11933}
11934_ACEOF
11935if ac_fn_c_try_link "$LINENO"; then :
11936  ac_cv_lib_dld_dld_link=yes
11937else
11938  ac_cv_lib_dld_dld_link=no
11939fi
11940rm -f core conftest.err conftest.$ac_objext \
11941    conftest$ac_exeext conftest.$ac_ext
11942LIBS=$ac_check_lib_save_LIBS
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11945$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11946if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11947  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11948fi
11949
11950
11951fi
11952
11953
11954fi
11955
11956
11957fi
11958
11959
11960fi
11961
11962
11963fi
11964
11965    ;;
11966  esac
11967
11968  if test no = "$lt_cv_dlopen"; then
11969    enable_dlopen=no
11970  else
11971    enable_dlopen=yes
11972  fi
11973
11974  case $lt_cv_dlopen in
11975  dlopen)
11976    save_CPPFLAGS=$CPPFLAGS
11977    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11978
11979    save_LDFLAGS=$LDFLAGS
11980    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11981
11982    save_LIBS=$LIBS
11983    LIBS="$lt_cv_dlopen_libs $LIBS"
11984
11985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11986$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11987if ${lt_cv_dlopen_self+:} false; then :
11988  $as_echo_n "(cached) " >&6
11989else
11990  	  if test yes = "$cross_compiling"; then :
11991  lt_cv_dlopen_self=cross
11992else
11993  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11994  lt_status=$lt_dlunknown
11995  cat > conftest.$ac_ext <<_LT_EOF
11996#line $LINENO "configure"
11997#include "confdefs.h"
11998
11999#if HAVE_DLFCN_H
12000#include <dlfcn.h>
12001#endif
12002
12003#include <stdio.h>
12004
12005#ifdef RTLD_GLOBAL
12006#  define LT_DLGLOBAL		RTLD_GLOBAL
12007#else
12008#  ifdef DL_GLOBAL
12009#    define LT_DLGLOBAL		DL_GLOBAL
12010#  else
12011#    define LT_DLGLOBAL		0
12012#  endif
12013#endif
12014
12015/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12016   find out it does not work in some platform. */
12017#ifndef LT_DLLAZY_OR_NOW
12018#  ifdef RTLD_LAZY
12019#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12020#  else
12021#    ifdef DL_LAZY
12022#      define LT_DLLAZY_OR_NOW		DL_LAZY
12023#    else
12024#      ifdef RTLD_NOW
12025#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12026#      else
12027#        ifdef DL_NOW
12028#          define LT_DLLAZY_OR_NOW	DL_NOW
12029#        else
12030#          define LT_DLLAZY_OR_NOW	0
12031#        endif
12032#      endif
12033#    endif
12034#  endif
12035#endif
12036
12037/* When -fvisibility=hidden is used, assume the code has been annotated
12038   correspondingly for the symbols needed.  */
12039#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12040int fnord () __attribute__((visibility("default")));
12041#endif
12042
12043int fnord () { return 42; }
12044int main ()
12045{
12046  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12047  int status = $lt_dlunknown;
12048
12049  if (self)
12050    {
12051      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12052      else
12053        {
12054	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12055          else puts (dlerror ());
12056	}
12057      /* dlclose (self); */
12058    }
12059  else
12060    puts (dlerror ());
12061
12062  return status;
12063}
12064_LT_EOF
12065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12066  (eval $ac_link) 2>&5
12067  ac_status=$?
12068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12069  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12070    (./conftest; exit; ) >&5 2>/dev/null
12071    lt_status=$?
12072    case x$lt_status in
12073      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12074      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12075      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12076    esac
12077  else :
12078    # compilation failed
12079    lt_cv_dlopen_self=no
12080  fi
12081fi
12082rm -fr conftest*
12083
12084
12085fi
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12087$as_echo "$lt_cv_dlopen_self" >&6; }
12088
12089    if test yes = "$lt_cv_dlopen_self"; then
12090      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12091      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12092$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12093if ${lt_cv_dlopen_self_static+:} false; then :
12094  $as_echo_n "(cached) " >&6
12095else
12096  	  if test yes = "$cross_compiling"; then :
12097  lt_cv_dlopen_self_static=cross
12098else
12099  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12100  lt_status=$lt_dlunknown
12101  cat > conftest.$ac_ext <<_LT_EOF
12102#line $LINENO "configure"
12103#include "confdefs.h"
12104
12105#if HAVE_DLFCN_H
12106#include <dlfcn.h>
12107#endif
12108
12109#include <stdio.h>
12110
12111#ifdef RTLD_GLOBAL
12112#  define LT_DLGLOBAL		RTLD_GLOBAL
12113#else
12114#  ifdef DL_GLOBAL
12115#    define LT_DLGLOBAL		DL_GLOBAL
12116#  else
12117#    define LT_DLGLOBAL		0
12118#  endif
12119#endif
12120
12121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12122   find out it does not work in some platform. */
12123#ifndef LT_DLLAZY_OR_NOW
12124#  ifdef RTLD_LAZY
12125#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12126#  else
12127#    ifdef DL_LAZY
12128#      define LT_DLLAZY_OR_NOW		DL_LAZY
12129#    else
12130#      ifdef RTLD_NOW
12131#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12132#      else
12133#        ifdef DL_NOW
12134#          define LT_DLLAZY_OR_NOW	DL_NOW
12135#        else
12136#          define LT_DLLAZY_OR_NOW	0
12137#        endif
12138#      endif
12139#    endif
12140#  endif
12141#endif
12142
12143/* When -fvisibility=hidden is used, assume the code has been annotated
12144   correspondingly for the symbols needed.  */
12145#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12146int fnord () __attribute__((visibility("default")));
12147#endif
12148
12149int fnord () { return 42; }
12150int main ()
12151{
12152  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12153  int status = $lt_dlunknown;
12154
12155  if (self)
12156    {
12157      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12158      else
12159        {
12160	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12161          else puts (dlerror ());
12162	}
12163      /* dlclose (self); */
12164    }
12165  else
12166    puts (dlerror ());
12167
12168  return status;
12169}
12170_LT_EOF
12171  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12172  (eval $ac_link) 2>&5
12173  ac_status=$?
12174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12175  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12176    (./conftest; exit; ) >&5 2>/dev/null
12177    lt_status=$?
12178    case x$lt_status in
12179      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12180      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12181      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12182    esac
12183  else :
12184    # compilation failed
12185    lt_cv_dlopen_self_static=no
12186  fi
12187fi
12188rm -fr conftest*
12189
12190
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12193$as_echo "$lt_cv_dlopen_self_static" >&6; }
12194    fi
12195
12196    CPPFLAGS=$save_CPPFLAGS
12197    LDFLAGS=$save_LDFLAGS
12198    LIBS=$save_LIBS
12199    ;;
12200  esac
12201
12202  case $lt_cv_dlopen_self in
12203  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12204  *) enable_dlopen_self=unknown ;;
12205  esac
12206
12207  case $lt_cv_dlopen_self_static in
12208  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12209  *) enable_dlopen_self_static=unknown ;;
12210  esac
12211fi
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229striplib=
12230old_striplib=
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12232$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12233if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12234  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12235  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237$as_echo "yes" >&6; }
12238else
12239# FIXME - insert some real tests, host_os isn't really good enough
12240  case $host_os in
12241  darwin*)
12242    if test -n "$STRIP"; then
12243      striplib="$STRIP -x"
12244      old_striplib="$STRIP -S"
12245      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246$as_echo "yes" >&6; }
12247    else
12248      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249$as_echo "no" >&6; }
12250    fi
12251    ;;
12252  *)
12253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255    ;;
12256  esac
12257fi
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270  # Report what library types will actually be built
12271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12272$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12274$as_echo "$can_build_shared" >&6; }
12275
12276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12277$as_echo_n "checking whether to build shared libraries... " >&6; }
12278  test no = "$can_build_shared" && enable_shared=no
12279
12280  # On AIX, shared libraries and static libraries use the same namespace, and
12281  # are all built from PIC.
12282  case $host_os in
12283  aix3*)
12284    test yes = "$enable_shared" && enable_static=no
12285    if test -n "$RANLIB"; then
12286      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12287      postinstall_cmds='$RANLIB $lib'
12288    fi
12289    ;;
12290
12291  aix[4-9]*)
12292    if test ia64 != "$host_cpu"; then
12293      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12294      yes,aix,yes) ;;			# shared object as lib.so file only
12295      yes,svr4,*) ;;			# shared object as lib.so archive member only
12296      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12297      esac
12298    fi
12299    ;;
12300  esac
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12302$as_echo "$enable_shared" >&6; }
12303
12304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12305$as_echo_n "checking whether to build static libraries... " >&6; }
12306  # Make sure either enable_shared or enable_static is yes.
12307  test yes = "$enable_shared" || enable_static=yes
12308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12309$as_echo "$enable_static" >&6; }
12310
12311
12312
12313
12314fi
12315ac_ext=c
12316ac_cpp='$CPP $CPPFLAGS'
12317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320
12321CC=$lt_save_CC
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337        ac_config_commands="$ac_config_commands libtool"
12338
12339
12340
12341
12342# Only expand once:
12343
12344
12345
12346if test "$GCC" = yes
12347then
12348	CFLAGS="-Wall $CFLAGS"
12349fi
12350
12351CFLAGS="$CFLAGS -I$srcdir/.. -I.."
12352
12353
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12355$as_echo_n "checking for ANSI C header files... " >&6; }
12356if ${ac_cv_header_stdc+:} false; then :
12357  $as_echo_n "(cached) " >&6
12358else
12359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h.  */
12361#include <stdlib.h>
12362#include <stdarg.h>
12363#include <string.h>
12364#include <float.h>
12365
12366int
12367main ()
12368{
12369
12370  ;
12371  return 0;
12372}
12373_ACEOF
12374if ac_fn_c_try_compile "$LINENO"; then :
12375  ac_cv_header_stdc=yes
12376else
12377  ac_cv_header_stdc=no
12378fi
12379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380
12381if test $ac_cv_header_stdc = yes; then
12382  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h.  */
12385#include <string.h>
12386
12387_ACEOF
12388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12389  $EGREP "memchr" >/dev/null 2>&1; then :
12390
12391else
12392  ac_cv_header_stdc=no
12393fi
12394rm -f conftest*
12395
12396fi
12397
12398if test $ac_cv_header_stdc = yes; then
12399  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401/* end confdefs.h.  */
12402#include <stdlib.h>
12403
12404_ACEOF
12405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12406  $EGREP "free" >/dev/null 2>&1; then :
12407
12408else
12409  ac_cv_header_stdc=no
12410fi
12411rm -f conftest*
12412
12413fi
12414
12415if test $ac_cv_header_stdc = yes; then
12416  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12417  if test "$cross_compiling" = yes; then :
12418  :
12419else
12420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421/* end confdefs.h.  */
12422#include <ctype.h>
12423#include <stdlib.h>
12424#if ((' ' & 0x0FF) == 0x020)
12425# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12426# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12427#else
12428# define ISLOWER(c) \
12429		   (('a' <= (c) && (c) <= 'i') \
12430		     || ('j' <= (c) && (c) <= 'r') \
12431		     || ('s' <= (c) && (c) <= 'z'))
12432# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12433#endif
12434
12435#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12436int
12437main ()
12438{
12439  int i;
12440  for (i = 0; i < 256; i++)
12441    if (XOR (islower (i), ISLOWER (i))
12442	|| toupper (i) != TOUPPER (i))
12443      return 2;
12444  return 0;
12445}
12446_ACEOF
12447if ac_fn_c_try_run "$LINENO"; then :
12448
12449else
12450  ac_cv_header_stdc=no
12451fi
12452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12453  conftest.$ac_objext conftest.beam conftest.$ac_ext
12454fi
12455
12456fi
12457fi
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12459$as_echo "$ac_cv_header_stdc" >&6; }
12460if test $ac_cv_header_stdc = yes; then
12461
12462$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12463
12464fi
12465
12466
12467for ac_header in sys/types.h
12468do :
12469  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12470if test "x$ac_cv_header_sys_types_h" = xyes; then :
12471  cat >>confdefs.h <<_ACEOF
12472#define HAVE_SYS_TYPES_H 1
12473_ACEOF
12474
12475fi
12476
12477done
12478
12479
12480
12481
12482# Check whether --with-int32 was given.
12483if test "${with_int32+set}" = set; then :
12484  withval=$with_int32; int32="$withval"
12485else
12486
12487
12488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
12489$as_echo_n "checking for uint32_t... " >&6; }
12490
12491		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h.  */
12493
12494#if HAVE_SYS_TYPES_H
12495#include	<sys/types.h>
12496#endif
12497
12498int
12499main ()
12500{
12501
12502			uint32_t	i=0;
12503
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508if ac_fn_c_try_compile "$LINENO"; then :
12509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12510$as_echo "yes" >&6; } ; int32="uint32_t"
12511else
12512
12513
12514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
12516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
12517$as_echo_n "checking for u_int_32_t... " >&6; }
12518
12519		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521
12522#if HAVE_SYS_TYPES_H
12523#include	<sys/types.h>
12524#endif
12525
12526int
12527main ()
12528{
12529
12530				u_int32_t	i=0;
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_compile "$LINENO"; then :
12537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12538$as_echo "yes" >&6; }; int32="u_int32_t"
12539else
12540
12541
12542			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
12544
12545			# The cast to long int works around a bug in the HP C Compiler
12546# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12547# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12548# This bug is HP SR number 8606223364.
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12550$as_echo_n "checking size of unsigned... " >&6; }
12551if ${ac_cv_sizeof_unsigned+:} false; then :
12552  $as_echo_n "(cached) " >&6
12553else
12554  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
12555
12556else
12557  if test "$ac_cv_type_unsigned" = yes; then
12558     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12560as_fn_error 77 "cannot compute sizeof (unsigned)
12561See \`config.log' for more details" "$LINENO" 5; }
12562   else
12563     ac_cv_sizeof_unsigned=0
12564   fi
12565fi
12566
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12569$as_echo "$ac_cv_sizeof_unsigned" >&6; }
12570
12571
12572
12573cat >>confdefs.h <<_ACEOF
12574#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12575_ACEOF
12576
12577
12578			if test "$ac_cv_sizeof_unsigned" != 4
12579			then
12580				# The cast to long int works around a bug in the HP C Compiler
12581# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12582# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12583# This bug is HP SR number 8606223364.
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12585$as_echo_n "checking size of unsigned long... " >&6; }
12586if ${ac_cv_sizeof_unsigned_long+:} false; then :
12587  $as_echo_n "(cached) " >&6
12588else
12589  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
12590
12591else
12592  if test "$ac_cv_type_unsigned_long" = yes; then
12593     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12595as_fn_error 77 "cannot compute sizeof (unsigned long)
12596See \`config.log' for more details" "$LINENO" 5; }
12597   else
12598     ac_cv_sizeof_unsigned_long=0
12599   fi
12600fi
12601
12602fi
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12604$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12605
12606
12607
12608cat >>confdefs.h <<_ACEOF
12609#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12610_ACEOF
12611
12612
12613				if test "$ac_cv_sizeof_unsigned_long" != 4
12614				then
12615					# The cast to long int works around a bug in the HP C Compiler
12616# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12617# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12618# This bug is HP SR number 8606223364.
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12620$as_echo_n "checking size of unsigned short... " >&6; }
12621if ${ac_cv_sizeof_unsigned_short+:} false; then :
12622  $as_echo_n "(cached) " >&6
12623else
12624  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
12625
12626else
12627  if test "$ac_cv_type_unsigned_short" = yes; then
12628     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12630as_fn_error 77 "cannot compute sizeof (unsigned short)
12631See \`config.log' for more details" "$LINENO" 5; }
12632   else
12633     ac_cv_sizeof_unsigned_short=0
12634   fi
12635fi
12636
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12639$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12640
12641
12642
12643cat >>confdefs.h <<_ACEOF
12644#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12645_ACEOF
12646
12647
12648					if test "$ac_cv_sizeof_unsigned_short" != 4
12649					then
12650						as_fn_error $? "--with-int32 option is required" "$LINENO" 5
12651					fi
12652					int32="unsigned short"
12653				fi
12654				int32="unsigned long"
12655			else
12656				int32="unsigned"
12657			fi
12658
12659fi
12660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661
12662fi
12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664
12665
12666fi
12667
12668UINT32="$int32"
12669
12670
12671cat >>confdefs.h <<_ACEOF
12672#define MD5_WORD $UINT32
12673_ACEOF
12674
12675
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12677$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12678if ${ac_cv_c_const+:} false; then :
12679  $as_echo_n "(cached) " >&6
12680else
12681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682/* end confdefs.h.  */
12683
12684int
12685main ()
12686{
12687
12688#ifndef __cplusplus
12689  /* Ultrix mips cc rejects this sort of thing.  */
12690  typedef int charset[2];
12691  const charset cs = { 0, 0 };
12692  /* SunOS 4.1.1 cc rejects this.  */
12693  char const *const *pcpcc;
12694  char **ppc;
12695  /* NEC SVR4.0.2 mips cc rejects this.  */
12696  struct point {int x, y;};
12697  static struct point const zero = {0,0};
12698  /* AIX XL C 1.02.0.0 rejects this.
12699     It does not let you subtract one const X* pointer from another in
12700     an arm of an if-expression whose if-part is not a constant
12701     expression */
12702  const char *g = "string";
12703  pcpcc = &g + (g ? g-g : 0);
12704  /* HPUX 7.0 cc rejects these. */
12705  ++pcpcc;
12706  ppc = (char**) pcpcc;
12707  pcpcc = (char const *const *) ppc;
12708  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12709    char tx;
12710    char *t = &tx;
12711    char const *s = 0 ? (char *) 0 : (char const *) 0;
12712
12713    *t++ = 0;
12714    if (s) return 0;
12715  }
12716  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12717    int x[] = {25, 17};
12718    const int *foo = &x[0];
12719    ++foo;
12720  }
12721  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12722    typedef const int *iptr;
12723    iptr p = 0;
12724    ++p;
12725  }
12726  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12727       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12728    struct s { int j; const int *ap[3]; } bx;
12729    struct s *b = &bx; b->j = 5;
12730  }
12731  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12732    const int foo = 10;
12733    if (!foo) return 0;
12734  }
12735  return !cs[0] && !zero.x;
12736#endif
12737
12738  ;
12739  return 0;
12740}
12741_ACEOF
12742if ac_fn_c_try_compile "$LINENO"; then :
12743  ac_cv_c_const=yes
12744else
12745  ac_cv_c_const=no
12746fi
12747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12750$as_echo "$ac_cv_c_const" >&6; }
12751if test $ac_cv_c_const = no; then
12752
12753$as_echo "#define const /**/" >>confdefs.h
12754
12755fi
12756
12757# Check whether --enable-largefile was given.
12758if test "${enable_largefile+set}" = set; then :
12759  enableval=$enable_largefile;
12760fi
12761
12762if test "$enable_largefile" != no; then
12763
12764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12765$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12766if ${ac_cv_sys_largefile_CC+:} false; then :
12767  $as_echo_n "(cached) " >&6
12768else
12769  ac_cv_sys_largefile_CC=no
12770     if test "$GCC" != yes; then
12771       ac_save_CC=$CC
12772       while :; do
12773	 # IRIX 6.2 and later do not support large files by default,
12774	 # so use the C compiler's -n32 option if that helps.
12775	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h.  */
12777#include <sys/types.h>
12778 /* Check that off_t can represent 2**63 - 1 correctly.
12779    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12780    since some C++ compilers masquerading as C compilers
12781    incorrectly reject 9223372036854775807.  */
12782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12783  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12784		       && LARGE_OFF_T % 2147483647 == 1)
12785		      ? 1 : -1];
12786int
12787main ()
12788{
12789
12790  ;
12791  return 0;
12792}
12793_ACEOF
12794	 if ac_fn_c_try_compile "$LINENO"; then :
12795  break
12796fi
12797rm -f core conftest.err conftest.$ac_objext
12798	 CC="$CC -n32"
12799	 if ac_fn_c_try_compile "$LINENO"; then :
12800  ac_cv_sys_largefile_CC=' -n32'; break
12801fi
12802rm -f core conftest.err conftest.$ac_objext
12803	 break
12804       done
12805       CC=$ac_save_CC
12806       rm -f conftest.$ac_ext
12807    fi
12808fi
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12810$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12811  if test "$ac_cv_sys_largefile_CC" != no; then
12812    CC=$CC$ac_cv_sys_largefile_CC
12813  fi
12814
12815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12816$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12817if ${ac_cv_sys_file_offset_bits+:} false; then :
12818  $as_echo_n "(cached) " >&6
12819else
12820  while :; do
12821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h.  */
12823#include <sys/types.h>
12824 /* Check that off_t can represent 2**63 - 1 correctly.
12825    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12826    since some C++ compilers masquerading as C compilers
12827    incorrectly reject 9223372036854775807.  */
12828#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12829  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12830		       && LARGE_OFF_T % 2147483647 == 1)
12831		      ? 1 : -1];
12832int
12833main ()
12834{
12835
12836  ;
12837  return 0;
12838}
12839_ACEOF
12840if ac_fn_c_try_compile "$LINENO"; then :
12841  ac_cv_sys_file_offset_bits=no; break
12842fi
12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846#define _FILE_OFFSET_BITS 64
12847#include <sys/types.h>
12848 /* Check that off_t can represent 2**63 - 1 correctly.
12849    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12850    since some C++ compilers masquerading as C compilers
12851    incorrectly reject 9223372036854775807.  */
12852#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12853  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12854		       && LARGE_OFF_T % 2147483647 == 1)
12855		      ? 1 : -1];
12856int
12857main ()
12858{
12859
12860  ;
12861  return 0;
12862}
12863_ACEOF
12864if ac_fn_c_try_compile "$LINENO"; then :
12865  ac_cv_sys_file_offset_bits=64; break
12866fi
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868  ac_cv_sys_file_offset_bits=unknown
12869  break
12870done
12871fi
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12873$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12874case $ac_cv_sys_file_offset_bits in #(
12875  no | unknown) ;;
12876  *)
12877cat >>confdefs.h <<_ACEOF
12878#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12879_ACEOF
12880;;
12881esac
12882rm -rf conftest*
12883  if test $ac_cv_sys_file_offset_bits = unknown; then
12884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12885$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12886if ${ac_cv_sys_large_files+:} false; then :
12887  $as_echo_n "(cached) " >&6
12888else
12889  while :; do
12890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891/* end confdefs.h.  */
12892#include <sys/types.h>
12893 /* Check that off_t can represent 2**63 - 1 correctly.
12894    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12895    since some C++ compilers masquerading as C compilers
12896    incorrectly reject 9223372036854775807.  */
12897#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12898  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12899		       && LARGE_OFF_T % 2147483647 == 1)
12900		      ? 1 : -1];
12901int
12902main ()
12903{
12904
12905  ;
12906  return 0;
12907}
12908_ACEOF
12909if ac_fn_c_try_compile "$LINENO"; then :
12910  ac_cv_sys_large_files=no; break
12911fi
12912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915#define _LARGE_FILES 1
12916#include <sys/types.h>
12917 /* Check that off_t can represent 2**63 - 1 correctly.
12918    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12919    since some C++ compilers masquerading as C compilers
12920    incorrectly reject 9223372036854775807.  */
12921#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12922  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12923		       && LARGE_OFF_T % 2147483647 == 1)
12924		      ? 1 : -1];
12925int
12926main ()
12927{
12928
12929  ;
12930  return 0;
12931}
12932_ACEOF
12933if ac_fn_c_try_compile "$LINENO"; then :
12934  ac_cv_sys_large_files=1; break
12935fi
12936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937  ac_cv_sys_large_files=unknown
12938  break
12939done
12940fi
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12942$as_echo "$ac_cv_sys_large_files" >&6; }
12943case $ac_cv_sys_large_files in #(
12944  no | unknown) ;;
12945  *)
12946cat >>confdefs.h <<_ACEOF
12947#define _LARGE_FILES $ac_cv_sys_large_files
12948_ACEOF
12949;;
12950esac
12951rm -rf conftest*
12952  fi
12953
12954
12955fi
12956
12957
12958
12959ac_config_files="$ac_config_files Makefile"
12960
12961cat >confcache <<\_ACEOF
12962# This file is a shell script that caches the results of configure
12963# tests run on this system so they can be shared between configure
12964# scripts and configure runs, see configure's option --config-cache.
12965# It is not useful on other systems.  If it contains results you don't
12966# want to keep, you may remove or edit it.
12967#
12968# config.status only pays attention to the cache file if you give it
12969# the --recheck option to rerun configure.
12970#
12971# `ac_cv_env_foo' variables (set or unset) will be overridden when
12972# loading this file, other *unset* `ac_cv_foo' will be assigned the
12973# following values.
12974
12975_ACEOF
12976
12977# The following way of writing the cache mishandles newlines in values,
12978# but we know of no workaround that is simple, portable, and efficient.
12979# So, we kill variables containing newlines.
12980# Ultrix sh set writes to stderr and can't be redirected directly,
12981# and sets the high bit in the cache file unless we assign to the vars.
12982(
12983  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12984    eval ac_val=\$$ac_var
12985    case $ac_val in #(
12986    *${as_nl}*)
12987      case $ac_var in #(
12988      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12989$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12990      esac
12991      case $ac_var in #(
12992      _ | IFS | as_nl) ;; #(
12993      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12994      *) { eval $ac_var=; unset $ac_var;} ;;
12995      esac ;;
12996    esac
12997  done
12998
12999  (set) 2>&1 |
13000    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13001    *${as_nl}ac_space=\ *)
13002      # `set' does not quote correctly, so add quotes: double-quote
13003      # substitution turns \\\\ into \\, and sed turns \\ into \.
13004      sed -n \
13005	"s/'/'\\\\''/g;
13006	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13007      ;; #(
13008    *)
13009      # `set' quotes correctly as required by POSIX, so do not add quotes.
13010      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13011      ;;
13012    esac |
13013    sort
13014) |
13015  sed '
13016     /^ac_cv_env_/b end
13017     t clear
13018     :clear
13019     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13020     t end
13021     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13022     :end' >>confcache
13023if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13024  if test -w "$cache_file"; then
13025    if test "x$cache_file" != "x/dev/null"; then
13026      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13027$as_echo "$as_me: updating cache $cache_file" >&6;}
13028      if test ! -f "$cache_file" || test -h "$cache_file"; then
13029	cat confcache >"$cache_file"
13030      else
13031        case $cache_file in #(
13032        */* | ?:*)
13033	  mv -f confcache "$cache_file"$$ &&
13034	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13035        *)
13036	  mv -f confcache "$cache_file" ;;
13037	esac
13038      fi
13039    fi
13040  else
13041    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13042$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13043  fi
13044fi
13045rm -f confcache
13046
13047test "x$prefix" = xNONE && prefix=$ac_default_prefix
13048# Let make expand exec_prefix.
13049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13050
13051DEFS=-DHAVE_CONFIG_H
13052
13053ac_libobjs=
13054ac_ltlibobjs=
13055U=
13056for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13057  # 1. Remove the extension, and $U if already installed.
13058  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13059  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13060  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13061  #    will be set to the directory where LIBOBJS objects are built.
13062  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13063  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13064done
13065LIBOBJS=$ac_libobjs
13066
13067LTLIBOBJS=$ac_ltlibobjs
13068
13069
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13071$as_echo_n "checking that generated files are newer than configure... " >&6; }
13072   if test -n "$am_sleep_pid"; then
13073     # Hide warnings about reused PIDs.
13074     wait $am_sleep_pid 2>/dev/null
13075   fi
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13077$as_echo "done" >&6; }
13078 if test -n "$EXEEXT"; then
13079  am__EXEEXT_TRUE=
13080  am__EXEEXT_FALSE='#'
13081else
13082  am__EXEEXT_TRUE='#'
13083  am__EXEEXT_FALSE=
13084fi
13085
13086if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
13087  as_fn_error $? "conditional \"HMACC\" was never defined.
13088Usually this means the macro was only invoked conditionally." "$LINENO" 5
13089fi
13090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13091  as_fn_error $? "conditional \"AMDEP\" was never defined.
13092Usually this means the macro was only invoked conditionally." "$LINENO" 5
13093fi
13094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13095  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13096Usually this means the macro was only invoked conditionally." "$LINENO" 5
13097fi
13098
13099: "${CONFIG_STATUS=./config.status}"
13100ac_write_fail=0
13101ac_clean_files_save=$ac_clean_files
13102ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13104$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13105as_write_fail=0
13106cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13107#! $SHELL
13108# Generated by $as_me.
13109# Run this file to recreate the current configuration.
13110# Compiler output produced by configure, useful for debugging
13111# configure, is in config.log if it exists.
13112
13113debug=false
13114ac_cs_recheck=false
13115ac_cs_silent=false
13116
13117SHELL=\${CONFIG_SHELL-$SHELL}
13118export SHELL
13119_ASEOF
13120cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13121## -------------------- ##
13122## M4sh Initialization. ##
13123## -------------------- ##
13124
13125# Be more Bourne compatible
13126DUALCASE=1; export DUALCASE # for MKS sh
13127if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13128  emulate sh
13129  NULLCMD=:
13130  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13131  # is contrary to our usage.  Disable this feature.
13132  alias -g '${1+"$@"}'='"$@"'
13133  setopt NO_GLOB_SUBST
13134else
13135  case `(set -o) 2>/dev/null` in #(
13136  *posix*) :
13137    set -o posix ;; #(
13138  *) :
13139     ;;
13140esac
13141fi
13142
13143
13144as_nl='
13145'
13146export as_nl
13147# Printing a long string crashes Solaris 7 /usr/bin/printf.
13148as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13149as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13151# Prefer a ksh shell builtin over an external printf program on Solaris,
13152# but without wasting forks for bash or zsh.
13153if test -z "$BASH_VERSION$ZSH_VERSION" \
13154    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13155  as_echo='print -r --'
13156  as_echo_n='print -rn --'
13157elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13158  as_echo='printf %s\n'
13159  as_echo_n='printf %s'
13160else
13161  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13162    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13163    as_echo_n='/usr/ucb/echo -n'
13164  else
13165    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13166    as_echo_n_body='eval
13167      arg=$1;
13168      case $arg in #(
13169      *"$as_nl"*)
13170	expr "X$arg" : "X\\(.*\\)$as_nl";
13171	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13172      esac;
13173      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13174    '
13175    export as_echo_n_body
13176    as_echo_n='sh -c $as_echo_n_body as_echo'
13177  fi
13178  export as_echo_body
13179  as_echo='sh -c $as_echo_body as_echo'
13180fi
13181
13182# The user is always right.
13183if test "${PATH_SEPARATOR+set}" != set; then
13184  PATH_SEPARATOR=:
13185  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13186    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13187      PATH_SEPARATOR=';'
13188  }
13189fi
13190
13191
13192# IFS
13193# We need space, tab and new line, in precisely that order.  Quoting is
13194# there to prevent editors from complaining about space-tab.
13195# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13196# splitting by setting IFS to empty value.)
13197IFS=" ""	$as_nl"
13198
13199# Find who we are.  Look in the path if we contain no directory separator.
13200as_myself=
13201case $0 in #((
13202  *[\\/]* ) as_myself=$0 ;;
13203  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206  IFS=$as_save_IFS
13207  test -z "$as_dir" && as_dir=.
13208    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13209  done
13210IFS=$as_save_IFS
13211
13212     ;;
13213esac
13214# We did not find ourselves, most probably we were run as `sh COMMAND'
13215# in which case we are not to be found in the path.
13216if test "x$as_myself" = x; then
13217  as_myself=$0
13218fi
13219if test ! -f "$as_myself"; then
13220  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13221  exit 1
13222fi
13223
13224# Unset variables that we do not need and which cause bugs (e.g. in
13225# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13226# suppresses any "Segmentation fault" message there.  '((' could
13227# trigger a bug in pdksh 5.2.14.
13228for as_var in BASH_ENV ENV MAIL MAILPATH
13229do eval test x\${$as_var+set} = xset \
13230  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13231done
13232PS1='$ '
13233PS2='> '
13234PS4='+ '
13235
13236# NLS nuisances.
13237LC_ALL=C
13238export LC_ALL
13239LANGUAGE=C
13240export LANGUAGE
13241
13242# CDPATH.
13243(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13244
13245
13246# as_fn_error STATUS ERROR [LINENO LOG_FD]
13247# ----------------------------------------
13248# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13249# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13250# script with STATUS, using 1 if that was 0.
13251as_fn_error ()
13252{
13253  as_status=$1; test $as_status -eq 0 && as_status=1
13254  if test "$4"; then
13255    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13256    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13257  fi
13258  $as_echo "$as_me: error: $2" >&2
13259  as_fn_exit $as_status
13260} # as_fn_error
13261
13262
13263# as_fn_set_status STATUS
13264# -----------------------
13265# Set $? to STATUS, without forking.
13266as_fn_set_status ()
13267{
13268  return $1
13269} # as_fn_set_status
13270
13271# as_fn_exit STATUS
13272# -----------------
13273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13274as_fn_exit ()
13275{
13276  set +e
13277  as_fn_set_status $1
13278  exit $1
13279} # as_fn_exit
13280
13281# as_fn_unset VAR
13282# ---------------
13283# Portably unset VAR.
13284as_fn_unset ()
13285{
13286  { eval $1=; unset $1;}
13287}
13288as_unset=as_fn_unset
13289# as_fn_append VAR VALUE
13290# ----------------------
13291# Append the text in VALUE to the end of the definition contained in VAR. Take
13292# advantage of any shell optimizations that allow amortized linear growth over
13293# repeated appends, instead of the typical quadratic growth present in naive
13294# implementations.
13295if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13296  eval 'as_fn_append ()
13297  {
13298    eval $1+=\$2
13299  }'
13300else
13301  as_fn_append ()
13302  {
13303    eval $1=\$$1\$2
13304  }
13305fi # as_fn_append
13306
13307# as_fn_arith ARG...
13308# ------------------
13309# Perform arithmetic evaluation on the ARGs, and store the result in the
13310# global $as_val. Take advantage of shells that can avoid forks. The arguments
13311# must be portable across $(()) and expr.
13312if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13313  eval 'as_fn_arith ()
13314  {
13315    as_val=$(( $* ))
13316  }'
13317else
13318  as_fn_arith ()
13319  {
13320    as_val=`expr "$@" || test $? -eq 1`
13321  }
13322fi # as_fn_arith
13323
13324
13325if expr a : '\(a\)' >/dev/null 2>&1 &&
13326   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13327  as_expr=expr
13328else
13329  as_expr=false
13330fi
13331
13332if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13333  as_basename=basename
13334else
13335  as_basename=false
13336fi
13337
13338if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13339  as_dirname=dirname
13340else
13341  as_dirname=false
13342fi
13343
13344as_me=`$as_basename -- "$0" ||
13345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13346	 X"$0" : 'X\(//\)$' \| \
13347	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13348$as_echo X/"$0" |
13349    sed '/^.*\/\([^/][^/]*\)\/*$/{
13350	    s//\1/
13351	    q
13352	  }
13353	  /^X\/\(\/\/\)$/{
13354	    s//\1/
13355	    q
13356	  }
13357	  /^X\/\(\/\).*/{
13358	    s//\1/
13359	    q
13360	  }
13361	  s/.*/./; q'`
13362
13363# Avoid depending upon Character Ranges.
13364as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13365as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13366as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13367as_cr_digits='0123456789'
13368as_cr_alnum=$as_cr_Letters$as_cr_digits
13369
13370ECHO_C= ECHO_N= ECHO_T=
13371case `echo -n x` in #(((((
13372-n*)
13373  case `echo 'xy\c'` in
13374  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13375  xy)  ECHO_C='\c';;
13376  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13377       ECHO_T='	';;
13378  esac;;
13379*)
13380  ECHO_N='-n';;
13381esac
13382
13383rm -f conf$$ conf$$.exe conf$$.file
13384if test -d conf$$.dir; then
13385  rm -f conf$$.dir/conf$$.file
13386else
13387  rm -f conf$$.dir
13388  mkdir conf$$.dir 2>/dev/null
13389fi
13390if (echo >conf$$.file) 2>/dev/null; then
13391  if ln -s conf$$.file conf$$ 2>/dev/null; then
13392    as_ln_s='ln -s'
13393    # ... but there are two gotchas:
13394    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13395    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13396    # In both cases, we have to default to `cp -pR'.
13397    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13398      as_ln_s='cp -pR'
13399  elif ln conf$$.file conf$$ 2>/dev/null; then
13400    as_ln_s=ln
13401  else
13402    as_ln_s='cp -pR'
13403  fi
13404else
13405  as_ln_s='cp -pR'
13406fi
13407rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13408rmdir conf$$.dir 2>/dev/null
13409
13410
13411# as_fn_mkdir_p
13412# -------------
13413# Create "$as_dir" as a directory, including parents if necessary.
13414as_fn_mkdir_p ()
13415{
13416
13417  case $as_dir in #(
13418  -*) as_dir=./$as_dir;;
13419  esac
13420  test -d "$as_dir" || eval $as_mkdir_p || {
13421    as_dirs=
13422    while :; do
13423      case $as_dir in #(
13424      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13425      *) as_qdir=$as_dir;;
13426      esac
13427      as_dirs="'$as_qdir' $as_dirs"
13428      as_dir=`$as_dirname -- "$as_dir" ||
13429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13430	 X"$as_dir" : 'X\(//\)[^/]' \| \
13431	 X"$as_dir" : 'X\(//\)$' \| \
13432	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13433$as_echo X"$as_dir" |
13434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13435	    s//\1/
13436	    q
13437	  }
13438	  /^X\(\/\/\)[^/].*/{
13439	    s//\1/
13440	    q
13441	  }
13442	  /^X\(\/\/\)$/{
13443	    s//\1/
13444	    q
13445	  }
13446	  /^X\(\/\).*/{
13447	    s//\1/
13448	    q
13449	  }
13450	  s/.*/./; q'`
13451      test -d "$as_dir" && break
13452    done
13453    test -z "$as_dirs" || eval "mkdir $as_dirs"
13454  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13455
13456
13457} # as_fn_mkdir_p
13458if mkdir -p . 2>/dev/null; then
13459  as_mkdir_p='mkdir -p "$as_dir"'
13460else
13461  test -d ./-p && rmdir ./-p
13462  as_mkdir_p=false
13463fi
13464
13465
13466# as_fn_executable_p FILE
13467# -----------------------
13468# Test if FILE is an executable regular file.
13469as_fn_executable_p ()
13470{
13471  test -f "$1" && test -x "$1"
13472} # as_fn_executable_p
13473as_test_x='test -x'
13474as_executable_p=as_fn_executable_p
13475
13476# Sed expression to map a string onto a valid CPP name.
13477as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13478
13479# Sed expression to map a string onto a valid variable name.
13480as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13481
13482
13483exec 6>&1
13484## ----------------------------------- ##
13485## Main body of $CONFIG_STATUS script. ##
13486## ----------------------------------- ##
13487_ASEOF
13488test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13489
13490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13491# Save the log message, to keep $0 and so on meaningful, and to
13492# report actual input values of CONFIG_FILES etc. instead of their
13493# values after options handling.
13494ac_log="
13495This file was extended by libmd5 $as_me 1.21, which was
13496generated by GNU Autoconf 2.69.  Invocation command line was
13497
13498  CONFIG_FILES    = $CONFIG_FILES
13499  CONFIG_HEADERS  = $CONFIG_HEADERS
13500  CONFIG_LINKS    = $CONFIG_LINKS
13501  CONFIG_COMMANDS = $CONFIG_COMMANDS
13502  $ $0 $@
13503
13504on `(hostname || uname -n) 2>/dev/null | sed 1q`
13505"
13506
13507_ACEOF
13508
13509case $ac_config_files in *"
13510"*) set x $ac_config_files; shift; ac_config_files=$*;;
13511esac
13512
13513case $ac_config_headers in *"
13514"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13515esac
13516
13517
13518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13519# Files that config.status was made for.
13520config_files="$ac_config_files"
13521config_headers="$ac_config_headers"
13522config_commands="$ac_config_commands"
13523
13524_ACEOF
13525
13526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527ac_cs_usage="\
13528\`$as_me' instantiates files and other configuration actions
13529from templates according to the current configuration.  Unless the files
13530and actions are specified as TAGs, all are instantiated by default.
13531
13532Usage: $0 [OPTION]... [TAG]...
13533
13534  -h, --help       print this help, then exit
13535  -V, --version    print version number and configuration settings, then exit
13536      --config     print configuration, then exit
13537  -q, --quiet, --silent
13538                   do not print progress messages
13539  -d, --debug      don't remove temporary files
13540      --recheck    update $as_me by reconfiguring in the same conditions
13541      --file=FILE[:TEMPLATE]
13542                   instantiate the configuration file FILE
13543      --header=FILE[:TEMPLATE]
13544                   instantiate the configuration header FILE
13545
13546Configuration files:
13547$config_files
13548
13549Configuration headers:
13550$config_headers
13551
13552Configuration commands:
13553$config_commands
13554
13555Report bugs to <courier-users@lists.sourceforge.net>."
13556
13557_ACEOF
13558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13559ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13560ac_cs_version="\\
13561libmd5 config.status 1.21
13562configured by $0, generated by GNU Autoconf 2.69,
13563  with options \\"\$ac_cs_config\\"
13564
13565Copyright (C) 2012 Free Software Foundation, Inc.
13566This config.status script is free software; the Free Software Foundation
13567gives unlimited permission to copy, distribute and modify it."
13568
13569ac_pwd='$ac_pwd'
13570srcdir='$srcdir'
13571INSTALL='$INSTALL'
13572MKDIR_P='$MKDIR_P'
13573AWK='$AWK'
13574test -n "\$AWK" || AWK=awk
13575_ACEOF
13576
13577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13578# The default lists apply if the user does not specify any file.
13579ac_need_defaults=:
13580while test $# != 0
13581do
13582  case $1 in
13583  --*=?*)
13584    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13585    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13586    ac_shift=:
13587    ;;
13588  --*=)
13589    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13590    ac_optarg=
13591    ac_shift=:
13592    ;;
13593  *)
13594    ac_option=$1
13595    ac_optarg=$2
13596    ac_shift=shift
13597    ;;
13598  esac
13599
13600  case $ac_option in
13601  # Handling of the options.
13602  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13603    ac_cs_recheck=: ;;
13604  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13605    $as_echo "$ac_cs_version"; exit ;;
13606  --config | --confi | --conf | --con | --co | --c )
13607    $as_echo "$ac_cs_config"; exit ;;
13608  --debug | --debu | --deb | --de | --d | -d )
13609    debug=: ;;
13610  --file | --fil | --fi | --f )
13611    $ac_shift
13612    case $ac_optarg in
13613    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13614    '') as_fn_error $? "missing file argument" ;;
13615    esac
13616    as_fn_append CONFIG_FILES " '$ac_optarg'"
13617    ac_need_defaults=false;;
13618  --header | --heade | --head | --hea )
13619    $ac_shift
13620    case $ac_optarg in
13621    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13622    esac
13623    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13624    ac_need_defaults=false;;
13625  --he | --h)
13626    # Conflict between --help and --header
13627    as_fn_error $? "ambiguous option: \`$1'
13628Try \`$0 --help' for more information.";;
13629  --help | --hel | -h )
13630    $as_echo "$ac_cs_usage"; exit ;;
13631  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13632  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13633    ac_cs_silent=: ;;
13634
13635  # This is an error.
13636  -*) as_fn_error $? "unrecognized option: \`$1'
13637Try \`$0 --help' for more information." ;;
13638
13639  *) as_fn_append ac_config_targets " $1"
13640     ac_need_defaults=false ;;
13641
13642  esac
13643  shift
13644done
13645
13646ac_configure_extra_args=
13647
13648if $ac_cs_silent; then
13649  exec 6>/dev/null
13650  ac_configure_extra_args="$ac_configure_extra_args --silent"
13651fi
13652
13653_ACEOF
13654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655if \$ac_cs_recheck; then
13656  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13657  shift
13658  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13659  CONFIG_SHELL='$SHELL'
13660  export CONFIG_SHELL
13661  exec "\$@"
13662fi
13663
13664_ACEOF
13665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13666exec 5>>config.log
13667{
13668  echo
13669  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13670## Running $as_me. ##
13671_ASBOX
13672  $as_echo "$ac_log"
13673} >&5
13674
13675_ACEOF
13676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13677#
13678# INIT-COMMANDS
13679#
13680AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13681
13682
13683# The HP-UX ksh and POSIX shell print the target directory to stdout
13684# if CDPATH is set.
13685(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13686
13687sed_quote_subst='$sed_quote_subst'
13688double_quote_subst='$double_quote_subst'
13689delay_variable_subst='$delay_variable_subst'
13690macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13691macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13692enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13693enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13694pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13695enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13696shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13697SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13698ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13699PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13700host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13701host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13702host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13703build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13704build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13705build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13706SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13707Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13708GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13709EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13710FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13711LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13712NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13713LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13714max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13715ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13716exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13717lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13718lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13719lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13720lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13721lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13722reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13723reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13724OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13725deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13726file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13727file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13728want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13729DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13730sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13731AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13732AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13733archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13734STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13735RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13736old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13737old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13738old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13739lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13740CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13741CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13742compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13743GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13744lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13745lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13746lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13747lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13748lt_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"`'
13749lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13750nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13751lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13752lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13753objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13754MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13755lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13756lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13757lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13758lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13759lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13760need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13761MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13762DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13763NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13764LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13765OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13766OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13767libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13768shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13769extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13770archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13771enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13772export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13773whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13774compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13775old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13776old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13777archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13778archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13779module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13780module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13781with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13782allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13783no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13784hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13785hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13786hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13787hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13788hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13789hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13790hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13791inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13792link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13793always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13794export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13795exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13796include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13797prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13798postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13799file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13800variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13801need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13802need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13803version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13804runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13805shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13806shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13807libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13808library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13809soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13810install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13811postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13812postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13813finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13814finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13815hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13816sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13817configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13818configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13819hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13820enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13821enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13822enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13823old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13824striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13825
13826LTCC='$LTCC'
13827LTCFLAGS='$LTCFLAGS'
13828compiler='$compiler_DEFAULT'
13829
13830# A function that is used when there is no print builtin or printf.
13831func_fallback_echo ()
13832{
13833  eval 'cat <<_LTECHO_EOF
13834\$1
13835_LTECHO_EOF'
13836}
13837
13838# Quote evaled strings.
13839for var in SHELL \
13840ECHO \
13841PATH_SEPARATOR \
13842SED \
13843GREP \
13844EGREP \
13845FGREP \
13846LD \
13847NM \
13848LN_S \
13849lt_SP2NL \
13850lt_NL2SP \
13851reload_flag \
13852OBJDUMP \
13853deplibs_check_method \
13854file_magic_cmd \
13855file_magic_glob \
13856want_nocaseglob \
13857DLLTOOL \
13858sharedlib_from_linklib_cmd \
13859AR \
13860AR_FLAGS \
13861archiver_list_spec \
13862STRIP \
13863RANLIB \
13864CC \
13865CFLAGS \
13866compiler \
13867lt_cv_sys_global_symbol_pipe \
13868lt_cv_sys_global_symbol_to_cdecl \
13869lt_cv_sys_global_symbol_to_import \
13870lt_cv_sys_global_symbol_to_c_name_address \
13871lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13872lt_cv_nm_interface \
13873nm_file_list_spec \
13874lt_cv_truncate_bin \
13875lt_prog_compiler_no_builtin_flag \
13876lt_prog_compiler_pic \
13877lt_prog_compiler_wl \
13878lt_prog_compiler_static \
13879lt_cv_prog_compiler_c_o \
13880need_locks \
13881MANIFEST_TOOL \
13882DSYMUTIL \
13883NMEDIT \
13884LIPO \
13885OTOOL \
13886OTOOL64 \
13887shrext_cmds \
13888export_dynamic_flag_spec \
13889whole_archive_flag_spec \
13890compiler_needs_object \
13891with_gnu_ld \
13892allow_undefined_flag \
13893no_undefined_flag \
13894hardcode_libdir_flag_spec \
13895hardcode_libdir_separator \
13896exclude_expsyms \
13897include_expsyms \
13898file_list_spec \
13899variables_saved_for_relink \
13900libname_spec \
13901library_names_spec \
13902soname_spec \
13903install_override_mode \
13904finish_eval \
13905old_striplib \
13906striplib; do
13907    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13908    *[\\\\\\\`\\"\\\$]*)
13909      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13910      ;;
13911    *)
13912      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13913      ;;
13914    esac
13915done
13916
13917# Double-quote double-evaled strings.
13918for var in reload_cmds \
13919old_postinstall_cmds \
13920old_postuninstall_cmds \
13921old_archive_cmds \
13922extract_expsyms_cmds \
13923old_archive_from_new_cmds \
13924old_archive_from_expsyms_cmds \
13925archive_cmds \
13926archive_expsym_cmds \
13927module_cmds \
13928module_expsym_cmds \
13929export_symbols_cmds \
13930prelink_cmds \
13931postlink_cmds \
13932postinstall_cmds \
13933postuninstall_cmds \
13934finish_cmds \
13935sys_lib_search_path_spec \
13936configure_time_dlsearch_path \
13937configure_time_lt_sys_library_path; do
13938    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13939    *[\\\\\\\`\\"\\\$]*)
13940      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13941      ;;
13942    *)
13943      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13944      ;;
13945    esac
13946done
13947
13948ac_aux_dir='$ac_aux_dir'
13949
13950# See if we are running on zsh, and set the options that allow our
13951# commands through without removal of \ escapes INIT.
13952if test -n "\${ZSH_VERSION+set}"; then
13953   setopt NO_GLOB_SUBST
13954fi
13955
13956
13957    PACKAGE='$PACKAGE'
13958    VERSION='$VERSION'
13959    RM='$RM'
13960    ofile='$ofile'
13961
13962
13963
13964
13965_ACEOF
13966
13967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13968
13969# Handling of arguments.
13970for ac_config_target in $ac_config_targets
13971do
13972  case $ac_config_target in
13973    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13974    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13975    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13976    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13977
13978  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13979  esac
13980done
13981
13982
13983# If the user did not use the arguments to specify the items to instantiate,
13984# then the envvar interface is used.  Set only those that are not.
13985# We use the long form for the default assignment because of an extremely
13986# bizarre bug on SunOS 4.1.3.
13987if $ac_need_defaults; then
13988  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13989  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13990  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13991fi
13992
13993# Have a temporary directory for convenience.  Make it in the build tree
13994# simply because there is no reason against having it here, and in addition,
13995# creating and moving files from /tmp can sometimes cause problems.
13996# Hook for its removal unless debugging.
13997# Note that there is a small window in which the directory will not be cleaned:
13998# after its creation but before its name has been assigned to `$tmp'.
13999$debug ||
14000{
14001  tmp= ac_tmp=
14002  trap 'exit_status=$?
14003  : "${ac_tmp:=$tmp}"
14004  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14005' 0
14006  trap 'as_fn_exit 1' 1 2 13 15
14007}
14008# Create a (secure) tmp directory for tmp files.
14009
14010{
14011  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14012  test -d "$tmp"
14013}  ||
14014{
14015  tmp=./conf$$-$RANDOM
14016  (umask 077 && mkdir "$tmp")
14017} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14018ac_tmp=$tmp
14019
14020# Set up the scripts for CONFIG_FILES section.
14021# No need to generate them if there are no CONFIG_FILES.
14022# This happens for instance with `./config.status config.h'.
14023if test -n "$CONFIG_FILES"; then
14024
14025
14026ac_cr=`echo X | tr X '\015'`
14027# On cygwin, bash can eat \r inside `` if the user requested igncr.
14028# But we know of no other shell where ac_cr would be empty at this
14029# point, so we can use a bashism as a fallback.
14030if test "x$ac_cr" = x; then
14031  eval ac_cr=\$\'\\r\'
14032fi
14033ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14034if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14035  ac_cs_awk_cr='\\r'
14036else
14037  ac_cs_awk_cr=$ac_cr
14038fi
14039
14040echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14041_ACEOF
14042
14043
14044{
14045  echo "cat >conf$$subs.awk <<_ACEOF" &&
14046  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14047  echo "_ACEOF"
14048} >conf$$subs.sh ||
14049  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14050ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14051ac_delim='%!_!# '
14052for ac_last_try in false false false false false :; do
14053  . ./conf$$subs.sh ||
14054    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14055
14056  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14057  if test $ac_delim_n = $ac_delim_num; then
14058    break
14059  elif $ac_last_try; then
14060    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14061  else
14062    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14063  fi
14064done
14065rm -f conf$$subs.sh
14066
14067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14068cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14069_ACEOF
14070sed -n '
14071h
14072s/^/S["/; s/!.*/"]=/
14073p
14074g
14075s/^[^!]*!//
14076:repl
14077t repl
14078s/'"$ac_delim"'$//
14079t delim
14080:nl
14081h
14082s/\(.\{148\}\)..*/\1/
14083t more1
14084s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14085p
14086n
14087b repl
14088:more1
14089s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14090p
14091g
14092s/.\{148\}//
14093t nl
14094:delim
14095h
14096s/\(.\{148\}\)..*/\1/
14097t more2
14098s/["\\]/\\&/g; s/^/"/; s/$/"/
14099p
14100b
14101:more2
14102s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14103p
14104g
14105s/.\{148\}//
14106t delim
14107' <conf$$subs.awk | sed '
14108/^[^""]/{
14109  N
14110  s/\n//
14111}
14112' >>$CONFIG_STATUS || ac_write_fail=1
14113rm -f conf$$subs.awk
14114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14115_ACAWK
14116cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14117  for (key in S) S_is_set[key] = 1
14118  FS = ""
14119
14120}
14121{
14122  line = $ 0
14123  nfields = split(line, field, "@")
14124  substed = 0
14125  len = length(field[1])
14126  for (i = 2; i < nfields; i++) {
14127    key = field[i]
14128    keylen = length(key)
14129    if (S_is_set[key]) {
14130      value = S[key]
14131      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14132      len += length(value) + length(field[++i])
14133      substed = 1
14134    } else
14135      len += 1 + keylen
14136  }
14137
14138  print line
14139}
14140
14141_ACAWK
14142_ACEOF
14143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14145  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14146else
14147  cat
14148fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14149  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14150_ACEOF
14151
14152# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14153# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14154# trailing colons and then remove the whole line if VPATH becomes empty
14155# (actually we leave an empty line to preserve line numbers).
14156if test "x$srcdir" = x.; then
14157  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14158h
14159s///
14160s/^/:/
14161s/[	 ]*$/:/
14162s/:\$(srcdir):/:/g
14163s/:\${srcdir}:/:/g
14164s/:@srcdir@:/:/g
14165s/^:*//
14166s/:*$//
14167x
14168s/\(=[	 ]*\).*/\1/
14169G
14170s/\n//
14171s/^[^=]*=[	 ]*$//
14172}'
14173fi
14174
14175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14176fi # test -n "$CONFIG_FILES"
14177
14178# Set up the scripts for CONFIG_HEADERS section.
14179# No need to generate them if there are no CONFIG_HEADERS.
14180# This happens for instance with `./config.status Makefile'.
14181if test -n "$CONFIG_HEADERS"; then
14182cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14183BEGIN {
14184_ACEOF
14185
14186# Transform confdefs.h into an awk script `defines.awk', embedded as
14187# here-document in config.status, that substitutes the proper values into
14188# config.h.in to produce config.h.
14189
14190# Create a delimiter string that does not exist in confdefs.h, to ease
14191# handling of long lines.
14192ac_delim='%!_!# '
14193for ac_last_try in false false :; do
14194  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14195  if test -z "$ac_tt"; then
14196    break
14197  elif $ac_last_try; then
14198    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14199  else
14200    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14201  fi
14202done
14203
14204# For the awk script, D is an array of macro values keyed by name,
14205# likewise P contains macro parameters if any.  Preserve backslash
14206# newline sequences.
14207
14208ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14209sed -n '
14210s/.\{148\}/&'"$ac_delim"'/g
14211t rset
14212:rset
14213s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14214t def
14215d
14216:def
14217s/\\$//
14218t bsnl
14219s/["\\]/\\&/g
14220s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14221D["\1"]=" \3"/p
14222s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14223d
14224:bsnl
14225s/["\\]/\\&/g
14226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14227D["\1"]=" \3\\\\\\n"\\/p
14228t cont
14229s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14230t cont
14231d
14232:cont
14233n
14234s/.\{148\}/&'"$ac_delim"'/g
14235t clear
14236:clear
14237s/\\$//
14238t bsnlc
14239s/["\\]/\\&/g; s/^/"/; s/$/"/p
14240d
14241:bsnlc
14242s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14243b cont
14244' <confdefs.h | sed '
14245s/'"$ac_delim"'/"\\\
14246"/g' >>$CONFIG_STATUS || ac_write_fail=1
14247
14248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14249  for (key in D) D_is_set[key] = 1
14250  FS = ""
14251}
14252/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14253  line = \$ 0
14254  split(line, arg, " ")
14255  if (arg[1] == "#") {
14256    defundef = arg[2]
14257    mac1 = arg[3]
14258  } else {
14259    defundef = substr(arg[1], 2)
14260    mac1 = arg[2]
14261  }
14262  split(mac1, mac2, "(") #)
14263  macro = mac2[1]
14264  prefix = substr(line, 1, index(line, defundef) - 1)
14265  if (D_is_set[macro]) {
14266    # Preserve the white space surrounding the "#".
14267    print prefix "define", macro P[macro] D[macro]
14268    next
14269  } else {
14270    # Replace #undef with comments.  This is necessary, for example,
14271    # in the case of _POSIX_SOURCE, which is predefined and required
14272    # on some systems where configure will not decide to define it.
14273    if (defundef == "undef") {
14274      print "/*", prefix defundef, macro, "*/"
14275      next
14276    }
14277  }
14278}
14279{ print }
14280_ACAWK
14281_ACEOF
14282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14284fi # test -n "$CONFIG_HEADERS"
14285
14286
14287eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14288shift
14289for ac_tag
14290do
14291  case $ac_tag in
14292  :[FHLC]) ac_mode=$ac_tag; continue;;
14293  esac
14294  case $ac_mode$ac_tag in
14295  :[FHL]*:*);;
14296  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14297  :[FH]-) ac_tag=-:-;;
14298  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14299  esac
14300  ac_save_IFS=$IFS
14301  IFS=:
14302  set x $ac_tag
14303  IFS=$ac_save_IFS
14304  shift
14305  ac_file=$1
14306  shift
14307
14308  case $ac_mode in
14309  :L) ac_source=$1;;
14310  :[FH])
14311    ac_file_inputs=
14312    for ac_f
14313    do
14314      case $ac_f in
14315      -) ac_f="$ac_tmp/stdin";;
14316      *) # Look for the file first in the build tree, then in the source tree
14317	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14318	 # because $ac_f cannot contain `:'.
14319	 test -f "$ac_f" ||
14320	   case $ac_f in
14321	   [\\/$]*) false;;
14322	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14323	   esac ||
14324	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14325      esac
14326      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14327      as_fn_append ac_file_inputs " '$ac_f'"
14328    done
14329
14330    # Let's still pretend it is `configure' which instantiates (i.e., don't
14331    # use $as_me), people would be surprised to read:
14332    #    /* config.h.  Generated by config.status.  */
14333    configure_input='Generated from '`
14334	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14335	`' by configure.'
14336    if test x"$ac_file" != x-; then
14337      configure_input="$ac_file.  $configure_input"
14338      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14339$as_echo "$as_me: creating $ac_file" >&6;}
14340    fi
14341    # Neutralize special characters interpreted by sed in replacement strings.
14342    case $configure_input in #(
14343    *\&* | *\|* | *\\* )
14344       ac_sed_conf_input=`$as_echo "$configure_input" |
14345       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14346    *) ac_sed_conf_input=$configure_input;;
14347    esac
14348
14349    case $ac_tag in
14350    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14351      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14352    esac
14353    ;;
14354  esac
14355
14356  ac_dir=`$as_dirname -- "$ac_file" ||
14357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14358	 X"$ac_file" : 'X\(//\)[^/]' \| \
14359	 X"$ac_file" : 'X\(//\)$' \| \
14360	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14361$as_echo X"$ac_file" |
14362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14363	    s//\1/
14364	    q
14365	  }
14366	  /^X\(\/\/\)[^/].*/{
14367	    s//\1/
14368	    q
14369	  }
14370	  /^X\(\/\/\)$/{
14371	    s//\1/
14372	    q
14373	  }
14374	  /^X\(\/\).*/{
14375	    s//\1/
14376	    q
14377	  }
14378	  s/.*/./; q'`
14379  as_dir="$ac_dir"; as_fn_mkdir_p
14380  ac_builddir=.
14381
14382case "$ac_dir" in
14383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14384*)
14385  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14386  # A ".." for each directory in $ac_dir_suffix.
14387  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14388  case $ac_top_builddir_sub in
14389  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14390  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14391  esac ;;
14392esac
14393ac_abs_top_builddir=$ac_pwd
14394ac_abs_builddir=$ac_pwd$ac_dir_suffix
14395# for backward compatibility:
14396ac_top_builddir=$ac_top_build_prefix
14397
14398case $srcdir in
14399  .)  # We are building in place.
14400    ac_srcdir=.
14401    ac_top_srcdir=$ac_top_builddir_sub
14402    ac_abs_top_srcdir=$ac_pwd ;;
14403  [\\/]* | ?:[\\/]* )  # Absolute name.
14404    ac_srcdir=$srcdir$ac_dir_suffix;
14405    ac_top_srcdir=$srcdir
14406    ac_abs_top_srcdir=$srcdir ;;
14407  *) # Relative name.
14408    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14409    ac_top_srcdir=$ac_top_build_prefix$srcdir
14410    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14411esac
14412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14413
14414
14415  case $ac_mode in
14416  :F)
14417  #
14418  # CONFIG_FILE
14419  #
14420
14421  case $INSTALL in
14422  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14423  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14424  esac
14425  ac_MKDIR_P=$MKDIR_P
14426  case $MKDIR_P in
14427  [\\/$]* | ?:[\\/]* ) ;;
14428  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14429  esac
14430_ACEOF
14431
14432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14433# If the template does not know about datarootdir, expand it.
14434# FIXME: This hack should be removed a few years after 2.60.
14435ac_datarootdir_hack=; ac_datarootdir_seen=
14436ac_sed_dataroot='
14437/datarootdir/ {
14438  p
14439  q
14440}
14441/@datadir@/p
14442/@docdir@/p
14443/@infodir@/p
14444/@localedir@/p
14445/@mandir@/p'
14446case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14447*datarootdir*) ac_datarootdir_seen=yes;;
14448*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14449  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14450$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14451_ACEOF
14452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453  ac_datarootdir_hack='
14454  s&@datadir@&$datadir&g
14455  s&@docdir@&$docdir&g
14456  s&@infodir@&$infodir&g
14457  s&@localedir@&$localedir&g
14458  s&@mandir@&$mandir&g
14459  s&\\\${datarootdir}&$datarootdir&g' ;;
14460esac
14461_ACEOF
14462
14463# Neutralize VPATH when `$srcdir' = `.'.
14464# Shell code in configure.ac might set extrasub.
14465# FIXME: do we really want to maintain this feature?
14466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14467ac_sed_extra="$ac_vpsub
14468$extrasub
14469_ACEOF
14470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471:t
14472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14473s|@configure_input@|$ac_sed_conf_input|;t t
14474s&@top_builddir@&$ac_top_builddir_sub&;t t
14475s&@top_build_prefix@&$ac_top_build_prefix&;t t
14476s&@srcdir@&$ac_srcdir&;t t
14477s&@abs_srcdir@&$ac_abs_srcdir&;t t
14478s&@top_srcdir@&$ac_top_srcdir&;t t
14479s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14480s&@builddir@&$ac_builddir&;t t
14481s&@abs_builddir@&$ac_abs_builddir&;t t
14482s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14483s&@INSTALL@&$ac_INSTALL&;t t
14484s&@MKDIR_P@&$ac_MKDIR_P&;t t
14485$ac_datarootdir_hack
14486"
14487eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14488  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14489
14490test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14491  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14492  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14493      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14495which seems to be undefined.  Please make sure it is defined" >&5
14496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14497which seems to be undefined.  Please make sure it is defined" >&2;}
14498
14499  rm -f "$ac_tmp/stdin"
14500  case $ac_file in
14501  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14502  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14503  esac \
14504  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14505 ;;
14506  :H)
14507  #
14508  # CONFIG_HEADER
14509  #
14510  if test x"$ac_file" != x-; then
14511    {
14512      $as_echo "/* $configure_input  */" \
14513      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14514    } >"$ac_tmp/config.h" \
14515      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14516    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14517      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14518$as_echo "$as_me: $ac_file is unchanged" >&6;}
14519    else
14520      rm -f "$ac_file"
14521      mv "$ac_tmp/config.h" "$ac_file" \
14522	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14523    fi
14524  else
14525    $as_echo "/* $configure_input  */" \
14526      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14527      || as_fn_error $? "could not create -" "$LINENO" 5
14528  fi
14529# Compute "$ac_file"'s index in $config_headers.
14530_am_arg="$ac_file"
14531_am_stamp_count=1
14532for _am_header in $config_headers :; do
14533  case $_am_header in
14534    $_am_arg | $_am_arg:* )
14535      break ;;
14536    * )
14537      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14538  esac
14539done
14540echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14541$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14542	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14543	 X"$_am_arg" : 'X\(//\)$' \| \
14544	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14545$as_echo X"$_am_arg" |
14546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14547	    s//\1/
14548	    q
14549	  }
14550	  /^X\(\/\/\)[^/].*/{
14551	    s//\1/
14552	    q
14553	  }
14554	  /^X\(\/\/\)$/{
14555	    s//\1/
14556	    q
14557	  }
14558	  /^X\(\/\).*/{
14559	    s//\1/
14560	    q
14561	  }
14562	  s/.*/./; q'`/stamp-h$_am_stamp_count
14563 ;;
14564
14565  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14566$as_echo "$as_me: executing $ac_file commands" >&6;}
14567 ;;
14568  esac
14569
14570
14571  case $ac_file$ac_mode in
14572    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14573  # Older Autoconf quotes --file arguments for eval, but not when files
14574  # are listed without --file.  Let's play safe and only enable the eval
14575  # if we detect the quoting.
14576  # TODO: see whether this extra hack can be removed once we start
14577  # requiring Autoconf 2.70 or later.
14578  case $CONFIG_FILES in #(
14579  *\'*) :
14580    eval set x "$CONFIG_FILES" ;; #(
14581  *) :
14582    set x $CONFIG_FILES ;; #(
14583  *) :
14584     ;;
14585esac
14586  shift
14587  # Used to flag and report bootstrapping failures.
14588  am_rc=0
14589  for am_mf
14590  do
14591    # Strip MF so we end up with the name of the file.
14592    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14593    # Check whether this is an Automake generated Makefile which includes
14594    # dependency-tracking related rules and includes.
14595    # Grep'ing the whole file directly is not great: AIX grep has a line
14596    # limit of 2048, but all sed's we know have understand at least 4000.
14597    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14598      || continue
14599    am_dirpart=`$as_dirname -- "$am_mf" ||
14600$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14601	 X"$am_mf" : 'X\(//\)[^/]' \| \
14602	 X"$am_mf" : 'X\(//\)$' \| \
14603	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14604$as_echo X"$am_mf" |
14605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14606	    s//\1/
14607	    q
14608	  }
14609	  /^X\(\/\/\)[^/].*/{
14610	    s//\1/
14611	    q
14612	  }
14613	  /^X\(\/\/\)$/{
14614	    s//\1/
14615	    q
14616	  }
14617	  /^X\(\/\).*/{
14618	    s//\1/
14619	    q
14620	  }
14621	  s/.*/./; q'`
14622    am_filepart=`$as_basename -- "$am_mf" ||
14623$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14624	 X"$am_mf" : 'X\(//\)$' \| \
14625	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14626$as_echo X/"$am_mf" |
14627    sed '/^.*\/\([^/][^/]*\)\/*$/{
14628	    s//\1/
14629	    q
14630	  }
14631	  /^X\/\(\/\/\)$/{
14632	    s//\1/
14633	    q
14634	  }
14635	  /^X\/\(\/\).*/{
14636	    s//\1/
14637	    q
14638	  }
14639	  s/.*/./; q'`
14640    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14641      && sed -e '/# am--include-marker/d' "$am_filepart" \
14642        | $MAKE -f - am--depfiles" >&5
14643   (cd "$am_dirpart" \
14644      && sed -e '/# am--include-marker/d' "$am_filepart" \
14645        | $MAKE -f - am--depfiles) >&5 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } || am_rc=$?
14649  done
14650  if test $am_rc -ne 0; then
14651    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14653as_fn_error $? "Something went wrong bootstrapping makefile fragments
14654    for automatic dependency tracking.  If GNU make was not used, consider
14655    re-running the configure script with MAKE=\"gmake\" (or whatever is
14656    necessary).  You can also try re-running configure with the
14657    '--disable-dependency-tracking' option to at least be able to build
14658    the package (albeit without support for automatic dependency tracking).
14659See \`config.log' for more details" "$LINENO" 5; }
14660  fi
14661  { am_dirpart=; unset am_dirpart;}
14662  { am_filepart=; unset am_filepart;}
14663  { am_mf=; unset am_mf;}
14664  { am_rc=; unset am_rc;}
14665  rm -f conftest-deps.mk
14666}
14667 ;;
14668    "libtool":C)
14669
14670    # See if we are running on zsh, and set the options that allow our
14671    # commands through without removal of \ escapes.
14672    if test -n "${ZSH_VERSION+set}"; then
14673      setopt NO_GLOB_SUBST
14674    fi
14675
14676    cfgfile=${ofile}T
14677    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14678    $RM "$cfgfile"
14679
14680    cat <<_LT_EOF >> "$cfgfile"
14681#! $SHELL
14682# Generated automatically by $as_me ($PACKAGE) $VERSION
14683# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14684# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14685
14686# Provide generalized library-building support services.
14687# Written by Gordon Matzigkeit, 1996
14688
14689# Copyright (C) 2014 Free Software Foundation, Inc.
14690# This is free software; see the source for copying conditions.  There is NO
14691# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14692
14693# GNU Libtool is free software; you can redistribute it and/or modify
14694# it under the terms of the GNU General Public License as published by
14695# the Free Software Foundation; either version 2 of of the License, or
14696# (at your option) any later version.
14697#
14698# As a special exception to the GNU General Public License, if you
14699# distribute this file as part of a program or library that is built
14700# using GNU Libtool, you may include this file under the  same
14701# distribution terms that you use for the rest of that program.
14702#
14703# GNU Libtool is distributed in the hope that it will be useful, but
14704# WITHOUT ANY WARRANTY; without even the implied warranty of
14705# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14706# GNU General Public License for more details.
14707#
14708# You should have received a copy of the GNU General Public License
14709# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14710
14711
14712# The names of the tagged configurations supported by this script.
14713available_tags=''
14714
14715# Configured defaults for sys_lib_dlsearch_path munging.
14716: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14717
14718# ### BEGIN LIBTOOL CONFIG
14719
14720# Which release of libtool.m4 was used?
14721macro_version=$macro_version
14722macro_revision=$macro_revision
14723
14724# Whether or not to build shared libraries.
14725build_libtool_libs=$enable_shared
14726
14727# Whether or not to build static libraries.
14728build_old_libs=$enable_static
14729
14730# What type of objects to build.
14731pic_mode=$pic_mode
14732
14733# Whether or not to optimize for fast installation.
14734fast_install=$enable_fast_install
14735
14736# Shared archive member basename,for filename based shared library versioning on AIX.
14737shared_archive_member_spec=$shared_archive_member_spec
14738
14739# Shell to use when invoking shell scripts.
14740SHELL=$lt_SHELL
14741
14742# An echo program that protects backslashes.
14743ECHO=$lt_ECHO
14744
14745# The PATH separator for the build system.
14746PATH_SEPARATOR=$lt_PATH_SEPARATOR
14747
14748# The host system.
14749host_alias=$host_alias
14750host=$host
14751host_os=$host_os
14752
14753# The build system.
14754build_alias=$build_alias
14755build=$build
14756build_os=$build_os
14757
14758# A sed program that does not truncate output.
14759SED=$lt_SED
14760
14761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14762Xsed="\$SED -e 1s/^X//"
14763
14764# A grep program that handles long lines.
14765GREP=$lt_GREP
14766
14767# An ERE matcher.
14768EGREP=$lt_EGREP
14769
14770# A literal string matcher.
14771FGREP=$lt_FGREP
14772
14773# A BSD- or MS-compatible name lister.
14774NM=$lt_NM
14775
14776# Whether we need soft or hard links.
14777LN_S=$lt_LN_S
14778
14779# What is the maximum length of a command?
14780max_cmd_len=$max_cmd_len
14781
14782# Object file suffix (normally "o").
14783objext=$ac_objext
14784
14785# Executable file suffix (normally "").
14786exeext=$exeext
14787
14788# whether the shell understands "unset".
14789lt_unset=$lt_unset
14790
14791# turn spaces into newlines.
14792SP2NL=$lt_lt_SP2NL
14793
14794# turn newlines into spaces.
14795NL2SP=$lt_lt_NL2SP
14796
14797# convert \$build file names to \$host format.
14798to_host_file_cmd=$lt_cv_to_host_file_cmd
14799
14800# convert \$build files to toolchain format.
14801to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14802
14803# An object symbol dumper.
14804OBJDUMP=$lt_OBJDUMP
14805
14806# Method to check whether dependent libraries are shared objects.
14807deplibs_check_method=$lt_deplibs_check_method
14808
14809# Command to use when deplibs_check_method = "file_magic".
14810file_magic_cmd=$lt_file_magic_cmd
14811
14812# How to find potential files when deplibs_check_method = "file_magic".
14813file_magic_glob=$lt_file_magic_glob
14814
14815# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14816want_nocaseglob=$lt_want_nocaseglob
14817
14818# DLL creation program.
14819DLLTOOL=$lt_DLLTOOL
14820
14821# Command to associate shared and link libraries.
14822sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14823
14824# The archiver.
14825AR=$lt_AR
14826
14827# Flags to create an archive.
14828AR_FLAGS=$lt_AR_FLAGS
14829
14830# How to feed a file listing to the archiver.
14831archiver_list_spec=$lt_archiver_list_spec
14832
14833# A symbol stripping program.
14834STRIP=$lt_STRIP
14835
14836# Commands used to install an old-style archive.
14837RANLIB=$lt_RANLIB
14838old_postinstall_cmds=$lt_old_postinstall_cmds
14839old_postuninstall_cmds=$lt_old_postuninstall_cmds
14840
14841# Whether to use a lock for old archive extraction.
14842lock_old_archive_extraction=$lock_old_archive_extraction
14843
14844# A C compiler.
14845LTCC=$lt_CC
14846
14847# LTCC compiler flags.
14848LTCFLAGS=$lt_CFLAGS
14849
14850# Take the output of nm and produce a listing of raw symbols and C names.
14851global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14852
14853# Transform the output of nm in a proper C declaration.
14854global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14855
14856# Transform the output of nm into a list of symbols to manually relocate.
14857global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14858
14859# Transform the output of nm in a C name address pair.
14860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14861
14862# Transform the output of nm in a C name address pair when lib prefix is needed.
14863global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14864
14865# The name lister interface.
14866nm_interface=$lt_lt_cv_nm_interface
14867
14868# Specify filename containing input files for \$NM.
14869nm_file_list_spec=$lt_nm_file_list_spec
14870
14871# The root where to search for dependent libraries,and where our libraries should be installed.
14872lt_sysroot=$lt_sysroot
14873
14874# Command to truncate a binary pipe.
14875lt_truncate_bin=$lt_lt_cv_truncate_bin
14876
14877# The name of the directory that contains temporary libtool files.
14878objdir=$objdir
14879
14880# Used to examine libraries when file_magic_cmd begins with "file".
14881MAGIC_CMD=$MAGIC_CMD
14882
14883# Must we lock files when doing compilation?
14884need_locks=$lt_need_locks
14885
14886# Manifest tool.
14887MANIFEST_TOOL=$lt_MANIFEST_TOOL
14888
14889# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14890DSYMUTIL=$lt_DSYMUTIL
14891
14892# Tool to change global to local symbols on Mac OS X.
14893NMEDIT=$lt_NMEDIT
14894
14895# Tool to manipulate fat objects and archives on Mac OS X.
14896LIPO=$lt_LIPO
14897
14898# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14899OTOOL=$lt_OTOOL
14900
14901# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14902OTOOL64=$lt_OTOOL64
14903
14904# Old archive suffix (normally "a").
14905libext=$libext
14906
14907# Shared library suffix (normally ".so").
14908shrext_cmds=$lt_shrext_cmds
14909
14910# The commands to extract the exported symbol list from a shared archive.
14911extract_expsyms_cmds=$lt_extract_expsyms_cmds
14912
14913# Variables whose values should be saved in libtool wrapper scripts and
14914# restored at link time.
14915variables_saved_for_relink=$lt_variables_saved_for_relink
14916
14917# Do we need the "lib" prefix for modules?
14918need_lib_prefix=$need_lib_prefix
14919
14920# Do we need a version for libraries?
14921need_version=$need_version
14922
14923# Library versioning type.
14924version_type=$version_type
14925
14926# Shared library runtime path variable.
14927runpath_var=$runpath_var
14928
14929# Shared library path variable.
14930shlibpath_var=$shlibpath_var
14931
14932# Is shlibpath searched before the hard-coded library search path?
14933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14934
14935# Format of library name prefix.
14936libname_spec=$lt_libname_spec
14937
14938# List of archive names.  First name is the real one, the rest are links.
14939# The last name is the one that the linker finds with -lNAME
14940library_names_spec=$lt_library_names_spec
14941
14942# The coded name of the library, if different from the real name.
14943soname_spec=$lt_soname_spec
14944
14945# Permission mode override for installation of shared libraries.
14946install_override_mode=$lt_install_override_mode
14947
14948# Command to use after installation of a shared archive.
14949postinstall_cmds=$lt_postinstall_cmds
14950
14951# Command to use after uninstallation of a shared archive.
14952postuninstall_cmds=$lt_postuninstall_cmds
14953
14954# Commands used to finish a libtool library installation in a directory.
14955finish_cmds=$lt_finish_cmds
14956
14957# As "finish_cmds", except a single script fragment to be evaled but
14958# not shown.
14959finish_eval=$lt_finish_eval
14960
14961# Whether we should hardcode library paths into libraries.
14962hardcode_into_libs=$hardcode_into_libs
14963
14964# Compile-time system search path for libraries.
14965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14966
14967# Detected run-time system search path for libraries.
14968sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14969
14970# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14971configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14972
14973# Whether dlopen is supported.
14974dlopen_support=$enable_dlopen
14975
14976# Whether dlopen of programs is supported.
14977dlopen_self=$enable_dlopen_self
14978
14979# Whether dlopen of statically linked programs is supported.
14980dlopen_self_static=$enable_dlopen_self_static
14981
14982# Commands to strip libraries.
14983old_striplib=$lt_old_striplib
14984striplib=$lt_striplib
14985
14986
14987# The linker used to build libraries.
14988LD=$lt_LD
14989
14990# How to create reloadable object files.
14991reload_flag=$lt_reload_flag
14992reload_cmds=$lt_reload_cmds
14993
14994# Commands used to build an old-style archive.
14995old_archive_cmds=$lt_old_archive_cmds
14996
14997# A language specific compiler.
14998CC=$lt_compiler
14999
15000# Is the compiler the GNU compiler?
15001with_gcc=$GCC
15002
15003# Compiler flag to turn off builtin functions.
15004no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15005
15006# Additional compiler flags for building library objects.
15007pic_flag=$lt_lt_prog_compiler_pic
15008
15009# How to pass a linker flag through the compiler.
15010wl=$lt_lt_prog_compiler_wl
15011
15012# Compiler flag to prevent dynamic linking.
15013link_static_flag=$lt_lt_prog_compiler_static
15014
15015# Does compiler simultaneously support -c and -o options?
15016compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15017
15018# Whether or not to add -lc for building shared libraries.
15019build_libtool_need_lc=$archive_cmds_need_lc
15020
15021# Whether or not to disallow shared libs when runtime libs are static.
15022allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15023
15024# Compiler flag to allow reflexive dlopens.
15025export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15026
15027# Compiler flag to generate shared objects directly from archives.
15028whole_archive_flag_spec=$lt_whole_archive_flag_spec
15029
15030# Whether the compiler copes with passing no objects directly.
15031compiler_needs_object=$lt_compiler_needs_object
15032
15033# Create an old-style archive from a shared archive.
15034old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15035
15036# Create a temporary old-style archive to link instead of a shared archive.
15037old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15038
15039# Commands used to build a shared archive.
15040archive_cmds=$lt_archive_cmds
15041archive_expsym_cmds=$lt_archive_expsym_cmds
15042
15043# Commands used to build a loadable module if different from building
15044# a shared archive.
15045module_cmds=$lt_module_cmds
15046module_expsym_cmds=$lt_module_expsym_cmds
15047
15048# Whether we are building with GNU ld or not.
15049with_gnu_ld=$lt_with_gnu_ld
15050
15051# Flag that allows shared libraries with undefined symbols to be built.
15052allow_undefined_flag=$lt_allow_undefined_flag
15053
15054# Flag that enforces no undefined symbols.
15055no_undefined_flag=$lt_no_undefined_flag
15056
15057# Flag to hardcode \$libdir into a binary during linking.
15058# This must work even if \$libdir does not exist
15059hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15060
15061# Whether we need a single "-rpath" flag with a separated argument.
15062hardcode_libdir_separator=$lt_hardcode_libdir_separator
15063
15064# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15065# DIR into the resulting binary.
15066hardcode_direct=$hardcode_direct
15067
15068# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15069# DIR into the resulting binary and the resulting library dependency is
15070# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15071# library is relocated.
15072hardcode_direct_absolute=$hardcode_direct_absolute
15073
15074# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15075# into the resulting binary.
15076hardcode_minus_L=$hardcode_minus_L
15077
15078# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15079# into the resulting binary.
15080hardcode_shlibpath_var=$hardcode_shlibpath_var
15081
15082# Set to "yes" if building a shared library automatically hardcodes DIR
15083# into the library and all subsequent libraries and executables linked
15084# against it.
15085hardcode_automatic=$hardcode_automatic
15086
15087# Set to yes if linker adds runtime paths of dependent libraries
15088# to runtime path list.
15089inherit_rpath=$inherit_rpath
15090
15091# Whether libtool must link a program against all its dependency libraries.
15092link_all_deplibs=$link_all_deplibs
15093
15094# Set to "yes" if exported symbols are required.
15095always_export_symbols=$always_export_symbols
15096
15097# The commands to list exported symbols.
15098export_symbols_cmds=$lt_export_symbols_cmds
15099
15100# Symbols that should not be listed in the preloaded symbols.
15101exclude_expsyms=$lt_exclude_expsyms
15102
15103# Symbols that must always be exported.
15104include_expsyms=$lt_include_expsyms
15105
15106# Commands necessary for linking programs (against libraries) with templates.
15107prelink_cmds=$lt_prelink_cmds
15108
15109# Commands necessary for finishing linking programs.
15110postlink_cmds=$lt_postlink_cmds
15111
15112# Specify filename containing input files.
15113file_list_spec=$lt_file_list_spec
15114
15115# How to hardcode a shared library path into an executable.
15116hardcode_action=$hardcode_action
15117
15118# ### END LIBTOOL CONFIG
15119
15120_LT_EOF
15121
15122    cat <<'_LT_EOF' >> "$cfgfile"
15123
15124# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15125
15126# func_munge_path_list VARIABLE PATH
15127# -----------------------------------
15128# VARIABLE is name of variable containing _space_ separated list of
15129# directories to be munged by the contents of PATH, which is string
15130# having a format:
15131# "DIR[:DIR]:"
15132#       string "DIR[ DIR]" will be prepended to VARIABLE
15133# ":DIR[:DIR]"
15134#       string "DIR[ DIR]" will be appended to VARIABLE
15135# "DIRP[:DIRP]::[DIRA:]DIRA"
15136#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15137#       "DIRA[ DIRA]" will be appended to VARIABLE
15138# "DIR[:DIR]"
15139#       VARIABLE will be replaced by "DIR[ DIR]"
15140func_munge_path_list ()
15141{
15142    case x$2 in
15143    x)
15144        ;;
15145    *:)
15146        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15147        ;;
15148    x:*)
15149        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15150        ;;
15151    *::*)
15152        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15153        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15154        ;;
15155    *)
15156        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15157        ;;
15158    esac
15159}
15160
15161
15162# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15163func_cc_basename ()
15164{
15165    for cc_temp in $*""; do
15166      case $cc_temp in
15167        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15168        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15169        \-*) ;;
15170        *) break;;
15171      esac
15172    done
15173    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15174}
15175
15176
15177# ### END FUNCTIONS SHARED WITH CONFIGURE
15178
15179_LT_EOF
15180
15181  case $host_os in
15182  aix3*)
15183    cat <<\_LT_EOF >> "$cfgfile"
15184# AIX sometimes has problems with the GCC collect2 program.  For some
15185# reason, if we set the COLLECT_NAMES environment variable, the problems
15186# vanish in a puff of smoke.
15187if test set != "${COLLECT_NAMES+set}"; then
15188  COLLECT_NAMES=
15189  export COLLECT_NAMES
15190fi
15191_LT_EOF
15192    ;;
15193  esac
15194
15195
15196ltmain=$ac_aux_dir/ltmain.sh
15197
15198
15199  # We use sed instead of cat because bash on DJGPP gets confused if
15200  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15201  # text mode, it properly converts lines to CR/LF.  This bash problem
15202  # is reportedly fixed, but why not run on old versions too?
15203  sed '$q' "$ltmain" >> "$cfgfile" \
15204     || (rm -f "$cfgfile"; exit 1)
15205
15206   mv -f "$cfgfile" "$ofile" ||
15207    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15208  chmod +x "$ofile"
15209
15210 ;;
15211
15212  esac
15213done # for ac_tag
15214
15215
15216as_fn_exit 0
15217_ACEOF
15218ac_clean_files=$ac_clean_files_save
15219
15220test $ac_write_fail = 0 ||
15221  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15222
15223
15224# configure is writing to config.log, and then calls config.status.
15225# config.status does its own redirection, appending to config.log.
15226# Unfortunately, on DOS this fails, as config.log is still kept open
15227# by configure, so config.status won't be able to write to it; its
15228# output is simply discarded.  So we exec the FD to /dev/null,
15229# effectively closing config.log, so it can be properly (re)opened and
15230# appended to by config.status.  When coming back to configure, we
15231# need to make the FD available again.
15232if test "$no_create" != yes; then
15233  ac_cs_success=:
15234  ac_config_status_args=
15235  test "$silent" = yes &&
15236    ac_config_status_args="$ac_config_status_args --quiet"
15237  exec 5>/dev/null
15238  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15239  exec 5>>config.log
15240  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15241  # would make configure fail if this is the last instruction.
15242  $ac_cs_success || as_fn_exit 1
15243fi
15244if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15245  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15246$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15247fi
15248
15249