1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for random128 0.10.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: 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='random128'
592PACKAGE_TARNAME='random128'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='random128 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="random128.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
639LT_SYS_LIBRARY_PATH
640OTOOL64
641OTOOL
642LIPO
643NMEDIT
644DSYMUTIL
645MANIFEST_TOOL
646RANLIB
647ac_ct_AR
648AR
649DLLTOOL
650OBJDUMP
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665LIBTOOL
666W
667PS
668LN_S
669EGREP
670GREP
671CPP
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
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
734runstatedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL
754am__quote'
755ac_subst_files=''
756ac_user_opts='
757enable_option_checking
758enable_silent_rules
759enable_dependency_tracking
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764with_aix_soname
765with_gnu_ld
766with_sysroot
767enable_libtool_lock
768enable_largefile
769with_random
770'
771      ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779CPP
780LT_SYS_LIBRARY_PATH'
781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
786ac_unrecognized_opts=
787ac_unrecognized_sep=
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819runstatedir='${localstatedir}/run'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *=)   ac_optarg= ;;
846  *)    ac_optarg=yes ;;
847  esac
848
849  # Accept the important Cygnus configure options, so we can diagnose typos.
850
851  case $ac_dashdash$ac_option in
852  --)
853    ac_dashdash=yes ;;
854
855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856    ac_prev=bindir ;;
857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858    bindir=$ac_optarg ;;
859
860  -build | --build | --buil | --bui | --bu)
861    ac_prev=build_alias ;;
862  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863    build_alias=$ac_optarg ;;
864
865  -cache-file | --cache-file | --cache-fil | --cache-fi \
866  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867    ac_prev=cache_file ;;
868  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870    cache_file=$ac_optarg ;;
871
872  --config-cache | -C)
873    cache_file=config.cache ;;
874
875  -datadir | --datadir | --datadi | --datad)
876    ac_prev=datadir ;;
877  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878    datadir=$ac_optarg ;;
879
880  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881  | --dataroo | --dataro | --datar)
882    ac_prev=datarootdir ;;
883  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885    datarootdir=$ac_optarg ;;
886
887  -disable-* | --disable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=no ;;
902
903  -docdir | --docdir | --docdi | --doc | --do)
904    ac_prev=docdir ;;
905  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906    docdir=$ac_optarg ;;
907
908  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909    ac_prev=dvidir ;;
910  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911    dvidir=$ac_optarg ;;
912
913  -enable-* | --enable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=\$ac_optarg ;;
928
929  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931  | --exec | --exe | --ex)
932    ac_prev=exec_prefix ;;
933  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935  | --exec=* | --exe=* | --ex=*)
936    exec_prefix=$ac_optarg ;;
937
938  -gas | --gas | --ga | --g)
939    # Obsolete; use --with-gas.
940    with_gas=yes ;;
941
942  -help | --help | --hel | --he | -h)
943    ac_init_help=long ;;
944  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945    ac_init_help=recursive ;;
946  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947    ac_init_help=short ;;
948
949  -host | --host | --hos | --ho)
950    ac_prev=host_alias ;;
951  -host=* | --host=* | --hos=* | --ho=*)
952    host_alias=$ac_optarg ;;
953
954  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955    ac_prev=htmldir ;;
956  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957  | --ht=*)
958    htmldir=$ac_optarg ;;
959
960  -includedir | --includedir | --includedi | --included | --include \
961  | --includ | --inclu | --incl | --inc)
962    ac_prev=includedir ;;
963  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964  | --includ=* | --inclu=* | --incl=* | --inc=*)
965    includedir=$ac_optarg ;;
966
967  -infodir | --infodir | --infodi | --infod | --info | --inf)
968    ac_prev=infodir ;;
969  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970    infodir=$ac_optarg ;;
971
972  -libdir | --libdir | --libdi | --libd)
973    ac_prev=libdir ;;
974  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975    libdir=$ac_optarg ;;
976
977  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978  | --libexe | --libex | --libe)
979    ac_prev=libexecdir ;;
980  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981  | --libexe=* | --libex=* | --libe=*)
982    libexecdir=$ac_optarg ;;
983
984  -localedir | --localedir | --localedi | --localed | --locale)
985    ac_prev=localedir ;;
986  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987    localedir=$ac_optarg ;;
988
989  -localstatedir | --localstatedir | --localstatedi | --localstated \
990  | --localstate | --localstat | --localsta | --localst | --locals)
991    ac_prev=localstatedir ;;
992  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994    localstatedir=$ac_optarg ;;
995
996  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997    ac_prev=mandir ;;
998  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999    mandir=$ac_optarg ;;
1000
1001  -nfp | --nfp | --nf)
1002    # Obsolete; use --without-fp.
1003    with_fp=no ;;
1004
1005  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006  | --no-cr | --no-c | -n)
1007    no_create=yes ;;
1008
1009  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011    no_recursion=yes ;;
1012
1013  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015  | --oldin | --oldi | --old | --ol | --o)
1016    ac_prev=oldincludedir ;;
1017  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020    oldincludedir=$ac_optarg ;;
1021
1022  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023    ac_prev=prefix ;;
1024  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025    prefix=$ac_optarg ;;
1026
1027  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028  | --program-pre | --program-pr | --program-p)
1029    ac_prev=program_prefix ;;
1030  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032    program_prefix=$ac_optarg ;;
1033
1034  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035  | --program-suf | --program-su | --program-s)
1036    ac_prev=program_suffix ;;
1037  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039    program_suffix=$ac_optarg ;;
1040
1041  -program-transform-name | --program-transform-name \
1042  | --program-transform-nam | --program-transform-na \
1043  | --program-transform-n | --program-transform- \
1044  | --program-transform | --program-transfor \
1045  | --program-transfo | --program-transf \
1046  | --program-trans | --program-tran \
1047  | --progr-tra | --program-tr | --program-t)
1048    ac_prev=program_transform_name ;;
1049  -program-transform-name=* | --program-transform-name=* \
1050  | --program-transform-nam=* | --program-transform-na=* \
1051  | --program-transform-n=* | --program-transform-=* \
1052  | --program-transform=* | --program-transfor=* \
1053  | --program-transfo=* | --program-transf=* \
1054  | --program-trans=* | --program-tran=* \
1055  | --progr-tra=* | --program-tr=* | --program-t=*)
1056    program_transform_name=$ac_optarg ;;
1057
1058  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059    ac_prev=pdfdir ;;
1060  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061    pdfdir=$ac_optarg ;;
1062
1063  -psdir | --psdir | --psdi | --psd | --ps)
1064    ac_prev=psdir ;;
1065  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066    psdir=$ac_optarg ;;
1067
1068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069  | -silent | --silent | --silen | --sile | --sil)
1070    silent=yes ;;
1071
1072  -runstatedir | --runstatedir | --runstatedi | --runstated \
1073  | --runstate | --runstat | --runsta | --runst | --runs \
1074  | --run | --ru | --r)
1075    ac_prev=runstatedir ;;
1076  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1077  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1078  | --run=* | --ru=* | --r=*)
1079    runstatedir=$ac_optarg ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir runstatedir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures random128 0.10 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1372  --libdir=DIR            object code libraries [EPREFIX/lib]
1373  --includedir=DIR        C header files [PREFIX/include]
1374  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377  --infodir=DIR           info documentation [DATAROOTDIR/info]
1378  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379  --mandir=DIR            man documentation [DATAROOTDIR/man]
1380  --docdir=DIR            documentation root [DATAROOTDIR/doc/random128]
1381  --htmldir=DIR           html documentation [DOCDIR]
1382  --dvidir=DIR            dvi documentation [DOCDIR]
1383  --pdfdir=DIR            pdf documentation [DOCDIR]
1384  --psdir=DIR             ps documentation [DOCDIR]
1385_ACEOF
1386
1387  cat <<\_ACEOF
1388
1389Program names:
1390  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394System types:
1395  --build=BUILD     configure for building on BUILD [guessed]
1396  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of random128 0.10:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --enable-silent-rules   less verbose build output (undo: "make V=1")
1411  --disable-silent-rules  verbose build output (undo: "make V=0")
1412  --enable-dependency-tracking
1413                          do not reject slow dependency extractors
1414  --disable-dependency-tracking
1415                          speeds up one-time build
1416  --enable-shared[=PKGS]  build shared libraries [default=yes]
1417  --enable-static[=PKGS]  build static libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --disable-largefile     omit support for large files
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-aix-soname=aix|svr4|both
1429                          shared library versioning (aka "SONAME") variant to
1430                          provide on AIX, [default=aix].
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1433                          compiler's sysroot if not specified).
1434 --with-random=/dev/urandom - location of the system random file generator
1435--without-random            - there is no system random file generator
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  CPP         C preprocessor
1446  LT_SYS_LIBRARY_PATH
1447              User-defined run-time library search path.
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to <courier-users@lists.sourceforge.net>.
1453_ACEOF
1454ac_status=$?
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458  # If there are subdirs, report their specific --help.
1459  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460    test -d "$ac_dir" ||
1461      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462      continue
1463    ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469  # A ".." for each directory in $ac_dir_suffix.
1470  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471  case $ac_top_builddir_sub in
1472  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474  esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482  .)  # We are building in place.
1483    ac_srcdir=.
1484    ac_top_srcdir=$ac_top_builddir_sub
1485    ac_abs_top_srcdir=$ac_pwd ;;
1486  [\\/]* | ?:[\\/]* )  # Absolute name.
1487    ac_srcdir=$srcdir$ac_dir_suffix;
1488    ac_top_srcdir=$srcdir
1489    ac_abs_top_srcdir=$srcdir ;;
1490  *) # Relative name.
1491    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492    ac_top_srcdir=$ac_top_build_prefix$srcdir
1493    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497    cd "$ac_dir" || { ac_status=$?; continue; }
1498    # Check for guested configure.
1499    if test -f "$ac_srcdir/configure.gnu"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502    elif test -f "$ac_srcdir/configure"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure" --help=recursive
1505    else
1506      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507    fi || ac_status=$?
1508    cd "$ac_pwd" || { ac_status=$?; break; }
1509  done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514  cat <<\_ACEOF
1515random128 configure 0.10
1516generated by GNU Autoconf 2.69
1517
1518Copyright (C) 2012 Free Software Foundation, Inc.
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
1522  exit
1523fi
1524
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
1528
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  rm -f conftest.$ac_objext
1536  if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_compile") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } && {
1552	 test -z "$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       } && test -s conftest.$ac_objext; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560	ac_retval=1
1561fi
1562  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563  as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_cpp LINENO
1568# ----------------------
1569# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_cpp ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  if { { ac_try="$ac_cpp conftest.$ac_ext"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } > conftest.i && {
1589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       }; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597    ac_retval=1
1598fi
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600  as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_cpp
1603
1604# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605# -------------------------------------------------------
1606# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607# the include files in INCLUDES and setting the cache variable VAR
1608# accordingly.
1609ac_fn_c_check_header_mongrel ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  if eval \${$3+:} false; then :
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617fi
1618eval ac_res=\$$3
1619	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621else
1622  # Is the header compilable?
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624$as_echo_n "checking $2 usability... " >&6; }
1625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628#include <$2>
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631  ac_header_compiler=yes
1632else
1633  ac_header_compiler=no
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637$as_echo "$ac_header_compiler" >&6; }
1638
1639# Is the header present?
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641$as_echo_n "checking $2 presence... " >&6; }
1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644#include <$2>
1645_ACEOF
1646if ac_fn_c_try_cpp "$LINENO"; then :
1647  ac_header_preproc=yes
1648else
1649  ac_header_preproc=no
1650fi
1651rm -f conftest.err conftest.i conftest.$ac_ext
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653$as_echo "$ac_header_preproc" >&6; }
1654
1655# So?  What about this header?
1656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657  yes:no: )
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662    ;;
1663  no:yes:* )
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1667$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1671$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674( $as_echo "## -------------------------------------------------- ##
1675## Report this to courier-users@lists.sourceforge.net ##
1676## -------------------------------------------------- ##"
1677     ) | sed "s/^/$as_me: WARNING:     /" >&2
1678    ;;
1679esac
1680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
1682if eval \${$3+:} false; then :
1683  $as_echo_n "(cached) " >&6
1684else
1685  eval "$3=\$ac_header_compiler"
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690fi
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_mongrel
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713  { { case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_try") 2>&5
1720  ac_status=$?
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; }; }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: program exited with status $ac_status" >&5
1726       $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729       ac_retval=$ac_status
1730fi
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738# -------------------------------------------------------
1739# Tests whether HEADER exists and can be compiled using the include files in
1740# INCLUDES, setting the cache variable VAR accordingly.
1741ac_fn_c_check_header_compile ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747  $as_echo_n "(cached) " >&6
1748else
1749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755  eval "$3=yes"
1756else
1757  eval "$3=no"
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_header_compile
1767
1768# ac_fn_c_try_link LINENO
1769# -----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_link ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  rm -f conftest.$ac_objext conftest$ac_exeext
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && {
1791	 test -z "$ac_c_werror_flag" ||
1792	 test ! -s conftest.err
1793       } && test -s conftest$ac_exeext && {
1794	 test "$cross_compiling" = yes ||
1795	 test -x conftest$ac_exeext
1796       }; then :
1797  ac_retval=0
1798else
1799  $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802	ac_retval=1
1803fi
1804  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806  # interfere with the next link command; also delete a directory that is
1807  # left behind by Apple's compiler.  We do this before executing the actions.
1808  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810  as_fn_set_status $ac_retval
1811
1812} # ac_fn_c_try_link
1813
1814# ac_fn_c_check_func LINENO FUNC VAR
1815# ----------------------------------
1816# Tests whether FUNC exists, setting the cache variable VAR accordingly
1817ac_fn_c_check_func ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1829#define $2 innocuous_$2
1830
1831/* System header to define __stub macros and hopefully few prototypes,
1832    which can conflict with char $2 (); below.
1833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834    <limits.h> exists even on freestanding compilers.  */
1835
1836#ifdef __STDC__
1837# include <limits.h>
1838#else
1839# include <assert.h>
1840#endif
1841
1842#undef $2
1843
1844/* Override any GCC internal prototype to avoid an error.
1845   Use char because int might match the return type of a GCC
1846   builtin and then its argument prototype would still apply.  */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852    to always fail with ENOSYS.  Some functions are actually named
1853    something starting with __ and the normal name is an alias.  */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
1857
1858int
1859main ()
1860{
1861return $2 ();
1862  ;
1863  return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_link "$LINENO"; then :
1867  eval "$3=yes"
1868else
1869  eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext \
1872    conftest$ac_exeext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879} # ac_fn_c_check_func
1880
1881# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1882# -------------------------------------------
1883# Tests whether TYPE exists after having included INCLUDES, setting cache
1884# variable VAR accordingly.
1885ac_fn_c_check_type ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892else
1893  eval "$3=no"
1894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897int
1898main ()
1899{
1900if (sizeof ($2))
1901	 return 0;
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910int
1911main ()
1912{
1913if (sizeof (($2)))
1914	    return 0;
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920
1921else
1922  eval "$3=yes"
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} # ac_fn_c_check_type
1934cat >config.log <<_ACEOF
1935This file contains any messages produced by compilers while
1936running configure, to aid debugging if configure makes a mistake.
1937
1938It was created by random128 $as_me 0.10, which was
1939generated by GNU Autoconf 2.69.  Invocation command line was
1940
1941  $ $0 $@
1942
1943_ACEOF
1944exec 5>>config.log
1945{
1946cat <<_ASUNAME
1947## --------- ##
1948## Platform. ##
1949## --------- ##
1950
1951hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956
1957/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1959
1960/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1961/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1962/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1964/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1965/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1966/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1967
1968_ASUNAME
1969
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973  IFS=$as_save_IFS
1974  test -z "$as_dir" && as_dir=.
1975    $as_echo "PATH: $as_dir"
1976  done
1977IFS=$as_save_IFS
1978
1979} >&5
1980
1981cat >&5 <<_ACEOF
1982
1983
1984## ----------- ##
1985## Core tests. ##
1986## ----------- ##
1987
1988_ACEOF
1989
1990
1991# Keep a trace of the command line.
1992# Strip out --no-create and --no-recursion so they do not pile up.
1993# Strip out --silent because we don't want to record it for future runs.
1994# Also quote any args containing shell meta-characters.
1995# Make two passes to allow for proper duplicate-argument suppression.
1996ac_configure_args=
1997ac_configure_args0=
1998ac_configure_args1=
1999ac_must_keep_next=false
2000for ac_pass in 1 2
2001do
2002  for ac_arg
2003  do
2004    case $ac_arg in
2005    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007    | -silent | --silent | --silen | --sile | --sil)
2008      continue ;;
2009    *\'*)
2010      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011    esac
2012    case $ac_pass in
2013    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014    2)
2015      as_fn_append ac_configure_args1 " '$ac_arg'"
2016      if test $ac_must_keep_next = true; then
2017	ac_must_keep_next=false # Got value, back to normal.
2018      else
2019	case $ac_arg in
2020	  *=* | --config-cache | -C | -disable-* | --disable-* \
2021	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023	  | -with-* | --with-* | -without-* | --without-* | --x)
2024	    case "$ac_configure_args0 " in
2025	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026	    esac
2027	    ;;
2028	  -* ) ac_must_keep_next=true ;;
2029	esac
2030      fi
2031      as_fn_append ac_configure_args " '$ac_arg'"
2032      ;;
2033    esac
2034  done
2035done
2036{ ac_configure_args0=; unset ac_configure_args0;}
2037{ ac_configure_args1=; unset ac_configure_args1;}
2038
2039# When interrupted or exit'd, cleanup temporary files, and complete
2040# config.log.  We remove comments because anyway the quotes in there
2041# would cause problems or look ugly.
2042# WARNING: Use '\'' to represent an apostrophe within the trap.
2043# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044trap 'exit_status=$?
2045  # Save into config.log some information that might help in debugging.
2046  {
2047    echo
2048
2049    $as_echo "## ---------------- ##
2050## Cache variables. ##
2051## ---------------- ##"
2052    echo
2053    # The following way of writing the cache mishandles newlines in values,
2054(
2055  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2056    eval ac_val=\$$ac_var
2057    case $ac_val in #(
2058    *${as_nl}*)
2059      case $ac_var in #(
2060      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2061$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2062      esac
2063      case $ac_var in #(
2064      _ | IFS | as_nl) ;; #(
2065      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2066      *) { eval $ac_var=; unset $ac_var;} ;;
2067      esac ;;
2068    esac
2069  done
2070  (set) 2>&1 |
2071    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2072    *${as_nl}ac_space=\ *)
2073      sed -n \
2074	"s/'\''/'\''\\\\'\'''\''/g;
2075	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2076      ;; #(
2077    *)
2078      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2079      ;;
2080    esac |
2081    sort
2082)
2083    echo
2084
2085    $as_echo "## ----------------- ##
2086## Output variables. ##
2087## ----------------- ##"
2088    echo
2089    for ac_var in $ac_subst_vars
2090    do
2091      eval ac_val=\$$ac_var
2092      case $ac_val in
2093      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094      esac
2095      $as_echo "$ac_var='\''$ac_val'\''"
2096    done | sort
2097    echo
2098
2099    if test -n "$ac_subst_files"; then
2100      $as_echo "## ------------------- ##
2101## File substitutions. ##
2102## ------------------- ##"
2103      echo
2104      for ac_var in $ac_subst_files
2105      do
2106	eval ac_val=\$$ac_var
2107	case $ac_val in
2108	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109	esac
2110	$as_echo "$ac_var='\''$ac_val'\''"
2111      done | sort
2112      echo
2113    fi
2114
2115    if test -s confdefs.h; then
2116      $as_echo "## ----------- ##
2117## confdefs.h. ##
2118## ----------- ##"
2119      echo
2120      cat confdefs.h
2121      echo
2122    fi
2123    test "$ac_signal" != 0 &&
2124      $as_echo "$as_me: caught signal $ac_signal"
2125    $as_echo "$as_me: exit $exit_status"
2126  } >&5
2127  rm -f core *.core core.conftest.* &&
2128    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2129    exit $exit_status
2130' 0
2131for ac_signal in 1 2 13 15; do
2132  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2133done
2134ac_signal=0
2135
2136# confdefs.h avoids OS command line length limits that DEFS can exceed.
2137rm -f -r conftest* confdefs.h
2138
2139$as_echo "/* confdefs.h */" > confdefs.h
2140
2141# Predefined preprocessor variables.
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_NAME "$PACKAGE_NAME"
2145_ACEOF
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2149_ACEOF
2150
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_VERSION "$PACKAGE_VERSION"
2153_ACEOF
2154
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_STRING "$PACKAGE_STRING"
2157_ACEOF
2158
2159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2161_ACEOF
2162
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_URL "$PACKAGE_URL"
2165_ACEOF
2166
2167
2168# Let the site file select an alternate cache file if it wants to.
2169# Prefer an explicitly selected file to automatically selected ones.
2170ac_site_file1=NONE
2171ac_site_file2=NONE
2172if test -n "$CONFIG_SITE"; then
2173  # We do not want a PATH search for config.site.
2174  case $CONFIG_SITE in #((
2175    -*)  ac_site_file1=./$CONFIG_SITE;;
2176    */*) ac_site_file1=$CONFIG_SITE;;
2177    *)   ac_site_file1=./$CONFIG_SITE;;
2178  esac
2179elif test "x$prefix" != xNONE; then
2180  ac_site_file1=$prefix/share/config.site
2181  ac_site_file2=$prefix/etc/config.site
2182else
2183  ac_site_file1=$ac_default_prefix/share/config.site
2184  ac_site_file2=$ac_default_prefix/etc/config.site
2185fi
2186for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2187do
2188  test "x$ac_site_file" = xNONE && continue
2189  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2190    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2191$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2192    sed 's/^/| /' "$ac_site_file" >&5
2193    . "$ac_site_file" \
2194      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196as_fn_error $? "failed to load site script $ac_site_file
2197See \`config.log' for more details" "$LINENO" 5; }
2198  fi
2199done
2200
2201if test -r "$cache_file"; then
2202  # Some versions of bash will fail to source /dev/null (special files
2203  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2204  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2206$as_echo "$as_me: loading cache $cache_file" >&6;}
2207    case $cache_file in
2208      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2209      *)                      . "./$cache_file";;
2210    esac
2211  fi
2212else
2213  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2214$as_echo "$as_me: creating cache $cache_file" >&6;}
2215  >$cache_file
2216fi
2217
2218# Check that the precious variables saved in the cache have kept the same
2219# value.
2220ac_cache_corrupted=false
2221for ac_var in $ac_precious_vars; do
2222  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2223  eval ac_new_set=\$ac_env_${ac_var}_set
2224  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2225  eval ac_new_val=\$ac_env_${ac_var}_value
2226  case $ac_old_set,$ac_new_set in
2227    set,)
2228      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2229$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2230      ac_cache_corrupted=: ;;
2231    ,set)
2232      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2233$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2234      ac_cache_corrupted=: ;;
2235    ,);;
2236    *)
2237      if test "x$ac_old_val" != "x$ac_new_val"; then
2238	# differences in whitespace do not lead to failure.
2239	ac_old_val_w=`echo x $ac_old_val`
2240	ac_new_val_w=`echo x $ac_new_val`
2241	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2242	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2243$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2244	  ac_cache_corrupted=:
2245	else
2246	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2247$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2248	  eval $ac_var=\$ac_old_val
2249	fi
2250	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2251$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2252	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2253$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2254      fi;;
2255  esac
2256  # Pass precious variables to config.status.
2257  if test "$ac_new_set" = set; then
2258    case $ac_new_val in
2259    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2260    *) ac_arg=$ac_var=$ac_new_val ;;
2261    esac
2262    case " $ac_configure_args " in
2263      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2264      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2265    esac
2266  fi
2267done
2268if $ac_cache_corrupted; then
2269  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2272$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2273  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2274fi
2275## -------------------- ##
2276## Main body of script. ##
2277## -------------------- ##
2278
2279ac_ext=c
2280ac_cpp='$CPP $CPPFLAGS'
2281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285
2286
2287>confdefs.h  # Kill PACKAGE_ macros
2288
2289
2290ac_aux_dir=
2291for ac_dir in ../.. "$srcdir"/../..; do
2292  if test -f "$ac_dir/install-sh"; then
2293    ac_aux_dir=$ac_dir
2294    ac_install_sh="$ac_aux_dir/install-sh -c"
2295    break
2296  elif test -f "$ac_dir/install.sh"; then
2297    ac_aux_dir=$ac_dir
2298    ac_install_sh="$ac_aux_dir/install.sh -c"
2299    break
2300  elif test -f "$ac_dir/shtool"; then
2301    ac_aux_dir=$ac_dir
2302    ac_install_sh="$ac_aux_dir/shtool install -c"
2303    break
2304  fi
2305done
2306if test -z "$ac_aux_dir"; then
2307  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2308fi
2309
2310# These three variables are undocumented and unsupported,
2311# and are intended to be withdrawn in a future Autoconf release.
2312# They can cause serious problems if a builder's source tree is in a directory
2313# whose full name contains unusual characters.
2314ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2315ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2316ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2317
2318
2319am__api_version='1.16'
2320
2321# Find a good install program.  We prefer a C program (faster),
2322# so one script is as good as another.  But avoid the broken or
2323# incompatible versions:
2324# SysV /etc/install, /usr/sbin/install
2325# SunOS /usr/etc/install
2326# IRIX /sbin/install
2327# AIX /bin/install
2328# AmigaOS /C/install, which installs bootblocks on floppy discs
2329# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332# OS/2's system install, which has a completely different semantic
2333# ./install, which can be erroneously created by make from ./install.sh.
2334# Reject install programs that cannot install multiple files.
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336$as_echo_n "checking for a BSD-compatible install... " >&6; }
2337if test -z "$INSTALL"; then
2338if ${ac_cv_path_install+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346    # Account for people who put trailing slashes in PATH elements.
2347case $as_dir/ in #((
2348  ./ | .// | /[cC]/* | \
2349  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351  /usr/ucb/* ) ;;
2352  *)
2353    # OSF1 and SCO ODT 3.0 have their own names for install.
2354    # Don't use installbsd from OSF since it installs stuff as root
2355    # by default.
2356    for ac_prog in ginstall scoinst install; do
2357      for ac_exec_ext in '' $ac_executable_extensions; do
2358	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359	  if test $ac_prog = install &&
2360	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361	    # AIX install.  It has an incompatible calling convention.
2362	    :
2363	  elif test $ac_prog = install &&
2364	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365	    # program-specific install script used by HP pwplus--don't use.
2366	    :
2367	  else
2368	    rm -rf conftest.one conftest.two conftest.dir
2369	    echo one > conftest.one
2370	    echo two > conftest.two
2371	    mkdir conftest.dir
2372	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373	      test -s conftest.one && test -s conftest.two &&
2374	      test -s conftest.dir/conftest.one &&
2375	      test -s conftest.dir/conftest.two
2376	    then
2377	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378	      break 3
2379	    fi
2380	  fi
2381	fi
2382      done
2383    done
2384    ;;
2385esac
2386
2387  done
2388IFS=$as_save_IFS
2389
2390rm -rf conftest.one conftest.two conftest.dir
2391
2392fi
2393  if test "${ac_cv_path_install+set}" = set; then
2394    INSTALL=$ac_cv_path_install
2395  else
2396    # As a last resort, use the slow shell script.  Don't cache a
2397    # value for INSTALL within a source directory, because that will
2398    # break other packages using the cache if that directory is
2399    # removed, or if the value is a relative name.
2400    INSTALL=$ac_install_sh
2401  fi
2402fi
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404$as_echo "$INSTALL" >&6; }
2405
2406# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407# It thinks the first close brace ends the variable substitution.
2408test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415$as_echo_n "checking whether build environment is sane... " >&6; }
2416# Reject unsafe characters in $srcdir or the absolute working directory
2417# name.  Accept space and tab only in the latter.
2418am_lf='
2419'
2420case `pwd` in
2421  *[\\\"\#\$\&\'\`$am_lf]*)
2422    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2423esac
2424case $srcdir in
2425  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2426    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2427esac
2428
2429# Do 'set' in a subshell so we don't clobber the current shell's
2430# arguments.  Must try -L first in case configure is actually a
2431# symlink; some systems play weird games with the mod time of symlinks
2432# (eg FreeBSD returns the mod time of the symlink's containing
2433# directory).
2434if (
2435   am_has_slept=no
2436   for am_try in 1 2; do
2437     echo "timestamp, slept: $am_has_slept" > conftest.file
2438     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439     if test "$*" = "X"; then
2440	# -L didn't work.
2441	set X `ls -t "$srcdir/configure" conftest.file`
2442     fi
2443     if test "$*" != "X $srcdir/configure conftest.file" \
2444	&& test "$*" != "X conftest.file $srcdir/configure"; then
2445
2446	# If neither matched, then we have a broken ls.  This can happen
2447	# if, for instance, CONFIG_SHELL is bash and it inherits a
2448	# broken ls alias from the environment.  This has actually
2449	# happened.  Such a system could not be considered "sane".
2450	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2451  alias in your environment" "$LINENO" 5
2452     fi
2453     if test "$2" = conftest.file || test $am_try -eq 2; then
2454       break
2455     fi
2456     # Just in case.
2457     sleep 1
2458     am_has_slept=yes
2459   done
2460   test "$2" = conftest.file
2461   )
2462then
2463   # Ok.
2464   :
2465else
2466   as_fn_error $? "newly created file is older than distributed files!
2467Check your system clock" "$LINENO" 5
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470$as_echo "yes" >&6; }
2471# If we didn't sleep, we still need to ensure time stamps of config.status and
2472# generated files are strictly newer.
2473am_sleep_pid=
2474if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2475  ( sleep 1 ) &
2476  am_sleep_pid=$!
2477fi
2478
2479rm -f conftest.file
2480
2481test "$program_prefix" != NONE &&
2482  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483# Use a double $ so make ignores it.
2484test "$program_suffix" != NONE &&
2485  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486# Double any \ or $.
2487# By default was `s,x,x', remove it if useless.
2488ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490
2491# Expand $ac_aux_dir to an absolute path.
2492am_aux_dir=`cd "$ac_aux_dir" && pwd`
2493
2494if test x"${MISSING+set}" != xset; then
2495  case $am_aux_dir in
2496  *\ * | *\	*)
2497    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498  *)
2499    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500  esac
2501fi
2502# Use eval to expand $SHELL
2503if eval "$MISSING --is-lightweight"; then
2504  am_missing_run="$MISSING "
2505else
2506  am_missing_run=
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2508$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2509fi
2510
2511if test x"${install_sh+set}" != xset; then
2512  case $am_aux_dir in
2513  *\ * | *\	*)
2514    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515  *)
2516    install_sh="\${SHELL} $am_aux_dir/install-sh"
2517  esac
2518fi
2519
2520# Installed binaries are usually stripped using 'strip' when the user
2521# run "make install-strip".  However 'strip' might not be the right
2522# tool to use in cross-compilation environments, therefore Automake
2523# will honor the 'STRIP' environment variable to overrule this program.
2524if test "$cross_compiling" != no; then
2525  if test -n "$ac_tool_prefix"; then
2526  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527set dummy ${ac_tool_prefix}strip; ac_word=$2
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
2530if ${ac_cv_prog_STRIP+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test -n "$STRIP"; then
2534  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541    for ac_exec_ext in '' $ac_executable_extensions; do
2542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548  done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553STRIP=$ac_cv_prog_STRIP
2554if test -n "$STRIP"; then
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556$as_echo "$STRIP" >&6; }
2557else
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
2560fi
2561
2562
2563fi
2564if test -z "$ac_cv_prog_STRIP"; then
2565  ac_ct_STRIP=$STRIP
2566  # Extract the first word of "strip", so it can be a program name with args.
2567set dummy strip; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test -n "$ac_ct_STRIP"; then
2574  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  test -z "$as_dir" && as_dir=.
2581    for ac_exec_ext in '' $ac_executable_extensions; do
2582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583    ac_cv_prog_ac_ct_STRIP="strip"
2584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585    break 2
2586  fi
2587done
2588  done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594if test -n "$ac_ct_STRIP"; then
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596$as_echo "$ac_ct_STRIP" >&6; }
2597else
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602  if test "x$ac_ct_STRIP" = x; then
2603    STRIP=":"
2604  else
2605    case $cross_compiling:$ac_tool_warned in
2606yes:)
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609ac_tool_warned=yes ;;
2610esac
2611    STRIP=$ac_ct_STRIP
2612  fi
2613else
2614  STRIP="$ac_cv_prog_STRIP"
2615fi
2616
2617fi
2618INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622if test -z "$MKDIR_P"; then
2623  if ${ac_cv_path_mkdir+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_prog in mkdir gmkdir; do
2632	 for ac_exec_ext in '' $ac_executable_extensions; do
2633	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2634	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635	     'mkdir (GNU coreutils) '* | \
2636	     'mkdir (coreutils) '* | \
2637	     'mkdir (fileutils) '4.1*)
2638	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2639	       break 3;;
2640	   esac
2641	 done
2642       done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647
2648  test -d ./--version && rmdir ./--version
2649  if test "${ac_cv_path_mkdir+set}" = set; then
2650    MKDIR_P="$ac_cv_path_mkdir -p"
2651  else
2652    # As a last resort, use the slow shell script.  Don't cache a
2653    # value for MKDIR_P within a source directory, because that will
2654    # break other packages using the cache if that directory is
2655    # removed, or if the value is a relative name.
2656    MKDIR_P="$ac_install_sh -d"
2657  fi
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660$as_echo "$MKDIR_P" >&6; }
2661
2662for ac_prog in gawk mawk nawk awk
2663do
2664  # Extract the first word of "$ac_prog", so it can be a program name with args.
2665set dummy $ac_prog; ac_word=$2
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_AWK+:} false; then :
2669  $as_echo_n "(cached) " >&6
2670else
2671  if test -n "$AWK"; then
2672  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  test -z "$as_dir" && as_dir=.
2679    for ac_exec_ext in '' $ac_executable_extensions; do
2680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681    ac_cv_prog_AWK="$ac_prog"
2682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683    break 2
2684  fi
2685done
2686  done
2687IFS=$as_save_IFS
2688
2689fi
2690fi
2691AWK=$ac_cv_prog_AWK
2692if test -n "$AWK"; then
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2694$as_echo "$AWK" >&6; }
2695else
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
2698fi
2699
2700
2701  test -n "$AWK" && break
2702done
2703
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2706set x ${MAKE-make}
2707ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2708if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  cat >conftest.make <<\_ACEOF
2712SHELL = /bin/sh
2713all:
2714	@echo '@@@%%%=$(MAKE)=@@@%%%'
2715_ACEOF
2716# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2717case `${MAKE-make} -f conftest.make 2>/dev/null` in
2718  *@@@%%%=?*=@@@%%%*)
2719    eval ac_cv_prog_make_${ac_make}_set=yes;;
2720  *)
2721    eval ac_cv_prog_make_${ac_make}_set=no;;
2722esac
2723rm -f conftest.make
2724fi
2725if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727$as_echo "yes" >&6; }
2728  SET_MAKE=
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732  SET_MAKE="MAKE=${MAKE-make}"
2733fi
2734
2735rm -rf .tst 2>/dev/null
2736mkdir .tst 2>/dev/null
2737if test -d .tst; then
2738  am__leading_dot=.
2739else
2740  am__leading_dot=_
2741fi
2742rmdir .tst 2>/dev/null
2743
2744# Check whether --enable-silent-rules was given.
2745if test "${enable_silent_rules+set}" = set; then :
2746  enableval=$enable_silent_rules;
2747fi
2748
2749case $enable_silent_rules in # (((
2750  yes) AM_DEFAULT_VERBOSITY=0;;
2751   no) AM_DEFAULT_VERBOSITY=1;;
2752    *) AM_DEFAULT_VERBOSITY=1;;
2753esac
2754am_make=${MAKE-make}
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2756$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2757if ${am_cv_make_support_nested_variables+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if $as_echo 'TRUE=$(BAR$(V))
2761BAR0=false
2762BAR1=true
2763V=1
2764am__doit:
2765	@$(TRUE)
2766.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2767  am_cv_make_support_nested_variables=yes
2768else
2769  am_cv_make_support_nested_variables=no
2770fi
2771fi
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2773$as_echo "$am_cv_make_support_nested_variables" >&6; }
2774if test $am_cv_make_support_nested_variables = yes; then
2775    AM_V='$(V)'
2776  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2777else
2778  AM_V=$AM_DEFAULT_VERBOSITY
2779  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2780fi
2781AM_BACKSLASH='\'
2782
2783if test "`cd $srcdir && pwd`" != "`pwd`"; then
2784  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2785  # is not polluted with repeated "-I."
2786  am__isrc=' -I$(srcdir)'
2787  # test to see if srcdir already configured
2788  if test -f $srcdir/config.status; then
2789    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2790  fi
2791fi
2792
2793# test whether we have cygpath
2794if test -z "$CYGPATH_W"; then
2795  if (cygpath --version) >/dev/null 2>/dev/null; then
2796    CYGPATH_W='cygpath -w'
2797  else
2798    CYGPATH_W=echo
2799  fi
2800fi
2801
2802
2803# Define the identity of the package.
2804 PACKAGE='random128'
2805 VERSION='0.10'
2806
2807
2808# Some tools Automake needs.
2809
2810ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2811
2812
2813AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2814
2815
2816AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2817
2818
2819AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2820
2821
2822MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2823
2824# For better backward compatibility.  To be removed once Automake 1.9.x
2825# dies out for good.  For more background, see:
2826# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2827# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2828mkdir_p='$(MKDIR_P)'
2829
2830# We need awk for the "check" target (and possibly the TAP driver).  The
2831# system "awk" is bad on some platforms.
2832# Always define AMTAR for backward compatibility.  Yes, it's still used
2833# in the wild :-(  We should find a proper way to deprecate it ...
2834AMTAR='$${TAR-tar}'
2835
2836
2837# We'll loop over all known methods to create a tar archive until one works.
2838_am_tools='gnutar  pax cpio none'
2839
2840am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2841
2842
2843
2844
2845
2846
2847# POSIX will say in a future version that running "rm -f" with no argument
2848# is OK; and we want to be able to make that assumption in our Makefile
2849# recipes.  So use an aggressive probe to check that the usage we want is
2850# actually supported "in the wild" to an acceptable degree.
2851# See automake bug#10828.
2852# To make any issue more visible, cause the running configure to be aborted
2853# by default if the 'rm' program in use doesn't match our expectations; the
2854# user can still override this though.
2855if rm -f && rm -fr && rm -rf; then : OK; else
2856  cat >&2 <<'END'
2857Oops!
2858
2859Your 'rm' program seems unable to run without file operands specified
2860on the command line, even when the '-f' option is present.  This is contrary
2861to the behaviour of most rm programs out there, and not conforming with
2862the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2863
2864Please tell bug-automake@gnu.org about your system, including the value
2865of your $PATH and any error possibly output before this message.  This
2866can help us improve future automake versions.
2867
2868END
2869  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2870    echo 'Configuration will proceed anyway, since you have set the' >&2
2871    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2872    echo >&2
2873  else
2874    cat >&2 <<'END'
2875Aborting the configuration process, to ensure you take notice of the issue.
2876
2877You can download and install GNU coreutils to get an 'rm' implementation
2878that behaves properly: <https://www.gnu.org/software/coreutils/>.
2879
2880If you want to complete the configuration process using your problematic
2881'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2882to "yes", and re-run configure.
2883
2884END
2885    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2886  fi
2887fi
2888
2889LPATH="$PATH:/usr/local/bin"
2890
2891
2892ac_config_headers="$ac_config_headers config.h"
2893
2894DEPDIR="${am__leading_dot}deps"
2895
2896ac_config_commands="$ac_config_commands depfiles"
2897
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2899$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2900cat > confinc.mk << 'END'
2901am__doit:
2902	@echo this is the am__doit target >confinc.out
2903.PHONY: am__doit
2904END
2905am__include="#"
2906am__quote=
2907# BSD make does it like this.
2908echo '.include "confinc.mk" # ignored' > confmf.BSD
2909# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2910echo 'include confinc.mk # ignored' > confmf.GNU
2911_am_result=no
2912for s in GNU BSD; do
2913  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2914   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918  case $?:`cat confinc.out 2>/dev/null` in #(
2919  '0:this is the am__doit target') :
2920    case $s in #(
2921  BSD) :
2922    am__include='.include' am__quote='"' ;; #(
2923  *) :
2924    am__include='include' am__quote='' ;;
2925esac ;; #(
2926  *) :
2927     ;;
2928esac
2929  if test "$am__include" != "#"; then
2930    _am_result="yes ($s style)"
2931    break
2932  fi
2933done
2934rm -f confinc.* confmf.*
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2936$as_echo "${_am_result}" >&6; }
2937
2938# Check whether --enable-dependency-tracking was given.
2939if test "${enable_dependency_tracking+set}" = set; then :
2940  enableval=$enable_dependency_tracking;
2941fi
2942
2943if test "x$enable_dependency_tracking" != xno; then
2944  am_depcomp="$ac_aux_dir/depcomp"
2945  AMDEPBACKSLASH='\'
2946  am__nodep='_no'
2947fi
2948 if test "x$enable_dependency_tracking" != xno; then
2949  AMDEP_TRUE=
2950  AMDEP_FALSE='#'
2951else
2952  AMDEP_TRUE='#'
2953  AMDEP_FALSE=
2954fi
2955
2956
2957ac_ext=c
2958ac_cpp='$CPP $CPPFLAGS'
2959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962if test -n "$ac_tool_prefix"; then
2963  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$CC"; then
2971  ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993$as_echo "$CC" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_CC"; then
3002  ac_ct_CC=$CC
3003  # Extract the first word of "gcc", so it can be a program name with args.
3004set dummy gcc; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$ac_ct_CC"; then
3011  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    ac_cv_prog_ac_ct_CC="gcc"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031if test -n "$ac_ct_CC"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033$as_echo "$ac_ct_CC" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039  if test "x$ac_ct_CC" = x; then
3040    CC=""
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    CC=$ac_ct_CC
3049  fi
3050else
3051  CC="$ac_cv_prog_CC"
3052fi
3053
3054if test -z "$CC"; then
3055          if test -n "$ac_tool_prefix"; then
3056    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}cc; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_CC+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$CC"; then
3064  ac_cv_prog_CC="$CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073    ac_cv_prog_CC="${ac_tool_prefix}cc"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083CC=$ac_cv_prog_CC
3084if test -n "$CC"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086$as_echo "$CC" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093  fi
3094fi
3095if test -z "$CC"; then
3096  # Extract the first word of "cc", so it can be a program name with args.
3097set dummy cc; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if ${ac_cv_prog_CC+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$CC"; then
3104  ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
3106  ac_prog_rejected=no
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110  IFS=$as_save_IFS
3111  test -z "$as_dir" && as_dir=.
3112    for ac_exec_ext in '' $ac_executable_extensions; do
3113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115       ac_prog_rejected=yes
3116       continue
3117     fi
3118    ac_cv_prog_CC="cc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126if test $ac_prog_rejected = yes; then
3127  # We found a bogon in the path, so make sure we never use it.
3128  set dummy $ac_cv_prog_CC
3129  shift
3130  if test $# != 0; then
3131    # We chose a different compiler from the bogus one.
3132    # However, it has the same basename, so the bogon will be chosen
3133    # first if we set CC to just the basename; use the full file name.
3134    shift
3135    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136  fi
3137fi
3138fi
3139fi
3140CC=$ac_cv_prog_CC
3141if test -n "$CC"; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143$as_echo "$CC" >&6; }
3144else
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150fi
3151if test -z "$CC"; then
3152  if test -n "$ac_tool_prefix"; then
3153  for ac_prog in cl.exe
3154  do
3155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if ${ac_cv_prog_CC+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$CC"; then
3163  ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192    test -n "$CC" && break
3193  done
3194fi
3195if test -z "$CC"; then
3196  ac_ct_CC=$CC
3197  for ac_prog in cl.exe
3198do
3199  # Extract the first word of "$ac_prog", so it can be a program name with args.
3200set dummy $ac_prog; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if test -n "$ac_ct_CC"; then
3207  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214    for ac_exec_ext in '' $ac_executable_extensions; do
3215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_ac_ct_CC="$ac_prog"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227if test -n "$ac_ct_CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229$as_echo "$ac_ct_CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236  test -n "$ac_ct_CC" && break
3237done
3238
3239  if test "x$ac_ct_CC" = x; then
3240    CC=""
3241  else
3242    case $cross_compiling:$ac_tool_warned in
3243yes:)
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246ac_tool_warned=yes ;;
3247esac
3248    CC=$ac_ct_CC
3249  fi
3250fi
3251
3252fi
3253
3254
3255test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257as_fn_error $? "no acceptable C compiler found in \$PATH
3258See \`config.log' for more details" "$LINENO" 5; }
3259
3260# Provide some information about the compiler.
3261$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262set X $ac_compile
3263ac_compiler=$2
3264for ac_option in --version -v -V -qversion; do
3265  { { ac_try="$ac_compiler $ac_option >&5"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273  ac_status=$?
3274  if test -s conftest.err; then
3275    sed '10a\
3276... rest of stderr output deleted ...
3277         10q' conftest.err >conftest.er1
3278    cat conftest.er1 >&5
3279  fi
3280  rm -f conftest.er1 conftest.err
3281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282  test $ac_status = 0; }
3283done
3284
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296ac_clean_files_save=$ac_clean_files
3297ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298# Try to create an executable without -o first, disregard a.out.
3299# It will help us diagnose broken compilers, and finding out an intuition
3300# of exeext.
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302$as_echo_n "checking whether the C compiler works... " >&6; }
3303ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305# The possible output files:
3306ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308ac_rmfiles=
3309for ac_file in $ac_files
3310do
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314  esac
3315done
3316rm -f $ac_rmfiles
3317
3318if { { ac_try="$ac_link_default"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324$as_echo "$ac_try_echo"; } >&5
3325  (eval "$ac_link_default") 2>&5
3326  ac_status=$?
3327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328  test $ac_status = 0; }; then :
3329  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332# so that the user can short-circuit this test for compilers unknown to
3333# Autoconf.
3334for ac_file in $ac_files ''
3335do
3336  test -f "$ac_file" || continue
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339	;;
3340    [ab].out )
3341	# We found the default executable, but exeext='' is most
3342	# certainly right.
3343	break;;
3344    *.* )
3345	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346	then :; else
3347	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348	fi
3349	# We set ac_cv_exeext here because the later test for it is not
3350	# safe: cross compilers may not add the suffix if given an `-o'
3351	# argument, so we may need to know it at that point already.
3352	# Even if this section looks crufty: it has the advantage of
3353	# actually working.
3354	break;;
3355    * )
3356	break;;
3357  esac
3358done
3359test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361else
3362  ac_file=''
3363fi
3364if test -z "$ac_file"; then :
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367$as_echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370{ { $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 77 "C compiler cannot create executables
3373See \`config.log' for more details" "$LINENO" 5; }
3374else
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376$as_echo "yes" >&6; }
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379$as_echo_n "checking for C compiler default output file name... " >&6; }
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381$as_echo "$ac_file" >&6; }
3382ac_exeext=$ac_cv_exeext
3383
3384rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385ac_clean_files=$ac_clean_files_save
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387$as_echo_n "checking for suffix of executables... " >&6; }
3388if { { ac_try="$ac_link"
3389case "(($ac_try" in
3390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391  *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395  (eval "$ac_link") 2>&5
3396  ac_status=$?
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }; then :
3399  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3401# work properly (i.e., refer to `conftest.exe'), while it won't with
3402# `rm'.
3403for ac_file in conftest.exe conftest conftest.*; do
3404  test -f "$ac_file" || continue
3405  case $ac_file in
3406    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408	  break;;
3409    * ) break;;
3410  esac
3411done
3412else
3413  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416See \`config.log' for more details" "$LINENO" 5; }
3417fi
3418rm -f conftest conftest$ac_cv_exeext
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420$as_echo "$ac_cv_exeext" >&6; }
3421
3422rm -f conftest.$ac_ext
3423EXEEXT=$ac_cv_exeext
3424ac_exeext=$EXEEXT
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <stdio.h>
3428int
3429main ()
3430{
3431FILE *f = fopen ("conftest.out", "w");
3432 return ferror (f) || fclose (f) != 0;
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438ac_clean_files="$ac_clean_files conftest.out"
3439# Check that the compiler produces executables we can run.  If not, either
3440# the compiler is broken, or we cross compile.
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442$as_echo_n "checking whether we are cross compiling... " >&6; }
3443if test "$cross_compiling" != yes; then
3444  { { ac_try="$ac_link"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
3451  (eval "$ac_link") 2>&5
3452  ac_status=$?
3453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454  test $ac_status = 0; }
3455  if { ac_try='./conftest$ac_cv_exeext'
3456  { { case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_try") 2>&5
3463  ac_status=$?
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }; }; then
3466    cross_compiling=no
3467  else
3468    if test "$cross_compiling" = maybe; then
3469	cross_compiling=yes
3470    else
3471	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error $? "cannot run C compiled programs.
3474If you meant to cross compile, use \`--host'.
3475See \`config.log' for more details" "$LINENO" 5; }
3476    fi
3477  fi
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480$as_echo "$cross_compiling" >&6; }
3481
3482rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483ac_clean_files=$ac_clean_files_save
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485$as_echo_n "checking for suffix of object files... " >&6; }
3486if ${ac_cv_objext+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500rm -f conftest.o conftest.obj
3501if { { ac_try="$ac_compile"
3502case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508  (eval "$ac_compile") 2>&5
3509  ac_status=$?
3510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511  test $ac_status = 0; }; then :
3512  for ac_file in conftest.o conftest.obj conftest.*; do
3513  test -f "$ac_file" || continue;
3514  case $ac_file in
3515    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517       break;;
3518  esac
3519done
3520else
3521  $as_echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526as_fn_error $? "cannot compute suffix of object files: cannot compile
3527See \`config.log' for more details" "$LINENO" 5; }
3528fi
3529rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532$as_echo "$ac_cv_objext" >&6; }
3533OBJEXT=$ac_cv_objext
3534ac_objext=$OBJEXT
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537if ${ac_cv_c_compiler_gnu+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546#ifndef __GNUC__
3547       choke me
3548#endif
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554if ac_fn_c_try_compile "$LINENO"; then :
3555  ac_compiler_gnu=yes
3556else
3557  ac_compiler_gnu=no
3558fi
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561
3562fi
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565if test $ac_compiler_gnu = yes; then
3566  GCC=yes
3567else
3568  GCC=
3569fi
3570ac_test_CFLAGS=${CFLAGS+set}
3571ac_save_CFLAGS=$CFLAGS
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573$as_echo_n "checking whether $CC accepts -g... " >&6; }
3574if ${ac_cv_prog_cc_g+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  ac_save_c_werror_flag=$ac_c_werror_flag
3578   ac_c_werror_flag=yes
3579   ac_cv_prog_cc_g=no
3580   CFLAGS="-g"
3581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_compile "$LINENO"; then :
3593  ac_cv_prog_cc_g=yes
3594else
3595  CFLAGS=""
3596      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598
3599int
3600main ()
3601{
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608
3609else
3610  ac_c_werror_flag=$ac_save_c_werror_flag
3611	 CFLAGS="-g"
3612	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624  ac_cv_prog_cc_g=yes
3625fi
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631   ac_c_werror_flag=$ac_save_c_werror_flag
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634$as_echo "$ac_cv_prog_cc_g" >&6; }
3635if test "$ac_test_CFLAGS" = set; then
3636  CFLAGS=$ac_save_CFLAGS
3637elif test $ac_cv_prog_cc_g = yes; then
3638  if test "$GCC" = yes; then
3639    CFLAGS="-g -O2"
3640  else
3641    CFLAGS="-g"
3642  fi
3643else
3644  if test "$GCC" = yes; then
3645    CFLAGS="-O2"
3646  else
3647    CFLAGS=
3648  fi
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652if ${ac_cv_prog_cc_c89+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  ac_cv_prog_cc_c89=no
3656ac_save_CC=$CC
3657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659#include <stdarg.h>
3660#include <stdio.h>
3661struct stat;
3662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663struct buf { int x; };
3664FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665static char *e (p, i)
3666     char **p;
3667     int i;
3668{
3669  return p[i];
3670}
3671static char *f (char * (*g) (char **, int), char **p, ...)
3672{
3673  char *s;
3674  va_list v;
3675  va_start (v,p);
3676  s = g (p, va_arg (v,int));
3677  va_end (v);
3678  return s;
3679}
3680
3681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682   function prototypes and stuff, but not '\xHH' hex character constants.
3683   These don't provoke an error unfortunately, instead are silently treated
3684   as 'x'.  The following induces an error, until -std is added to get
3685   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686   array size at least.  It's necessary to write '\x00'==0 to get something
3687   that's true only with -std.  */
3688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689
3690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691   inside strings and character constants.  */
3692#define FOO(x) 'x'
3693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694
3695int test (int i, double x);
3696struct s1 {int (*f) (int a);};
3697struct s2 {int (*f) (double a);};
3698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699int argc;
3700char **argv;
3701int
3702main ()
3703{
3704return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_cv_prog_cc_c89=$ac_arg
3715fi
3716rm -f core conftest.err conftest.$ac_objext
3717  test "x$ac_cv_prog_cc_c89" != "xno" && break
3718done
3719rm -f conftest.$ac_ext
3720CC=$ac_save_CC
3721
3722fi
3723# AC_CACHE_VAL
3724case "x$ac_cv_prog_cc_c89" in
3725  x)
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727$as_echo "none needed" >&6; } ;;
3728  xno)
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730$as_echo "unsupported" >&6; } ;;
3731  *)
3732    CC="$CC $ac_cv_prog_cc_c89"
3733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735esac
3736if test "x$ac_cv_prog_cc_c89" != xno; then :
3737
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3752$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3753if ${am_cv_prog_cc_c_o+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758
3759int
3760main ()
3761{
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767  # Make sure it works both with $CC and with simple cc.
3768  # Following AC_PROG_CC_C_O, we do the test twice because some
3769  # compilers refuse to overwrite an existing .o file with -o,
3770  # though they will create one.
3771  am_cv_prog_cc_c_o=yes
3772  for am_i in 1 2; do
3773    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3774   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); } \
3778         && test -f conftest2.$ac_objext; then
3779      : OK
3780    else
3781      am_cv_prog_cc_c_o=no
3782      break
3783    fi
3784  done
3785  rm -f core conftest*
3786  unset am_i
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3789$as_echo "$am_cv_prog_cc_c_o" >&6; }
3790if test "$am_cv_prog_cc_c_o" != yes; then
3791   # Losing compiler, so override with the script.
3792   # FIXME: It is wrong to rewrite CC.
3793   # But if we don't then we get into trouble of one sort or another.
3794   # A longer-term fix would be to have automake use am__CC in this case,
3795   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3796   CC="$am_aux_dir/compile $CC"
3797fi
3798ac_ext=c
3799ac_cpp='$CPP $CPPFLAGS'
3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804
3805depcc="$CC"   am_compiler_list=
3806
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3808$as_echo_n "checking dependency style of $depcc... " >&6; }
3809if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3813  # We make a subdir and do the tests there.  Otherwise we can end up
3814  # making bogus files that we don't know about and never remove.  For
3815  # instance it was reported that on HP-UX the gcc test will end up
3816  # making a dummy file named 'D' -- because '-MD' means "put the output
3817  # in D".
3818  rm -rf conftest.dir
3819  mkdir conftest.dir
3820  # Copy depcomp to subdir because otherwise we won't find it if we're
3821  # using a relative directory.
3822  cp "$am_depcomp" conftest.dir
3823  cd conftest.dir
3824  # We will build objects and dependencies in a subdirectory because
3825  # it helps to detect inapplicable dependency modes.  For instance
3826  # both Tru64's cc and ICC support -MD to output dependencies as a
3827  # side effect of compilation, but ICC will put the dependencies in
3828  # the current directory while Tru64 will put them in the object
3829  # directory.
3830  mkdir sub
3831
3832  am_cv_CC_dependencies_compiler_type=none
3833  if test "$am_compiler_list" = ""; then
3834     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3835  fi
3836  am__universal=false
3837  case " $depcc " in #(
3838     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3839     esac
3840
3841  for depmode in $am_compiler_list; do
3842    # Setup a source with many dependencies, because some compilers
3843    # like to wrap large dependency lists on column 80 (with \), and
3844    # we should not choose a depcomp mode which is confused by this.
3845    #
3846    # We need to recreate these files for each test, as the compiler may
3847    # overwrite some of them when testing with obscure command lines.
3848    # This happens at least with the AIX C compiler.
3849    : > sub/conftest.c
3850    for i in 1 2 3 4 5 6; do
3851      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3852      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3853      # Solaris 10 /bin/sh.
3854      echo '/* dummy */' > sub/conftst$i.h
3855    done
3856    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857
3858    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3859    # mode.  It turns out that the SunPro C++ compiler does not properly
3860    # handle '-M -o', and we need to detect this.  Also, some Intel
3861    # versions had trouble with output in subdirs.
3862    am__obj=sub/conftest.${OBJEXT-o}
3863    am__minus_obj="-o $am__obj"
3864    case $depmode in
3865    gcc)
3866      # This depmode causes a compiler race in universal mode.
3867      test "$am__universal" = false || continue
3868      ;;
3869    nosideeffect)
3870      # After this tag, mechanisms are not by side-effect, so they'll
3871      # only be used when explicitly requested.
3872      if test "x$enable_dependency_tracking" = xyes; then
3873	continue
3874      else
3875	break
3876      fi
3877      ;;
3878    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3879      # This compiler won't grok '-c -o', but also, the minuso test has
3880      # not run yet.  These depmodes are late enough in the game, and
3881      # so weak that their functioning should not be impacted.
3882      am__obj=conftest.${OBJEXT-o}
3883      am__minus_obj=
3884      ;;
3885    none) break ;;
3886    esac
3887    if depmode=$depmode \
3888       source=sub/conftest.c object=$am__obj \
3889       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3890       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3891         >/dev/null 2>conftest.err &&
3892       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3893       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3894       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3895       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3896      # icc doesn't choke on unknown options, it will just issue warnings
3897      # or remarks (even with -Werror).  So we grep stderr for any message
3898      # that says an option was ignored or not supported.
3899      # When given -MP, icc 7.0 and 7.1 complain thusly:
3900      #   icc: Command line warning: ignoring option '-M'; no argument required
3901      # The diagnosis changed in icc 8.0:
3902      #   icc: Command line remark: option '-MP' not supported
3903      if (grep 'ignoring option' conftest.err ||
3904          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3905        am_cv_CC_dependencies_compiler_type=$depmode
3906        break
3907      fi
3908    fi
3909  done
3910
3911  cd ..
3912  rm -rf conftest.dir
3913else
3914  am_cv_CC_dependencies_compiler_type=none
3915fi
3916
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3919$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3920CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3921
3922 if
3923  test "x$enable_dependency_tracking" != xno \
3924  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925  am__fastdepCC_TRUE=
3926  am__fastdepCC_FALSE='#'
3927else
3928  am__fastdepCC_TRUE='#'
3929  am__fastdepCC_FALSE=
3930fi
3931
3932
3933
3934ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3940$as_echo_n "checking how to run the C preprocessor... " >&6; }
3941# On Suns, sometimes $CPP names a directory.
3942if test -n "$CPP" && test -d "$CPP"; then
3943  CPP=
3944fi
3945if test -z "$CPP"; then
3946  if ${ac_cv_prog_CPP+:} false; then :
3947  $as_echo_n "(cached) " >&6
3948else
3949      # Double quotes because CPP needs to be expanded
3950    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3951    do
3952      ac_preproc_ok=false
3953for ac_c_preproc_warn_flag in '' yes
3954do
3955  # Use a header file that comes with gcc, so configuring glibc
3956  # with a fresh cross-compiler works.
3957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958  # <limits.h> exists even on freestanding compilers.
3959  # On the NeXT, cc -E runs the code through the compiler's parser,
3960  # not just through cpp. "Syntax error" is here to catch this case.
3961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963#ifdef __STDC__
3964# include <limits.h>
3965#else
3966# include <assert.h>
3967#endif
3968		     Syntax error
3969_ACEOF
3970if ac_fn_c_try_cpp "$LINENO"; then :
3971
3972else
3973  # Broken: fails on valid input.
3974continue
3975fi
3976rm -f conftest.err conftest.i conftest.$ac_ext
3977
3978  # OK, works on sane cases.  Now check whether nonexistent headers
3979  # can be detected and how.
3980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982#include <ac_nonexistent.h>
3983_ACEOF
3984if ac_fn_c_try_cpp "$LINENO"; then :
3985  # Broken: success on invalid input.
3986continue
3987else
3988  # Passes both tests.
3989ac_preproc_ok=:
3990break
3991fi
3992rm -f conftest.err conftest.i conftest.$ac_ext
3993
3994done
3995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996rm -f conftest.i conftest.err conftest.$ac_ext
3997if $ac_preproc_ok; then :
3998  break
3999fi
4000
4001    done
4002    ac_cv_prog_CPP=$CPP
4003
4004fi
4005  CPP=$ac_cv_prog_CPP
4006else
4007  ac_cv_prog_CPP=$CPP
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4010$as_echo "$CPP" >&6; }
4011ac_preproc_ok=false
4012for ac_c_preproc_warn_flag in '' yes
4013do
4014  # Use a header file that comes with gcc, so configuring glibc
4015  # with a fresh cross-compiler works.
4016  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017  # <limits.h> exists even on freestanding compilers.
4018  # On the NeXT, cc -E runs the code through the compiler's parser,
4019  # not just through cpp. "Syntax error" is here to catch this case.
4020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h.  */
4022#ifdef __STDC__
4023# include <limits.h>
4024#else
4025# include <assert.h>
4026#endif
4027		     Syntax error
4028_ACEOF
4029if ac_fn_c_try_cpp "$LINENO"; then :
4030
4031else
4032  # Broken: fails on valid input.
4033continue
4034fi
4035rm -f conftest.err conftest.i conftest.$ac_ext
4036
4037  # OK, works on sane cases.  Now check whether nonexistent headers
4038  # can be detected and how.
4039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041#include <ac_nonexistent.h>
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044  # Broken: success on invalid input.
4045continue
4046else
4047  # Passes both tests.
4048ac_preproc_ok=:
4049break
4050fi
4051rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053done
4054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4055rm -f conftest.i conftest.err conftest.$ac_ext
4056if $ac_preproc_ok; then :
4057
4058else
4059  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4062See \`config.log' for more details" "$LINENO" 5; }
4063fi
4064
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074if ${ac_cv_path_GREP+:} false; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  if test -z "$GREP"; then
4078  ac_path_GREP_found=false
4079  # Loop through the user's path and test for each of PROGNAME-LIST
4080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    for ac_prog in grep ggrep; do
4086    for ac_exec_ext in '' $ac_executable_extensions; do
4087      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4088      as_fn_executable_p "$ac_path_GREP" || continue
4089# Check for GNU ac_path_GREP and select it if it is found.
4090  # Check for GNU $ac_path_GREP
4091case `"$ac_path_GREP" --version 2>&1` in
4092*GNU*)
4093  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094*)
4095  ac_count=0
4096  $as_echo_n 0123456789 >"conftest.in"
4097  while :
4098  do
4099    cat "conftest.in" "conftest.in" >"conftest.tmp"
4100    mv "conftest.tmp" "conftest.in"
4101    cp "conftest.in" "conftest.nl"
4102    $as_echo 'GREP' >> "conftest.nl"
4103    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105    as_fn_arith $ac_count + 1 && ac_count=$as_val
4106    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107      # Best one so far, save it but keep looking for a better one
4108      ac_cv_path_GREP="$ac_path_GREP"
4109      ac_path_GREP_max=$ac_count
4110    fi
4111    # 10*(2^10) chars as input seems more than enough
4112    test $ac_count -gt 10 && break
4113  done
4114  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115esac
4116
4117      $ac_path_GREP_found && break 3
4118    done
4119  done
4120  done
4121IFS=$as_save_IFS
4122  if test -z "$ac_cv_path_GREP"; then
4123    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124  fi
4125else
4126  ac_cv_path_GREP=$GREP
4127fi
4128
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131$as_echo "$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4133
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136$as_echo_n "checking for egrep... " >&6; }
4137if ${ac_cv_path_EGREP+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141   then ac_cv_path_EGREP="$GREP -E"
4142   else
4143     if test -z "$EGREP"; then
4144  ac_path_EGREP_found=false
4145  # Loop through the user's path and test for each of PROGNAME-LIST
4146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    for ac_prog in egrep; do
4152    for ac_exec_ext in '' $ac_executable_extensions; do
4153      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4154      as_fn_executable_p "$ac_path_EGREP" || continue
4155# Check for GNU ac_path_EGREP and select it if it is found.
4156  # Check for GNU $ac_path_EGREP
4157case `"$ac_path_EGREP" --version 2>&1` in
4158*GNU*)
4159  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160*)
4161  ac_count=0
4162  $as_echo_n 0123456789 >"conftest.in"
4163  while :
4164  do
4165    cat "conftest.in" "conftest.in" >"conftest.tmp"
4166    mv "conftest.tmp" "conftest.in"
4167    cp "conftest.in" "conftest.nl"
4168    $as_echo 'EGREP' >> "conftest.nl"
4169    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171    as_fn_arith $ac_count + 1 && ac_count=$as_val
4172    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173      # Best one so far, save it but keep looking for a better one
4174      ac_cv_path_EGREP="$ac_path_EGREP"
4175      ac_path_EGREP_max=$ac_count
4176    fi
4177    # 10*(2^10) chars as input seems more than enough
4178    test $ac_count -gt 10 && break
4179  done
4180  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181esac
4182
4183      $ac_path_EGREP_found && break 3
4184    done
4185  done
4186  done
4187IFS=$as_save_IFS
4188  if test -z "$ac_cv_path_EGREP"; then
4189    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190  fi
4191else
4192  ac_cv_path_EGREP=$EGREP
4193fi
4194
4195   fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198$as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP="$ac_cv_path_EGREP"
4200
4201
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4203$as_echo_n "checking for ANSI C header files... " >&6; }
4204if ${ac_cv_header_stdc+:} false; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <stdlib.h>
4210#include <stdarg.h>
4211#include <string.h>
4212#include <float.h>
4213
4214int
4215main ()
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223  ac_cv_header_stdc=yes
4224else
4225  ac_cv_header_stdc=no
4226fi
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228
4229if test $ac_cv_header_stdc = yes; then
4230  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <string.h>
4234
4235_ACEOF
4236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237  $EGREP "memchr" >/dev/null 2>&1; then :
4238
4239else
4240  ac_cv_header_stdc=no
4241fi
4242rm -f conftest*
4243
4244fi
4245
4246if test $ac_cv_header_stdc = yes; then
4247  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <stdlib.h>
4251
4252_ACEOF
4253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254  $EGREP "free" >/dev/null 2>&1; then :
4255
4256else
4257  ac_cv_header_stdc=no
4258fi
4259rm -f conftest*
4260
4261fi
4262
4263if test $ac_cv_header_stdc = yes; then
4264  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4265  if test "$cross_compiling" = yes; then :
4266  :
4267else
4268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h.  */
4270#include <ctype.h>
4271#include <stdlib.h>
4272#if ((' ' & 0x0FF) == 0x020)
4273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4275#else
4276# define ISLOWER(c) \
4277		   (('a' <= (c) && (c) <= 'i') \
4278		     || ('j' <= (c) && (c) <= 'r') \
4279		     || ('s' <= (c) && (c) <= 'z'))
4280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4281#endif
4282
4283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4284int
4285main ()
4286{
4287  int i;
4288  for (i = 0; i < 256; i++)
4289    if (XOR (islower (i), ISLOWER (i))
4290	|| toupper (i) != TOUPPER (i))
4291      return 2;
4292  return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_run "$LINENO"; then :
4296
4297else
4298  ac_cv_header_stdc=no
4299fi
4300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4301  conftest.$ac_objext conftest.beam conftest.$ac_ext
4302fi
4303
4304fi
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4307$as_echo "$ac_cv_header_stdc" >&6; }
4308if test $ac_cv_header_stdc = yes; then
4309
4310$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4311
4312fi
4313
4314# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316		  inttypes.h stdint.h unistd.h
4317do :
4318  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4320"
4321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4322  cat >>confdefs.h <<_ACEOF
4323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324_ACEOF
4325
4326fi
4327
4328done
4329
4330
4331
4332  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4333if test "x$ac_cv_header_minix_config_h" = xyes; then :
4334  MINIX=yes
4335else
4336  MINIX=
4337fi
4338
4339
4340  if test "$MINIX" = yes; then
4341
4342$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4343
4344
4345$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4346
4347
4348$as_echo "#define _MINIX 1" >>confdefs.h
4349
4350  fi
4351
4352
4353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4354$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4355if ${ac_cv_safe_to_define___extensions__+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h.  */
4360
4361#         define __EXTENSIONS__ 1
4362          $ac_includes_default
4363int
4364main ()
4365{
4366
4367  ;
4368  return 0;
4369}
4370_ACEOF
4371if ac_fn_c_try_compile "$LINENO"; then :
4372  ac_cv_safe_to_define___extensions__=yes
4373else
4374  ac_cv_safe_to_define___extensions__=no
4375fi
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377fi
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4379$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4380  test $ac_cv_safe_to_define___extensions__ = yes &&
4381    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4382
4383  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4384
4385  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4386
4387  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4388
4389  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4390
4391
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4394$as_echo_n "checking whether ln -s works... " >&6; }
4395LN_S=$as_ln_s
4396if test "$LN_S" = "ln -s"; then
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4398$as_echo "yes" >&6; }
4399else
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4401$as_echo "no, using $LN_S" >&6; }
4402fi
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409if test -n "$ac_tool_prefix"; then
4410  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4411set dummy ${ac_tool_prefix}gcc; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if ${ac_cv_prog_CC+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  if test -n "$CC"; then
4418  ac_cv_prog_CC="$CC" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423  IFS=$as_save_IFS
4424  test -z "$as_dir" && as_dir=.
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429    break 2
4430  fi
4431done
4432  done
4433IFS=$as_save_IFS
4434
4435fi
4436fi
4437CC=$ac_cv_prog_CC
4438if test -n "$CC"; then
4439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4440$as_echo "$CC" >&6; }
4441else
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443$as_echo "no" >&6; }
4444fi
4445
4446
4447fi
4448if test -z "$ac_cv_prog_CC"; then
4449  ac_ct_CC=$CC
4450  # Extract the first word of "gcc", so it can be a program name with args.
4451set dummy gcc; ac_word=$2
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453$as_echo_n "checking for $ac_word... " >&6; }
4454if ${ac_cv_prog_ac_ct_CC+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  if test -n "$ac_ct_CC"; then
4458  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4459else
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463  IFS=$as_save_IFS
4464  test -z "$as_dir" && as_dir=.
4465    for ac_exec_ext in '' $ac_executable_extensions; do
4466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467    ac_cv_prog_ac_ct_CC="gcc"
4468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469    break 2
4470  fi
4471done
4472  done
4473IFS=$as_save_IFS
4474
4475fi
4476fi
4477ac_ct_CC=$ac_cv_prog_ac_ct_CC
4478if test -n "$ac_ct_CC"; then
4479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4480$as_echo "$ac_ct_CC" >&6; }
4481else
4482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483$as_echo "no" >&6; }
4484fi
4485
4486  if test "x$ac_ct_CC" = x; then
4487    CC=""
4488  else
4489    case $cross_compiling:$ac_tool_warned in
4490yes:)
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493ac_tool_warned=yes ;;
4494esac
4495    CC=$ac_ct_CC
4496  fi
4497else
4498  CC="$ac_cv_prog_CC"
4499fi
4500
4501if test -z "$CC"; then
4502          if test -n "$ac_tool_prefix"; then
4503    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4504set dummy ${ac_tool_prefix}cc; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if ${ac_cv_prog_CC+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  if test -n "$CC"; then
4511  ac_cv_prog_CC="$CC" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518    for ac_exec_ext in '' $ac_executable_extensions; do
4519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520    ac_cv_prog_CC="${ac_tool_prefix}cc"
4521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522    break 2
4523  fi
4524done
4525  done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530CC=$ac_cv_prog_CC
4531if test -n "$CC"; then
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4533$as_echo "$CC" >&6; }
4534else
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
4537fi
4538
4539
4540  fi
4541fi
4542if test -z "$CC"; then
4543  # Extract the first word of "cc", so it can be a program name with args.
4544set dummy cc; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if ${ac_cv_prog_CC+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test -n "$CC"; then
4551  ac_cv_prog_CC="$CC" # Let the user override the test.
4552else
4553  ac_prog_rejected=no
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_exec_ext in '' $ac_executable_extensions; do
4560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4562       ac_prog_rejected=yes
4563       continue
4564     fi
4565    ac_cv_prog_CC="cc"
4566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567    break 2
4568  fi
4569done
4570  done
4571IFS=$as_save_IFS
4572
4573if test $ac_prog_rejected = yes; then
4574  # We found a bogon in the path, so make sure we never use it.
4575  set dummy $ac_cv_prog_CC
4576  shift
4577  if test $# != 0; then
4578    # We chose a different compiler from the bogus one.
4579    # However, it has the same basename, so the bogon will be chosen
4580    # first if we set CC to just the basename; use the full file name.
4581    shift
4582    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4583  fi
4584fi
4585fi
4586fi
4587CC=$ac_cv_prog_CC
4588if test -n "$CC"; then
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4590$as_echo "$CC" >&6; }
4591else
4592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593$as_echo "no" >&6; }
4594fi
4595
4596
4597fi
4598if test -z "$CC"; then
4599  if test -n "$ac_tool_prefix"; then
4600  for ac_prog in cl.exe
4601  do
4602    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
4606if ${ac_cv_prog_CC+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  if test -n "$CC"; then
4610  ac_cv_prog_CC="$CC" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615  IFS=$as_save_IFS
4616  test -z "$as_dir" && as_dir=.
4617    for ac_exec_ext in '' $ac_executable_extensions; do
4618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621    break 2
4622  fi
4623done
4624  done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
4629CC=$ac_cv_prog_CC
4630if test -n "$CC"; then
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4632$as_echo "$CC" >&6; }
4633else
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
4639    test -n "$CC" && break
4640  done
4641fi
4642if test -z "$CC"; then
4643  ac_ct_CC=$CC
4644  for ac_prog in cl.exe
4645do
4646  # Extract the first word of "$ac_prog", so it can be a program name with args.
4647set dummy $ac_prog; ac_word=$2
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
4650if ${ac_cv_prog_ac_ct_CC+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653  if test -n "$ac_ct_CC"; then
4654  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  test -z "$as_dir" && as_dir=.
4661    for ac_exec_ext in '' $ac_executable_extensions; do
4662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663    ac_cv_prog_ac_ct_CC="$ac_prog"
4664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665    break 2
4666  fi
4667done
4668  done
4669IFS=$as_save_IFS
4670
4671fi
4672fi
4673ac_ct_CC=$ac_cv_prog_ac_ct_CC
4674if test -n "$ac_ct_CC"; then
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4676$as_echo "$ac_ct_CC" >&6; }
4677else
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
4681
4682
4683  test -n "$ac_ct_CC" && break
4684done
4685
4686  if test "x$ac_ct_CC" = x; then
4687    CC=""
4688  else
4689    case $cross_compiling:$ac_tool_warned in
4690yes:)
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693ac_tool_warned=yes ;;
4694esac
4695    CC=$ac_ct_CC
4696  fi
4697fi
4698
4699fi
4700
4701
4702test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704as_fn_error $? "no acceptable C compiler found in \$PATH
4705See \`config.log' for more details" "$LINENO" 5; }
4706
4707# Provide some information about the compiler.
4708$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4709set X $ac_compile
4710ac_compiler=$2
4711for ac_option in --version -v -V -qversion; do
4712  { { ac_try="$ac_compiler $ac_option >&5"
4713case "(($ac_try" in
4714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715  *) ac_try_echo=$ac_try;;
4716esac
4717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4718$as_echo "$ac_try_echo"; } >&5
4719  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4720  ac_status=$?
4721  if test -s conftest.err; then
4722    sed '10a\
4723... rest of stderr output deleted ...
4724         10q' conftest.err >conftest.er1
4725    cat conftest.er1 >&5
4726  fi
4727  rm -f conftest.er1 conftest.err
4728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4729  test $ac_status = 0; }
4730done
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4733$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4734if ${ac_cv_c_compiler_gnu+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h.  */
4739
4740int
4741main ()
4742{
4743#ifndef __GNUC__
4744       choke me
4745#endif
4746
4747  ;
4748  return 0;
4749}
4750_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then :
4752  ac_compiler_gnu=yes
4753else
4754  ac_compiler_gnu=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757ac_cv_c_compiler_gnu=$ac_compiler_gnu
4758
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4761$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4762if test $ac_compiler_gnu = yes; then
4763  GCC=yes
4764else
4765  GCC=
4766fi
4767ac_test_CFLAGS=${CFLAGS+set}
4768ac_save_CFLAGS=$CFLAGS
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4770$as_echo_n "checking whether $CC accepts -g... " >&6; }
4771if ${ac_cv_prog_cc_g+:} false; then :
4772  $as_echo_n "(cached) " >&6
4773else
4774  ac_save_c_werror_flag=$ac_c_werror_flag
4775   ac_c_werror_flag=yes
4776   ac_cv_prog_cc_g=no
4777   CFLAGS="-g"
4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h.  */
4780
4781int
4782main ()
4783{
4784
4785  ;
4786  return 0;
4787}
4788_ACEOF
4789if ac_fn_c_try_compile "$LINENO"; then :
4790  ac_cv_prog_cc_g=yes
4791else
4792  CFLAGS=""
4793      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795
4796int
4797main ()
4798{
4799
4800  ;
4801  return 0;
4802}
4803_ACEOF
4804if ac_fn_c_try_compile "$LINENO"; then :
4805
4806else
4807  ac_c_werror_flag=$ac_save_c_werror_flag
4808	 CFLAGS="-g"
4809	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811
4812int
4813main ()
4814{
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_compile "$LINENO"; then :
4821  ac_cv_prog_cc_g=yes
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828   ac_c_werror_flag=$ac_save_c_werror_flag
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4831$as_echo "$ac_cv_prog_cc_g" >&6; }
4832if test "$ac_test_CFLAGS" = set; then
4833  CFLAGS=$ac_save_CFLAGS
4834elif test $ac_cv_prog_cc_g = yes; then
4835  if test "$GCC" = yes; then
4836    CFLAGS="-g -O2"
4837  else
4838    CFLAGS="-g"
4839  fi
4840else
4841  if test "$GCC" = yes; then
4842    CFLAGS="-O2"
4843  else
4844    CFLAGS=
4845  fi
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4848$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4849if ${ac_cv_prog_cc_c89+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  ac_cv_prog_cc_c89=no
4853ac_save_CC=$CC
4854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h.  */
4856#include <stdarg.h>
4857#include <stdio.h>
4858struct stat;
4859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4860struct buf { int x; };
4861FILE * (*rcsopen) (struct buf *, struct stat *, int);
4862static char *e (p, i)
4863     char **p;
4864     int i;
4865{
4866  return p[i];
4867}
4868static char *f (char * (*g) (char **, int), char **p, ...)
4869{
4870  char *s;
4871  va_list v;
4872  va_start (v,p);
4873  s = g (p, va_arg (v,int));
4874  va_end (v);
4875  return s;
4876}
4877
4878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4879   function prototypes and stuff, but not '\xHH' hex character constants.
4880   These don't provoke an error unfortunately, instead are silently treated
4881   as 'x'.  The following induces an error, until -std is added to get
4882   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4883   array size at least.  It's necessary to write '\x00'==0 to get something
4884   that's true only with -std.  */
4885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4886
4887/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4888   inside strings and character constants.  */
4889#define FOO(x) 'x'
4890int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4891
4892int test (int i, double x);
4893struct s1 {int (*f) (int a);};
4894struct s2 {int (*f) (double a);};
4895int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4896int argc;
4897char **argv;
4898int
4899main ()
4900{
4901return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4902  ;
4903  return 0;
4904}
4905_ACEOF
4906for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4907	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4908do
4909  CC="$ac_save_CC $ac_arg"
4910  if ac_fn_c_try_compile "$LINENO"; then :
4911  ac_cv_prog_cc_c89=$ac_arg
4912fi
4913rm -f core conftest.err conftest.$ac_objext
4914  test "x$ac_cv_prog_cc_c89" != "xno" && break
4915done
4916rm -f conftest.$ac_ext
4917CC=$ac_save_CC
4918
4919fi
4920# AC_CACHE_VAL
4921case "x$ac_cv_prog_cc_c89" in
4922  x)
4923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4924$as_echo "none needed" >&6; } ;;
4925  xno)
4926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4927$as_echo "unsupported" >&6; } ;;
4928  *)
4929    CC="$CC $ac_cv_prog_cc_c89"
4930    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4931$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4932esac
4933if test "x$ac_cv_prog_cc_c89" != xno; then :
4934
4935fi
4936
4937ac_ext=c
4938ac_cpp='$CPP $CPPFLAGS'
4939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942
4943ac_ext=c
4944ac_cpp='$CPP $CPPFLAGS'
4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4949$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4950if ${am_cv_prog_cc_c_o+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955
4956int
4957main ()
4958{
4959
4960  ;
4961  return 0;
4962}
4963_ACEOF
4964  # Make sure it works both with $CC and with simple cc.
4965  # Following AC_PROG_CC_C_O, we do the test twice because some
4966  # compilers refuse to overwrite an existing .o file with -o,
4967  # though they will create one.
4968  am_cv_prog_cc_c_o=yes
4969  for am_i in 1 2; do
4970    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4971   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } \
4975         && test -f conftest2.$ac_objext; then
4976      : OK
4977    else
4978      am_cv_prog_cc_c_o=no
4979      break
4980    fi
4981  done
4982  rm -f core conftest*
4983  unset am_i
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4986$as_echo "$am_cv_prog_cc_c_o" >&6; }
4987if test "$am_cv_prog_cc_c_o" != yes; then
4988   # Losing compiler, so override with the script.
4989   # FIXME: It is wrong to rewrite CC.
4990   # But if we don't then we get into trouble of one sort or another.
4991   # A longer-term fix would be to have automake use am__CC in this case,
4992   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4993   CC="$am_aux_dir/compile $CC"
4994fi
4995ac_ext=c
4996ac_cpp='$CPP $CPPFLAGS'
4997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000
5001
5002depcc="$CC"   am_compiler_list=
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5005$as_echo_n "checking dependency style of $depcc... " >&6; }
5006if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5010  # We make a subdir and do the tests there.  Otherwise we can end up
5011  # making bogus files that we don't know about and never remove.  For
5012  # instance it was reported that on HP-UX the gcc test will end up
5013  # making a dummy file named 'D' -- because '-MD' means "put the output
5014  # in D".
5015  rm -rf conftest.dir
5016  mkdir conftest.dir
5017  # Copy depcomp to subdir because otherwise we won't find it if we're
5018  # using a relative directory.
5019  cp "$am_depcomp" conftest.dir
5020  cd conftest.dir
5021  # We will build objects and dependencies in a subdirectory because
5022  # it helps to detect inapplicable dependency modes.  For instance
5023  # both Tru64's cc and ICC support -MD to output dependencies as a
5024  # side effect of compilation, but ICC will put the dependencies in
5025  # the current directory while Tru64 will put them in the object
5026  # directory.
5027  mkdir sub
5028
5029  am_cv_CC_dependencies_compiler_type=none
5030  if test "$am_compiler_list" = ""; then
5031     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5032  fi
5033  am__universal=false
5034  case " $depcc " in #(
5035     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5036     esac
5037
5038  for depmode in $am_compiler_list; do
5039    # Setup a source with many dependencies, because some compilers
5040    # like to wrap large dependency lists on column 80 (with \), and
5041    # we should not choose a depcomp mode which is confused by this.
5042    #
5043    # We need to recreate these files for each test, as the compiler may
5044    # overwrite some of them when testing with obscure command lines.
5045    # This happens at least with the AIX C compiler.
5046    : > sub/conftest.c
5047    for i in 1 2 3 4 5 6; do
5048      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5049      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5050      # Solaris 10 /bin/sh.
5051      echo '/* dummy */' > sub/conftst$i.h
5052    done
5053    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5054
5055    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5056    # mode.  It turns out that the SunPro C++ compiler does not properly
5057    # handle '-M -o', and we need to detect this.  Also, some Intel
5058    # versions had trouble with output in subdirs.
5059    am__obj=sub/conftest.${OBJEXT-o}
5060    am__minus_obj="-o $am__obj"
5061    case $depmode in
5062    gcc)
5063      # This depmode causes a compiler race in universal mode.
5064      test "$am__universal" = false || continue
5065      ;;
5066    nosideeffect)
5067      # After this tag, mechanisms are not by side-effect, so they'll
5068      # only be used when explicitly requested.
5069      if test "x$enable_dependency_tracking" = xyes; then
5070	continue
5071      else
5072	break
5073      fi
5074      ;;
5075    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5076      # This compiler won't grok '-c -o', but also, the minuso test has
5077      # not run yet.  These depmodes are late enough in the game, and
5078      # so weak that their functioning should not be impacted.
5079      am__obj=conftest.${OBJEXT-o}
5080      am__minus_obj=
5081      ;;
5082    none) break ;;
5083    esac
5084    if depmode=$depmode \
5085       source=sub/conftest.c object=$am__obj \
5086       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5087       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5088         >/dev/null 2>conftest.err &&
5089       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5090       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5091       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5092       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5093      # icc doesn't choke on unknown options, it will just issue warnings
5094      # or remarks (even with -Werror).  So we grep stderr for any message
5095      # that says an option was ignored or not supported.
5096      # When given -MP, icc 7.0 and 7.1 complain thusly:
5097      #   icc: Command line warning: ignoring option '-M'; no argument required
5098      # The diagnosis changed in icc 8.0:
5099      #   icc: Command line remark: option '-MP' not supported
5100      if (grep 'ignoring option' conftest.err ||
5101          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5102        am_cv_CC_dependencies_compiler_type=$depmode
5103        break
5104      fi
5105    fi
5106  done
5107
5108  cd ..
5109  rm -rf conftest.dir
5110else
5111  am_cv_CC_dependencies_compiler_type=none
5112fi
5113
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5116$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5117CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5118
5119 if
5120  test "x$enable_dependency_tracking" != xno \
5121  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5122  am__fastdepCC_TRUE=
5123  am__fastdepCC_FALSE='#'
5124else
5125  am__fastdepCC_TRUE='#'
5126  am__fastdepCC_FALSE=
5127fi
5128
5129
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5131$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5132if ${ac_cv_prog_cc_c99+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  ac_cv_prog_cc_c99=no
5136ac_save_CC=$CC
5137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139#include <stdarg.h>
5140#include <stdbool.h>
5141#include <stdlib.h>
5142#include <wchar.h>
5143#include <stdio.h>
5144
5145// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5146#define debug(...) fprintf (stderr, __VA_ARGS__)
5147#define showlist(...) puts (#__VA_ARGS__)
5148#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5149static void
5150test_varargs_macros (void)
5151{
5152  int x = 1234;
5153  int y = 5678;
5154  debug ("Flag");
5155  debug ("X = %d\n", x);
5156  showlist (The first, second, and third items.);
5157  report (x>y, "x is %d but y is %d", x, y);
5158}
5159
5160// Check long long types.
5161#define BIG64 18446744073709551615ull
5162#define BIG32 4294967295ul
5163#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5164#if !BIG_OK
5165  your preprocessor is broken;
5166#endif
5167#if BIG_OK
5168#else
5169  your preprocessor is broken;
5170#endif
5171static long long int bignum = -9223372036854775807LL;
5172static unsigned long long int ubignum = BIG64;
5173
5174struct incomplete_array
5175{
5176  int datasize;
5177  double data[];
5178};
5179
5180struct named_init {
5181  int number;
5182  const wchar_t *name;
5183  double average;
5184};
5185
5186typedef const char *ccp;
5187
5188static inline int
5189test_restrict (ccp restrict text)
5190{
5191  // See if C++-style comments work.
5192  // Iterate through items via the restricted pointer.
5193  // Also check for declarations in for loops.
5194  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5195    continue;
5196  return 0;
5197}
5198
5199// Check varargs and va_copy.
5200static void
5201test_varargs (const char *format, ...)
5202{
5203  va_list args;
5204  va_start (args, format);
5205  va_list args_copy;
5206  va_copy (args_copy, args);
5207
5208  const char *str;
5209  int number;
5210  float fnumber;
5211
5212  while (*format)
5213    {
5214      switch (*format++)
5215	{
5216	case 's': // string
5217	  str = va_arg (args_copy, const char *);
5218	  break;
5219	case 'd': // int
5220	  number = va_arg (args_copy, int);
5221	  break;
5222	case 'f': // float
5223	  fnumber = va_arg (args_copy, double);
5224	  break;
5225	default:
5226	  break;
5227	}
5228    }
5229  va_end (args_copy);
5230  va_end (args);
5231}
5232
5233int
5234main ()
5235{
5236
5237  // Check bool.
5238  _Bool success = false;
5239
5240  // Check restrict.
5241  if (test_restrict ("String literal") == 0)
5242    success = true;
5243  char *restrict newvar = "Another string";
5244
5245  // Check varargs.
5246  test_varargs ("s, d' f .", "string", 65, 34.234);
5247  test_varargs_macros ();
5248
5249  // Check flexible array members.
5250  struct incomplete_array *ia =
5251    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5252  ia->datasize = 10;
5253  for (int i = 0; i < ia->datasize; ++i)
5254    ia->data[i] = i * 1.234;
5255
5256  // Check named initializers.
5257  struct named_init ni = {
5258    .number = 34,
5259    .name = L"Test wide string",
5260    .average = 543.34343,
5261  };
5262
5263  ni.number = 58;
5264
5265  int dynamic_array[ni.number];
5266  dynamic_array[ni.number - 1] = 543;
5267
5268  // work around unused variable warnings
5269  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5270	  || dynamic_array[ni.number - 1] != 543);
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5277do
5278  CC="$ac_save_CC $ac_arg"
5279  if ac_fn_c_try_compile "$LINENO"; then :
5280  ac_cv_prog_cc_c99=$ac_arg
5281fi
5282rm -f core conftest.err conftest.$ac_objext
5283  test "x$ac_cv_prog_cc_c99" != "xno" && break
5284done
5285rm -f conftest.$ac_ext
5286CC=$ac_save_CC
5287
5288fi
5289# AC_CACHE_VAL
5290case "x$ac_cv_prog_cc_c99" in
5291  x)
5292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5293$as_echo "none needed" >&6; } ;;
5294  xno)
5295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5296$as_echo "unsupported" >&6; } ;;
5297  *)
5298    CC="$CC $ac_cv_prog_cc_c99"
5299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5300$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5301esac
5302if test "x$ac_cv_prog_cc_c99" != xno; then :
5303
5304fi
5305
5306
5307for ac_prog in ps
5308do
5309  # Extract the first word of "$ac_prog", so it can be a program name with args.
5310set dummy $ac_prog; ac_word=$2
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312$as_echo_n "checking for $ac_word... " >&6; }
5313if ${ac_cv_path_PS+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  case $PS in
5317  [\\/]* | ?:[\\/]*)
5318  ac_cv_path_PS="$PS" # Let the user override the test with a path.
5319  ;;
5320  *)
5321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $LPATH
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_exec_ext in '' $ac_executable_extensions; do
5327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330    break 2
5331  fi
5332done
5333  done
5334IFS=$as_save_IFS
5335
5336  ;;
5337esac
5338fi
5339PS=$ac_cv_path_PS
5340if test -n "$PS"; then
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5342$as_echo "$PS" >&6; }
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345$as_echo "no" >&6; }
5346fi
5347
5348
5349  test -n "$PS" && break
5350done
5351test -n "$PS" || PS="ps"
5352
5353for ac_prog in w
5354do
5355  # Extract the first word of "$ac_prog", so it can be a program name with args.
5356set dummy $ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_path_W+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  case $W in
5363  [\\/]* | ?:[\\/]*)
5364  ac_cv_path_W="$W" # Let the user override the test with a path.
5365  ;;
5366  *)
5367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $LPATH
5369do
5370  IFS=$as_save_IFS
5371  test -z "$as_dir" && as_dir=.
5372    for ac_exec_ext in '' $ac_executable_extensions; do
5373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374    ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376    break 2
5377  fi
5378done
5379  done
5380IFS=$as_save_IFS
5381
5382  ;;
5383esac
5384fi
5385W=$ac_cv_path_W
5386if test -n "$W"; then
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5
5388$as_echo "$W" >&6; }
5389else
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391$as_echo "no" >&6; }
5392fi
5393
5394
5395  test -n "$W" && break
5396done
5397test -n "$W" || W="w"
5398
5399case `pwd` in
5400  *\ * | *\	*)
5401    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5402$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403esac
5404
5405
5406
5407macro_version='2.4.6'
5408macro_revision='2.4.6'
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422ltmain=$ac_aux_dir/ltmain.sh
5423
5424# Make sure we can run config.sub.
5425$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5426  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5427
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5429$as_echo_n "checking build system type... " >&6; }
5430if ${ac_cv_build+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  ac_build_alias=$build_alias
5434test "x$ac_build_alias" = x &&
5435  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5436test "x$ac_build_alias" = x &&
5437  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5438ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5439  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5440
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5443$as_echo "$ac_cv_build" >&6; }
5444case $ac_cv_build in
5445*-*-*) ;;
5446*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5447esac
5448build=$ac_cv_build
5449ac_save_IFS=$IFS; IFS='-'
5450set x $ac_cv_build
5451shift
5452build_cpu=$1
5453build_vendor=$2
5454shift; shift
5455# Remember, the first character of IFS is used to create $*,
5456# except with old shells:
5457build_os=$*
5458IFS=$ac_save_IFS
5459case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5460
5461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5463$as_echo_n "checking host system type... " >&6; }
5464if ${ac_cv_host+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test "x$host_alias" = x; then
5468  ac_cv_host=$ac_cv_build
5469else
5470  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5471    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5472fi
5473
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5476$as_echo "$ac_cv_host" >&6; }
5477case $ac_cv_host in
5478*-*-*) ;;
5479*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5480esac
5481host=$ac_cv_host
5482ac_save_IFS=$IFS; IFS='-'
5483set x $ac_cv_host
5484shift
5485host_cpu=$1
5486host_vendor=$2
5487shift; shift
5488# Remember, the first character of IFS is used to create $*,
5489# except with old shells:
5490host_os=$*
5491IFS=$ac_save_IFS
5492case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5493
5494
5495# Backslashify metacharacters that are still active within
5496# double-quoted strings.
5497sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5498
5499# Same as above, but do not quote variable references.
5500double_quote_subst='s/\(["`\\]\)/\\\1/g'
5501
5502# Sed substitution to delay expansion of an escaped shell variable in a
5503# double_quote_subst'ed string.
5504delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5505
5506# Sed substitution to delay expansion of an escaped single quote.
5507delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5508
5509# Sed substitution to avoid accidental globbing in evaled expressions
5510no_glob_subst='s/\*/\\\*/g'
5511
5512ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5513ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5514ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5517$as_echo_n "checking how to print strings... " >&6; }
5518# Test print first, because it will be a builtin if present.
5519if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5520   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5521  ECHO='print -r --'
5522elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5523  ECHO='printf %s\n'
5524else
5525  # Use this function as a fallback that always works.
5526  func_fallback_echo ()
5527  {
5528    eval 'cat <<_LTECHO_EOF
5529$1
5530_LTECHO_EOF'
5531  }
5532  ECHO='func_fallback_echo'
5533fi
5534
5535# func_echo_all arg...
5536# Invoke $ECHO with all args, space-separated.
5537func_echo_all ()
5538{
5539    $ECHO ""
5540}
5541
5542case $ECHO in
5543  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5544$as_echo "printf" >&6; } ;;
5545  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5546$as_echo "print -r" >&6; } ;;
5547  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5548$as_echo "cat" >&6; } ;;
5549esac
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5565$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5566if ${ac_cv_path_SED+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5570     for ac_i in 1 2 3 4 5 6 7; do
5571       ac_script="$ac_script$as_nl$ac_script"
5572     done
5573     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5574     { ac_script=; unset ac_script;}
5575     if test -z "$SED"; then
5576  ac_path_SED_found=false
5577  # Loop through the user's path and test for each of PROGNAME-LIST
5578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_prog in sed gsed; do
5584    for ac_exec_ext in '' $ac_executable_extensions; do
5585      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5586      as_fn_executable_p "$ac_path_SED" || continue
5587# Check for GNU ac_path_SED and select it if it is found.
5588  # Check for GNU $ac_path_SED
5589case `"$ac_path_SED" --version 2>&1` in
5590*GNU*)
5591  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5592*)
5593  ac_count=0
5594  $as_echo_n 0123456789 >"conftest.in"
5595  while :
5596  do
5597    cat "conftest.in" "conftest.in" >"conftest.tmp"
5598    mv "conftest.tmp" "conftest.in"
5599    cp "conftest.in" "conftest.nl"
5600    $as_echo '' >> "conftest.nl"
5601    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603    as_fn_arith $ac_count + 1 && ac_count=$as_val
5604    if test $ac_count -gt ${ac_path_SED_max-0}; then
5605      # Best one so far, save it but keep looking for a better one
5606      ac_cv_path_SED="$ac_path_SED"
5607      ac_path_SED_max=$ac_count
5608    fi
5609    # 10*(2^10) chars as input seems more than enough
5610    test $ac_count -gt 10 && break
5611  done
5612  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613esac
5614
5615      $ac_path_SED_found && break 3
5616    done
5617  done
5618  done
5619IFS=$as_save_IFS
5620  if test -z "$ac_cv_path_SED"; then
5621    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5622  fi
5623else
5624  ac_cv_path_SED=$SED
5625fi
5626
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5629$as_echo "$ac_cv_path_SED" >&6; }
5630 SED="$ac_cv_path_SED"
5631  rm -f conftest.sed
5632
5633test -z "$SED" && SED=sed
5634Xsed="$SED -e 1s/^X//"
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5647$as_echo_n "checking for fgrep... " >&6; }
5648if ${ac_cv_path_FGREP+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5652   then ac_cv_path_FGREP="$GREP -F"
5653   else
5654     if test -z "$FGREP"; then
5655  ac_path_FGREP_found=false
5656  # Loop through the user's path and test for each of PROGNAME-LIST
5657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_prog in fgrep; do
5663    for ac_exec_ext in '' $ac_executable_extensions; do
5664      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5665      as_fn_executable_p "$ac_path_FGREP" || continue
5666# Check for GNU ac_path_FGREP and select it if it is found.
5667  # Check for GNU $ac_path_FGREP
5668case `"$ac_path_FGREP" --version 2>&1` in
5669*GNU*)
5670  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5671*)
5672  ac_count=0
5673  $as_echo_n 0123456789 >"conftest.in"
5674  while :
5675  do
5676    cat "conftest.in" "conftest.in" >"conftest.tmp"
5677    mv "conftest.tmp" "conftest.in"
5678    cp "conftest.in" "conftest.nl"
5679    $as_echo 'FGREP' >> "conftest.nl"
5680    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682    as_fn_arith $ac_count + 1 && ac_count=$as_val
5683    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5684      # Best one so far, save it but keep looking for a better one
5685      ac_cv_path_FGREP="$ac_path_FGREP"
5686      ac_path_FGREP_max=$ac_count
5687    fi
5688    # 10*(2^10) chars as input seems more than enough
5689    test $ac_count -gt 10 && break
5690  done
5691  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692esac
5693
5694      $ac_path_FGREP_found && break 3
5695    done
5696  done
5697  done
5698IFS=$as_save_IFS
5699  if test -z "$ac_cv_path_FGREP"; then
5700    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5701  fi
5702else
5703  ac_cv_path_FGREP=$FGREP
5704fi
5705
5706   fi
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5709$as_echo "$ac_cv_path_FGREP" >&6; }
5710 FGREP="$ac_cv_path_FGREP"
5711
5712
5713test -z "$GREP" && GREP=grep
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733# Check whether --with-gnu-ld was given.
5734if test "${with_gnu_ld+set}" = set; then :
5735  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5736else
5737  with_gnu_ld=no
5738fi
5739
5740ac_prog=ld
5741if test yes = "$GCC"; then
5742  # Check if gcc -print-prog-name=ld gives a path.
5743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5744$as_echo_n "checking for ld used by $CC... " >&6; }
5745  case $host in
5746  *-*-mingw*)
5747    # gcc leaves a trailing carriage return, which upsets mingw
5748    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5749  *)
5750    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5751  esac
5752  case $ac_prog in
5753    # Accept absolute paths.
5754    [\\/]* | ?:[\\/]*)
5755      re_direlt='/[^/][^/]*/\.\./'
5756      # Canonicalize the pathname of ld
5757      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5758      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5759	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5760      done
5761      test -z "$LD" && LD=$ac_prog
5762      ;;
5763  "")
5764    # If it fails, then pretend we aren't using GCC.
5765    ac_prog=ld
5766    ;;
5767  *)
5768    # If it is relative, then search for the first ld in PATH.
5769    with_gnu_ld=unknown
5770    ;;
5771  esac
5772elif test yes = "$with_gnu_ld"; then
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5774$as_echo_n "checking for GNU ld... " >&6; }
5775else
5776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5777$as_echo_n "checking for non-GNU ld... " >&6; }
5778fi
5779if ${lt_cv_path_LD+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -z "$LD"; then
5783  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5784  for ac_dir in $PATH; do
5785    IFS=$lt_save_ifs
5786    test -z "$ac_dir" && ac_dir=.
5787    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5788      lt_cv_path_LD=$ac_dir/$ac_prog
5789      # Check to see if the program is GNU ld.  I'd rather use --version,
5790      # but apparently some variants of GNU ld only accept -v.
5791      # Break only if it was the GNU/non-GNU ld that we prefer.
5792      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5793      *GNU* | *'with BFD'*)
5794	test no != "$with_gnu_ld" && break
5795	;;
5796      *)
5797	test yes != "$with_gnu_ld" && break
5798	;;
5799      esac
5800    fi
5801  done
5802  IFS=$lt_save_ifs
5803else
5804  lt_cv_path_LD=$LD # Let the user override the test with a path.
5805fi
5806fi
5807
5808LD=$lt_cv_path_LD
5809if test -n "$LD"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5811$as_echo "$LD" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5818$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5819if ${lt_cv_prog_gnu_ld+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5823case `$LD -v 2>&1 </dev/null` in
5824*GNU* | *'with BFD'*)
5825  lt_cv_prog_gnu_ld=yes
5826  ;;
5827*)
5828  lt_cv_prog_gnu_ld=no
5829  ;;
5830esac
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5833$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5834with_gnu_ld=$lt_cv_prog_gnu_ld
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5845$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5846if ${lt_cv_path_NM+:} false; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849  if test -n "$NM"; then
5850  # Let the user override the test.
5851  lt_cv_path_NM=$NM
5852else
5853  lt_nm_to_check=${ac_tool_prefix}nm
5854  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5855    lt_nm_to_check="$lt_nm_to_check nm"
5856  fi
5857  for lt_tmp_nm in $lt_nm_to_check; do
5858    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5859    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5860      IFS=$lt_save_ifs
5861      test -z "$ac_dir" && ac_dir=.
5862      tmp_nm=$ac_dir/$lt_tmp_nm
5863      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5864	# Check to see if the nm accepts a BSD-compat flag.
5865	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5866	#   nm: unknown option "B" ignored
5867	# Tru64's nm complains that /dev/null is an invalid object file
5868	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5869	case $build_os in
5870	mingw*) lt_bad_file=conftest.nm/nofile ;;
5871	*) lt_bad_file=/dev/null ;;
5872	esac
5873	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5874	*$lt_bad_file* | *'Invalid file or object type'*)
5875	  lt_cv_path_NM="$tmp_nm -B"
5876	  break 2
5877	  ;;
5878	*)
5879	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5880	  */dev/null*)
5881	    lt_cv_path_NM="$tmp_nm -p"
5882	    break 2
5883	    ;;
5884	  *)
5885	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5886	    continue # so that we can try to find one that supports BSD flags
5887	    ;;
5888	  esac
5889	  ;;
5890	esac
5891      fi
5892    done
5893    IFS=$lt_save_ifs
5894  done
5895  : ${lt_cv_path_NM=no}
5896fi
5897fi
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5899$as_echo "$lt_cv_path_NM" >&6; }
5900if test no != "$lt_cv_path_NM"; then
5901  NM=$lt_cv_path_NM
5902else
5903  # Didn't find any BSD compatible name lister, look for dumpbin.
5904  if test -n "$DUMPBIN"; then :
5905    # Let the user override the test.
5906  else
5907    if test -n "$ac_tool_prefix"; then
5908  for ac_prog in dumpbin "link -dump"
5909  do
5910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if ${ac_cv_prog_DUMPBIN+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  if test -n "$DUMPBIN"; then
5918  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_exec_ext in '' $ac_executable_extensions; do
5926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932  done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937DUMPBIN=$ac_cv_prog_DUMPBIN
5938if test -n "$DUMPBIN"; then
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5940$as_echo "$DUMPBIN" >&6; }
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946
5947    test -n "$DUMPBIN" && break
5948  done
5949fi
5950if test -z "$DUMPBIN"; then
5951  ac_ct_DUMPBIN=$DUMPBIN
5952  for ac_prog in dumpbin "link -dump"
5953do
5954  # Extract the first word of "$ac_prog", so it can be a program name with args.
5955set dummy $ac_prog; ac_word=$2
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
5958if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5959  $as_echo_n "(cached) " >&6
5960else
5961  if test -n "$ac_ct_DUMPBIN"; then
5962  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967  IFS=$as_save_IFS
5968  test -z "$as_dir" && as_dir=.
5969    for ac_exec_ext in '' $ac_executable_extensions; do
5970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973    break 2
5974  fi
5975done
5976  done
5977IFS=$as_save_IFS
5978
5979fi
5980fi
5981ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5982if test -n "$ac_ct_DUMPBIN"; then
5983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5984$as_echo "$ac_ct_DUMPBIN" >&6; }
5985else
5986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988fi
5989
5990
5991  test -n "$ac_ct_DUMPBIN" && break
5992done
5993
5994  if test "x$ac_ct_DUMPBIN" = x; then
5995    DUMPBIN=":"
5996  else
5997    case $cross_compiling:$ac_tool_warned in
5998yes:)
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001ac_tool_warned=yes ;;
6002esac
6003    DUMPBIN=$ac_ct_DUMPBIN
6004  fi
6005fi
6006
6007    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6008    *COFF*)
6009      DUMPBIN="$DUMPBIN -symbols -headers"
6010      ;;
6011    *)
6012      DUMPBIN=:
6013      ;;
6014    esac
6015  fi
6016
6017  if test : != "$DUMPBIN"; then
6018    NM=$DUMPBIN
6019  fi
6020fi
6021test -z "$NM" && NM=nm
6022
6023
6024
6025
6026
6027
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6029$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6030if ${lt_cv_nm_interface+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  lt_cv_nm_interface="BSD nm"
6034  echo "int some_variable = 0;" > conftest.$ac_ext
6035  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6036  (eval "$ac_compile" 2>conftest.err)
6037  cat conftest.err >&5
6038  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6039  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6040  cat conftest.err >&5
6041  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6042  cat conftest.out >&5
6043  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6044    lt_cv_nm_interface="MS dumpbin"
6045  fi
6046  rm -f conftest*
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6049$as_echo "$lt_cv_nm_interface" >&6; }
6050
6051# find the maximum length of command line arguments
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6053$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6054if ${lt_cv_sys_max_cmd_len+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057    i=0
6058  teststring=ABCD
6059
6060  case $build_os in
6061  msdosdjgpp*)
6062    # On DJGPP, this test can blow up pretty badly due to problems in libc
6063    # (any single argument exceeding 2000 bytes causes a buffer overrun
6064    # during glob expansion).  Even if it were fixed, the result of this
6065    # check would be larger than it should be.
6066    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6067    ;;
6068
6069  gnu*)
6070    # Under GNU Hurd, this test is not required because there is
6071    # no limit to the length of command line arguments.
6072    # Libtool will interpret -1 as no limit whatsoever
6073    lt_cv_sys_max_cmd_len=-1;
6074    ;;
6075
6076  cygwin* | mingw* | cegcc*)
6077    # On Win9x/ME, this test blows up -- it succeeds, but takes
6078    # about 5 minutes as the teststring grows exponentially.
6079    # Worse, since 9x/ME are not pre-emptively multitasking,
6080    # you end up with a "frozen" computer, even though with patience
6081    # the test eventually succeeds (with a max line length of 256k).
6082    # Instead, let's just punt: use the minimum linelength reported by
6083    # all of the supported platforms: 8192 (on NT/2K/XP).
6084    lt_cv_sys_max_cmd_len=8192;
6085    ;;
6086
6087  mint*)
6088    # On MiNT this can take a long time and run out of memory.
6089    lt_cv_sys_max_cmd_len=8192;
6090    ;;
6091
6092  amigaos*)
6093    # On AmigaOS with pdksh, this test takes hours, literally.
6094    # So we just punt and use a minimum line length of 8192.
6095    lt_cv_sys_max_cmd_len=8192;
6096    ;;
6097
6098  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6099    # This has been around since 386BSD, at least.  Likely further.
6100    if test -x /sbin/sysctl; then
6101      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6102    elif test -x /usr/sbin/sysctl; then
6103      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6104    else
6105      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6106    fi
6107    # And add a safety zone
6108    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6109    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6110    ;;
6111
6112  interix*)
6113    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6114    lt_cv_sys_max_cmd_len=196608
6115    ;;
6116
6117  os2*)
6118    # The test takes a long time on OS/2.
6119    lt_cv_sys_max_cmd_len=8192
6120    ;;
6121
6122  osf*)
6123    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6124    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6125    # nice to cause kernel panics so lets avoid the loop below.
6126    # First set a reasonable default.
6127    lt_cv_sys_max_cmd_len=16384
6128    #
6129    if test -x /sbin/sysconfig; then
6130      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6131        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6132      esac
6133    fi
6134    ;;
6135  sco3.2v5*)
6136    lt_cv_sys_max_cmd_len=102400
6137    ;;
6138  sysv5* | sco5v6* | sysv4.2uw2*)
6139    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6140    if test -n "$kargmax"; then
6141      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6142    else
6143      lt_cv_sys_max_cmd_len=32768
6144    fi
6145    ;;
6146  *)
6147    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6148    if test -n "$lt_cv_sys_max_cmd_len" && \
6149       test undefined != "$lt_cv_sys_max_cmd_len"; then
6150      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6151      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6152    else
6153      # Make teststring a little bigger before we do anything with it.
6154      # a 1K string should be a reasonable start.
6155      for i in 1 2 3 4 5 6 7 8; do
6156        teststring=$teststring$teststring
6157      done
6158      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6159      # If test is not a shell built-in, we'll probably end up computing a
6160      # maximum length that is only half of the actual maximum length, but
6161      # we can't tell.
6162      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6163	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6164	      test 17 != "$i" # 1/2 MB should be enough
6165      do
6166        i=`expr $i + 1`
6167        teststring=$teststring$teststring
6168      done
6169      # Only check the string length outside the loop.
6170      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6171      teststring=
6172      # Add a significant safety factor because C++ compilers can tack on
6173      # massive amounts of additional arguments before passing them to the
6174      # linker.  It appears as though 1/2 is a usable value.
6175      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6176    fi
6177    ;;
6178  esac
6179
6180fi
6181
6182if test -n "$lt_cv_sys_max_cmd_len"; then
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6184$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6185else
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6187$as_echo "none" >&6; }
6188fi
6189max_cmd_len=$lt_cv_sys_max_cmd_len
6190
6191
6192
6193
6194
6195
6196: ${CP="cp -f"}
6197: ${MV="mv -f"}
6198: ${RM="rm -f"}
6199
6200if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6201  lt_unset=unset
6202else
6203  lt_unset=false
6204fi
6205
6206
6207
6208
6209
6210# test EBCDIC or ASCII
6211case `echo X|tr X '\101'` in
6212 A) # ASCII based system
6213    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6214  lt_SP2NL='tr \040 \012'
6215  lt_NL2SP='tr \015\012 \040\040'
6216  ;;
6217 *) # EBCDIC based system
6218  lt_SP2NL='tr \100 \n'
6219  lt_NL2SP='tr \r\n \100\100'
6220  ;;
6221esac
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6232$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6233if ${lt_cv_to_host_file_cmd+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  case $host in
6237  *-*-mingw* )
6238    case $build in
6239      *-*-mingw* ) # actually msys
6240        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6241        ;;
6242      *-*-cygwin* )
6243        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6244        ;;
6245      * ) # otherwise, assume *nix
6246        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6247        ;;
6248    esac
6249    ;;
6250  *-*-cygwin* )
6251    case $build in
6252      *-*-mingw* ) # actually msys
6253        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6254        ;;
6255      *-*-cygwin* )
6256        lt_cv_to_host_file_cmd=func_convert_file_noop
6257        ;;
6258      * ) # otherwise, assume *nix
6259        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6260        ;;
6261    esac
6262    ;;
6263  * ) # unhandled hosts (and "normal" native builds)
6264    lt_cv_to_host_file_cmd=func_convert_file_noop
6265    ;;
6266esac
6267
6268fi
6269
6270to_host_file_cmd=$lt_cv_to_host_file_cmd
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6272$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6273
6274
6275
6276
6277
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6279$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6280if ${lt_cv_to_tool_file_cmd+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  #assume ordinary cross tools, or native build.
6284lt_cv_to_tool_file_cmd=func_convert_file_noop
6285case $host in
6286  *-*-mingw* )
6287    case $build in
6288      *-*-mingw* ) # actually msys
6289        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6290        ;;
6291    esac
6292    ;;
6293esac
6294
6295fi
6296
6297to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6299$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6300
6301
6302
6303
6304
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6306$as_echo_n "checking for $LD option to reload object files... " >&6; }
6307if ${lt_cv_ld_reload_flag+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  lt_cv_ld_reload_flag='-r'
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6313$as_echo "$lt_cv_ld_reload_flag" >&6; }
6314reload_flag=$lt_cv_ld_reload_flag
6315case $reload_flag in
6316"" | " "*) ;;
6317*) reload_flag=" $reload_flag" ;;
6318esac
6319reload_cmds='$LD$reload_flag -o $output$reload_objs'
6320case $host_os in
6321  cygwin* | mingw* | pw32* | cegcc*)
6322    if test yes != "$GCC"; then
6323      reload_cmds=false
6324    fi
6325    ;;
6326  darwin*)
6327    if test yes = "$GCC"; then
6328      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6329    else
6330      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6331    fi
6332    ;;
6333esac
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343if test -n "$ac_tool_prefix"; then
6344  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}objdump; ac_word=$2
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
6348if ${ac_cv_prog_OBJDUMP+:} false; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  if test -n "$OBJDUMP"; then
6352  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357  IFS=$as_save_IFS
6358  test -z "$as_dir" && as_dir=.
6359    for ac_exec_ext in '' $ac_executable_extensions; do
6360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363    break 2
6364  fi
6365done
6366  done
6367IFS=$as_save_IFS
6368
6369fi
6370fi
6371OBJDUMP=$ac_cv_prog_OBJDUMP
6372if test -n "$OBJDUMP"; then
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6374$as_echo "$OBJDUMP" >&6; }
6375else
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380
6381fi
6382if test -z "$ac_cv_prog_OBJDUMP"; then
6383  ac_ct_OBJDUMP=$OBJDUMP
6384  # Extract the first word of "objdump", so it can be a program name with args.
6385set dummy objdump; ac_word=$2
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  if test -n "$ac_ct_OBJDUMP"; then
6392  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397  IFS=$as_save_IFS
6398  test -z "$as_dir" && as_dir=.
6399    for ac_exec_ext in '' $ac_executable_extensions; do
6400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403    break 2
6404  fi
6405done
6406  done
6407IFS=$as_save_IFS
6408
6409fi
6410fi
6411ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6412if test -n "$ac_ct_OBJDUMP"; then
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6414$as_echo "$ac_ct_OBJDUMP" >&6; }
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; }
6418fi
6419
6420  if test "x$ac_ct_OBJDUMP" = x; then
6421    OBJDUMP="false"
6422  else
6423    case $cross_compiling:$ac_tool_warned in
6424yes:)
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427ac_tool_warned=yes ;;
6428esac
6429    OBJDUMP=$ac_ct_OBJDUMP
6430  fi
6431else
6432  OBJDUMP="$ac_cv_prog_OBJDUMP"
6433fi
6434
6435test -z "$OBJDUMP" && OBJDUMP=objdump
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6446$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6447if ${lt_cv_deplibs_check_method+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  lt_cv_file_magic_cmd='$MAGIC_CMD'
6451lt_cv_file_magic_test_file=
6452lt_cv_deplibs_check_method='unknown'
6453# Need to set the preceding variable on all platforms that support
6454# interlibrary dependencies.
6455# 'none' -- dependencies not supported.
6456# 'unknown' -- same as none, but documents that we really don't know.
6457# 'pass_all' -- all dependencies passed with no checks.
6458# 'test_compile' -- check by making test program.
6459# 'file_magic [[regex]]' -- check by looking for files in library path
6460# that responds to the $file_magic_cmd with a given extended regex.
6461# If you have 'file' or equivalent on your system and you're not sure
6462# whether 'pass_all' will *always* work, you probably want this one.
6463
6464case $host_os in
6465aix[4-9]*)
6466  lt_cv_deplibs_check_method=pass_all
6467  ;;
6468
6469beos*)
6470  lt_cv_deplibs_check_method=pass_all
6471  ;;
6472
6473bsdi[45]*)
6474  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6475  lt_cv_file_magic_cmd='/usr/bin/file -L'
6476  lt_cv_file_magic_test_file=/shlib/libc.so
6477  ;;
6478
6479cygwin*)
6480  # func_win32_libid is a shell function defined in ltmain.sh
6481  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6482  lt_cv_file_magic_cmd='func_win32_libid'
6483  ;;
6484
6485mingw* | pw32*)
6486  # Base MSYS/MinGW do not provide the 'file' command needed by
6487  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6488  # unless we find 'file', for example because we are cross-compiling.
6489  if ( file / ) >/dev/null 2>&1; then
6490    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6491    lt_cv_file_magic_cmd='func_win32_libid'
6492  else
6493    # Keep this pattern in sync with the one in func_win32_libid.
6494    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6495    lt_cv_file_magic_cmd='$OBJDUMP -f'
6496  fi
6497  ;;
6498
6499cegcc*)
6500  # use the weaker test based on 'objdump'. See mingw*.
6501  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6502  lt_cv_file_magic_cmd='$OBJDUMP -f'
6503  ;;
6504
6505darwin* | rhapsody*)
6506  lt_cv_deplibs_check_method=pass_all
6507  ;;
6508
6509freebsd* | dragonfly*)
6510  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6511    case $host_cpu in
6512    i*86 )
6513      # Not sure whether the presence of OpenBSD here was a mistake.
6514      # Let's accept both of them until this is cleared up.
6515      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6516      lt_cv_file_magic_cmd=/usr/bin/file
6517      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6518      ;;
6519    esac
6520  else
6521    lt_cv_deplibs_check_method=pass_all
6522  fi
6523  ;;
6524
6525haiku*)
6526  lt_cv_deplibs_check_method=pass_all
6527  ;;
6528
6529hpux10.20* | hpux11*)
6530  lt_cv_file_magic_cmd=/usr/bin/file
6531  case $host_cpu in
6532  ia64*)
6533    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6534    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6535    ;;
6536  hppa*64*)
6537    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]'
6538    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6539    ;;
6540  *)
6541    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6542    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6543    ;;
6544  esac
6545  ;;
6546
6547interix[3-9]*)
6548  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6549  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6550  ;;
6551
6552irix5* | irix6* | nonstopux*)
6553  case $LD in
6554  *-32|*"-32 ") libmagic=32-bit;;
6555  *-n32|*"-n32 ") libmagic=N32;;
6556  *-64|*"-64 ") libmagic=64-bit;;
6557  *) libmagic=never-match;;
6558  esac
6559  lt_cv_deplibs_check_method=pass_all
6560  ;;
6561
6562# This must be glibc/ELF.
6563linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566
6567netbsd*)
6568  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6569    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6570  else
6571    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6572  fi
6573  ;;
6574
6575newos6*)
6576  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6577  lt_cv_file_magic_cmd=/usr/bin/file
6578  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6579  ;;
6580
6581*nto* | *qnx*)
6582  lt_cv_deplibs_check_method=pass_all
6583  ;;
6584
6585openbsd* | bitrig*)
6586  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6587    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6588  else
6589    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6590  fi
6591  ;;
6592
6593osf3* | osf4* | osf5*)
6594  lt_cv_deplibs_check_method=pass_all
6595  ;;
6596
6597rdos*)
6598  lt_cv_deplibs_check_method=pass_all
6599  ;;
6600
6601solaris*)
6602  lt_cv_deplibs_check_method=pass_all
6603  ;;
6604
6605sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6606  lt_cv_deplibs_check_method=pass_all
6607  ;;
6608
6609sysv4 | sysv4.3*)
6610  case $host_vendor in
6611  motorola)
6612    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]'
6613    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6614    ;;
6615  ncr)
6616    lt_cv_deplibs_check_method=pass_all
6617    ;;
6618  sequent)
6619    lt_cv_file_magic_cmd='/bin/file'
6620    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6621    ;;
6622  sni)
6623    lt_cv_file_magic_cmd='/bin/file'
6624    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6625    lt_cv_file_magic_test_file=/lib/libc.so
6626    ;;
6627  siemens)
6628    lt_cv_deplibs_check_method=pass_all
6629    ;;
6630  pc)
6631    lt_cv_deplibs_check_method=pass_all
6632    ;;
6633  esac
6634  ;;
6635
6636tpf*)
6637  lt_cv_deplibs_check_method=pass_all
6638  ;;
6639os2*)
6640  lt_cv_deplibs_check_method=pass_all
6641  ;;
6642esac
6643
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6646$as_echo "$lt_cv_deplibs_check_method" >&6; }
6647
6648file_magic_glob=
6649want_nocaseglob=no
6650if test "$build" = "$host"; then
6651  case $host_os in
6652  mingw* | pw32*)
6653    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6654      want_nocaseglob=yes
6655    else
6656      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6657    fi
6658    ;;
6659  esac
6660fi
6661
6662file_magic_cmd=$lt_cv_file_magic_cmd
6663deplibs_check_method=$lt_cv_deplibs_check_method
6664test -z "$deplibs_check_method" && deplibs_check_method=unknown
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if ${ac_cv_prog_DLLTOOL+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$DLLTOOL"; then
6696  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715DLLTOOL=$ac_cv_prog_DLLTOOL
6716if test -n "$DLLTOOL"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6718$as_echo "$DLLTOOL" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_DLLTOOL"; then
6727  ac_ct_DLLTOOL=$DLLTOOL
6728  # Extract the first word of "dlltool", so it can be a program name with args.
6729set dummy dlltool; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_DLLTOOL"; then
6736  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6756if test -n "$ac_ct_DLLTOOL"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6758$as_echo "$ac_ct_DLLTOOL" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_DLLTOOL" = x; then
6765    DLLTOOL="false"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    DLLTOOL=$ac_ct_DLLTOOL
6774  fi
6775else
6776  DLLTOOL="$ac_cv_prog_DLLTOOL"
6777fi
6778
6779test -z "$DLLTOOL" && DLLTOOL=dlltool
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6791$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6792if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  lt_cv_sharedlib_from_linklib_cmd='unknown'
6796
6797case $host_os in
6798cygwin* | mingw* | pw32* | cegcc*)
6799  # two different shell functions defined in ltmain.sh;
6800  # decide which one to use based on capabilities of $DLLTOOL
6801  case `$DLLTOOL --help 2>&1` in
6802  *--identify-strict*)
6803    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6804    ;;
6805  *)
6806    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6807    ;;
6808  esac
6809  ;;
6810*)
6811  # fallback: assume linklib IS sharedlib
6812  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6813  ;;
6814esac
6815
6816fi
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6818$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6819sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6820test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6821
6822
6823
6824
6825
6826
6827
6828if test -n "$ac_tool_prefix"; then
6829  for ac_prog in ar
6830  do
6831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if ${ac_cv_prog_AR+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  if test -n "$AR"; then
6839  ac_cv_prog_AR="$AR" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846    for ac_exec_ext in '' $ac_executable_extensions; do
6847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853  done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858AR=$ac_cv_prog_AR
6859if test -n "$AR"; then
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6861$as_echo "$AR" >&6; }
6862else
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867
6868    test -n "$AR" && break
6869  done
6870fi
6871if test -z "$AR"; then
6872  ac_ct_AR=$AR
6873  for ac_prog in ar
6874do
6875  # Extract the first word of "$ac_prog", so it can be a program name with args.
6876set dummy $ac_prog; ac_word=$2
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878$as_echo_n "checking for $ac_word... " >&6; }
6879if ${ac_cv_prog_ac_ct_AR+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  if test -n "$ac_ct_AR"; then
6883  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888  IFS=$as_save_IFS
6889  test -z "$as_dir" && as_dir=.
6890    for ac_exec_ext in '' $ac_executable_extensions; do
6891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892    ac_cv_prog_ac_ct_AR="$ac_prog"
6893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894    break 2
6895  fi
6896done
6897  done
6898IFS=$as_save_IFS
6899
6900fi
6901fi
6902ac_ct_AR=$ac_cv_prog_ac_ct_AR
6903if test -n "$ac_ct_AR"; then
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6905$as_echo "$ac_ct_AR" >&6; }
6906else
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908$as_echo "no" >&6; }
6909fi
6910
6911
6912  test -n "$ac_ct_AR" && break
6913done
6914
6915  if test "x$ac_ct_AR" = x; then
6916    AR="false"
6917  else
6918    case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924    AR=$ac_ct_AR
6925  fi
6926fi
6927
6928: ${AR=ar}
6929: ${AR_FLAGS=cru}
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6942$as_echo_n "checking for archiver @FILE support... " >&6; }
6943if ${lt_cv_ar_at_file+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  lt_cv_ar_at_file=no
6947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949
6950int
6951main ()
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"; then :
6959  echo conftest.$ac_objext > conftest.lst
6960      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6961      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6962  (eval $lt_ar_try) 2>&5
6963  ac_status=$?
6964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965  test $ac_status = 0; }
6966      if test 0 -eq "$ac_status"; then
6967	# Ensure the archiver fails upon bogus file names.
6968	rm -f conftest.$ac_objext libconftest.a
6969	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6970  (eval $lt_ar_try) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; }
6974	if test 0 -ne "$ac_status"; then
6975          lt_cv_ar_at_file=@
6976        fi
6977      fi
6978      rm -f conftest.* libconftest.a
6979
6980fi
6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6985$as_echo "$lt_cv_ar_at_file" >&6; }
6986
6987if test no = "$lt_cv_ar_at_file"; then
6988  archiver_list_spec=
6989else
6990  archiver_list_spec=$lt_cv_ar_at_file
6991fi
6992
6993
6994
6995
6996
6997
6998
6999if test -n "$ac_tool_prefix"; then
7000  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}strip; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_STRIP+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$STRIP"; then
7008  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015    for ac_exec_ext in '' $ac_executable_extensions; do
7016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022  done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027STRIP=$ac_cv_prog_STRIP
7028if test -n "$STRIP"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7030$as_echo "$STRIP" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
7038if test -z "$ac_cv_prog_STRIP"; then
7039  ac_ct_STRIP=$STRIP
7040  # Extract the first word of "strip", so it can be a program name with args.
7041set dummy strip; ac_word=$2
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
7044if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  if test -n "$ac_ct_STRIP"; then
7048  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055    for ac_exec_ext in '' $ac_executable_extensions; do
7056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057    ac_cv_prog_ac_ct_STRIP="strip"
7058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059    break 2
7060  fi
7061done
7062  done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
7067ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7068if test -n "$ac_ct_STRIP"; then
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7070$as_echo "$ac_ct_STRIP" >&6; }
7071else
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076  if test "x$ac_ct_STRIP" = x; then
7077    STRIP=":"
7078  else
7079    case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
7085    STRIP=$ac_ct_STRIP
7086  fi
7087else
7088  STRIP="$ac_cv_prog_STRIP"
7089fi
7090
7091test -z "$STRIP" && STRIP=:
7092
7093
7094
7095
7096
7097
7098if test -n "$ac_tool_prefix"; then
7099  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7100set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
7103if ${ac_cv_prog_RANLIB+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  if test -n "$RANLIB"; then
7107  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112  IFS=$as_save_IFS
7113  test -z "$as_dir" && as_dir=.
7114    for ac_exec_ext in '' $ac_executable_extensions; do
7115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118    break 2
7119  fi
7120done
7121  done
7122IFS=$as_save_IFS
7123
7124fi
7125fi
7126RANLIB=$ac_cv_prog_RANLIB
7127if test -n "$RANLIB"; then
7128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7129$as_echo "$RANLIB" >&6; }
7130else
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
7133fi
7134
7135
7136fi
7137if test -z "$ac_cv_prog_RANLIB"; then
7138  ac_ct_RANLIB=$RANLIB
7139  # Extract the first word of "ranlib", so it can be a program name with args.
7140set dummy ranlib; ac_word=$2
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
7143if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146  if test -n "$ac_ct_RANLIB"; then
7147  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152  IFS=$as_save_IFS
7153  test -z "$as_dir" && as_dir=.
7154    for ac_exec_ext in '' $ac_executable_extensions; do
7155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156    ac_cv_prog_ac_ct_RANLIB="ranlib"
7157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158    break 2
7159  fi
7160done
7161  done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
7166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7167if test -n "$ac_ct_RANLIB"; then
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7169$as_echo "$ac_ct_RANLIB" >&6; }
7170else
7171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7173fi
7174
7175  if test "x$ac_ct_RANLIB" = x; then
7176    RANLIB=":"
7177  else
7178    case $cross_compiling:$ac_tool_warned in
7179yes:)
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184    RANLIB=$ac_ct_RANLIB
7185  fi
7186else
7187  RANLIB="$ac_cv_prog_RANLIB"
7188fi
7189
7190test -z "$RANLIB" && RANLIB=:
7191
7192
7193
7194
7195
7196
7197# Determine commands to create old-style static archives.
7198old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7199old_postinstall_cmds='chmod 644 $oldlib'
7200old_postuninstall_cmds=
7201
7202if test -n "$RANLIB"; then
7203  case $host_os in
7204  bitrig* | openbsd*)
7205    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7206    ;;
7207  *)
7208    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7209    ;;
7210  esac
7211  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7212fi
7213
7214case $host_os in
7215  darwin*)
7216    lock_old_archive_extraction=yes ;;
7217  *)
7218    lock_old_archive_extraction=no ;;
7219esac
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259# If no C compiler was specified, use CC.
7260LTCC=${LTCC-"$CC"}
7261
7262# If no C compiler flags were specified, use CFLAGS.
7263LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7264
7265# Allow CC to be a program name with arguments.
7266compiler=$CC
7267
7268
7269# Check for command to grab the raw symbol name followed by C symbol from nm.
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7271$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7272if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275
7276# These are sane defaults that work on at least a few old systems.
7277# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7278
7279# Character class describing NM global symbol codes.
7280symcode='[BCDEGRST]'
7281
7282# Regexp to match symbols that can be accessed directly from C.
7283sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7284
7285# Define system-specific variables.
7286case $host_os in
7287aix*)
7288  symcode='[BCDT]'
7289  ;;
7290cygwin* | mingw* | pw32* | cegcc*)
7291  symcode='[ABCDGISTW]'
7292  ;;
7293hpux*)
7294  if test ia64 = "$host_cpu"; then
7295    symcode='[ABCDEGRST]'
7296  fi
7297  ;;
7298irix* | nonstopux*)
7299  symcode='[BCDEGRST]'
7300  ;;
7301osf*)
7302  symcode='[BCDEGQRST]'
7303  ;;
7304solaris*)
7305  symcode='[BDRT]'
7306  ;;
7307sco3.2v5*)
7308  symcode='[DT]'
7309  ;;
7310sysv4.2uw2*)
7311  symcode='[DT]'
7312  ;;
7313sysv5* | sco5v6* | unixware* | OpenUNIX*)
7314  symcode='[ABDT]'
7315  ;;
7316sysv4)
7317  symcode='[DFNSTU]'
7318  ;;
7319esac
7320
7321# If we're using GNU nm, then use its standard symbol codes.
7322case `$NM -V 2>&1` in
7323*GNU* | *'with BFD'*)
7324  symcode='[ABCDGIRSTW]' ;;
7325esac
7326
7327if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7328  # Gets list of data symbols to import.
7329  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7330  # Adjust the below global symbol transforms to fixup imported variables.
7331  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7332  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7333  lt_c_name_lib_hook="\
7334  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7335  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7336else
7337  # Disable hooks by default.
7338  lt_cv_sys_global_symbol_to_import=
7339  lt_cdecl_hook=
7340  lt_c_name_hook=
7341  lt_c_name_lib_hook=
7342fi
7343
7344# Transform an extracted symbol line into a proper C declaration.
7345# Some systems (esp. on ia64) link data and code symbols differently,
7346# so use this general approach.
7347lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7348$lt_cdecl_hook\
7349" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7350" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7351
7352# Transform an extracted symbol line into symbol name and symbol address
7353lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7354$lt_c_name_hook\
7355" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7356" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7357
7358# Transform an extracted symbol line into symbol name with lib prefix and
7359# symbol address.
7360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7361$lt_c_name_lib_hook\
7362" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7363" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7364" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7365
7366# Handle CRLF in mingw tool chain
7367opt_cr=
7368case $build_os in
7369mingw*)
7370  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7371  ;;
7372esac
7373
7374# Try without a prefix underscore, then with it.
7375for ac_symprfx in "" "_"; do
7376
7377  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7378  symxfrm="\\1 $ac_symprfx\\2 \\2"
7379
7380  # Write the raw and C identifiers.
7381  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7382    # Fake it for dumpbin and say T for any non-static function,
7383    # D for any global variable and I for any imported variable.
7384    # Also find C++ and __fastcall symbols from MSVC++,
7385    # which start with @ or ?.
7386    lt_cv_sys_global_symbol_pipe="$AWK '"\
7387"     {last_section=section; section=\$ 3};"\
7388"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7389"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7390"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7391"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7392"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7393"     \$ 0!~/External *\|/{next};"\
7394"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7395"     {if(hide[section]) next};"\
7396"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7397"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7398"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7399"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7400"     ' prfx=^$ac_symprfx"
7401  else
7402    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7403  fi
7404  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7405
7406  # Check to see that the pipe works correctly.
7407  pipe_works=no
7408
7409  rm -f conftest*
7410  cat > conftest.$ac_ext <<_LT_EOF
7411#ifdef __cplusplus
7412extern "C" {
7413#endif
7414char nm_test_var;
7415void nm_test_func(void);
7416void nm_test_func(void){}
7417#ifdef __cplusplus
7418}
7419#endif
7420int main(){nm_test_var='a';nm_test_func();return(0);}
7421_LT_EOF
7422
7423  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7424  (eval $ac_compile) 2>&5
7425  ac_status=$?
7426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7427  test $ac_status = 0; }; then
7428    # Now try to grab the symbols.
7429    nlist=conftest.nm
7430    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7431  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7432  ac_status=$?
7433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434  test $ac_status = 0; } && test -s "$nlist"; then
7435      # Try sorting and uniquifying the output.
7436      if sort "$nlist" | uniq > "$nlist"T; then
7437	mv -f "$nlist"T "$nlist"
7438      else
7439	rm -f "$nlist"T
7440      fi
7441
7442      # Make sure that we snagged all the symbols we need.
7443      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7444	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7445	  cat <<_LT_EOF > conftest.$ac_ext
7446/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7447#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7448/* DATA imports from DLLs on WIN32 can't be const, because runtime
7449   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7450# define LT_DLSYM_CONST
7451#elif defined __osf__
7452/* This system does not cope well with relocations in const data.  */
7453# define LT_DLSYM_CONST
7454#else
7455# define LT_DLSYM_CONST const
7456#endif
7457
7458#ifdef __cplusplus
7459extern "C" {
7460#endif
7461
7462_LT_EOF
7463	  # Now generate the symbol file.
7464	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7465
7466	  cat <<_LT_EOF >> conftest.$ac_ext
7467
7468/* The mapping between symbol names and symbols.  */
7469LT_DLSYM_CONST struct {
7470  const char *name;
7471  void       *address;
7472}
7473lt__PROGRAM__LTX_preloaded_symbols[] =
7474{
7475  { "@PROGRAM@", (void *) 0 },
7476_LT_EOF
7477	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7478	  cat <<\_LT_EOF >> conftest.$ac_ext
7479  {0, (void *) 0}
7480};
7481
7482/* This works around a problem in FreeBSD linker */
7483#ifdef FREEBSD_WORKAROUND
7484static const void *lt_preloaded_setup() {
7485  return lt__PROGRAM__LTX_preloaded_symbols;
7486}
7487#endif
7488
7489#ifdef __cplusplus
7490}
7491#endif
7492_LT_EOF
7493	  # Now try linking the two files.
7494	  mv conftest.$ac_objext conftstm.$ac_objext
7495	  lt_globsym_save_LIBS=$LIBS
7496	  lt_globsym_save_CFLAGS=$CFLAGS
7497	  LIBS=conftstm.$ac_objext
7498	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7499	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7500  (eval $ac_link) 2>&5
7501  ac_status=$?
7502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7504	    pipe_works=yes
7505	  fi
7506	  LIBS=$lt_globsym_save_LIBS
7507	  CFLAGS=$lt_globsym_save_CFLAGS
7508	else
7509	  echo "cannot find nm_test_func in $nlist" >&5
7510	fi
7511      else
7512	echo "cannot find nm_test_var in $nlist" >&5
7513      fi
7514    else
7515      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7516    fi
7517  else
7518    echo "$progname: failed program was:" >&5
7519    cat conftest.$ac_ext >&5
7520  fi
7521  rm -rf conftest* conftst*
7522
7523  # Do not use the global_symbol_pipe unless it works.
7524  if test yes = "$pipe_works"; then
7525    break
7526  else
7527    lt_cv_sys_global_symbol_pipe=
7528  fi
7529done
7530
7531fi
7532
7533if test -z "$lt_cv_sys_global_symbol_pipe"; then
7534  lt_cv_sys_global_symbol_to_cdecl=
7535fi
7536if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7538$as_echo "failed" >&6; }
7539else
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7541$as_echo "ok" >&6; }
7542fi
7543
7544# Response file support.
7545if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7546  nm_file_list_spec='@'
7547elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7548  nm_file_list_spec='@'
7549fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7588$as_echo_n "checking for sysroot... " >&6; }
7589
7590# Check whether --with-sysroot was given.
7591if test "${with_sysroot+set}" = set; then :
7592  withval=$with_sysroot;
7593else
7594  with_sysroot=no
7595fi
7596
7597
7598lt_sysroot=
7599case $with_sysroot in #(
7600 yes)
7601   if test yes = "$GCC"; then
7602     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7603   fi
7604   ;; #(
7605 /*)
7606   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7607   ;; #(
7608 no|'')
7609   ;; #(
7610 *)
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7612$as_echo "$with_sysroot" >&6; }
7613   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7614   ;;
7615esac
7616
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7618$as_echo "${lt_sysroot:-no}" >&6; }
7619
7620
7621
7622
7623
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7625$as_echo_n "checking for a working dd... " >&6; }
7626if ${ac_cv_path_lt_DD+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  printf 0123456789abcdef0123456789abcdef >conftest.i
7630cat conftest.i conftest.i >conftest2.i
7631: ${lt_DD:=$DD}
7632if test -z "$lt_DD"; then
7633  ac_path_lt_DD_found=false
7634  # Loop through the user's path and test for each of PROGNAME-LIST
7635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638  IFS=$as_save_IFS
7639  test -z "$as_dir" && as_dir=.
7640    for ac_prog in dd; do
7641    for ac_exec_ext in '' $ac_executable_extensions; do
7642      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7643      as_fn_executable_p "$ac_path_lt_DD" || continue
7644if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7645  cmp -s conftest.i conftest.out \
7646  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7647fi
7648      $ac_path_lt_DD_found && break 3
7649    done
7650  done
7651  done
7652IFS=$as_save_IFS
7653  if test -z "$ac_cv_path_lt_DD"; then
7654    :
7655  fi
7656else
7657  ac_cv_path_lt_DD=$lt_DD
7658fi
7659
7660rm -f conftest.i conftest2.i conftest.out
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7663$as_echo "$ac_cv_path_lt_DD" >&6; }
7664
7665
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7667$as_echo_n "checking how to truncate binary pipes... " >&6; }
7668if ${lt_cv_truncate_bin+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  printf 0123456789abcdef0123456789abcdef >conftest.i
7672cat conftest.i conftest.i >conftest2.i
7673lt_cv_truncate_bin=
7674if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7675  cmp -s conftest.i conftest.out \
7676  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7677fi
7678rm -f conftest.i conftest2.i conftest.out
7679test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7680fi
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7682$as_echo "$lt_cv_truncate_bin" >&6; }
7683
7684
7685
7686
7687
7688
7689
7690# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7691func_cc_basename ()
7692{
7693    for cc_temp in $*""; do
7694      case $cc_temp in
7695        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7696        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7697        \-*) ;;
7698        *) break;;
7699      esac
7700    done
7701    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7702}
7703
7704# Check whether --enable-libtool-lock was given.
7705if test "${enable_libtool_lock+set}" = set; then :
7706  enableval=$enable_libtool_lock;
7707fi
7708
7709test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7710
7711# Some flags need to be propagated to the compiler or linker for good
7712# libtool support.
7713case $host in
7714ia64-*-hpux*)
7715  # Find out what ABI is being produced by ac_compile, and set mode
7716  # options accordingly.
7717  echo 'int i;' > conftest.$ac_ext
7718  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7719  (eval $ac_compile) 2>&5
7720  ac_status=$?
7721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722  test $ac_status = 0; }; then
7723    case `/usr/bin/file conftest.$ac_objext` in
7724      *ELF-32*)
7725	HPUX_IA64_MODE=32
7726	;;
7727      *ELF-64*)
7728	HPUX_IA64_MODE=64
7729	;;
7730    esac
7731  fi
7732  rm -rf conftest*
7733  ;;
7734*-*-irix6*)
7735  # Find out what ABI is being produced by ac_compile, and set linker
7736  # options accordingly.
7737  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7738  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739  (eval $ac_compile) 2>&5
7740  ac_status=$?
7741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742  test $ac_status = 0; }; then
7743    if test yes = "$lt_cv_prog_gnu_ld"; then
7744      case `/usr/bin/file conftest.$ac_objext` in
7745	*32-bit*)
7746	  LD="${LD-ld} -melf32bsmip"
7747	  ;;
7748	*N32*)
7749	  LD="${LD-ld} -melf32bmipn32"
7750	  ;;
7751	*64-bit*)
7752	  LD="${LD-ld} -melf64bmip"
7753	;;
7754      esac
7755    else
7756      case `/usr/bin/file conftest.$ac_objext` in
7757	*32-bit*)
7758	  LD="${LD-ld} -32"
7759	  ;;
7760	*N32*)
7761	  LD="${LD-ld} -n32"
7762	  ;;
7763	*64-bit*)
7764	  LD="${LD-ld} -64"
7765	  ;;
7766      esac
7767    fi
7768  fi
7769  rm -rf conftest*
7770  ;;
7771
7772mips64*-*linux*)
7773  # Find out what ABI is being produced by ac_compile, and set linker
7774  # options accordingly.
7775  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7776  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777  (eval $ac_compile) 2>&5
7778  ac_status=$?
7779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780  test $ac_status = 0; }; then
7781    emul=elf
7782    case `/usr/bin/file conftest.$ac_objext` in
7783      *32-bit*)
7784	emul="${emul}32"
7785	;;
7786      *64-bit*)
7787	emul="${emul}64"
7788	;;
7789    esac
7790    case `/usr/bin/file conftest.$ac_objext` in
7791      *MSB*)
7792	emul="${emul}btsmip"
7793	;;
7794      *LSB*)
7795	emul="${emul}ltsmip"
7796	;;
7797    esac
7798    case `/usr/bin/file conftest.$ac_objext` in
7799      *N32*)
7800	emul="${emul}n32"
7801	;;
7802    esac
7803    LD="${LD-ld} -m $emul"
7804  fi
7805  rm -rf conftest*
7806  ;;
7807
7808x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7809s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7810  # Find out what ABI is being produced by ac_compile, and set linker
7811  # options accordingly.  Note that the listed cases only cover the
7812  # situations where additional linker options are needed (such as when
7813  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7814  # vice versa); the common cases where no linker options are needed do
7815  # not appear in the list.
7816  echo 'int i;' > conftest.$ac_ext
7817  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818  (eval $ac_compile) 2>&5
7819  ac_status=$?
7820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821  test $ac_status = 0; }; then
7822    case `/usr/bin/file conftest.o` in
7823      *32-bit*)
7824	case $host in
7825	  x86_64-*kfreebsd*-gnu)
7826	    LD="${LD-ld} -m elf_i386_fbsd"
7827	    ;;
7828	  x86_64-*linux*)
7829	    case `/usr/bin/file conftest.o` in
7830	      *x86-64*)
7831		LD="${LD-ld} -m elf32_x86_64"
7832		;;
7833	      *)
7834		LD="${LD-ld} -m elf_i386"
7835		;;
7836	    esac
7837	    ;;
7838	  powerpc64le-*linux*)
7839	    LD="${LD-ld} -m elf32lppclinux"
7840	    ;;
7841	  powerpc64-*linux*)
7842	    LD="${LD-ld} -m elf32ppclinux"
7843	    ;;
7844	  s390x-*linux*)
7845	    LD="${LD-ld} -m elf_s390"
7846	    ;;
7847	  sparc64-*linux*)
7848	    LD="${LD-ld} -m elf32_sparc"
7849	    ;;
7850	esac
7851	;;
7852      *64-bit*)
7853	case $host in
7854	  x86_64-*kfreebsd*-gnu)
7855	    LD="${LD-ld} -m elf_x86_64_fbsd"
7856	    ;;
7857	  x86_64-*linux*)
7858	    LD="${LD-ld} -m elf_x86_64"
7859	    ;;
7860	  powerpcle-*linux*)
7861	    LD="${LD-ld} -m elf64lppc"
7862	    ;;
7863	  powerpc-*linux*)
7864	    LD="${LD-ld} -m elf64ppc"
7865	    ;;
7866	  s390*-*linux*|s390*-*tpf*)
7867	    LD="${LD-ld} -m elf64_s390"
7868	    ;;
7869	  sparc*-*linux*)
7870	    LD="${LD-ld} -m elf64_sparc"
7871	    ;;
7872	esac
7873	;;
7874    esac
7875  fi
7876  rm -rf conftest*
7877  ;;
7878
7879*-*-sco3.2v5*)
7880  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7881  SAVE_CFLAGS=$CFLAGS
7882  CFLAGS="$CFLAGS -belf"
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7884$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7885if ${lt_cv_cc_needs_belf+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  ac_ext=c
7889ac_cpp='$CPP $CPPFLAGS'
7890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896
7897int
7898main ()
7899{
7900
7901  ;
7902  return 0;
7903}
7904_ACEOF
7905if ac_fn_c_try_link "$LINENO"; then :
7906  lt_cv_cc_needs_belf=yes
7907else
7908  lt_cv_cc_needs_belf=no
7909fi
7910rm -f core conftest.err conftest.$ac_objext \
7911    conftest$ac_exeext conftest.$ac_ext
7912     ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7920$as_echo "$lt_cv_cc_needs_belf" >&6; }
7921  if test yes != "$lt_cv_cc_needs_belf"; then
7922    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7923    CFLAGS=$SAVE_CFLAGS
7924  fi
7925  ;;
7926*-*solaris*)
7927  # Find out what ABI is being produced by ac_compile, and set linker
7928  # options accordingly.
7929  echo 'int i;' > conftest.$ac_ext
7930  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931  (eval $ac_compile) 2>&5
7932  ac_status=$?
7933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934  test $ac_status = 0; }; then
7935    case `/usr/bin/file conftest.o` in
7936    *64-bit*)
7937      case $lt_cv_prog_gnu_ld in
7938      yes*)
7939        case $host in
7940        i?86-*-solaris*|x86_64-*-solaris*)
7941          LD="${LD-ld} -m elf_x86_64"
7942          ;;
7943        sparc*-*-solaris*)
7944          LD="${LD-ld} -m elf64_sparc"
7945          ;;
7946        esac
7947        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7948        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7949          LD=${LD-ld}_sol2
7950        fi
7951        ;;
7952      *)
7953	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7954	  LD="${LD-ld} -64"
7955	fi
7956	;;
7957      esac
7958      ;;
7959    esac
7960  fi
7961  rm -rf conftest*
7962  ;;
7963esac
7964
7965need_locks=$enable_libtool_lock
7966
7967if test -n "$ac_tool_prefix"; then
7968  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7969set dummy ${ac_tool_prefix}mt; ac_word=$2
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  if test -n "$MANIFEST_TOOL"; then
7976  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981  IFS=$as_save_IFS
7982  test -z "$as_dir" && as_dir=.
7983    for ac_exec_ext in '' $ac_executable_extensions; do
7984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987    break 2
7988  fi
7989done
7990  done
7991IFS=$as_save_IFS
7992
7993fi
7994fi
7995MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7996if test -n "$MANIFEST_TOOL"; then
7997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7998$as_echo "$MANIFEST_TOOL" >&6; }
7999else
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002fi
8003
8004
8005fi
8006if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8007  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8008  # Extract the first word of "mt", so it can be a program name with args.
8009set dummy mt; ac_word=$2
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011$as_echo_n "checking for $ac_word... " >&6; }
8012if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  if test -n "$ac_ct_MANIFEST_TOOL"; then
8016  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8017else
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021  IFS=$as_save_IFS
8022  test -z "$as_dir" && as_dir=.
8023    for ac_exec_ext in '' $ac_executable_extensions; do
8024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027    break 2
8028  fi
8029done
8030  done
8031IFS=$as_save_IFS
8032
8033fi
8034fi
8035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8036if test -n "$ac_ct_MANIFEST_TOOL"; then
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8038$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8039else
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
8042fi
8043
8044  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8045    MANIFEST_TOOL=":"
8046  else
8047    case $cross_compiling:$ac_tool_warned in
8048yes:)
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051ac_tool_warned=yes ;;
8052esac
8053    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8054  fi
8055else
8056  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8057fi
8058
8059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8061$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8062if ${lt_cv_path_mainfest_tool+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  lt_cv_path_mainfest_tool=no
8066  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8067  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8068  cat conftest.err >&5
8069  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8070    lt_cv_path_mainfest_tool=yes
8071  fi
8072  rm -f conftest*
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8075$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8076if test yes != "$lt_cv_path_mainfest_tool"; then
8077  MANIFEST_TOOL=:
8078fi
8079
8080
8081
8082
8083
8084
8085  case $host_os in
8086    rhapsody* | darwin*)
8087    if test -n "$ac_tool_prefix"; then
8088  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8089set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091$as_echo_n "checking for $ac_word... " >&6; }
8092if ${ac_cv_prog_DSYMUTIL+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  if test -n "$DSYMUTIL"; then
8096  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  test -z "$as_dir" && as_dir=.
8103    for ac_exec_ext in '' $ac_executable_extensions; do
8104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107    break 2
8108  fi
8109done
8110  done
8111IFS=$as_save_IFS
8112
8113fi
8114fi
8115DSYMUTIL=$ac_cv_prog_DSYMUTIL
8116if test -n "$DSYMUTIL"; then
8117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8118$as_echo "$DSYMUTIL" >&6; }
8119else
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124
8125fi
8126if test -z "$ac_cv_prog_DSYMUTIL"; then
8127  ac_ct_DSYMUTIL=$DSYMUTIL
8128  # Extract the first word of "dsymutil", so it can be a program name with args.
8129set dummy dsymutil; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  if test -n "$ac_ct_DSYMUTIL"; then
8136  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141  IFS=$as_save_IFS
8142  test -z "$as_dir" && as_dir=.
8143    for ac_exec_ext in '' $ac_executable_extensions; do
8144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147    break 2
8148  fi
8149done
8150  done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8156if test -n "$ac_ct_DSYMUTIL"; then
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8158$as_echo "$ac_ct_DSYMUTIL" >&6; }
8159else
8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162fi
8163
8164  if test "x$ac_ct_DSYMUTIL" = x; then
8165    DSYMUTIL=":"
8166  else
8167    case $cross_compiling:$ac_tool_warned in
8168yes:)
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171ac_tool_warned=yes ;;
8172esac
8173    DSYMUTIL=$ac_ct_DSYMUTIL
8174  fi
8175else
8176  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8177fi
8178
8179    if test -n "$ac_tool_prefix"; then
8180  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8181set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if ${ac_cv_prog_NMEDIT+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  if test -n "$NMEDIT"; then
8188  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195    for ac_exec_ext in '' $ac_executable_extensions; do
8196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202  done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207NMEDIT=$ac_cv_prog_NMEDIT
8208if test -n "$NMEDIT"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8210$as_echo "$NMEDIT" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216
8217fi
8218if test -z "$ac_cv_prog_NMEDIT"; then
8219  ac_ct_NMEDIT=$NMEDIT
8220  # Extract the first word of "nmedit", so it can be a program name with args.
8221set dummy nmedit; ac_word=$2
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  if test -n "$ac_ct_NMEDIT"; then
8228  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  test -z "$as_dir" && as_dir=.
8235    for ac_exec_ext in '' $ac_executable_extensions; do
8236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242  done
8243IFS=$as_save_IFS
8244
8245fi
8246fi
8247ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8248if test -n "$ac_ct_NMEDIT"; then
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8250$as_echo "$ac_ct_NMEDIT" >&6; }
8251else
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256  if test "x$ac_ct_NMEDIT" = x; then
8257    NMEDIT=":"
8258  else
8259    case $cross_compiling:$ac_tool_warned in
8260yes:)
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8263ac_tool_warned=yes ;;
8264esac
8265    NMEDIT=$ac_ct_NMEDIT
8266  fi
8267else
8268  NMEDIT="$ac_cv_prog_NMEDIT"
8269fi
8270
8271    if test -n "$ac_tool_prefix"; then
8272  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8273set dummy ${ac_tool_prefix}lipo; ac_word=$2
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if ${ac_cv_prog_LIPO+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  if test -n "$LIPO"; then
8280  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287    for ac_exec_ext in '' $ac_executable_extensions; do
8288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294  done
8295IFS=$as_save_IFS
8296
8297fi
8298fi
8299LIPO=$ac_cv_prog_LIPO
8300if test -n "$LIPO"; then
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8302$as_echo "$LIPO" >&6; }
8303else
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308
8309fi
8310if test -z "$ac_cv_prog_LIPO"; then
8311  ac_ct_LIPO=$LIPO
8312  # Extract the first word of "lipo", so it can be a program name with args.
8313set dummy lipo; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  if test -n "$ac_ct_LIPO"; then
8320  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325  IFS=$as_save_IFS
8326  test -z "$as_dir" && as_dir=.
8327    for ac_exec_ext in '' $ac_executable_extensions; do
8328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329    ac_cv_prog_ac_ct_LIPO="lipo"
8330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331    break 2
8332  fi
8333done
8334  done
8335IFS=$as_save_IFS
8336
8337fi
8338fi
8339ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8340if test -n "$ac_ct_LIPO"; then
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8342$as_echo "$ac_ct_LIPO" >&6; }
8343else
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347
8348  if test "x$ac_ct_LIPO" = x; then
8349    LIPO=":"
8350  else
8351    case $cross_compiling:$ac_tool_warned in
8352yes:)
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8355ac_tool_warned=yes ;;
8356esac
8357    LIPO=$ac_ct_LIPO
8358  fi
8359else
8360  LIPO="$ac_cv_prog_LIPO"
8361fi
8362
8363    if test -n "$ac_tool_prefix"; then
8364  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8365set dummy ${ac_tool_prefix}otool; ac_word=$2
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367$as_echo_n "checking for $ac_word... " >&6; }
8368if ${ac_cv_prog_OTOOL+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  if test -n "$OTOOL"; then
8372  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8373else
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377  IFS=$as_save_IFS
8378  test -z "$as_dir" && as_dir=.
8379    for ac_exec_ext in '' $ac_executable_extensions; do
8380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383    break 2
8384  fi
8385done
8386  done
8387IFS=$as_save_IFS
8388
8389fi
8390fi
8391OTOOL=$ac_cv_prog_OTOOL
8392if test -n "$OTOOL"; then
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8394$as_echo "$OTOOL" >&6; }
8395else
8396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397$as_echo "no" >&6; }
8398fi
8399
8400
8401fi
8402if test -z "$ac_cv_prog_OTOOL"; then
8403  ac_ct_OTOOL=$OTOOL
8404  # Extract the first word of "otool", so it can be a program name with args.
8405set dummy otool; ac_word=$2
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  if test -n "$ac_ct_OTOOL"; then
8412  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8413else
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417  IFS=$as_save_IFS
8418  test -z "$as_dir" && as_dir=.
8419    for ac_exec_ext in '' $ac_executable_extensions; do
8420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421    ac_cv_prog_ac_ct_OTOOL="otool"
8422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423    break 2
8424  fi
8425done
8426  done
8427IFS=$as_save_IFS
8428
8429fi
8430fi
8431ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8432if test -n "$ac_ct_OTOOL"; then
8433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8434$as_echo "$ac_ct_OTOOL" >&6; }
8435else
8436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
8438fi
8439
8440  if test "x$ac_ct_OTOOL" = x; then
8441    OTOOL=":"
8442  else
8443    case $cross_compiling:$ac_tool_warned in
8444yes:)
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8447ac_tool_warned=yes ;;
8448esac
8449    OTOOL=$ac_ct_OTOOL
8450  fi
8451else
8452  OTOOL="$ac_cv_prog_OTOOL"
8453fi
8454
8455    if test -n "$ac_tool_prefix"; then
8456  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8457set dummy ${ac_tool_prefix}otool64; ac_word=$2
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459$as_echo_n "checking for $ac_word... " >&6; }
8460if ${ac_cv_prog_OTOOL64+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  if test -n "$OTOOL64"; then
8464  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8465else
8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469  IFS=$as_save_IFS
8470  test -z "$as_dir" && as_dir=.
8471    for ac_exec_ext in '' $ac_executable_extensions; do
8472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475    break 2
8476  fi
8477done
8478  done
8479IFS=$as_save_IFS
8480
8481fi
8482fi
8483OTOOL64=$ac_cv_prog_OTOOL64
8484if test -n "$OTOOL64"; then
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8486$as_echo "$OTOOL64" >&6; }
8487else
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
8490fi
8491
8492
8493fi
8494if test -z "$ac_cv_prog_OTOOL64"; then
8495  ac_ct_OTOOL64=$OTOOL64
8496  # Extract the first word of "otool64", so it can be a program name with args.
8497set dummy otool64; ac_word=$2
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499$as_echo_n "checking for $ac_word... " >&6; }
8500if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  if test -n "$ac_ct_OTOOL64"; then
8504  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509  IFS=$as_save_IFS
8510  test -z "$as_dir" && as_dir=.
8511    for ac_exec_ext in '' $ac_executable_extensions; do
8512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513    ac_cv_prog_ac_ct_OTOOL64="otool64"
8514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515    break 2
8516  fi
8517done
8518  done
8519IFS=$as_save_IFS
8520
8521fi
8522fi
8523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8524if test -n "$ac_ct_OTOOL64"; then
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8526$as_echo "$ac_ct_OTOOL64" >&6; }
8527else
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530fi
8531
8532  if test "x$ac_ct_OTOOL64" = x; then
8533    OTOOL64=":"
8534  else
8535    case $cross_compiling:$ac_tool_warned in
8536yes:)
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539ac_tool_warned=yes ;;
8540esac
8541    OTOOL64=$ac_ct_OTOOL64
8542  fi
8543else
8544  OTOOL64="$ac_cv_prog_OTOOL64"
8545fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8574$as_echo_n "checking for -single_module linker flag... " >&6; }
8575if ${lt_cv_apple_cc_single_mod+:} false; then :
8576  $as_echo_n "(cached) " >&6
8577else
8578  lt_cv_apple_cc_single_mod=no
8579      if test -z "$LT_MULTI_MODULE"; then
8580	# By default we will add the -single_module flag. You can override
8581	# by either setting the environment variable LT_MULTI_MODULE
8582	# non-empty at configure time, or by adding -multi_module to the
8583	# link flags.
8584	rm -rf libconftest.dylib*
8585	echo "int foo(void){return 1;}" > conftest.c
8586	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8587-dynamiclib -Wl,-single_module conftest.c" >&5
8588	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8589	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8590        _lt_result=$?
8591	# If there is a non-empty error log, and "single_module"
8592	# appears in it, assume the flag caused a linker warning
8593        if test -s conftest.err && $GREP single_module conftest.err; then
8594	  cat conftest.err >&5
8595	# Otherwise, if the output was created with a 0 exit code from
8596	# the compiler, it worked.
8597	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8598	  lt_cv_apple_cc_single_mod=yes
8599	else
8600	  cat conftest.err >&5
8601	fi
8602	rm -rf libconftest.dylib*
8603	rm -f conftest.*
8604      fi
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8607$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8608
8609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8610$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8611if ${lt_cv_ld_exported_symbols_list+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  lt_cv_ld_exported_symbols_list=no
8615      save_LDFLAGS=$LDFLAGS
8616      echo "_main" > conftest.sym
8617      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620
8621int
8622main ()
8623{
8624
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629if ac_fn_c_try_link "$LINENO"; then :
8630  lt_cv_ld_exported_symbols_list=yes
8631else
8632  lt_cv_ld_exported_symbols_list=no
8633fi
8634rm -f core conftest.err conftest.$ac_objext \
8635    conftest$ac_exeext conftest.$ac_ext
8636	LDFLAGS=$save_LDFLAGS
8637
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8640$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8641
8642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8643$as_echo_n "checking for -force_load linker flag... " >&6; }
8644if ${lt_cv_ld_force_load+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  lt_cv_ld_force_load=no
8648      cat > conftest.c << _LT_EOF
8649int forced_loaded() { return 2;}
8650_LT_EOF
8651      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8652      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8653      echo "$AR cru libconftest.a conftest.o" >&5
8654      $AR cru libconftest.a conftest.o 2>&5
8655      echo "$RANLIB libconftest.a" >&5
8656      $RANLIB libconftest.a 2>&5
8657      cat > conftest.c << _LT_EOF
8658int main() { return 0;}
8659_LT_EOF
8660      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8661      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8662      _lt_result=$?
8663      if test -s conftest.err && $GREP force_load conftest.err; then
8664	cat conftest.err >&5
8665      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8666	lt_cv_ld_force_load=yes
8667      else
8668	cat conftest.err >&5
8669      fi
8670        rm -f conftest.err libconftest.a conftest conftest.c
8671        rm -rf conftest.dSYM
8672
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8675$as_echo "$lt_cv_ld_force_load" >&6; }
8676    case $host_os in
8677    rhapsody* | darwin1.[012])
8678      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8679    darwin1.*)
8680      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8681    darwin*) # darwin 5.x on
8682      # if running on 10.5 or later, the deployment target defaults
8683      # to the OS version, if on x86, and 10.4, the deployment
8684      # target defaults to 10.4. Don't you love it?
8685      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8686	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8687	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8688	10.[012][,.]*)
8689	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8690	10.*)
8691	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8692      esac
8693    ;;
8694  esac
8695    if test yes = "$lt_cv_apple_cc_single_mod"; then
8696      _lt_dar_single_mod='$single_module'
8697    fi
8698    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8699      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8700    else
8701      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8702    fi
8703    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8704      _lt_dsymutil='~$DSYMUTIL $lib || :'
8705    else
8706      _lt_dsymutil=
8707    fi
8708    ;;
8709  esac
8710
8711# func_munge_path_list VARIABLE PATH
8712# -----------------------------------
8713# VARIABLE is name of variable containing _space_ separated list of
8714# directories to be munged by the contents of PATH, which is string
8715# having a format:
8716# "DIR[:DIR]:"
8717#       string "DIR[ DIR]" will be prepended to VARIABLE
8718# ":DIR[:DIR]"
8719#       string "DIR[ DIR]" will be appended to VARIABLE
8720# "DIRP[:DIRP]::[DIRA:]DIRA"
8721#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8722#       "DIRA[ DIRA]" will be appended to VARIABLE
8723# "DIR[:DIR]"
8724#       VARIABLE will be replaced by "DIR[ DIR]"
8725func_munge_path_list ()
8726{
8727    case x$2 in
8728    x)
8729        ;;
8730    *:)
8731        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8732        ;;
8733    x:*)
8734        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8735        ;;
8736    *::*)
8737        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8738        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8739        ;;
8740    *)
8741        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8742        ;;
8743    esac
8744}
8745
8746for ac_header in dlfcn.h
8747do :
8748  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8749"
8750if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8751  cat >>confdefs.h <<_ACEOF
8752#define HAVE_DLFCN_H 1
8753_ACEOF
8754
8755fi
8756
8757done
8758
8759
8760
8761
8762
8763# Set options
8764
8765
8766
8767        enable_dlopen=no
8768
8769
8770  enable_win32_dll=no
8771
8772
8773            # Check whether --enable-shared was given.
8774if test "${enable_shared+set}" = set; then :
8775  enableval=$enable_shared; p=${PACKAGE-default}
8776    case $enableval in
8777    yes) enable_shared=yes ;;
8778    no) enable_shared=no ;;
8779    *)
8780      enable_shared=no
8781      # Look at the argument we got.  We use all the common list separators.
8782      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8783      for pkg in $enableval; do
8784	IFS=$lt_save_ifs
8785	if test "X$pkg" = "X$p"; then
8786	  enable_shared=yes
8787	fi
8788      done
8789      IFS=$lt_save_ifs
8790      ;;
8791    esac
8792else
8793  enable_shared=yes
8794fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804  # Check whether --enable-static was given.
8805if test "${enable_static+set}" = set; then :
8806  enableval=$enable_static; p=${PACKAGE-default}
8807    case $enableval in
8808    yes) enable_static=yes ;;
8809    no) enable_static=no ;;
8810    *)
8811     enable_static=no
8812      # Look at the argument we got.  We use all the common list separators.
8813      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8814      for pkg in $enableval; do
8815	IFS=$lt_save_ifs
8816	if test "X$pkg" = "X$p"; then
8817	  enable_static=yes
8818	fi
8819      done
8820      IFS=$lt_save_ifs
8821      ;;
8822    esac
8823else
8824  enable_static=yes
8825fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836# Check whether --with-pic was given.
8837if test "${with_pic+set}" = set; then :
8838  withval=$with_pic; lt_p=${PACKAGE-default}
8839    case $withval in
8840    yes|no) pic_mode=$withval ;;
8841    *)
8842      pic_mode=default
8843      # Look at the argument we got.  We use all the common list separators.
8844      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8845      for lt_pkg in $withval; do
8846	IFS=$lt_save_ifs
8847	if test "X$lt_pkg" = "X$lt_p"; then
8848	  pic_mode=yes
8849	fi
8850      done
8851      IFS=$lt_save_ifs
8852      ;;
8853    esac
8854else
8855  pic_mode=default
8856fi
8857
8858
8859
8860
8861
8862
8863
8864
8865  # Check whether --enable-fast-install was given.
8866if test "${enable_fast_install+set}" = set; then :
8867  enableval=$enable_fast_install; p=${PACKAGE-default}
8868    case $enableval in
8869    yes) enable_fast_install=yes ;;
8870    no) enable_fast_install=no ;;
8871    *)
8872      enable_fast_install=no
8873      # Look at the argument we got.  We use all the common list separators.
8874      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8875      for pkg in $enableval; do
8876	IFS=$lt_save_ifs
8877	if test "X$pkg" = "X$p"; then
8878	  enable_fast_install=yes
8879	fi
8880      done
8881      IFS=$lt_save_ifs
8882      ;;
8883    esac
8884else
8885  enable_fast_install=yes
8886fi
8887
8888
8889
8890
8891
8892
8893
8894
8895  shared_archive_member_spec=
8896case $host,$enable_shared in
8897power*-*-aix[5-9]*,yes)
8898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8899$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8900
8901# Check whether --with-aix-soname was given.
8902if test "${with_aix_soname+set}" = set; then :
8903  withval=$with_aix_soname; case $withval in
8904    aix|svr4|both)
8905      ;;
8906    *)
8907      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8908      ;;
8909    esac
8910    lt_cv_with_aix_soname=$with_aix_soname
8911else
8912  if ${lt_cv_with_aix_soname+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  lt_cv_with_aix_soname=aix
8916fi
8917
8918    with_aix_soname=$lt_cv_with_aix_soname
8919fi
8920
8921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8922$as_echo "$with_aix_soname" >&6; }
8923  if test aix != "$with_aix_soname"; then
8924    # For the AIX way of multilib, we name the shared archive member
8925    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8926    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8927    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8928    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8929    if test 64 = "${OBJECT_MODE-32}"; then
8930      shared_archive_member_spec=shr_64
8931    else
8932      shared_archive_member_spec=shr
8933    fi
8934  fi
8935  ;;
8936*)
8937  with_aix_soname=aix
8938  ;;
8939esac
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950# This can be used to rebuild libtool when needed
8951LIBTOOL_DEPS=$ltmain
8952
8953# Always use our own libtool.
8954LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985test -z "$LN_S" && LN_S="ln -s"
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000if test -n "${ZSH_VERSION+set}"; then
9001   setopt NO_GLOB_SUBST
9002fi
9003
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9005$as_echo_n "checking for objdir... " >&6; }
9006if ${lt_cv_objdir+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  rm -f .libs 2>/dev/null
9010mkdir .libs 2>/dev/null
9011if test -d .libs; then
9012  lt_cv_objdir=.libs
9013else
9014  # MS-DOS does not allow filenames that begin with a dot.
9015  lt_cv_objdir=_libs
9016fi
9017rmdir .libs 2>/dev/null
9018fi
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9020$as_echo "$lt_cv_objdir" >&6; }
9021objdir=$lt_cv_objdir
9022
9023
9024
9025
9026
9027cat >>confdefs.h <<_ACEOF
9028#define LT_OBJDIR "$lt_cv_objdir/"
9029_ACEOF
9030
9031
9032
9033
9034case $host_os in
9035aix3*)
9036  # AIX sometimes has problems with the GCC collect2 program.  For some
9037  # reason, if we set the COLLECT_NAMES environment variable, the problems
9038  # vanish in a puff of smoke.
9039  if test set != "${COLLECT_NAMES+set}"; then
9040    COLLECT_NAMES=
9041    export COLLECT_NAMES
9042  fi
9043  ;;
9044esac
9045
9046# Global variables:
9047ofile=libtool
9048can_build_shared=yes
9049
9050# All known linkers require a '.a' archive for static linking (except MSVC,
9051# which needs '.lib').
9052libext=a
9053
9054with_gnu_ld=$lt_cv_prog_gnu_ld
9055
9056old_CC=$CC
9057old_CFLAGS=$CFLAGS
9058
9059# Set sane defaults for various variables
9060test -z "$CC" && CC=cc
9061test -z "$LTCC" && LTCC=$CC
9062test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9063test -z "$LD" && LD=ld
9064test -z "$ac_objext" && ac_objext=o
9065
9066func_cc_basename $compiler
9067cc_basename=$func_cc_basename_result
9068
9069
9070# Only perform the check for file, if the check method requires it
9071test -z "$MAGIC_CMD" && MAGIC_CMD=file
9072case $deplibs_check_method in
9073file_magic*)
9074  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9076$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9077if ${lt_cv_path_MAGIC_CMD+:} false; then :
9078  $as_echo_n "(cached) " >&6
9079else
9080  case $MAGIC_CMD in
9081[\\/*] |  ?:[\\/]*)
9082  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9083  ;;
9084*)
9085  lt_save_MAGIC_CMD=$MAGIC_CMD
9086  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9087  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9088  for ac_dir in $ac_dummy; do
9089    IFS=$lt_save_ifs
9090    test -z "$ac_dir" && ac_dir=.
9091    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9092      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9093      if test -n "$file_magic_test_file"; then
9094	case $deplibs_check_method in
9095	"file_magic "*)
9096	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9097	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9098	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9099	    $EGREP "$file_magic_regex" > /dev/null; then
9100	    :
9101	  else
9102	    cat <<_LT_EOF 1>&2
9103
9104*** Warning: the command libtool uses to detect shared libraries,
9105*** $file_magic_cmd, produces output that libtool cannot recognize.
9106*** The result is that libtool may fail to recognize shared libraries
9107*** as such.  This will affect the creation of libtool libraries that
9108*** depend on shared libraries, but programs linked with such libtool
9109*** libraries will work regardless of this problem.  Nevertheless, you
9110*** may want to report the problem to your system manager and/or to
9111*** bug-libtool@gnu.org
9112
9113_LT_EOF
9114	  fi ;;
9115	esac
9116      fi
9117      break
9118    fi
9119  done
9120  IFS=$lt_save_ifs
9121  MAGIC_CMD=$lt_save_MAGIC_CMD
9122  ;;
9123esac
9124fi
9125
9126MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9127if test -n "$MAGIC_CMD"; then
9128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9129$as_echo "$MAGIC_CMD" >&6; }
9130else
9131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132$as_echo "no" >&6; }
9133fi
9134
9135
9136
9137
9138
9139if test -z "$lt_cv_path_MAGIC_CMD"; then
9140  if test -n "$ac_tool_prefix"; then
9141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9142$as_echo_n "checking for file... " >&6; }
9143if ${lt_cv_path_MAGIC_CMD+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  case $MAGIC_CMD in
9147[\\/*] |  ?:[\\/]*)
9148  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9149  ;;
9150*)
9151  lt_save_MAGIC_CMD=$MAGIC_CMD
9152  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9153  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9154  for ac_dir in $ac_dummy; do
9155    IFS=$lt_save_ifs
9156    test -z "$ac_dir" && ac_dir=.
9157    if test -f "$ac_dir/file"; then
9158      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9159      if test -n "$file_magic_test_file"; then
9160	case $deplibs_check_method in
9161	"file_magic "*)
9162	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9163	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9164	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9165	    $EGREP "$file_magic_regex" > /dev/null; then
9166	    :
9167	  else
9168	    cat <<_LT_EOF 1>&2
9169
9170*** Warning: the command libtool uses to detect shared libraries,
9171*** $file_magic_cmd, produces output that libtool cannot recognize.
9172*** The result is that libtool may fail to recognize shared libraries
9173*** as such.  This will affect the creation of libtool libraries that
9174*** depend on shared libraries, but programs linked with such libtool
9175*** libraries will work regardless of this problem.  Nevertheless, you
9176*** may want to report the problem to your system manager and/or to
9177*** bug-libtool@gnu.org
9178
9179_LT_EOF
9180	  fi ;;
9181	esac
9182      fi
9183      break
9184    fi
9185  done
9186  IFS=$lt_save_ifs
9187  MAGIC_CMD=$lt_save_MAGIC_CMD
9188  ;;
9189esac
9190fi
9191
9192MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9193if test -n "$MAGIC_CMD"; then
9194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9195$as_echo "$MAGIC_CMD" >&6; }
9196else
9197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
9199fi
9200
9201
9202  else
9203    MAGIC_CMD=:
9204  fi
9205fi
9206
9207  fi
9208  ;;
9209esac
9210
9211# Use C for the default configuration in the libtool script
9212
9213lt_save_CC=$CC
9214ac_ext=c
9215ac_cpp='$CPP $CPPFLAGS'
9216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
9220
9221# Source file extension for C test sources.
9222ac_ext=c
9223
9224# Object file extension for compiled C test sources.
9225objext=o
9226objext=$objext
9227
9228# Code to be used in simple compile tests
9229lt_simple_compile_test_code="int some_variable = 0;"
9230
9231# Code to be used in simple link tests
9232lt_simple_link_test_code='int main(){return(0);}'
9233
9234
9235
9236
9237
9238
9239
9240# If no C compiler was specified, use CC.
9241LTCC=${LTCC-"$CC"}
9242
9243# If no C compiler flags were specified, use CFLAGS.
9244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9245
9246# Allow CC to be a program name with arguments.
9247compiler=$CC
9248
9249# Save the default compiler, since it gets overwritten when the other
9250# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9251compiler_DEFAULT=$CC
9252
9253# save warnings/boilerplate of simple test code
9254ac_outfile=conftest.$ac_objext
9255echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9256eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9257_lt_compiler_boilerplate=`cat conftest.err`
9258$RM conftest*
9259
9260ac_outfile=conftest.$ac_objext
9261echo "$lt_simple_link_test_code" >conftest.$ac_ext
9262eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9263_lt_linker_boilerplate=`cat conftest.err`
9264$RM -r conftest*
9265
9266
9267if test -n "$compiler"; then
9268
9269lt_prog_compiler_no_builtin_flag=
9270
9271if test yes = "$GCC"; then
9272  case $cc_basename in
9273  nvcc*)
9274    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9275  *)
9276    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9277  esac
9278
9279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9280$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9281if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  lt_cv_prog_compiler_rtti_exceptions=no
9285   ac_outfile=conftest.$ac_objext
9286   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9288   # Insert the option either (1) after the last *FLAGS variable, or
9289   # (2) before a word containing "conftest.", or (3) at the end.
9290   # Note that $ac_compile itself does not contain backslashes and begins
9291   # with a dollar sign (not a hyphen), so the echo should work correctly.
9292   # The option is referenced via a variable to avoid confusing sed.
9293   lt_compile=`echo "$ac_compile" | $SED \
9294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296   -e 's:$: $lt_compiler_flag:'`
9297   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9298   (eval "$lt_compile" 2>conftest.err)
9299   ac_status=$?
9300   cat conftest.err >&5
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   if (exit $ac_status) && test -s "$ac_outfile"; then
9303     # The compiler can only warn and ignore the option if not recognized
9304     # So say no if there are warnings other than the usual output.
9305     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9308       lt_cv_prog_compiler_rtti_exceptions=yes
9309     fi
9310   fi
9311   $RM conftest*
9312
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9315$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9316
9317if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9318    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9319else
9320    :
9321fi
9322
9323fi
9324
9325
9326
9327
9328
9329
9330  lt_prog_compiler_wl=
9331lt_prog_compiler_pic=
9332lt_prog_compiler_static=
9333
9334
9335  if test yes = "$GCC"; then
9336    lt_prog_compiler_wl='-Wl,'
9337    lt_prog_compiler_static='-static'
9338
9339    case $host_os in
9340      aix*)
9341      # All AIX code is PIC.
9342      if test ia64 = "$host_cpu"; then
9343	# AIX 5 now supports IA64 processor
9344	lt_prog_compiler_static='-Bstatic'
9345      fi
9346      lt_prog_compiler_pic='-fPIC'
9347      ;;
9348
9349    amigaos*)
9350      case $host_cpu in
9351      powerpc)
9352            # see comment about AmigaOS4 .so support
9353            lt_prog_compiler_pic='-fPIC'
9354        ;;
9355      m68k)
9356            # FIXME: we need at least 68020 code to build shared libraries, but
9357            # adding the '-m68020' flag to GCC prevents building anything better,
9358            # like '-m68040'.
9359            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9360        ;;
9361      esac
9362      ;;
9363
9364    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9365      # PIC is the default for these OSes.
9366      ;;
9367
9368    mingw* | cygwin* | pw32* | os2* | cegcc*)
9369      # This hack is so that the source file can tell whether it is being
9370      # built for inclusion in a dll (and should export symbols for example).
9371      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9372      # (--disable-auto-import) libraries
9373      lt_prog_compiler_pic='-DDLL_EXPORT'
9374      case $host_os in
9375      os2*)
9376	lt_prog_compiler_static='$wl-static'
9377	;;
9378      esac
9379      ;;
9380
9381    darwin* | rhapsody*)
9382      # PIC is the default on this platform
9383      # Common symbols not allowed in MH_DYLIB files
9384      lt_prog_compiler_pic='-fno-common'
9385      ;;
9386
9387    haiku*)
9388      # PIC is the default for Haiku.
9389      # The "-static" flag exists, but is broken.
9390      lt_prog_compiler_static=
9391      ;;
9392
9393    hpux*)
9394      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9395      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9396      # sets the default TLS model and affects inlining.
9397      case $host_cpu in
9398      hppa*64*)
9399	# +Z the default
9400	;;
9401      *)
9402	lt_prog_compiler_pic='-fPIC'
9403	;;
9404      esac
9405      ;;
9406
9407    interix[3-9]*)
9408      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9409      # Instead, we relocate shared libraries at runtime.
9410      ;;
9411
9412    msdosdjgpp*)
9413      # Just because we use GCC doesn't mean we suddenly get shared libraries
9414      # on systems that don't support them.
9415      lt_prog_compiler_can_build_shared=no
9416      enable_shared=no
9417      ;;
9418
9419    *nto* | *qnx*)
9420      # QNX uses GNU C++, but need to define -shared option too, otherwise
9421      # it will coredump.
9422      lt_prog_compiler_pic='-fPIC -shared'
9423      ;;
9424
9425    sysv4*MP*)
9426      if test -d /usr/nec; then
9427	lt_prog_compiler_pic=-Kconform_pic
9428      fi
9429      ;;
9430
9431    *)
9432      lt_prog_compiler_pic='-fPIC'
9433      ;;
9434    esac
9435
9436    case $cc_basename in
9437    nvcc*) # Cuda Compiler Driver 2.2
9438      lt_prog_compiler_wl='-Xlinker '
9439      if test -n "$lt_prog_compiler_pic"; then
9440        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9441      fi
9442      ;;
9443    esac
9444  else
9445    # PORTME Check for flag to pass linker flags through the system compiler.
9446    case $host_os in
9447    aix*)
9448      lt_prog_compiler_wl='-Wl,'
9449      if test ia64 = "$host_cpu"; then
9450	# AIX 5 now supports IA64 processor
9451	lt_prog_compiler_static='-Bstatic'
9452      else
9453	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9454      fi
9455      ;;
9456
9457    darwin* | rhapsody*)
9458      # PIC is the default on this platform
9459      # Common symbols not allowed in MH_DYLIB files
9460      lt_prog_compiler_pic='-fno-common'
9461      case $cc_basename in
9462      nagfor*)
9463        # NAG Fortran compiler
9464        lt_prog_compiler_wl='-Wl,-Wl,,'
9465        lt_prog_compiler_pic='-PIC'
9466        lt_prog_compiler_static='-Bstatic'
9467        ;;
9468      esac
9469      ;;
9470
9471    mingw* | cygwin* | pw32* | os2* | cegcc*)
9472      # This hack is so that the source file can tell whether it is being
9473      # built for inclusion in a dll (and should export symbols for example).
9474      lt_prog_compiler_pic='-DDLL_EXPORT'
9475      case $host_os in
9476      os2*)
9477	lt_prog_compiler_static='$wl-static'
9478	;;
9479      esac
9480      ;;
9481
9482    hpux9* | hpux10* | hpux11*)
9483      lt_prog_compiler_wl='-Wl,'
9484      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9485      # not for PA HP-UX.
9486      case $host_cpu in
9487      hppa*64*|ia64*)
9488	# +Z the default
9489	;;
9490      *)
9491	lt_prog_compiler_pic='+Z'
9492	;;
9493      esac
9494      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9495      lt_prog_compiler_static='$wl-a ${wl}archive'
9496      ;;
9497
9498    irix5* | irix6* | nonstopux*)
9499      lt_prog_compiler_wl='-Wl,'
9500      # PIC (with -KPIC) is the default.
9501      lt_prog_compiler_static='-non_shared'
9502      ;;
9503
9504    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9505      case $cc_basename in
9506      # old Intel for x86_64, which still supported -KPIC.
9507      ecc*)
9508	lt_prog_compiler_wl='-Wl,'
9509	lt_prog_compiler_pic='-KPIC'
9510	lt_prog_compiler_static='-static'
9511        ;;
9512      # icc used to be incompatible with GCC.
9513      # ICC 10 doesn't accept -KPIC any more.
9514      icc* | ifort*)
9515	lt_prog_compiler_wl='-Wl,'
9516	lt_prog_compiler_pic='-fPIC'
9517	lt_prog_compiler_static='-static'
9518        ;;
9519      # Lahey Fortran 8.1.
9520      lf95*)
9521	lt_prog_compiler_wl='-Wl,'
9522	lt_prog_compiler_pic='--shared'
9523	lt_prog_compiler_static='--static'
9524	;;
9525      nagfor*)
9526	# NAG Fortran compiler
9527	lt_prog_compiler_wl='-Wl,-Wl,,'
9528	lt_prog_compiler_pic='-PIC'
9529	lt_prog_compiler_static='-Bstatic'
9530	;;
9531      tcc*)
9532	# Fabrice Bellard et al's Tiny C Compiler
9533	lt_prog_compiler_wl='-Wl,'
9534	lt_prog_compiler_pic='-fPIC'
9535	lt_prog_compiler_static='-static'
9536	;;
9537      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9538        # Portland Group compilers (*not* the Pentium gcc compiler,
9539	# which looks to be a dead project)
9540	lt_prog_compiler_wl='-Wl,'
9541	lt_prog_compiler_pic='-fpic'
9542	lt_prog_compiler_static='-Bstatic'
9543        ;;
9544      ccc*)
9545        lt_prog_compiler_wl='-Wl,'
9546        # All Alpha code is PIC.
9547        lt_prog_compiler_static='-non_shared'
9548        ;;
9549      xl* | bgxl* | bgf* | mpixl*)
9550	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9551	lt_prog_compiler_wl='-Wl,'
9552	lt_prog_compiler_pic='-qpic'
9553	lt_prog_compiler_static='-qstaticlink'
9554	;;
9555      *)
9556	case `$CC -V 2>&1 | sed 5q` in
9557	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9558	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9559	  lt_prog_compiler_pic='-KPIC'
9560	  lt_prog_compiler_static='-Bstatic'
9561	  lt_prog_compiler_wl=''
9562	  ;;
9563	*Sun\ F* | *Sun*Fortran*)
9564	  lt_prog_compiler_pic='-KPIC'
9565	  lt_prog_compiler_static='-Bstatic'
9566	  lt_prog_compiler_wl='-Qoption ld '
9567	  ;;
9568	*Sun\ C*)
9569	  # Sun C 5.9
9570	  lt_prog_compiler_pic='-KPIC'
9571	  lt_prog_compiler_static='-Bstatic'
9572	  lt_prog_compiler_wl='-Wl,'
9573	  ;;
9574        *Intel*\ [CF]*Compiler*)
9575	  lt_prog_compiler_wl='-Wl,'
9576	  lt_prog_compiler_pic='-fPIC'
9577	  lt_prog_compiler_static='-static'
9578	  ;;
9579	*Portland\ Group*)
9580	  lt_prog_compiler_wl='-Wl,'
9581	  lt_prog_compiler_pic='-fpic'
9582	  lt_prog_compiler_static='-Bstatic'
9583	  ;;
9584	esac
9585	;;
9586      esac
9587      ;;
9588
9589    newsos6)
9590      lt_prog_compiler_pic='-KPIC'
9591      lt_prog_compiler_static='-Bstatic'
9592      ;;
9593
9594    *nto* | *qnx*)
9595      # QNX uses GNU C++, but need to define -shared option too, otherwise
9596      # it will coredump.
9597      lt_prog_compiler_pic='-fPIC -shared'
9598      ;;
9599
9600    osf3* | osf4* | osf5*)
9601      lt_prog_compiler_wl='-Wl,'
9602      # All OSF/1 code is PIC.
9603      lt_prog_compiler_static='-non_shared'
9604      ;;
9605
9606    rdos*)
9607      lt_prog_compiler_static='-non_shared'
9608      ;;
9609
9610    solaris*)
9611      lt_prog_compiler_pic='-KPIC'
9612      lt_prog_compiler_static='-Bstatic'
9613      case $cc_basename in
9614      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9615	lt_prog_compiler_wl='-Qoption ld ';;
9616      *)
9617	lt_prog_compiler_wl='-Wl,';;
9618      esac
9619      ;;
9620
9621    sunos4*)
9622      lt_prog_compiler_wl='-Qoption ld '
9623      lt_prog_compiler_pic='-PIC'
9624      lt_prog_compiler_static='-Bstatic'
9625      ;;
9626
9627    sysv4 | sysv4.2uw2* | sysv4.3*)
9628      lt_prog_compiler_wl='-Wl,'
9629      lt_prog_compiler_pic='-KPIC'
9630      lt_prog_compiler_static='-Bstatic'
9631      ;;
9632
9633    sysv4*MP*)
9634      if test -d /usr/nec; then
9635	lt_prog_compiler_pic='-Kconform_pic'
9636	lt_prog_compiler_static='-Bstatic'
9637      fi
9638      ;;
9639
9640    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9641      lt_prog_compiler_wl='-Wl,'
9642      lt_prog_compiler_pic='-KPIC'
9643      lt_prog_compiler_static='-Bstatic'
9644      ;;
9645
9646    unicos*)
9647      lt_prog_compiler_wl='-Wl,'
9648      lt_prog_compiler_can_build_shared=no
9649      ;;
9650
9651    uts4*)
9652      lt_prog_compiler_pic='-pic'
9653      lt_prog_compiler_static='-Bstatic'
9654      ;;
9655
9656    *)
9657      lt_prog_compiler_can_build_shared=no
9658      ;;
9659    esac
9660  fi
9661
9662case $host_os in
9663  # For platforms that do not support PIC, -DPIC is meaningless:
9664  *djgpp*)
9665    lt_prog_compiler_pic=
9666    ;;
9667  *)
9668    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9669    ;;
9670esac
9671
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9673$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9674if ${lt_cv_prog_compiler_pic+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9678fi
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9680$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9681lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9682
9683#
9684# Check to make sure the PIC flag actually works.
9685#
9686if test -n "$lt_prog_compiler_pic"; then
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9688$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9689if ${lt_cv_prog_compiler_pic_works+:} false; then :
9690  $as_echo_n "(cached) " >&6
9691else
9692  lt_cv_prog_compiler_pic_works=no
9693   ac_outfile=conftest.$ac_objext
9694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9696   # Insert the option either (1) after the last *FLAGS variable, or
9697   # (2) before a word containing "conftest.", or (3) at the end.
9698   # Note that $ac_compile itself does not contain backslashes and begins
9699   # with a dollar sign (not a hyphen), so the echo should work correctly.
9700   # The option is referenced via a variable to avoid confusing sed.
9701   lt_compile=`echo "$ac_compile" | $SED \
9702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704   -e 's:$: $lt_compiler_flag:'`
9705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9706   (eval "$lt_compile" 2>conftest.err)
9707   ac_status=$?
9708   cat conftest.err >&5
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   if (exit $ac_status) && test -s "$ac_outfile"; then
9711     # The compiler can only warn and ignore the option if not recognized
9712     # So say no if there are warnings other than the usual output.
9713     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9714     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9715     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9716       lt_cv_prog_compiler_pic_works=yes
9717     fi
9718   fi
9719   $RM conftest*
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9723$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9724
9725if test yes = "$lt_cv_prog_compiler_pic_works"; then
9726    case $lt_prog_compiler_pic in
9727     "" | " "*) ;;
9728     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9729     esac
9730else
9731    lt_prog_compiler_pic=
9732     lt_prog_compiler_can_build_shared=no
9733fi
9734
9735fi
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747#
9748# Check to make sure the static flag actually works.
9749#
9750wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9752$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9753if ${lt_cv_prog_compiler_static_works+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  lt_cv_prog_compiler_static_works=no
9757   save_LDFLAGS=$LDFLAGS
9758   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9759   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9760   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9761     # The linker can only warn and ignore the option if not recognized
9762     # So say no if there are warnings
9763     if test -s conftest.err; then
9764       # Append any errors to the config.log.
9765       cat conftest.err 1>&5
9766       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9767       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9768       if diff conftest.exp conftest.er2 >/dev/null; then
9769         lt_cv_prog_compiler_static_works=yes
9770       fi
9771     else
9772       lt_cv_prog_compiler_static_works=yes
9773     fi
9774   fi
9775   $RM -r conftest*
9776   LDFLAGS=$save_LDFLAGS
9777
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9780$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9781
9782if test yes = "$lt_cv_prog_compiler_static_works"; then
9783    :
9784else
9785    lt_prog_compiler_static=
9786fi
9787
9788
9789
9790
9791
9792
9793
9794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9796if ${lt_cv_prog_compiler_c_o+:} false; then :
9797  $as_echo_n "(cached) " >&6
9798else
9799  lt_cv_prog_compiler_c_o=no
9800   $RM -r conftest 2>/dev/null
9801   mkdir conftest
9802   cd conftest
9803   mkdir out
9804   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9805
9806   lt_compiler_flag="-o out/conftest2.$ac_objext"
9807   # Insert the option either (1) after the last *FLAGS variable, or
9808   # (2) before a word containing "conftest.", or (3) at the end.
9809   # Note that $ac_compile itself does not contain backslashes and begins
9810   # with a dollar sign (not a hyphen), so the echo should work correctly.
9811   lt_compile=`echo "$ac_compile" | $SED \
9812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9814   -e 's:$: $lt_compiler_flag:'`
9815   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9816   (eval "$lt_compile" 2>out/conftest.err)
9817   ac_status=$?
9818   cat out/conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9821   then
9822     # The compiler can only warn and ignore the option if not recognized
9823     # So say no if there are warnings
9824     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9825     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9826     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9827       lt_cv_prog_compiler_c_o=yes
9828     fi
9829   fi
9830   chmod u+w . 2>&5
9831   $RM conftest*
9832   # SGI C++ compiler will create directory out/ii_files/ for
9833   # template instantiation
9834   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9835   $RM out/* && rmdir out
9836   cd ..
9837   $RM -r conftest
9838   $RM conftest*
9839
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9842$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9843
9844
9845
9846
9847
9848
9849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9850$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9851if ${lt_cv_prog_compiler_c_o+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  lt_cv_prog_compiler_c_o=no
9855   $RM -r conftest 2>/dev/null
9856   mkdir conftest
9857   cd conftest
9858   mkdir out
9859   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9860
9861   lt_compiler_flag="-o out/conftest2.$ac_objext"
9862   # Insert the option either (1) after the last *FLAGS variable, or
9863   # (2) before a word containing "conftest.", or (3) at the end.
9864   # Note that $ac_compile itself does not contain backslashes and begins
9865   # with a dollar sign (not a hyphen), so the echo should work correctly.
9866   lt_compile=`echo "$ac_compile" | $SED \
9867   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9868   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9869   -e 's:$: $lt_compiler_flag:'`
9870   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9871   (eval "$lt_compile" 2>out/conftest.err)
9872   ac_status=$?
9873   cat out/conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9876   then
9877     # The compiler can only warn and ignore the option if not recognized
9878     # So say no if there are warnings
9879     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9880     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9881     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9882       lt_cv_prog_compiler_c_o=yes
9883     fi
9884   fi
9885   chmod u+w . 2>&5
9886   $RM conftest*
9887   # SGI C++ compiler will create directory out/ii_files/ for
9888   # template instantiation
9889   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9890   $RM out/* && rmdir out
9891   cd ..
9892   $RM -r conftest
9893   $RM conftest*
9894
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9897$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9898
9899
9900
9901
9902hard_links=nottested
9903if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9904  # do not overwrite the value of need_locks provided by the user
9905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9906$as_echo_n "checking if we can lock with hard links... " >&6; }
9907  hard_links=yes
9908  $RM conftest*
9909  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9910  touch conftest.a
9911  ln conftest.a conftest.b 2>&5 || hard_links=no
9912  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9914$as_echo "$hard_links" >&6; }
9915  if test no = "$hard_links"; then
9916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9917$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9918    need_locks=warn
9919  fi
9920else
9921  need_locks=no
9922fi
9923
9924
9925
9926
9927
9928
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9930$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9931
9932  runpath_var=
9933  allow_undefined_flag=
9934  always_export_symbols=no
9935  archive_cmds=
9936  archive_expsym_cmds=
9937  compiler_needs_object=no
9938  enable_shared_with_static_runtimes=no
9939  export_dynamic_flag_spec=
9940  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9941  hardcode_automatic=no
9942  hardcode_direct=no
9943  hardcode_direct_absolute=no
9944  hardcode_libdir_flag_spec=
9945  hardcode_libdir_separator=
9946  hardcode_minus_L=no
9947  hardcode_shlibpath_var=unsupported
9948  inherit_rpath=no
9949  link_all_deplibs=unknown
9950  module_cmds=
9951  module_expsym_cmds=
9952  old_archive_from_new_cmds=
9953  old_archive_from_expsyms_cmds=
9954  thread_safe_flag_spec=
9955  whole_archive_flag_spec=
9956  # include_expsyms should be a list of space-separated symbols to be *always*
9957  # included in the symbol list
9958  include_expsyms=
9959  # exclude_expsyms can be an extended regexp of symbols to exclude
9960  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9961  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9962  # as well as any symbol that contains 'd'.
9963  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9964  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9965  # platforms (ab)use it in PIC code, but their linkers get confused if
9966  # the symbol is explicitly referenced.  Since portable code cannot
9967  # rely on this symbol name, it's probably fine to never include it in
9968  # preloaded symbol tables.
9969  # Exclude shared library initialization/finalization symbols.
9970  extract_expsyms_cmds=
9971
9972  case $host_os in
9973  cygwin* | mingw* | pw32* | cegcc*)
9974    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9975    # When not using gcc, we currently assume that we are using
9976    # Microsoft Visual C++.
9977    if test yes != "$GCC"; then
9978      with_gnu_ld=no
9979    fi
9980    ;;
9981  interix*)
9982    # we just hope/assume this is gcc and not c89 (= MSVC++)
9983    with_gnu_ld=yes
9984    ;;
9985  openbsd* | bitrig*)
9986    with_gnu_ld=no
9987    ;;
9988  esac
9989
9990  ld_shlibs=yes
9991
9992  # On some targets, GNU ld is compatible enough with the native linker
9993  # that we're better off using the native interface for both.
9994  lt_use_gnu_ld_interface=no
9995  if test yes = "$with_gnu_ld"; then
9996    case $host_os in
9997      aix*)
9998	# The AIX port of GNU ld has always aspired to compatibility
9999	# with the native linker.  However, as the warning in the GNU ld
10000	# block says, versions before 2.19.5* couldn't really create working
10001	# shared libraries, regardless of the interface used.
10002	case `$LD -v 2>&1` in
10003	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10004	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10005	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10006	  *)
10007	    lt_use_gnu_ld_interface=yes
10008	    ;;
10009	esac
10010	;;
10011      *)
10012	lt_use_gnu_ld_interface=yes
10013	;;
10014    esac
10015  fi
10016
10017  if test yes = "$lt_use_gnu_ld_interface"; then
10018    # If archive_cmds runs LD, not CC, wlarc should be empty
10019    wlarc='$wl'
10020
10021    # Set some defaults for GNU ld with shared library support. These
10022    # are reset later if shared libraries are not supported. Putting them
10023    # here allows them to be overridden if necessary.
10024    runpath_var=LD_RUN_PATH
10025    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10026    export_dynamic_flag_spec='$wl--export-dynamic'
10027    # ancient GNU ld didn't support --whole-archive et. al.
10028    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10029      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10030    else
10031      whole_archive_flag_spec=
10032    fi
10033    supports_anon_versioning=no
10034    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10035      *GNU\ gold*) supports_anon_versioning=yes ;;
10036      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10037      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10038      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10039      *\ 2.11.*) ;; # other 2.11 versions
10040      *) supports_anon_versioning=yes ;;
10041    esac
10042
10043    # See if GNU ld supports shared libraries.
10044    case $host_os in
10045    aix[3-9]*)
10046      # On AIX/PPC, the GNU linker is very broken
10047      if test ia64 != "$host_cpu"; then
10048	ld_shlibs=no
10049	cat <<_LT_EOF 1>&2
10050
10051*** Warning: the GNU linker, at least up to release 2.19, is reported
10052*** to be unable to reliably create shared libraries on AIX.
10053*** Therefore, libtool is disabling shared libraries support.  If you
10054*** really care for shared libraries, you may want to install binutils
10055*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10056*** You will then need to restart the configuration process.
10057
10058_LT_EOF
10059      fi
10060      ;;
10061
10062    amigaos*)
10063      case $host_cpu in
10064      powerpc)
10065            # see comment about AmigaOS4 .so support
10066            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067            archive_expsym_cmds=''
10068        ;;
10069      m68k)
10070            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)'
10071            hardcode_libdir_flag_spec='-L$libdir'
10072            hardcode_minus_L=yes
10073        ;;
10074      esac
10075      ;;
10076
10077    beos*)
10078      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10079	allow_undefined_flag=unsupported
10080	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10081	# support --undefined.  This deserves some investigation.  FIXME
10082	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10083      else
10084	ld_shlibs=no
10085      fi
10086      ;;
10087
10088    cygwin* | mingw* | pw32* | cegcc*)
10089      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10090      # as there is no search path for DLLs.
10091      hardcode_libdir_flag_spec='-L$libdir'
10092      export_dynamic_flag_spec='$wl--export-all-symbols'
10093      allow_undefined_flag=unsupported
10094      always_export_symbols=no
10095      enable_shared_with_static_runtimes=yes
10096      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'
10097      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10098
10099      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10100        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10101	# If the export-symbols file already is a .def file, use it as
10102	# is; otherwise, prepend EXPORTS...
10103	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10104          cp $export_symbols $output_objdir/$soname.def;
10105        else
10106          echo EXPORTS > $output_objdir/$soname.def;
10107          cat $export_symbols >> $output_objdir/$soname.def;
10108        fi~
10109        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10110      else
10111	ld_shlibs=no
10112      fi
10113      ;;
10114
10115    haiku*)
10116      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117      link_all_deplibs=yes
10118      ;;
10119
10120    os2*)
10121      hardcode_libdir_flag_spec='-L$libdir'
10122      hardcode_minus_L=yes
10123      allow_undefined_flag=unsupported
10124      shrext_cmds=.dll
10125      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10126	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10127	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10128	$ECHO EXPORTS >> $output_objdir/$libname.def~
10129	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10130	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10131	emximp -o $lib $output_objdir/$libname.def'
10132      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10133	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10134	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10135	$ECHO EXPORTS >> $output_objdir/$libname.def~
10136	prefix_cmds="$SED"~
10137	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10138	  prefix_cmds="$prefix_cmds -e 1d";
10139	fi~
10140	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10141	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10142	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10143	emximp -o $lib $output_objdir/$libname.def'
10144      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10145      enable_shared_with_static_runtimes=yes
10146      ;;
10147
10148    interix[3-9]*)
10149      hardcode_direct=no
10150      hardcode_shlibpath_var=no
10151      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10152      export_dynamic_flag_spec='$wl-E'
10153      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10154      # Instead, shared libraries are loaded at an image base (0x10000000 by
10155      # default) and relocated if they conflict, which is a slow very memory
10156      # consuming and fragmenting process.  To avoid this, we pick a random,
10157      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10158      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10159      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10160      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'
10161      ;;
10162
10163    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10164      tmp_diet=no
10165      if test linux-dietlibc = "$host_os"; then
10166	case $cc_basename in
10167	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10168	esac
10169      fi
10170      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10171	 && test no = "$tmp_diet"
10172      then
10173	tmp_addflag=' $pic_flag'
10174	tmp_sharedflag='-shared'
10175	case $cc_basename,$host_cpu in
10176        pgcc*)				# Portland Group C compiler
10177	  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'
10178	  tmp_addflag=' $pic_flag'
10179	  ;;
10180	pgf77* | pgf90* | pgf95* | pgfortran*)
10181					# Portland Group f77 and f90 compilers
10182	  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'
10183	  tmp_addflag=' $pic_flag -Mnomain' ;;
10184	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10185	  tmp_addflag=' -i_dynamic' ;;
10186	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10187	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10188	ifc* | ifort*)			# Intel Fortran compiler
10189	  tmp_addflag=' -nofor_main' ;;
10190	lf95*)				# Lahey Fortran 8.1
10191	  whole_archive_flag_spec=
10192	  tmp_sharedflag='--shared' ;;
10193        nagfor*)                        # NAGFOR 5.3
10194          tmp_sharedflag='-Wl,-shared' ;;
10195	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10196	  tmp_sharedflag='-qmkshrobj'
10197	  tmp_addflag= ;;
10198	nvcc*)	# Cuda Compiler Driver 2.2
10199	  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'
10200	  compiler_needs_object=yes
10201	  ;;
10202	esac
10203	case `$CC -V 2>&1 | sed 5q` in
10204	*Sun\ C*)			# Sun C 5.9
10205	  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'
10206	  compiler_needs_object=yes
10207	  tmp_sharedflag='-G' ;;
10208	*Sun\ F*)			# Sun Fortran 8.3
10209	  tmp_sharedflag='-G' ;;
10210	esac
10211	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10212
10213        if test yes = "$supports_anon_versioning"; then
10214          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216            echo "local: *; };" >> $output_objdir/$libname.ver~
10217            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10218        fi
10219
10220	case $cc_basename in
10221	tcc*)
10222	  export_dynamic_flag_spec='-rdynamic'
10223	  ;;
10224	xlf* | bgf* | bgxlf* | mpixlf*)
10225	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10226	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10227	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10228	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10229	  if test yes = "$supports_anon_versioning"; then
10230	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10231              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10232              echo "local: *; };" >> $output_objdir/$libname.ver~
10233              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10234	  fi
10235	  ;;
10236	esac
10237      else
10238        ld_shlibs=no
10239      fi
10240      ;;
10241
10242    netbsd*)
10243      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10244	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10245	wlarc=
10246      else
10247	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10248	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10249      fi
10250      ;;
10251
10252    solaris*)
10253      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10254	ld_shlibs=no
10255	cat <<_LT_EOF 1>&2
10256
10257*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10258*** create shared libraries on Solaris systems.  Therefore, libtool
10259*** is disabling shared libraries support.  We urge you to upgrade GNU
10260*** binutils to release 2.9.1 or newer.  Another option is to modify
10261*** your PATH or compiler configuration so that the native linker is
10262*** used, and then restart.
10263
10264_LT_EOF
10265      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10266	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10267	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10268      else
10269	ld_shlibs=no
10270      fi
10271      ;;
10272
10273    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10274      case `$LD -v 2>&1` in
10275        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10276	ld_shlibs=no
10277	cat <<_LT_EOF 1>&2
10278
10279*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10280*** reliably create shared libraries on SCO systems.  Therefore, libtool
10281*** is disabling shared libraries support.  We urge you to upgrade GNU
10282*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10283*** your PATH or compiler configuration so that the native linker is
10284*** used, and then restart.
10285
10286_LT_EOF
10287	;;
10288	*)
10289	  # For security reasons, it is highly recommended that you always
10290	  # use absolute paths for naming shared libraries, and exclude the
10291	  # DT_RUNPATH tag from executables and libraries.  But doing so
10292	  # requires that you compile everything twice, which is a pain.
10293	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10294	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10295	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10296	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10297	  else
10298	    ld_shlibs=no
10299	  fi
10300	;;
10301      esac
10302      ;;
10303
10304    sunos4*)
10305      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10306      wlarc=
10307      hardcode_direct=yes
10308      hardcode_shlibpath_var=no
10309      ;;
10310
10311    *)
10312      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10313	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10314	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10315      else
10316	ld_shlibs=no
10317      fi
10318      ;;
10319    esac
10320
10321    if test no = "$ld_shlibs"; then
10322      runpath_var=
10323      hardcode_libdir_flag_spec=
10324      export_dynamic_flag_spec=
10325      whole_archive_flag_spec=
10326    fi
10327  else
10328    # PORTME fill in a description of your system's linker (not GNU ld)
10329    case $host_os in
10330    aix3*)
10331      allow_undefined_flag=unsupported
10332      always_export_symbols=yes
10333      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'
10334      # Note: this linker hardcodes the directories in LIBPATH if there
10335      # are no directories specified by -L.
10336      hardcode_minus_L=yes
10337      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10338	# Neither direct hardcoding nor static linking is supported with a
10339	# broken collect2.
10340	hardcode_direct=unsupported
10341      fi
10342      ;;
10343
10344    aix[4-9]*)
10345      if test ia64 = "$host_cpu"; then
10346	# On IA64, the linker does run time linking by default, so we don't
10347	# have to do anything special.
10348	aix_use_runtimelinking=no
10349	exp_sym_flag='-Bexport'
10350	no_entry_flag=
10351      else
10352	# If we're using GNU nm, then we don't want the "-C" option.
10353	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10354	# Without the "-l" option, or with the "-B" option, AIX nm treats
10355	# weak defined symbols like other global defined symbols, whereas
10356	# GNU nm marks them as "W".
10357	# While the 'weak' keyword is ignored in the Export File, we need
10358	# it in the Import File for the 'aix-soname' feature, so we have
10359	# to replace the "-B" option with "-P" for AIX nm.
10360	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10361	  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'
10362	else
10363	  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'
10364	fi
10365	aix_use_runtimelinking=no
10366
10367	# Test if we are trying to use run time linking or normal
10368	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10369	# have runtime linking enabled, and use it for executables.
10370	# For shared libraries, we enable/disable runtime linking
10371	# depending on the kind of the shared library created -
10372	# when "with_aix_soname,aix_use_runtimelinking" is:
10373	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10374	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10375	#            lib.a           static archive
10376	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10377	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10378	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10379	#            lib.a(lib.so.V) shared, rtl:no
10380	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10381	#            lib.a           static archive
10382	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10383	  for ld_flag in $LDFLAGS; do
10384	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10385	    aix_use_runtimelinking=yes
10386	    break
10387	  fi
10388	  done
10389	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10390	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10391	    # so we don't have lib.a shared libs to link our executables.
10392	    # We have to force runtime linking in this case.
10393	    aix_use_runtimelinking=yes
10394	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10395	  fi
10396	  ;;
10397	esac
10398
10399	exp_sym_flag='-bexport'
10400	no_entry_flag='-bnoentry'
10401      fi
10402
10403      # When large executables or shared objects are built, AIX ld can
10404      # have problems creating the table of contents.  If linking a library
10405      # or program results in "error TOC overflow" add -mminimal-toc to
10406      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10407      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10408
10409      archive_cmds=''
10410      hardcode_direct=yes
10411      hardcode_direct_absolute=yes
10412      hardcode_libdir_separator=':'
10413      link_all_deplibs=yes
10414      file_list_spec='$wl-f,'
10415      case $with_aix_soname,$aix_use_runtimelinking in
10416      aix,*) ;; # traditional, no import file
10417      svr4,* | *,yes) # use import file
10418	# The Import File defines what to hardcode.
10419	hardcode_direct=no
10420	hardcode_direct_absolute=no
10421	;;
10422      esac
10423
10424      if test yes = "$GCC"; then
10425	case $host_os in aix4.[012]|aix4.[012].*)
10426	# We only want to do this on AIX 4.2 and lower, the check
10427	# below for broken collect2 doesn't work under 4.3+
10428	  collect2name=`$CC -print-prog-name=collect2`
10429	  if test -f "$collect2name" &&
10430	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10431	  then
10432	  # We have reworked collect2
10433	  :
10434	  else
10435	  # We have old collect2
10436	  hardcode_direct=unsupported
10437	  # It fails to find uninstalled libraries when the uninstalled
10438	  # path is not listed in the libpath.  Setting hardcode_minus_L
10439	  # to unsupported forces relinking
10440	  hardcode_minus_L=yes
10441	  hardcode_libdir_flag_spec='-L$libdir'
10442	  hardcode_libdir_separator=
10443	  fi
10444	  ;;
10445	esac
10446	shared_flag='-shared'
10447	if test yes = "$aix_use_runtimelinking"; then
10448	  shared_flag="$shared_flag "'$wl-G'
10449	fi
10450	# Need to ensure runtime linking is disabled for the traditional
10451	# shared library, or the linker may eventually find shared libraries
10452	# /with/ Import File - we do not want to mix them.
10453	shared_flag_aix='-shared'
10454	shared_flag_svr4='-shared $wl-G'
10455      else
10456	# not using gcc
10457	if test ia64 = "$host_cpu"; then
10458	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10459	# chokes on -Wl,-G. The following line is correct:
10460	  shared_flag='-G'
10461	else
10462	  if test yes = "$aix_use_runtimelinking"; then
10463	    shared_flag='$wl-G'
10464	  else
10465	    shared_flag='$wl-bM:SRE'
10466	  fi
10467	  shared_flag_aix='$wl-bM:SRE'
10468	  shared_flag_svr4='$wl-G'
10469	fi
10470      fi
10471
10472      export_dynamic_flag_spec='$wl-bexpall'
10473      # It seems that -bexpall does not export symbols beginning with
10474      # underscore (_), so it is better to generate a list of symbols to export.
10475      always_export_symbols=yes
10476      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10477	# Warning - without using the other runtime loading flags (-brtl),
10478	# -berok will link without error, but may produce a broken library.
10479	allow_undefined_flag='-berok'
10480        # Determine the default libpath from the value encoded in an
10481        # empty executable.
10482        if test set = "${lt_cv_aix_libpath+set}"; then
10483  aix_libpath=$lt_cv_aix_libpath
10484else
10485  if ${lt_cv_aix_libpath_+:} false; then :
10486  $as_echo_n "(cached) " >&6
10487else
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490
10491int
10492main ()
10493{
10494
10495  ;
10496  return 0;
10497}
10498_ACEOF
10499if ac_fn_c_try_link "$LINENO"; then :
10500
10501  lt_aix_libpath_sed='
10502      /Import File Strings/,/^$/ {
10503	  /^0/ {
10504	      s/^0  *\([^ ]*\) *$/\1/
10505	      p
10506	  }
10507      }'
10508  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10509  # Check for a 64-bit object if we didn't find anything.
10510  if test -z "$lt_cv_aix_libpath_"; then
10511    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10512  fi
10513fi
10514rm -f core conftest.err conftest.$ac_objext \
10515    conftest$ac_exeext conftest.$ac_ext
10516  if test -z "$lt_cv_aix_libpath_"; then
10517    lt_cv_aix_libpath_=/usr/lib:/lib
10518  fi
10519
10520fi
10521
10522  aix_libpath=$lt_cv_aix_libpath_
10523fi
10524
10525        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10526        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
10527      else
10528	if test ia64 = "$host_cpu"; then
10529	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10530	  allow_undefined_flag="-z nodefs"
10531	  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"
10532	else
10533	 # Determine the default libpath from the value encoded in an
10534	 # empty executable.
10535	 if test set = "${lt_cv_aix_libpath+set}"; then
10536  aix_libpath=$lt_cv_aix_libpath
10537else
10538  if ${lt_cv_aix_libpath_+:} false; then :
10539  $as_echo_n "(cached) " >&6
10540else
10541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542/* end confdefs.h.  */
10543
10544int
10545main ()
10546{
10547
10548  ;
10549  return 0;
10550}
10551_ACEOF
10552if ac_fn_c_try_link "$LINENO"; then :
10553
10554  lt_aix_libpath_sed='
10555      /Import File Strings/,/^$/ {
10556	  /^0/ {
10557	      s/^0  *\([^ ]*\) *$/\1/
10558	      p
10559	  }
10560      }'
10561  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10562  # Check for a 64-bit object if we didn't find anything.
10563  if test -z "$lt_cv_aix_libpath_"; then
10564    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10565  fi
10566fi
10567rm -f core conftest.err conftest.$ac_objext \
10568    conftest$ac_exeext conftest.$ac_ext
10569  if test -z "$lt_cv_aix_libpath_"; then
10570    lt_cv_aix_libpath_=/usr/lib:/lib
10571  fi
10572
10573fi
10574
10575  aix_libpath=$lt_cv_aix_libpath_
10576fi
10577
10578	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10579	  # Warning - without using the other run time loading flags,
10580	  # -berok will link without error, but may produce a broken library.
10581	  no_undefined_flag=' $wl-bernotok'
10582	  allow_undefined_flag=' $wl-berok'
10583	  if test yes = "$with_gnu_ld"; then
10584	    # We only use this code for GNU lds that support --whole-archive.
10585	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10586	  else
10587	    # Exported symbols can be pulled into shared objects from archives
10588	    whole_archive_flag_spec='$convenience'
10589	  fi
10590	  archive_cmds_need_lc=yes
10591	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10592	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10593	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10594	  if test svr4 != "$with_aix_soname"; then
10595	    # This is similar to how AIX traditionally builds its shared libraries.
10596	    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'
10597	  fi
10598	  if test aix != "$with_aix_soname"; then
10599	    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'
10600	  else
10601	    # used by -dlpreopen to get the symbols
10602	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10603	  fi
10604	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10605	fi
10606      fi
10607      ;;
10608
10609    amigaos*)
10610      case $host_cpu in
10611      powerpc)
10612            # see comment about AmigaOS4 .so support
10613            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614            archive_expsym_cmds=''
10615        ;;
10616      m68k)
10617            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)'
10618            hardcode_libdir_flag_spec='-L$libdir'
10619            hardcode_minus_L=yes
10620        ;;
10621      esac
10622      ;;
10623
10624    bsdi[45]*)
10625      export_dynamic_flag_spec=-rdynamic
10626      ;;
10627
10628    cygwin* | mingw* | pw32* | cegcc*)
10629      # When not using gcc, we currently assume that we are using
10630      # Microsoft Visual C++.
10631      # hardcode_libdir_flag_spec is actually meaningless, as there is
10632      # no search path for DLLs.
10633      case $cc_basename in
10634      cl*)
10635	# Native MSVC
10636	hardcode_libdir_flag_spec=' '
10637	allow_undefined_flag=unsupported
10638	always_export_symbols=yes
10639	file_list_spec='@'
10640	# Tell ltmain to make .lib files, not .a files.
10641	libext=lib
10642	# Tell ltmain to make .dll files, not .so files.
10643	shrext_cmds=.dll
10644	# FIXME: Setting linknames here is a bad hack.
10645	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10646	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10647            cp "$export_symbols" "$output_objdir/$soname.def";
10648            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10649          else
10650            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10651          fi~
10652          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10653          linknames='
10654	# The linker will not automatically build a static lib if we build a DLL.
10655	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10656	enable_shared_with_static_runtimes=yes
10657	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10658	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10659	# Don't use ranlib
10660	old_postinstall_cmds='chmod 644 $oldlib'
10661	postlink_cmds='lt_outputfile="@OUTPUT@"~
10662          lt_tool_outputfile="@TOOL_OUTPUT@"~
10663          case $lt_outputfile in
10664            *.exe|*.EXE) ;;
10665            *)
10666              lt_outputfile=$lt_outputfile.exe
10667              lt_tool_outputfile=$lt_tool_outputfile.exe
10668              ;;
10669          esac~
10670          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10671            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10672            $RM "$lt_outputfile.manifest";
10673          fi'
10674	;;
10675      *)
10676	# Assume MSVC wrapper
10677	hardcode_libdir_flag_spec=' '
10678	allow_undefined_flag=unsupported
10679	# Tell ltmain to make .lib files, not .a files.
10680	libext=lib
10681	# Tell ltmain to make .dll files, not .so files.
10682	shrext_cmds=.dll
10683	# FIXME: Setting linknames here is a bad hack.
10684	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10685	# The linker will automatically build a .lib file if we build a DLL.
10686	old_archive_from_new_cmds='true'
10687	# FIXME: Should let the user specify the lib program.
10688	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10689	enable_shared_with_static_runtimes=yes
10690	;;
10691      esac
10692      ;;
10693
10694    darwin* | rhapsody*)
10695
10696
10697  archive_cmds_need_lc=no
10698  hardcode_direct=no
10699  hardcode_automatic=yes
10700  hardcode_shlibpath_var=unsupported
10701  if test yes = "$lt_cv_ld_force_load"; then
10702    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\"`'
10703
10704  else
10705    whole_archive_flag_spec=''
10706  fi
10707  link_all_deplibs=yes
10708  allow_undefined_flag=$_lt_dar_allow_undefined
10709  case $cc_basename in
10710     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10711     *) _lt_dar_can_shared=$GCC ;;
10712  esac
10713  if test yes = "$_lt_dar_can_shared"; then
10714    output_verbose_link_cmd=func_echo_all
10715    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10716    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10717    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"
10718    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"
10719
10720  else
10721  ld_shlibs=no
10722  fi
10723
10724      ;;
10725
10726    dgux*)
10727      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728      hardcode_libdir_flag_spec='-L$libdir'
10729      hardcode_shlibpath_var=no
10730      ;;
10731
10732    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10733    # support.  Future versions do this automatically, but an explicit c++rt0.o
10734    # does not break anything, and helps significantly (at the cost of a little
10735    # extra space).
10736    freebsd2.2*)
10737      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10738      hardcode_libdir_flag_spec='-R$libdir'
10739      hardcode_direct=yes
10740      hardcode_shlibpath_var=no
10741      ;;
10742
10743    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10744    freebsd2.*)
10745      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10746      hardcode_direct=yes
10747      hardcode_minus_L=yes
10748      hardcode_shlibpath_var=no
10749      ;;
10750
10751    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10752    freebsd* | dragonfly*)
10753      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10754      hardcode_libdir_flag_spec='-R$libdir'
10755      hardcode_direct=yes
10756      hardcode_shlibpath_var=no
10757      ;;
10758
10759    hpux9*)
10760      if test yes = "$GCC"; then
10761	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'
10762      else
10763	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'
10764      fi
10765      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10766      hardcode_libdir_separator=:
10767      hardcode_direct=yes
10768
10769      # hardcode_minus_L: Not really in the search PATH,
10770      # but as the default location of the library.
10771      hardcode_minus_L=yes
10772      export_dynamic_flag_spec='$wl-E'
10773      ;;
10774
10775    hpux10*)
10776      if test yes,no = "$GCC,$with_gnu_ld"; then
10777	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10778      else
10779	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10780      fi
10781      if test no = "$with_gnu_ld"; then
10782	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10783	hardcode_libdir_separator=:
10784	hardcode_direct=yes
10785	hardcode_direct_absolute=yes
10786	export_dynamic_flag_spec='$wl-E'
10787	# hardcode_minus_L: Not really in the search PATH,
10788	# but as the default location of the library.
10789	hardcode_minus_L=yes
10790      fi
10791      ;;
10792
10793    hpux11*)
10794      if test yes,no = "$GCC,$with_gnu_ld"; then
10795	case $host_cpu in
10796	hppa*64*)
10797	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10798	  ;;
10799	ia64*)
10800	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10801	  ;;
10802	*)
10803	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10804	  ;;
10805	esac
10806      else
10807	case $host_cpu in
10808	hppa*64*)
10809	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10810	  ;;
10811	ia64*)
10812	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10813	  ;;
10814	*)
10815
10816	  # Older versions of the 11.00 compiler do not understand -b yet
10817	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10818	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10819$as_echo_n "checking if $CC understands -b... " >&6; }
10820if ${lt_cv_prog_compiler__b+:} false; then :
10821  $as_echo_n "(cached) " >&6
10822else
10823  lt_cv_prog_compiler__b=no
10824   save_LDFLAGS=$LDFLAGS
10825   LDFLAGS="$LDFLAGS -b"
10826   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10827   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10828     # The linker can only warn and ignore the option if not recognized
10829     # So say no if there are warnings
10830     if test -s conftest.err; then
10831       # Append any errors to the config.log.
10832       cat conftest.err 1>&5
10833       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10834       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10835       if diff conftest.exp conftest.er2 >/dev/null; then
10836         lt_cv_prog_compiler__b=yes
10837       fi
10838     else
10839       lt_cv_prog_compiler__b=yes
10840     fi
10841   fi
10842   $RM -r conftest*
10843   LDFLAGS=$save_LDFLAGS
10844
10845fi
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10847$as_echo "$lt_cv_prog_compiler__b" >&6; }
10848
10849if test yes = "$lt_cv_prog_compiler__b"; then
10850    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10851else
10852    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10853fi
10854
10855	  ;;
10856	esac
10857      fi
10858      if test no = "$with_gnu_ld"; then
10859	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10860	hardcode_libdir_separator=:
10861
10862	case $host_cpu in
10863	hppa*64*|ia64*)
10864	  hardcode_direct=no
10865	  hardcode_shlibpath_var=no
10866	  ;;
10867	*)
10868	  hardcode_direct=yes
10869	  hardcode_direct_absolute=yes
10870	  export_dynamic_flag_spec='$wl-E'
10871
10872	  # hardcode_minus_L: Not really in the search PATH,
10873	  # but as the default location of the library.
10874	  hardcode_minus_L=yes
10875	  ;;
10876	esac
10877      fi
10878      ;;
10879
10880    irix5* | irix6* | nonstopux*)
10881      if test yes = "$GCC"; then
10882	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'
10883	# Try to use the -exported_symbol ld option, if it does not
10884	# work, assume that -exports_file does not work either and
10885	# implicitly export all symbols.
10886	# This should be the same for all languages, so no per-tag cache variable.
10887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10888$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10889if ${lt_cv_irix_exported_symbol+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  save_LDFLAGS=$LDFLAGS
10893	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10894	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896int foo (void) { return 0; }
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"; then :
10899  lt_cv_irix_exported_symbol=yes
10900else
10901  lt_cv_irix_exported_symbol=no
10902fi
10903rm -f core conftest.err conftest.$ac_objext \
10904    conftest$ac_exeext conftest.$ac_ext
10905           LDFLAGS=$save_LDFLAGS
10906fi
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10908$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10909	if test yes = "$lt_cv_irix_exported_symbol"; then
10910          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'
10911	fi
10912      else
10913	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'
10914	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'
10915      fi
10916      archive_cmds_need_lc='no'
10917      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10918      hardcode_libdir_separator=:
10919      inherit_rpath=yes
10920      link_all_deplibs=yes
10921      ;;
10922
10923    linux*)
10924      case $cc_basename in
10925      tcc*)
10926	# Fabrice Bellard et al's Tiny C Compiler
10927	ld_shlibs=yes
10928	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10929	;;
10930      esac
10931      ;;
10932
10933    netbsd*)
10934      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10935	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10936      else
10937	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10938      fi
10939      hardcode_libdir_flag_spec='-R$libdir'
10940      hardcode_direct=yes
10941      hardcode_shlibpath_var=no
10942      ;;
10943
10944    newsos6)
10945      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946      hardcode_direct=yes
10947      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10948      hardcode_libdir_separator=:
10949      hardcode_shlibpath_var=no
10950      ;;
10951
10952    *nto* | *qnx*)
10953      ;;
10954
10955    openbsd* | bitrig*)
10956      if test -f /usr/libexec/ld.so; then
10957	hardcode_direct=yes
10958	hardcode_shlibpath_var=no
10959	hardcode_direct_absolute=yes
10960	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10961	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10962	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10963	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10964	  export_dynamic_flag_spec='$wl-E'
10965	else
10966	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10967	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10968	fi
10969      else
10970	ld_shlibs=no
10971      fi
10972      ;;
10973
10974    os2*)
10975      hardcode_libdir_flag_spec='-L$libdir'
10976      hardcode_minus_L=yes
10977      allow_undefined_flag=unsupported
10978      shrext_cmds=.dll
10979      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10980	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10981	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10982	$ECHO EXPORTS >> $output_objdir/$libname.def~
10983	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10984	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10985	emximp -o $lib $output_objdir/$libname.def'
10986      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10987	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10988	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10989	$ECHO EXPORTS >> $output_objdir/$libname.def~
10990	prefix_cmds="$SED"~
10991	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10992	  prefix_cmds="$prefix_cmds -e 1d";
10993	fi~
10994	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10995	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10996	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10997	emximp -o $lib $output_objdir/$libname.def'
10998      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10999      enable_shared_with_static_runtimes=yes
11000      ;;
11001
11002    osf3*)
11003      if test yes = "$GCC"; then
11004	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11005	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'
11006      else
11007	allow_undefined_flag=' -expect_unresolved \*'
11008	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'
11009      fi
11010      archive_cmds_need_lc='no'
11011      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11012      hardcode_libdir_separator=:
11013      ;;
11014
11015    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11016      if test yes = "$GCC"; then
11017	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11018	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'
11019	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11020      else
11021	allow_undefined_flag=' -expect_unresolved \*'
11022	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'
11023	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~
11024          $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'
11025
11026	# Both c and cxx compiler support -rpath directly
11027	hardcode_libdir_flag_spec='-rpath $libdir'
11028      fi
11029      archive_cmds_need_lc='no'
11030      hardcode_libdir_separator=:
11031      ;;
11032
11033    solaris*)
11034      no_undefined_flag=' -z defs'
11035      if test yes = "$GCC"; then
11036	wlarc='$wl'
11037	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11038	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039          $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'
11040      else
11041	case `$CC -V 2>&1` in
11042	*"Compilers 5.0"*)
11043	  wlarc=''
11044	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11046            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11047	  ;;
11048	*)
11049	  wlarc='$wl'
11050	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11051	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11052            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11053	  ;;
11054	esac
11055      fi
11056      hardcode_libdir_flag_spec='-R$libdir'
11057      hardcode_shlibpath_var=no
11058      case $host_os in
11059      solaris2.[0-5] | solaris2.[0-5].*) ;;
11060      *)
11061	# The compiler driver will combine and reorder linker options,
11062	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11063	# but is careful enough not to reorder.
11064	# Supported since Solaris 2.6 (maybe 2.5.1?)
11065	if test yes = "$GCC"; then
11066	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11067	else
11068	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11069	fi
11070	;;
11071      esac
11072      link_all_deplibs=yes
11073      ;;
11074
11075    sunos4*)
11076      if test sequent = "$host_vendor"; then
11077	# Use $CC to link under sequent, because it throws in some extra .o
11078	# files that make .init and .fini sections work.
11079	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11080      else
11081	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11082      fi
11083      hardcode_libdir_flag_spec='-L$libdir'
11084      hardcode_direct=yes
11085      hardcode_minus_L=yes
11086      hardcode_shlibpath_var=no
11087      ;;
11088
11089    sysv4)
11090      case $host_vendor in
11091	sni)
11092	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093	  hardcode_direct=yes # is this really true???
11094	;;
11095	siemens)
11096	  ## LD is ld it makes a PLAMLIB
11097	  ## CC just makes a GrossModule.
11098	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11099	  reload_cmds='$CC -r -o $output$reload_objs'
11100	  hardcode_direct=no
11101        ;;
11102	motorola)
11103	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11105	;;
11106      esac
11107      runpath_var='LD_RUN_PATH'
11108      hardcode_shlibpath_var=no
11109      ;;
11110
11111    sysv4.3*)
11112      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113      hardcode_shlibpath_var=no
11114      export_dynamic_flag_spec='-Bexport'
11115      ;;
11116
11117    sysv4*MP*)
11118      if test -d /usr/nec; then
11119	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120	hardcode_shlibpath_var=no
11121	runpath_var=LD_RUN_PATH
11122	hardcode_runpath_var=yes
11123	ld_shlibs=yes
11124      fi
11125      ;;
11126
11127    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11128      no_undefined_flag='$wl-z,text'
11129      archive_cmds_need_lc=no
11130      hardcode_shlibpath_var=no
11131      runpath_var='LD_RUN_PATH'
11132
11133      if test yes = "$GCC"; then
11134	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136      else
11137	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11138	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11139      fi
11140      ;;
11141
11142    sysv5* | sco3.2v5* | sco5v6*)
11143      # Note: We CANNOT use -z defs as we might desire, because we do not
11144      # link with -lc, and that would cause any symbols used from libc to
11145      # always be unresolved, which means just about no library would
11146      # ever link correctly.  If we're not using GNU ld we use -z text
11147      # though, which does catch some bad symbols but isn't as heavy-handed
11148      # as -z defs.
11149      no_undefined_flag='$wl-z,text'
11150      allow_undefined_flag='$wl-z,nodefs'
11151      archive_cmds_need_lc=no
11152      hardcode_shlibpath_var=no
11153      hardcode_libdir_flag_spec='$wl-R,$libdir'
11154      hardcode_libdir_separator=':'
11155      link_all_deplibs=yes
11156      export_dynamic_flag_spec='$wl-Bexport'
11157      runpath_var='LD_RUN_PATH'
11158
11159      if test yes = "$GCC"; then
11160	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11161	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162      else
11163	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11164	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11165      fi
11166      ;;
11167
11168    uts4*)
11169      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11170      hardcode_libdir_flag_spec='-L$libdir'
11171      hardcode_shlibpath_var=no
11172      ;;
11173
11174    *)
11175      ld_shlibs=no
11176      ;;
11177    esac
11178
11179    if test sni = "$host_vendor"; then
11180      case $host in
11181      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11182	export_dynamic_flag_spec='$wl-Blargedynsym'
11183	;;
11184      esac
11185    fi
11186  fi
11187
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11189$as_echo "$ld_shlibs" >&6; }
11190test no = "$ld_shlibs" && can_build_shared=no
11191
11192with_gnu_ld=$with_gnu_ld
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208#
11209# Do we need to explicitly link libc?
11210#
11211case "x$archive_cmds_need_lc" in
11212x|xyes)
11213  # Assume -lc should be added
11214  archive_cmds_need_lc=yes
11215
11216  if test yes,yes = "$GCC,$enable_shared"; then
11217    case $archive_cmds in
11218    *'~'*)
11219      # FIXME: we may have to deal with multi-command sequences.
11220      ;;
11221    '$CC '*)
11222      # Test whether the compiler implicitly links with -lc since on some
11223      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11224      # to ld, don't add -lc before -lgcc.
11225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11226$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11227if ${lt_cv_archive_cmds_need_lc+:} false; then :
11228  $as_echo_n "(cached) " >&6
11229else
11230  $RM conftest*
11231	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11232
11233	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11234  (eval $ac_compile) 2>&5
11235  ac_status=$?
11236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11237  test $ac_status = 0; } 2>conftest.err; then
11238	  soname=conftest
11239	  lib=conftest
11240	  libobjs=conftest.$ac_objext
11241	  deplibs=
11242	  wl=$lt_prog_compiler_wl
11243	  pic_flag=$lt_prog_compiler_pic
11244	  compiler_flags=-v
11245	  linker_flags=-v
11246	  verstring=
11247	  output_objdir=.
11248	  libname=conftest
11249	  lt_save_allow_undefined_flag=$allow_undefined_flag
11250	  allow_undefined_flag=
11251	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11252  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11253  ac_status=$?
11254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11255  test $ac_status = 0; }
11256	  then
11257	    lt_cv_archive_cmds_need_lc=no
11258	  else
11259	    lt_cv_archive_cmds_need_lc=yes
11260	  fi
11261	  allow_undefined_flag=$lt_save_allow_undefined_flag
11262	else
11263	  cat conftest.err 1>&5
11264	fi
11265	$RM conftest*
11266
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11269$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11270      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11271      ;;
11272    esac
11273  fi
11274  ;;
11275esac
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11429$as_echo_n "checking dynamic linker characteristics... " >&6; }
11430
11431if test yes = "$GCC"; then
11432  case $host_os in
11433    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11434    *) lt_awk_arg='/^libraries:/' ;;
11435  esac
11436  case $host_os in
11437    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11438    *) lt_sed_strip_eq='s|=/|/|g' ;;
11439  esac
11440  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11441  case $lt_search_path_spec in
11442  *\;*)
11443    # if the path contains ";" then we assume it to be the separator
11444    # otherwise default to the standard path separator (i.e. ":") - it is
11445    # assumed that no part of a normal pathname contains ";" but that should
11446    # okay in the real world where ";" in dirpaths is itself problematic.
11447    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11448    ;;
11449  *)
11450    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11451    ;;
11452  esac
11453  # Ok, now we have the path, separated by spaces, we can step through it
11454  # and add multilib dir if necessary...
11455  lt_tmp_lt_search_path_spec=
11456  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11457  # ...but if some path component already ends with the multilib dir we assume
11458  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11459  case "$lt_multi_os_dir; $lt_search_path_spec " in
11460  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11461    lt_multi_os_dir=
11462    ;;
11463  esac
11464  for lt_sys_path in $lt_search_path_spec; do
11465    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11466      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11467    elif test -n "$lt_multi_os_dir"; then
11468      test -d "$lt_sys_path" && \
11469	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11470    fi
11471  done
11472  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11473BEGIN {RS = " "; FS = "/|\n";} {
11474  lt_foo = "";
11475  lt_count = 0;
11476  for (lt_i = NF; lt_i > 0; lt_i--) {
11477    if ($lt_i != "" && $lt_i != ".") {
11478      if ($lt_i == "..") {
11479        lt_count++;
11480      } else {
11481        if (lt_count == 0) {
11482          lt_foo = "/" $lt_i lt_foo;
11483        } else {
11484          lt_count--;
11485        }
11486      }
11487    }
11488  }
11489  if (lt_foo != "") { lt_freq[lt_foo]++; }
11490  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11491}'`
11492  # AWK program above erroneously prepends '/' to C:/dos/paths
11493  # for these hosts.
11494  case $host_os in
11495    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11496      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11497  esac
11498  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11499else
11500  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11501fi
11502library_names_spec=
11503libname_spec='lib$name'
11504soname_spec=
11505shrext_cmds=.so
11506postinstall_cmds=
11507postuninstall_cmds=
11508finish_cmds=
11509finish_eval=
11510shlibpath_var=
11511shlibpath_overrides_runpath=unknown
11512version_type=none
11513dynamic_linker="$host_os ld.so"
11514sys_lib_dlsearch_path_spec="/lib /usr/lib"
11515need_lib_prefix=unknown
11516hardcode_into_libs=no
11517
11518# when you set need_version to no, make sure it does not cause -set_version
11519# flags to be left without arguments
11520need_version=unknown
11521
11522
11523
11524case $host_os in
11525aix3*)
11526  version_type=linux # correct to gnu/linux during the next big refactor
11527  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11528  shlibpath_var=LIBPATH
11529
11530  # AIX 3 has no versioning support, so we append a major version to the name.
11531  soname_spec='$libname$release$shared_ext$major'
11532  ;;
11533
11534aix[4-9]*)
11535  version_type=linux # correct to gnu/linux during the next big refactor
11536  need_lib_prefix=no
11537  need_version=no
11538  hardcode_into_libs=yes
11539  if test ia64 = "$host_cpu"; then
11540    # AIX 5 supports IA64
11541    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11542    shlibpath_var=LD_LIBRARY_PATH
11543  else
11544    # With GCC up to 2.95.x, collect2 would create an import file
11545    # for dependence libraries.  The import file would start with
11546    # the line '#! .'.  This would cause the generated library to
11547    # depend on '.', always an invalid library.  This was fixed in
11548    # development snapshots of GCC prior to 3.0.
11549    case $host_os in
11550      aix4 | aix4.[01] | aix4.[01].*)
11551      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11552	   echo ' yes '
11553	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11554	:
11555      else
11556	can_build_shared=no
11557      fi
11558      ;;
11559    esac
11560    # Using Import Files as archive members, it is possible to support
11561    # filename-based versioning of shared library archives on AIX. While
11562    # this would work for both with and without runtime linking, it will
11563    # prevent static linking of such archives. So we do filename-based
11564    # shared library versioning with .so extension only, which is used
11565    # when both runtime linking and shared linking is enabled.
11566    # Unfortunately, runtime linking may impact performance, so we do
11567    # not want this to be the default eventually. Also, we use the
11568    # versioned .so libs for executables only if there is the -brtl
11569    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11570    # To allow for filename-based versioning support, we need to create
11571    # libNAME.so.V as an archive file, containing:
11572    # *) an Import File, referring to the versioned filename of the
11573    #    archive as well as the shared archive member, telling the
11574    #    bitwidth (32 or 64) of that shared object, and providing the
11575    #    list of exported symbols of that shared object, eventually
11576    #    decorated with the 'weak' keyword
11577    # *) the shared object with the F_LOADONLY flag set, to really avoid
11578    #    it being seen by the linker.
11579    # At run time we better use the real file rather than another symlink,
11580    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11581
11582    case $with_aix_soname,$aix_use_runtimelinking in
11583    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11584    # soname into executable. Probably we can add versioning support to
11585    # collect2, so additional links can be useful in future.
11586    aix,yes) # traditional libtool
11587      dynamic_linker='AIX unversionable lib.so'
11588      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11589      # instead of lib<name>.a to let people know that these are not
11590      # typical AIX shared libraries.
11591      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592      ;;
11593    aix,no) # traditional AIX only
11594      dynamic_linker='AIX lib.a(lib.so.V)'
11595      # We preserve .a as extension for shared libraries through AIX4.2
11596      # and later when we are not doing run time linking.
11597      library_names_spec='$libname$release.a $libname.a'
11598      soname_spec='$libname$release$shared_ext$major'
11599      ;;
11600    svr4,*) # full svr4 only
11601      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11602      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11603      # We do not specify a path in Import Files, so LIBPATH fires.
11604      shlibpath_overrides_runpath=yes
11605      ;;
11606    *,yes) # both, prefer svr4
11607      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11608      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11609      # unpreferred sharedlib libNAME.a needs extra handling
11610      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"'
11611      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"'
11612      # We do not specify a path in Import Files, so LIBPATH fires.
11613      shlibpath_overrides_runpath=yes
11614      ;;
11615    *,no) # both, prefer aix
11616      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11617      library_names_spec='$libname$release.a $libname.a'
11618      soname_spec='$libname$release$shared_ext$major'
11619      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11620      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)'
11621      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"'
11622      ;;
11623    esac
11624    shlibpath_var=LIBPATH
11625  fi
11626  ;;
11627
11628amigaos*)
11629  case $host_cpu in
11630  powerpc)
11631    # Since July 2007 AmigaOS4 officially supports .so libraries.
11632    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11633    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11634    ;;
11635  m68k)
11636    library_names_spec='$libname.ixlibrary $libname.a'
11637    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11638    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'
11639    ;;
11640  esac
11641  ;;
11642
11643beos*)
11644  library_names_spec='$libname$shared_ext'
11645  dynamic_linker="$host_os ld.so"
11646  shlibpath_var=LIBRARY_PATH
11647  ;;
11648
11649bsdi[45]*)
11650  version_type=linux # correct to gnu/linux during the next big refactor
11651  need_version=no
11652  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11653  soname_spec='$libname$release$shared_ext$major'
11654  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11655  shlibpath_var=LD_LIBRARY_PATH
11656  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11657  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11658  # the default ld.so.conf also contains /usr/contrib/lib and
11659  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11660  # libtool to hard-code these into programs
11661  ;;
11662
11663cygwin* | mingw* | pw32* | cegcc*)
11664  version_type=windows
11665  shrext_cmds=.dll
11666  need_version=no
11667  need_lib_prefix=no
11668
11669  case $GCC,$cc_basename in
11670  yes,*)
11671    # gcc
11672    library_names_spec='$libname.dll.a'
11673    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11674    postinstall_cmds='base_file=`basename \$file`~
11675      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11676      dldir=$destdir/`dirname \$dlpath`~
11677      test -d \$dldir || mkdir -p \$dldir~
11678      $install_prog $dir/$dlname \$dldir/$dlname~
11679      chmod a+x \$dldir/$dlname~
11680      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11681        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11682      fi'
11683    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11684      dlpath=$dir/\$dldll~
11685       $RM \$dlpath'
11686    shlibpath_overrides_runpath=yes
11687
11688    case $host_os in
11689    cygwin*)
11690      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11691      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11692
11693      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11694      ;;
11695    mingw* | cegcc*)
11696      # MinGW DLLs use traditional 'lib' prefix
11697      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11698      ;;
11699    pw32*)
11700      # pw32 DLLs use 'pw' prefix rather than 'lib'
11701      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11702      ;;
11703    esac
11704    dynamic_linker='Win32 ld.exe'
11705    ;;
11706
11707  *,cl*)
11708    # Native MSVC
11709    libname_spec='$name'
11710    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11711    library_names_spec='$libname.dll.lib'
11712
11713    case $build_os in
11714    mingw*)
11715      sys_lib_search_path_spec=
11716      lt_save_ifs=$IFS
11717      IFS=';'
11718      for lt_path in $LIB
11719      do
11720        IFS=$lt_save_ifs
11721        # Let DOS variable expansion print the short 8.3 style file name.
11722        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11723        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11724      done
11725      IFS=$lt_save_ifs
11726      # Convert to MSYS style.
11727      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11728      ;;
11729    cygwin*)
11730      # Convert to unix form, then to dos form, then back to unix form
11731      # but this time dos style (no spaces!) so that the unix form looks
11732      # like /cygdrive/c/PROGRA~1:/cygdr...
11733      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11734      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11735      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11736      ;;
11737    *)
11738      sys_lib_search_path_spec=$LIB
11739      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11740        # It is most probably a Windows format PATH.
11741        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11742      else
11743        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11744      fi
11745      # FIXME: find the short name or the path components, as spaces are
11746      # common. (e.g. "Program Files" -> "PROGRA~1")
11747      ;;
11748    esac
11749
11750    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11751    postinstall_cmds='base_file=`basename \$file`~
11752      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11753      dldir=$destdir/`dirname \$dlpath`~
11754      test -d \$dldir || mkdir -p \$dldir~
11755      $install_prog $dir/$dlname \$dldir/$dlname'
11756    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11757      dlpath=$dir/\$dldll~
11758       $RM \$dlpath'
11759    shlibpath_overrides_runpath=yes
11760    dynamic_linker='Win32 link.exe'
11761    ;;
11762
11763  *)
11764    # Assume MSVC wrapper
11765    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11766    dynamic_linker='Win32 ld.exe'
11767    ;;
11768  esac
11769  # FIXME: first we should search . and the directory the executable is in
11770  shlibpath_var=PATH
11771  ;;
11772
11773darwin* | rhapsody*)
11774  dynamic_linker="$host_os dyld"
11775  version_type=darwin
11776  need_lib_prefix=no
11777  need_version=no
11778  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11779  soname_spec='$libname$release$major$shared_ext'
11780  shlibpath_overrides_runpath=yes
11781  shlibpath_var=DYLD_LIBRARY_PATH
11782  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11783
11784  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11785  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11786  ;;
11787
11788dgux*)
11789  version_type=linux # correct to gnu/linux during the next big refactor
11790  need_lib_prefix=no
11791  need_version=no
11792  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793  soname_spec='$libname$release$shared_ext$major'
11794  shlibpath_var=LD_LIBRARY_PATH
11795  ;;
11796
11797freebsd* | dragonfly*)
11798  # DragonFly does not have aout.  When/if they implement a new
11799  # versioning mechanism, adjust this.
11800  if test -x /usr/bin/objformat; then
11801    objformat=`/usr/bin/objformat`
11802  else
11803    case $host_os in
11804    freebsd[23].*) objformat=aout ;;
11805    *) objformat=elf ;;
11806    esac
11807  fi
11808  version_type=freebsd-$objformat
11809  case $version_type in
11810    freebsd-elf*)
11811      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812      soname_spec='$libname$release$shared_ext$major'
11813      need_version=no
11814      need_lib_prefix=no
11815      ;;
11816    freebsd-*)
11817      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11818      need_version=yes
11819      ;;
11820  esac
11821  shlibpath_var=LD_LIBRARY_PATH
11822  case $host_os in
11823  freebsd2.*)
11824    shlibpath_overrides_runpath=yes
11825    ;;
11826  freebsd3.[01]* | freebsdelf3.[01]*)
11827    shlibpath_overrides_runpath=yes
11828    hardcode_into_libs=yes
11829    ;;
11830  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11831  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11832    shlibpath_overrides_runpath=no
11833    hardcode_into_libs=yes
11834    ;;
11835  *) # from 4.6 on, and DragonFly
11836    shlibpath_overrides_runpath=yes
11837    hardcode_into_libs=yes
11838    ;;
11839  esac
11840  ;;
11841
11842haiku*)
11843  version_type=linux # correct to gnu/linux during the next big refactor
11844  need_lib_prefix=no
11845  need_version=no
11846  dynamic_linker="$host_os runtime_loader"
11847  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848  soname_spec='$libname$release$shared_ext$major'
11849  shlibpath_var=LIBRARY_PATH
11850  shlibpath_overrides_runpath=no
11851  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11852  hardcode_into_libs=yes
11853  ;;
11854
11855hpux9* | hpux10* | hpux11*)
11856  # Give a soname corresponding to the major version so that dld.sl refuses to
11857  # link against other versions.
11858  version_type=sunos
11859  need_lib_prefix=no
11860  need_version=no
11861  case $host_cpu in
11862  ia64*)
11863    shrext_cmds='.so'
11864    hardcode_into_libs=yes
11865    dynamic_linker="$host_os dld.so"
11866    shlibpath_var=LD_LIBRARY_PATH
11867    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11868    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11869    soname_spec='$libname$release$shared_ext$major'
11870    if test 32 = "$HPUX_IA64_MODE"; then
11871      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11872      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11873    else
11874      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11875      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11876    fi
11877    ;;
11878  hppa*64*)
11879    shrext_cmds='.sl'
11880    hardcode_into_libs=yes
11881    dynamic_linker="$host_os dld.sl"
11882    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11883    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11884    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11885    soname_spec='$libname$release$shared_ext$major'
11886    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11887    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11888    ;;
11889  *)
11890    shrext_cmds='.sl'
11891    dynamic_linker="$host_os dld.sl"
11892    shlibpath_var=SHLIB_PATH
11893    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11894    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895    soname_spec='$libname$release$shared_ext$major'
11896    ;;
11897  esac
11898  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11899  postinstall_cmds='chmod 555 $lib'
11900  # or fails outright, so override atomically:
11901  install_override_mode=555
11902  ;;
11903
11904interix[3-9]*)
11905  version_type=linux # correct to gnu/linux during the next big refactor
11906  need_lib_prefix=no
11907  need_version=no
11908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11909  soname_spec='$libname$release$shared_ext$major'
11910  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11911  shlibpath_var=LD_LIBRARY_PATH
11912  shlibpath_overrides_runpath=no
11913  hardcode_into_libs=yes
11914  ;;
11915
11916irix5* | irix6* | nonstopux*)
11917  case $host_os in
11918    nonstopux*) version_type=nonstopux ;;
11919    *)
11920	if test yes = "$lt_cv_prog_gnu_ld"; then
11921		version_type=linux # correct to gnu/linux during the next big refactor
11922	else
11923		version_type=irix
11924	fi ;;
11925  esac
11926  need_lib_prefix=no
11927  need_version=no
11928  soname_spec='$libname$release$shared_ext$major'
11929  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11930  case $host_os in
11931  irix5* | nonstopux*)
11932    libsuff= shlibsuff=
11933    ;;
11934  *)
11935    case $LD in # libtool.m4 will add one of these switches to LD
11936    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11937      libsuff= shlibsuff= libmagic=32-bit;;
11938    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11939      libsuff=32 shlibsuff=N32 libmagic=N32;;
11940    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11941      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11942    *) libsuff= shlibsuff= libmagic=never-match;;
11943    esac
11944    ;;
11945  esac
11946  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11947  shlibpath_overrides_runpath=no
11948  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11949  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11950  hardcode_into_libs=yes
11951  ;;
11952
11953# No shared lib support for Linux oldld, aout, or coff.
11954linux*oldld* | linux*aout* | linux*coff*)
11955  dynamic_linker=no
11956  ;;
11957
11958linux*android*)
11959  version_type=none # Android doesn't support versioned libraries.
11960  need_lib_prefix=no
11961  need_version=no
11962  library_names_spec='$libname$release$shared_ext'
11963  soname_spec='$libname$release$shared_ext'
11964  finish_cmds=
11965  shlibpath_var=LD_LIBRARY_PATH
11966  shlibpath_overrides_runpath=yes
11967
11968  # This implies no fast_install, which is unacceptable.
11969  # Some rework will be needed to allow for fast_install
11970  # before this can be enabled.
11971  hardcode_into_libs=yes
11972
11973  dynamic_linker='Android linker'
11974  # Don't embed -rpath directories since the linker doesn't support them.
11975  hardcode_libdir_flag_spec='-L$libdir'
11976  ;;
11977
11978# This must be glibc/ELF.
11979linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11980  version_type=linux # correct to gnu/linux during the next big refactor
11981  need_lib_prefix=no
11982  need_version=no
11983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984  soname_spec='$libname$release$shared_ext$major'
11985  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11986  shlibpath_var=LD_LIBRARY_PATH
11987  shlibpath_overrides_runpath=no
11988
11989  # Some binutils ld are patched to set DT_RUNPATH
11990  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11991  $as_echo_n "(cached) " >&6
11992else
11993  lt_cv_shlibpath_overrides_runpath=no
11994    save_LDFLAGS=$LDFLAGS
11995    save_libdir=$libdir
11996    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11997	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11998    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999/* end confdefs.h.  */
12000
12001int
12002main ()
12003{
12004
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_link "$LINENO"; then :
12010  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12011  lt_cv_shlibpath_overrides_runpath=yes
12012fi
12013fi
12014rm -f core conftest.err conftest.$ac_objext \
12015    conftest$ac_exeext conftest.$ac_ext
12016    LDFLAGS=$save_LDFLAGS
12017    libdir=$save_libdir
12018
12019fi
12020
12021  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12022
12023  # This implies no fast_install, which is unacceptable.
12024  # Some rework will be needed to allow for fast_install
12025  # before this can be enabled.
12026  hardcode_into_libs=yes
12027
12028  # Add ABI-specific directories to the system library path.
12029  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12030
12031  # Ideally, we could use ldconfig to report *all* directores which are
12032  # searched for libraries, however this is still not possible.  Aside from not
12033  # being certain /sbin/ldconfig is available, command
12034  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12035  # even though it is searched at run-time.  Try to do the best guess by
12036  # appending ld.so.conf contents (and includes) to the search path.
12037  if test -f /etc/ld.so.conf; then
12038    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' ' '`
12039    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12040  fi
12041
12042  # We used to test for /lib/ld.so.1 and disable shared libraries on
12043  # powerpc, because MkLinux only supported shared libraries with the
12044  # GNU dynamic linker.  Since this was broken with cross compilers,
12045  # most powerpc-linux boxes support dynamic linking these days and
12046  # people can always --disable-shared, the test was removed, and we
12047  # assume the GNU/Linux dynamic linker is in use.
12048  dynamic_linker='GNU/Linux ld.so'
12049  ;;
12050
12051netbsd*)
12052  version_type=sunos
12053  need_lib_prefix=no
12054  need_version=no
12055  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12056    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12057    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12058    dynamic_linker='NetBSD (a.out) ld.so'
12059  else
12060    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061    soname_spec='$libname$release$shared_ext$major'
12062    dynamic_linker='NetBSD ld.elf_so'
12063  fi
12064  shlibpath_var=LD_LIBRARY_PATH
12065  shlibpath_overrides_runpath=yes
12066  hardcode_into_libs=yes
12067  ;;
12068
12069newsos6)
12070  version_type=linux # correct to gnu/linux during the next big refactor
12071  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  shlibpath_overrides_runpath=yes
12074  ;;
12075
12076*nto* | *qnx*)
12077  version_type=qnx
12078  need_lib_prefix=no
12079  need_version=no
12080  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081  soname_spec='$libname$release$shared_ext$major'
12082  shlibpath_var=LD_LIBRARY_PATH
12083  shlibpath_overrides_runpath=no
12084  hardcode_into_libs=yes
12085  dynamic_linker='ldqnx.so'
12086  ;;
12087
12088openbsd* | bitrig*)
12089  version_type=sunos
12090  sys_lib_dlsearch_path_spec=/usr/lib
12091  need_lib_prefix=no
12092  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12093    need_version=no
12094  else
12095    need_version=yes
12096  fi
12097  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12098  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12099  shlibpath_var=LD_LIBRARY_PATH
12100  shlibpath_overrides_runpath=yes
12101  ;;
12102
12103os2*)
12104  libname_spec='$name'
12105  version_type=windows
12106  shrext_cmds=.dll
12107  need_version=no
12108  need_lib_prefix=no
12109  # OS/2 can only load a DLL with a base name of 8 characters or less.
12110  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12111    v=$($ECHO $release$versuffix | tr -d .-);
12112    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12113    $ECHO $n$v`$shared_ext'
12114  library_names_spec='${libname}_dll.$libext'
12115  dynamic_linker='OS/2 ld.exe'
12116  shlibpath_var=BEGINLIBPATH
12117  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12118  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119  postinstall_cmds='base_file=`basename \$file`~
12120    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12121    dldir=$destdir/`dirname \$dlpath`~
12122    test -d \$dldir || mkdir -p \$dldir~
12123    $install_prog $dir/$dlname \$dldir/$dlname~
12124    chmod a+x \$dldir/$dlname~
12125    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12126      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12127    fi'
12128  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12129    dlpath=$dir/\$dldll~
12130    $RM \$dlpath'
12131  ;;
12132
12133osf3* | osf4* | osf5*)
12134  version_type=osf
12135  need_lib_prefix=no
12136  need_version=no
12137  soname_spec='$libname$release$shared_ext$major'
12138  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12139  shlibpath_var=LD_LIBRARY_PATH
12140  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12141  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12142  ;;
12143
12144rdos*)
12145  dynamic_linker=no
12146  ;;
12147
12148solaris*)
12149  version_type=linux # correct to gnu/linux during the next big refactor
12150  need_lib_prefix=no
12151  need_version=no
12152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153  soname_spec='$libname$release$shared_ext$major'
12154  shlibpath_var=LD_LIBRARY_PATH
12155  shlibpath_overrides_runpath=yes
12156  hardcode_into_libs=yes
12157  # ldd complains unless libraries are executable
12158  postinstall_cmds='chmod +x $lib'
12159  ;;
12160
12161sunos4*)
12162  version_type=sunos
12163  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12164  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12165  shlibpath_var=LD_LIBRARY_PATH
12166  shlibpath_overrides_runpath=yes
12167  if test yes = "$with_gnu_ld"; then
12168    need_lib_prefix=no
12169  fi
12170  need_version=yes
12171  ;;
12172
12173sysv4 | sysv4.3*)
12174  version_type=linux # correct to gnu/linux during the next big refactor
12175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12176  soname_spec='$libname$release$shared_ext$major'
12177  shlibpath_var=LD_LIBRARY_PATH
12178  case $host_vendor in
12179    sni)
12180      shlibpath_overrides_runpath=no
12181      need_lib_prefix=no
12182      runpath_var=LD_RUN_PATH
12183      ;;
12184    siemens)
12185      need_lib_prefix=no
12186      ;;
12187    motorola)
12188      need_lib_prefix=no
12189      need_version=no
12190      shlibpath_overrides_runpath=no
12191      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12192      ;;
12193  esac
12194  ;;
12195
12196sysv4*MP*)
12197  if test -d /usr/nec; then
12198    version_type=linux # correct to gnu/linux during the next big refactor
12199    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12200    soname_spec='$libname$shared_ext.$major'
12201    shlibpath_var=LD_LIBRARY_PATH
12202  fi
12203  ;;
12204
12205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12206  version_type=sco
12207  need_lib_prefix=no
12208  need_version=no
12209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12210  soname_spec='$libname$release$shared_ext$major'
12211  shlibpath_var=LD_LIBRARY_PATH
12212  shlibpath_overrides_runpath=yes
12213  hardcode_into_libs=yes
12214  if test yes = "$with_gnu_ld"; then
12215    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12216  else
12217    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12218    case $host_os in
12219      sco3.2v5*)
12220        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12221	;;
12222    esac
12223  fi
12224  sys_lib_dlsearch_path_spec='/usr/lib'
12225  ;;
12226
12227tpf*)
12228  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12229  version_type=linux # correct to gnu/linux during the next big refactor
12230  need_lib_prefix=no
12231  need_version=no
12232  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12233  shlibpath_var=LD_LIBRARY_PATH
12234  shlibpath_overrides_runpath=no
12235  hardcode_into_libs=yes
12236  ;;
12237
12238uts4*)
12239  version_type=linux # correct to gnu/linux during the next big refactor
12240  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241  soname_spec='$libname$release$shared_ext$major'
12242  shlibpath_var=LD_LIBRARY_PATH
12243  ;;
12244
12245*)
12246  dynamic_linker=no
12247  ;;
12248esac
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12250$as_echo "$dynamic_linker" >&6; }
12251test no = "$dynamic_linker" && can_build_shared=no
12252
12253variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12254if test yes = "$GCC"; then
12255  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12256fi
12257
12258if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12259  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12260fi
12261
12262if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12263  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12264fi
12265
12266# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12267configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12268
12269# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12270func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12271
12272# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12273configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12372$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12373hardcode_action=
12374if test -n "$hardcode_libdir_flag_spec" ||
12375   test -n "$runpath_var" ||
12376   test yes = "$hardcode_automatic"; then
12377
12378  # We can hardcode non-existent directories.
12379  if test no != "$hardcode_direct" &&
12380     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12381     # have to relink, otherwise we might link with an installed library
12382     # when we should be linking with a yet-to-be-installed one
12383     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12384     test no != "$hardcode_minus_L"; then
12385    # Linking always hardcodes the temporary library directory.
12386    hardcode_action=relink
12387  else
12388    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12389    hardcode_action=immediate
12390  fi
12391else
12392  # We cannot hardcode anything, or else we can only hardcode existing
12393  # directories.
12394  hardcode_action=unsupported
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12397$as_echo "$hardcode_action" >&6; }
12398
12399if test relink = "$hardcode_action" ||
12400   test yes = "$inherit_rpath"; then
12401  # Fast installation is not supported
12402  enable_fast_install=no
12403elif test yes = "$shlibpath_overrides_runpath" ||
12404     test no = "$enable_shared"; then
12405  # Fast installation is not necessary
12406  enable_fast_install=needless
12407fi
12408
12409
12410
12411
12412
12413
12414  if test yes != "$enable_dlopen"; then
12415  enable_dlopen=unknown
12416  enable_dlopen_self=unknown
12417  enable_dlopen_self_static=unknown
12418else
12419  lt_cv_dlopen=no
12420  lt_cv_dlopen_libs=
12421
12422  case $host_os in
12423  beos*)
12424    lt_cv_dlopen=load_add_on
12425    lt_cv_dlopen_libs=
12426    lt_cv_dlopen_self=yes
12427    ;;
12428
12429  mingw* | pw32* | cegcc*)
12430    lt_cv_dlopen=LoadLibrary
12431    lt_cv_dlopen_libs=
12432    ;;
12433
12434  cygwin*)
12435    lt_cv_dlopen=dlopen
12436    lt_cv_dlopen_libs=
12437    ;;
12438
12439  darwin*)
12440    # if libdl is installed we need to link against it
12441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12442$as_echo_n "checking for dlopen in -ldl... " >&6; }
12443if ${ac_cv_lib_dl_dlopen+:} false; then :
12444  $as_echo_n "(cached) " >&6
12445else
12446  ac_check_lib_save_LIBS=$LIBS
12447LIBS="-ldl  $LIBS"
12448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h.  */
12450
12451/* Override any GCC internal prototype to avoid an error.
12452   Use char because int might match the return type of a GCC
12453   builtin and then its argument prototype would still apply.  */
12454#ifdef __cplusplus
12455extern "C"
12456#endif
12457char dlopen ();
12458int
12459main ()
12460{
12461return dlopen ();
12462  ;
12463  return 0;
12464}
12465_ACEOF
12466if ac_fn_c_try_link "$LINENO"; then :
12467  ac_cv_lib_dl_dlopen=yes
12468else
12469  ac_cv_lib_dl_dlopen=no
12470fi
12471rm -f core conftest.err conftest.$ac_objext \
12472    conftest$ac_exeext conftest.$ac_ext
12473LIBS=$ac_check_lib_save_LIBS
12474fi
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12476$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12477if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12478  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12479else
12480
12481    lt_cv_dlopen=dyld
12482    lt_cv_dlopen_libs=
12483    lt_cv_dlopen_self=yes
12484
12485fi
12486
12487    ;;
12488
12489  tpf*)
12490    # Don't try to run any link tests for TPF.  We know it's impossible
12491    # because TPF is a cross-compiler, and we know how we open DSOs.
12492    lt_cv_dlopen=dlopen
12493    lt_cv_dlopen_libs=
12494    lt_cv_dlopen_self=no
12495    ;;
12496
12497  *)
12498    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12499if test "x$ac_cv_func_shl_load" = xyes; then :
12500  lt_cv_dlopen=shl_load
12501else
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12503$as_echo_n "checking for shl_load in -ldld... " >&6; }
12504if ${ac_cv_lib_dld_shl_load+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  ac_check_lib_save_LIBS=$LIBS
12508LIBS="-ldld  $LIBS"
12509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h.  */
12511
12512/* Override any GCC internal prototype to avoid an error.
12513   Use char because int might match the return type of a GCC
12514   builtin and then its argument prototype would still apply.  */
12515#ifdef __cplusplus
12516extern "C"
12517#endif
12518char shl_load ();
12519int
12520main ()
12521{
12522return shl_load ();
12523  ;
12524  return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_link "$LINENO"; then :
12528  ac_cv_lib_dld_shl_load=yes
12529else
12530  ac_cv_lib_dld_shl_load=no
12531fi
12532rm -f core conftest.err conftest.$ac_objext \
12533    conftest$ac_exeext conftest.$ac_ext
12534LIBS=$ac_check_lib_save_LIBS
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12537$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12538if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12539  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12540else
12541  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12542if test "x$ac_cv_func_dlopen" = xyes; then :
12543  lt_cv_dlopen=dlopen
12544else
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12546$as_echo_n "checking for dlopen in -ldl... " >&6; }
12547if ${ac_cv_lib_dl_dlopen+:} false; then :
12548  $as_echo_n "(cached) " >&6
12549else
12550  ac_check_lib_save_LIBS=$LIBS
12551LIBS="-ldl  $LIBS"
12552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553/* end confdefs.h.  */
12554
12555/* Override any GCC internal prototype to avoid an error.
12556   Use char because int might match the return type of a GCC
12557   builtin and then its argument prototype would still apply.  */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561char dlopen ();
12562int
12563main ()
12564{
12565return dlopen ();
12566  ;
12567  return 0;
12568}
12569_ACEOF
12570if ac_fn_c_try_link "$LINENO"; then :
12571  ac_cv_lib_dl_dlopen=yes
12572else
12573  ac_cv_lib_dl_dlopen=no
12574fi
12575rm -f core conftest.err conftest.$ac_objext \
12576    conftest$ac_exeext conftest.$ac_ext
12577LIBS=$ac_check_lib_save_LIBS
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12580$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12581if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12582  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12583else
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12585$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12586if ${ac_cv_lib_svld_dlopen+:} false; then :
12587  $as_echo_n "(cached) " >&6
12588else
12589  ac_check_lib_save_LIBS=$LIBS
12590LIBS="-lsvld  $LIBS"
12591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h.  */
12593
12594/* Override any GCC internal prototype to avoid an error.
12595   Use char because int might match the return type of a GCC
12596   builtin and then its argument prototype would still apply.  */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600char dlopen ();
12601int
12602main ()
12603{
12604return dlopen ();
12605  ;
12606  return 0;
12607}
12608_ACEOF
12609if ac_fn_c_try_link "$LINENO"; then :
12610  ac_cv_lib_svld_dlopen=yes
12611else
12612  ac_cv_lib_svld_dlopen=no
12613fi
12614rm -f core conftest.err conftest.$ac_objext \
12615    conftest$ac_exeext conftest.$ac_ext
12616LIBS=$ac_check_lib_save_LIBS
12617fi
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12619$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12620if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12621  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12622else
12623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12624$as_echo_n "checking for dld_link in -ldld... " >&6; }
12625if ${ac_cv_lib_dld_dld_link+:} false; then :
12626  $as_echo_n "(cached) " >&6
12627else
12628  ac_check_lib_save_LIBS=$LIBS
12629LIBS="-ldld  $LIBS"
12630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631/* end confdefs.h.  */
12632
12633/* Override any GCC internal prototype to avoid an error.
12634   Use char because int might match the return type of a GCC
12635   builtin and then its argument prototype would still apply.  */
12636#ifdef __cplusplus
12637extern "C"
12638#endif
12639char dld_link ();
12640int
12641main ()
12642{
12643return dld_link ();
12644  ;
12645  return 0;
12646}
12647_ACEOF
12648if ac_fn_c_try_link "$LINENO"; then :
12649  ac_cv_lib_dld_dld_link=yes
12650else
12651  ac_cv_lib_dld_dld_link=no
12652fi
12653rm -f core conftest.err conftest.$ac_objext \
12654    conftest$ac_exeext conftest.$ac_ext
12655LIBS=$ac_check_lib_save_LIBS
12656fi
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12658$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12659if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12660  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12661fi
12662
12663
12664fi
12665
12666
12667fi
12668
12669
12670fi
12671
12672
12673fi
12674
12675
12676fi
12677
12678    ;;
12679  esac
12680
12681  if test no = "$lt_cv_dlopen"; then
12682    enable_dlopen=no
12683  else
12684    enable_dlopen=yes
12685  fi
12686
12687  case $lt_cv_dlopen in
12688  dlopen)
12689    save_CPPFLAGS=$CPPFLAGS
12690    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12691
12692    save_LDFLAGS=$LDFLAGS
12693    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12694
12695    save_LIBS=$LIBS
12696    LIBS="$lt_cv_dlopen_libs $LIBS"
12697
12698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12699$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12700if ${lt_cv_dlopen_self+:} false; then :
12701  $as_echo_n "(cached) " >&6
12702else
12703  	  if test yes = "$cross_compiling"; then :
12704  lt_cv_dlopen_self=cross
12705else
12706  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12707  lt_status=$lt_dlunknown
12708  cat > conftest.$ac_ext <<_LT_EOF
12709#line $LINENO "configure"
12710#include "confdefs.h"
12711
12712#if HAVE_DLFCN_H
12713#include <dlfcn.h>
12714#endif
12715
12716#include <stdio.h>
12717
12718#ifdef RTLD_GLOBAL
12719#  define LT_DLGLOBAL		RTLD_GLOBAL
12720#else
12721#  ifdef DL_GLOBAL
12722#    define LT_DLGLOBAL		DL_GLOBAL
12723#  else
12724#    define LT_DLGLOBAL		0
12725#  endif
12726#endif
12727
12728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12729   find out it does not work in some platform. */
12730#ifndef LT_DLLAZY_OR_NOW
12731#  ifdef RTLD_LAZY
12732#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12733#  else
12734#    ifdef DL_LAZY
12735#      define LT_DLLAZY_OR_NOW		DL_LAZY
12736#    else
12737#      ifdef RTLD_NOW
12738#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12739#      else
12740#        ifdef DL_NOW
12741#          define LT_DLLAZY_OR_NOW	DL_NOW
12742#        else
12743#          define LT_DLLAZY_OR_NOW	0
12744#        endif
12745#      endif
12746#    endif
12747#  endif
12748#endif
12749
12750/* When -fvisibility=hidden is used, assume the code has been annotated
12751   correspondingly for the symbols needed.  */
12752#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12753int fnord () __attribute__((visibility("default")));
12754#endif
12755
12756int fnord () { return 42; }
12757int main ()
12758{
12759  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12760  int status = $lt_dlunknown;
12761
12762  if (self)
12763    {
12764      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12765      else
12766        {
12767	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12768          else puts (dlerror ());
12769	}
12770      /* dlclose (self); */
12771    }
12772  else
12773    puts (dlerror ());
12774
12775  return status;
12776}
12777_LT_EOF
12778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12779  (eval $ac_link) 2>&5
12780  ac_status=$?
12781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12782  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12783    (./conftest; exit; ) >&5 2>/dev/null
12784    lt_status=$?
12785    case x$lt_status in
12786      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12787      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12788      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12789    esac
12790  else :
12791    # compilation failed
12792    lt_cv_dlopen_self=no
12793  fi
12794fi
12795rm -fr conftest*
12796
12797
12798fi
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12800$as_echo "$lt_cv_dlopen_self" >&6; }
12801
12802    if test yes = "$lt_cv_dlopen_self"; then
12803      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12804      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12805$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12806if ${lt_cv_dlopen_self_static+:} false; then :
12807  $as_echo_n "(cached) " >&6
12808else
12809  	  if test yes = "$cross_compiling"; then :
12810  lt_cv_dlopen_self_static=cross
12811else
12812  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12813  lt_status=$lt_dlunknown
12814  cat > conftest.$ac_ext <<_LT_EOF
12815#line $LINENO "configure"
12816#include "confdefs.h"
12817
12818#if HAVE_DLFCN_H
12819#include <dlfcn.h>
12820#endif
12821
12822#include <stdio.h>
12823
12824#ifdef RTLD_GLOBAL
12825#  define LT_DLGLOBAL		RTLD_GLOBAL
12826#else
12827#  ifdef DL_GLOBAL
12828#    define LT_DLGLOBAL		DL_GLOBAL
12829#  else
12830#    define LT_DLGLOBAL		0
12831#  endif
12832#endif
12833
12834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12835   find out it does not work in some platform. */
12836#ifndef LT_DLLAZY_OR_NOW
12837#  ifdef RTLD_LAZY
12838#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12839#  else
12840#    ifdef DL_LAZY
12841#      define LT_DLLAZY_OR_NOW		DL_LAZY
12842#    else
12843#      ifdef RTLD_NOW
12844#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12845#      else
12846#        ifdef DL_NOW
12847#          define LT_DLLAZY_OR_NOW	DL_NOW
12848#        else
12849#          define LT_DLLAZY_OR_NOW	0
12850#        endif
12851#      endif
12852#    endif
12853#  endif
12854#endif
12855
12856/* When -fvisibility=hidden is used, assume the code has been annotated
12857   correspondingly for the symbols needed.  */
12858#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12859int fnord () __attribute__((visibility("default")));
12860#endif
12861
12862int fnord () { return 42; }
12863int main ()
12864{
12865  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12866  int status = $lt_dlunknown;
12867
12868  if (self)
12869    {
12870      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12871      else
12872        {
12873	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12874          else puts (dlerror ());
12875	}
12876      /* dlclose (self); */
12877    }
12878  else
12879    puts (dlerror ());
12880
12881  return status;
12882}
12883_LT_EOF
12884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12885  (eval $ac_link) 2>&5
12886  ac_status=$?
12887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12889    (./conftest; exit; ) >&5 2>/dev/null
12890    lt_status=$?
12891    case x$lt_status in
12892      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12893      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12894      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12895    esac
12896  else :
12897    # compilation failed
12898    lt_cv_dlopen_self_static=no
12899  fi
12900fi
12901rm -fr conftest*
12902
12903
12904fi
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12906$as_echo "$lt_cv_dlopen_self_static" >&6; }
12907    fi
12908
12909    CPPFLAGS=$save_CPPFLAGS
12910    LDFLAGS=$save_LDFLAGS
12911    LIBS=$save_LIBS
12912    ;;
12913  esac
12914
12915  case $lt_cv_dlopen_self in
12916  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12917  *) enable_dlopen_self=unknown ;;
12918  esac
12919
12920  case $lt_cv_dlopen_self_static in
12921  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12922  *) enable_dlopen_self_static=unknown ;;
12923  esac
12924fi
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942striplib=
12943old_striplib=
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12945$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12946if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12947  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12948  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950$as_echo "yes" >&6; }
12951else
12952# FIXME - insert some real tests, host_os isn't really good enough
12953  case $host_os in
12954  darwin*)
12955    if test -n "$STRIP"; then
12956      striplib="$STRIP -x"
12957      old_striplib="$STRIP -S"
12958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12959$as_echo "yes" >&6; }
12960    else
12961      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963    fi
12964    ;;
12965  *)
12966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
12968    ;;
12969  esac
12970fi
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983  # Report what library types will actually be built
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12985$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12987$as_echo "$can_build_shared" >&6; }
12988
12989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12990$as_echo_n "checking whether to build shared libraries... " >&6; }
12991  test no = "$can_build_shared" && enable_shared=no
12992
12993  # On AIX, shared libraries and static libraries use the same namespace, and
12994  # are all built from PIC.
12995  case $host_os in
12996  aix3*)
12997    test yes = "$enable_shared" && enable_static=no
12998    if test -n "$RANLIB"; then
12999      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13000      postinstall_cmds='$RANLIB $lib'
13001    fi
13002    ;;
13003
13004  aix[4-9]*)
13005    if test ia64 != "$host_cpu"; then
13006      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13007      yes,aix,yes) ;;			# shared object as lib.so file only
13008      yes,svr4,*) ;;			# shared object as lib.so archive member only
13009      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13010      esac
13011    fi
13012    ;;
13013  esac
13014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13015$as_echo "$enable_shared" >&6; }
13016
13017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13018$as_echo_n "checking whether to build static libraries... " >&6; }
13019  # Make sure either enable_shared or enable_static is yes.
13020  test yes = "$enable_shared" || enable_static=yes
13021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13022$as_echo "$enable_static" >&6; }
13023
13024
13025
13026
13027fi
13028ac_ext=c
13029ac_cpp='$CPP $CPPFLAGS'
13030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13032ac_compiler_gnu=$ac_cv_c_compiler_gnu
13033
13034CC=$lt_save_CC
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050        ac_config_commands="$ac_config_commands libtool"
13051
13052
13053
13054
13055# Only expand once:
13056
13057
13058
13059if test "$PS" = "ps"
13060then
13061	as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5
13062fi
13063
13064if test x$GXX = xyes
13065then
13066	CFLAGS="-Wall $CFLAGS"
13067fi
13068
13069CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
13070
13071
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13073$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13074if ${ac_cv_header_sys_wait_h+:} false; then :
13075  $as_echo_n "(cached) " >&6
13076else
13077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h.  */
13079#include <sys/types.h>
13080#include <sys/wait.h>
13081#ifndef WEXITSTATUS
13082# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13083#endif
13084#ifndef WIFEXITED
13085# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13086#endif
13087
13088int
13089main ()
13090{
13091  int s;
13092  wait (&s);
13093  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13094  ;
13095  return 0;
13096}
13097_ACEOF
13098if ac_fn_c_try_compile "$LINENO"; then :
13099  ac_cv_header_sys_wait_h=yes
13100else
13101  ac_cv_header_sys_wait_h=no
13102fi
13103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104fi
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13106$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13107if test $ac_cv_header_sys_wait_h = yes; then
13108
13109$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13110
13111fi
13112
13113for ac_header in unistd.h fcntl.h
13114do :
13115  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13116ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13117if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13118  cat >>confdefs.h <<_ACEOF
13119#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13120_ACEOF
13121
13122fi
13123
13124done
13125
13126
13127ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13128if test "x$ac_cv_type_pid_t" = xyes; then :
13129
13130else
13131
13132cat >>confdefs.h <<_ACEOF
13133#define pid_t int
13134_ACEOF
13135
13136fi
13137
13138# Check whether --enable-largefile was given.
13139if test "${enable_largefile+set}" = set; then :
13140  enableval=$enable_largefile;
13141fi
13142
13143if test "$enable_largefile" != no; then
13144
13145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13146$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13147if ${ac_cv_sys_largefile_CC+:} false; then :
13148  $as_echo_n "(cached) " >&6
13149else
13150  ac_cv_sys_largefile_CC=no
13151     if test "$GCC" != yes; then
13152       ac_save_CC=$CC
13153       while :; do
13154	 # IRIX 6.2 and later do not support large files by default,
13155	 # so use the C compiler's -n32 option if that helps.
13156	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157/* end confdefs.h.  */
13158#include <sys/types.h>
13159 /* Check that off_t can represent 2**63 - 1 correctly.
13160    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13161    since some C++ compilers masquerading as C compilers
13162    incorrectly reject 9223372036854775807.  */
13163#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13164  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13165		       && LARGE_OFF_T % 2147483647 == 1)
13166		      ? 1 : -1];
13167int
13168main ()
13169{
13170
13171  ;
13172  return 0;
13173}
13174_ACEOF
13175	 if ac_fn_c_try_compile "$LINENO"; then :
13176  break
13177fi
13178rm -f core conftest.err conftest.$ac_objext
13179	 CC="$CC -n32"
13180	 if ac_fn_c_try_compile "$LINENO"; then :
13181  ac_cv_sys_largefile_CC=' -n32'; break
13182fi
13183rm -f core conftest.err conftest.$ac_objext
13184	 break
13185       done
13186       CC=$ac_save_CC
13187       rm -f conftest.$ac_ext
13188    fi
13189fi
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13191$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13192  if test "$ac_cv_sys_largefile_CC" != no; then
13193    CC=$CC$ac_cv_sys_largefile_CC
13194  fi
13195
13196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13197$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13198if ${ac_cv_sys_file_offset_bits+:} false; then :
13199  $as_echo_n "(cached) " >&6
13200else
13201  while :; do
13202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203/* end confdefs.h.  */
13204#include <sys/types.h>
13205 /* Check that off_t can represent 2**63 - 1 correctly.
13206    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13207    since some C++ compilers masquerading as C compilers
13208    incorrectly reject 9223372036854775807.  */
13209#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13210  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13211		       && LARGE_OFF_T % 2147483647 == 1)
13212		      ? 1 : -1];
13213int
13214main ()
13215{
13216
13217  ;
13218  return 0;
13219}
13220_ACEOF
13221if ac_fn_c_try_compile "$LINENO"; then :
13222  ac_cv_sys_file_offset_bits=no; break
13223fi
13224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h.  */
13227#define _FILE_OFFSET_BITS 64
13228#include <sys/types.h>
13229 /* Check that off_t can represent 2**63 - 1 correctly.
13230    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13231    since some C++ compilers masquerading as C compilers
13232    incorrectly reject 9223372036854775807.  */
13233#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13234  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13235		       && LARGE_OFF_T % 2147483647 == 1)
13236		      ? 1 : -1];
13237int
13238main ()
13239{
13240
13241  ;
13242  return 0;
13243}
13244_ACEOF
13245if ac_fn_c_try_compile "$LINENO"; then :
13246  ac_cv_sys_file_offset_bits=64; break
13247fi
13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249  ac_cv_sys_file_offset_bits=unknown
13250  break
13251done
13252fi
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13254$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13255case $ac_cv_sys_file_offset_bits in #(
13256  no | unknown) ;;
13257  *)
13258cat >>confdefs.h <<_ACEOF
13259#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13260_ACEOF
13261;;
13262esac
13263rm -rf conftest*
13264  if test $ac_cv_sys_file_offset_bits = unknown; then
13265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13266$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13267if ${ac_cv_sys_large_files+:} false; then :
13268  $as_echo_n "(cached) " >&6
13269else
13270  while :; do
13271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272/* end confdefs.h.  */
13273#include <sys/types.h>
13274 /* Check that off_t can represent 2**63 - 1 correctly.
13275    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13276    since some C++ compilers masquerading as C compilers
13277    incorrectly reject 9223372036854775807.  */
13278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13279  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13280		       && LARGE_OFF_T % 2147483647 == 1)
13281		      ? 1 : -1];
13282int
13283main ()
13284{
13285
13286  ;
13287  return 0;
13288}
13289_ACEOF
13290if ac_fn_c_try_compile "$LINENO"; then :
13291  ac_cv_sys_large_files=no; break
13292fi
13293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295/* end confdefs.h.  */
13296#define _LARGE_FILES 1
13297#include <sys/types.h>
13298 /* Check that off_t can represent 2**63 - 1 correctly.
13299    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13300    since some C++ compilers masquerading as C compilers
13301    incorrectly reject 9223372036854775807.  */
13302#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13303  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13304		       && LARGE_OFF_T % 2147483647 == 1)
13305		      ? 1 : -1];
13306int
13307main ()
13308{
13309
13310  ;
13311  return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_compile "$LINENO"; then :
13315  ac_cv_sys_large_files=1; break
13316fi
13317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318  ac_cv_sys_large_files=unknown
13319  break
13320done
13321fi
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13323$as_echo "$ac_cv_sys_large_files" >&6; }
13324case $ac_cv_sys_large_files in #(
13325  no | unknown) ;;
13326  *)
13327cat >>confdefs.h <<_ACEOF
13328#define _LARGE_FILES $ac_cv_sys_large_files
13329_ACEOF
13330;;
13331esac
13332rm -rf conftest*
13333  fi
13334
13335
13336fi
13337
13338
13339
13340# Check whether --with-random was given.
13341if test "${with_random+set}" = set; then :
13342  withval=$with_random; random="$withval"
13343else
13344  random="y"
13345fi
13346
13347
13348case "$random" in
13349/*)
13350	;;
13351y*|1*)
13352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
13353$as_echo_n "checking for random source... " >&6; }
13354if ${random_cv_RANDOM+:} false; then :
13355  $as_echo_n "(cached) " >&6
13356else
13357  if test -c /dev/urandom
13358		then
13359			random_cv_RANDOM=/dev/urandom
13360		else
13361			if test -c /dev/random
13362			then
13363				random_cv_RANDOM=/dev/random
13364			else
13365				random_cv_RANDOM="none"
13366			fi
13367		fi
13368
13369fi
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5
13371$as_echo "$random_cv_RANDOM" >&6; }
13372	random="$random_cv_RANDOM"
13373	;;
13374*)
13375	random="none"
13376	;;
13377esac
13378
13379if test "$random" != "none"
13380then
13381
13382cat >>confdefs.h <<_ACEOF
13383#define RANDOM "$random"
13384_ACEOF
13385
13386fi
13387
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5
13389$as_echo_n "checking for some good options for ps... " >&6; }
13390if ${random_cv_PS_OPTIONS+:} false; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
13394	do
13395		ps $opts >/dev/null 2>/dev/null || continue
13396		break
13397	done
13398	random_cv_PS_OPTIONS="$opts"
13399
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5
13402$as_echo "$random_cv_PS_OPTIONS" >&6; }
13403
13404
13405cat >>confdefs.h <<_ACEOF
13406#define PS_OPTIONS "$random_cv_PS_OPTIONS"
13407_ACEOF
13408
13409
13410cat >>confdefs.h <<_ACEOF
13411#define PS "$PS"
13412_ACEOF
13413
13414
13415if test "$W" != "w"
13416then
13417
13418cat >>confdefs.h <<_ACEOF
13419#define W "$w"
13420_ACEOF
13421
13422fi
13423
13424ac_config_files="$ac_config_files Makefile"
13425
13426cat >confcache <<\_ACEOF
13427# This file is a shell script that caches the results of configure
13428# tests run on this system so they can be shared between configure
13429# scripts and configure runs, see configure's option --config-cache.
13430# It is not useful on other systems.  If it contains results you don't
13431# want to keep, you may remove or edit it.
13432#
13433# config.status only pays attention to the cache file if you give it
13434# the --recheck option to rerun configure.
13435#
13436# `ac_cv_env_foo' variables (set or unset) will be overridden when
13437# loading this file, other *unset* `ac_cv_foo' will be assigned the
13438# following values.
13439
13440_ACEOF
13441
13442# The following way of writing the cache mishandles newlines in values,
13443# but we know of no workaround that is simple, portable, and efficient.
13444# So, we kill variables containing newlines.
13445# Ultrix sh set writes to stderr and can't be redirected directly,
13446# and sets the high bit in the cache file unless we assign to the vars.
13447(
13448  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13449    eval ac_val=\$$ac_var
13450    case $ac_val in #(
13451    *${as_nl}*)
13452      case $ac_var in #(
13453      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13454$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13455      esac
13456      case $ac_var in #(
13457      _ | IFS | as_nl) ;; #(
13458      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13459      *) { eval $ac_var=; unset $ac_var;} ;;
13460      esac ;;
13461    esac
13462  done
13463
13464  (set) 2>&1 |
13465    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13466    *${as_nl}ac_space=\ *)
13467      # `set' does not quote correctly, so add quotes: double-quote
13468      # substitution turns \\\\ into \\, and sed turns \\ into \.
13469      sed -n \
13470	"s/'/'\\\\''/g;
13471	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13472      ;; #(
13473    *)
13474      # `set' quotes correctly as required by POSIX, so do not add quotes.
13475      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13476      ;;
13477    esac |
13478    sort
13479) |
13480  sed '
13481     /^ac_cv_env_/b end
13482     t clear
13483     :clear
13484     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13485     t end
13486     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13487     :end' >>confcache
13488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13489  if test -w "$cache_file"; then
13490    if test "x$cache_file" != "x/dev/null"; then
13491      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13492$as_echo "$as_me: updating cache $cache_file" >&6;}
13493      if test ! -f "$cache_file" || test -h "$cache_file"; then
13494	cat confcache >"$cache_file"
13495      else
13496        case $cache_file in #(
13497        */* | ?:*)
13498	  mv -f confcache "$cache_file"$$ &&
13499	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13500        *)
13501	  mv -f confcache "$cache_file" ;;
13502	esac
13503      fi
13504    fi
13505  else
13506    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13507$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13508  fi
13509fi
13510rm -f confcache
13511
13512test "x$prefix" = xNONE && prefix=$ac_default_prefix
13513# Let make expand exec_prefix.
13514test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13515
13516DEFS=-DHAVE_CONFIG_H
13517
13518ac_libobjs=
13519ac_ltlibobjs=
13520U=
13521for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13522  # 1. Remove the extension, and $U if already installed.
13523  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13524  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13525  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13526  #    will be set to the directory where LIBOBJS objects are built.
13527  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13528  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13529done
13530LIBOBJS=$ac_libobjs
13531
13532LTLIBOBJS=$ac_ltlibobjs
13533
13534
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13536$as_echo_n "checking that generated files are newer than configure... " >&6; }
13537   if test -n "$am_sleep_pid"; then
13538     # Hide warnings about reused PIDs.
13539     wait $am_sleep_pid 2>/dev/null
13540   fi
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13542$as_echo "done" >&6; }
13543 if test -n "$EXEEXT"; then
13544  am__EXEEXT_TRUE=
13545  am__EXEEXT_FALSE='#'
13546else
13547  am__EXEEXT_TRUE='#'
13548  am__EXEEXT_FALSE=
13549fi
13550
13551if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13552  as_fn_error $? "conditional \"AMDEP\" was never defined.
13553Usually this means the macro was only invoked conditionally." "$LINENO" 5
13554fi
13555if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13556  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13557Usually this means the macro was only invoked conditionally." "$LINENO" 5
13558fi
13559if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13560  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13561Usually this means the macro was only invoked conditionally." "$LINENO" 5
13562fi
13563
13564: "${CONFIG_STATUS=./config.status}"
13565ac_write_fail=0
13566ac_clean_files_save=$ac_clean_files
13567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13569$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13570as_write_fail=0
13571cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13572#! $SHELL
13573# Generated by $as_me.
13574# Run this file to recreate the current configuration.
13575# Compiler output produced by configure, useful for debugging
13576# configure, is in config.log if it exists.
13577
13578debug=false
13579ac_cs_recheck=false
13580ac_cs_silent=false
13581
13582SHELL=\${CONFIG_SHELL-$SHELL}
13583export SHELL
13584_ASEOF
13585cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13586## -------------------- ##
13587## M4sh Initialization. ##
13588## -------------------- ##
13589
13590# Be more Bourne compatible
13591DUALCASE=1; export DUALCASE # for MKS sh
13592if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13593  emulate sh
13594  NULLCMD=:
13595  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13596  # is contrary to our usage.  Disable this feature.
13597  alias -g '${1+"$@"}'='"$@"'
13598  setopt NO_GLOB_SUBST
13599else
13600  case `(set -o) 2>/dev/null` in #(
13601  *posix*) :
13602    set -o posix ;; #(
13603  *) :
13604     ;;
13605esac
13606fi
13607
13608
13609as_nl='
13610'
13611export as_nl
13612# Printing a long string crashes Solaris 7 /usr/bin/printf.
13613as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13614as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13615as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13616# Prefer a ksh shell builtin over an external printf program on Solaris,
13617# but without wasting forks for bash or zsh.
13618if test -z "$BASH_VERSION$ZSH_VERSION" \
13619    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13620  as_echo='print -r --'
13621  as_echo_n='print -rn --'
13622elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13623  as_echo='printf %s\n'
13624  as_echo_n='printf %s'
13625else
13626  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13627    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13628    as_echo_n='/usr/ucb/echo -n'
13629  else
13630    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13631    as_echo_n_body='eval
13632      arg=$1;
13633      case $arg in #(
13634      *"$as_nl"*)
13635	expr "X$arg" : "X\\(.*\\)$as_nl";
13636	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13637      esac;
13638      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13639    '
13640    export as_echo_n_body
13641    as_echo_n='sh -c $as_echo_n_body as_echo'
13642  fi
13643  export as_echo_body
13644  as_echo='sh -c $as_echo_body as_echo'
13645fi
13646
13647# The user is always right.
13648if test "${PATH_SEPARATOR+set}" != set; then
13649  PATH_SEPARATOR=:
13650  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13651    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13652      PATH_SEPARATOR=';'
13653  }
13654fi
13655
13656
13657# IFS
13658# We need space, tab and new line, in precisely that order.  Quoting is
13659# there to prevent editors from complaining about space-tab.
13660# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13661# splitting by setting IFS to empty value.)
13662IFS=" ""	$as_nl"
13663
13664# Find who we are.  Look in the path if we contain no directory separator.
13665as_myself=
13666case $0 in #((
13667  *[\\/]* ) as_myself=$0 ;;
13668  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671  IFS=$as_save_IFS
13672  test -z "$as_dir" && as_dir=.
13673    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13674  done
13675IFS=$as_save_IFS
13676
13677     ;;
13678esac
13679# We did not find ourselves, most probably we were run as `sh COMMAND'
13680# in which case we are not to be found in the path.
13681if test "x$as_myself" = x; then
13682  as_myself=$0
13683fi
13684if test ! -f "$as_myself"; then
13685  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13686  exit 1
13687fi
13688
13689# Unset variables that we do not need and which cause bugs (e.g. in
13690# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13691# suppresses any "Segmentation fault" message there.  '((' could
13692# trigger a bug in pdksh 5.2.14.
13693for as_var in BASH_ENV ENV MAIL MAILPATH
13694do eval test x\${$as_var+set} = xset \
13695  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13696done
13697PS1='$ '
13698PS2='> '
13699PS4='+ '
13700
13701# NLS nuisances.
13702LC_ALL=C
13703export LC_ALL
13704LANGUAGE=C
13705export LANGUAGE
13706
13707# CDPATH.
13708(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13709
13710
13711# as_fn_error STATUS ERROR [LINENO LOG_FD]
13712# ----------------------------------------
13713# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13714# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13715# script with STATUS, using 1 if that was 0.
13716as_fn_error ()
13717{
13718  as_status=$1; test $as_status -eq 0 && as_status=1
13719  if test "$4"; then
13720    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13721    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13722  fi
13723  $as_echo "$as_me: error: $2" >&2
13724  as_fn_exit $as_status
13725} # as_fn_error
13726
13727
13728# as_fn_set_status STATUS
13729# -----------------------
13730# Set $? to STATUS, without forking.
13731as_fn_set_status ()
13732{
13733  return $1
13734} # as_fn_set_status
13735
13736# as_fn_exit STATUS
13737# -----------------
13738# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13739as_fn_exit ()
13740{
13741  set +e
13742  as_fn_set_status $1
13743  exit $1
13744} # as_fn_exit
13745
13746# as_fn_unset VAR
13747# ---------------
13748# Portably unset VAR.
13749as_fn_unset ()
13750{
13751  { eval $1=; unset $1;}
13752}
13753as_unset=as_fn_unset
13754# as_fn_append VAR VALUE
13755# ----------------------
13756# Append the text in VALUE to the end of the definition contained in VAR. Take
13757# advantage of any shell optimizations that allow amortized linear growth over
13758# repeated appends, instead of the typical quadratic growth present in naive
13759# implementations.
13760if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13761  eval 'as_fn_append ()
13762  {
13763    eval $1+=\$2
13764  }'
13765else
13766  as_fn_append ()
13767  {
13768    eval $1=\$$1\$2
13769  }
13770fi # as_fn_append
13771
13772# as_fn_arith ARG...
13773# ------------------
13774# Perform arithmetic evaluation on the ARGs, and store the result in the
13775# global $as_val. Take advantage of shells that can avoid forks. The arguments
13776# must be portable across $(()) and expr.
13777if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13778  eval 'as_fn_arith ()
13779  {
13780    as_val=$(( $* ))
13781  }'
13782else
13783  as_fn_arith ()
13784  {
13785    as_val=`expr "$@" || test $? -eq 1`
13786  }
13787fi # as_fn_arith
13788
13789
13790if expr a : '\(a\)' >/dev/null 2>&1 &&
13791   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13792  as_expr=expr
13793else
13794  as_expr=false
13795fi
13796
13797if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13798  as_basename=basename
13799else
13800  as_basename=false
13801fi
13802
13803if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13804  as_dirname=dirname
13805else
13806  as_dirname=false
13807fi
13808
13809as_me=`$as_basename -- "$0" ||
13810$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13811	 X"$0" : 'X\(//\)$' \| \
13812	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13813$as_echo X/"$0" |
13814    sed '/^.*\/\([^/][^/]*\)\/*$/{
13815	    s//\1/
13816	    q
13817	  }
13818	  /^X\/\(\/\/\)$/{
13819	    s//\1/
13820	    q
13821	  }
13822	  /^X\/\(\/\).*/{
13823	    s//\1/
13824	    q
13825	  }
13826	  s/.*/./; q'`
13827
13828# Avoid depending upon Character Ranges.
13829as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13830as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13831as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13832as_cr_digits='0123456789'
13833as_cr_alnum=$as_cr_Letters$as_cr_digits
13834
13835ECHO_C= ECHO_N= ECHO_T=
13836case `echo -n x` in #(((((
13837-n*)
13838  case `echo 'xy\c'` in
13839  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13840  xy)  ECHO_C='\c';;
13841  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13842       ECHO_T='	';;
13843  esac;;
13844*)
13845  ECHO_N='-n';;
13846esac
13847
13848rm -f conf$$ conf$$.exe conf$$.file
13849if test -d conf$$.dir; then
13850  rm -f conf$$.dir/conf$$.file
13851else
13852  rm -f conf$$.dir
13853  mkdir conf$$.dir 2>/dev/null
13854fi
13855if (echo >conf$$.file) 2>/dev/null; then
13856  if ln -s conf$$.file conf$$ 2>/dev/null; then
13857    as_ln_s='ln -s'
13858    # ... but there are two gotchas:
13859    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13860    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13861    # In both cases, we have to default to `cp -pR'.
13862    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13863      as_ln_s='cp -pR'
13864  elif ln conf$$.file conf$$ 2>/dev/null; then
13865    as_ln_s=ln
13866  else
13867    as_ln_s='cp -pR'
13868  fi
13869else
13870  as_ln_s='cp -pR'
13871fi
13872rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13873rmdir conf$$.dir 2>/dev/null
13874
13875
13876# as_fn_mkdir_p
13877# -------------
13878# Create "$as_dir" as a directory, including parents if necessary.
13879as_fn_mkdir_p ()
13880{
13881
13882  case $as_dir in #(
13883  -*) as_dir=./$as_dir;;
13884  esac
13885  test -d "$as_dir" || eval $as_mkdir_p || {
13886    as_dirs=
13887    while :; do
13888      case $as_dir in #(
13889      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13890      *) as_qdir=$as_dir;;
13891      esac
13892      as_dirs="'$as_qdir' $as_dirs"
13893      as_dir=`$as_dirname -- "$as_dir" ||
13894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13895	 X"$as_dir" : 'X\(//\)[^/]' \| \
13896	 X"$as_dir" : 'X\(//\)$' \| \
13897	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13898$as_echo X"$as_dir" |
13899    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13900	    s//\1/
13901	    q
13902	  }
13903	  /^X\(\/\/\)[^/].*/{
13904	    s//\1/
13905	    q
13906	  }
13907	  /^X\(\/\/\)$/{
13908	    s//\1/
13909	    q
13910	  }
13911	  /^X\(\/\).*/{
13912	    s//\1/
13913	    q
13914	  }
13915	  s/.*/./; q'`
13916      test -d "$as_dir" && break
13917    done
13918    test -z "$as_dirs" || eval "mkdir $as_dirs"
13919  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13920
13921
13922} # as_fn_mkdir_p
13923if mkdir -p . 2>/dev/null; then
13924  as_mkdir_p='mkdir -p "$as_dir"'
13925else
13926  test -d ./-p && rmdir ./-p
13927  as_mkdir_p=false
13928fi
13929
13930
13931# as_fn_executable_p FILE
13932# -----------------------
13933# Test if FILE is an executable regular file.
13934as_fn_executable_p ()
13935{
13936  test -f "$1" && test -x "$1"
13937} # as_fn_executable_p
13938as_test_x='test -x'
13939as_executable_p=as_fn_executable_p
13940
13941# Sed expression to map a string onto a valid CPP name.
13942as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13943
13944# Sed expression to map a string onto a valid variable name.
13945as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13946
13947
13948exec 6>&1
13949## ----------------------------------- ##
13950## Main body of $CONFIG_STATUS script. ##
13951## ----------------------------------- ##
13952_ASEOF
13953test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13954
13955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13956# Save the log message, to keep $0 and so on meaningful, and to
13957# report actual input values of CONFIG_FILES etc. instead of their
13958# values after options handling.
13959ac_log="
13960This file was extended by random128 $as_me 0.10, which was
13961generated by GNU Autoconf 2.69.  Invocation command line was
13962
13963  CONFIG_FILES    = $CONFIG_FILES
13964  CONFIG_HEADERS  = $CONFIG_HEADERS
13965  CONFIG_LINKS    = $CONFIG_LINKS
13966  CONFIG_COMMANDS = $CONFIG_COMMANDS
13967  $ $0 $@
13968
13969on `(hostname || uname -n) 2>/dev/null | sed 1q`
13970"
13971
13972_ACEOF
13973
13974case $ac_config_files in *"
13975"*) set x $ac_config_files; shift; ac_config_files=$*;;
13976esac
13977
13978case $ac_config_headers in *"
13979"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13980esac
13981
13982
13983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13984# Files that config.status was made for.
13985config_files="$ac_config_files"
13986config_headers="$ac_config_headers"
13987config_commands="$ac_config_commands"
13988
13989_ACEOF
13990
13991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13992ac_cs_usage="\
13993\`$as_me' instantiates files and other configuration actions
13994from templates according to the current configuration.  Unless the files
13995and actions are specified as TAGs, all are instantiated by default.
13996
13997Usage: $0 [OPTION]... [TAG]...
13998
13999  -h, --help       print this help, then exit
14000  -V, --version    print version number and configuration settings, then exit
14001      --config     print configuration, then exit
14002  -q, --quiet, --silent
14003                   do not print progress messages
14004  -d, --debug      don't remove temporary files
14005      --recheck    update $as_me by reconfiguring in the same conditions
14006      --file=FILE[:TEMPLATE]
14007                   instantiate the configuration file FILE
14008      --header=FILE[:TEMPLATE]
14009                   instantiate the configuration header FILE
14010
14011Configuration files:
14012$config_files
14013
14014Configuration headers:
14015$config_headers
14016
14017Configuration commands:
14018$config_commands
14019
14020Report bugs to <courier-users@lists.sourceforge.net>."
14021
14022_ACEOF
14023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14024ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14025ac_cs_version="\\
14026random128 config.status 0.10
14027configured by $0, generated by GNU Autoconf 2.69,
14028  with options \\"\$ac_cs_config\\"
14029
14030Copyright (C) 2012 Free Software Foundation, Inc.
14031This config.status script is free software; the Free Software Foundation
14032gives unlimited permission to copy, distribute and modify it."
14033
14034ac_pwd='$ac_pwd'
14035srcdir='$srcdir'
14036INSTALL='$INSTALL'
14037MKDIR_P='$MKDIR_P'
14038AWK='$AWK'
14039test -n "\$AWK" || AWK=awk
14040_ACEOF
14041
14042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14043# The default lists apply if the user does not specify any file.
14044ac_need_defaults=:
14045while test $# != 0
14046do
14047  case $1 in
14048  --*=?*)
14049    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14050    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14051    ac_shift=:
14052    ;;
14053  --*=)
14054    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14055    ac_optarg=
14056    ac_shift=:
14057    ;;
14058  *)
14059    ac_option=$1
14060    ac_optarg=$2
14061    ac_shift=shift
14062    ;;
14063  esac
14064
14065  case $ac_option in
14066  # Handling of the options.
14067  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14068    ac_cs_recheck=: ;;
14069  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14070    $as_echo "$ac_cs_version"; exit ;;
14071  --config | --confi | --conf | --con | --co | --c )
14072    $as_echo "$ac_cs_config"; exit ;;
14073  --debug | --debu | --deb | --de | --d | -d )
14074    debug=: ;;
14075  --file | --fil | --fi | --f )
14076    $ac_shift
14077    case $ac_optarg in
14078    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14079    '') as_fn_error $? "missing file argument" ;;
14080    esac
14081    as_fn_append CONFIG_FILES " '$ac_optarg'"
14082    ac_need_defaults=false;;
14083  --header | --heade | --head | --hea )
14084    $ac_shift
14085    case $ac_optarg in
14086    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14087    esac
14088    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14089    ac_need_defaults=false;;
14090  --he | --h)
14091    # Conflict between --help and --header
14092    as_fn_error $? "ambiguous option: \`$1'
14093Try \`$0 --help' for more information.";;
14094  --help | --hel | -h )
14095    $as_echo "$ac_cs_usage"; exit ;;
14096  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14097  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14098    ac_cs_silent=: ;;
14099
14100  # This is an error.
14101  -*) as_fn_error $? "unrecognized option: \`$1'
14102Try \`$0 --help' for more information." ;;
14103
14104  *) as_fn_append ac_config_targets " $1"
14105     ac_need_defaults=false ;;
14106
14107  esac
14108  shift
14109done
14110
14111ac_configure_extra_args=
14112
14113if $ac_cs_silent; then
14114  exec 6>/dev/null
14115  ac_configure_extra_args="$ac_configure_extra_args --silent"
14116fi
14117
14118_ACEOF
14119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120if \$ac_cs_recheck; then
14121  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14122  shift
14123  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14124  CONFIG_SHELL='$SHELL'
14125  export CONFIG_SHELL
14126  exec "\$@"
14127fi
14128
14129_ACEOF
14130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14131exec 5>>config.log
14132{
14133  echo
14134  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14135## Running $as_me. ##
14136_ASBOX
14137  $as_echo "$ac_log"
14138} >&5
14139
14140_ACEOF
14141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14142#
14143# INIT-COMMANDS
14144#
14145AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14146
14147
14148# The HP-UX ksh and POSIX shell print the target directory to stdout
14149# if CDPATH is set.
14150(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14151
14152sed_quote_subst='$sed_quote_subst'
14153double_quote_subst='$double_quote_subst'
14154delay_variable_subst='$delay_variable_subst'
14155macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14156macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14157enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14158enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14159pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14160enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14161shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14162SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14163ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14164PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14165host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14166host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14167host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14168build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14169build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14170build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14171SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14172Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14173GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14174EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14175FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14176LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14177NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14178LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14179max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14180ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14181exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14182lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14183lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14184lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14185lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14186lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14187reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14188reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14189OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14190deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14191file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14192file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14193want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14194DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14195sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14196AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14197AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14198archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14199STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14200RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14201old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14202old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14203old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14204lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14205CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14206CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14207compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14208GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14209lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14210lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14211lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14212lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14213lt_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"`'
14214lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14215nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14216lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14217lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14218objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14219MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14220lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14221lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14222lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14223lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14224lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14225need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14226MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14227DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14228NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14229LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14230OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14231OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14232libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14233shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14234extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14235archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14236enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14237export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14238whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14239compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14240old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14241old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14242archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14243archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14244module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14245module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14246with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14247allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14248no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14249hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14250hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14251hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14252hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14253hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14254hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14255hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14256inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14257link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14258always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14259export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14260exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14261include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14262prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14263postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14264file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14265variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14266need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14267need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14268version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14269runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14270shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14271shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14272libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14273library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14274soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14275install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14276postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14277postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14278finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14279finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14280hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14281sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14282configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14283configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14284hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14285enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14286enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14287enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14288old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14289striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14290
14291LTCC='$LTCC'
14292LTCFLAGS='$LTCFLAGS'
14293compiler='$compiler_DEFAULT'
14294
14295# A function that is used when there is no print builtin or printf.
14296func_fallback_echo ()
14297{
14298  eval 'cat <<_LTECHO_EOF
14299\$1
14300_LTECHO_EOF'
14301}
14302
14303# Quote evaled strings.
14304for var in SHELL \
14305ECHO \
14306PATH_SEPARATOR \
14307SED \
14308GREP \
14309EGREP \
14310FGREP \
14311LD \
14312NM \
14313LN_S \
14314lt_SP2NL \
14315lt_NL2SP \
14316reload_flag \
14317OBJDUMP \
14318deplibs_check_method \
14319file_magic_cmd \
14320file_magic_glob \
14321want_nocaseglob \
14322DLLTOOL \
14323sharedlib_from_linklib_cmd \
14324AR \
14325AR_FLAGS \
14326archiver_list_spec \
14327STRIP \
14328RANLIB \
14329CC \
14330CFLAGS \
14331compiler \
14332lt_cv_sys_global_symbol_pipe \
14333lt_cv_sys_global_symbol_to_cdecl \
14334lt_cv_sys_global_symbol_to_import \
14335lt_cv_sys_global_symbol_to_c_name_address \
14336lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14337lt_cv_nm_interface \
14338nm_file_list_spec \
14339lt_cv_truncate_bin \
14340lt_prog_compiler_no_builtin_flag \
14341lt_prog_compiler_pic \
14342lt_prog_compiler_wl \
14343lt_prog_compiler_static \
14344lt_cv_prog_compiler_c_o \
14345need_locks \
14346MANIFEST_TOOL \
14347DSYMUTIL \
14348NMEDIT \
14349LIPO \
14350OTOOL \
14351OTOOL64 \
14352shrext_cmds \
14353export_dynamic_flag_spec \
14354whole_archive_flag_spec \
14355compiler_needs_object \
14356with_gnu_ld \
14357allow_undefined_flag \
14358no_undefined_flag \
14359hardcode_libdir_flag_spec \
14360hardcode_libdir_separator \
14361exclude_expsyms \
14362include_expsyms \
14363file_list_spec \
14364variables_saved_for_relink \
14365libname_spec \
14366library_names_spec \
14367soname_spec \
14368install_override_mode \
14369finish_eval \
14370old_striplib \
14371striplib; do
14372    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14373    *[\\\\\\\`\\"\\\$]*)
14374      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14375      ;;
14376    *)
14377      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14378      ;;
14379    esac
14380done
14381
14382# Double-quote double-evaled strings.
14383for var in reload_cmds \
14384old_postinstall_cmds \
14385old_postuninstall_cmds \
14386old_archive_cmds \
14387extract_expsyms_cmds \
14388old_archive_from_new_cmds \
14389old_archive_from_expsyms_cmds \
14390archive_cmds \
14391archive_expsym_cmds \
14392module_cmds \
14393module_expsym_cmds \
14394export_symbols_cmds \
14395prelink_cmds \
14396postlink_cmds \
14397postinstall_cmds \
14398postuninstall_cmds \
14399finish_cmds \
14400sys_lib_search_path_spec \
14401configure_time_dlsearch_path \
14402configure_time_lt_sys_library_path; do
14403    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14404    *[\\\\\\\`\\"\\\$]*)
14405      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14406      ;;
14407    *)
14408      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14409      ;;
14410    esac
14411done
14412
14413ac_aux_dir='$ac_aux_dir'
14414
14415# See if we are running on zsh, and set the options that allow our
14416# commands through without removal of \ escapes INIT.
14417if test -n "\${ZSH_VERSION+set}"; then
14418   setopt NO_GLOB_SUBST
14419fi
14420
14421
14422    PACKAGE='$PACKAGE'
14423    VERSION='$VERSION'
14424    RM='$RM'
14425    ofile='$ofile'
14426
14427
14428
14429
14430_ACEOF
14431
14432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14433
14434# Handling of arguments.
14435for ac_config_target in $ac_config_targets
14436do
14437  case $ac_config_target in
14438    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14439    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14440    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14441    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14442
14443  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14444  esac
14445done
14446
14447
14448# If the user did not use the arguments to specify the items to instantiate,
14449# then the envvar interface is used.  Set only those that are not.
14450# We use the long form for the default assignment because of an extremely
14451# bizarre bug on SunOS 4.1.3.
14452if $ac_need_defaults; then
14453  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14454  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14455  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14456fi
14457
14458# Have a temporary directory for convenience.  Make it in the build tree
14459# simply because there is no reason against having it here, and in addition,
14460# creating and moving files from /tmp can sometimes cause problems.
14461# Hook for its removal unless debugging.
14462# Note that there is a small window in which the directory will not be cleaned:
14463# after its creation but before its name has been assigned to `$tmp'.
14464$debug ||
14465{
14466  tmp= ac_tmp=
14467  trap 'exit_status=$?
14468  : "${ac_tmp:=$tmp}"
14469  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14470' 0
14471  trap 'as_fn_exit 1' 1 2 13 15
14472}
14473# Create a (secure) tmp directory for tmp files.
14474
14475{
14476  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14477  test -d "$tmp"
14478}  ||
14479{
14480  tmp=./conf$$-$RANDOM
14481  (umask 077 && mkdir "$tmp")
14482} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14483ac_tmp=$tmp
14484
14485# Set up the scripts for CONFIG_FILES section.
14486# No need to generate them if there are no CONFIG_FILES.
14487# This happens for instance with `./config.status config.h'.
14488if test -n "$CONFIG_FILES"; then
14489
14490
14491ac_cr=`echo X | tr X '\015'`
14492# On cygwin, bash can eat \r inside `` if the user requested igncr.
14493# But we know of no other shell where ac_cr would be empty at this
14494# point, so we can use a bashism as a fallback.
14495if test "x$ac_cr" = x; then
14496  eval ac_cr=\$\'\\r\'
14497fi
14498ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14499if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14500  ac_cs_awk_cr='\\r'
14501else
14502  ac_cs_awk_cr=$ac_cr
14503fi
14504
14505echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14506_ACEOF
14507
14508
14509{
14510  echo "cat >conf$$subs.awk <<_ACEOF" &&
14511  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14512  echo "_ACEOF"
14513} >conf$$subs.sh ||
14514  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14515ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14516ac_delim='%!_!# '
14517for ac_last_try in false false false false false :; do
14518  . ./conf$$subs.sh ||
14519    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14520
14521  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14522  if test $ac_delim_n = $ac_delim_num; then
14523    break
14524  elif $ac_last_try; then
14525    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14526  else
14527    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14528  fi
14529done
14530rm -f conf$$subs.sh
14531
14532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14533cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14534_ACEOF
14535sed -n '
14536h
14537s/^/S["/; s/!.*/"]=/
14538p
14539g
14540s/^[^!]*!//
14541:repl
14542t repl
14543s/'"$ac_delim"'$//
14544t delim
14545:nl
14546h
14547s/\(.\{148\}\)..*/\1/
14548t more1
14549s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14550p
14551n
14552b repl
14553:more1
14554s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14555p
14556g
14557s/.\{148\}//
14558t nl
14559:delim
14560h
14561s/\(.\{148\}\)..*/\1/
14562t more2
14563s/["\\]/\\&/g; s/^/"/; s/$/"/
14564p
14565b
14566:more2
14567s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14568p
14569g
14570s/.\{148\}//
14571t delim
14572' <conf$$subs.awk | sed '
14573/^[^""]/{
14574  N
14575  s/\n//
14576}
14577' >>$CONFIG_STATUS || ac_write_fail=1
14578rm -f conf$$subs.awk
14579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14580_ACAWK
14581cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14582  for (key in S) S_is_set[key] = 1
14583  FS = ""
14584
14585}
14586{
14587  line = $ 0
14588  nfields = split(line, field, "@")
14589  substed = 0
14590  len = length(field[1])
14591  for (i = 2; i < nfields; i++) {
14592    key = field[i]
14593    keylen = length(key)
14594    if (S_is_set[key]) {
14595      value = S[key]
14596      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14597      len += length(value) + length(field[++i])
14598      substed = 1
14599    } else
14600      len += 1 + keylen
14601  }
14602
14603  print line
14604}
14605
14606_ACAWK
14607_ACEOF
14608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14609if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14610  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14611else
14612  cat
14613fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14614  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14615_ACEOF
14616
14617# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14618# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14619# trailing colons and then remove the whole line if VPATH becomes empty
14620# (actually we leave an empty line to preserve line numbers).
14621if test "x$srcdir" = x.; then
14622  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14623h
14624s///
14625s/^/:/
14626s/[	 ]*$/:/
14627s/:\$(srcdir):/:/g
14628s/:\${srcdir}:/:/g
14629s/:@srcdir@:/:/g
14630s/^:*//
14631s/:*$//
14632x
14633s/\(=[	 ]*\).*/\1/
14634G
14635s/\n//
14636s/^[^=]*=[	 ]*$//
14637}'
14638fi
14639
14640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14641fi # test -n "$CONFIG_FILES"
14642
14643# Set up the scripts for CONFIG_HEADERS section.
14644# No need to generate them if there are no CONFIG_HEADERS.
14645# This happens for instance with `./config.status Makefile'.
14646if test -n "$CONFIG_HEADERS"; then
14647cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14648BEGIN {
14649_ACEOF
14650
14651# Transform confdefs.h into an awk script `defines.awk', embedded as
14652# here-document in config.status, that substitutes the proper values into
14653# config.h.in to produce config.h.
14654
14655# Create a delimiter string that does not exist in confdefs.h, to ease
14656# handling of long lines.
14657ac_delim='%!_!# '
14658for ac_last_try in false false :; do
14659  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14660  if test -z "$ac_tt"; then
14661    break
14662  elif $ac_last_try; then
14663    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14664  else
14665    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14666  fi
14667done
14668
14669# For the awk script, D is an array of macro values keyed by name,
14670# likewise P contains macro parameters if any.  Preserve backslash
14671# newline sequences.
14672
14673ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14674sed -n '
14675s/.\{148\}/&'"$ac_delim"'/g
14676t rset
14677:rset
14678s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14679t def
14680d
14681:def
14682s/\\$//
14683t bsnl
14684s/["\\]/\\&/g
14685s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14686D["\1"]=" \3"/p
14687s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14688d
14689:bsnl
14690s/["\\]/\\&/g
14691s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14692D["\1"]=" \3\\\\\\n"\\/p
14693t cont
14694s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14695t cont
14696d
14697:cont
14698n
14699s/.\{148\}/&'"$ac_delim"'/g
14700t clear
14701:clear
14702s/\\$//
14703t bsnlc
14704s/["\\]/\\&/g; s/^/"/; s/$/"/p
14705d
14706:bsnlc
14707s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14708b cont
14709' <confdefs.h | sed '
14710s/'"$ac_delim"'/"\\\
14711"/g' >>$CONFIG_STATUS || ac_write_fail=1
14712
14713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14714  for (key in D) D_is_set[key] = 1
14715  FS = ""
14716}
14717/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14718  line = \$ 0
14719  split(line, arg, " ")
14720  if (arg[1] == "#") {
14721    defundef = arg[2]
14722    mac1 = arg[3]
14723  } else {
14724    defundef = substr(arg[1], 2)
14725    mac1 = arg[2]
14726  }
14727  split(mac1, mac2, "(") #)
14728  macro = mac2[1]
14729  prefix = substr(line, 1, index(line, defundef) - 1)
14730  if (D_is_set[macro]) {
14731    # Preserve the white space surrounding the "#".
14732    print prefix "define", macro P[macro] D[macro]
14733    next
14734  } else {
14735    # Replace #undef with comments.  This is necessary, for example,
14736    # in the case of _POSIX_SOURCE, which is predefined and required
14737    # on some systems where configure will not decide to define it.
14738    if (defundef == "undef") {
14739      print "/*", prefix defundef, macro, "*/"
14740      next
14741    }
14742  }
14743}
14744{ print }
14745_ACAWK
14746_ACEOF
14747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14748  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14749fi # test -n "$CONFIG_HEADERS"
14750
14751
14752eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14753shift
14754for ac_tag
14755do
14756  case $ac_tag in
14757  :[FHLC]) ac_mode=$ac_tag; continue;;
14758  esac
14759  case $ac_mode$ac_tag in
14760  :[FHL]*:*);;
14761  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14762  :[FH]-) ac_tag=-:-;;
14763  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14764  esac
14765  ac_save_IFS=$IFS
14766  IFS=:
14767  set x $ac_tag
14768  IFS=$ac_save_IFS
14769  shift
14770  ac_file=$1
14771  shift
14772
14773  case $ac_mode in
14774  :L) ac_source=$1;;
14775  :[FH])
14776    ac_file_inputs=
14777    for ac_f
14778    do
14779      case $ac_f in
14780      -) ac_f="$ac_tmp/stdin";;
14781      *) # Look for the file first in the build tree, then in the source tree
14782	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14783	 # because $ac_f cannot contain `:'.
14784	 test -f "$ac_f" ||
14785	   case $ac_f in
14786	   [\\/$]*) false;;
14787	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14788	   esac ||
14789	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14790      esac
14791      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14792      as_fn_append ac_file_inputs " '$ac_f'"
14793    done
14794
14795    # Let's still pretend it is `configure' which instantiates (i.e., don't
14796    # use $as_me), people would be surprised to read:
14797    #    /* config.h.  Generated by config.status.  */
14798    configure_input='Generated from '`
14799	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14800	`' by configure.'
14801    if test x"$ac_file" != x-; then
14802      configure_input="$ac_file.  $configure_input"
14803      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14804$as_echo "$as_me: creating $ac_file" >&6;}
14805    fi
14806    # Neutralize special characters interpreted by sed in replacement strings.
14807    case $configure_input in #(
14808    *\&* | *\|* | *\\* )
14809       ac_sed_conf_input=`$as_echo "$configure_input" |
14810       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14811    *) ac_sed_conf_input=$configure_input;;
14812    esac
14813
14814    case $ac_tag in
14815    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14816      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14817    esac
14818    ;;
14819  esac
14820
14821  ac_dir=`$as_dirname -- "$ac_file" ||
14822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14823	 X"$ac_file" : 'X\(//\)[^/]' \| \
14824	 X"$ac_file" : 'X\(//\)$' \| \
14825	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14826$as_echo X"$ac_file" |
14827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14828	    s//\1/
14829	    q
14830	  }
14831	  /^X\(\/\/\)[^/].*/{
14832	    s//\1/
14833	    q
14834	  }
14835	  /^X\(\/\/\)$/{
14836	    s//\1/
14837	    q
14838	  }
14839	  /^X\(\/\).*/{
14840	    s//\1/
14841	    q
14842	  }
14843	  s/.*/./; q'`
14844  as_dir="$ac_dir"; as_fn_mkdir_p
14845  ac_builddir=.
14846
14847case "$ac_dir" in
14848.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14849*)
14850  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14851  # A ".." for each directory in $ac_dir_suffix.
14852  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14853  case $ac_top_builddir_sub in
14854  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14855  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14856  esac ;;
14857esac
14858ac_abs_top_builddir=$ac_pwd
14859ac_abs_builddir=$ac_pwd$ac_dir_suffix
14860# for backward compatibility:
14861ac_top_builddir=$ac_top_build_prefix
14862
14863case $srcdir in
14864  .)  # We are building in place.
14865    ac_srcdir=.
14866    ac_top_srcdir=$ac_top_builddir_sub
14867    ac_abs_top_srcdir=$ac_pwd ;;
14868  [\\/]* | ?:[\\/]* )  # Absolute name.
14869    ac_srcdir=$srcdir$ac_dir_suffix;
14870    ac_top_srcdir=$srcdir
14871    ac_abs_top_srcdir=$srcdir ;;
14872  *) # Relative name.
14873    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14874    ac_top_srcdir=$ac_top_build_prefix$srcdir
14875    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14876esac
14877ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14878
14879
14880  case $ac_mode in
14881  :F)
14882  #
14883  # CONFIG_FILE
14884  #
14885
14886  case $INSTALL in
14887  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14888  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14889  esac
14890  ac_MKDIR_P=$MKDIR_P
14891  case $MKDIR_P in
14892  [\\/$]* | ?:[\\/]* ) ;;
14893  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14894  esac
14895_ACEOF
14896
14897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14898# If the template does not know about datarootdir, expand it.
14899# FIXME: This hack should be removed a few years after 2.60.
14900ac_datarootdir_hack=; ac_datarootdir_seen=
14901ac_sed_dataroot='
14902/datarootdir/ {
14903  p
14904  q
14905}
14906/@datadir@/p
14907/@docdir@/p
14908/@infodir@/p
14909/@localedir@/p
14910/@mandir@/p'
14911case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14912*datarootdir*) ac_datarootdir_seen=yes;;
14913*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14914  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14915$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14916_ACEOF
14917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14918  ac_datarootdir_hack='
14919  s&@datadir@&$datadir&g
14920  s&@docdir@&$docdir&g
14921  s&@infodir@&$infodir&g
14922  s&@localedir@&$localedir&g
14923  s&@mandir@&$mandir&g
14924  s&\\\${datarootdir}&$datarootdir&g' ;;
14925esac
14926_ACEOF
14927
14928# Neutralize VPATH when `$srcdir' = `.'.
14929# Shell code in configure.ac might set extrasub.
14930# FIXME: do we really want to maintain this feature?
14931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932ac_sed_extra="$ac_vpsub
14933$extrasub
14934_ACEOF
14935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936:t
14937/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14938s|@configure_input@|$ac_sed_conf_input|;t t
14939s&@top_builddir@&$ac_top_builddir_sub&;t t
14940s&@top_build_prefix@&$ac_top_build_prefix&;t t
14941s&@srcdir@&$ac_srcdir&;t t
14942s&@abs_srcdir@&$ac_abs_srcdir&;t t
14943s&@top_srcdir@&$ac_top_srcdir&;t t
14944s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14945s&@builddir@&$ac_builddir&;t t
14946s&@abs_builddir@&$ac_abs_builddir&;t t
14947s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14948s&@INSTALL@&$ac_INSTALL&;t t
14949s&@MKDIR_P@&$ac_MKDIR_P&;t t
14950$ac_datarootdir_hack
14951"
14952eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14953  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14954
14955test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14956  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14957  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14958      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14960which seems to be undefined.  Please make sure it is defined" >&5
14961$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14962which seems to be undefined.  Please make sure it is defined" >&2;}
14963
14964  rm -f "$ac_tmp/stdin"
14965  case $ac_file in
14966  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14967  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14968  esac \
14969  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14970 ;;
14971  :H)
14972  #
14973  # CONFIG_HEADER
14974  #
14975  if test x"$ac_file" != x-; then
14976    {
14977      $as_echo "/* $configure_input  */" \
14978      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14979    } >"$ac_tmp/config.h" \
14980      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14981    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14982      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14983$as_echo "$as_me: $ac_file is unchanged" >&6;}
14984    else
14985      rm -f "$ac_file"
14986      mv "$ac_tmp/config.h" "$ac_file" \
14987	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14988    fi
14989  else
14990    $as_echo "/* $configure_input  */" \
14991      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14992      || as_fn_error $? "could not create -" "$LINENO" 5
14993  fi
14994# Compute "$ac_file"'s index in $config_headers.
14995_am_arg="$ac_file"
14996_am_stamp_count=1
14997for _am_header in $config_headers :; do
14998  case $_am_header in
14999    $_am_arg | $_am_arg:* )
15000      break ;;
15001    * )
15002      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15003  esac
15004done
15005echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15006$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15007	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15008	 X"$_am_arg" : 'X\(//\)$' \| \
15009	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15010$as_echo X"$_am_arg" |
15011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15012	    s//\1/
15013	    q
15014	  }
15015	  /^X\(\/\/\)[^/].*/{
15016	    s//\1/
15017	    q
15018	  }
15019	  /^X\(\/\/\)$/{
15020	    s//\1/
15021	    q
15022	  }
15023	  /^X\(\/\).*/{
15024	    s//\1/
15025	    q
15026	  }
15027	  s/.*/./; q'`/stamp-h$_am_stamp_count
15028 ;;
15029
15030  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15031$as_echo "$as_me: executing $ac_file commands" >&6;}
15032 ;;
15033  esac
15034
15035
15036  case $ac_file$ac_mode in
15037    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15038  # Older Autoconf quotes --file arguments for eval, but not when files
15039  # are listed without --file.  Let's play safe and only enable the eval
15040  # if we detect the quoting.
15041  # TODO: see whether this extra hack can be removed once we start
15042  # requiring Autoconf 2.70 or later.
15043  case $CONFIG_FILES in #(
15044  *\'*) :
15045    eval set x "$CONFIG_FILES" ;; #(
15046  *) :
15047    set x $CONFIG_FILES ;; #(
15048  *) :
15049     ;;
15050esac
15051  shift
15052  # Used to flag and report bootstrapping failures.
15053  am_rc=0
15054  for am_mf
15055  do
15056    # Strip MF so we end up with the name of the file.
15057    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15058    # Check whether this is an Automake generated Makefile which includes
15059    # dependency-tracking related rules and includes.
15060    # Grep'ing the whole file directly is not great: AIX grep has a line
15061    # limit of 2048, but all sed's we know have understand at least 4000.
15062    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15063      || continue
15064    am_dirpart=`$as_dirname -- "$am_mf" ||
15065$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15066	 X"$am_mf" : 'X\(//\)[^/]' \| \
15067	 X"$am_mf" : 'X\(//\)$' \| \
15068	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15069$as_echo X"$am_mf" |
15070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15071	    s//\1/
15072	    q
15073	  }
15074	  /^X\(\/\/\)[^/].*/{
15075	    s//\1/
15076	    q
15077	  }
15078	  /^X\(\/\/\)$/{
15079	    s//\1/
15080	    q
15081	  }
15082	  /^X\(\/\).*/{
15083	    s//\1/
15084	    q
15085	  }
15086	  s/.*/./; q'`
15087    am_filepart=`$as_basename -- "$am_mf" ||
15088$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15089	 X"$am_mf" : 'X\(//\)$' \| \
15090	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15091$as_echo X/"$am_mf" |
15092    sed '/^.*\/\([^/][^/]*\)\/*$/{
15093	    s//\1/
15094	    q
15095	  }
15096	  /^X\/\(\/\/\)$/{
15097	    s//\1/
15098	    q
15099	  }
15100	  /^X\/\(\/\).*/{
15101	    s//\1/
15102	    q
15103	  }
15104	  s/.*/./; q'`
15105    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15106      && sed -e '/# am--include-marker/d' "$am_filepart" \
15107        | $MAKE -f - am--depfiles" >&5
15108   (cd "$am_dirpart" \
15109      && sed -e '/# am--include-marker/d' "$am_filepart" \
15110        | $MAKE -f - am--depfiles) >&5 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } || am_rc=$?
15114  done
15115  if test $am_rc -ne 0; then
15116    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15118as_fn_error $? "Something went wrong bootstrapping makefile fragments
15119    for automatic dependency tracking.  If GNU make was not used, consider
15120    re-running the configure script with MAKE=\"gmake\" (or whatever is
15121    necessary).  You can also try re-running configure with the
15122    '--disable-dependency-tracking' option to at least be able to build
15123    the package (albeit without support for automatic dependency tracking).
15124See \`config.log' for more details" "$LINENO" 5; }
15125  fi
15126  { am_dirpart=; unset am_dirpart;}
15127  { am_filepart=; unset am_filepart;}
15128  { am_mf=; unset am_mf;}
15129  { am_rc=; unset am_rc;}
15130  rm -f conftest-deps.mk
15131}
15132 ;;
15133    "libtool":C)
15134
15135    # See if we are running on zsh, and set the options that allow our
15136    # commands through without removal of \ escapes.
15137    if test -n "${ZSH_VERSION+set}"; then
15138      setopt NO_GLOB_SUBST
15139    fi
15140
15141    cfgfile=${ofile}T
15142    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15143    $RM "$cfgfile"
15144
15145    cat <<_LT_EOF >> "$cfgfile"
15146#! $SHELL
15147# Generated automatically by $as_me ($PACKAGE) $VERSION
15148# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15149# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15150
15151# Provide generalized library-building support services.
15152# Written by Gordon Matzigkeit, 1996
15153
15154# Copyright (C) 2014 Free Software Foundation, Inc.
15155# This is free software; see the source for copying conditions.  There is NO
15156# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15157
15158# GNU Libtool is free software; you can redistribute it and/or modify
15159# it under the terms of the GNU General Public License as published by
15160# the Free Software Foundation; either version 2 of of the License, or
15161# (at your option) any later version.
15162#
15163# As a special exception to the GNU General Public License, if you
15164# distribute this file as part of a program or library that is built
15165# using GNU Libtool, you may include this file under the  same
15166# distribution terms that you use for the rest of that program.
15167#
15168# GNU Libtool is distributed in the hope that it will be useful, but
15169# WITHOUT ANY WARRANTY; without even the implied warranty of
15170# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15171# GNU General Public License for more details.
15172#
15173# You should have received a copy of the GNU General Public License
15174# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15175
15176
15177# The names of the tagged configurations supported by this script.
15178available_tags=''
15179
15180# Configured defaults for sys_lib_dlsearch_path munging.
15181: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15182
15183# ### BEGIN LIBTOOL CONFIG
15184
15185# Which release of libtool.m4 was used?
15186macro_version=$macro_version
15187macro_revision=$macro_revision
15188
15189# Whether or not to build shared libraries.
15190build_libtool_libs=$enable_shared
15191
15192# Whether or not to build static libraries.
15193build_old_libs=$enable_static
15194
15195# What type of objects to build.
15196pic_mode=$pic_mode
15197
15198# Whether or not to optimize for fast installation.
15199fast_install=$enable_fast_install
15200
15201# Shared archive member basename,for filename based shared library versioning on AIX.
15202shared_archive_member_spec=$shared_archive_member_spec
15203
15204# Shell to use when invoking shell scripts.
15205SHELL=$lt_SHELL
15206
15207# An echo program that protects backslashes.
15208ECHO=$lt_ECHO
15209
15210# The PATH separator for the build system.
15211PATH_SEPARATOR=$lt_PATH_SEPARATOR
15212
15213# The host system.
15214host_alias=$host_alias
15215host=$host
15216host_os=$host_os
15217
15218# The build system.
15219build_alias=$build_alias
15220build=$build
15221build_os=$build_os
15222
15223# A sed program that does not truncate output.
15224SED=$lt_SED
15225
15226# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15227Xsed="\$SED -e 1s/^X//"
15228
15229# A grep program that handles long lines.
15230GREP=$lt_GREP
15231
15232# An ERE matcher.
15233EGREP=$lt_EGREP
15234
15235# A literal string matcher.
15236FGREP=$lt_FGREP
15237
15238# A BSD- or MS-compatible name lister.
15239NM=$lt_NM
15240
15241# Whether we need soft or hard links.
15242LN_S=$lt_LN_S
15243
15244# What is the maximum length of a command?
15245max_cmd_len=$max_cmd_len
15246
15247# Object file suffix (normally "o").
15248objext=$ac_objext
15249
15250# Executable file suffix (normally "").
15251exeext=$exeext
15252
15253# whether the shell understands "unset".
15254lt_unset=$lt_unset
15255
15256# turn spaces into newlines.
15257SP2NL=$lt_lt_SP2NL
15258
15259# turn newlines into spaces.
15260NL2SP=$lt_lt_NL2SP
15261
15262# convert \$build file names to \$host format.
15263to_host_file_cmd=$lt_cv_to_host_file_cmd
15264
15265# convert \$build files to toolchain format.
15266to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15267
15268# An object symbol dumper.
15269OBJDUMP=$lt_OBJDUMP
15270
15271# Method to check whether dependent libraries are shared objects.
15272deplibs_check_method=$lt_deplibs_check_method
15273
15274# Command to use when deplibs_check_method = "file_magic".
15275file_magic_cmd=$lt_file_magic_cmd
15276
15277# How to find potential files when deplibs_check_method = "file_magic".
15278file_magic_glob=$lt_file_magic_glob
15279
15280# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15281want_nocaseglob=$lt_want_nocaseglob
15282
15283# DLL creation program.
15284DLLTOOL=$lt_DLLTOOL
15285
15286# Command to associate shared and link libraries.
15287sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15288
15289# The archiver.
15290AR=$lt_AR
15291
15292# Flags to create an archive.
15293AR_FLAGS=$lt_AR_FLAGS
15294
15295# How to feed a file listing to the archiver.
15296archiver_list_spec=$lt_archiver_list_spec
15297
15298# A symbol stripping program.
15299STRIP=$lt_STRIP
15300
15301# Commands used to install an old-style archive.
15302RANLIB=$lt_RANLIB
15303old_postinstall_cmds=$lt_old_postinstall_cmds
15304old_postuninstall_cmds=$lt_old_postuninstall_cmds
15305
15306# Whether to use a lock for old archive extraction.
15307lock_old_archive_extraction=$lock_old_archive_extraction
15308
15309# A C compiler.
15310LTCC=$lt_CC
15311
15312# LTCC compiler flags.
15313LTCFLAGS=$lt_CFLAGS
15314
15315# Take the output of nm and produce a listing of raw symbols and C names.
15316global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15317
15318# Transform the output of nm in a proper C declaration.
15319global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15320
15321# Transform the output of nm into a list of symbols to manually relocate.
15322global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15323
15324# Transform the output of nm in a C name address pair.
15325global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15326
15327# Transform the output of nm in a C name address pair when lib prefix is needed.
15328global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15329
15330# The name lister interface.
15331nm_interface=$lt_lt_cv_nm_interface
15332
15333# Specify filename containing input files for \$NM.
15334nm_file_list_spec=$lt_nm_file_list_spec
15335
15336# The root where to search for dependent libraries,and where our libraries should be installed.
15337lt_sysroot=$lt_sysroot
15338
15339# Command to truncate a binary pipe.
15340lt_truncate_bin=$lt_lt_cv_truncate_bin
15341
15342# The name of the directory that contains temporary libtool files.
15343objdir=$objdir
15344
15345# Used to examine libraries when file_magic_cmd begins with "file".
15346MAGIC_CMD=$MAGIC_CMD
15347
15348# Must we lock files when doing compilation?
15349need_locks=$lt_need_locks
15350
15351# Manifest tool.
15352MANIFEST_TOOL=$lt_MANIFEST_TOOL
15353
15354# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15355DSYMUTIL=$lt_DSYMUTIL
15356
15357# Tool to change global to local symbols on Mac OS X.
15358NMEDIT=$lt_NMEDIT
15359
15360# Tool to manipulate fat objects and archives on Mac OS X.
15361LIPO=$lt_LIPO
15362
15363# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15364OTOOL=$lt_OTOOL
15365
15366# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15367OTOOL64=$lt_OTOOL64
15368
15369# Old archive suffix (normally "a").
15370libext=$libext
15371
15372# Shared library suffix (normally ".so").
15373shrext_cmds=$lt_shrext_cmds
15374
15375# The commands to extract the exported symbol list from a shared archive.
15376extract_expsyms_cmds=$lt_extract_expsyms_cmds
15377
15378# Variables whose values should be saved in libtool wrapper scripts and
15379# restored at link time.
15380variables_saved_for_relink=$lt_variables_saved_for_relink
15381
15382# Do we need the "lib" prefix for modules?
15383need_lib_prefix=$need_lib_prefix
15384
15385# Do we need a version for libraries?
15386need_version=$need_version
15387
15388# Library versioning type.
15389version_type=$version_type
15390
15391# Shared library runtime path variable.
15392runpath_var=$runpath_var
15393
15394# Shared library path variable.
15395shlibpath_var=$shlibpath_var
15396
15397# Is shlibpath searched before the hard-coded library search path?
15398shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15399
15400# Format of library name prefix.
15401libname_spec=$lt_libname_spec
15402
15403# List of archive names.  First name is the real one, the rest are links.
15404# The last name is the one that the linker finds with -lNAME
15405library_names_spec=$lt_library_names_spec
15406
15407# The coded name of the library, if different from the real name.
15408soname_spec=$lt_soname_spec
15409
15410# Permission mode override for installation of shared libraries.
15411install_override_mode=$lt_install_override_mode
15412
15413# Command to use after installation of a shared archive.
15414postinstall_cmds=$lt_postinstall_cmds
15415
15416# Command to use after uninstallation of a shared archive.
15417postuninstall_cmds=$lt_postuninstall_cmds
15418
15419# Commands used to finish a libtool library installation in a directory.
15420finish_cmds=$lt_finish_cmds
15421
15422# As "finish_cmds", except a single script fragment to be evaled but
15423# not shown.
15424finish_eval=$lt_finish_eval
15425
15426# Whether we should hardcode library paths into libraries.
15427hardcode_into_libs=$hardcode_into_libs
15428
15429# Compile-time system search path for libraries.
15430sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15431
15432# Detected run-time system search path for libraries.
15433sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15434
15435# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15436configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15437
15438# Whether dlopen is supported.
15439dlopen_support=$enable_dlopen
15440
15441# Whether dlopen of programs is supported.
15442dlopen_self=$enable_dlopen_self
15443
15444# Whether dlopen of statically linked programs is supported.
15445dlopen_self_static=$enable_dlopen_self_static
15446
15447# Commands to strip libraries.
15448old_striplib=$lt_old_striplib
15449striplib=$lt_striplib
15450
15451
15452# The linker used to build libraries.
15453LD=$lt_LD
15454
15455# How to create reloadable object files.
15456reload_flag=$lt_reload_flag
15457reload_cmds=$lt_reload_cmds
15458
15459# Commands used to build an old-style archive.
15460old_archive_cmds=$lt_old_archive_cmds
15461
15462# A language specific compiler.
15463CC=$lt_compiler
15464
15465# Is the compiler the GNU compiler?
15466with_gcc=$GCC
15467
15468# Compiler flag to turn off builtin functions.
15469no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15470
15471# Additional compiler flags for building library objects.
15472pic_flag=$lt_lt_prog_compiler_pic
15473
15474# How to pass a linker flag through the compiler.
15475wl=$lt_lt_prog_compiler_wl
15476
15477# Compiler flag to prevent dynamic linking.
15478link_static_flag=$lt_lt_prog_compiler_static
15479
15480# Does compiler simultaneously support -c and -o options?
15481compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15482
15483# Whether or not to add -lc for building shared libraries.
15484build_libtool_need_lc=$archive_cmds_need_lc
15485
15486# Whether or not to disallow shared libs when runtime libs are static.
15487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15488
15489# Compiler flag to allow reflexive dlopens.
15490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15491
15492# Compiler flag to generate shared objects directly from archives.
15493whole_archive_flag_spec=$lt_whole_archive_flag_spec
15494
15495# Whether the compiler copes with passing no objects directly.
15496compiler_needs_object=$lt_compiler_needs_object
15497
15498# Create an old-style archive from a shared archive.
15499old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15500
15501# Create a temporary old-style archive to link instead of a shared archive.
15502old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15503
15504# Commands used to build a shared archive.
15505archive_cmds=$lt_archive_cmds
15506archive_expsym_cmds=$lt_archive_expsym_cmds
15507
15508# Commands used to build a loadable module if different from building
15509# a shared archive.
15510module_cmds=$lt_module_cmds
15511module_expsym_cmds=$lt_module_expsym_cmds
15512
15513# Whether we are building with GNU ld or not.
15514with_gnu_ld=$lt_with_gnu_ld
15515
15516# Flag that allows shared libraries with undefined symbols to be built.
15517allow_undefined_flag=$lt_allow_undefined_flag
15518
15519# Flag that enforces no undefined symbols.
15520no_undefined_flag=$lt_no_undefined_flag
15521
15522# Flag to hardcode \$libdir into a binary during linking.
15523# This must work even if \$libdir does not exist
15524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15525
15526# Whether we need a single "-rpath" flag with a separated argument.
15527hardcode_libdir_separator=$lt_hardcode_libdir_separator
15528
15529# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15530# DIR into the resulting binary.
15531hardcode_direct=$hardcode_direct
15532
15533# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15534# DIR into the resulting binary and the resulting library dependency is
15535# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15536# library is relocated.
15537hardcode_direct_absolute=$hardcode_direct_absolute
15538
15539# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15540# into the resulting binary.
15541hardcode_minus_L=$hardcode_minus_L
15542
15543# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15544# into the resulting binary.
15545hardcode_shlibpath_var=$hardcode_shlibpath_var
15546
15547# Set to "yes" if building a shared library automatically hardcodes DIR
15548# into the library and all subsequent libraries and executables linked
15549# against it.
15550hardcode_automatic=$hardcode_automatic
15551
15552# Set to yes if linker adds runtime paths of dependent libraries
15553# to runtime path list.
15554inherit_rpath=$inherit_rpath
15555
15556# Whether libtool must link a program against all its dependency libraries.
15557link_all_deplibs=$link_all_deplibs
15558
15559# Set to "yes" if exported symbols are required.
15560always_export_symbols=$always_export_symbols
15561
15562# The commands to list exported symbols.
15563export_symbols_cmds=$lt_export_symbols_cmds
15564
15565# Symbols that should not be listed in the preloaded symbols.
15566exclude_expsyms=$lt_exclude_expsyms
15567
15568# Symbols that must always be exported.
15569include_expsyms=$lt_include_expsyms
15570
15571# Commands necessary for linking programs (against libraries) with templates.
15572prelink_cmds=$lt_prelink_cmds
15573
15574# Commands necessary for finishing linking programs.
15575postlink_cmds=$lt_postlink_cmds
15576
15577# Specify filename containing input files.
15578file_list_spec=$lt_file_list_spec
15579
15580# How to hardcode a shared library path into an executable.
15581hardcode_action=$hardcode_action
15582
15583# ### END LIBTOOL CONFIG
15584
15585_LT_EOF
15586
15587    cat <<'_LT_EOF' >> "$cfgfile"
15588
15589# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15590
15591# func_munge_path_list VARIABLE PATH
15592# -----------------------------------
15593# VARIABLE is name of variable containing _space_ separated list of
15594# directories to be munged by the contents of PATH, which is string
15595# having a format:
15596# "DIR[:DIR]:"
15597#       string "DIR[ DIR]" will be prepended to VARIABLE
15598# ":DIR[:DIR]"
15599#       string "DIR[ DIR]" will be appended to VARIABLE
15600# "DIRP[:DIRP]::[DIRA:]DIRA"
15601#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15602#       "DIRA[ DIRA]" will be appended to VARIABLE
15603# "DIR[:DIR]"
15604#       VARIABLE will be replaced by "DIR[ DIR]"
15605func_munge_path_list ()
15606{
15607    case x$2 in
15608    x)
15609        ;;
15610    *:)
15611        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15612        ;;
15613    x:*)
15614        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15615        ;;
15616    *::*)
15617        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15618        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15619        ;;
15620    *)
15621        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15622        ;;
15623    esac
15624}
15625
15626
15627# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15628func_cc_basename ()
15629{
15630    for cc_temp in $*""; do
15631      case $cc_temp in
15632        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15633        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15634        \-*) ;;
15635        *) break;;
15636      esac
15637    done
15638    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15639}
15640
15641
15642# ### END FUNCTIONS SHARED WITH CONFIGURE
15643
15644_LT_EOF
15645
15646  case $host_os in
15647  aix3*)
15648    cat <<\_LT_EOF >> "$cfgfile"
15649# AIX sometimes has problems with the GCC collect2 program.  For some
15650# reason, if we set the COLLECT_NAMES environment variable, the problems
15651# vanish in a puff of smoke.
15652if test set != "${COLLECT_NAMES+set}"; then
15653  COLLECT_NAMES=
15654  export COLLECT_NAMES
15655fi
15656_LT_EOF
15657    ;;
15658  esac
15659
15660
15661ltmain=$ac_aux_dir/ltmain.sh
15662
15663
15664  # We use sed instead of cat because bash on DJGPP gets confused if
15665  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15666  # text mode, it properly converts lines to CR/LF.  This bash problem
15667  # is reportedly fixed, but why not run on old versions too?
15668  sed '$q' "$ltmain" >> "$cfgfile" \
15669     || (rm -f "$cfgfile"; exit 1)
15670
15671   mv -f "$cfgfile" "$ofile" ||
15672    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15673  chmod +x "$ofile"
15674
15675 ;;
15676
15677  esac
15678done # for ac_tag
15679
15680
15681as_fn_exit 0
15682_ACEOF
15683ac_clean_files=$ac_clean_files_save
15684
15685test $ac_write_fail = 0 ||
15686  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15687
15688
15689# configure is writing to config.log, and then calls config.status.
15690# config.status does its own redirection, appending to config.log.
15691# Unfortunately, on DOS this fails, as config.log is still kept open
15692# by configure, so config.status won't be able to write to it; its
15693# output is simply discarded.  So we exec the FD to /dev/null,
15694# effectively closing config.log, so it can be properly (re)opened and
15695# appended to by config.status.  When coming back to configure, we
15696# need to make the FD available again.
15697if test "$no_create" != yes; then
15698  ac_cs_success=:
15699  ac_config_status_args=
15700  test "$silent" = yes &&
15701    ac_config_status_args="$ac_config_status_args --quiet"
15702  exec 5>/dev/null
15703  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15704  exec 5>>config.log
15705  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15706  # would make configure fail if this is the last instruction.
15707  $ac_cs_success || as_fn_exit 1
15708fi
15709if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15711$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15712fi
15713
15714