1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for scew 1.2.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='scew'
589PACKAGE_TARNAME='scew'
590PACKAGE_VERSION='1.2.0'
591PACKAGE_STRING='scew 1.2.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="scew/element.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636SCEW_UNICODE_WCHAR_T_FALSE
637SCEW_UNICODE_WCHAR_T_TRUE
638CHECK_TESTS_FALSE
639CHECK_TESTS_TRUE
640CHECK_LIBS
641CHECK_CFLAGS
642PKG_CONFIG_LIBDIR
643PKG_CONFIG_PATH
644PKG_CONFIG
645DOC_FALSE
646DOC_TRUE
647enable_latex_docs
648enable_html_docs
649enable_dot
650DOT
651LATEX
652DOXYGEN
653CPP
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670EGREP
671GREP
672SED
673LIBTOOL
674OBJDUMP
675DLLTOOL
676AS
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705am__untar
706am__tar
707AMTAR
708am__leading_dot
709SET_MAKE
710AWK
711mkdir_p
712MKDIR_P
713INSTALL_STRIP_PROGRAM
714STRIP
715install_sh
716MAKEINFO
717AUTOHEADER
718AUTOMAKE
719AUTOCONF
720ACLOCAL
721VERSION
722PACKAGE
723CYGPATH_W
724am__isrc
725INSTALL_DATA
726INSTALL_SCRIPT
727INSTALL_PROGRAM
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL
766am__quote'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770enable_silent_rules
771enable_dependency_tracking
772enable_shared
773enable_static
774with_pic
775enable_fast_install
776with_aix_soname
777with_gnu_ld
778with_sysroot
779enable_libtool_lock
780enable_debug
781enable_threads
782enable_doxygen
783enable_dot
784enable_html_docs
785enable_latex_docs
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795LT_SYS_LIBRARY_PATH
796CPP
797PKG_CONFIG
798PKG_CONFIG_PATH
799PKG_CONFIG_LIBDIR
800CHECK_CFLAGS
801CHECK_LIBS'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856  # If the previous option needs an argument, assign it.
857  if test -n "$ac_prev"; then
858    eval $ac_prev=\$ac_option
859    ac_prev=
860    continue
861  fi
862
863  case $ac_option in
864  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865  *=)   ac_optarg= ;;
866  *)    ac_optarg=yes ;;
867  esac
868
869  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=no ;;
1168
1169  --x)
1170    # Obsolete; use --with-x.
1171    with_x=yes ;;
1172
1173  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174  | --x-incl | --x-inc | --x-in | --x-i)
1175    ac_prev=x_includes ;;
1176  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178    x_includes=$ac_optarg ;;
1179
1180  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182    ac_prev=x_libraries ;;
1183  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185    x_libraries=$ac_optarg ;;
1186
1187  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    case $ac_envvar in #(
1195      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197    esac
1198    eval $ac_envvar=\$ac_optarg
1199    export $ac_envvar ;;
1200
1201  *)
1202    # FIXME: should be removed in autoconf 3.0.
1203    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207    ;;
1208
1209  esac
1210done
1211
1212if test -n "$ac_prev"; then
1213  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214  as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218  case $enable_option_checking in
1219    no) ;;
1220    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222  esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227		datadir sysconfdir sharedstatedir localstatedir includedir \
1228		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229		libdir localedir mandir
1230do
1231  eval ac_val=\$$ac_var
1232  # Remove trailing slashes.
1233  case $ac_val in
1234    */ )
1235      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236      eval $ac_var=\$ac_val;;
1237  esac
1238  # Be sure to have absolute directory names.
1239  case $ac_val in
1240    [\\/$]* | ?:[\\/]* )  continue;;
1241    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242  esac
1243  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255  if test "x$build_alias" = x; then
1256    cross_compiling=maybe
1257  elif test "x$build_alias" != "x$host_alias"; then
1258    cross_compiling=yes
1259  fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271  as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273  as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278  ac_srcdir_defaulted=yes
1279  # Try the directory containing this script, then the parent directory.
1280  ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282	 X"$as_myself" : 'X\(//\)[^/]' \| \
1283	 X"$as_myself" : 'X\(//\)$' \| \
1284	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)[^/].*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\).*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  s/.*/./; q'`
1303  srcdir=$ac_confdir
1304  if test ! -r "$srcdir/$ac_unique_file"; then
1305    srcdir=..
1306  fi
1307else
1308  ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317	pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320  srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_env_${ac_var}_value=\$${ac_var}
1331  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339  # Omit some internal or obsolete options to make the list less imposing.
1340  # This message is too long to be a string in the A/UX 3.1 sh.
1341  cat <<_ACEOF
1342\`configure' configures scew 1.2.0 to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352  -h, --help              display this help and exit
1353      --help=short        display options specific to this package
1354      --help=recursive    display the short help of all the included packages
1355  -V, --version           display version information and exit
1356  -q, --quiet, --silent   do not print \`checking ...' messages
1357      --cache-file=FILE   cache test results in FILE [disabled]
1358  -C, --config-cache      alias for \`--cache-file=config.cache'
1359  -n, --no-create         do not create output files
1360      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363  --prefix=PREFIX         install architecture-independent files in PREFIX
1364                          [$ac_default_prefix]
1365  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                          [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376  --bindir=DIR            user executables [EPREFIX/bin]
1377  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378  --libexecdir=DIR        program executables [EPREFIX/libexec]
1379  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382  --libdir=DIR            object code libraries [EPREFIX/lib]
1383  --includedir=DIR        C header files [PREFIX/include]
1384  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1385  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1386  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1387  --infodir=DIR           info documentation [DATAROOTDIR/info]
1388  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1389  --mandir=DIR            man documentation [DATAROOTDIR/man]
1390  --docdir=DIR            documentation root [DATAROOTDIR/doc/scew]
1391  --htmldir=DIR           html documentation [DOCDIR]
1392  --dvidir=DIR            dvi documentation [DOCDIR]
1393  --pdfdir=DIR            pdf documentation [DOCDIR]
1394  --psdir=DIR             ps documentation [DOCDIR]
1395_ACEOF
1396
1397  cat <<\_ACEOF
1398
1399Program names:
1400  --program-prefix=PREFIX            prepend PREFIX to installed program names
1401  --program-suffix=SUFFIX            append SUFFIX to installed program names
1402  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404System types:
1405  --build=BUILD     configure for building on BUILD [guessed]
1406  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411  case $ac_init_help in
1412     short | recursive ) echo "Configuration of scew 1.2.0:";;
1413   esac
1414  cat <<\_ACEOF
1415
1416Optional Features:
1417  --disable-option-checking  ignore unrecognized --enable/--with options
1418  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420  --enable-silent-rules   less verbose build output (undo: "make V=1")
1421  --disable-silent-rules  verbose build output (undo: "make V=0")
1422  --enable-dependency-tracking
1423                          do not reject slow dependency extractors
1424  --disable-dependency-tracking
1425                          speeds up one-time build
1426  --enable-shared[=PKGS]  build shared libraries [default=yes]
1427  --enable-static[=PKGS]  build static libraries [default=yes]
1428  --enable-fast-install[=PKGS]
1429                          optimize for fast installation [default=yes]
1430  --disable-libtool-lock  avoid locking (might break parallel builds)
1431  --enable-debug          turn on debug support [default=no]
1432  --enable-threads        turn on basic thread support [default=yes]
1433  --enable-doxygen        enable documentation generation with doxygen (auto)
1434  --enable-dot            use 'dot' to generate graphs in doxygen (no)
1435  --enable-html-docs      enable HTML generation with doxygen (yes)
1436  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                          both]
1443  --with-aix-soname=aix|svr4|both
1444                          shared library versioning (aka "SONAME") variant to
1445                          provide on AIX, [default=aix].
1446  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1448                          compiler's sysroot if not specified).
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  LT_SYS_LIBRARY_PATH
1459              User-defined run-time library search path.
1460  CPP         C preprocessor
1461  PKG_CONFIG  path to pkg-config utility
1462  PKG_CONFIG_PATH
1463              directories to add to pkg-config's search path
1464  PKG_CONFIG_LIBDIR
1465              path overriding pkg-config's built-in search path
1466  CHECK_CFLAGS
1467              C compiler flags for CHECK, overriding pkg-config
1468  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to the package provider.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" ||
1482      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483      continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for guested configure.
1520    if test -f "$ac_srcdir/configure.gnu"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523    elif test -f "$ac_srcdir/configure"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure" --help=recursive
1526    else
1527      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528    fi || ac_status=$?
1529    cd "$ac_pwd" || { ac_status=$?; break; }
1530  done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535  cat <<\_ACEOF
1536scew configure 1.2.0
1537generated by GNU Autoconf 2.69
1538
1539Copyright (C) 2012 Free Software Foundation, Inc.
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543  exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext
1557  if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564  (eval "$ac_compile") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest.$ac_objext; then :
1576  ac_retval=0
1577else
1578  $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581	ac_retval=1
1582fi
1583  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584  as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_link LINENO
1589# -----------------------
1590# Try to link conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_link ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext conftest$ac_exeext
1595  if { { ac_try="$ac_link"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_link") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_c_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest$ac_exeext && {
1614	 test "$cross_compiling" = yes ||
1615	 test -x conftest$ac_exeext
1616       }; then :
1617  ac_retval=0
1618else
1619  $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622	ac_retval=1
1623fi
1624  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626  # interfere with the next link command; also delete a directory that is
1627  # left behind by Apple's compiler.  We do this before executing the actions.
1628  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_link
1633
1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635# -------------------------------------------------------
1636# Tests whether HEADER exists and can be compiled using the include files in
1637# INCLUDES, setting the cache variable VAR accordingly.
1638ac_fn_c_check_header_compile ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652  eval "$3=yes"
1653else
1654  eval "$3=no"
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663} # ac_fn_c_check_header_compile
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } > conftest.i && {
1687	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688	 test ! -s conftest.err
1689       }; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695    ac_retval=1
1696fi
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_link") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720  { { case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_try") 2>&5
1727  ac_status=$?
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; }; }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: program exited with status $ac_status" >&5
1733       $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736       ac_retval=$ac_status
1737fi
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_run
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762    which can conflict with char $2 (); below.
1763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764    <limits.h> exists even on freestanding compilers.  */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802    conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810
1811# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812# -------------------------------------------------------
1813# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814# the include files in INCLUDES and setting the cache variable VAR
1815# accordingly.
1816ac_fn_c_check_header_mongrel ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if eval \${$3+:} false; then :
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
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828else
1829  # Is the header compilable?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831$as_echo_n "checking $2 usability... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838  ac_header_compiler=yes
1839else
1840  ac_header_compiler=no
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844$as_echo "$ac_header_compiler" >&6; }
1845
1846# Is the header present?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848$as_echo_n "checking $2 presence... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_cpp "$LINENO"; then :
1854  ac_header_preproc=yes
1855else
1856  ac_header_preproc=no
1857fi
1858rm -f conftest.err conftest.i conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860$as_echo "$ac_header_preproc" >&6; }
1861
1862# So?  What about this header?
1863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864  yes:no: )
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869    ;;
1870  no:yes:* )
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1874$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1878$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881    ;;
1882esac
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887else
1888  eval "$3=\$ac_header_compiler"
1889fi
1890eval ac_res=\$$3
1891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893fi
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_header_mongrel
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by scew $as_me 1.2.0, which was
1902generated by GNU Autoconf 2.69.  Invocation command line was
1903
1904  $ $0 $@
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938    $as_echo "PATH: $as_dir"
1939  done
1940IFS=$as_save_IFS
1941
1942} >&5
1943
1944cat >&5 <<_ACEOF
1945
1946
1947## ----------- ##
1948## Core tests. ##
1949## ----------- ##
1950
1951_ACEOF
1952
1953
1954# Keep a trace of the command line.
1955# Strip out --no-create and --no-recursion so they do not pile up.
1956# Strip out --silent because we don't want to record it for future runs.
1957# Also quote any args containing shell meta-characters.
1958# Make two passes to allow for proper duplicate-argument suppression.
1959ac_configure_args=
1960ac_configure_args0=
1961ac_configure_args1=
1962ac_must_keep_next=false
1963for ac_pass in 1 2
1964do
1965  for ac_arg
1966  do
1967    case $ac_arg in
1968    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970    | -silent | --silent | --silen | --sile | --sil)
1971      continue ;;
1972    *\'*)
1973      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974    esac
1975    case $ac_pass in
1976    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977    2)
1978      as_fn_append ac_configure_args1 " '$ac_arg'"
1979      if test $ac_must_keep_next = true; then
1980	ac_must_keep_next=false # Got value, back to normal.
1981      else
1982	case $ac_arg in
1983	  *=* | --config-cache | -C | -disable-* | --disable-* \
1984	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986	  | -with-* | --with-* | -without-* | --without-* | --x)
1987	    case "$ac_configure_args0 " in
1988	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989	    esac
1990	    ;;
1991	  -* ) ac_must_keep_next=true ;;
1992	esac
1993      fi
1994      as_fn_append ac_configure_args " '$ac_arg'"
1995      ;;
1996    esac
1997  done
1998done
1999{ ac_configure_args0=; unset ac_configure_args0;}
2000{ ac_configure_args1=; unset ac_configure_args1;}
2001
2002# When interrupted or exit'd, cleanup temporary files, and complete
2003# config.log.  We remove comments because anyway the quotes in there
2004# would cause problems or look ugly.
2005# WARNING: Use '\'' to represent an apostrophe within the trap.
2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007trap 'exit_status=$?
2008  # Save into config.log some information that might help in debugging.
2009  {
2010    echo
2011
2012    $as_echo "## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##"
2015    echo
2016    # The following way of writing the cache mishandles newlines in values,
2017(
2018  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019    eval ac_val=\$$ac_var
2020    case $ac_val in #(
2021    *${as_nl}*)
2022      case $ac_var in #(
2023      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025      esac
2026      case $ac_var in #(
2027      _ | IFS | as_nl) ;; #(
2028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029      *) { eval $ac_var=; unset $ac_var;} ;;
2030      esac ;;
2031    esac
2032  done
2033  (set) 2>&1 |
2034    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035    *${as_nl}ac_space=\ *)
2036      sed -n \
2037	"s/'\''/'\''\\\\'\'''\''/g;
2038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039      ;; #(
2040    *)
2041      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042      ;;
2043    esac |
2044    sort
2045)
2046    echo
2047
2048    $as_echo "## ----------------- ##
2049## Output variables. ##
2050## ----------------- ##"
2051    echo
2052    for ac_var in $ac_subst_vars
2053    do
2054      eval ac_val=\$$ac_var
2055      case $ac_val in
2056      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057      esac
2058      $as_echo "$ac_var='\''$ac_val'\''"
2059    done | sort
2060    echo
2061
2062    if test -n "$ac_subst_files"; then
2063      $as_echo "## ------------------- ##
2064## File substitutions. ##
2065## ------------------- ##"
2066      echo
2067      for ac_var in $ac_subst_files
2068      do
2069	eval ac_val=\$$ac_var
2070	case $ac_val in
2071	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072	esac
2073	$as_echo "$ac_var='\''$ac_val'\''"
2074      done | sort
2075      echo
2076    fi
2077
2078    if test -s confdefs.h; then
2079      $as_echo "## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##"
2082      echo
2083      cat confdefs.h
2084      echo
2085    fi
2086    test "$ac_signal" != 0 &&
2087      $as_echo "$as_me: caught signal $ac_signal"
2088    $as_echo "$as_me: exit $exit_status"
2089  } >&5
2090  rm -f core *.core core.conftest.* &&
2091    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092    exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102$as_echo "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_NAME "$PACKAGE_NAME"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_VERSION "$PACKAGE_VERSION"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_STRING "$PACKAGE_STRING"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_URL "$PACKAGE_URL"
2128_ACEOF
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133ac_site_file1=NONE
2134ac_site_file2=NONE
2135if test -n "$CONFIG_SITE"; then
2136  # We do not want a PATH search for config.site.
2137  case $CONFIG_SITE in #((
2138    -*)  ac_site_file1=./$CONFIG_SITE;;
2139    */*) ac_site_file1=$CONFIG_SITE;;
2140    *)   ac_site_file1=./$CONFIG_SITE;;
2141  esac
2142elif test "x$prefix" != xNONE; then
2143  ac_site_file1=$prefix/share/config.site
2144  ac_site_file2=$prefix/etc/config.site
2145else
2146  ac_site_file1=$ac_default_prefix/share/config.site
2147  ac_site_file2=$ac_default_prefix/etc/config.site
2148fi
2149for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150do
2151  test "x$ac_site_file" = xNONE && continue
2152  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155    sed 's/^/| /' "$ac_site_file" >&5
2156    . "$ac_site_file" \
2157      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159as_fn_error $? "failed to load site script $ac_site_file
2160See \`config.log' for more details" "$LINENO" 5; }
2161  fi
2162done
2163
2164if test -r "$cache_file"; then
2165  # Some versions of bash will fail to source /dev/null (special files
2166  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2167  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169$as_echo "$as_me: loading cache $cache_file" >&6;}
2170    case $cache_file in
2171      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172      *)                      . "./$cache_file";;
2173    esac
2174  fi
2175else
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177$as_echo "$as_me: creating cache $cache_file" >&6;}
2178  >$cache_file
2179fi
2180
2181# Check that the precious variables saved in the cache have kept the same
2182# value.
2183ac_cache_corrupted=false
2184for ac_var in $ac_precious_vars; do
2185  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186  eval ac_new_set=\$ac_env_${ac_var}_set
2187  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188  eval ac_new_val=\$ac_env_${ac_var}_value
2189  case $ac_old_set,$ac_new_set in
2190    set,)
2191      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193      ac_cache_corrupted=: ;;
2194    ,set)
2195      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197      ac_cache_corrupted=: ;;
2198    ,);;
2199    *)
2200      if test "x$ac_old_val" != "x$ac_new_val"; then
2201	# differences in whitespace do not lead to failure.
2202	ac_old_val_w=`echo x $ac_old_val`
2203	ac_new_val_w=`echo x $ac_new_val`
2204	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207	  ac_cache_corrupted=:
2208	else
2209	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211	  eval $ac_var=\$ac_old_val
2212	fi
2213	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2214$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2216$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2217      fi;;
2218  esac
2219  # Pass precious variables to config.status.
2220  if test "$ac_new_set" = set; then
2221    case $ac_new_val in
2222    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223    *) ac_arg=$ac_var=$ac_new_val ;;
2224    esac
2225    case " $ac_configure_args " in
2226      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2227      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228    esac
2229  fi
2230done
2231if $ac_cache_corrupted; then
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237fi
2238## -------------------- ##
2239## Main body of script. ##
2240## -------------------- ##
2241
2242ac_ext=c
2243ac_cpp='$CPP $CPPFLAGS'
2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250ac_config_headers="$ac_config_headers config.h"
2251
2252am__api_version='1.16'
2253
2254ac_aux_dir=
2255for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2256  if test -f "$ac_dir/install-sh"; then
2257    ac_aux_dir=$ac_dir
2258    ac_install_sh="$ac_aux_dir/install-sh -c"
2259    break
2260  elif test -f "$ac_dir/install.sh"; then
2261    ac_aux_dir=$ac_dir
2262    ac_install_sh="$ac_aux_dir/install.sh -c"
2263    break
2264  elif test -f "$ac_dir/shtool"; then
2265    ac_aux_dir=$ac_dir
2266    ac_install_sh="$ac_aux_dir/shtool install -c"
2267    break
2268  fi
2269done
2270if test -z "$ac_aux_dir"; then
2271  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2272fi
2273
2274# These three variables are undocumented and unsupported,
2275# and are intended to be withdrawn in a future Autoconf release.
2276# They can cause serious problems if a builder's source tree is in a directory
2277# whose full name contains unusual characters.
2278ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2279ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2280ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2281
2282
2283# Find a good install program.  We prefer a C program (faster),
2284# so one script is as good as another.  But avoid the broken or
2285# incompatible versions:
2286# SysV /etc/install, /usr/sbin/install
2287# SunOS /usr/etc/install
2288# IRIX /sbin/install
2289# AIX /bin/install
2290# AmigaOS /C/install, which installs bootblocks on floppy discs
2291# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2292# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2293# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2294# OS/2's system install, which has a completely different semantic
2295# ./install, which can be erroneously created by make from ./install.sh.
2296# Reject install programs that cannot install multiple files.
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2298$as_echo_n "checking for a BSD-compatible install... " >&6; }
2299if test -z "$INSTALL"; then
2300if ${ac_cv_path_install+:} false; then :
2301  $as_echo_n "(cached) " >&6
2302else
2303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306  IFS=$as_save_IFS
2307  test -z "$as_dir" && as_dir=.
2308    # Account for people who put trailing slashes in PATH elements.
2309case $as_dir/ in #((
2310  ./ | .// | /[cC]/* | \
2311  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2312  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2313  /usr/ucb/* ) ;;
2314  *)
2315    # OSF1 and SCO ODT 3.0 have their own names for install.
2316    # Don't use installbsd from OSF since it installs stuff as root
2317    # by default.
2318    for ac_prog in ginstall scoinst install; do
2319      for ac_exec_ext in '' $ac_executable_extensions; do
2320	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2321	  if test $ac_prog = install &&
2322	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323	    # AIX install.  It has an incompatible calling convention.
2324	    :
2325	  elif test $ac_prog = install &&
2326	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327	    # program-specific install script used by HP pwplus--don't use.
2328	    :
2329	  else
2330	    rm -rf conftest.one conftest.two conftest.dir
2331	    echo one > conftest.one
2332	    echo two > conftest.two
2333	    mkdir conftest.dir
2334	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2335	      test -s conftest.one && test -s conftest.two &&
2336	      test -s conftest.dir/conftest.one &&
2337	      test -s conftest.dir/conftest.two
2338	    then
2339	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2340	      break 3
2341	    fi
2342	  fi
2343	fi
2344      done
2345    done
2346    ;;
2347esac
2348
2349  done
2350IFS=$as_save_IFS
2351
2352rm -rf conftest.one conftest.two conftest.dir
2353
2354fi
2355  if test "${ac_cv_path_install+set}" = set; then
2356    INSTALL=$ac_cv_path_install
2357  else
2358    # As a last resort, use the slow shell script.  Don't cache a
2359    # value for INSTALL within a source directory, because that will
2360    # break other packages using the cache if that directory is
2361    # removed, or if the value is a relative name.
2362    INSTALL=$ac_install_sh
2363  fi
2364fi
2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2366$as_echo "$INSTALL" >&6; }
2367
2368# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2369# It thinks the first close brace ends the variable substitution.
2370test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2371
2372test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2373
2374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2375
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2377$as_echo_n "checking whether build environment is sane... " >&6; }
2378# Reject unsafe characters in $srcdir or the absolute working directory
2379# name.  Accept space and tab only in the latter.
2380am_lf='
2381'
2382case `pwd` in
2383  *[\\\"\#\$\&\'\`$am_lf]*)
2384    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2385esac
2386case $srcdir in
2387  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2388    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2389esac
2390
2391# Do 'set' in a subshell so we don't clobber the current shell's
2392# arguments.  Must try -L first in case configure is actually a
2393# symlink; some systems play weird games with the mod time of symlinks
2394# (eg FreeBSD returns the mod time of the symlink's containing
2395# directory).
2396if (
2397   am_has_slept=no
2398   for am_try in 1 2; do
2399     echo "timestamp, slept: $am_has_slept" > conftest.file
2400     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2401     if test "$*" = "X"; then
2402	# -L didn't work.
2403	set X `ls -t "$srcdir/configure" conftest.file`
2404     fi
2405     if test "$*" != "X $srcdir/configure conftest.file" \
2406	&& test "$*" != "X conftest.file $srcdir/configure"; then
2407
2408	# If neither matched, then we have a broken ls.  This can happen
2409	# if, for instance, CONFIG_SHELL is bash and it inherits a
2410	# broken ls alias from the environment.  This has actually
2411	# happened.  Such a system could not be considered "sane".
2412	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2413  alias in your environment" "$LINENO" 5
2414     fi
2415     if test "$2" = conftest.file || test $am_try -eq 2; then
2416       break
2417     fi
2418     # Just in case.
2419     sleep 1
2420     am_has_slept=yes
2421   done
2422   test "$2" = conftest.file
2423   )
2424then
2425   # Ok.
2426   :
2427else
2428   as_fn_error $? "newly created file is older than distributed files!
2429Check your system clock" "$LINENO" 5
2430fi
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2432$as_echo "yes" >&6; }
2433# If we didn't sleep, we still need to ensure time stamps of config.status and
2434# generated files are strictly newer.
2435am_sleep_pid=
2436if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2437  ( sleep 1 ) &
2438  am_sleep_pid=$!
2439fi
2440
2441rm -f conftest.file
2442
2443test "$program_prefix" != NONE &&
2444  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2445# Use a double $ so make ignores it.
2446test "$program_suffix" != NONE &&
2447  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2448# Double any \ or $.
2449# By default was `s,x,x', remove it if useless.
2450ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2451program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2452
2453# Expand $ac_aux_dir to an absolute path.
2454am_aux_dir=`cd "$ac_aux_dir" && pwd`
2455
2456if test x"${MISSING+set}" != xset; then
2457  case $am_aux_dir in
2458  *\ * | *\	*)
2459    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2460  *)
2461    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2462  esac
2463fi
2464# Use eval to expand $SHELL
2465if eval "$MISSING --is-lightweight"; then
2466  am_missing_run="$MISSING "
2467else
2468  am_missing_run=
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2470$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2471fi
2472
2473if test x"${install_sh+set}" != xset; then
2474  case $am_aux_dir in
2475  *\ * | *\	*)
2476    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2477  *)
2478    install_sh="\${SHELL} $am_aux_dir/install-sh"
2479  esac
2480fi
2481
2482# Installed binaries are usually stripped using 'strip' when the user
2483# run "make install-strip".  However 'strip' might not be the right
2484# tool to use in cross-compilation environments, therefore Automake
2485# will honor the 'STRIP' environment variable to overrule this program.
2486if test "$cross_compiling" != no; then
2487  if test -n "$ac_tool_prefix"; then
2488  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2489set dummy ${ac_tool_prefix}strip; ac_word=$2
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491$as_echo_n "checking for $ac_word... " >&6; }
2492if ${ac_cv_prog_STRIP+:} false; then :
2493  $as_echo_n "(cached) " >&6
2494else
2495  if test -n "$STRIP"; then
2496  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501  IFS=$as_save_IFS
2502  test -z "$as_dir" && as_dir=.
2503    for ac_exec_ext in '' $ac_executable_extensions; do
2504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507    break 2
2508  fi
2509done
2510  done
2511IFS=$as_save_IFS
2512
2513fi
2514fi
2515STRIP=$ac_cv_prog_STRIP
2516if test -n "$STRIP"; then
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2518$as_echo "$STRIP" >&6; }
2519else
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521$as_echo "no" >&6; }
2522fi
2523
2524
2525fi
2526if test -z "$ac_cv_prog_STRIP"; then
2527  ac_ct_STRIP=$STRIP
2528  # Extract the first word of "strip", so it can be a program name with args.
2529set dummy strip; ac_word=$2
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531$as_echo_n "checking for $ac_word... " >&6; }
2532if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  if test -n "$ac_ct_STRIP"; then
2536  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  test -z "$as_dir" && as_dir=.
2543    for ac_exec_ext in '' $ac_executable_extensions; do
2544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545    ac_cv_prog_ac_ct_STRIP="strip"
2546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547    break 2
2548  fi
2549done
2550  done
2551IFS=$as_save_IFS
2552
2553fi
2554fi
2555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2556if test -n "$ac_ct_STRIP"; then
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2558$as_echo "$ac_ct_STRIP" >&6; }
2559else
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561$as_echo "no" >&6; }
2562fi
2563
2564  if test "x$ac_ct_STRIP" = x; then
2565    STRIP=":"
2566  else
2567    case $cross_compiling:$ac_tool_warned in
2568yes:)
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571ac_tool_warned=yes ;;
2572esac
2573    STRIP=$ac_ct_STRIP
2574  fi
2575else
2576  STRIP="$ac_cv_prog_STRIP"
2577fi
2578
2579fi
2580INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2583$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2584if test -z "$MKDIR_P"; then
2585  if ${ac_cv_path_mkdir+:} false; then :
2586  $as_echo_n "(cached) " >&6
2587else
2588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_prog in mkdir gmkdir; do
2594	 for ac_exec_ext in '' $ac_executable_extensions; do
2595	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2596	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2597	     'mkdir (GNU coreutils) '* | \
2598	     'mkdir (coreutils) '* | \
2599	     'mkdir (fileutils) '4.1*)
2600	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601	       break 3;;
2602	   esac
2603	 done
2604       done
2605  done
2606IFS=$as_save_IFS
2607
2608fi
2609
2610  test -d ./--version && rmdir ./--version
2611  if test "${ac_cv_path_mkdir+set}" = set; then
2612    MKDIR_P="$ac_cv_path_mkdir -p"
2613  else
2614    # As a last resort, use the slow shell script.  Don't cache a
2615    # value for MKDIR_P within a source directory, because that will
2616    # break other packages using the cache if that directory is
2617    # removed, or if the value is a relative name.
2618    MKDIR_P="$ac_install_sh -d"
2619  fi
2620fi
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2622$as_echo "$MKDIR_P" >&6; }
2623
2624for ac_prog in gawk mawk nawk awk
2625do
2626  # Extract the first word of "$ac_prog", so it can be a program name with args.
2627set dummy $ac_prog; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
2630if ${ac_cv_prog_AWK+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test -n "$AWK"; then
2634  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641    for ac_exec_ext in '' $ac_executable_extensions; do
2642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643    ac_cv_prog_AWK="$ac_prog"
2644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645    break 2
2646  fi
2647done
2648  done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653AWK=$ac_cv_prog_AWK
2654if test -n "$AWK"; then
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2656$as_echo "$AWK" >&6; }
2657else
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660fi
2661
2662
2663  test -n "$AWK" && break
2664done
2665
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2667$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2668set x ${MAKE-make}
2669ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2670if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  cat >conftest.make <<\_ACEOF
2674SHELL = /bin/sh
2675all:
2676	@echo '@@@%%%=$(MAKE)=@@@%%%'
2677_ACEOF
2678# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2679case `${MAKE-make} -f conftest.make 2>/dev/null` in
2680  *@@@%%%=?*=@@@%%%*)
2681    eval ac_cv_prog_make_${ac_make}_set=yes;;
2682  *)
2683    eval ac_cv_prog_make_${ac_make}_set=no;;
2684esac
2685rm -f conftest.make
2686fi
2687if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689$as_echo "yes" >&6; }
2690  SET_MAKE=
2691else
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
2694  SET_MAKE="MAKE=${MAKE-make}"
2695fi
2696
2697rm -rf .tst 2>/dev/null
2698mkdir .tst 2>/dev/null
2699if test -d .tst; then
2700  am__leading_dot=.
2701else
2702  am__leading_dot=_
2703fi
2704rmdir .tst 2>/dev/null
2705
2706# Check whether --enable-silent-rules was given.
2707if test "${enable_silent_rules+set}" = set; then :
2708  enableval=$enable_silent_rules;
2709fi
2710
2711case $enable_silent_rules in # (((
2712  yes) AM_DEFAULT_VERBOSITY=0;;
2713   no) AM_DEFAULT_VERBOSITY=1;;
2714    *) AM_DEFAULT_VERBOSITY=1;;
2715esac
2716am_make=${MAKE-make}
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2718$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2719if ${am_cv_make_support_nested_variables+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  if $as_echo 'TRUE=$(BAR$(V))
2723BAR0=false
2724BAR1=true
2725V=1
2726am__doit:
2727	@$(TRUE)
2728.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2729  am_cv_make_support_nested_variables=yes
2730else
2731  am_cv_make_support_nested_variables=no
2732fi
2733fi
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2735$as_echo "$am_cv_make_support_nested_variables" >&6; }
2736if test $am_cv_make_support_nested_variables = yes; then
2737    AM_V='$(V)'
2738  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2739else
2740  AM_V=$AM_DEFAULT_VERBOSITY
2741  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2742fi
2743AM_BACKSLASH='\'
2744
2745if test "`cd $srcdir && pwd`" != "`pwd`"; then
2746  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2747  # is not polluted with repeated "-I."
2748  am__isrc=' -I$(srcdir)'
2749  # test to see if srcdir already configured
2750  if test -f $srcdir/config.status; then
2751    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2752  fi
2753fi
2754
2755# test whether we have cygpath
2756if test -z "$CYGPATH_W"; then
2757  if (cygpath --version) >/dev/null 2>/dev/null; then
2758    CYGPATH_W='cygpath -w'
2759  else
2760    CYGPATH_W=echo
2761  fi
2762fi
2763
2764
2765# Define the identity of the package.
2766 PACKAGE='scew'
2767 VERSION='1.2.0'
2768
2769
2770cat >>confdefs.h <<_ACEOF
2771#define PACKAGE "$PACKAGE"
2772_ACEOF
2773
2774
2775cat >>confdefs.h <<_ACEOF
2776#define VERSION "$VERSION"
2777_ACEOF
2778
2779# Some tools Automake needs.
2780
2781ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2782
2783
2784AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2785
2786
2787AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2788
2789
2790AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2791
2792
2793MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2794
2795# For better backward compatibility.  To be removed once Automake 1.9.x
2796# dies out for good.  For more background, see:
2797# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2798# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2799mkdir_p='$(MKDIR_P)'
2800
2801# We need awk for the "check" target (and possibly the TAP driver).  The
2802# system "awk" is bad on some platforms.
2803# Always define AMTAR for backward compatibility.  Yes, it's still used
2804# in the wild :-(  We should find a proper way to deprecate it ...
2805AMTAR='$${TAR-tar}'
2806
2807
2808# We'll loop over all known methods to create a tar archive until one works.
2809_am_tools='gnutar  pax cpio none'
2810
2811am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2812
2813
2814
2815
2816
2817
2818# POSIX will say in a future version that running "rm -f" with no argument
2819# is OK; and we want to be able to make that assumption in our Makefile
2820# recipes.  So use an aggressive probe to check that the usage we want is
2821# actually supported "in the wild" to an acceptable degree.
2822# See automake bug#10828.
2823# To make any issue more visible, cause the running configure to be aborted
2824# by default if the 'rm' program in use doesn't match our expectations; the
2825# user can still override this though.
2826if rm -f && rm -fr && rm -rf; then : OK; else
2827  cat >&2 <<'END'
2828Oops!
2829
2830Your 'rm' program seems unable to run without file operands specified
2831on the command line, even when the '-f' option is present.  This is contrary
2832to the behaviour of most rm programs out there, and not conforming with
2833the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2834
2835Please tell bug-automake@gnu.org about your system, including the value
2836of your $PATH and any error possibly output before this message.  This
2837can help us improve future automake versions.
2838
2839END
2840  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2841    echo 'Configuration will proceed anyway, since you have set the' >&2
2842    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2843    echo >&2
2844  else
2845    cat >&2 <<'END'
2846Aborting the configuration process, to ensure you take notice of the issue.
2847
2848You can download and install GNU coreutils to get an 'rm' implementation
2849that behaves properly: <https://www.gnu.org/software/coreutils/>.
2850
2851If you want to complete the configuration process using your problematic
2852'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2853to "yes", and re-run configure.
2854
2855END
2856    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2857  fi
2858fi
2859
2860
2861# Check whether --enable-silent-rules was given.
2862if test "${enable_silent_rules+set}" = set; then :
2863  enableval=$enable_silent_rules;
2864fi
2865
2866case $enable_silent_rules in # (((
2867  yes) AM_DEFAULT_VERBOSITY=0;;
2868   no) AM_DEFAULT_VERBOSITY=1;;
2869    *) AM_DEFAULT_VERBOSITY=0;;
2870esac
2871am_make=${MAKE-make}
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2873$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2874if ${am_cv_make_support_nested_variables+:} false; then :
2875  $as_echo_n "(cached) " >&6
2876else
2877  if $as_echo 'TRUE=$(BAR$(V))
2878BAR0=false
2879BAR1=true
2880V=1
2881am__doit:
2882	@$(TRUE)
2883.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2884  am_cv_make_support_nested_variables=yes
2885else
2886  am_cv_make_support_nested_variables=no
2887fi
2888fi
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2890$as_echo "$am_cv_make_support_nested_variables" >&6; }
2891if test $am_cv_make_support_nested_variables = yes; then
2892    AM_V='$(V)'
2893  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2894else
2895  AM_V=$AM_DEFAULT_VERBOSITY
2896  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2897fi
2898AM_BACKSLASH='\'
2899
2900
2901
2902DEPDIR="${am__leading_dot}deps"
2903
2904ac_config_commands="$ac_config_commands depfiles"
2905
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2907$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2908cat > confinc.mk << 'END'
2909am__doit:
2910	@echo this is the am__doit target >confinc.out
2911.PHONY: am__doit
2912END
2913am__include="#"
2914am__quote=
2915# BSD make does it like this.
2916echo '.include "confinc.mk" # ignored' > confmf.BSD
2917# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2918echo 'include confinc.mk # ignored' > confmf.GNU
2919_am_result=no
2920for s in GNU BSD; do
2921  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2922   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926  case $?:`cat confinc.out 2>/dev/null` in #(
2927  '0:this is the am__doit target') :
2928    case $s in #(
2929  BSD) :
2930    am__include='.include' am__quote='"' ;; #(
2931  *) :
2932    am__include='include' am__quote='' ;;
2933esac ;; #(
2934  *) :
2935     ;;
2936esac
2937  if test "$am__include" != "#"; then
2938    _am_result="yes ($s style)"
2939    break
2940  fi
2941done
2942rm -f confinc.* confmf.*
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2944$as_echo "${_am_result}" >&6; }
2945
2946# Check whether --enable-dependency-tracking was given.
2947if test "${enable_dependency_tracking+set}" = set; then :
2948  enableval=$enable_dependency_tracking;
2949fi
2950
2951if test "x$enable_dependency_tracking" != xno; then
2952  am_depcomp="$ac_aux_dir/depcomp"
2953  AMDEPBACKSLASH='\'
2954  am__nodep='_no'
2955fi
2956 if test "x$enable_dependency_tracking" != xno; then
2957  AMDEP_TRUE=
2958  AMDEP_FALSE='#'
2959else
2960  AMDEP_TRUE='#'
2961  AMDEP_FALSE=
2962fi
2963
2964
2965ac_ext=c
2966ac_cpp='$CPP $CPPFLAGS'
2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970if test -n "$ac_tool_prefix"; then
2971  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974$as_echo_n "checking for $ac_word... " >&6; }
2975if ${ac_cv_prog_CC+:} false; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  if test -n "$CC"; then
2979  ac_cv_prog_CC="$CC" # Let the user override the test.
2980else
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984  IFS=$as_save_IFS
2985  test -z "$as_dir" && as_dir=.
2986    for ac_exec_ext in '' $ac_executable_extensions; do
2987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990    break 2
2991  fi
2992done
2993  done
2994IFS=$as_save_IFS
2995
2996fi
2997fi
2998CC=$ac_cv_prog_CC
2999if test -n "$CC"; then
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001$as_echo "$CC" >&6; }
3002else
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
3005fi
3006
3007
3008fi
3009if test -z "$ac_cv_prog_CC"; then
3010  ac_ct_CC=$CC
3011  # Extract the first word of "gcc", so it can be a program name with args.
3012set dummy gcc; ac_word=$2
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014$as_echo_n "checking for $ac_word... " >&6; }
3015if ${ac_cv_prog_ac_ct_CC+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  if test -n "$ac_ct_CC"; then
3019  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028    ac_cv_prog_ac_ct_CC="gcc"
3029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi
3037fi
3038ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039if test -n "$ac_ct_CC"; then
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041$as_echo "$ac_ct_CC" >&6; }
3042else
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045fi
3046
3047  if test "x$ac_ct_CC" = x; then
3048    CC=""
3049  else
3050    case $cross_compiling:$ac_tool_warned in
3051yes:)
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054ac_tool_warned=yes ;;
3055esac
3056    CC=$ac_ct_CC
3057  fi
3058else
3059  CC="$ac_cv_prog_CC"
3060fi
3061
3062if test -z "$CC"; then
3063          if test -n "$ac_tool_prefix"; then
3064    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}cc; ac_word=$2
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
3068if ${ac_cv_prog_CC+:} false; then :
3069  $as_echo_n "(cached) " >&6
3070else
3071  if test -n "$CC"; then
3072  ac_cv_prog_CC="$CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081    ac_cv_prog_CC="${ac_tool_prefix}cc"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi
3090fi
3091CC=$ac_cv_prog_CC
3092if test -n "$CC"; then
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094$as_echo "$CC" >&6; }
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101  fi
3102fi
3103if test -z "$CC"; then
3104  # Extract the first word of "cc", so it can be a program name with args.
3105set dummy cc; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if ${ac_cv_prog_CC+:} false; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test -n "$CC"; then
3112  ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114  ac_prog_rejected=no
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123       ac_prog_rejected=yes
3124       continue
3125     fi
3126    ac_cv_prog_CC="cc"
3127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128    break 2
3129  fi
3130done
3131  done
3132IFS=$as_save_IFS
3133
3134if test $ac_prog_rejected = yes; then
3135  # We found a bogon in the path, so make sure we never use it.
3136  set dummy $ac_cv_prog_CC
3137  shift
3138  if test $# != 0; then
3139    # We chose a different compiler from the bogus one.
3140    # However, it has the same basename, so the bogon will be chosen
3141    # first if we set CC to just the basename; use the full file name.
3142    shift
3143    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144  fi
3145fi
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158fi
3159if test -z "$CC"; then
3160  if test -n "$ac_tool_prefix"; then
3161  for ac_prog in cl.exe
3162  do
3163    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if ${ac_cv_prog_CC+:} false; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test -n "$CC"; then
3171  ac_cv_prog_CC="$CC" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178    for ac_exec_ext in '' $ac_executable_extensions; do
3179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182    break 2
3183  fi
3184done
3185  done
3186IFS=$as_save_IFS
3187
3188fi
3189fi
3190CC=$ac_cv_prog_CC
3191if test -n "$CC"; then
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193$as_echo "$CC" >&6; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200    test -n "$CC" && break
3201  done
3202fi
3203if test -z "$CC"; then
3204  ac_ct_CC=$CC
3205  for ac_prog in cl.exe
3206do
3207  # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_prog_ac_ct_CC+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  if test -n "$ac_ct_CC"; then
3215  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222    for ac_exec_ext in '' $ac_executable_extensions; do
3223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224    ac_cv_prog_ac_ct_CC="$ac_prog"
3225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229  done
3230IFS=$as_save_IFS
3231
3232fi
3233fi
3234ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235if test -n "$ac_ct_CC"; then
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237$as_echo "$ac_ct_CC" >&6; }
3238else
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
3241fi
3242
3243
3244  test -n "$ac_ct_CC" && break
3245done
3246
3247  if test "x$ac_ct_CC" = x; then
3248    CC=""
3249  else
3250    case $cross_compiling:$ac_tool_warned in
3251yes:)
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254ac_tool_warned=yes ;;
3255esac
3256    CC=$ac_ct_CC
3257  fi
3258fi
3259
3260fi
3261
3262
3263test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265as_fn_error $? "no acceptable C compiler found in \$PATH
3266See \`config.log' for more details" "$LINENO" 5; }
3267
3268# Provide some information about the compiler.
3269$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3270set X $ac_compile
3271ac_compiler=$2
3272for ac_option in --version -v -V -qversion; do
3273  { { ac_try="$ac_compiler $ac_option >&5"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279$as_echo "$ac_try_echo"; } >&5
3280  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3281  ac_status=$?
3282  if test -s conftest.err; then
3283    sed '10a\
3284... rest of stderr output deleted ...
3285         10q' conftest.err >conftest.er1
3286    cat conftest.er1 >&5
3287  fi
3288  rm -f conftest.er1 conftest.err
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }
3291done
3292
3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h.  */
3295
3296int
3297main ()
3298{
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304ac_clean_files_save=$ac_clean_files
3305ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306# Try to create an executable without -o first, disregard a.out.
3307# It will help us diagnose broken compilers, and finding out an intuition
3308# of exeext.
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310$as_echo_n "checking whether the C compiler works... " >&6; }
3311ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3312
3313# The possible output files:
3314ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3315
3316ac_rmfiles=
3317for ac_file in $ac_files
3318do
3319  case $ac_file in
3320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322  esac
3323done
3324rm -f $ac_rmfiles
3325
3326if { { ac_try="$ac_link_default"
3327case "(($ac_try" in
3328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329  *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333  (eval "$ac_link_default") 2>&5
3334  ac_status=$?
3335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336  test $ac_status = 0; }; then :
3337  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3340# so that the user can short-circuit this test for compilers unknown to
3341# Autoconf.
3342for ac_file in $ac_files ''
3343do
3344  test -f "$ac_file" || continue
3345  case $ac_file in
3346    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347	;;
3348    [ab].out )
3349	# We found the default executable, but exeext='' is most
3350	# certainly right.
3351	break;;
3352    *.* )
3353	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3354	then :; else
3355	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356	fi
3357	# We set ac_cv_exeext here because the later test for it is not
3358	# safe: cross compilers may not add the suffix if given an `-o'
3359	# argument, so we may need to know it at that point already.
3360	# Even if this section looks crufty: it has the advantage of
3361	# actually working.
3362	break;;
3363    * )
3364	break;;
3365  esac
3366done
3367test "$ac_cv_exeext" = no && ac_cv_exeext=
3368
3369else
3370  ac_file=''
3371fi
3372if test -z "$ac_file"; then :
3373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375$as_echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error 77 "C compiler cannot create executables
3381See \`config.log' for more details" "$LINENO" 5; }
3382else
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384$as_echo "yes" >&6; }
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387$as_echo_n "checking for C compiler default output file name... " >&6; }
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389$as_echo "$ac_file" >&6; }
3390ac_exeext=$ac_cv_exeext
3391
3392rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393ac_clean_files=$ac_clean_files_save
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395$as_echo_n "checking for suffix of executables... " >&6; }
3396if { { ac_try="$ac_link"
3397case "(($ac_try" in
3398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399  *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403  (eval "$ac_link") 2>&5
3404  ac_status=$?
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }; then :
3407  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3409# work properly (i.e., refer to `conftest.exe'), while it won't with
3410# `rm'.
3411for ac_file in conftest.exe conftest conftest.*; do
3412  test -f "$ac_file" || continue
3413  case $ac_file in
3414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416	  break;;
3417    * ) break;;
3418  esac
3419done
3420else
3421  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424See \`config.log' for more details" "$LINENO" 5; }
3425fi
3426rm -f conftest conftest$ac_cv_exeext
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428$as_echo "$ac_cv_exeext" >&6; }
3429
3430rm -f conftest.$ac_ext
3431EXEEXT=$ac_cv_exeext
3432ac_exeext=$EXEEXT
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435#include <stdio.h>
3436int
3437main ()
3438{
3439FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446ac_clean_files="$ac_clean_files conftest.out"
3447# Check that the compiler produces executables we can run.  If not, either
3448# the compiler is broken, or we cross compile.
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450$as_echo_n "checking whether we are cross compiling... " >&6; }
3451if test "$cross_compiling" != yes; then
3452  { { ac_try="$ac_link"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
3459  (eval "$ac_link") 2>&5
3460  ac_status=$?
3461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462  test $ac_status = 0; }
3463  if { ac_try='./conftest$ac_cv_exeext'
3464  { { case "(($ac_try" in
3465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466  *) ac_try_echo=$ac_try;;
3467esac
3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469$as_echo "$ac_try_echo"; } >&5
3470  (eval "$ac_try") 2>&5
3471  ac_status=$?
3472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473  test $ac_status = 0; }; }; then
3474    cross_compiling=no
3475  else
3476    if test "$cross_compiling" = maybe; then
3477	cross_compiling=yes
3478    else
3479	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error $? "cannot run C compiled programs.
3482If you meant to cross compile, use \`--host'.
3483See \`config.log' for more details" "$LINENO" 5; }
3484    fi
3485  fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488$as_echo "$cross_compiling" >&6; }
3489
3490rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491ac_clean_files=$ac_clean_files_save
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493$as_echo_n "checking for suffix of object files... " >&6; }
3494if ${ac_cv_objext+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508rm -f conftest.o conftest.obj
3509if { { ac_try="$ac_compile"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516  (eval "$ac_compile") 2>&5
3517  ac_status=$?
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }; then :
3520  for ac_file in conftest.o conftest.obj conftest.*; do
3521  test -f "$ac_file" || continue;
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525       break;;
3526  esac
3527done
3528else
3529  $as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error $? "cannot compute suffix of object files: cannot compile
3535See \`config.log' for more details" "$LINENO" 5; }
3536fi
3537rm -f conftest.$ac_cv_objext conftest.$ac_ext
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540$as_echo "$ac_cv_objext" >&6; }
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545if ${ac_cv_c_compiler_gnu+:} false; then :
3546  $as_echo_n "(cached) " >&6
3547else
3548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554#ifndef __GNUC__
3555       choke me
3556#endif
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562if ac_fn_c_try_compile "$LINENO"; then :
3563  ac_compiler_gnu=yes
3564else
3565  ac_compiler_gnu=no
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573if test $ac_compiler_gnu = yes; then
3574  GCC=yes
3575else
3576  GCC=
3577fi
3578ac_test_CFLAGS=${CFLAGS+set}
3579ac_save_CFLAGS=$CFLAGS
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581$as_echo_n "checking whether $CC accepts -g... " >&6; }
3582if ${ac_cv_prog_cc_g+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  ac_save_c_werror_flag=$ac_c_werror_flag
3586   ac_c_werror_flag=yes
3587   ac_cv_prog_cc_g=no
3588   CFLAGS="-g"
3589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601  ac_cv_prog_cc_g=yes
3602else
3603  CFLAGS=""
3604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616
3617else
3618  ac_c_werror_flag=$ac_save_c_werror_flag
3619	 CFLAGS="-g"
3620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621/* end confdefs.h.  */
3622
3623int
3624main ()
3625{
3626
3627  ;
3628  return 0;
3629}
3630_ACEOF
3631if ac_fn_c_try_compile "$LINENO"; then :
3632  ac_cv_prog_cc_g=yes
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635fi
3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639   ac_c_werror_flag=$ac_save_c_werror_flag
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642$as_echo "$ac_cv_prog_cc_g" >&6; }
3643if test "$ac_test_CFLAGS" = set; then
3644  CFLAGS=$ac_save_CFLAGS
3645elif test $ac_cv_prog_cc_g = yes; then
3646  if test "$GCC" = yes; then
3647    CFLAGS="-g -O2"
3648  else
3649    CFLAGS="-g"
3650  fi
3651else
3652  if test "$GCC" = yes; then
3653    CFLAGS="-O2"
3654  else
3655    CFLAGS=
3656  fi
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660if ${ac_cv_prog_cc_c89+:} false; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  ac_cv_prog_cc_c89=no
3664ac_save_CC=$CC
3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667#include <stdarg.h>
3668#include <stdio.h>
3669struct stat;
3670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3671struct buf { int x; };
3672FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673static char *e (p, i)
3674     char **p;
3675     int i;
3676{
3677  return p[i];
3678}
3679static char *f (char * (*g) (char **, int), char **p, ...)
3680{
3681  char *s;
3682  va_list v;
3683  va_start (v,p);
3684  s = g (p, va_arg (v,int));
3685  va_end (v);
3686  return s;
3687}
3688
3689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3690   function prototypes and stuff, but not '\xHH' hex character constants.
3691   These don't provoke an error unfortunately, instead are silently treated
3692   as 'x'.  The following induces an error, until -std is added to get
3693   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3694   array size at least.  It's necessary to write '\x00'==0 to get something
3695   that's true only with -std.  */
3696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697
3698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699   inside strings and character constants.  */
3700#define FOO(x) 'x'
3701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702
3703int test (int i, double x);
3704struct s1 {int (*f) (int a);};
3705struct s2 {int (*f) (double a);};
3706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707int argc;
3708char **argv;
3709int
3710main ()
3711{
3712return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719do
3720  CC="$ac_save_CC $ac_arg"
3721  if ac_fn_c_try_compile "$LINENO"; then :
3722  ac_cv_prog_cc_c89=$ac_arg
3723fi
3724rm -f core conftest.err conftest.$ac_objext
3725  test "x$ac_cv_prog_cc_c89" != "xno" && break
3726done
3727rm -f conftest.$ac_ext
3728CC=$ac_save_CC
3729
3730fi
3731# AC_CACHE_VAL
3732case "x$ac_cv_prog_cc_c89" in
3733  x)
3734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735$as_echo "none needed" >&6; } ;;
3736  xno)
3737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738$as_echo "unsupported" >&6; } ;;
3739  *)
3740    CC="$CC $ac_cv_prog_cc_c89"
3741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743esac
3744if test "x$ac_cv_prog_cc_c89" != xno; then :
3745
3746fi
3747
3748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754ac_ext=c
3755ac_cpp='$CPP $CPPFLAGS'
3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3760$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3761if ${am_cv_prog_cc_c_o+:} false; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775  # Make sure it works both with $CC and with simple cc.
3776  # Following AC_PROG_CC_C_O, we do the test twice because some
3777  # compilers refuse to overwrite an existing .o file with -o,
3778  # though they will create one.
3779  am_cv_prog_cc_c_o=yes
3780  for am_i in 1 2; do
3781    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3782   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } \
3786         && test -f conftest2.$ac_objext; then
3787      : OK
3788    else
3789      am_cv_prog_cc_c_o=no
3790      break
3791    fi
3792  done
3793  rm -f core conftest*
3794  unset am_i
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3797$as_echo "$am_cv_prog_cc_c_o" >&6; }
3798if test "$am_cv_prog_cc_c_o" != yes; then
3799   # Losing compiler, so override with the script.
3800   # FIXME: It is wrong to rewrite CC.
3801   # But if we don't then we get into trouble of one sort or another.
3802   # A longer-term fix would be to have automake use am__CC in this case,
3803   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3804   CC="$am_aux_dir/compile $CC"
3805fi
3806ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812
3813depcc="$CC"   am_compiler_list=
3814
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3816$as_echo_n "checking dependency style of $depcc... " >&6; }
3817if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3821  # We make a subdir and do the tests there.  Otherwise we can end up
3822  # making bogus files that we don't know about and never remove.  For
3823  # instance it was reported that on HP-UX the gcc test will end up
3824  # making a dummy file named 'D' -- because '-MD' means "put the output
3825  # in D".
3826  rm -rf conftest.dir
3827  mkdir conftest.dir
3828  # Copy depcomp to subdir because otherwise we won't find it if we're
3829  # using a relative directory.
3830  cp "$am_depcomp" conftest.dir
3831  cd conftest.dir
3832  # We will build objects and dependencies in a subdirectory because
3833  # it helps to detect inapplicable dependency modes.  For instance
3834  # both Tru64's cc and ICC support -MD to output dependencies as a
3835  # side effect of compilation, but ICC will put the dependencies in
3836  # the current directory while Tru64 will put them in the object
3837  # directory.
3838  mkdir sub
3839
3840  am_cv_CC_dependencies_compiler_type=none
3841  if test "$am_compiler_list" = ""; then
3842     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3843  fi
3844  am__universal=false
3845  case " $depcc " in #(
3846     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3847     esac
3848
3849  for depmode in $am_compiler_list; do
3850    # Setup a source with many dependencies, because some compilers
3851    # like to wrap large dependency lists on column 80 (with \), and
3852    # we should not choose a depcomp mode which is confused by this.
3853    #
3854    # We need to recreate these files for each test, as the compiler may
3855    # overwrite some of them when testing with obscure command lines.
3856    # This happens at least with the AIX C compiler.
3857    : > sub/conftest.c
3858    for i in 1 2 3 4 5 6; do
3859      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3860      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3861      # Solaris 10 /bin/sh.
3862      echo '/* dummy */' > sub/conftst$i.h
3863    done
3864    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3865
3866    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3867    # mode.  It turns out that the SunPro C++ compiler does not properly
3868    # handle '-M -o', and we need to detect this.  Also, some Intel
3869    # versions had trouble with output in subdirs.
3870    am__obj=sub/conftest.${OBJEXT-o}
3871    am__minus_obj="-o $am__obj"
3872    case $depmode in
3873    gcc)
3874      # This depmode causes a compiler race in universal mode.
3875      test "$am__universal" = false || continue
3876      ;;
3877    nosideeffect)
3878      # After this tag, mechanisms are not by side-effect, so they'll
3879      # only be used when explicitly requested.
3880      if test "x$enable_dependency_tracking" = xyes; then
3881	continue
3882      else
3883	break
3884      fi
3885      ;;
3886    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3887      # This compiler won't grok '-c -o', but also, the minuso test has
3888      # not run yet.  These depmodes are late enough in the game, and
3889      # so weak that their functioning should not be impacted.
3890      am__obj=conftest.${OBJEXT-o}
3891      am__minus_obj=
3892      ;;
3893    none) break ;;
3894    esac
3895    if depmode=$depmode \
3896       source=sub/conftest.c object=$am__obj \
3897       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3898       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3899         >/dev/null 2>conftest.err &&
3900       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3901       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3902       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3903       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3904      # icc doesn't choke on unknown options, it will just issue warnings
3905      # or remarks (even with -Werror).  So we grep stderr for any message
3906      # that says an option was ignored or not supported.
3907      # When given -MP, icc 7.0 and 7.1 complain thusly:
3908      #   icc: Command line warning: ignoring option '-M'; no argument required
3909      # The diagnosis changed in icc 8.0:
3910      #   icc: Command line remark: option '-MP' not supported
3911      if (grep 'ignoring option' conftest.err ||
3912          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3913        am_cv_CC_dependencies_compiler_type=$depmode
3914        break
3915      fi
3916    fi
3917  done
3918
3919  cd ..
3920  rm -rf conftest.dir
3921else
3922  am_cv_CC_dependencies_compiler_type=none
3923fi
3924
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3927$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3928CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3929
3930 if
3931  test "x$enable_dependency_tracking" != xno \
3932  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3933  am__fastdepCC_TRUE=
3934  am__fastdepCC_FALSE='#'
3935else
3936  am__fastdepCC_TRUE='#'
3937  am__fastdepCC_FALSE=
3938fi
3939
3940
3941
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3943$as_echo_n "checking for library containing strerror... " >&6; }
3944if ${ac_cv_search_strerror+:} false; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947  ac_func_search_save_LIBS=$LIBS
3948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951/* Override any GCC internal prototype to avoid an error.
3952   Use char because int might match the return type of a GCC
3953   builtin and then its argument prototype would still apply.  */
3954#ifdef __cplusplus
3955extern "C"
3956#endif
3957char strerror ();
3958int
3959main ()
3960{
3961return strerror ();
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966for ac_lib in '' cposix; do
3967  if test -z "$ac_lib"; then
3968    ac_res="none required"
3969  else
3970    ac_res=-l$ac_lib
3971    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3972  fi
3973  if ac_fn_c_try_link "$LINENO"; then :
3974  ac_cv_search_strerror=$ac_res
3975fi
3976rm -f core conftest.err conftest.$ac_objext \
3977    conftest$ac_exeext
3978  if ${ac_cv_search_strerror+:} false; then :
3979  break
3980fi
3981done
3982if ${ac_cv_search_strerror+:} false; then :
3983
3984else
3985  ac_cv_search_strerror=no
3986fi
3987rm conftest.$ac_ext
3988LIBS=$ac_func_search_save_LIBS
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3991$as_echo "$ac_cv_search_strerror" >&6; }
3992ac_res=$ac_cv_search_strerror
3993if test "$ac_res" != no; then :
3994  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3995
3996fi
3997
3998ac_ext=c
3999ac_cpp='$CPP $CPPFLAGS'
4000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003if test -n "$ac_tool_prefix"; then
4004  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4005set dummy ${ac_tool_prefix}gcc; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if ${ac_cv_prog_CC+:} false; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  if test -n "$CC"; then
4012  ac_cv_prog_CC="$CC" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019    for ac_exec_ext in '' $ac_executable_extensions; do
4020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023    break 2
4024  fi
4025done
4026  done
4027IFS=$as_save_IFS
4028
4029fi
4030fi
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
4035else
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041fi
4042if test -z "$ac_cv_prog_CC"; then
4043  ac_ct_CC=$CC
4044  # Extract the first word of "gcc", so it can be a program name with args.
4045set dummy gcc; ac_word=$2
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  if test -n "$ac_ct_CC"; then
4052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4053else
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057  IFS=$as_save_IFS
4058  test -z "$as_dir" && as_dir=.
4059    for ac_exec_ext in '' $ac_executable_extensions; do
4060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061    ac_cv_prog_ac_ct_CC="gcc"
4062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063    break 2
4064  fi
4065done
4066  done
4067IFS=$as_save_IFS
4068
4069fi
4070fi
4071ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072if test -n "$ac_ct_CC"; then
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074$as_echo "$ac_ct_CC" >&6; }
4075else
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
4078fi
4079
4080  if test "x$ac_ct_CC" = x; then
4081    CC=""
4082  else
4083    case $cross_compiling:$ac_tool_warned in
4084yes:)
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087ac_tool_warned=yes ;;
4088esac
4089    CC=$ac_ct_CC
4090  fi
4091else
4092  CC="$ac_cv_prog_CC"
4093fi
4094
4095if test -z "$CC"; then
4096          if test -n "$ac_tool_prefix"; then
4097    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4098set dummy ${ac_tool_prefix}cc; ac_word=$2
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if ${ac_cv_prog_CC+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104  if test -n "$CC"; then
4105  ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112    for ac_exec_ext in '' $ac_executable_extensions; do
4113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114    ac_cv_prog_CC="${ac_tool_prefix}cc"
4115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116    break 2
4117  fi
4118done
4119  done
4120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
4126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127$as_echo "$CC" >&6; }
4128else
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131fi
4132
4133
4134  fi
4135fi
4136if test -z "$CC"; then
4137  # Extract the first word of "cc", so it can be a program name with args.
4138set dummy cc; ac_word=$2
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if ${ac_cv_prog_CC+:} false; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  if test -n "$CC"; then
4145  ac_cv_prog_CC="$CC" # Let the user override the test.
4146else
4147  ac_prog_rejected=no
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  test -z "$as_dir" && as_dir=.
4153    for ac_exec_ext in '' $ac_executable_extensions; do
4154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4156       ac_prog_rejected=yes
4157       continue
4158     fi
4159    ac_cv_prog_CC="cc"
4160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161    break 2
4162  fi
4163done
4164  done
4165IFS=$as_save_IFS
4166
4167if test $ac_prog_rejected = yes; then
4168  # We found a bogon in the path, so make sure we never use it.
4169  set dummy $ac_cv_prog_CC
4170  shift
4171  if test $# != 0; then
4172    # We chose a different compiler from the bogus one.
4173    # However, it has the same basename, so the bogon will be chosen
4174    # first if we set CC to just the basename; use the full file name.
4175    shift
4176    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4177  fi
4178fi
4179fi
4180fi
4181CC=$ac_cv_prog_CC
4182if test -n "$CC"; then
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184$as_echo "$CC" >&6; }
4185else
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188fi
4189
4190
4191fi
4192if test -z "$CC"; then
4193  if test -n "$ac_tool_prefix"; then
4194  for ac_prog in cl.exe
4195  do
4196    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199$as_echo_n "checking for $ac_word... " >&6; }
4200if ${ac_cv_prog_CC+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if test -n "$CC"; then
4204  ac_cv_prog_CC="$CC" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_exec_ext in '' $ac_executable_extensions; do
4212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
4217done
4218  done
4219IFS=$as_save_IFS
4220
4221fi
4222fi
4223CC=$ac_cv_prog_CC
4224if test -n "$CC"; then
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226$as_echo "$CC" >&6; }
4227else
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230fi
4231
4232
4233    test -n "$CC" && break
4234  done
4235fi
4236if test -z "$CC"; then
4237  ac_ct_CC=$CC
4238  for ac_prog in cl.exe
4239do
4240  # Extract the first word of "$ac_prog", so it can be a program name with args.
4241set dummy $ac_prog; ac_word=$2
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
4244if ${ac_cv_prog_ac_ct_CC+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  if test -n "$ac_ct_CC"; then
4248  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  test -z "$as_dir" && as_dir=.
4255    for ac_exec_ext in '' $ac_executable_extensions; do
4256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257    ac_cv_prog_ac_ct_CC="$ac_prog"
4258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259    break 2
4260  fi
4261done
4262  done
4263IFS=$as_save_IFS
4264
4265fi
4266fi
4267ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268if test -n "$ac_ct_CC"; then
4269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4270$as_echo "$ac_ct_CC" >&6; }
4271else
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274fi
4275
4276
4277  test -n "$ac_ct_CC" && break
4278done
4279
4280  if test "x$ac_ct_CC" = x; then
4281    CC=""
4282  else
4283    case $cross_compiling:$ac_tool_warned in
4284yes:)
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287ac_tool_warned=yes ;;
4288esac
4289    CC=$ac_ct_CC
4290  fi
4291fi
4292
4293fi
4294
4295
4296test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298as_fn_error $? "no acceptable C compiler found in \$PATH
4299See \`config.log' for more details" "$LINENO" 5; }
4300
4301# Provide some information about the compiler.
4302$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303set X $ac_compile
4304ac_compiler=$2
4305for ac_option in --version -v -V -qversion; do
4306  { { ac_try="$ac_compiler $ac_option >&5"
4307case "(($ac_try" in
4308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309  *) ac_try_echo=$ac_try;;
4310esac
4311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312$as_echo "$ac_try_echo"; } >&5
4313  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4314  ac_status=$?
4315  if test -s conftest.err; then
4316    sed '10a\
4317... rest of stderr output deleted ...
4318         10q' conftest.err >conftest.er1
4319    cat conftest.er1 >&5
4320  fi
4321  rm -f conftest.er1 conftest.err
4322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323  test $ac_status = 0; }
4324done
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4328if ${ac_cv_c_compiler_gnu+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333
4334int
4335main ()
4336{
4337#ifndef __GNUC__
4338       choke me
4339#endif
4340
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_compile "$LINENO"; then :
4346  ac_compiler_gnu=yes
4347else
4348  ac_compiler_gnu=no
4349fi
4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351ac_cv_c_compiler_gnu=$ac_compiler_gnu
4352
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4355$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4356if test $ac_compiler_gnu = yes; then
4357  GCC=yes
4358else
4359  GCC=
4360fi
4361ac_test_CFLAGS=${CFLAGS+set}
4362ac_save_CFLAGS=$CFLAGS
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4364$as_echo_n "checking whether $CC accepts -g... " >&6; }
4365if ${ac_cv_prog_cc_g+:} false; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  ac_save_c_werror_flag=$ac_c_werror_flag
4369   ac_c_werror_flag=yes
4370   ac_cv_prog_cc_g=no
4371   CFLAGS="-g"
4372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374
4375int
4376main ()
4377{
4378
4379  ;
4380  return 0;
4381}
4382_ACEOF
4383if ac_fn_c_try_compile "$LINENO"; then :
4384  ac_cv_prog_cc_g=yes
4385else
4386  CFLAGS=""
4387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h.  */
4389
4390int
4391main ()
4392{
4393
4394  ;
4395  return 0;
4396}
4397_ACEOF
4398if ac_fn_c_try_compile "$LINENO"; then :
4399
4400else
4401  ac_c_werror_flag=$ac_save_c_werror_flag
4402	 CFLAGS="-g"
4403	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main ()
4408{
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415  ac_cv_prog_cc_g=yes
4416fi
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422   ac_c_werror_flag=$ac_save_c_werror_flag
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425$as_echo "$ac_cv_prog_cc_g" >&6; }
4426if test "$ac_test_CFLAGS" = set; then
4427  CFLAGS=$ac_save_CFLAGS
4428elif test $ac_cv_prog_cc_g = yes; then
4429  if test "$GCC" = yes; then
4430    CFLAGS="-g -O2"
4431  else
4432    CFLAGS="-g"
4433  fi
4434else
4435  if test "$GCC" = yes; then
4436    CFLAGS="-O2"
4437  else
4438    CFLAGS=
4439  fi
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4443if ${ac_cv_prog_cc_c89+:} false; then :
4444  $as_echo_n "(cached) " >&6
4445else
4446  ac_cv_prog_cc_c89=no
4447ac_save_CC=$CC
4448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h.  */
4450#include <stdarg.h>
4451#include <stdio.h>
4452struct stat;
4453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4454struct buf { int x; };
4455FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456static char *e (p, i)
4457     char **p;
4458     int i;
4459{
4460  return p[i];
4461}
4462static char *f (char * (*g) (char **, int), char **p, ...)
4463{
4464  char *s;
4465  va_list v;
4466  va_start (v,p);
4467  s = g (p, va_arg (v,int));
4468  va_end (v);
4469  return s;
4470}
4471
4472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4473   function prototypes and stuff, but not '\xHH' hex character constants.
4474   These don't provoke an error unfortunately, instead are silently treated
4475   as 'x'.  The following induces an error, until -std is added to get
4476   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4477   array size at least.  It's necessary to write '\x00'==0 to get something
4478   that's true only with -std.  */
4479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
4481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482   inside strings and character constants.  */
4483#define FOO(x) 'x'
4484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
4486int test (int i, double x);
4487struct s1 {int (*f) (int a);};
4488struct s2 {int (*f) (double a);};
4489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490int argc;
4491char **argv;
4492int
4493main ()
4494{
4495return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4496  ;
4497  return 0;
4498}
4499_ACEOF
4500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4502do
4503  CC="$ac_save_CC $ac_arg"
4504  if ac_fn_c_try_compile "$LINENO"; then :
4505  ac_cv_prog_cc_c89=$ac_arg
4506fi
4507rm -f core conftest.err conftest.$ac_objext
4508  test "x$ac_cv_prog_cc_c89" != "xno" && break
4509done
4510rm -f conftest.$ac_ext
4511CC=$ac_save_CC
4512
4513fi
4514# AC_CACHE_VAL
4515case "x$ac_cv_prog_cc_c89" in
4516  x)
4517    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518$as_echo "none needed" >&6; } ;;
4519  xno)
4520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521$as_echo "unsupported" >&6; } ;;
4522  *)
4523    CC="$CC $ac_cv_prog_cc_c89"
4524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4526esac
4527if test "x$ac_cv_prog_cc_c89" != xno; then :
4528
4529fi
4530
4531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537ac_ext=c
4538ac_cpp='$CPP $CPPFLAGS'
4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4543$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4544if ${am_cv_prog_cc_c_o+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h.  */
4549
4550int
4551main ()
4552{
4553
4554  ;
4555  return 0;
4556}
4557_ACEOF
4558  # Make sure it works both with $CC and with simple cc.
4559  # Following AC_PROG_CC_C_O, we do the test twice because some
4560  # compilers refuse to overwrite an existing .o file with -o,
4561  # though they will create one.
4562  am_cv_prog_cc_c_o=yes
4563  for am_i in 1 2; do
4564    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4565   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); } \
4569         && test -f conftest2.$ac_objext; then
4570      : OK
4571    else
4572      am_cv_prog_cc_c_o=no
4573      break
4574    fi
4575  done
4576  rm -f core conftest*
4577  unset am_i
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4580$as_echo "$am_cv_prog_cc_c_o" >&6; }
4581if test "$am_cv_prog_cc_c_o" != yes; then
4582   # Losing compiler, so override with the script.
4583   # FIXME: It is wrong to rewrite CC.
4584   # But if we don't then we get into trouble of one sort or another.
4585   # A longer-term fix would be to have automake use am__CC in this case,
4586   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4587   CC="$am_aux_dir/compile $CC"
4588fi
4589ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594
4595
4596depcc="$CC"   am_compiler_list=
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4599$as_echo_n "checking dependency style of $depcc... " >&6; }
4600if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4604  # We make a subdir and do the tests there.  Otherwise we can end up
4605  # making bogus files that we don't know about and never remove.  For
4606  # instance it was reported that on HP-UX the gcc test will end up
4607  # making a dummy file named 'D' -- because '-MD' means "put the output
4608  # in D".
4609  rm -rf conftest.dir
4610  mkdir conftest.dir
4611  # Copy depcomp to subdir because otherwise we won't find it if we're
4612  # using a relative directory.
4613  cp "$am_depcomp" conftest.dir
4614  cd conftest.dir
4615  # We will build objects and dependencies in a subdirectory because
4616  # it helps to detect inapplicable dependency modes.  For instance
4617  # both Tru64's cc and ICC support -MD to output dependencies as a
4618  # side effect of compilation, but ICC will put the dependencies in
4619  # the current directory while Tru64 will put them in the object
4620  # directory.
4621  mkdir sub
4622
4623  am_cv_CC_dependencies_compiler_type=none
4624  if test "$am_compiler_list" = ""; then
4625     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4626  fi
4627  am__universal=false
4628  case " $depcc " in #(
4629     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4630     esac
4631
4632  for depmode in $am_compiler_list; do
4633    # Setup a source with many dependencies, because some compilers
4634    # like to wrap large dependency lists on column 80 (with \), and
4635    # we should not choose a depcomp mode which is confused by this.
4636    #
4637    # We need to recreate these files for each test, as the compiler may
4638    # overwrite some of them when testing with obscure command lines.
4639    # This happens at least with the AIX C compiler.
4640    : > sub/conftest.c
4641    for i in 1 2 3 4 5 6; do
4642      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4643      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4644      # Solaris 10 /bin/sh.
4645      echo '/* dummy */' > sub/conftst$i.h
4646    done
4647    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4648
4649    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4650    # mode.  It turns out that the SunPro C++ compiler does not properly
4651    # handle '-M -o', and we need to detect this.  Also, some Intel
4652    # versions had trouble with output in subdirs.
4653    am__obj=sub/conftest.${OBJEXT-o}
4654    am__minus_obj="-o $am__obj"
4655    case $depmode in
4656    gcc)
4657      # This depmode causes a compiler race in universal mode.
4658      test "$am__universal" = false || continue
4659      ;;
4660    nosideeffect)
4661      # After this tag, mechanisms are not by side-effect, so they'll
4662      # only be used when explicitly requested.
4663      if test "x$enable_dependency_tracking" = xyes; then
4664	continue
4665      else
4666	break
4667      fi
4668      ;;
4669    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4670      # This compiler won't grok '-c -o', but also, the minuso test has
4671      # not run yet.  These depmodes are late enough in the game, and
4672      # so weak that their functioning should not be impacted.
4673      am__obj=conftest.${OBJEXT-o}
4674      am__minus_obj=
4675      ;;
4676    none) break ;;
4677    esac
4678    if depmode=$depmode \
4679       source=sub/conftest.c object=$am__obj \
4680       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4681       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4682         >/dev/null 2>conftest.err &&
4683       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4684       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4685       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4686       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687      # icc doesn't choke on unknown options, it will just issue warnings
4688      # or remarks (even with -Werror).  So we grep stderr for any message
4689      # that says an option was ignored or not supported.
4690      # When given -MP, icc 7.0 and 7.1 complain thusly:
4691      #   icc: Command line warning: ignoring option '-M'; no argument required
4692      # The diagnosis changed in icc 8.0:
4693      #   icc: Command line remark: option '-MP' not supported
4694      if (grep 'ignoring option' conftest.err ||
4695          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696        am_cv_CC_dependencies_compiler_type=$depmode
4697        break
4698      fi
4699    fi
4700  done
4701
4702  cd ..
4703  rm -rf conftest.dir
4704else
4705  am_cv_CC_dependencies_compiler_type=none
4706fi
4707
4708fi
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4710$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4711CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4712
4713 if
4714  test "x$enable_dependency_tracking" != xno \
4715  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4716  am__fastdepCC_TRUE=
4717  am__fastdepCC_FALSE='#'
4718else
4719  am__fastdepCC_TRUE='#'
4720  am__fastdepCC_FALSE=
4721fi
4722
4723
4724
4725# Next macro is deprecated and should be substituted in
4726# future releases by LT_INIT([win32-dll]).
4727# Packages in Debian 5.0 still do not support it.
4728# Make sure we can run config.sub.
4729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4730  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4733$as_echo_n "checking build system type... " >&6; }
4734if ${ac_cv_build+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  ac_build_alias=$build_alias
4738test "x$ac_build_alias" = x &&
4739  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4740test "x$ac_build_alias" = x &&
4741  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4742ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4743  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4744
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4747$as_echo "$ac_cv_build" >&6; }
4748case $ac_cv_build in
4749*-*-*) ;;
4750*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4751esac
4752build=$ac_cv_build
4753ac_save_IFS=$IFS; IFS='-'
4754set x $ac_cv_build
4755shift
4756build_cpu=$1
4757build_vendor=$2
4758shift; shift
4759# Remember, the first character of IFS is used to create $*,
4760# except with old shells:
4761build_os=$*
4762IFS=$ac_save_IFS
4763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4764
4765
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4767$as_echo_n "checking host system type... " >&6; }
4768if ${ac_cv_host+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  if test "x$host_alias" = x; then
4772  ac_cv_host=$ac_cv_build
4773else
4774  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4775    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4776fi
4777
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4780$as_echo "$ac_cv_host" >&6; }
4781case $ac_cv_host in
4782*-*-*) ;;
4783*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4784esac
4785host=$ac_cv_host
4786ac_save_IFS=$IFS; IFS='-'
4787set x $ac_cv_host
4788shift
4789host_cpu=$1
4790host_vendor=$2
4791shift; shift
4792# Remember, the first character of IFS is used to create $*,
4793# except with old shells:
4794host_os=$*
4795IFS=$ac_save_IFS
4796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4797
4798
4799enable_win32_dll=yes
4800
4801case $host in
4802*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4803  if test -n "$ac_tool_prefix"; then
4804  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4805set dummy ${ac_tool_prefix}as; ac_word=$2
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807$as_echo_n "checking for $ac_word... " >&6; }
4808if ${ac_cv_prog_AS+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  if test -n "$AS"; then
4812  ac_cv_prog_AS="$AS" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817  IFS=$as_save_IFS
4818  test -z "$as_dir" && as_dir=.
4819    for ac_exec_ext in '' $ac_executable_extensions; do
4820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821    ac_cv_prog_AS="${ac_tool_prefix}as"
4822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823    break 2
4824  fi
4825done
4826  done
4827IFS=$as_save_IFS
4828
4829fi
4830fi
4831AS=$ac_cv_prog_AS
4832if test -n "$AS"; then
4833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4834$as_echo "$AS" >&6; }
4835else
4836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840
4841fi
4842if test -z "$ac_cv_prog_AS"; then
4843  ac_ct_AS=$AS
4844  # Extract the first word of "as", so it can be a program name with args.
4845set dummy as; ac_word=$2
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847$as_echo_n "checking for $ac_word... " >&6; }
4848if ${ac_cv_prog_ac_ct_AS+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  if test -n "$ac_ct_AS"; then
4852  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857  IFS=$as_save_IFS
4858  test -z "$as_dir" && as_dir=.
4859    for ac_exec_ext in '' $ac_executable_extensions; do
4860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861    ac_cv_prog_ac_ct_AS="as"
4862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863    break 2
4864  fi
4865done
4866  done
4867IFS=$as_save_IFS
4868
4869fi
4870fi
4871ac_ct_AS=$ac_cv_prog_ac_ct_AS
4872if test -n "$ac_ct_AS"; then
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4874$as_echo "$ac_ct_AS" >&6; }
4875else
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877$as_echo "no" >&6; }
4878fi
4879
4880  if test "x$ac_ct_AS" = x; then
4881    AS="false"
4882  else
4883    case $cross_compiling:$ac_tool_warned in
4884yes:)
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887ac_tool_warned=yes ;;
4888esac
4889    AS=$ac_ct_AS
4890  fi
4891else
4892  AS="$ac_cv_prog_AS"
4893fi
4894
4895  if test -n "$ac_tool_prefix"; then
4896  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4897set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899$as_echo_n "checking for $ac_word... " >&6; }
4900if ${ac_cv_prog_DLLTOOL+:} false; then :
4901  $as_echo_n "(cached) " >&6
4902else
4903  if test -n "$DLLTOOL"; then
4904  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909  IFS=$as_save_IFS
4910  test -z "$as_dir" && as_dir=.
4911    for ac_exec_ext in '' $ac_executable_extensions; do
4912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915    break 2
4916  fi
4917done
4918  done
4919IFS=$as_save_IFS
4920
4921fi
4922fi
4923DLLTOOL=$ac_cv_prog_DLLTOOL
4924if test -n "$DLLTOOL"; then
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4926$as_echo "$DLLTOOL" >&6; }
4927else
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931
4932
4933fi
4934if test -z "$ac_cv_prog_DLLTOOL"; then
4935  ac_ct_DLLTOOL=$DLLTOOL
4936  # Extract the first word of "dlltool", so it can be a program name with args.
4937set dummy dlltool; ac_word=$2
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939$as_echo_n "checking for $ac_word... " >&6; }
4940if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  if test -n "$ac_ct_DLLTOOL"; then
4944  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4945else
4946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949  IFS=$as_save_IFS
4950  test -z "$as_dir" && as_dir=.
4951    for ac_exec_ext in '' $ac_executable_extensions; do
4952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955    break 2
4956  fi
4957done
4958  done
4959IFS=$as_save_IFS
4960
4961fi
4962fi
4963ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4964if test -n "$ac_ct_DLLTOOL"; then
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4966$as_echo "$ac_ct_DLLTOOL" >&6; }
4967else
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969$as_echo "no" >&6; }
4970fi
4971
4972  if test "x$ac_ct_DLLTOOL" = x; then
4973    DLLTOOL="false"
4974  else
4975    case $cross_compiling:$ac_tool_warned in
4976yes:)
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979ac_tool_warned=yes ;;
4980esac
4981    DLLTOOL=$ac_ct_DLLTOOL
4982  fi
4983else
4984  DLLTOOL="$ac_cv_prog_DLLTOOL"
4985fi
4986
4987  if test -n "$ac_tool_prefix"; then
4988  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4989set dummy ${ac_tool_prefix}objdump; ac_word=$2
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991$as_echo_n "checking for $ac_word... " >&6; }
4992if ${ac_cv_prog_OBJDUMP+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  if test -n "$OBJDUMP"; then
4996  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4997else
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001  IFS=$as_save_IFS
5002  test -z "$as_dir" && as_dir=.
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007    break 2
5008  fi
5009done
5010  done
5011IFS=$as_save_IFS
5012
5013fi
5014fi
5015OBJDUMP=$ac_cv_prog_OBJDUMP
5016if test -n "$OBJDUMP"; then
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5018$as_echo "$OBJDUMP" >&6; }
5019else
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021$as_echo "no" >&6; }
5022fi
5023
5024
5025fi
5026if test -z "$ac_cv_prog_OBJDUMP"; then
5027  ac_ct_OBJDUMP=$OBJDUMP
5028  # Extract the first word of "objdump", so it can be a program name with args.
5029set dummy objdump; ac_word=$2
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  if test -n "$ac_ct_OBJDUMP"; then
5036  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050  done
5051IFS=$as_save_IFS
5052
5053fi
5054fi
5055ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5056if test -n "$ac_ct_OBJDUMP"; then
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5058$as_echo "$ac_ct_OBJDUMP" >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064  if test "x$ac_ct_OBJDUMP" = x; then
5065    OBJDUMP="false"
5066  else
5067    case $cross_compiling:$ac_tool_warned in
5068yes:)
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071ac_tool_warned=yes ;;
5072esac
5073    OBJDUMP=$ac_ct_OBJDUMP
5074  fi
5075else
5076  OBJDUMP="$ac_cv_prog_OBJDUMP"
5077fi
5078
5079  ;;
5080esac
5081
5082test -z "$AS" && AS=as
5083
5084
5085
5086
5087
5088test -z "$DLLTOOL" && DLLTOOL=dlltool
5089
5090
5091
5092
5093
5094test -z "$OBJDUMP" && OBJDUMP=objdump
5095
5096
5097
5098
5099
5100
5101
5102case `pwd` in
5103  *\ * | *\	*)
5104    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5105$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5106esac
5107
5108
5109
5110macro_version='2.4.6'
5111macro_revision='2.4.6'
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125ltmain=$ac_aux_dir/ltmain.sh
5126
5127# Backslashify metacharacters that are still active within
5128# double-quoted strings.
5129sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5130
5131# Same as above, but do not quote variable references.
5132double_quote_subst='s/\(["`\\]\)/\\\1/g'
5133
5134# Sed substitution to delay expansion of an escaped shell variable in a
5135# double_quote_subst'ed string.
5136delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5137
5138# Sed substitution to delay expansion of an escaped single quote.
5139delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5140
5141# Sed substitution to avoid accidental globbing in evaled expressions
5142no_glob_subst='s/\*/\\\*/g'
5143
5144ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5147
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5149$as_echo_n "checking how to print strings... " >&6; }
5150# Test print first, because it will be a builtin if present.
5151if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5152   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5153  ECHO='print -r --'
5154elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5155  ECHO='printf %s\n'
5156else
5157  # Use this function as a fallback that always works.
5158  func_fallback_echo ()
5159  {
5160    eval 'cat <<_LTECHO_EOF
5161$1
5162_LTECHO_EOF'
5163  }
5164  ECHO='func_fallback_echo'
5165fi
5166
5167# func_echo_all arg...
5168# Invoke $ECHO with all args, space-separated.
5169func_echo_all ()
5170{
5171    $ECHO ""
5172}
5173
5174case $ECHO in
5175  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5176$as_echo "printf" >&6; } ;;
5177  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5178$as_echo "print -r" >&6; } ;;
5179  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5180$as_echo "cat" >&6; } ;;
5181esac
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5197$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5198if ${ac_cv_path_SED+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5202     for ac_i in 1 2 3 4 5 6 7; do
5203       ac_script="$ac_script$as_nl$ac_script"
5204     done
5205     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5206     { ac_script=; unset ac_script;}
5207     if test -z "$SED"; then
5208  ac_path_SED_found=false
5209  # Loop through the user's path and test for each of PROGNAME-LIST
5210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213  IFS=$as_save_IFS
5214  test -z "$as_dir" && as_dir=.
5215    for ac_prog in sed gsed; do
5216    for ac_exec_ext in '' $ac_executable_extensions; do
5217      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5218      as_fn_executable_p "$ac_path_SED" || continue
5219# Check for GNU ac_path_SED and select it if it is found.
5220  # Check for GNU $ac_path_SED
5221case `"$ac_path_SED" --version 2>&1` in
5222*GNU*)
5223  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5224*)
5225  ac_count=0
5226  $as_echo_n 0123456789 >"conftest.in"
5227  while :
5228  do
5229    cat "conftest.in" "conftest.in" >"conftest.tmp"
5230    mv "conftest.tmp" "conftest.in"
5231    cp "conftest.in" "conftest.nl"
5232    $as_echo '' >> "conftest.nl"
5233    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5234    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5235    as_fn_arith $ac_count + 1 && ac_count=$as_val
5236    if test $ac_count -gt ${ac_path_SED_max-0}; then
5237      # Best one so far, save it but keep looking for a better one
5238      ac_cv_path_SED="$ac_path_SED"
5239      ac_path_SED_max=$ac_count
5240    fi
5241    # 10*(2^10) chars as input seems more than enough
5242    test $ac_count -gt 10 && break
5243  done
5244  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5245esac
5246
5247      $ac_path_SED_found && break 3
5248    done
5249  done
5250  done
5251IFS=$as_save_IFS
5252  if test -z "$ac_cv_path_SED"; then
5253    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5254  fi
5255else
5256  ac_cv_path_SED=$SED
5257fi
5258
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5261$as_echo "$ac_cv_path_SED" >&6; }
5262 SED="$ac_cv_path_SED"
5263  rm -f conftest.sed
5264
5265test -z "$SED" && SED=sed
5266Xsed="$SED -e 1s/^X//"
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5279$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5280if ${ac_cv_path_GREP+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  if test -z "$GREP"; then
5284  ac_path_GREP_found=false
5285  # Loop through the user's path and test for each of PROGNAME-LIST
5286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5288do
5289  IFS=$as_save_IFS
5290  test -z "$as_dir" && as_dir=.
5291    for ac_prog in grep ggrep; do
5292    for ac_exec_ext in '' $ac_executable_extensions; do
5293      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5294      as_fn_executable_p "$ac_path_GREP" || continue
5295# Check for GNU ac_path_GREP and select it if it is found.
5296  # Check for GNU $ac_path_GREP
5297case `"$ac_path_GREP" --version 2>&1` in
5298*GNU*)
5299  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5300*)
5301  ac_count=0
5302  $as_echo_n 0123456789 >"conftest.in"
5303  while :
5304  do
5305    cat "conftest.in" "conftest.in" >"conftest.tmp"
5306    mv "conftest.tmp" "conftest.in"
5307    cp "conftest.in" "conftest.nl"
5308    $as_echo 'GREP' >> "conftest.nl"
5309    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5310    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5311    as_fn_arith $ac_count + 1 && ac_count=$as_val
5312    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5313      # Best one so far, save it but keep looking for a better one
5314      ac_cv_path_GREP="$ac_path_GREP"
5315      ac_path_GREP_max=$ac_count
5316    fi
5317    # 10*(2^10) chars as input seems more than enough
5318    test $ac_count -gt 10 && break
5319  done
5320  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5321esac
5322
5323      $ac_path_GREP_found && break 3
5324    done
5325  done
5326  done
5327IFS=$as_save_IFS
5328  if test -z "$ac_cv_path_GREP"; then
5329    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5330  fi
5331else
5332  ac_cv_path_GREP=$GREP
5333fi
5334
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5337$as_echo "$ac_cv_path_GREP" >&6; }
5338 GREP="$ac_cv_path_GREP"
5339
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5342$as_echo_n "checking for egrep... " >&6; }
5343if ${ac_cv_path_EGREP+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5347   then ac_cv_path_EGREP="$GREP -E"
5348   else
5349     if test -z "$EGREP"; then
5350  ac_path_EGREP_found=false
5351  # Loop through the user's path and test for each of PROGNAME-LIST
5352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5354do
5355  IFS=$as_save_IFS
5356  test -z "$as_dir" && as_dir=.
5357    for ac_prog in egrep; do
5358    for ac_exec_ext in '' $ac_executable_extensions; do
5359      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5360      as_fn_executable_p "$ac_path_EGREP" || continue
5361# Check for GNU ac_path_EGREP and select it if it is found.
5362  # Check for GNU $ac_path_EGREP
5363case `"$ac_path_EGREP" --version 2>&1` in
5364*GNU*)
5365  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5366*)
5367  ac_count=0
5368  $as_echo_n 0123456789 >"conftest.in"
5369  while :
5370  do
5371    cat "conftest.in" "conftest.in" >"conftest.tmp"
5372    mv "conftest.tmp" "conftest.in"
5373    cp "conftest.in" "conftest.nl"
5374    $as_echo 'EGREP' >> "conftest.nl"
5375    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5376    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5377    as_fn_arith $ac_count + 1 && ac_count=$as_val
5378    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5379      # Best one so far, save it but keep looking for a better one
5380      ac_cv_path_EGREP="$ac_path_EGREP"
5381      ac_path_EGREP_max=$ac_count
5382    fi
5383    # 10*(2^10) chars as input seems more than enough
5384    test $ac_count -gt 10 && break
5385  done
5386  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5387esac
5388
5389      $ac_path_EGREP_found && break 3
5390    done
5391  done
5392  done
5393IFS=$as_save_IFS
5394  if test -z "$ac_cv_path_EGREP"; then
5395    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5396  fi
5397else
5398  ac_cv_path_EGREP=$EGREP
5399fi
5400
5401   fi
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5404$as_echo "$ac_cv_path_EGREP" >&6; }
5405 EGREP="$ac_cv_path_EGREP"
5406
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5409$as_echo_n "checking for fgrep... " >&6; }
5410if ${ac_cv_path_FGREP+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5414   then ac_cv_path_FGREP="$GREP -F"
5415   else
5416     if test -z "$FGREP"; then
5417  ac_path_FGREP_found=false
5418  # Loop through the user's path and test for each of PROGNAME-LIST
5419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5421do
5422  IFS=$as_save_IFS
5423  test -z "$as_dir" && as_dir=.
5424    for ac_prog in fgrep; do
5425    for ac_exec_ext in '' $ac_executable_extensions; do
5426      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5427      as_fn_executable_p "$ac_path_FGREP" || continue
5428# Check for GNU ac_path_FGREP and select it if it is found.
5429  # Check for GNU $ac_path_FGREP
5430case `"$ac_path_FGREP" --version 2>&1` in
5431*GNU*)
5432  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5433*)
5434  ac_count=0
5435  $as_echo_n 0123456789 >"conftest.in"
5436  while :
5437  do
5438    cat "conftest.in" "conftest.in" >"conftest.tmp"
5439    mv "conftest.tmp" "conftest.in"
5440    cp "conftest.in" "conftest.nl"
5441    $as_echo 'FGREP' >> "conftest.nl"
5442    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444    as_fn_arith $ac_count + 1 && ac_count=$as_val
5445    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5446      # Best one so far, save it but keep looking for a better one
5447      ac_cv_path_FGREP="$ac_path_FGREP"
5448      ac_path_FGREP_max=$ac_count
5449    fi
5450    # 10*(2^10) chars as input seems more than enough
5451    test $ac_count -gt 10 && break
5452  done
5453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5454esac
5455
5456      $ac_path_FGREP_found && break 3
5457    done
5458  done
5459  done
5460IFS=$as_save_IFS
5461  if test -z "$ac_cv_path_FGREP"; then
5462    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5463  fi
5464else
5465  ac_cv_path_FGREP=$FGREP
5466fi
5467
5468   fi
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5471$as_echo "$ac_cv_path_FGREP" >&6; }
5472 FGREP="$ac_cv_path_FGREP"
5473
5474
5475test -z "$GREP" && GREP=grep
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495# Check whether --with-gnu-ld was given.
5496if test "${with_gnu_ld+set}" = set; then :
5497  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5498else
5499  with_gnu_ld=no
5500fi
5501
5502ac_prog=ld
5503if test yes = "$GCC"; then
5504  # Check if gcc -print-prog-name=ld gives a path.
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5506$as_echo_n "checking for ld used by $CC... " >&6; }
5507  case $host in
5508  *-*-mingw*)
5509    # gcc leaves a trailing carriage return, which upsets mingw
5510    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5511  *)
5512    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5513  esac
5514  case $ac_prog in
5515    # Accept absolute paths.
5516    [\\/]* | ?:[\\/]*)
5517      re_direlt='/[^/][^/]*/\.\./'
5518      # Canonicalize the pathname of ld
5519      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5520      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5521	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5522      done
5523      test -z "$LD" && LD=$ac_prog
5524      ;;
5525  "")
5526    # If it fails, then pretend we aren't using GCC.
5527    ac_prog=ld
5528    ;;
5529  *)
5530    # If it is relative, then search for the first ld in PATH.
5531    with_gnu_ld=unknown
5532    ;;
5533  esac
5534elif test yes = "$with_gnu_ld"; then
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5536$as_echo_n "checking for GNU ld... " >&6; }
5537else
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5539$as_echo_n "checking for non-GNU ld... " >&6; }
5540fi
5541if ${lt_cv_path_LD+:} false; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  if test -z "$LD"; then
5545  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5546  for ac_dir in $PATH; do
5547    IFS=$lt_save_ifs
5548    test -z "$ac_dir" && ac_dir=.
5549    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5550      lt_cv_path_LD=$ac_dir/$ac_prog
5551      # Check to see if the program is GNU ld.  I'd rather use --version,
5552      # but apparently some variants of GNU ld only accept -v.
5553      # Break only if it was the GNU/non-GNU ld that we prefer.
5554      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5555      *GNU* | *'with BFD'*)
5556	test no != "$with_gnu_ld" && break
5557	;;
5558      *)
5559	test yes != "$with_gnu_ld" && break
5560	;;
5561      esac
5562    fi
5563  done
5564  IFS=$lt_save_ifs
5565else
5566  lt_cv_path_LD=$LD # Let the user override the test with a path.
5567fi
5568fi
5569
5570LD=$lt_cv_path_LD
5571if test -n "$LD"; then
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5573$as_echo "$LD" >&6; }
5574else
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577fi
5578test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5580$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5581if ${lt_cv_prog_gnu_ld+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5585case `$LD -v 2>&1 </dev/null` in
5586*GNU* | *'with BFD'*)
5587  lt_cv_prog_gnu_ld=yes
5588  ;;
5589*)
5590  lt_cv_prog_gnu_ld=no
5591  ;;
5592esac
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5595$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5596with_gnu_ld=$lt_cv_prog_gnu_ld
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5607$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5608if ${lt_cv_path_NM+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -n "$NM"; then
5612  # Let the user override the test.
5613  lt_cv_path_NM=$NM
5614else
5615  lt_nm_to_check=${ac_tool_prefix}nm
5616  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5617    lt_nm_to_check="$lt_nm_to_check nm"
5618  fi
5619  for lt_tmp_nm in $lt_nm_to_check; do
5620    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5621    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5622      IFS=$lt_save_ifs
5623      test -z "$ac_dir" && ac_dir=.
5624      tmp_nm=$ac_dir/$lt_tmp_nm
5625      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5626	# Check to see if the nm accepts a BSD-compat flag.
5627	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5628	#   nm: unknown option "B" ignored
5629	# Tru64's nm complains that /dev/null is an invalid object file
5630	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5631	case $build_os in
5632	mingw*) lt_bad_file=conftest.nm/nofile ;;
5633	*) lt_bad_file=/dev/null ;;
5634	esac
5635	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5636	*$lt_bad_file* | *'Invalid file or object type'*)
5637	  lt_cv_path_NM="$tmp_nm -B"
5638	  break 2
5639	  ;;
5640	*)
5641	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5642	  */dev/null*)
5643	    lt_cv_path_NM="$tmp_nm -p"
5644	    break 2
5645	    ;;
5646	  *)
5647	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5648	    continue # so that we can try to find one that supports BSD flags
5649	    ;;
5650	  esac
5651	  ;;
5652	esac
5653      fi
5654    done
5655    IFS=$lt_save_ifs
5656  done
5657  : ${lt_cv_path_NM=no}
5658fi
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5661$as_echo "$lt_cv_path_NM" >&6; }
5662if test no != "$lt_cv_path_NM"; then
5663  NM=$lt_cv_path_NM
5664else
5665  # Didn't find any BSD compatible name lister, look for dumpbin.
5666  if test -n "$DUMPBIN"; then :
5667    # Let the user override the test.
5668  else
5669    if test -n "$ac_tool_prefix"; then
5670  for ac_prog in dumpbin "link -dump"
5671  do
5672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if ${ac_cv_prog_DUMPBIN+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  if test -n "$DUMPBIN"; then
5680  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685  IFS=$as_save_IFS
5686  test -z "$as_dir" && as_dir=.
5687    for ac_exec_ext in '' $ac_executable_extensions; do
5688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691    break 2
5692  fi
5693done
5694  done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699DUMPBIN=$ac_cv_prog_DUMPBIN
5700if test -n "$DUMPBIN"; then
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5702$as_echo "$DUMPBIN" >&6; }
5703else
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709    test -n "$DUMPBIN" && break
5710  done
5711fi
5712if test -z "$DUMPBIN"; then
5713  ac_ct_DUMPBIN=$DUMPBIN
5714  for ac_prog in dumpbin "link -dump"
5715do
5716  # Extract the first word of "$ac_prog", so it can be a program name with args.
5717set dummy $ac_prog; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
5720if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  if test -n "$ac_ct_DUMPBIN"; then
5724  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731    for ac_exec_ext in '' $ac_executable_extensions; do
5732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738  done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5744if test -n "$ac_ct_DUMPBIN"; then
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5746$as_echo "$ac_ct_DUMPBIN" >&6; }
5747else
5748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752
5753  test -n "$ac_ct_DUMPBIN" && break
5754done
5755
5756  if test "x$ac_ct_DUMPBIN" = x; then
5757    DUMPBIN=":"
5758  else
5759    case $cross_compiling:$ac_tool_warned in
5760yes:)
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763ac_tool_warned=yes ;;
5764esac
5765    DUMPBIN=$ac_ct_DUMPBIN
5766  fi
5767fi
5768
5769    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5770    *COFF*)
5771      DUMPBIN="$DUMPBIN -symbols -headers"
5772      ;;
5773    *)
5774      DUMPBIN=:
5775      ;;
5776    esac
5777  fi
5778
5779  if test : != "$DUMPBIN"; then
5780    NM=$DUMPBIN
5781  fi
5782fi
5783test -z "$NM" && NM=nm
5784
5785
5786
5787
5788
5789
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5791$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5792if ${lt_cv_nm_interface+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795  lt_cv_nm_interface="BSD nm"
5796  echo "int some_variable = 0;" > conftest.$ac_ext
5797  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5798  (eval "$ac_compile" 2>conftest.err)
5799  cat conftest.err >&5
5800  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5801  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5802  cat conftest.err >&5
5803  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5804  cat conftest.out >&5
5805  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5806    lt_cv_nm_interface="MS dumpbin"
5807  fi
5808  rm -f conftest*
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5811$as_echo "$lt_cv_nm_interface" >&6; }
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5814$as_echo_n "checking whether ln -s works... " >&6; }
5815LN_S=$as_ln_s
5816if test "$LN_S" = "ln -s"; then
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5818$as_echo "yes" >&6; }
5819else
5820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5821$as_echo "no, using $LN_S" >&6; }
5822fi
5823
5824# find the maximum length of command line arguments
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5826$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5827if ${lt_cv_sys_max_cmd_len+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830    i=0
5831  teststring=ABCD
5832
5833  case $build_os in
5834  msdosdjgpp*)
5835    # On DJGPP, this test can blow up pretty badly due to problems in libc
5836    # (any single argument exceeding 2000 bytes causes a buffer overrun
5837    # during glob expansion).  Even if it were fixed, the result of this
5838    # check would be larger than it should be.
5839    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5840    ;;
5841
5842  gnu*)
5843    # Under GNU Hurd, this test is not required because there is
5844    # no limit to the length of command line arguments.
5845    # Libtool will interpret -1 as no limit whatsoever
5846    lt_cv_sys_max_cmd_len=-1;
5847    ;;
5848
5849  cygwin* | mingw* | cegcc*)
5850    # On Win9x/ME, this test blows up -- it succeeds, but takes
5851    # about 5 minutes as the teststring grows exponentially.
5852    # Worse, since 9x/ME are not pre-emptively multitasking,
5853    # you end up with a "frozen" computer, even though with patience
5854    # the test eventually succeeds (with a max line length of 256k).
5855    # Instead, let's just punt: use the minimum linelength reported by
5856    # all of the supported platforms: 8192 (on NT/2K/XP).
5857    lt_cv_sys_max_cmd_len=8192;
5858    ;;
5859
5860  mint*)
5861    # On MiNT this can take a long time and run out of memory.
5862    lt_cv_sys_max_cmd_len=8192;
5863    ;;
5864
5865  amigaos*)
5866    # On AmigaOS with pdksh, this test takes hours, literally.
5867    # So we just punt and use a minimum line length of 8192.
5868    lt_cv_sys_max_cmd_len=8192;
5869    ;;
5870
5871  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5872    # This has been around since 386BSD, at least.  Likely further.
5873    if test -x /sbin/sysctl; then
5874      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5875    elif test -x /usr/sbin/sysctl; then
5876      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5877    else
5878      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5879    fi
5880    # And add a safety zone
5881    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5882    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5883    ;;
5884
5885  interix*)
5886    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5887    lt_cv_sys_max_cmd_len=196608
5888    ;;
5889
5890  os2*)
5891    # The test takes a long time on OS/2.
5892    lt_cv_sys_max_cmd_len=8192
5893    ;;
5894
5895  osf*)
5896    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5897    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5898    # nice to cause kernel panics so lets avoid the loop below.
5899    # First set a reasonable default.
5900    lt_cv_sys_max_cmd_len=16384
5901    #
5902    if test -x /sbin/sysconfig; then
5903      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5904        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5905      esac
5906    fi
5907    ;;
5908  sco3.2v5*)
5909    lt_cv_sys_max_cmd_len=102400
5910    ;;
5911  sysv5* | sco5v6* | sysv4.2uw2*)
5912    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5913    if test -n "$kargmax"; then
5914      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5915    else
5916      lt_cv_sys_max_cmd_len=32768
5917    fi
5918    ;;
5919  *)
5920    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5921    if test -n "$lt_cv_sys_max_cmd_len" && \
5922       test undefined != "$lt_cv_sys_max_cmd_len"; then
5923      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5924      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5925    else
5926      # Make teststring a little bigger before we do anything with it.
5927      # a 1K string should be a reasonable start.
5928      for i in 1 2 3 4 5 6 7 8; do
5929        teststring=$teststring$teststring
5930      done
5931      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5932      # If test is not a shell built-in, we'll probably end up computing a
5933      # maximum length that is only half of the actual maximum length, but
5934      # we can't tell.
5935      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5936	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5937	      test 17 != "$i" # 1/2 MB should be enough
5938      do
5939        i=`expr $i + 1`
5940        teststring=$teststring$teststring
5941      done
5942      # Only check the string length outside the loop.
5943      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5944      teststring=
5945      # Add a significant safety factor because C++ compilers can tack on
5946      # massive amounts of additional arguments before passing them to the
5947      # linker.  It appears as though 1/2 is a usable value.
5948      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5949    fi
5950    ;;
5951  esac
5952
5953fi
5954
5955if test -n "$lt_cv_sys_max_cmd_len"; then
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5957$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5958else
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5960$as_echo "none" >&6; }
5961fi
5962max_cmd_len=$lt_cv_sys_max_cmd_len
5963
5964
5965
5966
5967
5968
5969: ${CP="cp -f"}
5970: ${MV="mv -f"}
5971: ${RM="rm -f"}
5972
5973if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5974  lt_unset=unset
5975else
5976  lt_unset=false
5977fi
5978
5979
5980
5981
5982
5983# test EBCDIC or ASCII
5984case `echo X|tr X '\101'` in
5985 A) # ASCII based system
5986    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5987  lt_SP2NL='tr \040 \012'
5988  lt_NL2SP='tr \015\012 \040\040'
5989  ;;
5990 *) # EBCDIC based system
5991  lt_SP2NL='tr \100 \n'
5992  lt_NL2SP='tr \r\n \100\100'
5993  ;;
5994esac
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6005$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6006if ${lt_cv_to_host_file_cmd+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  case $host in
6010  *-*-mingw* )
6011    case $build in
6012      *-*-mingw* ) # actually msys
6013        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6014        ;;
6015      *-*-cygwin* )
6016        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6017        ;;
6018      * ) # otherwise, assume *nix
6019        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6020        ;;
6021    esac
6022    ;;
6023  *-*-cygwin* )
6024    case $build in
6025      *-*-mingw* ) # actually msys
6026        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6027        ;;
6028      *-*-cygwin* )
6029        lt_cv_to_host_file_cmd=func_convert_file_noop
6030        ;;
6031      * ) # otherwise, assume *nix
6032        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6033        ;;
6034    esac
6035    ;;
6036  * ) # unhandled hosts (and "normal" native builds)
6037    lt_cv_to_host_file_cmd=func_convert_file_noop
6038    ;;
6039esac
6040
6041fi
6042
6043to_host_file_cmd=$lt_cv_to_host_file_cmd
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6045$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6046
6047
6048
6049
6050
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6052$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6053if ${lt_cv_to_tool_file_cmd+:} false; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  #assume ordinary cross tools, or native build.
6057lt_cv_to_tool_file_cmd=func_convert_file_noop
6058case $host in
6059  *-*-mingw* )
6060    case $build in
6061      *-*-mingw* ) # actually msys
6062        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6063        ;;
6064    esac
6065    ;;
6066esac
6067
6068fi
6069
6070to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6072$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6073
6074
6075
6076
6077
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6079$as_echo_n "checking for $LD option to reload object files... " >&6; }
6080if ${lt_cv_ld_reload_flag+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  lt_cv_ld_reload_flag='-r'
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6086$as_echo "$lt_cv_ld_reload_flag" >&6; }
6087reload_flag=$lt_cv_ld_reload_flag
6088case $reload_flag in
6089"" | " "*) ;;
6090*) reload_flag=" $reload_flag" ;;
6091esac
6092reload_cmds='$LD$reload_flag -o $output$reload_objs'
6093case $host_os in
6094  cygwin* | mingw* | pw32* | cegcc*)
6095    if test yes != "$GCC"; then
6096      reload_cmds=false
6097    fi
6098    ;;
6099  darwin*)
6100    if test yes = "$GCC"; then
6101      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6102    else
6103      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6104    fi
6105    ;;
6106esac
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116if test -n "$ac_tool_prefix"; then
6117  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6118set dummy ${ac_tool_prefix}objdump; ac_word=$2
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
6121if ${ac_cv_prog_OBJDUMP+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  if test -n "$OBJDUMP"; then
6125  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130  IFS=$as_save_IFS
6131  test -z "$as_dir" && as_dir=.
6132    for ac_exec_ext in '' $ac_executable_extensions; do
6133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136    break 2
6137  fi
6138done
6139  done
6140IFS=$as_save_IFS
6141
6142fi
6143fi
6144OBJDUMP=$ac_cv_prog_OBJDUMP
6145if test -n "$OBJDUMP"; then
6146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6147$as_echo "$OBJDUMP" >&6; }
6148else
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150$as_echo "no" >&6; }
6151fi
6152
6153
6154fi
6155if test -z "$ac_cv_prog_OBJDUMP"; then
6156  ac_ct_OBJDUMP=$OBJDUMP
6157  # Extract the first word of "objdump", so it can be a program name with args.
6158set dummy objdump; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
6161if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  if test -n "$ac_ct_OBJDUMP"; then
6165  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170  IFS=$as_save_IFS
6171  test -z "$as_dir" && as_dir=.
6172    for ac_exec_ext in '' $ac_executable_extensions; do
6173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176    break 2
6177  fi
6178done
6179  done
6180IFS=$as_save_IFS
6181
6182fi
6183fi
6184ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6185if test -n "$ac_ct_OBJDUMP"; then
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6187$as_echo "$ac_ct_OBJDUMP" >&6; }
6188else
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
6191fi
6192
6193  if test "x$ac_ct_OBJDUMP" = x; then
6194    OBJDUMP="false"
6195  else
6196    case $cross_compiling:$ac_tool_warned in
6197yes:)
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200ac_tool_warned=yes ;;
6201esac
6202    OBJDUMP=$ac_ct_OBJDUMP
6203  fi
6204else
6205  OBJDUMP="$ac_cv_prog_OBJDUMP"
6206fi
6207
6208test -z "$OBJDUMP" && OBJDUMP=objdump
6209
6210
6211
6212
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6216$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6217if ${lt_cv_deplibs_check_method+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  lt_cv_file_magic_cmd='$MAGIC_CMD'
6221lt_cv_file_magic_test_file=
6222lt_cv_deplibs_check_method='unknown'
6223# Need to set the preceding variable on all platforms that support
6224# interlibrary dependencies.
6225# 'none' -- dependencies not supported.
6226# 'unknown' -- same as none, but documents that we really don't know.
6227# 'pass_all' -- all dependencies passed with no checks.
6228# 'test_compile' -- check by making test program.
6229# 'file_magic [[regex]]' -- check by looking for files in library path
6230# that responds to the $file_magic_cmd with a given extended regex.
6231# If you have 'file' or equivalent on your system and you're not sure
6232# whether 'pass_all' will *always* work, you probably want this one.
6233
6234case $host_os in
6235aix[4-9]*)
6236  lt_cv_deplibs_check_method=pass_all
6237  ;;
6238
6239beos*)
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243bsdi[45]*)
6244  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6245  lt_cv_file_magic_cmd='/usr/bin/file -L'
6246  lt_cv_file_magic_test_file=/shlib/libc.so
6247  ;;
6248
6249cygwin*)
6250  # func_win32_libid is a shell function defined in ltmain.sh
6251  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6252  lt_cv_file_magic_cmd='func_win32_libid'
6253  ;;
6254
6255mingw* | pw32*)
6256  # Base MSYS/MinGW do not provide the 'file' command needed by
6257  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6258  # unless we find 'file', for example because we are cross-compiling.
6259  if ( file / ) >/dev/null 2>&1; then
6260    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6261    lt_cv_file_magic_cmd='func_win32_libid'
6262  else
6263    # Keep this pattern in sync with the one in func_win32_libid.
6264    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6265    lt_cv_file_magic_cmd='$OBJDUMP -f'
6266  fi
6267  ;;
6268
6269cegcc*)
6270  # use the weaker test based on 'objdump'. See mingw*.
6271  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6272  lt_cv_file_magic_cmd='$OBJDUMP -f'
6273  ;;
6274
6275darwin* | rhapsody*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278
6279freebsd* | dragonfly*)
6280  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6281    case $host_cpu in
6282    i*86 )
6283      # Not sure whether the presence of OpenBSD here was a mistake.
6284      # Let's accept both of them until this is cleared up.
6285      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6286      lt_cv_file_magic_cmd=/usr/bin/file
6287      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6288      ;;
6289    esac
6290  else
6291    lt_cv_deplibs_check_method=pass_all
6292  fi
6293  ;;
6294
6295haiku*)
6296  lt_cv_deplibs_check_method=pass_all
6297  ;;
6298
6299hpux10.20* | hpux11*)
6300  lt_cv_file_magic_cmd=/usr/bin/file
6301  case $host_cpu in
6302  ia64*)
6303    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6304    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6305    ;;
6306  hppa*64*)
6307    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]'
6308    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6309    ;;
6310  *)
6311    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6312    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6313    ;;
6314  esac
6315  ;;
6316
6317interix[3-9]*)
6318  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6319  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6320  ;;
6321
6322irix5* | irix6* | nonstopux*)
6323  case $LD in
6324  *-32|*"-32 ") libmagic=32-bit;;
6325  *-n32|*"-n32 ") libmagic=N32;;
6326  *-64|*"-64 ") libmagic=64-bit;;
6327  *) libmagic=never-match;;
6328  esac
6329  lt_cv_deplibs_check_method=pass_all
6330  ;;
6331
6332# This must be glibc/ELF.
6333linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6334  lt_cv_deplibs_check_method=pass_all
6335  ;;
6336
6337netbsd*)
6338  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6339    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6340  else
6341    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6342  fi
6343  ;;
6344
6345newos6*)
6346  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6347  lt_cv_file_magic_cmd=/usr/bin/file
6348  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6349  ;;
6350
6351*nto* | *qnx*)
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355openbsd* | bitrig*)
6356  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6357    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6358  else
6359    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6360  fi
6361  ;;
6362
6363osf3* | osf4* | osf5*)
6364  lt_cv_deplibs_check_method=pass_all
6365  ;;
6366
6367rdos*)
6368  lt_cv_deplibs_check_method=pass_all
6369  ;;
6370
6371solaris*)
6372  lt_cv_deplibs_check_method=pass_all
6373  ;;
6374
6375sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6376  lt_cv_deplibs_check_method=pass_all
6377  ;;
6378
6379sysv4 | sysv4.3*)
6380  case $host_vendor in
6381  motorola)
6382    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]'
6383    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6384    ;;
6385  ncr)
6386    lt_cv_deplibs_check_method=pass_all
6387    ;;
6388  sequent)
6389    lt_cv_file_magic_cmd='/bin/file'
6390    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6391    ;;
6392  sni)
6393    lt_cv_file_magic_cmd='/bin/file'
6394    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6395    lt_cv_file_magic_test_file=/lib/libc.so
6396    ;;
6397  siemens)
6398    lt_cv_deplibs_check_method=pass_all
6399    ;;
6400  pc)
6401    lt_cv_deplibs_check_method=pass_all
6402    ;;
6403  esac
6404  ;;
6405
6406tpf*)
6407  lt_cv_deplibs_check_method=pass_all
6408  ;;
6409os2*)
6410  lt_cv_deplibs_check_method=pass_all
6411  ;;
6412esac
6413
6414fi
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6416$as_echo "$lt_cv_deplibs_check_method" >&6; }
6417
6418file_magic_glob=
6419want_nocaseglob=no
6420if test "$build" = "$host"; then
6421  case $host_os in
6422  mingw* | pw32*)
6423    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6424      want_nocaseglob=yes
6425    else
6426      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6427    fi
6428    ;;
6429  esac
6430fi
6431
6432file_magic_cmd=$lt_cv_file_magic_cmd
6433deplibs_check_method=$lt_cv_deplibs_check_method
6434test -z "$deplibs_check_method" && deplibs_check_method=unknown
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457if test -n "$ac_tool_prefix"; then
6458  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6459set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461$as_echo_n "checking for $ac_word... " >&6; }
6462if ${ac_cv_prog_DLLTOOL+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  if test -n "$DLLTOOL"; then
6466  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473    for ac_exec_ext in '' $ac_executable_extensions; do
6474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480  done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485DLLTOOL=$ac_cv_prog_DLLTOOL
6486if test -n "$DLLTOOL"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6488$as_echo "$DLLTOOL" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494
6495fi
6496if test -z "$ac_cv_prog_DLLTOOL"; then
6497  ac_ct_DLLTOOL=$DLLTOOL
6498  # Extract the first word of "dlltool", so it can be a program name with args.
6499set dummy dlltool; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
6502if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  if test -n "$ac_ct_DLLTOOL"; then
6506  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511  IFS=$as_save_IFS
6512  test -z "$as_dir" && as_dir=.
6513    for ac_exec_ext in '' $ac_executable_extensions; do
6514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517    break 2
6518  fi
6519done
6520  done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6526if test -n "$ac_ct_DLLTOOL"; then
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6528$as_echo "$ac_ct_DLLTOOL" >&6; }
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534  if test "x$ac_ct_DLLTOOL" = x; then
6535    DLLTOOL="false"
6536  else
6537    case $cross_compiling:$ac_tool_warned in
6538yes:)
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541ac_tool_warned=yes ;;
6542esac
6543    DLLTOOL=$ac_ct_DLLTOOL
6544  fi
6545else
6546  DLLTOOL="$ac_cv_prog_DLLTOOL"
6547fi
6548
6549test -z "$DLLTOOL" && DLLTOOL=dlltool
6550
6551
6552
6553
6554
6555
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6558$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6559if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  lt_cv_sharedlib_from_linklib_cmd='unknown'
6563
6564case $host_os in
6565cygwin* | mingw* | pw32* | cegcc*)
6566  # two different shell functions defined in ltmain.sh;
6567  # decide which one to use based on capabilities of $DLLTOOL
6568  case `$DLLTOOL --help 2>&1` in
6569  *--identify-strict*)
6570    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6571    ;;
6572  *)
6573    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6574    ;;
6575  esac
6576  ;;
6577*)
6578  # fallback: assume linklib IS sharedlib
6579  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6580  ;;
6581esac
6582
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6585$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6586sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6587test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6588
6589
6590
6591
6592
6593
6594
6595if test -n "$ac_tool_prefix"; then
6596  for ac_prog in ar
6597  do
6598    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601$as_echo_n "checking for $ac_word... " >&6; }
6602if ${ac_cv_prog_AR+:} false; then :
6603  $as_echo_n "(cached) " >&6
6604else
6605  if test -n "$AR"; then
6606  ac_cv_prog_AR="$AR" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611  IFS=$as_save_IFS
6612  test -z "$as_dir" && as_dir=.
6613    for ac_exec_ext in '' $ac_executable_extensions; do
6614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617    break 2
6618  fi
6619done
6620  done
6621IFS=$as_save_IFS
6622
6623fi
6624fi
6625AR=$ac_cv_prog_AR
6626if test -n "$AR"; then
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6628$as_echo "$AR" >&6; }
6629else
6630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631$as_echo "no" >&6; }
6632fi
6633
6634
6635    test -n "$AR" && break
6636  done
6637fi
6638if test -z "$AR"; then
6639  ac_ct_AR=$AR
6640  for ac_prog in ar
6641do
6642  # Extract the first word of "$ac_prog", so it can be a program name with args.
6643set dummy $ac_prog; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if ${ac_cv_prog_ac_ct_AR+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  if test -n "$ac_ct_AR"; then
6650  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655  IFS=$as_save_IFS
6656  test -z "$as_dir" && as_dir=.
6657    for ac_exec_ext in '' $ac_executable_extensions; do
6658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659    ac_cv_prog_ac_ct_AR="$ac_prog"
6660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661    break 2
6662  fi
6663done
6664  done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669ac_ct_AR=$ac_cv_prog_ac_ct_AR
6670if test -n "$ac_ct_AR"; then
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6672$as_echo "$ac_ct_AR" >&6; }
6673else
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678
6679  test -n "$ac_ct_AR" && break
6680done
6681
6682  if test "x$ac_ct_AR" = x; then
6683    AR="false"
6684  else
6685    case $cross_compiling:$ac_tool_warned in
6686yes:)
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6689ac_tool_warned=yes ;;
6690esac
6691    AR=$ac_ct_AR
6692  fi
6693fi
6694
6695: ${AR=ar}
6696: ${AR_FLAGS=cru}
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6709$as_echo_n "checking for archiver @FILE support... " >&6; }
6710if ${lt_cv_ar_at_file+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  lt_cv_ar_at_file=no
6714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716
6717int
6718main ()
6719{
6720
6721  ;
6722  return 0;
6723}
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"; then :
6726  echo conftest.$ac_objext > conftest.lst
6727      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6728      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6729  (eval $lt_ar_try) 2>&5
6730  ac_status=$?
6731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732  test $ac_status = 0; }
6733      if test 0 -eq "$ac_status"; then
6734	# Ensure the archiver fails upon bogus file names.
6735	rm -f conftest.$ac_objext libconftest.a
6736	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6737  (eval $lt_ar_try) 2>&5
6738  ac_status=$?
6739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740  test $ac_status = 0; }
6741	if test 0 -ne "$ac_status"; then
6742          lt_cv_ar_at_file=@
6743        fi
6744      fi
6745      rm -f conftest.* libconftest.a
6746
6747fi
6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6752$as_echo "$lt_cv_ar_at_file" >&6; }
6753
6754if test no = "$lt_cv_ar_at_file"; then
6755  archiver_list_spec=
6756else
6757  archiver_list_spec=$lt_cv_ar_at_file
6758fi
6759
6760
6761
6762
6763
6764
6765
6766if test -n "$ac_tool_prefix"; then
6767  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6768set dummy ${ac_tool_prefix}strip; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_STRIP+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$STRIP"; then
6775  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794STRIP=$ac_cv_prog_STRIP
6795if test -n "$STRIP"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6797$as_echo "$STRIP" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804fi
6805if test -z "$ac_cv_prog_STRIP"; then
6806  ac_ct_STRIP=$STRIP
6807  # Extract the first word of "strip", so it can be a program name with args.
6808set dummy strip; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  if test -n "$ac_ct_STRIP"; then
6815  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820  IFS=$as_save_IFS
6821  test -z "$as_dir" && as_dir=.
6822    for ac_exec_ext in '' $ac_executable_extensions; do
6823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824    ac_cv_prog_ac_ct_STRIP="strip"
6825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826    break 2
6827  fi
6828done
6829  done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6835if test -n "$ac_ct_STRIP"; then
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6837$as_echo "$ac_ct_STRIP" >&6; }
6838else
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
6841fi
6842
6843  if test "x$ac_ct_STRIP" = x; then
6844    STRIP=":"
6845  else
6846    case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852    STRIP=$ac_ct_STRIP
6853  fi
6854else
6855  STRIP="$ac_cv_prog_STRIP"
6856fi
6857
6858test -z "$STRIP" && STRIP=:
6859
6860
6861
6862
6863
6864
6865if test -n "$ac_tool_prefix"; then
6866  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if ${ac_cv_prog_RANLIB+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$RANLIB"; then
6874  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881    for ac_exec_ext in '' $ac_executable_extensions; do
6882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888  done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893RANLIB=$ac_cv_prog_RANLIB
6894if test -n "$RANLIB"; then
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6896$as_echo "$RANLIB" >&6; }
6897else
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903fi
6904if test -z "$ac_cv_prog_RANLIB"; then
6905  ac_ct_RANLIB=$RANLIB
6906  # Extract the first word of "ranlib", so it can be a program name with args.
6907set dummy ranlib; ac_word=$2
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  if test -n "$ac_ct_RANLIB"; then
6914  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919  IFS=$as_save_IFS
6920  test -z "$as_dir" && as_dir=.
6921    for ac_exec_ext in '' $ac_executable_extensions; do
6922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923    ac_cv_prog_ac_ct_RANLIB="ranlib"
6924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925    break 2
6926  fi
6927done
6928  done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6934if test -n "$ac_ct_RANLIB"; then
6935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6936$as_echo "$ac_ct_RANLIB" >&6; }
6937else
6938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942  if test "x$ac_ct_RANLIB" = x; then
6943    RANLIB=":"
6944  else
6945    case $cross_compiling:$ac_tool_warned in
6946yes:)
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949ac_tool_warned=yes ;;
6950esac
6951    RANLIB=$ac_ct_RANLIB
6952  fi
6953else
6954  RANLIB="$ac_cv_prog_RANLIB"
6955fi
6956
6957test -z "$RANLIB" && RANLIB=:
6958
6959
6960
6961
6962
6963
6964# Determine commands to create old-style static archives.
6965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6966old_postinstall_cmds='chmod 644 $oldlib'
6967old_postuninstall_cmds=
6968
6969if test -n "$RANLIB"; then
6970  case $host_os in
6971  bitrig* | openbsd*)
6972    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6973    ;;
6974  *)
6975    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6976    ;;
6977  esac
6978  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6979fi
6980
6981case $host_os in
6982  darwin*)
6983    lock_old_archive_extraction=yes ;;
6984  *)
6985    lock_old_archive_extraction=no ;;
6986esac
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026# If no C compiler was specified, use CC.
7027LTCC=${LTCC-"$CC"}
7028
7029# If no C compiler flags were specified, use CFLAGS.
7030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7031
7032# Allow CC to be a program name with arguments.
7033compiler=$CC
7034
7035
7036# Check for command to grab the raw symbol name followed by C symbol from nm.
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7038$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7039if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042
7043# These are sane defaults that work on at least a few old systems.
7044# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7045
7046# Character class describing NM global symbol codes.
7047symcode='[BCDEGRST]'
7048
7049# Regexp to match symbols that can be accessed directly from C.
7050sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7051
7052# Define system-specific variables.
7053case $host_os in
7054aix*)
7055  symcode='[BCDT]'
7056  ;;
7057cygwin* | mingw* | pw32* | cegcc*)
7058  symcode='[ABCDGISTW]'
7059  ;;
7060hpux*)
7061  if test ia64 = "$host_cpu"; then
7062    symcode='[ABCDEGRST]'
7063  fi
7064  ;;
7065irix* | nonstopux*)
7066  symcode='[BCDEGRST]'
7067  ;;
7068osf*)
7069  symcode='[BCDEGQRST]'
7070  ;;
7071solaris*)
7072  symcode='[BDRT]'
7073  ;;
7074sco3.2v5*)
7075  symcode='[DT]'
7076  ;;
7077sysv4.2uw2*)
7078  symcode='[DT]'
7079  ;;
7080sysv5* | sco5v6* | unixware* | OpenUNIX*)
7081  symcode='[ABDT]'
7082  ;;
7083sysv4)
7084  symcode='[DFNSTU]'
7085  ;;
7086esac
7087
7088# If we're using GNU nm, then use its standard symbol codes.
7089case `$NM -V 2>&1` in
7090*GNU* | *'with BFD'*)
7091  symcode='[ABCDGIRSTW]' ;;
7092esac
7093
7094if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7095  # Gets list of data symbols to import.
7096  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7097  # Adjust the below global symbol transforms to fixup imported variables.
7098  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7099  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7100  lt_c_name_lib_hook="\
7101  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7102  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7103else
7104  # Disable hooks by default.
7105  lt_cv_sys_global_symbol_to_import=
7106  lt_cdecl_hook=
7107  lt_c_name_hook=
7108  lt_c_name_lib_hook=
7109fi
7110
7111# Transform an extracted symbol line into a proper C declaration.
7112# Some systems (esp. on ia64) link data and code symbols differently,
7113# so use this general approach.
7114lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7115$lt_cdecl_hook\
7116" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7117" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7118
7119# Transform an extracted symbol line into symbol name and symbol address
7120lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7121$lt_c_name_hook\
7122" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7123" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7124
7125# Transform an extracted symbol line into symbol name with lib prefix and
7126# symbol address.
7127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7128$lt_c_name_lib_hook\
7129" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7130" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7131" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7132
7133# Handle CRLF in mingw tool chain
7134opt_cr=
7135case $build_os in
7136mingw*)
7137  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7138  ;;
7139esac
7140
7141# Try without a prefix underscore, then with it.
7142for ac_symprfx in "" "_"; do
7143
7144  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7145  symxfrm="\\1 $ac_symprfx\\2 \\2"
7146
7147  # Write the raw and C identifiers.
7148  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149    # Fake it for dumpbin and say T for any non-static function,
7150    # D for any global variable and I for any imported variable.
7151    # Also find C++ and __fastcall symbols from MSVC++,
7152    # which start with @ or ?.
7153    lt_cv_sys_global_symbol_pipe="$AWK '"\
7154"     {last_section=section; section=\$ 3};"\
7155"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7156"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7157"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7158"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7159"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7160"     \$ 0!~/External *\|/{next};"\
7161"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7162"     {if(hide[section]) next};"\
7163"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7164"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7165"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7166"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7167"     ' prfx=^$ac_symprfx"
7168  else
7169    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7170  fi
7171  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7172
7173  # Check to see that the pipe works correctly.
7174  pipe_works=no
7175
7176  rm -f conftest*
7177  cat > conftest.$ac_ext <<_LT_EOF
7178#ifdef __cplusplus
7179extern "C" {
7180#endif
7181char nm_test_var;
7182void nm_test_func(void);
7183void nm_test_func(void){}
7184#ifdef __cplusplus
7185}
7186#endif
7187int main(){nm_test_var='a';nm_test_func();return(0);}
7188_LT_EOF
7189
7190  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191  (eval $ac_compile) 2>&5
7192  ac_status=$?
7193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194  test $ac_status = 0; }; then
7195    # Now try to grab the symbols.
7196    nlist=conftest.nm
7197    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7198  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7199  ac_status=$?
7200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201  test $ac_status = 0; } && test -s "$nlist"; then
7202      # Try sorting and uniquifying the output.
7203      if sort "$nlist" | uniq > "$nlist"T; then
7204	mv -f "$nlist"T "$nlist"
7205      else
7206	rm -f "$nlist"T
7207      fi
7208
7209      # Make sure that we snagged all the symbols we need.
7210      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7211	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7212	  cat <<_LT_EOF > conftest.$ac_ext
7213/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7214#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7215/* DATA imports from DLLs on WIN32 can't be const, because runtime
7216   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7217# define LT_DLSYM_CONST
7218#elif defined __osf__
7219/* This system does not cope well with relocations in const data.  */
7220# define LT_DLSYM_CONST
7221#else
7222# define LT_DLSYM_CONST const
7223#endif
7224
7225#ifdef __cplusplus
7226extern "C" {
7227#endif
7228
7229_LT_EOF
7230	  # Now generate the symbol file.
7231	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7232
7233	  cat <<_LT_EOF >> conftest.$ac_ext
7234
7235/* The mapping between symbol names and symbols.  */
7236LT_DLSYM_CONST struct {
7237  const char *name;
7238  void       *address;
7239}
7240lt__PROGRAM__LTX_preloaded_symbols[] =
7241{
7242  { "@PROGRAM@", (void *) 0 },
7243_LT_EOF
7244	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7245	  cat <<\_LT_EOF >> conftest.$ac_ext
7246  {0, (void *) 0}
7247};
7248
7249/* This works around a problem in FreeBSD linker */
7250#ifdef FREEBSD_WORKAROUND
7251static const void *lt_preloaded_setup() {
7252  return lt__PROGRAM__LTX_preloaded_symbols;
7253}
7254#endif
7255
7256#ifdef __cplusplus
7257}
7258#endif
7259_LT_EOF
7260	  # Now try linking the two files.
7261	  mv conftest.$ac_objext conftstm.$ac_objext
7262	  lt_globsym_save_LIBS=$LIBS
7263	  lt_globsym_save_CFLAGS=$CFLAGS
7264	  LIBS=conftstm.$ac_objext
7265	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7266	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7267  (eval $ac_link) 2>&5
7268  ac_status=$?
7269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7270  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7271	    pipe_works=yes
7272	  fi
7273	  LIBS=$lt_globsym_save_LIBS
7274	  CFLAGS=$lt_globsym_save_CFLAGS
7275	else
7276	  echo "cannot find nm_test_func in $nlist" >&5
7277	fi
7278      else
7279	echo "cannot find nm_test_var in $nlist" >&5
7280      fi
7281    else
7282      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7283    fi
7284  else
7285    echo "$progname: failed program was:" >&5
7286    cat conftest.$ac_ext >&5
7287  fi
7288  rm -rf conftest* conftst*
7289
7290  # Do not use the global_symbol_pipe unless it works.
7291  if test yes = "$pipe_works"; then
7292    break
7293  else
7294    lt_cv_sys_global_symbol_pipe=
7295  fi
7296done
7297
7298fi
7299
7300if test -z "$lt_cv_sys_global_symbol_pipe"; then
7301  lt_cv_sys_global_symbol_to_cdecl=
7302fi
7303if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7305$as_echo "failed" >&6; }
7306else
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7308$as_echo "ok" >&6; }
7309fi
7310
7311# Response file support.
7312if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7313  nm_file_list_spec='@'
7314elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7315  nm_file_list_spec='@'
7316fi
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7355$as_echo_n "checking for sysroot... " >&6; }
7356
7357# Check whether --with-sysroot was given.
7358if test "${with_sysroot+set}" = set; then :
7359  withval=$with_sysroot;
7360else
7361  with_sysroot=no
7362fi
7363
7364
7365lt_sysroot=
7366case $with_sysroot in #(
7367 yes)
7368   if test yes = "$GCC"; then
7369     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7370   fi
7371   ;; #(
7372 /*)
7373   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7374   ;; #(
7375 no|'')
7376   ;; #(
7377 *)
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7379$as_echo "$with_sysroot" >&6; }
7380   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7381   ;;
7382esac
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7385$as_echo "${lt_sysroot:-no}" >&6; }
7386
7387
7388
7389
7390
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7392$as_echo_n "checking for a working dd... " >&6; }
7393if ${ac_cv_path_lt_DD+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  printf 0123456789abcdef0123456789abcdef >conftest.i
7397cat conftest.i conftest.i >conftest2.i
7398: ${lt_DD:=$DD}
7399if test -z "$lt_DD"; then
7400  ac_path_lt_DD_found=false
7401  # Loop through the user's path and test for each of PROGNAME-LIST
7402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405  IFS=$as_save_IFS
7406  test -z "$as_dir" && as_dir=.
7407    for ac_prog in dd; do
7408    for ac_exec_ext in '' $ac_executable_extensions; do
7409      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7410      as_fn_executable_p "$ac_path_lt_DD" || continue
7411if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7412  cmp -s conftest.i conftest.out \
7413  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7414fi
7415      $ac_path_lt_DD_found && break 3
7416    done
7417  done
7418  done
7419IFS=$as_save_IFS
7420  if test -z "$ac_cv_path_lt_DD"; then
7421    :
7422  fi
7423else
7424  ac_cv_path_lt_DD=$lt_DD
7425fi
7426
7427rm -f conftest.i conftest2.i conftest.out
7428fi
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7430$as_echo "$ac_cv_path_lt_DD" >&6; }
7431
7432
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7434$as_echo_n "checking how to truncate binary pipes... " >&6; }
7435if ${lt_cv_truncate_bin+:} false; then :
7436  $as_echo_n "(cached) " >&6
7437else
7438  printf 0123456789abcdef0123456789abcdef >conftest.i
7439cat conftest.i conftest.i >conftest2.i
7440lt_cv_truncate_bin=
7441if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7442  cmp -s conftest.i conftest.out \
7443  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7444fi
7445rm -f conftest.i conftest2.i conftest.out
7446test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7449$as_echo "$lt_cv_truncate_bin" >&6; }
7450
7451
7452
7453
7454
7455
7456
7457# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7458func_cc_basename ()
7459{
7460    for cc_temp in $*""; do
7461      case $cc_temp in
7462        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7463        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7464        \-*) ;;
7465        *) break;;
7466      esac
7467    done
7468    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7469}
7470
7471# Check whether --enable-libtool-lock was given.
7472if test "${enable_libtool_lock+set}" = set; then :
7473  enableval=$enable_libtool_lock;
7474fi
7475
7476test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7477
7478# Some flags need to be propagated to the compiler or linker for good
7479# libtool support.
7480case $host in
7481ia64-*-hpux*)
7482  # Find out what ABI is being produced by ac_compile, and set mode
7483  # options accordingly.
7484  echo 'int i;' > conftest.$ac_ext
7485  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7486  (eval $ac_compile) 2>&5
7487  ac_status=$?
7488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489  test $ac_status = 0; }; then
7490    case `/usr/bin/file conftest.$ac_objext` in
7491      *ELF-32*)
7492	HPUX_IA64_MODE=32
7493	;;
7494      *ELF-64*)
7495	HPUX_IA64_MODE=64
7496	;;
7497    esac
7498  fi
7499  rm -rf conftest*
7500  ;;
7501*-*-irix6*)
7502  # Find out what ABI is being produced by ac_compile, and set linker
7503  # options accordingly.
7504  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7505  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7506  (eval $ac_compile) 2>&5
7507  ac_status=$?
7508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509  test $ac_status = 0; }; then
7510    if test yes = "$lt_cv_prog_gnu_ld"; then
7511      case `/usr/bin/file conftest.$ac_objext` in
7512	*32-bit*)
7513	  LD="${LD-ld} -melf32bsmip"
7514	  ;;
7515	*N32*)
7516	  LD="${LD-ld} -melf32bmipn32"
7517	  ;;
7518	*64-bit*)
7519	  LD="${LD-ld} -melf64bmip"
7520	;;
7521      esac
7522    else
7523      case `/usr/bin/file conftest.$ac_objext` in
7524	*32-bit*)
7525	  LD="${LD-ld} -32"
7526	  ;;
7527	*N32*)
7528	  LD="${LD-ld} -n32"
7529	  ;;
7530	*64-bit*)
7531	  LD="${LD-ld} -64"
7532	  ;;
7533      esac
7534    fi
7535  fi
7536  rm -rf conftest*
7537  ;;
7538
7539mips64*-*linux*)
7540  # Find out what ABI is being produced by ac_compile, and set linker
7541  # options accordingly.
7542  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7543  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7544  (eval $ac_compile) 2>&5
7545  ac_status=$?
7546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547  test $ac_status = 0; }; then
7548    emul=elf
7549    case `/usr/bin/file conftest.$ac_objext` in
7550      *32-bit*)
7551	emul="${emul}32"
7552	;;
7553      *64-bit*)
7554	emul="${emul}64"
7555	;;
7556    esac
7557    case `/usr/bin/file conftest.$ac_objext` in
7558      *MSB*)
7559	emul="${emul}btsmip"
7560	;;
7561      *LSB*)
7562	emul="${emul}ltsmip"
7563	;;
7564    esac
7565    case `/usr/bin/file conftest.$ac_objext` in
7566      *N32*)
7567	emul="${emul}n32"
7568	;;
7569    esac
7570    LD="${LD-ld} -m $emul"
7571  fi
7572  rm -rf conftest*
7573  ;;
7574
7575x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7576s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7577  # Find out what ABI is being produced by ac_compile, and set linker
7578  # options accordingly.  Note that the listed cases only cover the
7579  # situations where additional linker options are needed (such as when
7580  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7581  # vice versa); the common cases where no linker options are needed do
7582  # not appear in the list.
7583  echo 'int i;' > conftest.$ac_ext
7584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585  (eval $ac_compile) 2>&5
7586  ac_status=$?
7587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588  test $ac_status = 0; }; then
7589    case `/usr/bin/file conftest.o` in
7590      *32-bit*)
7591	case $host in
7592	  x86_64-*kfreebsd*-gnu)
7593	    LD="${LD-ld} -m elf_i386_fbsd"
7594	    ;;
7595	  x86_64-*linux*)
7596	    case `/usr/bin/file conftest.o` in
7597	      *x86-64*)
7598		LD="${LD-ld} -m elf32_x86_64"
7599		;;
7600	      *)
7601		LD="${LD-ld} -m elf_i386"
7602		;;
7603	    esac
7604	    ;;
7605	  powerpc64le-*linux*)
7606	    LD="${LD-ld} -m elf32lppclinux"
7607	    ;;
7608	  powerpc64-*linux*)
7609	    LD="${LD-ld} -m elf32ppclinux"
7610	    ;;
7611	  s390x-*linux*)
7612	    LD="${LD-ld} -m elf_s390"
7613	    ;;
7614	  sparc64-*linux*)
7615	    LD="${LD-ld} -m elf32_sparc"
7616	    ;;
7617	esac
7618	;;
7619      *64-bit*)
7620	case $host in
7621	  x86_64-*kfreebsd*-gnu)
7622	    LD="${LD-ld} -m elf_x86_64_fbsd"
7623	    ;;
7624	  x86_64-*linux*)
7625	    LD="${LD-ld} -m elf_x86_64"
7626	    ;;
7627	  powerpcle-*linux*)
7628	    LD="${LD-ld} -m elf64lppc"
7629	    ;;
7630	  powerpc-*linux*)
7631	    LD="${LD-ld} -m elf64ppc"
7632	    ;;
7633	  s390*-*linux*|s390*-*tpf*)
7634	    LD="${LD-ld} -m elf64_s390"
7635	    ;;
7636	  sparc*-*linux*)
7637	    LD="${LD-ld} -m elf64_sparc"
7638	    ;;
7639	esac
7640	;;
7641    esac
7642  fi
7643  rm -rf conftest*
7644  ;;
7645
7646*-*-sco3.2v5*)
7647  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7648  SAVE_CFLAGS=$CFLAGS
7649  CFLAGS="$CFLAGS -belf"
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7651$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7652if ${lt_cv_cc_needs_belf+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  ac_ext=c
7656ac_cpp='$CPP $CPPFLAGS'
7657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663
7664int
7665main ()
7666{
7667
7668  ;
7669  return 0;
7670}
7671_ACEOF
7672if ac_fn_c_try_link "$LINENO"; then :
7673  lt_cv_cc_needs_belf=yes
7674else
7675  lt_cv_cc_needs_belf=no
7676fi
7677rm -f core conftest.err conftest.$ac_objext \
7678    conftest$ac_exeext conftest.$ac_ext
7679     ac_ext=c
7680ac_cpp='$CPP $CPPFLAGS'
7681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7687$as_echo "$lt_cv_cc_needs_belf" >&6; }
7688  if test yes != "$lt_cv_cc_needs_belf"; then
7689    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7690    CFLAGS=$SAVE_CFLAGS
7691  fi
7692  ;;
7693*-*solaris*)
7694  # Find out what ABI is being produced by ac_compile, and set linker
7695  # options accordingly.
7696  echo 'int i;' > conftest.$ac_ext
7697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7698  (eval $ac_compile) 2>&5
7699  ac_status=$?
7700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701  test $ac_status = 0; }; then
7702    case `/usr/bin/file conftest.o` in
7703    *64-bit*)
7704      case $lt_cv_prog_gnu_ld in
7705      yes*)
7706        case $host in
7707        i?86-*-solaris*|x86_64-*-solaris*)
7708          LD="${LD-ld} -m elf_x86_64"
7709          ;;
7710        sparc*-*-solaris*)
7711          LD="${LD-ld} -m elf64_sparc"
7712          ;;
7713        esac
7714        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7715        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7716          LD=${LD-ld}_sol2
7717        fi
7718        ;;
7719      *)
7720	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7721	  LD="${LD-ld} -64"
7722	fi
7723	;;
7724      esac
7725      ;;
7726    esac
7727  fi
7728  rm -rf conftest*
7729  ;;
7730esac
7731
7732need_locks=$enable_libtool_lock
7733
7734if test -n "$ac_tool_prefix"; then
7735  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7736set dummy ${ac_tool_prefix}mt; ac_word=$2
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  if test -n "$MANIFEST_TOOL"; then
7743  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748  IFS=$as_save_IFS
7749  test -z "$as_dir" && as_dir=.
7750    for ac_exec_ext in '' $ac_executable_extensions; do
7751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754    break 2
7755  fi
7756done
7757  done
7758IFS=$as_save_IFS
7759
7760fi
7761fi
7762MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7763if test -n "$MANIFEST_TOOL"; then
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7765$as_echo "$MANIFEST_TOOL" >&6; }
7766else
7767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
7769fi
7770
7771
7772fi
7773if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7774  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7775  # Extract the first word of "mt", so it can be a program name with args.
7776set dummy mt; ac_word=$2
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778$as_echo_n "checking for $ac_word... " >&6; }
7779if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7780  $as_echo_n "(cached) " >&6
7781else
7782  if test -n "$ac_ct_MANIFEST_TOOL"; then
7783  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7784else
7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788  IFS=$as_save_IFS
7789  test -z "$as_dir" && as_dir=.
7790    for ac_exec_ext in '' $ac_executable_extensions; do
7791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797  done
7798IFS=$as_save_IFS
7799
7800fi
7801fi
7802ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7803if test -n "$ac_ct_MANIFEST_TOOL"; then
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7805$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7806else
7807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808$as_echo "no" >&6; }
7809fi
7810
7811  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7812    MANIFEST_TOOL=":"
7813  else
7814    case $cross_compiling:$ac_tool_warned in
7815yes:)
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818ac_tool_warned=yes ;;
7819esac
7820    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7821  fi
7822else
7823  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7824fi
7825
7826test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7828$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7829if ${lt_cv_path_mainfest_tool+:} false; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  lt_cv_path_mainfest_tool=no
7833  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7834  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7835  cat conftest.err >&5
7836  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7837    lt_cv_path_mainfest_tool=yes
7838  fi
7839  rm -f conftest*
7840fi
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7842$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7843if test yes != "$lt_cv_path_mainfest_tool"; then
7844  MANIFEST_TOOL=:
7845fi
7846
7847
7848
7849
7850
7851
7852  case $host_os in
7853    rhapsody* | darwin*)
7854    if test -n "$ac_tool_prefix"; then
7855  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7856set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858$as_echo_n "checking for $ac_word... " >&6; }
7859if ${ac_cv_prog_DSYMUTIL+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  if test -n "$DSYMUTIL"; then
7863  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7864else
7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868  IFS=$as_save_IFS
7869  test -z "$as_dir" && as_dir=.
7870    for ac_exec_ext in '' $ac_executable_extensions; do
7871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874    break 2
7875  fi
7876done
7877  done
7878IFS=$as_save_IFS
7879
7880fi
7881fi
7882DSYMUTIL=$ac_cv_prog_DSYMUTIL
7883if test -n "$DSYMUTIL"; then
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7885$as_echo "$DSYMUTIL" >&6; }
7886else
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889fi
7890
7891
7892fi
7893if test -z "$ac_cv_prog_DSYMUTIL"; then
7894  ac_ct_DSYMUTIL=$DSYMUTIL
7895  # Extract the first word of "dsymutil", so it can be a program name with args.
7896set dummy dsymutil; ac_word=$2
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898$as_echo_n "checking for $ac_word... " >&6; }
7899if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7900  $as_echo_n "(cached) " >&6
7901else
7902  if test -n "$ac_ct_DSYMUTIL"; then
7903  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908  IFS=$as_save_IFS
7909  test -z "$as_dir" && as_dir=.
7910    for ac_exec_ext in '' $ac_executable_extensions; do
7911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914    break 2
7915  fi
7916done
7917  done
7918IFS=$as_save_IFS
7919
7920fi
7921fi
7922ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7923if test -n "$ac_ct_DSYMUTIL"; then
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7925$as_echo "$ac_ct_DSYMUTIL" >&6; }
7926else
7927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
7929fi
7930
7931  if test "x$ac_ct_DSYMUTIL" = x; then
7932    DSYMUTIL=":"
7933  else
7934    case $cross_compiling:$ac_tool_warned in
7935yes:)
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938ac_tool_warned=yes ;;
7939esac
7940    DSYMUTIL=$ac_ct_DSYMUTIL
7941  fi
7942else
7943  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7944fi
7945
7946    if test -n "$ac_tool_prefix"; then
7947  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7948set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
7951if ${ac_cv_prog_NMEDIT+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  if test -n "$NMEDIT"; then
7955  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960  IFS=$as_save_IFS
7961  test -z "$as_dir" && as_dir=.
7962    for ac_exec_ext in '' $ac_executable_extensions; do
7963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966    break 2
7967  fi
7968done
7969  done
7970IFS=$as_save_IFS
7971
7972fi
7973fi
7974NMEDIT=$ac_cv_prog_NMEDIT
7975if test -n "$NMEDIT"; then
7976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7977$as_echo "$NMEDIT" >&6; }
7978else
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983
7984fi
7985if test -z "$ac_cv_prog_NMEDIT"; then
7986  ac_ct_NMEDIT=$NMEDIT
7987  # Extract the first word of "nmedit", so it can be a program name with args.
7988set dummy nmedit; ac_word=$2
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
7991if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  if test -n "$ac_ct_NMEDIT"; then
7995  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7996else
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000  IFS=$as_save_IFS
8001  test -z "$as_dir" && as_dir=.
8002    for ac_exec_ext in '' $ac_executable_extensions; do
8003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006    break 2
8007  fi
8008done
8009  done
8010IFS=$as_save_IFS
8011
8012fi
8013fi
8014ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8015if test -n "$ac_ct_NMEDIT"; then
8016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8017$as_echo "$ac_ct_NMEDIT" >&6; }
8018else
8019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020$as_echo "no" >&6; }
8021fi
8022
8023  if test "x$ac_ct_NMEDIT" = x; then
8024    NMEDIT=":"
8025  else
8026    case $cross_compiling:$ac_tool_warned in
8027yes:)
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030ac_tool_warned=yes ;;
8031esac
8032    NMEDIT=$ac_ct_NMEDIT
8033  fi
8034else
8035  NMEDIT="$ac_cv_prog_NMEDIT"
8036fi
8037
8038    if test -n "$ac_tool_prefix"; then
8039  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8040set dummy ${ac_tool_prefix}lipo; ac_word=$2
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042$as_echo_n "checking for $ac_word... " >&6; }
8043if ${ac_cv_prog_LIPO+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  if test -n "$LIPO"; then
8047  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8048else
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052  IFS=$as_save_IFS
8053  test -z "$as_dir" && as_dir=.
8054    for ac_exec_ext in '' $ac_executable_extensions; do
8055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058    break 2
8059  fi
8060done
8061  done
8062IFS=$as_save_IFS
8063
8064fi
8065fi
8066LIPO=$ac_cv_prog_LIPO
8067if test -n "$LIPO"; then
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8069$as_echo "$LIPO" >&6; }
8070else
8071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
8073fi
8074
8075
8076fi
8077if test -z "$ac_cv_prog_LIPO"; then
8078  ac_ct_LIPO=$LIPO
8079  # Extract the first word of "lipo", so it can be a program name with args.
8080set dummy lipo; ac_word=$2
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  if test -n "$ac_ct_LIPO"; then
8087  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092  IFS=$as_save_IFS
8093  test -z "$as_dir" && as_dir=.
8094    for ac_exec_ext in '' $ac_executable_extensions; do
8095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096    ac_cv_prog_ac_ct_LIPO="lipo"
8097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098    break 2
8099  fi
8100done
8101  done
8102IFS=$as_save_IFS
8103
8104fi
8105fi
8106ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8107if test -n "$ac_ct_LIPO"; then
8108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8109$as_echo "$ac_ct_LIPO" >&6; }
8110else
8111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
8113fi
8114
8115  if test "x$ac_ct_LIPO" = x; then
8116    LIPO=":"
8117  else
8118    case $cross_compiling:$ac_tool_warned in
8119yes:)
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122ac_tool_warned=yes ;;
8123esac
8124    LIPO=$ac_ct_LIPO
8125  fi
8126else
8127  LIPO="$ac_cv_prog_LIPO"
8128fi
8129
8130    if test -n "$ac_tool_prefix"; then
8131  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8132set dummy ${ac_tool_prefix}otool; ac_word=$2
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134$as_echo_n "checking for $ac_word... " >&6; }
8135if ${ac_cv_prog_OTOOL+:} false; then :
8136  $as_echo_n "(cached) " >&6
8137else
8138  if test -n "$OTOOL"; then
8139  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144  IFS=$as_save_IFS
8145  test -z "$as_dir" && as_dir=.
8146    for ac_exec_ext in '' $ac_executable_extensions; do
8147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150    break 2
8151  fi
8152done
8153  done
8154IFS=$as_save_IFS
8155
8156fi
8157fi
8158OTOOL=$ac_cv_prog_OTOOL
8159if test -n "$OTOOL"; then
8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8161$as_echo "$OTOOL" >&6; }
8162else
8163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
8165fi
8166
8167
8168fi
8169if test -z "$ac_cv_prog_OTOOL"; then
8170  ac_ct_OTOOL=$OTOOL
8171  # Extract the first word of "otool", so it can be a program name with args.
8172set dummy otool; ac_word=$2
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8176  $as_echo_n "(cached) " >&6
8177else
8178  if test -n "$ac_ct_OTOOL"; then
8179  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184  IFS=$as_save_IFS
8185  test -z "$as_dir" && as_dir=.
8186    for ac_exec_ext in '' $ac_executable_extensions; do
8187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188    ac_cv_prog_ac_ct_OTOOL="otool"
8189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190    break 2
8191  fi
8192done
8193  done
8194IFS=$as_save_IFS
8195
8196fi
8197fi
8198ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8199if test -n "$ac_ct_OTOOL"; then
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8201$as_echo "$ac_ct_OTOOL" >&6; }
8202else
8203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
8205fi
8206
8207  if test "x$ac_ct_OTOOL" = x; then
8208    OTOOL=":"
8209  else
8210    case $cross_compiling:$ac_tool_warned in
8211yes:)
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214ac_tool_warned=yes ;;
8215esac
8216    OTOOL=$ac_ct_OTOOL
8217  fi
8218else
8219  OTOOL="$ac_cv_prog_OTOOL"
8220fi
8221
8222    if test -n "$ac_tool_prefix"; then
8223  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8224set dummy ${ac_tool_prefix}otool64; ac_word=$2
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226$as_echo_n "checking for $ac_word... " >&6; }
8227if ${ac_cv_prog_OTOOL64+:} false; then :
8228  $as_echo_n "(cached) " >&6
8229else
8230  if test -n "$OTOOL64"; then
8231  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8232else
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236  IFS=$as_save_IFS
8237  test -z "$as_dir" && as_dir=.
8238    for ac_exec_ext in '' $ac_executable_extensions; do
8239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242    break 2
8243  fi
8244done
8245  done
8246IFS=$as_save_IFS
8247
8248fi
8249fi
8250OTOOL64=$ac_cv_prog_OTOOL64
8251if test -n "$OTOOL64"; then
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8253$as_echo "$OTOOL64" >&6; }
8254else
8255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
8257fi
8258
8259
8260fi
8261if test -z "$ac_cv_prog_OTOOL64"; then
8262  ac_ct_OTOOL64=$OTOOL64
8263  # Extract the first word of "otool64", so it can be a program name with args.
8264set dummy otool64; ac_word=$2
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266$as_echo_n "checking for $ac_word... " >&6; }
8267if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  if test -n "$ac_ct_OTOOL64"; then
8271  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8272else
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276  IFS=$as_save_IFS
8277  test -z "$as_dir" && as_dir=.
8278    for ac_exec_ext in '' $ac_executable_extensions; do
8279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280    ac_cv_prog_ac_ct_OTOOL64="otool64"
8281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282    break 2
8283  fi
8284done
8285  done
8286IFS=$as_save_IFS
8287
8288fi
8289fi
8290ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8291if test -n "$ac_ct_OTOOL64"; then
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8293$as_echo "$ac_ct_OTOOL64" >&6; }
8294else
8295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
8297fi
8298
8299  if test "x$ac_ct_OTOOL64" = x; then
8300    OTOOL64=":"
8301  else
8302    case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308    OTOOL64=$ac_ct_OTOOL64
8309  fi
8310else
8311  OTOOL64="$ac_cv_prog_OTOOL64"
8312fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8341$as_echo_n "checking for -single_module linker flag... " >&6; }
8342if ${lt_cv_apple_cc_single_mod+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  lt_cv_apple_cc_single_mod=no
8346      if test -z "$LT_MULTI_MODULE"; then
8347	# By default we will add the -single_module flag. You can override
8348	# by either setting the environment variable LT_MULTI_MODULE
8349	# non-empty at configure time, or by adding -multi_module to the
8350	# link flags.
8351	rm -rf libconftest.dylib*
8352	echo "int foo(void){return 1;}" > conftest.c
8353	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8354-dynamiclib -Wl,-single_module conftest.c" >&5
8355	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8356	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8357        _lt_result=$?
8358	# If there is a non-empty error log, and "single_module"
8359	# appears in it, assume the flag caused a linker warning
8360        if test -s conftest.err && $GREP single_module conftest.err; then
8361	  cat conftest.err >&5
8362	# Otherwise, if the output was created with a 0 exit code from
8363	# the compiler, it worked.
8364	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8365	  lt_cv_apple_cc_single_mod=yes
8366	else
8367	  cat conftest.err >&5
8368	fi
8369	rm -rf libconftest.dylib*
8370	rm -f conftest.*
8371      fi
8372fi
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8374$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8375
8376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8377$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8378if ${lt_cv_ld_exported_symbols_list+:} false; then :
8379  $as_echo_n "(cached) " >&6
8380else
8381  lt_cv_ld_exported_symbols_list=no
8382      save_LDFLAGS=$LDFLAGS
8383      echo "_main" > conftest.sym
8384      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387
8388int
8389main ()
8390{
8391
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_link "$LINENO"; then :
8397  lt_cv_ld_exported_symbols_list=yes
8398else
8399  lt_cv_ld_exported_symbols_list=no
8400fi
8401rm -f core conftest.err conftest.$ac_objext \
8402    conftest$ac_exeext conftest.$ac_ext
8403	LDFLAGS=$save_LDFLAGS
8404
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8407$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8408
8409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8410$as_echo_n "checking for -force_load linker flag... " >&6; }
8411if ${lt_cv_ld_force_load+:} false; then :
8412  $as_echo_n "(cached) " >&6
8413else
8414  lt_cv_ld_force_load=no
8415      cat > conftest.c << _LT_EOF
8416int forced_loaded() { return 2;}
8417_LT_EOF
8418      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8419      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8420      echo "$AR cru libconftest.a conftest.o" >&5
8421      $AR cru libconftest.a conftest.o 2>&5
8422      echo "$RANLIB libconftest.a" >&5
8423      $RANLIB libconftest.a 2>&5
8424      cat > conftest.c << _LT_EOF
8425int main() { return 0;}
8426_LT_EOF
8427      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8428      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8429      _lt_result=$?
8430      if test -s conftest.err && $GREP force_load conftest.err; then
8431	cat conftest.err >&5
8432      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8433	lt_cv_ld_force_load=yes
8434      else
8435	cat conftest.err >&5
8436      fi
8437        rm -f conftest.err libconftest.a conftest conftest.c
8438        rm -rf conftest.dSYM
8439
8440fi
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8442$as_echo "$lt_cv_ld_force_load" >&6; }
8443    case $host_os in
8444    rhapsody* | darwin1.[012])
8445      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8446    darwin1.*)
8447      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8448    darwin*) # darwin 5.x on
8449      # if running on 10.5 or later, the deployment target defaults
8450      # to the OS version, if on x86, and 10.4, the deployment
8451      # target defaults to 10.4. Don't you love it?
8452      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8453	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8454	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8455	10.[012][,.]*)
8456	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8457	10.*)
8458	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8459      esac
8460    ;;
8461  esac
8462    if test yes = "$lt_cv_apple_cc_single_mod"; then
8463      _lt_dar_single_mod='$single_module'
8464    fi
8465    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8466      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8467    else
8468      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8469    fi
8470    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8471      _lt_dsymutil='~$DSYMUTIL $lib || :'
8472    else
8473      _lt_dsymutil=
8474    fi
8475    ;;
8476  esac
8477
8478# func_munge_path_list VARIABLE PATH
8479# -----------------------------------
8480# VARIABLE is name of variable containing _space_ separated list of
8481# directories to be munged by the contents of PATH, which is string
8482# having a format:
8483# "DIR[:DIR]:"
8484#       string "DIR[ DIR]" will be prepended to VARIABLE
8485# ":DIR[:DIR]"
8486#       string "DIR[ DIR]" will be appended to VARIABLE
8487# "DIRP[:DIRP]::[DIRA:]DIRA"
8488#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8489#       "DIRA[ DIRA]" will be appended to VARIABLE
8490# "DIR[:DIR]"
8491#       VARIABLE will be replaced by "DIR[ DIR]"
8492func_munge_path_list ()
8493{
8494    case x$2 in
8495    x)
8496        ;;
8497    *:)
8498        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8499        ;;
8500    x:*)
8501        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8502        ;;
8503    *::*)
8504        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8505        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8506        ;;
8507    *)
8508        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8509        ;;
8510    esac
8511}
8512
8513ac_ext=c
8514ac_cpp='$CPP $CPPFLAGS'
8515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517ac_compiler_gnu=$ac_cv_c_compiler_gnu
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8519$as_echo_n "checking how to run the C preprocessor... " >&6; }
8520# On Suns, sometimes $CPP names a directory.
8521if test -n "$CPP" && test -d "$CPP"; then
8522  CPP=
8523fi
8524if test -z "$CPP"; then
8525  if ${ac_cv_prog_CPP+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528      # Double quotes because CPP needs to be expanded
8529    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8530    do
8531      ac_preproc_ok=false
8532for ac_c_preproc_warn_flag in '' yes
8533do
8534  # Use a header file that comes with gcc, so configuring glibc
8535  # with a fresh cross-compiler works.
8536  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537  # <limits.h> exists even on freestanding compilers.
8538  # On the NeXT, cc -E runs the code through the compiler's parser,
8539  # not just through cpp. "Syntax error" is here to catch this case.
8540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h.  */
8542#ifdef __STDC__
8543# include <limits.h>
8544#else
8545# include <assert.h>
8546#endif
8547		     Syntax error
8548_ACEOF
8549if ac_fn_c_try_cpp "$LINENO"; then :
8550
8551else
8552  # Broken: fails on valid input.
8553continue
8554fi
8555rm -f conftest.err conftest.i conftest.$ac_ext
8556
8557  # OK, works on sane cases.  Now check whether nonexistent headers
8558  # can be detected and how.
8559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h.  */
8561#include <ac_nonexistent.h>
8562_ACEOF
8563if ac_fn_c_try_cpp "$LINENO"; then :
8564  # Broken: success on invalid input.
8565continue
8566else
8567  # Passes both tests.
8568ac_preproc_ok=:
8569break
8570fi
8571rm -f conftest.err conftest.i conftest.$ac_ext
8572
8573done
8574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8575rm -f conftest.i conftest.err conftest.$ac_ext
8576if $ac_preproc_ok; then :
8577  break
8578fi
8579
8580    done
8581    ac_cv_prog_CPP=$CPP
8582
8583fi
8584  CPP=$ac_cv_prog_CPP
8585else
8586  ac_cv_prog_CPP=$CPP
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8589$as_echo "$CPP" >&6; }
8590ac_preproc_ok=false
8591for ac_c_preproc_warn_flag in '' yes
8592do
8593  # Use a header file that comes with gcc, so configuring glibc
8594  # with a fresh cross-compiler works.
8595  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8596  # <limits.h> exists even on freestanding compilers.
8597  # On the NeXT, cc -E runs the code through the compiler's parser,
8598  # not just through cpp. "Syntax error" is here to catch this case.
8599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h.  */
8601#ifdef __STDC__
8602# include <limits.h>
8603#else
8604# include <assert.h>
8605#endif
8606		     Syntax error
8607_ACEOF
8608if ac_fn_c_try_cpp "$LINENO"; then :
8609
8610else
8611  # Broken: fails on valid input.
8612continue
8613fi
8614rm -f conftest.err conftest.i conftest.$ac_ext
8615
8616  # OK, works on sane cases.  Now check whether nonexistent headers
8617  # can be detected and how.
8618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620#include <ac_nonexistent.h>
8621_ACEOF
8622if ac_fn_c_try_cpp "$LINENO"; then :
8623  # Broken: success on invalid input.
8624continue
8625else
8626  # Passes both tests.
8627ac_preproc_ok=:
8628break
8629fi
8630rm -f conftest.err conftest.i conftest.$ac_ext
8631
8632done
8633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8634rm -f conftest.i conftest.err conftest.$ac_ext
8635if $ac_preproc_ok; then :
8636
8637else
8638  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8640as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8641See \`config.log' for more details" "$LINENO" 5; }
8642fi
8643
8644ac_ext=c
8645ac_cpp='$CPP $CPPFLAGS'
8646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648ac_compiler_gnu=$ac_cv_c_compiler_gnu
8649
8650
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8652$as_echo_n "checking for ANSI C header files... " >&6; }
8653if ${ac_cv_header_stdc+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658#include <stdlib.h>
8659#include <stdarg.h>
8660#include <string.h>
8661#include <float.h>
8662
8663int
8664main ()
8665{
8666
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_compile "$LINENO"; then :
8672  ac_cv_header_stdc=yes
8673else
8674  ac_cv_header_stdc=no
8675fi
8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677
8678if test $ac_cv_header_stdc = yes; then
8679  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h.  */
8682#include <string.h>
8683
8684_ACEOF
8685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8686  $EGREP "memchr" >/dev/null 2>&1; then :
8687
8688else
8689  ac_cv_header_stdc=no
8690fi
8691rm -f conftest*
8692
8693fi
8694
8695if test $ac_cv_header_stdc = yes; then
8696  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699#include <stdlib.h>
8700
8701_ACEOF
8702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703  $EGREP "free" >/dev/null 2>&1; then :
8704
8705else
8706  ac_cv_header_stdc=no
8707fi
8708rm -f conftest*
8709
8710fi
8711
8712if test $ac_cv_header_stdc = yes; then
8713  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8714  if test "$cross_compiling" = yes; then :
8715  :
8716else
8717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719#include <ctype.h>
8720#include <stdlib.h>
8721#if ((' ' & 0x0FF) == 0x020)
8722# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8723# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8724#else
8725# define ISLOWER(c) \
8726		   (('a' <= (c) && (c) <= 'i') \
8727		     || ('j' <= (c) && (c) <= 'r') \
8728		     || ('s' <= (c) && (c) <= 'z'))
8729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8730#endif
8731
8732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8733int
8734main ()
8735{
8736  int i;
8737  for (i = 0; i < 256; i++)
8738    if (XOR (islower (i), ISLOWER (i))
8739	|| toupper (i) != TOUPPER (i))
8740      return 2;
8741  return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_run "$LINENO"; then :
8745
8746else
8747  ac_cv_header_stdc=no
8748fi
8749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8750  conftest.$ac_objext conftest.beam conftest.$ac_ext
8751fi
8752
8753fi
8754fi
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8756$as_echo "$ac_cv_header_stdc" >&6; }
8757if test $ac_cv_header_stdc = yes; then
8758
8759$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8760
8761fi
8762
8763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8764for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8765		  inttypes.h stdint.h unistd.h
8766do :
8767  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8769"
8770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8771  cat >>confdefs.h <<_ACEOF
8772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8773_ACEOF
8774
8775fi
8776
8777done
8778
8779
8780for ac_header in dlfcn.h
8781do :
8782  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8783"
8784if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8785  cat >>confdefs.h <<_ACEOF
8786#define HAVE_DLFCN_H 1
8787_ACEOF
8788
8789fi
8790
8791done
8792
8793
8794
8795
8796
8797# Set options
8798
8799
8800
8801        enable_dlopen=no
8802
8803
8804
8805            # Check whether --enable-shared was given.
8806if test "${enable_shared+set}" = set; then :
8807  enableval=$enable_shared; p=${PACKAGE-default}
8808    case $enableval in
8809    yes) enable_shared=yes ;;
8810    no) enable_shared=no ;;
8811    *)
8812      enable_shared=no
8813      # Look at the argument we got.  We use all the common list separators.
8814      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8815      for pkg in $enableval; do
8816	IFS=$lt_save_ifs
8817	if test "X$pkg" = "X$p"; then
8818	  enable_shared=yes
8819	fi
8820      done
8821      IFS=$lt_save_ifs
8822      ;;
8823    esac
8824else
8825  enable_shared=yes
8826fi
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836  # Check whether --enable-static was given.
8837if test "${enable_static+set}" = set; then :
8838  enableval=$enable_static; p=${PACKAGE-default}
8839    case $enableval in
8840    yes) enable_static=yes ;;
8841    no) enable_static=no ;;
8842    *)
8843     enable_static=no
8844      # Look at the argument we got.  We use all the common list separators.
8845      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8846      for pkg in $enableval; do
8847	IFS=$lt_save_ifs
8848	if test "X$pkg" = "X$p"; then
8849	  enable_static=yes
8850	fi
8851      done
8852      IFS=$lt_save_ifs
8853      ;;
8854    esac
8855else
8856  enable_static=yes
8857fi
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868# Check whether --with-pic was given.
8869if test "${with_pic+set}" = set; then :
8870  withval=$with_pic; lt_p=${PACKAGE-default}
8871    case $withval in
8872    yes|no) pic_mode=$withval ;;
8873    *)
8874      pic_mode=default
8875      # Look at the argument we got.  We use all the common list separators.
8876      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8877      for lt_pkg in $withval; do
8878	IFS=$lt_save_ifs
8879	if test "X$lt_pkg" = "X$lt_p"; then
8880	  pic_mode=yes
8881	fi
8882      done
8883      IFS=$lt_save_ifs
8884      ;;
8885    esac
8886else
8887  pic_mode=default
8888fi
8889
8890
8891
8892
8893
8894
8895
8896
8897  # Check whether --enable-fast-install was given.
8898if test "${enable_fast_install+set}" = set; then :
8899  enableval=$enable_fast_install; p=${PACKAGE-default}
8900    case $enableval in
8901    yes) enable_fast_install=yes ;;
8902    no) enable_fast_install=no ;;
8903    *)
8904      enable_fast_install=no
8905      # Look at the argument we got.  We use all the common list separators.
8906      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8907      for pkg in $enableval; do
8908	IFS=$lt_save_ifs
8909	if test "X$pkg" = "X$p"; then
8910	  enable_fast_install=yes
8911	fi
8912      done
8913      IFS=$lt_save_ifs
8914      ;;
8915    esac
8916else
8917  enable_fast_install=yes
8918fi
8919
8920
8921
8922
8923
8924
8925
8926
8927  shared_archive_member_spec=
8928case $host,$enable_shared in
8929power*-*-aix[5-9]*,yes)
8930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8931$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8932
8933# Check whether --with-aix-soname was given.
8934if test "${with_aix_soname+set}" = set; then :
8935  withval=$with_aix_soname; case $withval in
8936    aix|svr4|both)
8937      ;;
8938    *)
8939      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8940      ;;
8941    esac
8942    lt_cv_with_aix_soname=$with_aix_soname
8943else
8944  if ${lt_cv_with_aix_soname+:} false; then :
8945  $as_echo_n "(cached) " >&6
8946else
8947  lt_cv_with_aix_soname=aix
8948fi
8949
8950    with_aix_soname=$lt_cv_with_aix_soname
8951fi
8952
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8954$as_echo "$with_aix_soname" >&6; }
8955  if test aix != "$with_aix_soname"; then
8956    # For the AIX way of multilib, we name the shared archive member
8957    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8958    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8959    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8960    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8961    if test 64 = "${OBJECT_MODE-32}"; then
8962      shared_archive_member_spec=shr_64
8963    else
8964      shared_archive_member_spec=shr
8965    fi
8966  fi
8967  ;;
8968*)
8969  with_aix_soname=aix
8970  ;;
8971esac
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982# This can be used to rebuild libtool when needed
8983LIBTOOL_DEPS=$ltmain
8984
8985# Always use our own libtool.
8986LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017test -z "$LN_S" && LN_S="ln -s"
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032if test -n "${ZSH_VERSION+set}"; then
9033   setopt NO_GLOB_SUBST
9034fi
9035
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9037$as_echo_n "checking for objdir... " >&6; }
9038if ${lt_cv_objdir+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  rm -f .libs 2>/dev/null
9042mkdir .libs 2>/dev/null
9043if test -d .libs; then
9044  lt_cv_objdir=.libs
9045else
9046  # MS-DOS does not allow filenames that begin with a dot.
9047  lt_cv_objdir=_libs
9048fi
9049rmdir .libs 2>/dev/null
9050fi
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9052$as_echo "$lt_cv_objdir" >&6; }
9053objdir=$lt_cv_objdir
9054
9055
9056
9057
9058
9059cat >>confdefs.h <<_ACEOF
9060#define LT_OBJDIR "$lt_cv_objdir/"
9061_ACEOF
9062
9063
9064
9065
9066case $host_os in
9067aix3*)
9068  # AIX sometimes has problems with the GCC collect2 program.  For some
9069  # reason, if we set the COLLECT_NAMES environment variable, the problems
9070  # vanish in a puff of smoke.
9071  if test set != "${COLLECT_NAMES+set}"; then
9072    COLLECT_NAMES=
9073    export COLLECT_NAMES
9074  fi
9075  ;;
9076esac
9077
9078# Global variables:
9079ofile=libtool
9080can_build_shared=yes
9081
9082# All known linkers require a '.a' archive for static linking (except MSVC,
9083# which needs '.lib').
9084libext=a
9085
9086with_gnu_ld=$lt_cv_prog_gnu_ld
9087
9088old_CC=$CC
9089old_CFLAGS=$CFLAGS
9090
9091# Set sane defaults for various variables
9092test -z "$CC" && CC=cc
9093test -z "$LTCC" && LTCC=$CC
9094test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9095test -z "$LD" && LD=ld
9096test -z "$ac_objext" && ac_objext=o
9097
9098func_cc_basename $compiler
9099cc_basename=$func_cc_basename_result
9100
9101
9102# Only perform the check for file, if the check method requires it
9103test -z "$MAGIC_CMD" && MAGIC_CMD=file
9104case $deplibs_check_method in
9105file_magic*)
9106  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9108$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9109if ${lt_cv_path_MAGIC_CMD+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112  case $MAGIC_CMD in
9113[\\/*] |  ?:[\\/]*)
9114  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9115  ;;
9116*)
9117  lt_save_MAGIC_CMD=$MAGIC_CMD
9118  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9119  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9120  for ac_dir in $ac_dummy; do
9121    IFS=$lt_save_ifs
9122    test -z "$ac_dir" && ac_dir=.
9123    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9124      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9125      if test -n "$file_magic_test_file"; then
9126	case $deplibs_check_method in
9127	"file_magic "*)
9128	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9129	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9130	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9131	    $EGREP "$file_magic_regex" > /dev/null; then
9132	    :
9133	  else
9134	    cat <<_LT_EOF 1>&2
9135
9136*** Warning: the command libtool uses to detect shared libraries,
9137*** $file_magic_cmd, produces output that libtool cannot recognize.
9138*** The result is that libtool may fail to recognize shared libraries
9139*** as such.  This will affect the creation of libtool libraries that
9140*** depend on shared libraries, but programs linked with such libtool
9141*** libraries will work regardless of this problem.  Nevertheless, you
9142*** may want to report the problem to your system manager and/or to
9143*** bug-libtool@gnu.org
9144
9145_LT_EOF
9146	  fi ;;
9147	esac
9148      fi
9149      break
9150    fi
9151  done
9152  IFS=$lt_save_ifs
9153  MAGIC_CMD=$lt_save_MAGIC_CMD
9154  ;;
9155esac
9156fi
9157
9158MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9159if test -n "$MAGIC_CMD"; then
9160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9161$as_echo "$MAGIC_CMD" >&6; }
9162else
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164$as_echo "no" >&6; }
9165fi
9166
9167
9168
9169
9170
9171if test -z "$lt_cv_path_MAGIC_CMD"; then
9172  if test -n "$ac_tool_prefix"; then
9173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9174$as_echo_n "checking for file... " >&6; }
9175if ${lt_cv_path_MAGIC_CMD+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  case $MAGIC_CMD in
9179[\\/*] |  ?:[\\/]*)
9180  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9181  ;;
9182*)
9183  lt_save_MAGIC_CMD=$MAGIC_CMD
9184  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9185  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9186  for ac_dir in $ac_dummy; do
9187    IFS=$lt_save_ifs
9188    test -z "$ac_dir" && ac_dir=.
9189    if test -f "$ac_dir/file"; then
9190      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9191      if test -n "$file_magic_test_file"; then
9192	case $deplibs_check_method in
9193	"file_magic "*)
9194	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9195	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9196	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9197	    $EGREP "$file_magic_regex" > /dev/null; then
9198	    :
9199	  else
9200	    cat <<_LT_EOF 1>&2
9201
9202*** Warning: the command libtool uses to detect shared libraries,
9203*** $file_magic_cmd, produces output that libtool cannot recognize.
9204*** The result is that libtool may fail to recognize shared libraries
9205*** as such.  This will affect the creation of libtool libraries that
9206*** depend on shared libraries, but programs linked with such libtool
9207*** libraries will work regardless of this problem.  Nevertheless, you
9208*** may want to report the problem to your system manager and/or to
9209*** bug-libtool@gnu.org
9210
9211_LT_EOF
9212	  fi ;;
9213	esac
9214      fi
9215      break
9216    fi
9217  done
9218  IFS=$lt_save_ifs
9219  MAGIC_CMD=$lt_save_MAGIC_CMD
9220  ;;
9221esac
9222fi
9223
9224MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9225if test -n "$MAGIC_CMD"; then
9226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9227$as_echo "$MAGIC_CMD" >&6; }
9228else
9229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
9231fi
9232
9233
9234  else
9235    MAGIC_CMD=:
9236  fi
9237fi
9238
9239  fi
9240  ;;
9241esac
9242
9243# Use C for the default configuration in the libtool script
9244
9245lt_save_CC=$CC
9246ac_ext=c
9247ac_cpp='$CPP $CPPFLAGS'
9248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9250ac_compiler_gnu=$ac_cv_c_compiler_gnu
9251
9252
9253# Source file extension for C test sources.
9254ac_ext=c
9255
9256# Object file extension for compiled C test sources.
9257objext=o
9258objext=$objext
9259
9260# Code to be used in simple compile tests
9261lt_simple_compile_test_code="int some_variable = 0;"
9262
9263# Code to be used in simple link tests
9264lt_simple_link_test_code='int main(){return(0);}'
9265
9266
9267
9268
9269
9270
9271
9272# If no C compiler was specified, use CC.
9273LTCC=${LTCC-"$CC"}
9274
9275# If no C compiler flags were specified, use CFLAGS.
9276LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9277
9278# Allow CC to be a program name with arguments.
9279compiler=$CC
9280
9281# Save the default compiler, since it gets overwritten when the other
9282# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9283compiler_DEFAULT=$CC
9284
9285# save warnings/boilerplate of simple test code
9286ac_outfile=conftest.$ac_objext
9287echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9289_lt_compiler_boilerplate=`cat conftest.err`
9290$RM conftest*
9291
9292ac_outfile=conftest.$ac_objext
9293echo "$lt_simple_link_test_code" >conftest.$ac_ext
9294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9295_lt_linker_boilerplate=`cat conftest.err`
9296$RM -r conftest*
9297
9298
9299if test -n "$compiler"; then
9300
9301lt_prog_compiler_no_builtin_flag=
9302
9303if test yes = "$GCC"; then
9304  case $cc_basename in
9305  nvcc*)
9306    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9307  *)
9308    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9309  esac
9310
9311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9312$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9313if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9314  $as_echo_n "(cached) " >&6
9315else
9316  lt_cv_prog_compiler_rtti_exceptions=no
9317   ac_outfile=conftest.$ac_objext
9318   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9319   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9320   # Insert the option either (1) after the last *FLAGS variable, or
9321   # (2) before a word containing "conftest.", or (3) at the end.
9322   # Note that $ac_compile itself does not contain backslashes and begins
9323   # with a dollar sign (not a hyphen), so the echo should work correctly.
9324   # The option is referenced via a variable to avoid confusing sed.
9325   lt_compile=`echo "$ac_compile" | $SED \
9326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9328   -e 's:$: $lt_compiler_flag:'`
9329   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9330   (eval "$lt_compile" 2>conftest.err)
9331   ac_status=$?
9332   cat conftest.err >&5
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   if (exit $ac_status) && test -s "$ac_outfile"; then
9335     # The compiler can only warn and ignore the option if not recognized
9336     # So say no if there are warnings other than the usual output.
9337     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9338     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9340       lt_cv_prog_compiler_rtti_exceptions=yes
9341     fi
9342   fi
9343   $RM conftest*
9344
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9347$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9348
9349if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9350    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9351else
9352    :
9353fi
9354
9355fi
9356
9357
9358
9359
9360
9361
9362  lt_prog_compiler_wl=
9363lt_prog_compiler_pic=
9364lt_prog_compiler_static=
9365
9366
9367  if test yes = "$GCC"; then
9368    lt_prog_compiler_wl='-Wl,'
9369    lt_prog_compiler_static='-static'
9370
9371    case $host_os in
9372      aix*)
9373      # All AIX code is PIC.
9374      if test ia64 = "$host_cpu"; then
9375	# AIX 5 now supports IA64 processor
9376	lt_prog_compiler_static='-Bstatic'
9377      fi
9378      lt_prog_compiler_pic='-fPIC'
9379      ;;
9380
9381    amigaos*)
9382      case $host_cpu in
9383      powerpc)
9384            # see comment about AmigaOS4 .so support
9385            lt_prog_compiler_pic='-fPIC'
9386        ;;
9387      m68k)
9388            # FIXME: we need at least 68020 code to build shared libraries, but
9389            # adding the '-m68020' flag to GCC prevents building anything better,
9390            # like '-m68040'.
9391            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9392        ;;
9393      esac
9394      ;;
9395
9396    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9397      # PIC is the default for these OSes.
9398      ;;
9399
9400    mingw* | cygwin* | pw32* | os2* | cegcc*)
9401      # This hack is so that the source file can tell whether it is being
9402      # built for inclusion in a dll (and should export symbols for example).
9403      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9404      # (--disable-auto-import) libraries
9405      lt_prog_compiler_pic='-DDLL_EXPORT'
9406      case $host_os in
9407      os2*)
9408	lt_prog_compiler_static='$wl-static'
9409	;;
9410      esac
9411      ;;
9412
9413    darwin* | rhapsody*)
9414      # PIC is the default on this platform
9415      # Common symbols not allowed in MH_DYLIB files
9416      lt_prog_compiler_pic='-fno-common'
9417      ;;
9418
9419    haiku*)
9420      # PIC is the default for Haiku.
9421      # The "-static" flag exists, but is broken.
9422      lt_prog_compiler_static=
9423      ;;
9424
9425    hpux*)
9426      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9427      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9428      # sets the default TLS model and affects inlining.
9429      case $host_cpu in
9430      hppa*64*)
9431	# +Z the default
9432	;;
9433      *)
9434	lt_prog_compiler_pic='-fPIC'
9435	;;
9436      esac
9437      ;;
9438
9439    interix[3-9]*)
9440      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9441      # Instead, we relocate shared libraries at runtime.
9442      ;;
9443
9444    msdosdjgpp*)
9445      # Just because we use GCC doesn't mean we suddenly get shared libraries
9446      # on systems that don't support them.
9447      lt_prog_compiler_can_build_shared=no
9448      enable_shared=no
9449      ;;
9450
9451    *nto* | *qnx*)
9452      # QNX uses GNU C++, but need to define -shared option too, otherwise
9453      # it will coredump.
9454      lt_prog_compiler_pic='-fPIC -shared'
9455      ;;
9456
9457    sysv4*MP*)
9458      if test -d /usr/nec; then
9459	lt_prog_compiler_pic=-Kconform_pic
9460      fi
9461      ;;
9462
9463    *)
9464      lt_prog_compiler_pic='-fPIC'
9465      ;;
9466    esac
9467
9468    case $cc_basename in
9469    nvcc*) # Cuda Compiler Driver 2.2
9470      lt_prog_compiler_wl='-Xlinker '
9471      if test -n "$lt_prog_compiler_pic"; then
9472        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9473      fi
9474      ;;
9475    esac
9476  else
9477    # PORTME Check for flag to pass linker flags through the system compiler.
9478    case $host_os in
9479    aix*)
9480      lt_prog_compiler_wl='-Wl,'
9481      if test ia64 = "$host_cpu"; then
9482	# AIX 5 now supports IA64 processor
9483	lt_prog_compiler_static='-Bstatic'
9484      else
9485	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9486      fi
9487      ;;
9488
9489    darwin* | rhapsody*)
9490      # PIC is the default on this platform
9491      # Common symbols not allowed in MH_DYLIB files
9492      lt_prog_compiler_pic='-fno-common'
9493      case $cc_basename in
9494      nagfor*)
9495        # NAG Fortran compiler
9496        lt_prog_compiler_wl='-Wl,-Wl,,'
9497        lt_prog_compiler_pic='-PIC'
9498        lt_prog_compiler_static='-Bstatic'
9499        ;;
9500      esac
9501      ;;
9502
9503    mingw* | cygwin* | pw32* | os2* | cegcc*)
9504      # This hack is so that the source file can tell whether it is being
9505      # built for inclusion in a dll (and should export symbols for example).
9506      lt_prog_compiler_pic='-DDLL_EXPORT'
9507      case $host_os in
9508      os2*)
9509	lt_prog_compiler_static='$wl-static'
9510	;;
9511      esac
9512      ;;
9513
9514    hpux9* | hpux10* | hpux11*)
9515      lt_prog_compiler_wl='-Wl,'
9516      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9517      # not for PA HP-UX.
9518      case $host_cpu in
9519      hppa*64*|ia64*)
9520	# +Z the default
9521	;;
9522      *)
9523	lt_prog_compiler_pic='+Z'
9524	;;
9525      esac
9526      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9527      lt_prog_compiler_static='$wl-a ${wl}archive'
9528      ;;
9529
9530    irix5* | irix6* | nonstopux*)
9531      lt_prog_compiler_wl='-Wl,'
9532      # PIC (with -KPIC) is the default.
9533      lt_prog_compiler_static='-non_shared'
9534      ;;
9535
9536    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9537      case $cc_basename in
9538      # old Intel for x86_64, which still supported -KPIC.
9539      ecc*)
9540	lt_prog_compiler_wl='-Wl,'
9541	lt_prog_compiler_pic='-KPIC'
9542	lt_prog_compiler_static='-static'
9543        ;;
9544      # icc used to be incompatible with GCC.
9545      # ICC 10 doesn't accept -KPIC any more.
9546      icc* | ifort*)
9547	lt_prog_compiler_wl='-Wl,'
9548	lt_prog_compiler_pic='-fPIC'
9549	lt_prog_compiler_static='-static'
9550        ;;
9551      # Lahey Fortran 8.1.
9552      lf95*)
9553	lt_prog_compiler_wl='-Wl,'
9554	lt_prog_compiler_pic='--shared'
9555	lt_prog_compiler_static='--static'
9556	;;
9557      nagfor*)
9558	# NAG Fortran compiler
9559	lt_prog_compiler_wl='-Wl,-Wl,,'
9560	lt_prog_compiler_pic='-PIC'
9561	lt_prog_compiler_static='-Bstatic'
9562	;;
9563      tcc*)
9564	# Fabrice Bellard et al's Tiny C Compiler
9565	lt_prog_compiler_wl='-Wl,'
9566	lt_prog_compiler_pic='-fPIC'
9567	lt_prog_compiler_static='-static'
9568	;;
9569      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9570        # Portland Group compilers (*not* the Pentium gcc compiler,
9571	# which looks to be a dead project)
9572	lt_prog_compiler_wl='-Wl,'
9573	lt_prog_compiler_pic='-fpic'
9574	lt_prog_compiler_static='-Bstatic'
9575        ;;
9576      ccc*)
9577        lt_prog_compiler_wl='-Wl,'
9578        # All Alpha code is PIC.
9579        lt_prog_compiler_static='-non_shared'
9580        ;;
9581      xl* | bgxl* | bgf* | mpixl*)
9582	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9583	lt_prog_compiler_wl='-Wl,'
9584	lt_prog_compiler_pic='-qpic'
9585	lt_prog_compiler_static='-qstaticlink'
9586	;;
9587      *)
9588	case `$CC -V 2>&1 | sed 5q` in
9589	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9590	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9591	  lt_prog_compiler_pic='-KPIC'
9592	  lt_prog_compiler_static='-Bstatic'
9593	  lt_prog_compiler_wl=''
9594	  ;;
9595	*Sun\ F* | *Sun*Fortran*)
9596	  lt_prog_compiler_pic='-KPIC'
9597	  lt_prog_compiler_static='-Bstatic'
9598	  lt_prog_compiler_wl='-Qoption ld '
9599	  ;;
9600	*Sun\ C*)
9601	  # Sun C 5.9
9602	  lt_prog_compiler_pic='-KPIC'
9603	  lt_prog_compiler_static='-Bstatic'
9604	  lt_prog_compiler_wl='-Wl,'
9605	  ;;
9606        *Intel*\ [CF]*Compiler*)
9607	  lt_prog_compiler_wl='-Wl,'
9608	  lt_prog_compiler_pic='-fPIC'
9609	  lt_prog_compiler_static='-static'
9610	  ;;
9611	*Portland\ Group*)
9612	  lt_prog_compiler_wl='-Wl,'
9613	  lt_prog_compiler_pic='-fpic'
9614	  lt_prog_compiler_static='-Bstatic'
9615	  ;;
9616	esac
9617	;;
9618      esac
9619      ;;
9620
9621    newsos6)
9622      lt_prog_compiler_pic='-KPIC'
9623      lt_prog_compiler_static='-Bstatic'
9624      ;;
9625
9626    *nto* | *qnx*)
9627      # QNX uses GNU C++, but need to define -shared option too, otherwise
9628      # it will coredump.
9629      lt_prog_compiler_pic='-fPIC -shared'
9630      ;;
9631
9632    osf3* | osf4* | osf5*)
9633      lt_prog_compiler_wl='-Wl,'
9634      # All OSF/1 code is PIC.
9635      lt_prog_compiler_static='-non_shared'
9636      ;;
9637
9638    rdos*)
9639      lt_prog_compiler_static='-non_shared'
9640      ;;
9641
9642    solaris*)
9643      lt_prog_compiler_pic='-KPIC'
9644      lt_prog_compiler_static='-Bstatic'
9645      case $cc_basename in
9646      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9647	lt_prog_compiler_wl='-Qoption ld ';;
9648      *)
9649	lt_prog_compiler_wl='-Wl,';;
9650      esac
9651      ;;
9652
9653    sunos4*)
9654      lt_prog_compiler_wl='-Qoption ld '
9655      lt_prog_compiler_pic='-PIC'
9656      lt_prog_compiler_static='-Bstatic'
9657      ;;
9658
9659    sysv4 | sysv4.2uw2* | sysv4.3*)
9660      lt_prog_compiler_wl='-Wl,'
9661      lt_prog_compiler_pic='-KPIC'
9662      lt_prog_compiler_static='-Bstatic'
9663      ;;
9664
9665    sysv4*MP*)
9666      if test -d /usr/nec; then
9667	lt_prog_compiler_pic='-Kconform_pic'
9668	lt_prog_compiler_static='-Bstatic'
9669      fi
9670      ;;
9671
9672    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9673      lt_prog_compiler_wl='-Wl,'
9674      lt_prog_compiler_pic='-KPIC'
9675      lt_prog_compiler_static='-Bstatic'
9676      ;;
9677
9678    unicos*)
9679      lt_prog_compiler_wl='-Wl,'
9680      lt_prog_compiler_can_build_shared=no
9681      ;;
9682
9683    uts4*)
9684      lt_prog_compiler_pic='-pic'
9685      lt_prog_compiler_static='-Bstatic'
9686      ;;
9687
9688    *)
9689      lt_prog_compiler_can_build_shared=no
9690      ;;
9691    esac
9692  fi
9693
9694case $host_os in
9695  # For platforms that do not support PIC, -DPIC is meaningless:
9696  *djgpp*)
9697    lt_prog_compiler_pic=
9698    ;;
9699  *)
9700    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9701    ;;
9702esac
9703
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9705$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9706if ${lt_cv_prog_compiler_pic+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9712$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9713lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9714
9715#
9716# Check to make sure the PIC flag actually works.
9717#
9718if test -n "$lt_prog_compiler_pic"; then
9719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9720$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9721if ${lt_cv_prog_compiler_pic_works+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  lt_cv_prog_compiler_pic_works=no
9725   ac_outfile=conftest.$ac_objext
9726   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9728   # Insert the option either (1) after the last *FLAGS variable, or
9729   # (2) before a word containing "conftest.", or (3) at the end.
9730   # Note that $ac_compile itself does not contain backslashes and begins
9731   # with a dollar sign (not a hyphen), so the echo should work correctly.
9732   # The option is referenced via a variable to avoid confusing sed.
9733   lt_compile=`echo "$ac_compile" | $SED \
9734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736   -e 's:$: $lt_compiler_flag:'`
9737   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9738   (eval "$lt_compile" 2>conftest.err)
9739   ac_status=$?
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   if (exit $ac_status) && test -s "$ac_outfile"; then
9743     # The compiler can only warn and ignore the option if not recognized
9744     # So say no if there are warnings other than the usual output.
9745     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9748       lt_cv_prog_compiler_pic_works=yes
9749     fi
9750   fi
9751   $RM conftest*
9752
9753fi
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9755$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9756
9757if test yes = "$lt_cv_prog_compiler_pic_works"; then
9758    case $lt_prog_compiler_pic in
9759     "" | " "*) ;;
9760     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9761     esac
9762else
9763    lt_prog_compiler_pic=
9764     lt_prog_compiler_can_build_shared=no
9765fi
9766
9767fi
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779#
9780# Check to make sure the static flag actually works.
9781#
9782wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9784$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9785if ${lt_cv_prog_compiler_static_works+:} false; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  lt_cv_prog_compiler_static_works=no
9789   save_LDFLAGS=$LDFLAGS
9790   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9791   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9792   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9793     # The linker can only warn and ignore the option if not recognized
9794     # So say no if there are warnings
9795     if test -s conftest.err; then
9796       # Append any errors to the config.log.
9797       cat conftest.err 1>&5
9798       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9799       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9800       if diff conftest.exp conftest.er2 >/dev/null; then
9801         lt_cv_prog_compiler_static_works=yes
9802       fi
9803     else
9804       lt_cv_prog_compiler_static_works=yes
9805     fi
9806   fi
9807   $RM -r conftest*
9808   LDFLAGS=$save_LDFLAGS
9809
9810fi
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9812$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9813
9814if test yes = "$lt_cv_prog_compiler_static_works"; then
9815    :
9816else
9817    lt_prog_compiler_static=
9818fi
9819
9820
9821
9822
9823
9824
9825
9826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9827$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9828if ${lt_cv_prog_compiler_c_o+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  lt_cv_prog_compiler_c_o=no
9832   $RM -r conftest 2>/dev/null
9833   mkdir conftest
9834   cd conftest
9835   mkdir out
9836   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837
9838   lt_compiler_flag="-o out/conftest2.$ac_objext"
9839   # Insert the option either (1) after the last *FLAGS variable, or
9840   # (2) before a word containing "conftest.", or (3) at the end.
9841   # Note that $ac_compile itself does not contain backslashes and begins
9842   # with a dollar sign (not a hyphen), so the echo should work correctly.
9843   lt_compile=`echo "$ac_compile" | $SED \
9844   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846   -e 's:$: $lt_compiler_flag:'`
9847   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848   (eval "$lt_compile" 2>out/conftest.err)
9849   ac_status=$?
9850   cat out/conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9853   then
9854     # The compiler can only warn and ignore the option if not recognized
9855     # So say no if there are warnings
9856     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9857     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9858     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9859       lt_cv_prog_compiler_c_o=yes
9860     fi
9861   fi
9862   chmod u+w . 2>&5
9863   $RM conftest*
9864   # SGI C++ compiler will create directory out/ii_files/ for
9865   # template instantiation
9866   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9867   $RM out/* && rmdir out
9868   cd ..
9869   $RM -r conftest
9870   $RM conftest*
9871
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9874$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9875
9876
9877
9878
9879
9880
9881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9882$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9883if ${lt_cv_prog_compiler_c_o+:} false; then :
9884  $as_echo_n "(cached) " >&6
9885else
9886  lt_cv_prog_compiler_c_o=no
9887   $RM -r conftest 2>/dev/null
9888   mkdir conftest
9889   cd conftest
9890   mkdir out
9891   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9892
9893   lt_compiler_flag="-o out/conftest2.$ac_objext"
9894   # Insert the option either (1) after the last *FLAGS variable, or
9895   # (2) before a word containing "conftest.", or (3) at the end.
9896   # Note that $ac_compile itself does not contain backslashes and begins
9897   # with a dollar sign (not a hyphen), so the echo should work correctly.
9898   lt_compile=`echo "$ac_compile" | $SED \
9899   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9901   -e 's:$: $lt_compiler_flag:'`
9902   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9903   (eval "$lt_compile" 2>out/conftest.err)
9904   ac_status=$?
9905   cat out/conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9908   then
9909     # The compiler can only warn and ignore the option if not recognized
9910     # So say no if there are warnings
9911     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9912     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9913     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9914       lt_cv_prog_compiler_c_o=yes
9915     fi
9916   fi
9917   chmod u+w . 2>&5
9918   $RM conftest*
9919   # SGI C++ compiler will create directory out/ii_files/ for
9920   # template instantiation
9921   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9922   $RM out/* && rmdir out
9923   cd ..
9924   $RM -r conftest
9925   $RM conftest*
9926
9927fi
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9929$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9930
9931
9932
9933
9934hard_links=nottested
9935if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9936  # do not overwrite the value of need_locks provided by the user
9937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9938$as_echo_n "checking if we can lock with hard links... " >&6; }
9939  hard_links=yes
9940  $RM conftest*
9941  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9942  touch conftest.a
9943  ln conftest.a conftest.b 2>&5 || hard_links=no
9944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9946$as_echo "$hard_links" >&6; }
9947  if test no = "$hard_links"; then
9948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9949$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9950    need_locks=warn
9951  fi
9952else
9953  need_locks=no
9954fi
9955
9956
9957
9958
9959
9960
9961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9962$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9963
9964  runpath_var=
9965  allow_undefined_flag=
9966  always_export_symbols=no
9967  archive_cmds=
9968  archive_expsym_cmds=
9969  compiler_needs_object=no
9970  enable_shared_with_static_runtimes=no
9971  export_dynamic_flag_spec=
9972  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9973  hardcode_automatic=no
9974  hardcode_direct=no
9975  hardcode_direct_absolute=no
9976  hardcode_libdir_flag_spec=
9977  hardcode_libdir_separator=
9978  hardcode_minus_L=no
9979  hardcode_shlibpath_var=unsupported
9980  inherit_rpath=no
9981  link_all_deplibs=unknown
9982  module_cmds=
9983  module_expsym_cmds=
9984  old_archive_from_new_cmds=
9985  old_archive_from_expsyms_cmds=
9986  thread_safe_flag_spec=
9987  whole_archive_flag_spec=
9988  # include_expsyms should be a list of space-separated symbols to be *always*
9989  # included in the symbol list
9990  include_expsyms=
9991  # exclude_expsyms can be an extended regexp of symbols to exclude
9992  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9993  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9994  # as well as any symbol that contains 'd'.
9995  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9996  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9997  # platforms (ab)use it in PIC code, but their linkers get confused if
9998  # the symbol is explicitly referenced.  Since portable code cannot
9999  # rely on this symbol name, it's probably fine to never include it in
10000  # preloaded symbol tables.
10001  # Exclude shared library initialization/finalization symbols.
10002  extract_expsyms_cmds=
10003
10004  case $host_os in
10005  cygwin* | mingw* | pw32* | cegcc*)
10006    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10007    # When not using gcc, we currently assume that we are using
10008    # Microsoft Visual C++.
10009    if test yes != "$GCC"; then
10010      with_gnu_ld=no
10011    fi
10012    ;;
10013  interix*)
10014    # we just hope/assume this is gcc and not c89 (= MSVC++)
10015    with_gnu_ld=yes
10016    ;;
10017  openbsd* | bitrig*)
10018    with_gnu_ld=no
10019    ;;
10020  esac
10021
10022  ld_shlibs=yes
10023
10024  # On some targets, GNU ld is compatible enough with the native linker
10025  # that we're better off using the native interface for both.
10026  lt_use_gnu_ld_interface=no
10027  if test yes = "$with_gnu_ld"; then
10028    case $host_os in
10029      aix*)
10030	# The AIX port of GNU ld has always aspired to compatibility
10031	# with the native linker.  However, as the warning in the GNU ld
10032	# block says, versions before 2.19.5* couldn't really create working
10033	# shared libraries, regardless of the interface used.
10034	case `$LD -v 2>&1` in
10035	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10036	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10037	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10038	  *)
10039	    lt_use_gnu_ld_interface=yes
10040	    ;;
10041	esac
10042	;;
10043      *)
10044	lt_use_gnu_ld_interface=yes
10045	;;
10046    esac
10047  fi
10048
10049  if test yes = "$lt_use_gnu_ld_interface"; then
10050    # If archive_cmds runs LD, not CC, wlarc should be empty
10051    wlarc='$wl'
10052
10053    # Set some defaults for GNU ld with shared library support. These
10054    # are reset later if shared libraries are not supported. Putting them
10055    # here allows them to be overridden if necessary.
10056    runpath_var=LD_RUN_PATH
10057    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10058    export_dynamic_flag_spec='$wl--export-dynamic'
10059    # ancient GNU ld didn't support --whole-archive et. al.
10060    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10061      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10062    else
10063      whole_archive_flag_spec=
10064    fi
10065    supports_anon_versioning=no
10066    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10067      *GNU\ gold*) supports_anon_versioning=yes ;;
10068      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10069      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10070      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10071      *\ 2.11.*) ;; # other 2.11 versions
10072      *) supports_anon_versioning=yes ;;
10073    esac
10074
10075    # See if GNU ld supports shared libraries.
10076    case $host_os in
10077    aix[3-9]*)
10078      # On AIX/PPC, the GNU linker is very broken
10079      if test ia64 != "$host_cpu"; then
10080	ld_shlibs=no
10081	cat <<_LT_EOF 1>&2
10082
10083*** Warning: the GNU linker, at least up to release 2.19, is reported
10084*** to be unable to reliably create shared libraries on AIX.
10085*** Therefore, libtool is disabling shared libraries support.  If you
10086*** really care for shared libraries, you may want to install binutils
10087*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10088*** You will then need to restart the configuration process.
10089
10090_LT_EOF
10091      fi
10092      ;;
10093
10094    amigaos*)
10095      case $host_cpu in
10096      powerpc)
10097            # see comment about AmigaOS4 .so support
10098            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099            archive_expsym_cmds=''
10100        ;;
10101      m68k)
10102            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)'
10103            hardcode_libdir_flag_spec='-L$libdir'
10104            hardcode_minus_L=yes
10105        ;;
10106      esac
10107      ;;
10108
10109    beos*)
10110      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10111	allow_undefined_flag=unsupported
10112	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10113	# support --undefined.  This deserves some investigation.  FIXME
10114	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10115      else
10116	ld_shlibs=no
10117      fi
10118      ;;
10119
10120    cygwin* | mingw* | pw32* | cegcc*)
10121      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10122      # as there is no search path for DLLs.
10123      hardcode_libdir_flag_spec='-L$libdir'
10124      export_dynamic_flag_spec='$wl--export-all-symbols'
10125      allow_undefined_flag=unsupported
10126      always_export_symbols=no
10127      enable_shared_with_static_runtimes=yes
10128      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'
10129      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10130
10131      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10132        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10133	# If the export-symbols file already is a .def file, use it as
10134	# is; otherwise, prepend EXPORTS...
10135	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10136          cp $export_symbols $output_objdir/$soname.def;
10137        else
10138          echo EXPORTS > $output_objdir/$soname.def;
10139          cat $export_symbols >> $output_objdir/$soname.def;
10140        fi~
10141        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10142      else
10143	ld_shlibs=no
10144      fi
10145      ;;
10146
10147    haiku*)
10148      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10149      link_all_deplibs=yes
10150      ;;
10151
10152    os2*)
10153      hardcode_libdir_flag_spec='-L$libdir'
10154      hardcode_minus_L=yes
10155      allow_undefined_flag=unsupported
10156      shrext_cmds=.dll
10157      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10158	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10159	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10160	$ECHO EXPORTS >> $output_objdir/$libname.def~
10161	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10162	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10163	emximp -o $lib $output_objdir/$libname.def'
10164      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10165	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10166	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10167	$ECHO EXPORTS >> $output_objdir/$libname.def~
10168	prefix_cmds="$SED"~
10169	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10170	  prefix_cmds="$prefix_cmds -e 1d";
10171	fi~
10172	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10173	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10174	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10175	emximp -o $lib $output_objdir/$libname.def'
10176      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10177      enable_shared_with_static_runtimes=yes
10178      ;;
10179
10180    interix[3-9]*)
10181      hardcode_direct=no
10182      hardcode_shlibpath_var=no
10183      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10184      export_dynamic_flag_spec='$wl-E'
10185      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10186      # Instead, shared libraries are loaded at an image base (0x10000000 by
10187      # default) and relocated if they conflict, which is a slow very memory
10188      # consuming and fragmenting process.  To avoid this, we pick a random,
10189      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10190      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10191      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10192      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'
10193      ;;
10194
10195    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10196      tmp_diet=no
10197      if test linux-dietlibc = "$host_os"; then
10198	case $cc_basename in
10199	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10200	esac
10201      fi
10202      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10203	 && test no = "$tmp_diet"
10204      then
10205	tmp_addflag=' $pic_flag'
10206	tmp_sharedflag='-shared'
10207	case $cc_basename,$host_cpu in
10208        pgcc*)				# Portland Group C compiler
10209	  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'
10210	  tmp_addflag=' $pic_flag'
10211	  ;;
10212	pgf77* | pgf90* | pgf95* | pgfortran*)
10213					# Portland Group f77 and f90 compilers
10214	  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'
10215	  tmp_addflag=' $pic_flag -Mnomain' ;;
10216	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10217	  tmp_addflag=' -i_dynamic' ;;
10218	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10219	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10220	ifc* | ifort*)			# Intel Fortran compiler
10221	  tmp_addflag=' -nofor_main' ;;
10222	lf95*)				# Lahey Fortran 8.1
10223	  whole_archive_flag_spec=
10224	  tmp_sharedflag='--shared' ;;
10225        nagfor*)                        # NAGFOR 5.3
10226          tmp_sharedflag='-Wl,-shared' ;;
10227	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10228	  tmp_sharedflag='-qmkshrobj'
10229	  tmp_addflag= ;;
10230	nvcc*)	# Cuda Compiler Driver 2.2
10231	  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'
10232	  compiler_needs_object=yes
10233	  ;;
10234	esac
10235	case `$CC -V 2>&1 | sed 5q` in
10236	*Sun\ C*)			# Sun C 5.9
10237	  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'
10238	  compiler_needs_object=yes
10239	  tmp_sharedflag='-G' ;;
10240	*Sun\ F*)			# Sun Fortran 8.3
10241	  tmp_sharedflag='-G' ;;
10242	esac
10243	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10244
10245        if test yes = "$supports_anon_versioning"; then
10246          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10247            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10248            echo "local: *; };" >> $output_objdir/$libname.ver~
10249            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10250        fi
10251
10252	case $cc_basename in
10253	tcc*)
10254	  export_dynamic_flag_spec='-rdynamic'
10255	  ;;
10256	xlf* | bgf* | bgxlf* | mpixlf*)
10257	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10258	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10259	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10260	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10261	  if test yes = "$supports_anon_versioning"; then
10262	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10263              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10264              echo "local: *; };" >> $output_objdir/$libname.ver~
10265              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10266	  fi
10267	  ;;
10268	esac
10269      else
10270        ld_shlibs=no
10271      fi
10272      ;;
10273
10274    netbsd*)
10275      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10276	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10277	wlarc=
10278      else
10279	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10280	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10281      fi
10282      ;;
10283
10284    solaris*)
10285      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10286	ld_shlibs=no
10287	cat <<_LT_EOF 1>&2
10288
10289*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10290*** create shared libraries on Solaris systems.  Therefore, libtool
10291*** is disabling shared libraries support.  We urge you to upgrade GNU
10292*** binutils to release 2.9.1 or newer.  Another option is to modify
10293*** your PATH or compiler configuration so that the native linker is
10294*** used, and then restart.
10295
10296_LT_EOF
10297      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10298	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10299	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10300      else
10301	ld_shlibs=no
10302      fi
10303      ;;
10304
10305    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10306      case `$LD -v 2>&1` in
10307        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10308	ld_shlibs=no
10309	cat <<_LT_EOF 1>&2
10310
10311*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10312*** reliably create shared libraries on SCO systems.  Therefore, libtool
10313*** is disabling shared libraries support.  We urge you to upgrade GNU
10314*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10315*** your PATH or compiler configuration so that the native linker is
10316*** used, and then restart.
10317
10318_LT_EOF
10319	;;
10320	*)
10321	  # For security reasons, it is highly recommended that you always
10322	  # use absolute paths for naming shared libraries, and exclude the
10323	  # DT_RUNPATH tag from executables and libraries.  But doing so
10324	  # requires that you compile everything twice, which is a pain.
10325	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10326	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10327	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10328	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10329	  else
10330	    ld_shlibs=no
10331	  fi
10332	;;
10333      esac
10334      ;;
10335
10336    sunos4*)
10337      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10338      wlarc=
10339      hardcode_direct=yes
10340      hardcode_shlibpath_var=no
10341      ;;
10342
10343    *)
10344      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10345	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10346	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10347      else
10348	ld_shlibs=no
10349      fi
10350      ;;
10351    esac
10352
10353    if test no = "$ld_shlibs"; then
10354      runpath_var=
10355      hardcode_libdir_flag_spec=
10356      export_dynamic_flag_spec=
10357      whole_archive_flag_spec=
10358    fi
10359  else
10360    # PORTME fill in a description of your system's linker (not GNU ld)
10361    case $host_os in
10362    aix3*)
10363      allow_undefined_flag=unsupported
10364      always_export_symbols=yes
10365      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'
10366      # Note: this linker hardcodes the directories in LIBPATH if there
10367      # are no directories specified by -L.
10368      hardcode_minus_L=yes
10369      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10370	# Neither direct hardcoding nor static linking is supported with a
10371	# broken collect2.
10372	hardcode_direct=unsupported
10373      fi
10374      ;;
10375
10376    aix[4-9]*)
10377      if test ia64 = "$host_cpu"; then
10378	# On IA64, the linker does run time linking by default, so we don't
10379	# have to do anything special.
10380	aix_use_runtimelinking=no
10381	exp_sym_flag='-Bexport'
10382	no_entry_flag=
10383      else
10384	# If we're using GNU nm, then we don't want the "-C" option.
10385	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10386	# Without the "-l" option, or with the "-B" option, AIX nm treats
10387	# weak defined symbols like other global defined symbols, whereas
10388	# GNU nm marks them as "W".
10389	# While the 'weak' keyword is ignored in the Export File, we need
10390	# it in the Import File for the 'aix-soname' feature, so we have
10391	# to replace the "-B" option with "-P" for AIX nm.
10392	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10393	  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'
10394	else
10395	  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'
10396	fi
10397	aix_use_runtimelinking=no
10398
10399	# Test if we are trying to use run time linking or normal
10400	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10401	# have runtime linking enabled, and use it for executables.
10402	# For shared libraries, we enable/disable runtime linking
10403	# depending on the kind of the shared library created -
10404	# when "with_aix_soname,aix_use_runtimelinking" is:
10405	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10406	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10407	#            lib.a           static archive
10408	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10409	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10410	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10411	#            lib.a(lib.so.V) shared, rtl:no
10412	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10413	#            lib.a           static archive
10414	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10415	  for ld_flag in $LDFLAGS; do
10416	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10417	    aix_use_runtimelinking=yes
10418	    break
10419	  fi
10420	  done
10421	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10422	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10423	    # so we don't have lib.a shared libs to link our executables.
10424	    # We have to force runtime linking in this case.
10425	    aix_use_runtimelinking=yes
10426	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10427	  fi
10428	  ;;
10429	esac
10430
10431	exp_sym_flag='-bexport'
10432	no_entry_flag='-bnoentry'
10433      fi
10434
10435      # When large executables or shared objects are built, AIX ld can
10436      # have problems creating the table of contents.  If linking a library
10437      # or program results in "error TOC overflow" add -mminimal-toc to
10438      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10439      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10440
10441      archive_cmds=''
10442      hardcode_direct=yes
10443      hardcode_direct_absolute=yes
10444      hardcode_libdir_separator=':'
10445      link_all_deplibs=yes
10446      file_list_spec='$wl-f,'
10447      case $with_aix_soname,$aix_use_runtimelinking in
10448      aix,*) ;; # traditional, no import file
10449      svr4,* | *,yes) # use import file
10450	# The Import File defines what to hardcode.
10451	hardcode_direct=no
10452	hardcode_direct_absolute=no
10453	;;
10454      esac
10455
10456      if test yes = "$GCC"; then
10457	case $host_os in aix4.[012]|aix4.[012].*)
10458	# We only want to do this on AIX 4.2 and lower, the check
10459	# below for broken collect2 doesn't work under 4.3+
10460	  collect2name=`$CC -print-prog-name=collect2`
10461	  if test -f "$collect2name" &&
10462	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10463	  then
10464	  # We have reworked collect2
10465	  :
10466	  else
10467	  # We have old collect2
10468	  hardcode_direct=unsupported
10469	  # It fails to find uninstalled libraries when the uninstalled
10470	  # path is not listed in the libpath.  Setting hardcode_minus_L
10471	  # to unsupported forces relinking
10472	  hardcode_minus_L=yes
10473	  hardcode_libdir_flag_spec='-L$libdir'
10474	  hardcode_libdir_separator=
10475	  fi
10476	  ;;
10477	esac
10478	shared_flag='-shared'
10479	if test yes = "$aix_use_runtimelinking"; then
10480	  shared_flag="$shared_flag "'$wl-G'
10481	fi
10482	# Need to ensure runtime linking is disabled for the traditional
10483	# shared library, or the linker may eventually find shared libraries
10484	# /with/ Import File - we do not want to mix them.
10485	shared_flag_aix='-shared'
10486	shared_flag_svr4='-shared $wl-G'
10487      else
10488	# not using gcc
10489	if test ia64 = "$host_cpu"; then
10490	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10491	# chokes on -Wl,-G. The following line is correct:
10492	  shared_flag='-G'
10493	else
10494	  if test yes = "$aix_use_runtimelinking"; then
10495	    shared_flag='$wl-G'
10496	  else
10497	    shared_flag='$wl-bM:SRE'
10498	  fi
10499	  shared_flag_aix='$wl-bM:SRE'
10500	  shared_flag_svr4='$wl-G'
10501	fi
10502      fi
10503
10504      export_dynamic_flag_spec='$wl-bexpall'
10505      # It seems that -bexpall does not export symbols beginning with
10506      # underscore (_), so it is better to generate a list of symbols to export.
10507      always_export_symbols=yes
10508      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10509	# Warning - without using the other runtime loading flags (-brtl),
10510	# -berok will link without error, but may produce a broken library.
10511	allow_undefined_flag='-berok'
10512        # Determine the default libpath from the value encoded in an
10513        # empty executable.
10514        if test set = "${lt_cv_aix_libpath+set}"; then
10515  aix_libpath=$lt_cv_aix_libpath
10516else
10517  if ${lt_cv_aix_libpath_+:} false; then :
10518  $as_echo_n "(cached) " >&6
10519else
10520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521/* end confdefs.h.  */
10522
10523int
10524main ()
10525{
10526
10527  ;
10528  return 0;
10529}
10530_ACEOF
10531if ac_fn_c_try_link "$LINENO"; then :
10532
10533  lt_aix_libpath_sed='
10534      /Import File Strings/,/^$/ {
10535	  /^0/ {
10536	      s/^0  *\([^ ]*\) *$/\1/
10537	      p
10538	  }
10539      }'
10540  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10541  # Check for a 64-bit object if we didn't find anything.
10542  if test -z "$lt_cv_aix_libpath_"; then
10543    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10544  fi
10545fi
10546rm -f core conftest.err conftest.$ac_objext \
10547    conftest$ac_exeext conftest.$ac_ext
10548  if test -z "$lt_cv_aix_libpath_"; then
10549    lt_cv_aix_libpath_=/usr/lib:/lib
10550  fi
10551
10552fi
10553
10554  aix_libpath=$lt_cv_aix_libpath_
10555fi
10556
10557        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10558        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
10559      else
10560	if test ia64 = "$host_cpu"; then
10561	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10562	  allow_undefined_flag="-z nodefs"
10563	  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"
10564	else
10565	 # Determine the default libpath from the value encoded in an
10566	 # empty executable.
10567	 if test set = "${lt_cv_aix_libpath+set}"; then
10568  aix_libpath=$lt_cv_aix_libpath
10569else
10570  if ${lt_cv_aix_libpath_+:} false; then :
10571  $as_echo_n "(cached) " >&6
10572else
10573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574/* end confdefs.h.  */
10575
10576int
10577main ()
10578{
10579
10580  ;
10581  return 0;
10582}
10583_ACEOF
10584if ac_fn_c_try_link "$LINENO"; then :
10585
10586  lt_aix_libpath_sed='
10587      /Import File Strings/,/^$/ {
10588	  /^0/ {
10589	      s/^0  *\([^ ]*\) *$/\1/
10590	      p
10591	  }
10592      }'
10593  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10594  # Check for a 64-bit object if we didn't find anything.
10595  if test -z "$lt_cv_aix_libpath_"; then
10596    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10597  fi
10598fi
10599rm -f core conftest.err conftest.$ac_objext \
10600    conftest$ac_exeext conftest.$ac_ext
10601  if test -z "$lt_cv_aix_libpath_"; then
10602    lt_cv_aix_libpath_=/usr/lib:/lib
10603  fi
10604
10605fi
10606
10607  aix_libpath=$lt_cv_aix_libpath_
10608fi
10609
10610	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10611	  # Warning - without using the other run time loading flags,
10612	  # -berok will link without error, but may produce a broken library.
10613	  no_undefined_flag=' $wl-bernotok'
10614	  allow_undefined_flag=' $wl-berok'
10615	  if test yes = "$with_gnu_ld"; then
10616	    # We only use this code for GNU lds that support --whole-archive.
10617	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10618	  else
10619	    # Exported symbols can be pulled into shared objects from archives
10620	    whole_archive_flag_spec='$convenience'
10621	  fi
10622	  archive_cmds_need_lc=yes
10623	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10624	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10625	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10626	  if test svr4 != "$with_aix_soname"; then
10627	    # This is similar to how AIX traditionally builds its shared libraries.
10628	    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'
10629	  fi
10630	  if test aix != "$with_aix_soname"; then
10631	    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'
10632	  else
10633	    # used by -dlpreopen to get the symbols
10634	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10635	  fi
10636	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10637	fi
10638      fi
10639      ;;
10640
10641    amigaos*)
10642      case $host_cpu in
10643      powerpc)
10644            # see comment about AmigaOS4 .so support
10645            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646            archive_expsym_cmds=''
10647        ;;
10648      m68k)
10649            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)'
10650            hardcode_libdir_flag_spec='-L$libdir'
10651            hardcode_minus_L=yes
10652        ;;
10653      esac
10654      ;;
10655
10656    bsdi[45]*)
10657      export_dynamic_flag_spec=-rdynamic
10658      ;;
10659
10660    cygwin* | mingw* | pw32* | cegcc*)
10661      # When not using gcc, we currently assume that we are using
10662      # Microsoft Visual C++.
10663      # hardcode_libdir_flag_spec is actually meaningless, as there is
10664      # no search path for DLLs.
10665      case $cc_basename in
10666      cl*)
10667	# Native MSVC
10668	hardcode_libdir_flag_spec=' '
10669	allow_undefined_flag=unsupported
10670	always_export_symbols=yes
10671	file_list_spec='@'
10672	# Tell ltmain to make .lib files, not .a files.
10673	libext=lib
10674	# Tell ltmain to make .dll files, not .so files.
10675	shrext_cmds=.dll
10676	# FIXME: Setting linknames here is a bad hack.
10677	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10678	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10679            cp "$export_symbols" "$output_objdir/$soname.def";
10680            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10681          else
10682            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10683          fi~
10684          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10685          linknames='
10686	# The linker will not automatically build a static lib if we build a DLL.
10687	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10688	enable_shared_with_static_runtimes=yes
10689	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10690	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10691	# Don't use ranlib
10692	old_postinstall_cmds='chmod 644 $oldlib'
10693	postlink_cmds='lt_outputfile="@OUTPUT@"~
10694          lt_tool_outputfile="@TOOL_OUTPUT@"~
10695          case $lt_outputfile in
10696            *.exe|*.EXE) ;;
10697            *)
10698              lt_outputfile=$lt_outputfile.exe
10699              lt_tool_outputfile=$lt_tool_outputfile.exe
10700              ;;
10701          esac~
10702          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10703            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10704            $RM "$lt_outputfile.manifest";
10705          fi'
10706	;;
10707      *)
10708	# Assume MSVC wrapper
10709	hardcode_libdir_flag_spec=' '
10710	allow_undefined_flag=unsupported
10711	# Tell ltmain to make .lib files, not .a files.
10712	libext=lib
10713	# Tell ltmain to make .dll files, not .so files.
10714	shrext_cmds=.dll
10715	# FIXME: Setting linknames here is a bad hack.
10716	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10717	# The linker will automatically build a .lib file if we build a DLL.
10718	old_archive_from_new_cmds='true'
10719	# FIXME: Should let the user specify the lib program.
10720	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10721	enable_shared_with_static_runtimes=yes
10722	;;
10723      esac
10724      ;;
10725
10726    darwin* | rhapsody*)
10727
10728
10729  archive_cmds_need_lc=no
10730  hardcode_direct=no
10731  hardcode_automatic=yes
10732  hardcode_shlibpath_var=unsupported
10733  if test yes = "$lt_cv_ld_force_load"; then
10734    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\"`'
10735
10736  else
10737    whole_archive_flag_spec=''
10738  fi
10739  link_all_deplibs=yes
10740  allow_undefined_flag=$_lt_dar_allow_undefined
10741  case $cc_basename in
10742     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10743     *) _lt_dar_can_shared=$GCC ;;
10744  esac
10745  if test yes = "$_lt_dar_can_shared"; then
10746    output_verbose_link_cmd=func_echo_all
10747    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10748    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10749    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"
10750    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"
10751
10752  else
10753  ld_shlibs=no
10754  fi
10755
10756      ;;
10757
10758    dgux*)
10759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760      hardcode_libdir_flag_spec='-L$libdir'
10761      hardcode_shlibpath_var=no
10762      ;;
10763
10764    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10765    # support.  Future versions do this automatically, but an explicit c++rt0.o
10766    # does not break anything, and helps significantly (at the cost of a little
10767    # extra space).
10768    freebsd2.2*)
10769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10770      hardcode_libdir_flag_spec='-R$libdir'
10771      hardcode_direct=yes
10772      hardcode_shlibpath_var=no
10773      ;;
10774
10775    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10776    freebsd2.*)
10777      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10778      hardcode_direct=yes
10779      hardcode_minus_L=yes
10780      hardcode_shlibpath_var=no
10781      ;;
10782
10783    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10784    freebsd* | dragonfly*)
10785      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786      hardcode_libdir_flag_spec='-R$libdir'
10787      hardcode_direct=yes
10788      hardcode_shlibpath_var=no
10789      ;;
10790
10791    hpux9*)
10792      if test yes = "$GCC"; then
10793	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'
10794      else
10795	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'
10796      fi
10797      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10798      hardcode_libdir_separator=:
10799      hardcode_direct=yes
10800
10801      # hardcode_minus_L: Not really in the search PATH,
10802      # but as the default location of the library.
10803      hardcode_minus_L=yes
10804      export_dynamic_flag_spec='$wl-E'
10805      ;;
10806
10807    hpux10*)
10808      if test yes,no = "$GCC,$with_gnu_ld"; then
10809	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10810      else
10811	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10812      fi
10813      if test no = "$with_gnu_ld"; then
10814	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10815	hardcode_libdir_separator=:
10816	hardcode_direct=yes
10817	hardcode_direct_absolute=yes
10818	export_dynamic_flag_spec='$wl-E'
10819	# hardcode_minus_L: Not really in the search PATH,
10820	# but as the default location of the library.
10821	hardcode_minus_L=yes
10822      fi
10823      ;;
10824
10825    hpux11*)
10826      if test yes,no = "$GCC,$with_gnu_ld"; then
10827	case $host_cpu in
10828	hppa*64*)
10829	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10830	  ;;
10831	ia64*)
10832	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10833	  ;;
10834	*)
10835	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836	  ;;
10837	esac
10838      else
10839	case $host_cpu in
10840	hppa*64*)
10841	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10842	  ;;
10843	ia64*)
10844	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10845	  ;;
10846	*)
10847
10848	  # Older versions of the 11.00 compiler do not understand -b yet
10849	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10850	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10851$as_echo_n "checking if $CC understands -b... " >&6; }
10852if ${lt_cv_prog_compiler__b+:} false; then :
10853  $as_echo_n "(cached) " >&6
10854else
10855  lt_cv_prog_compiler__b=no
10856   save_LDFLAGS=$LDFLAGS
10857   LDFLAGS="$LDFLAGS -b"
10858   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10859   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10860     # The linker can only warn and ignore the option if not recognized
10861     # So say no if there are warnings
10862     if test -s conftest.err; then
10863       # Append any errors to the config.log.
10864       cat conftest.err 1>&5
10865       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10866       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10867       if diff conftest.exp conftest.er2 >/dev/null; then
10868         lt_cv_prog_compiler__b=yes
10869       fi
10870     else
10871       lt_cv_prog_compiler__b=yes
10872     fi
10873   fi
10874   $RM -r conftest*
10875   LDFLAGS=$save_LDFLAGS
10876
10877fi
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10879$as_echo "$lt_cv_prog_compiler__b" >&6; }
10880
10881if test yes = "$lt_cv_prog_compiler__b"; then
10882    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10883else
10884    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10885fi
10886
10887	  ;;
10888	esac
10889      fi
10890      if test no = "$with_gnu_ld"; then
10891	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10892	hardcode_libdir_separator=:
10893
10894	case $host_cpu in
10895	hppa*64*|ia64*)
10896	  hardcode_direct=no
10897	  hardcode_shlibpath_var=no
10898	  ;;
10899	*)
10900	  hardcode_direct=yes
10901	  hardcode_direct_absolute=yes
10902	  export_dynamic_flag_spec='$wl-E'
10903
10904	  # hardcode_minus_L: Not really in the search PATH,
10905	  # but as the default location of the library.
10906	  hardcode_minus_L=yes
10907	  ;;
10908	esac
10909      fi
10910      ;;
10911
10912    irix5* | irix6* | nonstopux*)
10913      if test yes = "$GCC"; then
10914	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'
10915	# Try to use the -exported_symbol ld option, if it does not
10916	# work, assume that -exports_file does not work either and
10917	# implicitly export all symbols.
10918	# This should be the same for all languages, so no per-tag cache variable.
10919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10920$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10921if ${lt_cv_irix_exported_symbol+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  save_LDFLAGS=$LDFLAGS
10925	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10926	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928int foo (void) { return 0; }
10929_ACEOF
10930if ac_fn_c_try_link "$LINENO"; then :
10931  lt_cv_irix_exported_symbol=yes
10932else
10933  lt_cv_irix_exported_symbol=no
10934fi
10935rm -f core conftest.err conftest.$ac_objext \
10936    conftest$ac_exeext conftest.$ac_ext
10937           LDFLAGS=$save_LDFLAGS
10938fi
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10940$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10941	if test yes = "$lt_cv_irix_exported_symbol"; then
10942          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'
10943	fi
10944      else
10945	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'
10946	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'
10947      fi
10948      archive_cmds_need_lc='no'
10949      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10950      hardcode_libdir_separator=:
10951      inherit_rpath=yes
10952      link_all_deplibs=yes
10953      ;;
10954
10955    linux*)
10956      case $cc_basename in
10957      tcc*)
10958	# Fabrice Bellard et al's Tiny C Compiler
10959	ld_shlibs=yes
10960	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10961	;;
10962      esac
10963      ;;
10964
10965    netbsd*)
10966      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10967	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10968      else
10969	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10970      fi
10971      hardcode_libdir_flag_spec='-R$libdir'
10972      hardcode_direct=yes
10973      hardcode_shlibpath_var=no
10974      ;;
10975
10976    newsos6)
10977      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978      hardcode_direct=yes
10979      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10980      hardcode_libdir_separator=:
10981      hardcode_shlibpath_var=no
10982      ;;
10983
10984    *nto* | *qnx*)
10985      ;;
10986
10987    openbsd* | bitrig*)
10988      if test -f /usr/libexec/ld.so; then
10989	hardcode_direct=yes
10990	hardcode_shlibpath_var=no
10991	hardcode_direct_absolute=yes
10992	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10993	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10994	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10995	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10996	  export_dynamic_flag_spec='$wl-E'
10997	else
10998	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10999	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11000	fi
11001      else
11002	ld_shlibs=no
11003      fi
11004      ;;
11005
11006    os2*)
11007      hardcode_libdir_flag_spec='-L$libdir'
11008      hardcode_minus_L=yes
11009      allow_undefined_flag=unsupported
11010      shrext_cmds=.dll
11011      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11012	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11013	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11014	$ECHO EXPORTS >> $output_objdir/$libname.def~
11015	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11016	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11017	emximp -o $lib $output_objdir/$libname.def'
11018      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11019	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11020	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11021	$ECHO EXPORTS >> $output_objdir/$libname.def~
11022	prefix_cmds="$SED"~
11023	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11024	  prefix_cmds="$prefix_cmds -e 1d";
11025	fi~
11026	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11027	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11028	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11029	emximp -o $lib $output_objdir/$libname.def'
11030      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11031      enable_shared_with_static_runtimes=yes
11032      ;;
11033
11034    osf3*)
11035      if test yes = "$GCC"; then
11036	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11037	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'
11038      else
11039	allow_undefined_flag=' -expect_unresolved \*'
11040	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'
11041      fi
11042      archive_cmds_need_lc='no'
11043      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11044      hardcode_libdir_separator=:
11045      ;;
11046
11047    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11048      if test yes = "$GCC"; then
11049	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11050	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'
11051	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11052      else
11053	allow_undefined_flag=' -expect_unresolved \*'
11054	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'
11055	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~
11056          $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'
11057
11058	# Both c and cxx compiler support -rpath directly
11059	hardcode_libdir_flag_spec='-rpath $libdir'
11060      fi
11061      archive_cmds_need_lc='no'
11062      hardcode_libdir_separator=:
11063      ;;
11064
11065    solaris*)
11066      no_undefined_flag=' -z defs'
11067      if test yes = "$GCC"; then
11068	wlarc='$wl'
11069	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11070	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11071          $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'
11072      else
11073	case `$CC -V 2>&1` in
11074	*"Compilers 5.0"*)
11075	  wlarc=''
11076	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11078            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11079	  ;;
11080	*)
11081	  wlarc='$wl'
11082	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11083	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11084            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11085	  ;;
11086	esac
11087      fi
11088      hardcode_libdir_flag_spec='-R$libdir'
11089      hardcode_shlibpath_var=no
11090      case $host_os in
11091      solaris2.[0-5] | solaris2.[0-5].*) ;;
11092      *)
11093	# The compiler driver will combine and reorder linker options,
11094	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11095	# but is careful enough not to reorder.
11096	# Supported since Solaris 2.6 (maybe 2.5.1?)
11097	if test yes = "$GCC"; then
11098	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11099	else
11100	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11101	fi
11102	;;
11103      esac
11104      link_all_deplibs=yes
11105      ;;
11106
11107    sunos4*)
11108      if test sequent = "$host_vendor"; then
11109	# Use $CC to link under sequent, because it throws in some extra .o
11110	# files that make .init and .fini sections work.
11111	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11112      else
11113	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11114      fi
11115      hardcode_libdir_flag_spec='-L$libdir'
11116      hardcode_direct=yes
11117      hardcode_minus_L=yes
11118      hardcode_shlibpath_var=no
11119      ;;
11120
11121    sysv4)
11122      case $host_vendor in
11123	sni)
11124	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125	  hardcode_direct=yes # is this really true???
11126	;;
11127	siemens)
11128	  ## LD is ld it makes a PLAMLIB
11129	  ## CC just makes a GrossModule.
11130	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11131	  reload_cmds='$CC -r -o $output$reload_objs'
11132	  hardcode_direct=no
11133        ;;
11134	motorola)
11135	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11137	;;
11138      esac
11139      runpath_var='LD_RUN_PATH'
11140      hardcode_shlibpath_var=no
11141      ;;
11142
11143    sysv4.3*)
11144      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11145      hardcode_shlibpath_var=no
11146      export_dynamic_flag_spec='-Bexport'
11147      ;;
11148
11149    sysv4*MP*)
11150      if test -d /usr/nec; then
11151	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11152	hardcode_shlibpath_var=no
11153	runpath_var=LD_RUN_PATH
11154	hardcode_runpath_var=yes
11155	ld_shlibs=yes
11156      fi
11157      ;;
11158
11159    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11160      no_undefined_flag='$wl-z,text'
11161      archive_cmds_need_lc=no
11162      hardcode_shlibpath_var=no
11163      runpath_var='LD_RUN_PATH'
11164
11165      if test yes = "$GCC"; then
11166	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11168      else
11169	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171      fi
11172      ;;
11173
11174    sysv5* | sco3.2v5* | sco5v6*)
11175      # Note: We CANNOT use -z defs as we might desire, because we do not
11176      # link with -lc, and that would cause any symbols used from libc to
11177      # always be unresolved, which means just about no library would
11178      # ever link correctly.  If we're not using GNU ld we use -z text
11179      # though, which does catch some bad symbols but isn't as heavy-handed
11180      # as -z defs.
11181      no_undefined_flag='$wl-z,text'
11182      allow_undefined_flag='$wl-z,nodefs'
11183      archive_cmds_need_lc=no
11184      hardcode_shlibpath_var=no
11185      hardcode_libdir_flag_spec='$wl-R,$libdir'
11186      hardcode_libdir_separator=':'
11187      link_all_deplibs=yes
11188      export_dynamic_flag_spec='$wl-Bexport'
11189      runpath_var='LD_RUN_PATH'
11190
11191      if test yes = "$GCC"; then
11192	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194      else
11195	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11196	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197      fi
11198      ;;
11199
11200    uts4*)
11201      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11202      hardcode_libdir_flag_spec='-L$libdir'
11203      hardcode_shlibpath_var=no
11204      ;;
11205
11206    *)
11207      ld_shlibs=no
11208      ;;
11209    esac
11210
11211    if test sni = "$host_vendor"; then
11212      case $host in
11213      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11214	export_dynamic_flag_spec='$wl-Blargedynsym'
11215	;;
11216      esac
11217    fi
11218  fi
11219
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11221$as_echo "$ld_shlibs" >&6; }
11222test no = "$ld_shlibs" && can_build_shared=no
11223
11224with_gnu_ld=$with_gnu_ld
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240#
11241# Do we need to explicitly link libc?
11242#
11243case "x$archive_cmds_need_lc" in
11244x|xyes)
11245  # Assume -lc should be added
11246  archive_cmds_need_lc=yes
11247
11248  if test yes,yes = "$GCC,$enable_shared"; then
11249    case $archive_cmds in
11250    *'~'*)
11251      # FIXME: we may have to deal with multi-command sequences.
11252      ;;
11253    '$CC '*)
11254      # Test whether the compiler implicitly links with -lc since on some
11255      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11256      # to ld, don't add -lc before -lgcc.
11257      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11258$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11259if ${lt_cv_archive_cmds_need_lc+:} false; then :
11260  $as_echo_n "(cached) " >&6
11261else
11262  $RM conftest*
11263	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11264
11265	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11266  (eval $ac_compile) 2>&5
11267  ac_status=$?
11268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11269  test $ac_status = 0; } 2>conftest.err; then
11270	  soname=conftest
11271	  lib=conftest
11272	  libobjs=conftest.$ac_objext
11273	  deplibs=
11274	  wl=$lt_prog_compiler_wl
11275	  pic_flag=$lt_prog_compiler_pic
11276	  compiler_flags=-v
11277	  linker_flags=-v
11278	  verstring=
11279	  output_objdir=.
11280	  libname=conftest
11281	  lt_save_allow_undefined_flag=$allow_undefined_flag
11282	  allow_undefined_flag=
11283	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11284  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11285  ac_status=$?
11286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287  test $ac_status = 0; }
11288	  then
11289	    lt_cv_archive_cmds_need_lc=no
11290	  else
11291	    lt_cv_archive_cmds_need_lc=yes
11292	  fi
11293	  allow_undefined_flag=$lt_save_allow_undefined_flag
11294	else
11295	  cat conftest.err 1>&5
11296	fi
11297	$RM conftest*
11298
11299fi
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11301$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11302      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11303      ;;
11304    esac
11305  fi
11306  ;;
11307esac
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
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11461$as_echo_n "checking dynamic linker characteristics... " >&6; }
11462
11463if test yes = "$GCC"; then
11464  case $host_os in
11465    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11466    *) lt_awk_arg='/^libraries:/' ;;
11467  esac
11468  case $host_os in
11469    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11470    *) lt_sed_strip_eq='s|=/|/|g' ;;
11471  esac
11472  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11473  case $lt_search_path_spec in
11474  *\;*)
11475    # if the path contains ";" then we assume it to be the separator
11476    # otherwise default to the standard path separator (i.e. ":") - it is
11477    # assumed that no part of a normal pathname contains ";" but that should
11478    # okay in the real world where ";" in dirpaths is itself problematic.
11479    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11480    ;;
11481  *)
11482    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11483    ;;
11484  esac
11485  # Ok, now we have the path, separated by spaces, we can step through it
11486  # and add multilib dir if necessary...
11487  lt_tmp_lt_search_path_spec=
11488  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11489  # ...but if some path component already ends with the multilib dir we assume
11490  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11491  case "$lt_multi_os_dir; $lt_search_path_spec " in
11492  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11493    lt_multi_os_dir=
11494    ;;
11495  esac
11496  for lt_sys_path in $lt_search_path_spec; do
11497    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11498      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11499    elif test -n "$lt_multi_os_dir"; then
11500      test -d "$lt_sys_path" && \
11501	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11502    fi
11503  done
11504  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11505BEGIN {RS = " "; FS = "/|\n";} {
11506  lt_foo = "";
11507  lt_count = 0;
11508  for (lt_i = NF; lt_i > 0; lt_i--) {
11509    if ($lt_i != "" && $lt_i != ".") {
11510      if ($lt_i == "..") {
11511        lt_count++;
11512      } else {
11513        if (lt_count == 0) {
11514          lt_foo = "/" $lt_i lt_foo;
11515        } else {
11516          lt_count--;
11517        }
11518      }
11519    }
11520  }
11521  if (lt_foo != "") { lt_freq[lt_foo]++; }
11522  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11523}'`
11524  # AWK program above erroneously prepends '/' to C:/dos/paths
11525  # for these hosts.
11526  case $host_os in
11527    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11528      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11529  esac
11530  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11531else
11532  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11533fi
11534library_names_spec=
11535libname_spec='lib$name'
11536soname_spec=
11537shrext_cmds=.so
11538postinstall_cmds=
11539postuninstall_cmds=
11540finish_cmds=
11541finish_eval=
11542shlibpath_var=
11543shlibpath_overrides_runpath=unknown
11544version_type=none
11545dynamic_linker="$host_os ld.so"
11546sys_lib_dlsearch_path_spec="/lib /usr/lib"
11547need_lib_prefix=unknown
11548hardcode_into_libs=no
11549
11550# when you set need_version to no, make sure it does not cause -set_version
11551# flags to be left without arguments
11552need_version=unknown
11553
11554
11555
11556case $host_os in
11557aix3*)
11558  version_type=linux # correct to gnu/linux during the next big refactor
11559  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11560  shlibpath_var=LIBPATH
11561
11562  # AIX 3 has no versioning support, so we append a major version to the name.
11563  soname_spec='$libname$release$shared_ext$major'
11564  ;;
11565
11566aix[4-9]*)
11567  version_type=linux # correct to gnu/linux during the next big refactor
11568  need_lib_prefix=no
11569  need_version=no
11570  hardcode_into_libs=yes
11571  if test ia64 = "$host_cpu"; then
11572    # AIX 5 supports IA64
11573    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11574    shlibpath_var=LD_LIBRARY_PATH
11575  else
11576    # With GCC up to 2.95.x, collect2 would create an import file
11577    # for dependence libraries.  The import file would start with
11578    # the line '#! .'.  This would cause the generated library to
11579    # depend on '.', always an invalid library.  This was fixed in
11580    # development snapshots of GCC prior to 3.0.
11581    case $host_os in
11582      aix4 | aix4.[01] | aix4.[01].*)
11583      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11584	   echo ' yes '
11585	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11586	:
11587      else
11588	can_build_shared=no
11589      fi
11590      ;;
11591    esac
11592    # Using Import Files as archive members, it is possible to support
11593    # filename-based versioning of shared library archives on AIX. While
11594    # this would work for both with and without runtime linking, it will
11595    # prevent static linking of such archives. So we do filename-based
11596    # shared library versioning with .so extension only, which is used
11597    # when both runtime linking and shared linking is enabled.
11598    # Unfortunately, runtime linking may impact performance, so we do
11599    # not want this to be the default eventually. Also, we use the
11600    # versioned .so libs for executables only if there is the -brtl
11601    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11602    # To allow for filename-based versioning support, we need to create
11603    # libNAME.so.V as an archive file, containing:
11604    # *) an Import File, referring to the versioned filename of the
11605    #    archive as well as the shared archive member, telling the
11606    #    bitwidth (32 or 64) of that shared object, and providing the
11607    #    list of exported symbols of that shared object, eventually
11608    #    decorated with the 'weak' keyword
11609    # *) the shared object with the F_LOADONLY flag set, to really avoid
11610    #    it being seen by the linker.
11611    # At run time we better use the real file rather than another symlink,
11612    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11613
11614    case $with_aix_soname,$aix_use_runtimelinking in
11615    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11616    # soname into executable. Probably we can add versioning support to
11617    # collect2, so additional links can be useful in future.
11618    aix,yes) # traditional libtool
11619      dynamic_linker='AIX unversionable lib.so'
11620      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11621      # instead of lib<name>.a to let people know that these are not
11622      # typical AIX shared libraries.
11623      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11624      ;;
11625    aix,no) # traditional AIX only
11626      dynamic_linker='AIX lib.a(lib.so.V)'
11627      # We preserve .a as extension for shared libraries through AIX4.2
11628      # and later when we are not doing run time linking.
11629      library_names_spec='$libname$release.a $libname.a'
11630      soname_spec='$libname$release$shared_ext$major'
11631      ;;
11632    svr4,*) # full svr4 only
11633      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11634      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11635      # We do not specify a path in Import Files, so LIBPATH fires.
11636      shlibpath_overrides_runpath=yes
11637      ;;
11638    *,yes) # both, prefer svr4
11639      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11640      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11641      # unpreferred sharedlib libNAME.a needs extra handling
11642      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"'
11643      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"'
11644      # We do not specify a path in Import Files, so LIBPATH fires.
11645      shlibpath_overrides_runpath=yes
11646      ;;
11647    *,no) # both, prefer aix
11648      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11649      library_names_spec='$libname$release.a $libname.a'
11650      soname_spec='$libname$release$shared_ext$major'
11651      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11652      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)'
11653      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"'
11654      ;;
11655    esac
11656    shlibpath_var=LIBPATH
11657  fi
11658  ;;
11659
11660amigaos*)
11661  case $host_cpu in
11662  powerpc)
11663    # Since July 2007 AmigaOS4 officially supports .so libraries.
11664    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11665    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11666    ;;
11667  m68k)
11668    library_names_spec='$libname.ixlibrary $libname.a'
11669    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11670    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'
11671    ;;
11672  esac
11673  ;;
11674
11675beos*)
11676  library_names_spec='$libname$shared_ext'
11677  dynamic_linker="$host_os ld.so"
11678  shlibpath_var=LIBRARY_PATH
11679  ;;
11680
11681bsdi[45]*)
11682  version_type=linux # correct to gnu/linux during the next big refactor
11683  need_version=no
11684  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685  soname_spec='$libname$release$shared_ext$major'
11686  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11687  shlibpath_var=LD_LIBRARY_PATH
11688  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11689  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11690  # the default ld.so.conf also contains /usr/contrib/lib and
11691  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11692  # libtool to hard-code these into programs
11693  ;;
11694
11695cygwin* | mingw* | pw32* | cegcc*)
11696  version_type=windows
11697  shrext_cmds=.dll
11698  need_version=no
11699  need_lib_prefix=no
11700
11701  case $GCC,$cc_basename in
11702  yes,*)
11703    # gcc
11704    library_names_spec='$libname.dll.a'
11705    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11706    postinstall_cmds='base_file=`basename \$file`~
11707      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11708      dldir=$destdir/`dirname \$dlpath`~
11709      test -d \$dldir || mkdir -p \$dldir~
11710      $install_prog $dir/$dlname \$dldir/$dlname~
11711      chmod a+x \$dldir/$dlname~
11712      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11713        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11714      fi'
11715    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11716      dlpath=$dir/\$dldll~
11717       $RM \$dlpath'
11718    shlibpath_overrides_runpath=yes
11719
11720    case $host_os in
11721    cygwin*)
11722      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11723      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11724
11725      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11726      ;;
11727    mingw* | cegcc*)
11728      # MinGW DLLs use traditional 'lib' prefix
11729      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11730      ;;
11731    pw32*)
11732      # pw32 DLLs use 'pw' prefix rather than 'lib'
11733      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11734      ;;
11735    esac
11736    dynamic_linker='Win32 ld.exe'
11737    ;;
11738
11739  *,cl*)
11740    # Native MSVC
11741    libname_spec='$name'
11742    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11743    library_names_spec='$libname.dll.lib'
11744
11745    case $build_os in
11746    mingw*)
11747      sys_lib_search_path_spec=
11748      lt_save_ifs=$IFS
11749      IFS=';'
11750      for lt_path in $LIB
11751      do
11752        IFS=$lt_save_ifs
11753        # Let DOS variable expansion print the short 8.3 style file name.
11754        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11755        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11756      done
11757      IFS=$lt_save_ifs
11758      # Convert to MSYS style.
11759      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11760      ;;
11761    cygwin*)
11762      # Convert to unix form, then to dos form, then back to unix form
11763      # but this time dos style (no spaces!) so that the unix form looks
11764      # like /cygdrive/c/PROGRA~1:/cygdr...
11765      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11766      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11767      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11768      ;;
11769    *)
11770      sys_lib_search_path_spec=$LIB
11771      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11772        # It is most probably a Windows format PATH.
11773        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11774      else
11775        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11776      fi
11777      # FIXME: find the short name or the path components, as spaces are
11778      # common. (e.g. "Program Files" -> "PROGRA~1")
11779      ;;
11780    esac
11781
11782    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11783    postinstall_cmds='base_file=`basename \$file`~
11784      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11785      dldir=$destdir/`dirname \$dlpath`~
11786      test -d \$dldir || mkdir -p \$dldir~
11787      $install_prog $dir/$dlname \$dldir/$dlname'
11788    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11789      dlpath=$dir/\$dldll~
11790       $RM \$dlpath'
11791    shlibpath_overrides_runpath=yes
11792    dynamic_linker='Win32 link.exe'
11793    ;;
11794
11795  *)
11796    # Assume MSVC wrapper
11797    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11798    dynamic_linker='Win32 ld.exe'
11799    ;;
11800  esac
11801  # FIXME: first we should search . and the directory the executable is in
11802  shlibpath_var=PATH
11803  ;;
11804
11805darwin* | rhapsody*)
11806  dynamic_linker="$host_os dyld"
11807  version_type=darwin
11808  need_lib_prefix=no
11809  need_version=no
11810  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11811  soname_spec='$libname$release$major$shared_ext'
11812  shlibpath_overrides_runpath=yes
11813  shlibpath_var=DYLD_LIBRARY_PATH
11814  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11815
11816  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11817  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11818  ;;
11819
11820dgux*)
11821  version_type=linux # correct to gnu/linux during the next big refactor
11822  need_lib_prefix=no
11823  need_version=no
11824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11825  soname_spec='$libname$release$shared_ext$major'
11826  shlibpath_var=LD_LIBRARY_PATH
11827  ;;
11828
11829freebsd* | dragonfly*)
11830  # DragonFly does not have aout.  When/if they implement a new
11831  # versioning mechanism, adjust this.
11832  if test -x /usr/bin/objformat; then
11833    objformat=`/usr/bin/objformat`
11834  else
11835    case $host_os in
11836    freebsd[23].*) objformat=aout ;;
11837    *) objformat=elf ;;
11838    esac
11839  fi
11840  version_type=freebsd-$objformat
11841  case $version_type in
11842    freebsd-elf*)
11843      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11844      soname_spec='$libname$release$shared_ext$major'
11845      need_version=no
11846      need_lib_prefix=no
11847      ;;
11848    freebsd-*)
11849      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11850      need_version=yes
11851      ;;
11852  esac
11853  shlibpath_var=LD_LIBRARY_PATH
11854  case $host_os in
11855  freebsd2.*)
11856    shlibpath_overrides_runpath=yes
11857    ;;
11858  freebsd3.[01]* | freebsdelf3.[01]*)
11859    shlibpath_overrides_runpath=yes
11860    hardcode_into_libs=yes
11861    ;;
11862  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11863  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11864    shlibpath_overrides_runpath=no
11865    hardcode_into_libs=yes
11866    ;;
11867  *) # from 4.6 on, and DragonFly
11868    shlibpath_overrides_runpath=yes
11869    hardcode_into_libs=yes
11870    ;;
11871  esac
11872  ;;
11873
11874haiku*)
11875  version_type=linux # correct to gnu/linux during the next big refactor
11876  need_lib_prefix=no
11877  need_version=no
11878  dynamic_linker="$host_os runtime_loader"
11879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880  soname_spec='$libname$release$shared_ext$major'
11881  shlibpath_var=LIBRARY_PATH
11882  shlibpath_overrides_runpath=no
11883  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11884  hardcode_into_libs=yes
11885  ;;
11886
11887hpux9* | hpux10* | hpux11*)
11888  # Give a soname corresponding to the major version so that dld.sl refuses to
11889  # link against other versions.
11890  version_type=sunos
11891  need_lib_prefix=no
11892  need_version=no
11893  case $host_cpu in
11894  ia64*)
11895    shrext_cmds='.so'
11896    hardcode_into_libs=yes
11897    dynamic_linker="$host_os dld.so"
11898    shlibpath_var=LD_LIBRARY_PATH
11899    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11900    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901    soname_spec='$libname$release$shared_ext$major'
11902    if test 32 = "$HPUX_IA64_MODE"; then
11903      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11904      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11905    else
11906      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11907      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11908    fi
11909    ;;
11910  hppa*64*)
11911    shrext_cmds='.sl'
11912    hardcode_into_libs=yes
11913    dynamic_linker="$host_os dld.sl"
11914    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11915    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11916    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11917    soname_spec='$libname$release$shared_ext$major'
11918    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11919    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11920    ;;
11921  *)
11922    shrext_cmds='.sl'
11923    dynamic_linker="$host_os dld.sl"
11924    shlibpath_var=SHLIB_PATH
11925    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11926    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927    soname_spec='$libname$release$shared_ext$major'
11928    ;;
11929  esac
11930  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11931  postinstall_cmds='chmod 555 $lib'
11932  # or fails outright, so override atomically:
11933  install_override_mode=555
11934  ;;
11935
11936interix[3-9]*)
11937  version_type=linux # correct to gnu/linux during the next big refactor
11938  need_lib_prefix=no
11939  need_version=no
11940  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11941  soname_spec='$libname$release$shared_ext$major'
11942  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11943  shlibpath_var=LD_LIBRARY_PATH
11944  shlibpath_overrides_runpath=no
11945  hardcode_into_libs=yes
11946  ;;
11947
11948irix5* | irix6* | nonstopux*)
11949  case $host_os in
11950    nonstopux*) version_type=nonstopux ;;
11951    *)
11952	if test yes = "$lt_cv_prog_gnu_ld"; then
11953		version_type=linux # correct to gnu/linux during the next big refactor
11954	else
11955		version_type=irix
11956	fi ;;
11957  esac
11958  need_lib_prefix=no
11959  need_version=no
11960  soname_spec='$libname$release$shared_ext$major'
11961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11962  case $host_os in
11963  irix5* | nonstopux*)
11964    libsuff= shlibsuff=
11965    ;;
11966  *)
11967    case $LD in # libtool.m4 will add one of these switches to LD
11968    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11969      libsuff= shlibsuff= libmagic=32-bit;;
11970    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11971      libsuff=32 shlibsuff=N32 libmagic=N32;;
11972    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11973      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11974    *) libsuff= shlibsuff= libmagic=never-match;;
11975    esac
11976    ;;
11977  esac
11978  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11979  shlibpath_overrides_runpath=no
11980  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11981  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11982  hardcode_into_libs=yes
11983  ;;
11984
11985# No shared lib support for Linux oldld, aout, or coff.
11986linux*oldld* | linux*aout* | linux*coff*)
11987  dynamic_linker=no
11988  ;;
11989
11990linux*android*)
11991  version_type=none # Android doesn't support versioned libraries.
11992  need_lib_prefix=no
11993  need_version=no
11994  library_names_spec='$libname$release$shared_ext'
11995  soname_spec='$libname$release$shared_ext'
11996  finish_cmds=
11997  shlibpath_var=LD_LIBRARY_PATH
11998  shlibpath_overrides_runpath=yes
11999
12000  # This implies no fast_install, which is unacceptable.
12001  # Some rework will be needed to allow for fast_install
12002  # before this can be enabled.
12003  hardcode_into_libs=yes
12004
12005  dynamic_linker='Android linker'
12006  # Don't embed -rpath directories since the linker doesn't support them.
12007  hardcode_libdir_flag_spec='-L$libdir'
12008  ;;
12009
12010# This must be glibc/ELF.
12011linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12012  version_type=linux # correct to gnu/linux during the next big refactor
12013  need_lib_prefix=no
12014  need_version=no
12015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016  soname_spec='$libname$release$shared_ext$major'
12017  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12018  shlibpath_var=LD_LIBRARY_PATH
12019  shlibpath_overrides_runpath=no
12020
12021  # Some binutils ld are patched to set DT_RUNPATH
12022  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  lt_cv_shlibpath_overrides_runpath=no
12026    save_LDFLAGS=$LDFLAGS
12027    save_libdir=$libdir
12028    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12029	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031/* end confdefs.h.  */
12032
12033int
12034main ()
12035{
12036
12037  ;
12038  return 0;
12039}
12040_ACEOF
12041if ac_fn_c_try_link "$LINENO"; then :
12042  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12043  lt_cv_shlibpath_overrides_runpath=yes
12044fi
12045fi
12046rm -f core conftest.err conftest.$ac_objext \
12047    conftest$ac_exeext conftest.$ac_ext
12048    LDFLAGS=$save_LDFLAGS
12049    libdir=$save_libdir
12050
12051fi
12052
12053  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12054
12055  # This implies no fast_install, which is unacceptable.
12056  # Some rework will be needed to allow for fast_install
12057  # before this can be enabled.
12058  hardcode_into_libs=yes
12059
12060  # Ideally, we could use ldconfig to report *all* directores which are
12061  # searched for libraries, however this is still not possible.  Aside from not
12062  # being certain /sbin/ldconfig is available, command
12063  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12064  # even though it is searched at run-time.  Try to do the best guess by
12065  # appending ld.so.conf contents (and includes) to the search path.
12066  if test -f /etc/ld.so.conf; then
12067    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' ' '`
12068    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12069  fi
12070
12071  # We used to test for /lib/ld.so.1 and disable shared libraries on
12072  # powerpc, because MkLinux only supported shared libraries with the
12073  # GNU dynamic linker.  Since this was broken with cross compilers,
12074  # most powerpc-linux boxes support dynamic linking these days and
12075  # people can always --disable-shared, the test was removed, and we
12076  # assume the GNU/Linux dynamic linker is in use.
12077  dynamic_linker='GNU/Linux ld.so'
12078  ;;
12079
12080netbsd*)
12081  version_type=sunos
12082  need_lib_prefix=no
12083  need_version=no
12084  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12085    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12086    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12087    dynamic_linker='NetBSD (a.out) ld.so'
12088  else
12089    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12090    soname_spec='$libname$release$shared_ext$major'
12091    dynamic_linker='NetBSD ld.elf_so'
12092  fi
12093  shlibpath_var=LD_LIBRARY_PATH
12094  shlibpath_overrides_runpath=yes
12095  hardcode_into_libs=yes
12096  ;;
12097
12098newsos6)
12099  version_type=linux # correct to gnu/linux during the next big refactor
12100  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12101  shlibpath_var=LD_LIBRARY_PATH
12102  shlibpath_overrides_runpath=yes
12103  ;;
12104
12105*nto* | *qnx*)
12106  version_type=qnx
12107  need_lib_prefix=no
12108  need_version=no
12109  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110  soname_spec='$libname$release$shared_ext$major'
12111  shlibpath_var=LD_LIBRARY_PATH
12112  shlibpath_overrides_runpath=no
12113  hardcode_into_libs=yes
12114  dynamic_linker='ldqnx.so'
12115  ;;
12116
12117openbsd* | bitrig*)
12118  version_type=sunos
12119  sys_lib_dlsearch_path_spec=/usr/lib
12120  need_lib_prefix=no
12121  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12122    need_version=no
12123  else
12124    need_version=yes
12125  fi
12126  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12127  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12128  shlibpath_var=LD_LIBRARY_PATH
12129  shlibpath_overrides_runpath=yes
12130  ;;
12131
12132os2*)
12133  libname_spec='$name'
12134  version_type=windows
12135  shrext_cmds=.dll
12136  need_version=no
12137  need_lib_prefix=no
12138  # OS/2 can only load a DLL with a base name of 8 characters or less.
12139  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12140    v=$($ECHO $release$versuffix | tr -d .-);
12141    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12142    $ECHO $n$v`$shared_ext'
12143  library_names_spec='${libname}_dll.$libext'
12144  dynamic_linker='OS/2 ld.exe'
12145  shlibpath_var=BEGINLIBPATH
12146  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12147  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12148  postinstall_cmds='base_file=`basename \$file`~
12149    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12150    dldir=$destdir/`dirname \$dlpath`~
12151    test -d \$dldir || mkdir -p \$dldir~
12152    $install_prog $dir/$dlname \$dldir/$dlname~
12153    chmod a+x \$dldir/$dlname~
12154    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12155      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12156    fi'
12157  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12158    dlpath=$dir/\$dldll~
12159    $RM \$dlpath'
12160  ;;
12161
12162osf3* | osf4* | osf5*)
12163  version_type=osf
12164  need_lib_prefix=no
12165  need_version=no
12166  soname_spec='$libname$release$shared_ext$major'
12167  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168  shlibpath_var=LD_LIBRARY_PATH
12169  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12170  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12171  ;;
12172
12173rdos*)
12174  dynamic_linker=no
12175  ;;
12176
12177solaris*)
12178  version_type=linux # correct to gnu/linux during the next big refactor
12179  need_lib_prefix=no
12180  need_version=no
12181  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12182  soname_spec='$libname$release$shared_ext$major'
12183  shlibpath_var=LD_LIBRARY_PATH
12184  shlibpath_overrides_runpath=yes
12185  hardcode_into_libs=yes
12186  # ldd complains unless libraries are executable
12187  postinstall_cmds='chmod +x $lib'
12188  ;;
12189
12190sunos4*)
12191  version_type=sunos
12192  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12193  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12194  shlibpath_var=LD_LIBRARY_PATH
12195  shlibpath_overrides_runpath=yes
12196  if test yes = "$with_gnu_ld"; then
12197    need_lib_prefix=no
12198  fi
12199  need_version=yes
12200  ;;
12201
12202sysv4 | sysv4.3*)
12203  version_type=linux # correct to gnu/linux during the next big refactor
12204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205  soname_spec='$libname$release$shared_ext$major'
12206  shlibpath_var=LD_LIBRARY_PATH
12207  case $host_vendor in
12208    sni)
12209      shlibpath_overrides_runpath=no
12210      need_lib_prefix=no
12211      runpath_var=LD_RUN_PATH
12212      ;;
12213    siemens)
12214      need_lib_prefix=no
12215      ;;
12216    motorola)
12217      need_lib_prefix=no
12218      need_version=no
12219      shlibpath_overrides_runpath=no
12220      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12221      ;;
12222  esac
12223  ;;
12224
12225sysv4*MP*)
12226  if test -d /usr/nec; then
12227    version_type=linux # correct to gnu/linux during the next big refactor
12228    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12229    soname_spec='$libname$shared_ext.$major'
12230    shlibpath_var=LD_LIBRARY_PATH
12231  fi
12232  ;;
12233
12234sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12235  version_type=sco
12236  need_lib_prefix=no
12237  need_version=no
12238  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12239  soname_spec='$libname$release$shared_ext$major'
12240  shlibpath_var=LD_LIBRARY_PATH
12241  shlibpath_overrides_runpath=yes
12242  hardcode_into_libs=yes
12243  if test yes = "$with_gnu_ld"; then
12244    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12245  else
12246    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12247    case $host_os in
12248      sco3.2v5*)
12249        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12250	;;
12251    esac
12252  fi
12253  sys_lib_dlsearch_path_spec='/usr/lib'
12254  ;;
12255
12256tpf*)
12257  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12258  version_type=linux # correct to gnu/linux during the next big refactor
12259  need_lib_prefix=no
12260  need_version=no
12261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262  shlibpath_var=LD_LIBRARY_PATH
12263  shlibpath_overrides_runpath=no
12264  hardcode_into_libs=yes
12265  ;;
12266
12267uts4*)
12268  version_type=linux # correct to gnu/linux during the next big refactor
12269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12270  soname_spec='$libname$release$shared_ext$major'
12271  shlibpath_var=LD_LIBRARY_PATH
12272  ;;
12273
12274*)
12275  dynamic_linker=no
12276  ;;
12277esac
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12279$as_echo "$dynamic_linker" >&6; }
12280test no = "$dynamic_linker" && can_build_shared=no
12281
12282variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12283if test yes = "$GCC"; then
12284  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12285fi
12286
12287if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12288  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12289fi
12290
12291if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12292  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12293fi
12294
12295# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12296configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12297
12298# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12299func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12300
12301# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12302configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12401$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12402hardcode_action=
12403if test -n "$hardcode_libdir_flag_spec" ||
12404   test -n "$runpath_var" ||
12405   test yes = "$hardcode_automatic"; then
12406
12407  # We can hardcode non-existent directories.
12408  if test no != "$hardcode_direct" &&
12409     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12410     # have to relink, otherwise we might link with an installed library
12411     # when we should be linking with a yet-to-be-installed one
12412     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12413     test no != "$hardcode_minus_L"; then
12414    # Linking always hardcodes the temporary library directory.
12415    hardcode_action=relink
12416  else
12417    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12418    hardcode_action=immediate
12419  fi
12420else
12421  # We cannot hardcode anything, or else we can only hardcode existing
12422  # directories.
12423  hardcode_action=unsupported
12424fi
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12426$as_echo "$hardcode_action" >&6; }
12427
12428if test relink = "$hardcode_action" ||
12429   test yes = "$inherit_rpath"; then
12430  # Fast installation is not supported
12431  enable_fast_install=no
12432elif test yes = "$shlibpath_overrides_runpath" ||
12433     test no = "$enable_shared"; then
12434  # Fast installation is not necessary
12435  enable_fast_install=needless
12436fi
12437
12438
12439
12440
12441
12442
12443  if test yes != "$enable_dlopen"; then
12444  enable_dlopen=unknown
12445  enable_dlopen_self=unknown
12446  enable_dlopen_self_static=unknown
12447else
12448  lt_cv_dlopen=no
12449  lt_cv_dlopen_libs=
12450
12451  case $host_os in
12452  beos*)
12453    lt_cv_dlopen=load_add_on
12454    lt_cv_dlopen_libs=
12455    lt_cv_dlopen_self=yes
12456    ;;
12457
12458  mingw* | pw32* | cegcc*)
12459    lt_cv_dlopen=LoadLibrary
12460    lt_cv_dlopen_libs=
12461    ;;
12462
12463  cygwin*)
12464    lt_cv_dlopen=dlopen
12465    lt_cv_dlopen_libs=
12466    ;;
12467
12468  darwin*)
12469    # if libdl is installed we need to link against it
12470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12471$as_echo_n "checking for dlopen in -ldl... " >&6; }
12472if ${ac_cv_lib_dl_dlopen+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  ac_check_lib_save_LIBS=$LIBS
12476LIBS="-ldl  $LIBS"
12477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h.  */
12479
12480/* Override any GCC internal prototype to avoid an error.
12481   Use char because int might match the return type of a GCC
12482   builtin and then its argument prototype would still apply.  */
12483#ifdef __cplusplus
12484extern "C"
12485#endif
12486char dlopen ();
12487int
12488main ()
12489{
12490return dlopen ();
12491  ;
12492  return 0;
12493}
12494_ACEOF
12495if ac_fn_c_try_link "$LINENO"; then :
12496  ac_cv_lib_dl_dlopen=yes
12497else
12498  ac_cv_lib_dl_dlopen=no
12499fi
12500rm -f core conftest.err conftest.$ac_objext \
12501    conftest$ac_exeext conftest.$ac_ext
12502LIBS=$ac_check_lib_save_LIBS
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12505$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12506if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12507  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12508else
12509
12510    lt_cv_dlopen=dyld
12511    lt_cv_dlopen_libs=
12512    lt_cv_dlopen_self=yes
12513
12514fi
12515
12516    ;;
12517
12518  tpf*)
12519    # Don't try to run any link tests for TPF.  We know it's impossible
12520    # because TPF is a cross-compiler, and we know how we open DSOs.
12521    lt_cv_dlopen=dlopen
12522    lt_cv_dlopen_libs=
12523    lt_cv_dlopen_self=no
12524    ;;
12525
12526  *)
12527    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12528if test "x$ac_cv_func_shl_load" = xyes; then :
12529  lt_cv_dlopen=shl_load
12530else
12531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12532$as_echo_n "checking for shl_load in -ldld... " >&6; }
12533if ${ac_cv_lib_dld_shl_load+:} false; then :
12534  $as_echo_n "(cached) " >&6
12535else
12536  ac_check_lib_save_LIBS=$LIBS
12537LIBS="-ldld  $LIBS"
12538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h.  */
12540
12541/* Override any GCC internal prototype to avoid an error.
12542   Use char because int might match the return type of a GCC
12543   builtin and then its argument prototype would still apply.  */
12544#ifdef __cplusplus
12545extern "C"
12546#endif
12547char shl_load ();
12548int
12549main ()
12550{
12551return shl_load ();
12552  ;
12553  return 0;
12554}
12555_ACEOF
12556if ac_fn_c_try_link "$LINENO"; then :
12557  ac_cv_lib_dld_shl_load=yes
12558else
12559  ac_cv_lib_dld_shl_load=no
12560fi
12561rm -f core conftest.err conftest.$ac_objext \
12562    conftest$ac_exeext conftest.$ac_ext
12563LIBS=$ac_check_lib_save_LIBS
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12566$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12567if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12568  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12569else
12570  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12571if test "x$ac_cv_func_dlopen" = xyes; then :
12572  lt_cv_dlopen=dlopen
12573else
12574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12575$as_echo_n "checking for dlopen in -ldl... " >&6; }
12576if ${ac_cv_lib_dl_dlopen+:} false; then :
12577  $as_echo_n "(cached) " >&6
12578else
12579  ac_check_lib_save_LIBS=$LIBS
12580LIBS="-ldl  $LIBS"
12581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h.  */
12583
12584/* Override any GCC internal prototype to avoid an error.
12585   Use char because int might match the return type of a GCC
12586   builtin and then its argument prototype would still apply.  */
12587#ifdef __cplusplus
12588extern "C"
12589#endif
12590char dlopen ();
12591int
12592main ()
12593{
12594return dlopen ();
12595  ;
12596  return 0;
12597}
12598_ACEOF
12599if ac_fn_c_try_link "$LINENO"; then :
12600  ac_cv_lib_dl_dlopen=yes
12601else
12602  ac_cv_lib_dl_dlopen=no
12603fi
12604rm -f core conftest.err conftest.$ac_objext \
12605    conftest$ac_exeext conftest.$ac_ext
12606LIBS=$ac_check_lib_save_LIBS
12607fi
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12609$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12610if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12611  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12612else
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12614$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12615if ${ac_cv_lib_svld_dlopen+:} false; then :
12616  $as_echo_n "(cached) " >&6
12617else
12618  ac_check_lib_save_LIBS=$LIBS
12619LIBS="-lsvld  $LIBS"
12620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h.  */
12622
12623/* Override any GCC internal prototype to avoid an error.
12624   Use char because int might match the return type of a GCC
12625   builtin and then its argument prototype would still apply.  */
12626#ifdef __cplusplus
12627extern "C"
12628#endif
12629char dlopen ();
12630int
12631main ()
12632{
12633return dlopen ();
12634  ;
12635  return 0;
12636}
12637_ACEOF
12638if ac_fn_c_try_link "$LINENO"; then :
12639  ac_cv_lib_svld_dlopen=yes
12640else
12641  ac_cv_lib_svld_dlopen=no
12642fi
12643rm -f core conftest.err conftest.$ac_objext \
12644    conftest$ac_exeext conftest.$ac_ext
12645LIBS=$ac_check_lib_save_LIBS
12646fi
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12648$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12649if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12650  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12651else
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12653$as_echo_n "checking for dld_link in -ldld... " >&6; }
12654if ${ac_cv_lib_dld_dld_link+:} false; then :
12655  $as_echo_n "(cached) " >&6
12656else
12657  ac_check_lib_save_LIBS=$LIBS
12658LIBS="-ldld  $LIBS"
12659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660/* end confdefs.h.  */
12661
12662/* Override any GCC internal prototype to avoid an error.
12663   Use char because int might match the return type of a GCC
12664   builtin and then its argument prototype would still apply.  */
12665#ifdef __cplusplus
12666extern "C"
12667#endif
12668char dld_link ();
12669int
12670main ()
12671{
12672return dld_link ();
12673  ;
12674  return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678  ac_cv_lib_dld_dld_link=yes
12679else
12680  ac_cv_lib_dld_dld_link=no
12681fi
12682rm -f core conftest.err conftest.$ac_objext \
12683    conftest$ac_exeext conftest.$ac_ext
12684LIBS=$ac_check_lib_save_LIBS
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12687$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12688if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12689  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12690fi
12691
12692
12693fi
12694
12695
12696fi
12697
12698
12699fi
12700
12701
12702fi
12703
12704
12705fi
12706
12707    ;;
12708  esac
12709
12710  if test no = "$lt_cv_dlopen"; then
12711    enable_dlopen=no
12712  else
12713    enable_dlopen=yes
12714  fi
12715
12716  case $lt_cv_dlopen in
12717  dlopen)
12718    save_CPPFLAGS=$CPPFLAGS
12719    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12720
12721    save_LDFLAGS=$LDFLAGS
12722    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12723
12724    save_LIBS=$LIBS
12725    LIBS="$lt_cv_dlopen_libs $LIBS"
12726
12727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12728$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12729if ${lt_cv_dlopen_self+:} false; then :
12730  $as_echo_n "(cached) " >&6
12731else
12732  	  if test yes = "$cross_compiling"; then :
12733  lt_cv_dlopen_self=cross
12734else
12735  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12736  lt_status=$lt_dlunknown
12737  cat > conftest.$ac_ext <<_LT_EOF
12738#line $LINENO "configure"
12739#include "confdefs.h"
12740
12741#if HAVE_DLFCN_H
12742#include <dlfcn.h>
12743#endif
12744
12745#include <stdio.h>
12746
12747#ifdef RTLD_GLOBAL
12748#  define LT_DLGLOBAL		RTLD_GLOBAL
12749#else
12750#  ifdef DL_GLOBAL
12751#    define LT_DLGLOBAL		DL_GLOBAL
12752#  else
12753#    define LT_DLGLOBAL		0
12754#  endif
12755#endif
12756
12757/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12758   find out it does not work in some platform. */
12759#ifndef LT_DLLAZY_OR_NOW
12760#  ifdef RTLD_LAZY
12761#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12762#  else
12763#    ifdef DL_LAZY
12764#      define LT_DLLAZY_OR_NOW		DL_LAZY
12765#    else
12766#      ifdef RTLD_NOW
12767#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12768#      else
12769#        ifdef DL_NOW
12770#          define LT_DLLAZY_OR_NOW	DL_NOW
12771#        else
12772#          define LT_DLLAZY_OR_NOW	0
12773#        endif
12774#      endif
12775#    endif
12776#  endif
12777#endif
12778
12779/* When -fvisibility=hidden is used, assume the code has been annotated
12780   correspondingly for the symbols needed.  */
12781#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12782int fnord () __attribute__((visibility("default")));
12783#endif
12784
12785int fnord () { return 42; }
12786int main ()
12787{
12788  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12789  int status = $lt_dlunknown;
12790
12791  if (self)
12792    {
12793      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12794      else
12795        {
12796	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12797          else puts (dlerror ());
12798	}
12799      /* dlclose (self); */
12800    }
12801  else
12802    puts (dlerror ());
12803
12804  return status;
12805}
12806_LT_EOF
12807  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12808  (eval $ac_link) 2>&5
12809  ac_status=$?
12810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12811  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12812    (./conftest; exit; ) >&5 2>/dev/null
12813    lt_status=$?
12814    case x$lt_status in
12815      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12816      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12817      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12818    esac
12819  else :
12820    # compilation failed
12821    lt_cv_dlopen_self=no
12822  fi
12823fi
12824rm -fr conftest*
12825
12826
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12829$as_echo "$lt_cv_dlopen_self" >&6; }
12830
12831    if test yes = "$lt_cv_dlopen_self"; then
12832      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12833      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12834$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12835if ${lt_cv_dlopen_self_static+:} false; then :
12836  $as_echo_n "(cached) " >&6
12837else
12838  	  if test yes = "$cross_compiling"; then :
12839  lt_cv_dlopen_self_static=cross
12840else
12841  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12842  lt_status=$lt_dlunknown
12843  cat > conftest.$ac_ext <<_LT_EOF
12844#line $LINENO "configure"
12845#include "confdefs.h"
12846
12847#if HAVE_DLFCN_H
12848#include <dlfcn.h>
12849#endif
12850
12851#include <stdio.h>
12852
12853#ifdef RTLD_GLOBAL
12854#  define LT_DLGLOBAL		RTLD_GLOBAL
12855#else
12856#  ifdef DL_GLOBAL
12857#    define LT_DLGLOBAL		DL_GLOBAL
12858#  else
12859#    define LT_DLGLOBAL		0
12860#  endif
12861#endif
12862
12863/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12864   find out it does not work in some platform. */
12865#ifndef LT_DLLAZY_OR_NOW
12866#  ifdef RTLD_LAZY
12867#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12868#  else
12869#    ifdef DL_LAZY
12870#      define LT_DLLAZY_OR_NOW		DL_LAZY
12871#    else
12872#      ifdef RTLD_NOW
12873#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12874#      else
12875#        ifdef DL_NOW
12876#          define LT_DLLAZY_OR_NOW	DL_NOW
12877#        else
12878#          define LT_DLLAZY_OR_NOW	0
12879#        endif
12880#      endif
12881#    endif
12882#  endif
12883#endif
12884
12885/* When -fvisibility=hidden is used, assume the code has been annotated
12886   correspondingly for the symbols needed.  */
12887#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12888int fnord () __attribute__((visibility("default")));
12889#endif
12890
12891int fnord () { return 42; }
12892int main ()
12893{
12894  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12895  int status = $lt_dlunknown;
12896
12897  if (self)
12898    {
12899      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12900      else
12901        {
12902	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12903          else puts (dlerror ());
12904	}
12905      /* dlclose (self); */
12906    }
12907  else
12908    puts (dlerror ());
12909
12910  return status;
12911}
12912_LT_EOF
12913  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12914  (eval $ac_link) 2>&5
12915  ac_status=$?
12916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12917  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12918    (./conftest; exit; ) >&5 2>/dev/null
12919    lt_status=$?
12920    case x$lt_status in
12921      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12922      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12923      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12924    esac
12925  else :
12926    # compilation failed
12927    lt_cv_dlopen_self_static=no
12928  fi
12929fi
12930rm -fr conftest*
12931
12932
12933fi
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12935$as_echo "$lt_cv_dlopen_self_static" >&6; }
12936    fi
12937
12938    CPPFLAGS=$save_CPPFLAGS
12939    LDFLAGS=$save_LDFLAGS
12940    LIBS=$save_LIBS
12941    ;;
12942  esac
12943
12944  case $lt_cv_dlopen_self in
12945  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12946  *) enable_dlopen_self=unknown ;;
12947  esac
12948
12949  case $lt_cv_dlopen_self_static in
12950  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12951  *) enable_dlopen_self_static=unknown ;;
12952  esac
12953fi
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971striplib=
12972old_striplib=
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12974$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12975if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12976  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12977  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979$as_echo "yes" >&6; }
12980else
12981# FIXME - insert some real tests, host_os isn't really good enough
12982  case $host_os in
12983  darwin*)
12984    if test -n "$STRIP"; then
12985      striplib="$STRIP -x"
12986      old_striplib="$STRIP -S"
12987      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12988$as_echo "yes" >&6; }
12989    else
12990      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
12992    fi
12993    ;;
12994  *)
12995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
12997    ;;
12998  esac
12999fi
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012  # Report what library types will actually be built
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13014$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13016$as_echo "$can_build_shared" >&6; }
13017
13018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13019$as_echo_n "checking whether to build shared libraries... " >&6; }
13020  test no = "$can_build_shared" && enable_shared=no
13021
13022  # On AIX, shared libraries and static libraries use the same namespace, and
13023  # are all built from PIC.
13024  case $host_os in
13025  aix3*)
13026    test yes = "$enable_shared" && enable_static=no
13027    if test -n "$RANLIB"; then
13028      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13029      postinstall_cmds='$RANLIB $lib'
13030    fi
13031    ;;
13032
13033  aix[4-9]*)
13034    if test ia64 != "$host_cpu"; then
13035      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13036      yes,aix,yes) ;;			# shared object as lib.so file only
13037      yes,svr4,*) ;;			# shared object as lib.so archive member only
13038      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13039      esac
13040    fi
13041    ;;
13042  esac
13043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13044$as_echo "$enable_shared" >&6; }
13045
13046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13047$as_echo_n "checking whether to build static libraries... " >&6; }
13048  # Make sure either enable_shared or enable_static is yes.
13049  test yes = "$enable_shared" || enable_static=yes
13050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13051$as_echo "$enable_static" >&6; }
13052
13053
13054
13055
13056fi
13057ac_ext=c
13058ac_cpp='$CPP $CPPFLAGS'
13059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13061ac_compiler_gnu=$ac_cv_c_compiler_gnu
13062
13063CC=$lt_save_CC
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079        ac_config_commands="$ac_config_commands libtool"
13080
13081
13082
13083
13084# Only expand once:
13085
13086
13087
13088
13089
13090#### options
13091
13092# Check whether --enable-debug was given.
13093if test "${enable_debug+set}" = set; then :
13094  enableval=$enable_debug;
13095else
13096  enable_debug=no
13097fi
13098
13099
13100# Check whether --enable-threads was given.
13101if test "${enable_threads+set}" = set; then :
13102  enableval=$enable_threads;
13103else
13104  enable_threads=yes
13105fi
13106
13107
13108# By now, we do not support UTF-16 in Unix systems.
13109enable_utf16=no
13110#AC_ARG_ENABLE([utf16],
13111#   AC_HELP_STRING([--enable-utf16],
13112#      [turn on UTF-16 support (wchar_t) [default=no]]),
13113#      [], [enable_utf16=no])
13114
13115# doxygen
13116
13117
13118# Check whether --enable-doxygen was given.
13119if test "${enable_doxygen+set}" = set; then :
13120  enableval=$enable_doxygen;
13121fi
13122
13123# Check whether --enable-dot was given.
13124if test "${enable_dot+set}" = set; then :
13125  enableval=$enable_dot;
13126else
13127  enable_dot=no
13128fi
13129
13130# Check whether --enable-html-docs was given.
13131if test "${enable_html_docs+set}" = set; then :
13132  enableval=$enable_html_docs;
13133else
13134  enable_html_docs=yes
13135fi
13136
13137# Check whether --enable-latex-docs was given.
13138if test "${enable_latex_docs+set}" = set; then :
13139  enableval=$enable_latex_docs;
13140else
13141  enable_latex_docs=no
13142fi
13143
13144
13145if test "x$enable_doxygen" = xno; then
13146   enable_doc=no
13147else
13148   # Extract the first word of "doxygen", so it can be a program name with args.
13149set dummy doxygen; ac_word=$2
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151$as_echo_n "checking for $ac_word... " >&6; }
13152if ${ac_cv_path_DOXYGEN+:} false; then :
13153  $as_echo_n "(cached) " >&6
13154else
13155  case $DOXYGEN in
13156  [\\/]* | ?:[\\/]*)
13157  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13158  ;;
13159  *)
13160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161for as_dir in $PATH
13162do
13163  IFS=$as_save_IFS
13164  test -z "$as_dir" && as_dir=.
13165    for ac_exec_ext in '' $ac_executable_extensions; do
13166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13167    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169    break 2
13170  fi
13171done
13172  done
13173IFS=$as_save_IFS
13174
13175  ;;
13176esac
13177fi
13178DOXYGEN=$ac_cv_path_DOXYGEN
13179if test -n "$DOXYGEN"; then
13180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13181$as_echo "$DOXYGEN" >&6; }
13182else
13183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
13185fi
13186
13187
13188   if test x$DOXYGEN = x; then
13189      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 'doxygen' (documentation disabled)." >&5
13190$as_echo "$as_me: WARNING: Could not find 'doxygen' (documentation disabled)." >&2;}
13191      enable_doc=no
13192   else
13193      enable_doc=yes
13194      if test "x$enable_latex_docs" = xyes; then
13195         # Extract the first word of "latex", so it can be a program name with args.
13196set dummy latex; ac_word=$2
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198$as_echo_n "checking for $ac_word... " >&6; }
13199if ${ac_cv_path_LATEX+:} false; then :
13200  $as_echo_n "(cached) " >&6
13201else
13202  case $LATEX in
13203  [\\/]* | ?:[\\/]*)
13204  ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
13205  ;;
13206  *)
13207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208for as_dir in $PATH
13209do
13210  IFS=$as_save_IFS
13211  test -z "$as_dir" && as_dir=.
13212    for ac_exec_ext in '' $ac_executable_extensions; do
13213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13214    ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
13215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216    break 2
13217  fi
13218done
13219  done
13220IFS=$as_save_IFS
13221
13222  ;;
13223esac
13224fi
13225LATEX=$ac_cv_path_LATEX
13226if test -n "$LATEX"; then
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
13228$as_echo "$LATEX" >&6; }
13229else
13230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232fi
13233
13234
13235         if test x$LATEX = x; then
13236            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 'latex'." >&5
13237$as_echo "$as_me: WARNING: Could not find 'latex'." >&2;}
13238            enable_latex_docs=no
13239         fi
13240      fi
13241      if test "x$enable_dot" = xyes; then
13242         # Extract the first word of "dot", so it can be a program name with args.
13243set dummy dot; ac_word=$2
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245$as_echo_n "checking for $ac_word... " >&6; }
13246if ${ac_cv_path_DOT+:} false; then :
13247  $as_echo_n "(cached) " >&6
13248else
13249  case $DOT in
13250  [\\/]* | ?:[\\/]*)
13251  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13252  ;;
13253  *)
13254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257  IFS=$as_save_IFS
13258  test -z "$as_dir" && as_dir=.
13259    for ac_exec_ext in '' $ac_executable_extensions; do
13260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263    break 2
13264  fi
13265done
13266  done
13267IFS=$as_save_IFS
13268
13269  ;;
13270esac
13271fi
13272DOT=$ac_cv_path_DOT
13273if test -n "$DOT"; then
13274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
13275$as_echo "$DOT" >&6; }
13276else
13277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
13279fi
13280
13281
13282         if test x$DOT = x; then
13283            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 'dot'." >&5
13284$as_echo "$as_me: WARNING: Could not find 'dot'." >&2;}
13285            enable_dot=no
13286         fi
13287      fi
13288   fi
13289fi
13290
13291
13292
13293
13294
13295
13296 if test x$enable_doc = xyes; then
13297  DOC_TRUE=
13298  DOC_FALSE='#'
13299else
13300  DOC_TRUE='#'
13301  DOC_FALSE=
13302fi
13303
13304
13305#### libraries
13306
13307ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
13308if test "x$ac_cv_header_expat_h" = xyes; then :
13309
13310else
13311  as_fn_error $? "Unable to find Expat library.
13312                Download lastest version at http://www.libexpat.org" "$LINENO" 5
13313fi
13314
13315
13316
13317if test "x$enable_utf16" = "xno"; then
13318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_Parse in -lexpat" >&5
13319$as_echo_n "checking for XML_Parse in -lexpat... " >&6; }
13320if ${ac_cv_lib_expat_XML_Parse+:} false; then :
13321  $as_echo_n "(cached) " >&6
13322else
13323  ac_check_lib_save_LIBS=$LIBS
13324LIBS="-lexpat  $LIBS"
13325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h.  */
13327
13328/* Override any GCC internal prototype to avoid an error.
13329   Use char because int might match the return type of a GCC
13330   builtin and then its argument prototype would still apply.  */
13331#ifdef __cplusplus
13332extern "C"
13333#endif
13334char XML_Parse ();
13335int
13336main ()
13337{
13338return XML_Parse ();
13339  ;
13340  return 0;
13341}
13342_ACEOF
13343if ac_fn_c_try_link "$LINENO"; then :
13344  ac_cv_lib_expat_XML_Parse=yes
13345else
13346  ac_cv_lib_expat_XML_Parse=no
13347fi
13348rm -f core conftest.err conftest.$ac_objext \
13349    conftest$ac_exeext conftest.$ac_ext
13350LIBS=$ac_check_lib_save_LIBS
13351fi
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_Parse" >&5
13353$as_echo "$ac_cv_lib_expat_XML_Parse" >&6; }
13354if test "x$ac_cv_lib_expat_XML_Parse" = xyes; then :
13355  cat >>confdefs.h <<_ACEOF
13356#define HAVE_LIBEXPAT 1
13357_ACEOF
13358
13359  LIBS="-lexpat $LIBS"
13360
13361else
13362  as_fn_error $? "Unable to find Expat library.
13363                Download lastest version at http://www.libexpat.org" "$LINENO" 5
13364fi
13365
13366else
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_Parse in -lexpatw" >&5
13368$as_echo_n "checking for XML_Parse in -lexpatw... " >&6; }
13369if ${ac_cv_lib_expatw_XML_Parse+:} false; then :
13370  $as_echo_n "(cached) " >&6
13371else
13372  ac_check_lib_save_LIBS=$LIBS
13373LIBS="-lexpatw  $LIBS"
13374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h.  */
13376
13377/* Override any GCC internal prototype to avoid an error.
13378   Use char because int might match the return type of a GCC
13379   builtin and then its argument prototype would still apply.  */
13380#ifdef __cplusplus
13381extern "C"
13382#endif
13383char XML_Parse ();
13384int
13385main ()
13386{
13387return XML_Parse ();
13388  ;
13389  return 0;
13390}
13391_ACEOF
13392if ac_fn_c_try_link "$LINENO"; then :
13393  ac_cv_lib_expatw_XML_Parse=yes
13394else
13395  ac_cv_lib_expatw_XML_Parse=no
13396fi
13397rm -f core conftest.err conftest.$ac_objext \
13398    conftest$ac_exeext conftest.$ac_ext
13399LIBS=$ac_check_lib_save_LIBS
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expatw_XML_Parse" >&5
13402$as_echo "$ac_cv_lib_expatw_XML_Parse" >&6; }
13403if test "x$ac_cv_lib_expatw_XML_Parse" = xyes; then :
13404  cat >>confdefs.h <<_ACEOF
13405#define HAVE_LIBEXPATW 1
13406_ACEOF
13407
13408  LIBS="-lexpatw $LIBS"
13409
13410else
13411  as_fn_error $? "Unable to find Expat library (UTF-16).
13412                Download lastest version at http://www.libexpat.org" "$LINENO" 5
13413fi
13414
13415fi
13416
13417if test "x$enable_threads" = "xyes"; then
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create in -lpthread" >&5
13419$as_echo_n "checking for pthread_key_create in -lpthread... " >&6; }
13420if ${ac_cv_lib_pthread_pthread_key_create+:} false; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  ac_check_lib_save_LIBS=$LIBS
13424LIBS="-lpthread  $LIBS"
13425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427
13428/* Override any GCC internal prototype to avoid an error.
13429   Use char because int might match the return type of a GCC
13430   builtin and then its argument prototype would still apply.  */
13431#ifdef __cplusplus
13432extern "C"
13433#endif
13434char pthread_key_create ();
13435int
13436main ()
13437{
13438return pthread_key_create ();
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443if ac_fn_c_try_link "$LINENO"; then :
13444  ac_cv_lib_pthread_pthread_key_create=yes
13445else
13446  ac_cv_lib_pthread_pthread_key_create=no
13447fi
13448rm -f core conftest.err conftest.$ac_objext \
13449    conftest$ac_exeext conftest.$ac_ext
13450LIBS=$ac_check_lib_save_LIBS
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_key_create" >&5
13453$as_echo "$ac_cv_lib_pthread_pthread_key_create" >&6; }
13454if test "x$ac_cv_lib_pthread_pthread_key_create" = xyes; then :
13455  cat >>confdefs.h <<_ACEOF
13456#define HAVE_LIBPTHREAD 1
13457_ACEOF
13458
13459  LIBS="-lpthread $LIBS"
13460
13461else
13462  as_fn_error $? "Unable to find pthread libray." "$LINENO" 5
13463fi
13464
13465fi
13466
13467#### Unit testing framework
13468
13469
13470
13471
13472
13473
13474
13475
13476if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13477	if test -n "$ac_tool_prefix"; then
13478  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13479set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481$as_echo_n "checking for $ac_word... " >&6; }
13482if ${ac_cv_path_PKG_CONFIG+:} false; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  case $PKG_CONFIG in
13486  [\\/]* | ?:[\\/]*)
13487  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13488  ;;
13489  *)
13490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491for as_dir in $PATH
13492do
13493  IFS=$as_save_IFS
13494  test -z "$as_dir" && as_dir=.
13495    for ac_exec_ext in '' $ac_executable_extensions; do
13496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499    break 2
13500  fi
13501done
13502  done
13503IFS=$as_save_IFS
13504
13505  ;;
13506esac
13507fi
13508PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13509if test -n "$PKG_CONFIG"; then
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13511$as_echo "$PKG_CONFIG" >&6; }
13512else
13513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514$as_echo "no" >&6; }
13515fi
13516
13517
13518fi
13519if test -z "$ac_cv_path_PKG_CONFIG"; then
13520  ac_pt_PKG_CONFIG=$PKG_CONFIG
13521  # Extract the first word of "pkg-config", so it can be a program name with args.
13522set dummy pkg-config; ac_word=$2
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524$as_echo_n "checking for $ac_word... " >&6; }
13525if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  case $ac_pt_PKG_CONFIG in
13529  [\\/]* | ?:[\\/]*)
13530  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13531  ;;
13532  *)
13533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534for as_dir in $PATH
13535do
13536  IFS=$as_save_IFS
13537  test -z "$as_dir" && as_dir=.
13538    for ac_exec_ext in '' $ac_executable_extensions; do
13539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542    break 2
13543  fi
13544done
13545  done
13546IFS=$as_save_IFS
13547
13548  ;;
13549esac
13550fi
13551ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13552if test -n "$ac_pt_PKG_CONFIG"; then
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13554$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13555else
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557$as_echo "no" >&6; }
13558fi
13559
13560  if test "x$ac_pt_PKG_CONFIG" = x; then
13561    PKG_CONFIG=""
13562  else
13563    case $cross_compiling:$ac_tool_warned in
13564yes:)
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13567ac_tool_warned=yes ;;
13568esac
13569    PKG_CONFIG=$ac_pt_PKG_CONFIG
13570  fi
13571else
13572  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13573fi
13574
13575fi
13576if test -n "$PKG_CONFIG"; then
13577	_pkg_min_version=0.9.0
13578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13579$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13580	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582$as_echo "yes" >&6; }
13583	else
13584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586		PKG_CONFIG=""
13587	fi
13588fi
13589
13590pkg_failed=no
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.0" >&5
13592$as_echo_n "checking for check >= 0.9.0... " >&6; }
13593
13594if test -n "$CHECK_CFLAGS"; then
13595    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
13596 elif test -n "$PKG_CONFIG"; then
13597    if test -n "$PKG_CONFIG" && \
13598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
13599  ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
13600  ac_status=$?
13601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602  test $ac_status = 0; }; then
13603  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
13604		      test "x$?" != "x0" && pkg_failed=yes
13605else
13606  pkg_failed=yes
13607fi
13608 else
13609    pkg_failed=untried
13610fi
13611if test -n "$CHECK_LIBS"; then
13612    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
13613 elif test -n "$PKG_CONFIG"; then
13614    if test -n "$PKG_CONFIG" && \
13615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
13616  ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
13617  ac_status=$?
13618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619  test $ac_status = 0; }; then
13620  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
13621		      test "x$?" != "x0" && pkg_failed=yes
13622else
13623  pkg_failed=yes
13624fi
13625 else
13626    pkg_failed=untried
13627fi
13628
13629
13630
13631if test $pkg_failed = yes; then
13632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633$as_echo "no" >&6; }
13634
13635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13636        _pkg_short_errors_supported=yes
13637else
13638        _pkg_short_errors_supported=no
13639fi
13640        if test $_pkg_short_errors_supported = yes; then
13641	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
13642        else
13643	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
13644        fi
13645	# Put the nasty error message in config.log where it belongs
13646	echo "$CHECK_PKG_ERRORS" >&5
13647
13648	enable_tests=no
13649elif test $pkg_failed = untried; then
13650        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652	enable_tests=no
13653else
13654	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
13655	CHECK_LIBS=$pkg_cv_CHECK_LIBS
13656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13657$as_echo "yes" >&6; }
13658	enable_tests=yes
13659fi
13660
13661 if test x$enable_tests = xyes; then
13662  CHECK_TESTS_TRUE=
13663  CHECK_TESTS_FALSE='#'
13664else
13665  CHECK_TESTS_TRUE='#'
13666  CHECK_TESTS_FALSE=
13667fi
13668
13669
13670if test "x$enable_tests" = "xno"; then
13671   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check unit testing framework not found." >&5
13672$as_echo "$as_me: WARNING: Check unit testing framework not found." >&2;}
13673fi
13674
13675####
13676
13677CFLAGS="$CFLAGS -Wall -Werror"
13678
13679# By now, we do not support UTF-16 in Unix systems (see above).
13680 if test x$enable_utf16 = xyes; then
13681  SCEW_UNICODE_WCHAR_T_TRUE=
13682  SCEW_UNICODE_WCHAR_T_FALSE='#'
13683else
13684  SCEW_UNICODE_WCHAR_T_TRUE='#'
13685  SCEW_UNICODE_WCHAR_T_FALSE=
13686fi
13687
13688if test "x$enable_utf16" = "xyes"; then
13689   CFLAGS="$CFLAGS -std=c99"
13690   CPPFLAGS="$CPPFLAGS -DXML_UNICODE_WCHAR_T"
13691fi
13692
13693if test "x$enable_debug" = "xno"; then
13694   CPPFLAGS="$CPPFLAGS -DNDEBUG"
13695fi
13696
13697
13698
13699####
13700
13701ac_config_files="$ac_config_files Makefile doc/Doxyfile doc/Makefile etc/Makefile etc/autoconf/Makefile etc/pkg-config/scew.pc etc/pkg-config/Makefile win32/Makefile scew/Makefile examples/Makefile examples/scew_print/Makefile examples/scew_stream/Makefile examples/scew_write/Makefile examples/win32/Makefile examples/win32/scew_print/Makefile examples/win32/scew_stream/Makefile examples/win32/scew_write/Makefile tests/Makefile tests/data/Makefile"
13702
13703cat >confcache <<\_ACEOF
13704# This file is a shell script that caches the results of configure
13705# tests run on this system so they can be shared between configure
13706# scripts and configure runs, see configure's option --config-cache.
13707# It is not useful on other systems.  If it contains results you don't
13708# want to keep, you may remove or edit it.
13709#
13710# config.status only pays attention to the cache file if you give it
13711# the --recheck option to rerun configure.
13712#
13713# `ac_cv_env_foo' variables (set or unset) will be overridden when
13714# loading this file, other *unset* `ac_cv_foo' will be assigned the
13715# following values.
13716
13717_ACEOF
13718
13719# The following way of writing the cache mishandles newlines in values,
13720# but we know of no workaround that is simple, portable, and efficient.
13721# So, we kill variables containing newlines.
13722# Ultrix sh set writes to stderr and can't be redirected directly,
13723# and sets the high bit in the cache file unless we assign to the vars.
13724(
13725  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13726    eval ac_val=\$$ac_var
13727    case $ac_val in #(
13728    *${as_nl}*)
13729      case $ac_var in #(
13730      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13731$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13732      esac
13733      case $ac_var in #(
13734      _ | IFS | as_nl) ;; #(
13735      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13736      *) { eval $ac_var=; unset $ac_var;} ;;
13737      esac ;;
13738    esac
13739  done
13740
13741  (set) 2>&1 |
13742    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13743    *${as_nl}ac_space=\ *)
13744      # `set' does not quote correctly, so add quotes: double-quote
13745      # substitution turns \\\\ into \\, and sed turns \\ into \.
13746      sed -n \
13747	"s/'/'\\\\''/g;
13748	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13749      ;; #(
13750    *)
13751      # `set' quotes correctly as required by POSIX, so do not add quotes.
13752      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13753      ;;
13754    esac |
13755    sort
13756) |
13757  sed '
13758     /^ac_cv_env_/b end
13759     t clear
13760     :clear
13761     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13762     t end
13763     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13764     :end' >>confcache
13765if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13766  if test -w "$cache_file"; then
13767    if test "x$cache_file" != "x/dev/null"; then
13768      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13769$as_echo "$as_me: updating cache $cache_file" >&6;}
13770      if test ! -f "$cache_file" || test -h "$cache_file"; then
13771	cat confcache >"$cache_file"
13772      else
13773        case $cache_file in #(
13774        */* | ?:*)
13775	  mv -f confcache "$cache_file"$$ &&
13776	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13777        *)
13778	  mv -f confcache "$cache_file" ;;
13779	esac
13780      fi
13781    fi
13782  else
13783    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13784$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13785  fi
13786fi
13787rm -f confcache
13788
13789test "x$prefix" = xNONE && prefix=$ac_default_prefix
13790# Let make expand exec_prefix.
13791test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13792
13793DEFS=-DHAVE_CONFIG_H
13794
13795ac_libobjs=
13796ac_ltlibobjs=
13797for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13798  # 1. Remove the extension, and $U if already installed.
13799  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13800  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13801  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13802  #    will be set to the directory where LIBOBJS objects are built.
13803  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13804  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13805done
13806LIBOBJS=$ac_libobjs
13807
13808LTLIBOBJS=$ac_ltlibobjs
13809
13810
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13812$as_echo_n "checking that generated files are newer than configure... " >&6; }
13813   if test -n "$am_sleep_pid"; then
13814     # Hide warnings about reused PIDs.
13815     wait $am_sleep_pid 2>/dev/null
13816   fi
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13818$as_echo "done" >&6; }
13819 if test -n "$EXEEXT"; then
13820  am__EXEEXT_TRUE=
13821  am__EXEEXT_FALSE='#'
13822else
13823  am__EXEEXT_TRUE='#'
13824  am__EXEEXT_FALSE=
13825fi
13826
13827if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13828  as_fn_error $? "conditional \"AMDEP\" was never defined.
13829Usually this means the macro was only invoked conditionally." "$LINENO" 5
13830fi
13831if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13832  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13833Usually this means the macro was only invoked conditionally." "$LINENO" 5
13834fi
13835if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13836  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13837Usually this means the macro was only invoked conditionally." "$LINENO" 5
13838fi
13839if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
13840  as_fn_error $? "conditional \"DOC\" was never defined.
13841Usually this means the macro was only invoked conditionally." "$LINENO" 5
13842fi
13843if test -z "${CHECK_TESTS_TRUE}" && test -z "${CHECK_TESTS_FALSE}"; then
13844  as_fn_error $? "conditional \"CHECK_TESTS\" was never defined.
13845Usually this means the macro was only invoked conditionally." "$LINENO" 5
13846fi
13847if test -z "${SCEW_UNICODE_WCHAR_T_TRUE}" && test -z "${SCEW_UNICODE_WCHAR_T_FALSE}"; then
13848  as_fn_error $? "conditional \"SCEW_UNICODE_WCHAR_T\" was never defined.
13849Usually this means the macro was only invoked conditionally." "$LINENO" 5
13850fi
13851
13852: "${CONFIG_STATUS=./config.status}"
13853ac_write_fail=0
13854ac_clean_files_save=$ac_clean_files
13855ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13857$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13858as_write_fail=0
13859cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13860#! $SHELL
13861# Generated by $as_me.
13862# Run this file to recreate the current configuration.
13863# Compiler output produced by configure, useful for debugging
13864# configure, is in config.log if it exists.
13865
13866debug=false
13867ac_cs_recheck=false
13868ac_cs_silent=false
13869
13870SHELL=\${CONFIG_SHELL-$SHELL}
13871export SHELL
13872_ASEOF
13873cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13874## -------------------- ##
13875## M4sh Initialization. ##
13876## -------------------- ##
13877
13878# Be more Bourne compatible
13879DUALCASE=1; export DUALCASE # for MKS sh
13880if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13881  emulate sh
13882  NULLCMD=:
13883  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13884  # is contrary to our usage.  Disable this feature.
13885  alias -g '${1+"$@"}'='"$@"'
13886  setopt NO_GLOB_SUBST
13887else
13888  case `(set -o) 2>/dev/null` in #(
13889  *posix*) :
13890    set -o posix ;; #(
13891  *) :
13892     ;;
13893esac
13894fi
13895
13896
13897as_nl='
13898'
13899export as_nl
13900# Printing a long string crashes Solaris 7 /usr/bin/printf.
13901as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13903as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13904# Prefer a ksh shell builtin over an external printf program on Solaris,
13905# but without wasting forks for bash or zsh.
13906if test -z "$BASH_VERSION$ZSH_VERSION" \
13907    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13908  as_echo='print -r --'
13909  as_echo_n='print -rn --'
13910elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13911  as_echo='printf %s\n'
13912  as_echo_n='printf %s'
13913else
13914  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13915    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13916    as_echo_n='/usr/ucb/echo -n'
13917  else
13918    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13919    as_echo_n_body='eval
13920      arg=$1;
13921      case $arg in #(
13922      *"$as_nl"*)
13923	expr "X$arg" : "X\\(.*\\)$as_nl";
13924	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13925      esac;
13926      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13927    '
13928    export as_echo_n_body
13929    as_echo_n='sh -c $as_echo_n_body as_echo'
13930  fi
13931  export as_echo_body
13932  as_echo='sh -c $as_echo_body as_echo'
13933fi
13934
13935# The user is always right.
13936if test "${PATH_SEPARATOR+set}" != set; then
13937  PATH_SEPARATOR=:
13938  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13939    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13940      PATH_SEPARATOR=';'
13941  }
13942fi
13943
13944
13945# IFS
13946# We need space, tab and new line, in precisely that order.  Quoting is
13947# there to prevent editors from complaining about space-tab.
13948# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13949# splitting by setting IFS to empty value.)
13950IFS=" ""	$as_nl"
13951
13952# Find who we are.  Look in the path if we contain no directory separator.
13953as_myself=
13954case $0 in #((
13955  *[\\/]* ) as_myself=$0 ;;
13956  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH
13958do
13959  IFS=$as_save_IFS
13960  test -z "$as_dir" && as_dir=.
13961    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13962  done
13963IFS=$as_save_IFS
13964
13965     ;;
13966esac
13967# We did not find ourselves, most probably we were run as `sh COMMAND'
13968# in which case we are not to be found in the path.
13969if test "x$as_myself" = x; then
13970  as_myself=$0
13971fi
13972if test ! -f "$as_myself"; then
13973  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13974  exit 1
13975fi
13976
13977# Unset variables that we do not need and which cause bugs (e.g. in
13978# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13979# suppresses any "Segmentation fault" message there.  '((' could
13980# trigger a bug in pdksh 5.2.14.
13981for as_var in BASH_ENV ENV MAIL MAILPATH
13982do eval test x\${$as_var+set} = xset \
13983  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13984done
13985PS1='$ '
13986PS2='> '
13987PS4='+ '
13988
13989# NLS nuisances.
13990LC_ALL=C
13991export LC_ALL
13992LANGUAGE=C
13993export LANGUAGE
13994
13995# CDPATH.
13996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13997
13998
13999# as_fn_error STATUS ERROR [LINENO LOG_FD]
14000# ----------------------------------------
14001# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14002# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14003# script with STATUS, using 1 if that was 0.
14004as_fn_error ()
14005{
14006  as_status=$1; test $as_status -eq 0 && as_status=1
14007  if test "$4"; then
14008    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14009    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14010  fi
14011  $as_echo "$as_me: error: $2" >&2
14012  as_fn_exit $as_status
14013} # as_fn_error
14014
14015
14016# as_fn_set_status STATUS
14017# -----------------------
14018# Set $? to STATUS, without forking.
14019as_fn_set_status ()
14020{
14021  return $1
14022} # as_fn_set_status
14023
14024# as_fn_exit STATUS
14025# -----------------
14026# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14027as_fn_exit ()
14028{
14029  set +e
14030  as_fn_set_status $1
14031  exit $1
14032} # as_fn_exit
14033
14034# as_fn_unset VAR
14035# ---------------
14036# Portably unset VAR.
14037as_fn_unset ()
14038{
14039  { eval $1=; unset $1;}
14040}
14041as_unset=as_fn_unset
14042# as_fn_append VAR VALUE
14043# ----------------------
14044# Append the text in VALUE to the end of the definition contained in VAR. Take
14045# advantage of any shell optimizations that allow amortized linear growth over
14046# repeated appends, instead of the typical quadratic growth present in naive
14047# implementations.
14048if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14049  eval 'as_fn_append ()
14050  {
14051    eval $1+=\$2
14052  }'
14053else
14054  as_fn_append ()
14055  {
14056    eval $1=\$$1\$2
14057  }
14058fi # as_fn_append
14059
14060# as_fn_arith ARG...
14061# ------------------
14062# Perform arithmetic evaluation on the ARGs, and store the result in the
14063# global $as_val. Take advantage of shells that can avoid forks. The arguments
14064# must be portable across $(()) and expr.
14065if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14066  eval 'as_fn_arith ()
14067  {
14068    as_val=$(( $* ))
14069  }'
14070else
14071  as_fn_arith ()
14072  {
14073    as_val=`expr "$@" || test $? -eq 1`
14074  }
14075fi # as_fn_arith
14076
14077
14078if expr a : '\(a\)' >/dev/null 2>&1 &&
14079   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14080  as_expr=expr
14081else
14082  as_expr=false
14083fi
14084
14085if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14086  as_basename=basename
14087else
14088  as_basename=false
14089fi
14090
14091if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14092  as_dirname=dirname
14093else
14094  as_dirname=false
14095fi
14096
14097as_me=`$as_basename -- "$0" ||
14098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14099	 X"$0" : 'X\(//\)$' \| \
14100	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14101$as_echo X/"$0" |
14102    sed '/^.*\/\([^/][^/]*\)\/*$/{
14103	    s//\1/
14104	    q
14105	  }
14106	  /^X\/\(\/\/\)$/{
14107	    s//\1/
14108	    q
14109	  }
14110	  /^X\/\(\/\).*/{
14111	    s//\1/
14112	    q
14113	  }
14114	  s/.*/./; q'`
14115
14116# Avoid depending upon Character Ranges.
14117as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14119as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14120as_cr_digits='0123456789'
14121as_cr_alnum=$as_cr_Letters$as_cr_digits
14122
14123ECHO_C= ECHO_N= ECHO_T=
14124case `echo -n x` in #(((((
14125-n*)
14126  case `echo 'xy\c'` in
14127  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14128  xy)  ECHO_C='\c';;
14129  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14130       ECHO_T='	';;
14131  esac;;
14132*)
14133  ECHO_N='-n';;
14134esac
14135
14136rm -f conf$$ conf$$.exe conf$$.file
14137if test -d conf$$.dir; then
14138  rm -f conf$$.dir/conf$$.file
14139else
14140  rm -f conf$$.dir
14141  mkdir conf$$.dir 2>/dev/null
14142fi
14143if (echo >conf$$.file) 2>/dev/null; then
14144  if ln -s conf$$.file conf$$ 2>/dev/null; then
14145    as_ln_s='ln -s'
14146    # ... but there are two gotchas:
14147    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14148    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14149    # In both cases, we have to default to `cp -pR'.
14150    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14151      as_ln_s='cp -pR'
14152  elif ln conf$$.file conf$$ 2>/dev/null; then
14153    as_ln_s=ln
14154  else
14155    as_ln_s='cp -pR'
14156  fi
14157else
14158  as_ln_s='cp -pR'
14159fi
14160rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14161rmdir conf$$.dir 2>/dev/null
14162
14163
14164# as_fn_mkdir_p
14165# -------------
14166# Create "$as_dir" as a directory, including parents if necessary.
14167as_fn_mkdir_p ()
14168{
14169
14170  case $as_dir in #(
14171  -*) as_dir=./$as_dir;;
14172  esac
14173  test -d "$as_dir" || eval $as_mkdir_p || {
14174    as_dirs=
14175    while :; do
14176      case $as_dir in #(
14177      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14178      *) as_qdir=$as_dir;;
14179      esac
14180      as_dirs="'$as_qdir' $as_dirs"
14181      as_dir=`$as_dirname -- "$as_dir" ||
14182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14183	 X"$as_dir" : 'X\(//\)[^/]' \| \
14184	 X"$as_dir" : 'X\(//\)$' \| \
14185	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14186$as_echo X"$as_dir" |
14187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14188	    s//\1/
14189	    q
14190	  }
14191	  /^X\(\/\/\)[^/].*/{
14192	    s//\1/
14193	    q
14194	  }
14195	  /^X\(\/\/\)$/{
14196	    s//\1/
14197	    q
14198	  }
14199	  /^X\(\/\).*/{
14200	    s//\1/
14201	    q
14202	  }
14203	  s/.*/./; q'`
14204      test -d "$as_dir" && break
14205    done
14206    test -z "$as_dirs" || eval "mkdir $as_dirs"
14207  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14208
14209
14210} # as_fn_mkdir_p
14211if mkdir -p . 2>/dev/null; then
14212  as_mkdir_p='mkdir -p "$as_dir"'
14213else
14214  test -d ./-p && rmdir ./-p
14215  as_mkdir_p=false
14216fi
14217
14218
14219# as_fn_executable_p FILE
14220# -----------------------
14221# Test if FILE is an executable regular file.
14222as_fn_executable_p ()
14223{
14224  test -f "$1" && test -x "$1"
14225} # as_fn_executable_p
14226as_test_x='test -x'
14227as_executable_p=as_fn_executable_p
14228
14229# Sed expression to map a string onto a valid CPP name.
14230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14231
14232# Sed expression to map a string onto a valid variable name.
14233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14234
14235
14236exec 6>&1
14237## ----------------------------------- ##
14238## Main body of $CONFIG_STATUS script. ##
14239## ----------------------------------- ##
14240_ASEOF
14241test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14242
14243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244# Save the log message, to keep $0 and so on meaningful, and to
14245# report actual input values of CONFIG_FILES etc. instead of their
14246# values after options handling.
14247ac_log="
14248This file was extended by scew $as_me 1.2.0, which was
14249generated by GNU Autoconf 2.69.  Invocation command line was
14250
14251  CONFIG_FILES    = $CONFIG_FILES
14252  CONFIG_HEADERS  = $CONFIG_HEADERS
14253  CONFIG_LINKS    = $CONFIG_LINKS
14254  CONFIG_COMMANDS = $CONFIG_COMMANDS
14255  $ $0 $@
14256
14257on `(hostname || uname -n) 2>/dev/null | sed 1q`
14258"
14259
14260_ACEOF
14261
14262case $ac_config_files in *"
14263"*) set x $ac_config_files; shift; ac_config_files=$*;;
14264esac
14265
14266case $ac_config_headers in *"
14267"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14268esac
14269
14270
14271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14272# Files that config.status was made for.
14273config_files="$ac_config_files"
14274config_headers="$ac_config_headers"
14275config_commands="$ac_config_commands"
14276
14277_ACEOF
14278
14279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14280ac_cs_usage="\
14281\`$as_me' instantiates files and other configuration actions
14282from templates according to the current configuration.  Unless the files
14283and actions are specified as TAGs, all are instantiated by default.
14284
14285Usage: $0 [OPTION]... [TAG]...
14286
14287  -h, --help       print this help, then exit
14288  -V, --version    print version number and configuration settings, then exit
14289      --config     print configuration, then exit
14290  -q, --quiet, --silent
14291                   do not print progress messages
14292  -d, --debug      don't remove temporary files
14293      --recheck    update $as_me by reconfiguring in the same conditions
14294      --file=FILE[:TEMPLATE]
14295                   instantiate the configuration file FILE
14296      --header=FILE[:TEMPLATE]
14297                   instantiate the configuration header FILE
14298
14299Configuration files:
14300$config_files
14301
14302Configuration headers:
14303$config_headers
14304
14305Configuration commands:
14306$config_commands
14307
14308Report bugs to the package provider."
14309
14310_ACEOF
14311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14312ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14313ac_cs_version="\\
14314scew config.status 1.2.0
14315configured by $0, generated by GNU Autoconf 2.69,
14316  with options \\"\$ac_cs_config\\"
14317
14318Copyright (C) 2012 Free Software Foundation, Inc.
14319This config.status script is free software; the Free Software Foundation
14320gives unlimited permission to copy, distribute and modify it."
14321
14322ac_pwd='$ac_pwd'
14323srcdir='$srcdir'
14324INSTALL='$INSTALL'
14325MKDIR_P='$MKDIR_P'
14326AWK='$AWK'
14327test -n "\$AWK" || AWK=awk
14328_ACEOF
14329
14330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331# The default lists apply if the user does not specify any file.
14332ac_need_defaults=:
14333while test $# != 0
14334do
14335  case $1 in
14336  --*=?*)
14337    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14338    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14339    ac_shift=:
14340    ;;
14341  --*=)
14342    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14343    ac_optarg=
14344    ac_shift=:
14345    ;;
14346  *)
14347    ac_option=$1
14348    ac_optarg=$2
14349    ac_shift=shift
14350    ;;
14351  esac
14352
14353  case $ac_option in
14354  # Handling of the options.
14355  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14356    ac_cs_recheck=: ;;
14357  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14358    $as_echo "$ac_cs_version"; exit ;;
14359  --config | --confi | --conf | --con | --co | --c )
14360    $as_echo "$ac_cs_config"; exit ;;
14361  --debug | --debu | --deb | --de | --d | -d )
14362    debug=: ;;
14363  --file | --fil | --fi | --f )
14364    $ac_shift
14365    case $ac_optarg in
14366    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14367    '') as_fn_error $? "missing file argument" ;;
14368    esac
14369    as_fn_append CONFIG_FILES " '$ac_optarg'"
14370    ac_need_defaults=false;;
14371  --header | --heade | --head | --hea )
14372    $ac_shift
14373    case $ac_optarg in
14374    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14375    esac
14376    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14377    ac_need_defaults=false;;
14378  --he | --h)
14379    # Conflict between --help and --header
14380    as_fn_error $? "ambiguous option: \`$1'
14381Try \`$0 --help' for more information.";;
14382  --help | --hel | -h )
14383    $as_echo "$ac_cs_usage"; exit ;;
14384  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14385  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14386    ac_cs_silent=: ;;
14387
14388  # This is an error.
14389  -*) as_fn_error $? "unrecognized option: \`$1'
14390Try \`$0 --help' for more information." ;;
14391
14392  *) as_fn_append ac_config_targets " $1"
14393     ac_need_defaults=false ;;
14394
14395  esac
14396  shift
14397done
14398
14399ac_configure_extra_args=
14400
14401if $ac_cs_silent; then
14402  exec 6>/dev/null
14403  ac_configure_extra_args="$ac_configure_extra_args --silent"
14404fi
14405
14406_ACEOF
14407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14408if \$ac_cs_recheck; then
14409  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14410  shift
14411  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14412  CONFIG_SHELL='$SHELL'
14413  export CONFIG_SHELL
14414  exec "\$@"
14415fi
14416
14417_ACEOF
14418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14419exec 5>>config.log
14420{
14421  echo
14422  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14423## Running $as_me. ##
14424_ASBOX
14425  $as_echo "$ac_log"
14426} >&5
14427
14428_ACEOF
14429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14430#
14431# INIT-COMMANDS
14432#
14433AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14434
14435
14436# The HP-UX ksh and POSIX shell print the target directory to stdout
14437# if CDPATH is set.
14438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14439
14440sed_quote_subst='$sed_quote_subst'
14441double_quote_subst='$double_quote_subst'
14442delay_variable_subst='$delay_variable_subst'
14443AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14444DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14445OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14446macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14447macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14448enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14449enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14450pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14451enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14452shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14453SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14454ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14455PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14456host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14457host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14458host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14459build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14460build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14461build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14462SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14463Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14464GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14465EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14466FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14467LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14468NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14469LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14470max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14471ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14472exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14473lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14474lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14475lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14476lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14477lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14478reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14479reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14480deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14481file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14482file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14483want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14484sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14485AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14486AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14487archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14488STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14489RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14490old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14491old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14492old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14493lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14494CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14495CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14496compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14497GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14498lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14499lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14500lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14501lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14502lt_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"`'
14503lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14504nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14505lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14506lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14507objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14508MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14509lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14510lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14511lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14512lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14513lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14514need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14515MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14516DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14517NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14518LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14519OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14520OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14521libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14522shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14523extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14524archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14525enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14526export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14527whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14528compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14529old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14530old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14531archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14532archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14533module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14534module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14535with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14536allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14537no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14538hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14539hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14540hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14541hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14542hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14543hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14544hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14545inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14546link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14547always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14548export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14549exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14550include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14551prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14552postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14553file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14554variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14555need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14556need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14557version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14558runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14559shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14560shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14561libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14562library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14563soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14564install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14565postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14566postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14567finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14568finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14569hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14570sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14571configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14572configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14573hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14574enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14575enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14576enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14577old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14578striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14579
14580LTCC='$LTCC'
14581LTCFLAGS='$LTCFLAGS'
14582compiler='$compiler_DEFAULT'
14583
14584# A function that is used when there is no print builtin or printf.
14585func_fallback_echo ()
14586{
14587  eval 'cat <<_LTECHO_EOF
14588\$1
14589_LTECHO_EOF'
14590}
14591
14592# Quote evaled strings.
14593for var in AS \
14594DLLTOOL \
14595OBJDUMP \
14596SHELL \
14597ECHO \
14598PATH_SEPARATOR \
14599SED \
14600GREP \
14601EGREP \
14602FGREP \
14603LD \
14604NM \
14605LN_S \
14606lt_SP2NL \
14607lt_NL2SP \
14608reload_flag \
14609deplibs_check_method \
14610file_magic_cmd \
14611file_magic_glob \
14612want_nocaseglob \
14613sharedlib_from_linklib_cmd \
14614AR \
14615AR_FLAGS \
14616archiver_list_spec \
14617STRIP \
14618RANLIB \
14619CC \
14620CFLAGS \
14621compiler \
14622lt_cv_sys_global_symbol_pipe \
14623lt_cv_sys_global_symbol_to_cdecl \
14624lt_cv_sys_global_symbol_to_import \
14625lt_cv_sys_global_symbol_to_c_name_address \
14626lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14627lt_cv_nm_interface \
14628nm_file_list_spec \
14629lt_cv_truncate_bin \
14630lt_prog_compiler_no_builtin_flag \
14631lt_prog_compiler_pic \
14632lt_prog_compiler_wl \
14633lt_prog_compiler_static \
14634lt_cv_prog_compiler_c_o \
14635need_locks \
14636MANIFEST_TOOL \
14637DSYMUTIL \
14638NMEDIT \
14639LIPO \
14640OTOOL \
14641OTOOL64 \
14642shrext_cmds \
14643export_dynamic_flag_spec \
14644whole_archive_flag_spec \
14645compiler_needs_object \
14646with_gnu_ld \
14647allow_undefined_flag \
14648no_undefined_flag \
14649hardcode_libdir_flag_spec \
14650hardcode_libdir_separator \
14651exclude_expsyms \
14652include_expsyms \
14653file_list_spec \
14654variables_saved_for_relink \
14655libname_spec \
14656library_names_spec \
14657soname_spec \
14658install_override_mode \
14659finish_eval \
14660old_striplib \
14661striplib; do
14662    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14663    *[\\\\\\\`\\"\\\$]*)
14664      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14665      ;;
14666    *)
14667      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14668      ;;
14669    esac
14670done
14671
14672# Double-quote double-evaled strings.
14673for var in reload_cmds \
14674old_postinstall_cmds \
14675old_postuninstall_cmds \
14676old_archive_cmds \
14677extract_expsyms_cmds \
14678old_archive_from_new_cmds \
14679old_archive_from_expsyms_cmds \
14680archive_cmds \
14681archive_expsym_cmds \
14682module_cmds \
14683module_expsym_cmds \
14684export_symbols_cmds \
14685prelink_cmds \
14686postlink_cmds \
14687postinstall_cmds \
14688postuninstall_cmds \
14689finish_cmds \
14690sys_lib_search_path_spec \
14691configure_time_dlsearch_path \
14692configure_time_lt_sys_library_path; do
14693    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14694    *[\\\\\\\`\\"\\\$]*)
14695      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14696      ;;
14697    *)
14698      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14699      ;;
14700    esac
14701done
14702
14703ac_aux_dir='$ac_aux_dir'
14704
14705# See if we are running on zsh, and set the options that allow our
14706# commands through without removal of \ escapes INIT.
14707if test -n "\${ZSH_VERSION+set}"; then
14708   setopt NO_GLOB_SUBST
14709fi
14710
14711
14712    PACKAGE='$PACKAGE'
14713    VERSION='$VERSION'
14714    RM='$RM'
14715    ofile='$ofile'
14716
14717
14718
14719
14720_ACEOF
14721
14722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723
14724# Handling of arguments.
14725for ac_config_target in $ac_config_targets
14726do
14727  case $ac_config_target in
14728    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14729    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14730    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14731    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14732    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14733    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14734    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14735    "etc/autoconf/Makefile") CONFIG_FILES="$CONFIG_FILES etc/autoconf/Makefile" ;;
14736    "etc/pkg-config/scew.pc") CONFIG_FILES="$CONFIG_FILES etc/pkg-config/scew.pc" ;;
14737    "etc/pkg-config/Makefile") CONFIG_FILES="$CONFIG_FILES etc/pkg-config/Makefile" ;;
14738    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
14739    "scew/Makefile") CONFIG_FILES="$CONFIG_FILES scew/Makefile" ;;
14740    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14741    "examples/scew_print/Makefile") CONFIG_FILES="$CONFIG_FILES examples/scew_print/Makefile" ;;
14742    "examples/scew_stream/Makefile") CONFIG_FILES="$CONFIG_FILES examples/scew_stream/Makefile" ;;
14743    "examples/scew_write/Makefile") CONFIG_FILES="$CONFIG_FILES examples/scew_write/Makefile" ;;
14744    "examples/win32/Makefile") CONFIG_FILES="$CONFIG_FILES examples/win32/Makefile" ;;
14745    "examples/win32/scew_print/Makefile") CONFIG_FILES="$CONFIG_FILES examples/win32/scew_print/Makefile" ;;
14746    "examples/win32/scew_stream/Makefile") CONFIG_FILES="$CONFIG_FILES examples/win32/scew_stream/Makefile" ;;
14747    "examples/win32/scew_write/Makefile") CONFIG_FILES="$CONFIG_FILES examples/win32/scew_write/Makefile" ;;
14748    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14749    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
14750
14751  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14752  esac
14753done
14754
14755
14756# If the user did not use the arguments to specify the items to instantiate,
14757# then the envvar interface is used.  Set only those that are not.
14758# We use the long form for the default assignment because of an extremely
14759# bizarre bug on SunOS 4.1.3.
14760if $ac_need_defaults; then
14761  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14762  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14763  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14764fi
14765
14766# Have a temporary directory for convenience.  Make it in the build tree
14767# simply because there is no reason against having it here, and in addition,
14768# creating and moving files from /tmp can sometimes cause problems.
14769# Hook for its removal unless debugging.
14770# Note that there is a small window in which the directory will not be cleaned:
14771# after its creation but before its name has been assigned to `$tmp'.
14772$debug ||
14773{
14774  tmp= ac_tmp=
14775  trap 'exit_status=$?
14776  : "${ac_tmp:=$tmp}"
14777  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14778' 0
14779  trap 'as_fn_exit 1' 1 2 13 15
14780}
14781# Create a (secure) tmp directory for tmp files.
14782
14783{
14784  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14785  test -d "$tmp"
14786}  ||
14787{
14788  tmp=./conf$$-$RANDOM
14789  (umask 077 && mkdir "$tmp")
14790} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14791ac_tmp=$tmp
14792
14793# Set up the scripts for CONFIG_FILES section.
14794# No need to generate them if there are no CONFIG_FILES.
14795# This happens for instance with `./config.status config.h'.
14796if test -n "$CONFIG_FILES"; then
14797
14798
14799ac_cr=`echo X | tr X '\015'`
14800# On cygwin, bash can eat \r inside `` if the user requested igncr.
14801# But we know of no other shell where ac_cr would be empty at this
14802# point, so we can use a bashism as a fallback.
14803if test "x$ac_cr" = x; then
14804  eval ac_cr=\$\'\\r\'
14805fi
14806ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14807if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14808  ac_cs_awk_cr='\\r'
14809else
14810  ac_cs_awk_cr=$ac_cr
14811fi
14812
14813echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14814_ACEOF
14815
14816
14817{
14818  echo "cat >conf$$subs.awk <<_ACEOF" &&
14819  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14820  echo "_ACEOF"
14821} >conf$$subs.sh ||
14822  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14823ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14824ac_delim='%!_!# '
14825for ac_last_try in false false false false false :; do
14826  . ./conf$$subs.sh ||
14827    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14828
14829  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14830  if test $ac_delim_n = $ac_delim_num; then
14831    break
14832  elif $ac_last_try; then
14833    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14834  else
14835    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14836  fi
14837done
14838rm -f conf$$subs.sh
14839
14840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14841cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14842_ACEOF
14843sed -n '
14844h
14845s/^/S["/; s/!.*/"]=/
14846p
14847g
14848s/^[^!]*!//
14849:repl
14850t repl
14851s/'"$ac_delim"'$//
14852t delim
14853:nl
14854h
14855s/\(.\{148\}\)..*/\1/
14856t more1
14857s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14858p
14859n
14860b repl
14861:more1
14862s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14863p
14864g
14865s/.\{148\}//
14866t nl
14867:delim
14868h
14869s/\(.\{148\}\)..*/\1/
14870t more2
14871s/["\\]/\\&/g; s/^/"/; s/$/"/
14872p
14873b
14874:more2
14875s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14876p
14877g
14878s/.\{148\}//
14879t delim
14880' <conf$$subs.awk | sed '
14881/^[^""]/{
14882  N
14883  s/\n//
14884}
14885' >>$CONFIG_STATUS || ac_write_fail=1
14886rm -f conf$$subs.awk
14887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888_ACAWK
14889cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14890  for (key in S) S_is_set[key] = 1
14891  FS = ""
14892
14893}
14894{
14895  line = $ 0
14896  nfields = split(line, field, "@")
14897  substed = 0
14898  len = length(field[1])
14899  for (i = 2; i < nfields; i++) {
14900    key = field[i]
14901    keylen = length(key)
14902    if (S_is_set[key]) {
14903      value = S[key]
14904      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14905      len += length(value) + length(field[++i])
14906      substed = 1
14907    } else
14908      len += 1 + keylen
14909  }
14910
14911  print line
14912}
14913
14914_ACAWK
14915_ACEOF
14916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14917if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14918  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14919else
14920  cat
14921fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14922  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14923_ACEOF
14924
14925# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14926# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14927# trailing colons and then remove the whole line if VPATH becomes empty
14928# (actually we leave an empty line to preserve line numbers).
14929if test "x$srcdir" = x.; then
14930  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14931h
14932s///
14933s/^/:/
14934s/[	 ]*$/:/
14935s/:\$(srcdir):/:/g
14936s/:\${srcdir}:/:/g
14937s/:@srcdir@:/:/g
14938s/^:*//
14939s/:*$//
14940x
14941s/\(=[	 ]*\).*/\1/
14942G
14943s/\n//
14944s/^[^=]*=[	 ]*$//
14945}'
14946fi
14947
14948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14949fi # test -n "$CONFIG_FILES"
14950
14951# Set up the scripts for CONFIG_HEADERS section.
14952# No need to generate them if there are no CONFIG_HEADERS.
14953# This happens for instance with `./config.status Makefile'.
14954if test -n "$CONFIG_HEADERS"; then
14955cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14956BEGIN {
14957_ACEOF
14958
14959# Transform confdefs.h into an awk script `defines.awk', embedded as
14960# here-document in config.status, that substitutes the proper values into
14961# config.h.in to produce config.h.
14962
14963# Create a delimiter string that does not exist in confdefs.h, to ease
14964# handling of long lines.
14965ac_delim='%!_!# '
14966for ac_last_try in false false :; do
14967  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14968  if test -z "$ac_tt"; then
14969    break
14970  elif $ac_last_try; then
14971    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14972  else
14973    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14974  fi
14975done
14976
14977# For the awk script, D is an array of macro values keyed by name,
14978# likewise P contains macro parameters if any.  Preserve backslash
14979# newline sequences.
14980
14981ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14982sed -n '
14983s/.\{148\}/&'"$ac_delim"'/g
14984t rset
14985:rset
14986s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14987t def
14988d
14989:def
14990s/\\$//
14991t bsnl
14992s/["\\]/\\&/g
14993s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14994D["\1"]=" \3"/p
14995s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14996d
14997:bsnl
14998s/["\\]/\\&/g
14999s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15000D["\1"]=" \3\\\\\\n"\\/p
15001t cont
15002s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15003t cont
15004d
15005:cont
15006n
15007s/.\{148\}/&'"$ac_delim"'/g
15008t clear
15009:clear
15010s/\\$//
15011t bsnlc
15012s/["\\]/\\&/g; s/^/"/; s/$/"/p
15013d
15014:bsnlc
15015s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15016b cont
15017' <confdefs.h | sed '
15018s/'"$ac_delim"'/"\\\
15019"/g' >>$CONFIG_STATUS || ac_write_fail=1
15020
15021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15022  for (key in D) D_is_set[key] = 1
15023  FS = ""
15024}
15025/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15026  line = \$ 0
15027  split(line, arg, " ")
15028  if (arg[1] == "#") {
15029    defundef = arg[2]
15030    mac1 = arg[3]
15031  } else {
15032    defundef = substr(arg[1], 2)
15033    mac1 = arg[2]
15034  }
15035  split(mac1, mac2, "(") #)
15036  macro = mac2[1]
15037  prefix = substr(line, 1, index(line, defundef) - 1)
15038  if (D_is_set[macro]) {
15039    # Preserve the white space surrounding the "#".
15040    print prefix "define", macro P[macro] D[macro]
15041    next
15042  } else {
15043    # Replace #undef with comments.  This is necessary, for example,
15044    # in the case of _POSIX_SOURCE, which is predefined and required
15045    # on some systems where configure will not decide to define it.
15046    if (defundef == "undef") {
15047      print "/*", prefix defundef, macro, "*/"
15048      next
15049    }
15050  }
15051}
15052{ print }
15053_ACAWK
15054_ACEOF
15055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15056  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15057fi # test -n "$CONFIG_HEADERS"
15058
15059
15060eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15061shift
15062for ac_tag
15063do
15064  case $ac_tag in
15065  :[FHLC]) ac_mode=$ac_tag; continue;;
15066  esac
15067  case $ac_mode$ac_tag in
15068  :[FHL]*:*);;
15069  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15070  :[FH]-) ac_tag=-:-;;
15071  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15072  esac
15073  ac_save_IFS=$IFS
15074  IFS=:
15075  set x $ac_tag
15076  IFS=$ac_save_IFS
15077  shift
15078  ac_file=$1
15079  shift
15080
15081  case $ac_mode in
15082  :L) ac_source=$1;;
15083  :[FH])
15084    ac_file_inputs=
15085    for ac_f
15086    do
15087      case $ac_f in
15088      -) ac_f="$ac_tmp/stdin";;
15089      *) # Look for the file first in the build tree, then in the source tree
15090	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15091	 # because $ac_f cannot contain `:'.
15092	 test -f "$ac_f" ||
15093	   case $ac_f in
15094	   [\\/$]*) false;;
15095	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15096	   esac ||
15097	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15098      esac
15099      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15100      as_fn_append ac_file_inputs " '$ac_f'"
15101    done
15102
15103    # Let's still pretend it is `configure' which instantiates (i.e., don't
15104    # use $as_me), people would be surprised to read:
15105    #    /* config.h.  Generated by config.status.  */
15106    configure_input='Generated from '`
15107	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15108	`' by configure.'
15109    if test x"$ac_file" != x-; then
15110      configure_input="$ac_file.  $configure_input"
15111      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15112$as_echo "$as_me: creating $ac_file" >&6;}
15113    fi
15114    # Neutralize special characters interpreted by sed in replacement strings.
15115    case $configure_input in #(
15116    *\&* | *\|* | *\\* )
15117       ac_sed_conf_input=`$as_echo "$configure_input" |
15118       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15119    *) ac_sed_conf_input=$configure_input;;
15120    esac
15121
15122    case $ac_tag in
15123    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15124      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15125    esac
15126    ;;
15127  esac
15128
15129  ac_dir=`$as_dirname -- "$ac_file" ||
15130$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15131	 X"$ac_file" : 'X\(//\)[^/]' \| \
15132	 X"$ac_file" : 'X\(//\)$' \| \
15133	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15134$as_echo X"$ac_file" |
15135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15136	    s//\1/
15137	    q
15138	  }
15139	  /^X\(\/\/\)[^/].*/{
15140	    s//\1/
15141	    q
15142	  }
15143	  /^X\(\/\/\)$/{
15144	    s//\1/
15145	    q
15146	  }
15147	  /^X\(\/\).*/{
15148	    s//\1/
15149	    q
15150	  }
15151	  s/.*/./; q'`
15152  as_dir="$ac_dir"; as_fn_mkdir_p
15153  ac_builddir=.
15154
15155case "$ac_dir" in
15156.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15157*)
15158  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15159  # A ".." for each directory in $ac_dir_suffix.
15160  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15161  case $ac_top_builddir_sub in
15162  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15163  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15164  esac ;;
15165esac
15166ac_abs_top_builddir=$ac_pwd
15167ac_abs_builddir=$ac_pwd$ac_dir_suffix
15168# for backward compatibility:
15169ac_top_builddir=$ac_top_build_prefix
15170
15171case $srcdir in
15172  .)  # We are building in place.
15173    ac_srcdir=.
15174    ac_top_srcdir=$ac_top_builddir_sub
15175    ac_abs_top_srcdir=$ac_pwd ;;
15176  [\\/]* | ?:[\\/]* )  # Absolute name.
15177    ac_srcdir=$srcdir$ac_dir_suffix;
15178    ac_top_srcdir=$srcdir
15179    ac_abs_top_srcdir=$srcdir ;;
15180  *) # Relative name.
15181    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15182    ac_top_srcdir=$ac_top_build_prefix$srcdir
15183    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15184esac
15185ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15186
15187
15188  case $ac_mode in
15189  :F)
15190  #
15191  # CONFIG_FILE
15192  #
15193
15194  case $INSTALL in
15195  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15196  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15197  esac
15198  ac_MKDIR_P=$MKDIR_P
15199  case $MKDIR_P in
15200  [\\/$]* | ?:[\\/]* ) ;;
15201  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15202  esac
15203_ACEOF
15204
15205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15206# If the template does not know about datarootdir, expand it.
15207# FIXME: This hack should be removed a few years after 2.60.
15208ac_datarootdir_hack=; ac_datarootdir_seen=
15209ac_sed_dataroot='
15210/datarootdir/ {
15211  p
15212  q
15213}
15214/@datadir@/p
15215/@docdir@/p
15216/@infodir@/p
15217/@localedir@/p
15218/@mandir@/p'
15219case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15220*datarootdir*) ac_datarootdir_seen=yes;;
15221*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15222  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15223$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15224_ACEOF
15225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226  ac_datarootdir_hack='
15227  s&@datadir@&$datadir&g
15228  s&@docdir@&$docdir&g
15229  s&@infodir@&$infodir&g
15230  s&@localedir@&$localedir&g
15231  s&@mandir@&$mandir&g
15232  s&\\\${datarootdir}&$datarootdir&g' ;;
15233esac
15234_ACEOF
15235
15236# Neutralize VPATH when `$srcdir' = `.'.
15237# Shell code in configure.ac might set extrasub.
15238# FIXME: do we really want to maintain this feature?
15239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240ac_sed_extra="$ac_vpsub
15241$extrasub
15242_ACEOF
15243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244:t
15245/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15246s|@configure_input@|$ac_sed_conf_input|;t t
15247s&@top_builddir@&$ac_top_builddir_sub&;t t
15248s&@top_build_prefix@&$ac_top_build_prefix&;t t
15249s&@srcdir@&$ac_srcdir&;t t
15250s&@abs_srcdir@&$ac_abs_srcdir&;t t
15251s&@top_srcdir@&$ac_top_srcdir&;t t
15252s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15253s&@builddir@&$ac_builddir&;t t
15254s&@abs_builddir@&$ac_abs_builddir&;t t
15255s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15256s&@INSTALL@&$ac_INSTALL&;t t
15257s&@MKDIR_P@&$ac_MKDIR_P&;t t
15258$ac_datarootdir_hack
15259"
15260eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15261  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15262
15263test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15264  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15265  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15266      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15267  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15268which seems to be undefined.  Please make sure it is defined" >&5
15269$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15270which seems to be undefined.  Please make sure it is defined" >&2;}
15271
15272  rm -f "$ac_tmp/stdin"
15273  case $ac_file in
15274  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15275  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15276  esac \
15277  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15278 ;;
15279  :H)
15280  #
15281  # CONFIG_HEADER
15282  #
15283  if test x"$ac_file" != x-; then
15284    {
15285      $as_echo "/* $configure_input  */" \
15286      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15287    } >"$ac_tmp/config.h" \
15288      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15289    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15290      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15291$as_echo "$as_me: $ac_file is unchanged" >&6;}
15292    else
15293      rm -f "$ac_file"
15294      mv "$ac_tmp/config.h" "$ac_file" \
15295	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15296    fi
15297  else
15298    $as_echo "/* $configure_input  */" \
15299      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15300      || as_fn_error $? "could not create -" "$LINENO" 5
15301  fi
15302# Compute "$ac_file"'s index in $config_headers.
15303_am_arg="$ac_file"
15304_am_stamp_count=1
15305for _am_header in $config_headers :; do
15306  case $_am_header in
15307    $_am_arg | $_am_arg:* )
15308      break ;;
15309    * )
15310      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15311  esac
15312done
15313echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15314$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15315	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15316	 X"$_am_arg" : 'X\(//\)$' \| \
15317	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15318$as_echo X"$_am_arg" |
15319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15320	    s//\1/
15321	    q
15322	  }
15323	  /^X\(\/\/\)[^/].*/{
15324	    s//\1/
15325	    q
15326	  }
15327	  /^X\(\/\/\)$/{
15328	    s//\1/
15329	    q
15330	  }
15331	  /^X\(\/\).*/{
15332	    s//\1/
15333	    q
15334	  }
15335	  s/.*/./; q'`/stamp-h$_am_stamp_count
15336 ;;
15337
15338  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15339$as_echo "$as_me: executing $ac_file commands" >&6;}
15340 ;;
15341  esac
15342
15343
15344  case $ac_file$ac_mode in
15345    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15346  # Older Autoconf quotes --file arguments for eval, but not when files
15347  # are listed without --file.  Let's play safe and only enable the eval
15348  # if we detect the quoting.
15349  # TODO: see whether this extra hack can be removed once we start
15350  # requiring Autoconf 2.70 or later.
15351  case $CONFIG_FILES in #(
15352  *\'*) :
15353    eval set x "$CONFIG_FILES" ;; #(
15354  *) :
15355    set x $CONFIG_FILES ;; #(
15356  *) :
15357     ;;
15358esac
15359  shift
15360  # Used to flag and report bootstrapping failures.
15361  am_rc=0
15362  for am_mf
15363  do
15364    # Strip MF so we end up with the name of the file.
15365    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15366    # Check whether this is an Automake generated Makefile which includes
15367    # dependency-tracking related rules and includes.
15368    # Grep'ing the whole file directly is not great: AIX grep has a line
15369    # limit of 2048, but all sed's we know have understand at least 4000.
15370    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15371      || continue
15372    am_dirpart=`$as_dirname -- "$am_mf" ||
15373$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15374	 X"$am_mf" : 'X\(//\)[^/]' \| \
15375	 X"$am_mf" : 'X\(//\)$' \| \
15376	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15377$as_echo X"$am_mf" |
15378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15379	    s//\1/
15380	    q
15381	  }
15382	  /^X\(\/\/\)[^/].*/{
15383	    s//\1/
15384	    q
15385	  }
15386	  /^X\(\/\/\)$/{
15387	    s//\1/
15388	    q
15389	  }
15390	  /^X\(\/\).*/{
15391	    s//\1/
15392	    q
15393	  }
15394	  s/.*/./; q'`
15395    am_filepart=`$as_basename -- "$am_mf" ||
15396$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15397	 X"$am_mf" : 'X\(//\)$' \| \
15398	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15399$as_echo X/"$am_mf" |
15400    sed '/^.*\/\([^/][^/]*\)\/*$/{
15401	    s//\1/
15402	    q
15403	  }
15404	  /^X\/\(\/\/\)$/{
15405	    s//\1/
15406	    q
15407	  }
15408	  /^X\/\(\/\).*/{
15409	    s//\1/
15410	    q
15411	  }
15412	  s/.*/./; q'`
15413    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15414      && sed -e '/# am--include-marker/d' "$am_filepart" \
15415        | $MAKE -f - am--depfiles" >&5
15416   (cd "$am_dirpart" \
15417      && sed -e '/# am--include-marker/d' "$am_filepart" \
15418        | $MAKE -f - am--depfiles) >&5 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } || am_rc=$?
15422  done
15423  if test $am_rc -ne 0; then
15424    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15426as_fn_error $? "Something went wrong bootstrapping makefile fragments
15427    for automatic dependency tracking.  Try re-running configure with the
15428    '--disable-dependency-tracking' option to at least be able to build
15429    the package (albeit without support for automatic dependency tracking).
15430See \`config.log' for more details" "$LINENO" 5; }
15431  fi
15432  { am_dirpart=; unset am_dirpart;}
15433  { am_filepart=; unset am_filepart;}
15434  { am_mf=; unset am_mf;}
15435  { am_rc=; unset am_rc;}
15436  rm -f conftest-deps.mk
15437}
15438 ;;
15439    "libtool":C)
15440
15441    # See if we are running on zsh, and set the options that allow our
15442    # commands through without removal of \ escapes.
15443    if test -n "${ZSH_VERSION+set}"; then
15444      setopt NO_GLOB_SUBST
15445    fi
15446
15447    cfgfile=${ofile}T
15448    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15449    $RM "$cfgfile"
15450
15451    cat <<_LT_EOF >> "$cfgfile"
15452#! $SHELL
15453# Generated automatically by $as_me ($PACKAGE) $VERSION
15454# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15455# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15456
15457# Provide generalized library-building support services.
15458# Written by Gordon Matzigkeit, 1996
15459
15460# Copyright (C) 2014 Free Software Foundation, Inc.
15461# This is free software; see the source for copying conditions.  There is NO
15462# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15463
15464# GNU Libtool is free software; you can redistribute it and/or modify
15465# it under the terms of the GNU General Public License as published by
15466# the Free Software Foundation; either version 2 of of the License, or
15467# (at your option) any later version.
15468#
15469# As a special exception to the GNU General Public License, if you
15470# distribute this file as part of a program or library that is built
15471# using GNU Libtool, you may include this file under the  same
15472# distribution terms that you use for the rest of that program.
15473#
15474# GNU Libtool is distributed in the hope that it will be useful, but
15475# WITHOUT ANY WARRANTY; without even the implied warranty of
15476# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15477# GNU General Public License for more details.
15478#
15479# You should have received a copy of the GNU General Public License
15480# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15481
15482
15483# The names of the tagged configurations supported by this script.
15484available_tags=''
15485
15486# Configured defaults for sys_lib_dlsearch_path munging.
15487: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15488
15489# ### BEGIN LIBTOOL CONFIG
15490
15491# Assembler program.
15492AS=$lt_AS
15493
15494# DLL creation program.
15495DLLTOOL=$lt_DLLTOOL
15496
15497# Object dumper program.
15498OBJDUMP=$lt_OBJDUMP
15499
15500# Which release of libtool.m4 was used?
15501macro_version=$macro_version
15502macro_revision=$macro_revision
15503
15504# Whether or not to build shared libraries.
15505build_libtool_libs=$enable_shared
15506
15507# Whether or not to build static libraries.
15508build_old_libs=$enable_static
15509
15510# What type of objects to build.
15511pic_mode=$pic_mode
15512
15513# Whether or not to optimize for fast installation.
15514fast_install=$enable_fast_install
15515
15516# Shared archive member basename,for filename based shared library versioning on AIX.
15517shared_archive_member_spec=$shared_archive_member_spec
15518
15519# Shell to use when invoking shell scripts.
15520SHELL=$lt_SHELL
15521
15522# An echo program that protects backslashes.
15523ECHO=$lt_ECHO
15524
15525# The PATH separator for the build system.
15526PATH_SEPARATOR=$lt_PATH_SEPARATOR
15527
15528# The host system.
15529host_alias=$host_alias
15530host=$host
15531host_os=$host_os
15532
15533# The build system.
15534build_alias=$build_alias
15535build=$build
15536build_os=$build_os
15537
15538# A sed program that does not truncate output.
15539SED=$lt_SED
15540
15541# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15542Xsed="\$SED -e 1s/^X//"
15543
15544# A grep program that handles long lines.
15545GREP=$lt_GREP
15546
15547# An ERE matcher.
15548EGREP=$lt_EGREP
15549
15550# A literal string matcher.
15551FGREP=$lt_FGREP
15552
15553# A BSD- or MS-compatible name lister.
15554NM=$lt_NM
15555
15556# Whether we need soft or hard links.
15557LN_S=$lt_LN_S
15558
15559# What is the maximum length of a command?
15560max_cmd_len=$max_cmd_len
15561
15562# Object file suffix (normally "o").
15563objext=$ac_objext
15564
15565# Executable file suffix (normally "").
15566exeext=$exeext
15567
15568# whether the shell understands "unset".
15569lt_unset=$lt_unset
15570
15571# turn spaces into newlines.
15572SP2NL=$lt_lt_SP2NL
15573
15574# turn newlines into spaces.
15575NL2SP=$lt_lt_NL2SP
15576
15577# convert \$build file names to \$host format.
15578to_host_file_cmd=$lt_cv_to_host_file_cmd
15579
15580# convert \$build files to toolchain format.
15581to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15582
15583# Method to check whether dependent libraries are shared objects.
15584deplibs_check_method=$lt_deplibs_check_method
15585
15586# Command to use when deplibs_check_method = "file_magic".
15587file_magic_cmd=$lt_file_magic_cmd
15588
15589# How to find potential files when deplibs_check_method = "file_magic".
15590file_magic_glob=$lt_file_magic_glob
15591
15592# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15593want_nocaseglob=$lt_want_nocaseglob
15594
15595# Command to associate shared and link libraries.
15596sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15597
15598# The archiver.
15599AR=$lt_AR
15600
15601# Flags to create an archive.
15602AR_FLAGS=$lt_AR_FLAGS
15603
15604# How to feed a file listing to the archiver.
15605archiver_list_spec=$lt_archiver_list_spec
15606
15607# A symbol stripping program.
15608STRIP=$lt_STRIP
15609
15610# Commands used to install an old-style archive.
15611RANLIB=$lt_RANLIB
15612old_postinstall_cmds=$lt_old_postinstall_cmds
15613old_postuninstall_cmds=$lt_old_postuninstall_cmds
15614
15615# Whether to use a lock for old archive extraction.
15616lock_old_archive_extraction=$lock_old_archive_extraction
15617
15618# A C compiler.
15619LTCC=$lt_CC
15620
15621# LTCC compiler flags.
15622LTCFLAGS=$lt_CFLAGS
15623
15624# Take the output of nm and produce a listing of raw symbols and C names.
15625global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15626
15627# Transform the output of nm in a proper C declaration.
15628global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15629
15630# Transform the output of nm into a list of symbols to manually relocate.
15631global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15632
15633# Transform the output of nm in a C name address pair.
15634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15635
15636# Transform the output of nm in a C name address pair when lib prefix is needed.
15637global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15638
15639# The name lister interface.
15640nm_interface=$lt_lt_cv_nm_interface
15641
15642# Specify filename containing input files for \$NM.
15643nm_file_list_spec=$lt_nm_file_list_spec
15644
15645# The root where to search for dependent libraries,and where our libraries should be installed.
15646lt_sysroot=$lt_sysroot
15647
15648# Command to truncate a binary pipe.
15649lt_truncate_bin=$lt_lt_cv_truncate_bin
15650
15651# The name of the directory that contains temporary libtool files.
15652objdir=$objdir
15653
15654# Used to examine libraries when file_magic_cmd begins with "file".
15655MAGIC_CMD=$MAGIC_CMD
15656
15657# Must we lock files when doing compilation?
15658need_locks=$lt_need_locks
15659
15660# Manifest tool.
15661MANIFEST_TOOL=$lt_MANIFEST_TOOL
15662
15663# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15664DSYMUTIL=$lt_DSYMUTIL
15665
15666# Tool to change global to local symbols on Mac OS X.
15667NMEDIT=$lt_NMEDIT
15668
15669# Tool to manipulate fat objects and archives on Mac OS X.
15670LIPO=$lt_LIPO
15671
15672# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15673OTOOL=$lt_OTOOL
15674
15675# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15676OTOOL64=$lt_OTOOL64
15677
15678# Old archive suffix (normally "a").
15679libext=$libext
15680
15681# Shared library suffix (normally ".so").
15682shrext_cmds=$lt_shrext_cmds
15683
15684# The commands to extract the exported symbol list from a shared archive.
15685extract_expsyms_cmds=$lt_extract_expsyms_cmds
15686
15687# Variables whose values should be saved in libtool wrapper scripts and
15688# restored at link time.
15689variables_saved_for_relink=$lt_variables_saved_for_relink
15690
15691# Do we need the "lib" prefix for modules?
15692need_lib_prefix=$need_lib_prefix
15693
15694# Do we need a version for libraries?
15695need_version=$need_version
15696
15697# Library versioning type.
15698version_type=$version_type
15699
15700# Shared library runtime path variable.
15701runpath_var=$runpath_var
15702
15703# Shared library path variable.
15704shlibpath_var=$shlibpath_var
15705
15706# Is shlibpath searched before the hard-coded library search path?
15707shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15708
15709# Format of library name prefix.
15710libname_spec=$lt_libname_spec
15711
15712# List of archive names.  First name is the real one, the rest are links.
15713# The last name is the one that the linker finds with -lNAME
15714library_names_spec=$lt_library_names_spec
15715
15716# The coded name of the library, if different from the real name.
15717soname_spec=$lt_soname_spec
15718
15719# Permission mode override for installation of shared libraries.
15720install_override_mode=$lt_install_override_mode
15721
15722# Command to use after installation of a shared archive.
15723postinstall_cmds=$lt_postinstall_cmds
15724
15725# Command to use after uninstallation of a shared archive.
15726postuninstall_cmds=$lt_postuninstall_cmds
15727
15728# Commands used to finish a libtool library installation in a directory.
15729finish_cmds=$lt_finish_cmds
15730
15731# As "finish_cmds", except a single script fragment to be evaled but
15732# not shown.
15733finish_eval=$lt_finish_eval
15734
15735# Whether we should hardcode library paths into libraries.
15736hardcode_into_libs=$hardcode_into_libs
15737
15738# Compile-time system search path for libraries.
15739sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15740
15741# Detected run-time system search path for libraries.
15742sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15743
15744# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15745configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15746
15747# Whether dlopen is supported.
15748dlopen_support=$enable_dlopen
15749
15750# Whether dlopen of programs is supported.
15751dlopen_self=$enable_dlopen_self
15752
15753# Whether dlopen of statically linked programs is supported.
15754dlopen_self_static=$enable_dlopen_self_static
15755
15756# Commands to strip libraries.
15757old_striplib=$lt_old_striplib
15758striplib=$lt_striplib
15759
15760
15761# The linker used to build libraries.
15762LD=$lt_LD
15763
15764# How to create reloadable object files.
15765reload_flag=$lt_reload_flag
15766reload_cmds=$lt_reload_cmds
15767
15768# Commands used to build an old-style archive.
15769old_archive_cmds=$lt_old_archive_cmds
15770
15771# A language specific compiler.
15772CC=$lt_compiler
15773
15774# Is the compiler the GNU compiler?
15775with_gcc=$GCC
15776
15777# Compiler flag to turn off builtin functions.
15778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15779
15780# Additional compiler flags for building library objects.
15781pic_flag=$lt_lt_prog_compiler_pic
15782
15783# How to pass a linker flag through the compiler.
15784wl=$lt_lt_prog_compiler_wl
15785
15786# Compiler flag to prevent dynamic linking.
15787link_static_flag=$lt_lt_prog_compiler_static
15788
15789# Does compiler simultaneously support -c and -o options?
15790compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15791
15792# Whether or not to add -lc for building shared libraries.
15793build_libtool_need_lc=$archive_cmds_need_lc
15794
15795# Whether or not to disallow shared libs when runtime libs are static.
15796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15797
15798# Compiler flag to allow reflexive dlopens.
15799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15800
15801# Compiler flag to generate shared objects directly from archives.
15802whole_archive_flag_spec=$lt_whole_archive_flag_spec
15803
15804# Whether the compiler copes with passing no objects directly.
15805compiler_needs_object=$lt_compiler_needs_object
15806
15807# Create an old-style archive from a shared archive.
15808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15809
15810# Create a temporary old-style archive to link instead of a shared archive.
15811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15812
15813# Commands used to build a shared archive.
15814archive_cmds=$lt_archive_cmds
15815archive_expsym_cmds=$lt_archive_expsym_cmds
15816
15817# Commands used to build a loadable module if different from building
15818# a shared archive.
15819module_cmds=$lt_module_cmds
15820module_expsym_cmds=$lt_module_expsym_cmds
15821
15822# Whether we are building with GNU ld or not.
15823with_gnu_ld=$lt_with_gnu_ld
15824
15825# Flag that allows shared libraries with undefined symbols to be built.
15826allow_undefined_flag=$lt_allow_undefined_flag
15827
15828# Flag that enforces no undefined symbols.
15829no_undefined_flag=$lt_no_undefined_flag
15830
15831# Flag to hardcode \$libdir into a binary during linking.
15832# This must work even if \$libdir does not exist
15833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15834
15835# Whether we need a single "-rpath" flag with a separated argument.
15836hardcode_libdir_separator=$lt_hardcode_libdir_separator
15837
15838# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15839# DIR into the resulting binary.
15840hardcode_direct=$hardcode_direct
15841
15842# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15843# DIR into the resulting binary and the resulting library dependency is
15844# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15845# library is relocated.
15846hardcode_direct_absolute=$hardcode_direct_absolute
15847
15848# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15849# into the resulting binary.
15850hardcode_minus_L=$hardcode_minus_L
15851
15852# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15853# into the resulting binary.
15854hardcode_shlibpath_var=$hardcode_shlibpath_var
15855
15856# Set to "yes" if building a shared library automatically hardcodes DIR
15857# into the library and all subsequent libraries and executables linked
15858# against it.
15859hardcode_automatic=$hardcode_automatic
15860
15861# Set to yes if linker adds runtime paths of dependent libraries
15862# to runtime path list.
15863inherit_rpath=$inherit_rpath
15864
15865# Whether libtool must link a program against all its dependency libraries.
15866link_all_deplibs=$link_all_deplibs
15867
15868# Set to "yes" if exported symbols are required.
15869always_export_symbols=$always_export_symbols
15870
15871# The commands to list exported symbols.
15872export_symbols_cmds=$lt_export_symbols_cmds
15873
15874# Symbols that should not be listed in the preloaded symbols.
15875exclude_expsyms=$lt_exclude_expsyms
15876
15877# Symbols that must always be exported.
15878include_expsyms=$lt_include_expsyms
15879
15880# Commands necessary for linking programs (against libraries) with templates.
15881prelink_cmds=$lt_prelink_cmds
15882
15883# Commands necessary for finishing linking programs.
15884postlink_cmds=$lt_postlink_cmds
15885
15886# Specify filename containing input files.
15887file_list_spec=$lt_file_list_spec
15888
15889# How to hardcode a shared library path into an executable.
15890hardcode_action=$hardcode_action
15891
15892# ### END LIBTOOL CONFIG
15893
15894_LT_EOF
15895
15896    cat <<'_LT_EOF' >> "$cfgfile"
15897
15898# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15899
15900# func_munge_path_list VARIABLE PATH
15901# -----------------------------------
15902# VARIABLE is name of variable containing _space_ separated list of
15903# directories to be munged by the contents of PATH, which is string
15904# having a format:
15905# "DIR[:DIR]:"
15906#       string "DIR[ DIR]" will be prepended to VARIABLE
15907# ":DIR[:DIR]"
15908#       string "DIR[ DIR]" will be appended to VARIABLE
15909# "DIRP[:DIRP]::[DIRA:]DIRA"
15910#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15911#       "DIRA[ DIRA]" will be appended to VARIABLE
15912# "DIR[:DIR]"
15913#       VARIABLE will be replaced by "DIR[ DIR]"
15914func_munge_path_list ()
15915{
15916    case x$2 in
15917    x)
15918        ;;
15919    *:)
15920        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15921        ;;
15922    x:*)
15923        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15924        ;;
15925    *::*)
15926        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15927        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15928        ;;
15929    *)
15930        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15931        ;;
15932    esac
15933}
15934
15935
15936# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15937func_cc_basename ()
15938{
15939    for cc_temp in $*""; do
15940      case $cc_temp in
15941        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15942        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15943        \-*) ;;
15944        *) break;;
15945      esac
15946    done
15947    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15948}
15949
15950
15951# ### END FUNCTIONS SHARED WITH CONFIGURE
15952
15953_LT_EOF
15954
15955  case $host_os in
15956  aix3*)
15957    cat <<\_LT_EOF >> "$cfgfile"
15958# AIX sometimes has problems with the GCC collect2 program.  For some
15959# reason, if we set the COLLECT_NAMES environment variable, the problems
15960# vanish in a puff of smoke.
15961if test set != "${COLLECT_NAMES+set}"; then
15962  COLLECT_NAMES=
15963  export COLLECT_NAMES
15964fi
15965_LT_EOF
15966    ;;
15967  esac
15968
15969
15970ltmain=$ac_aux_dir/ltmain.sh
15971
15972
15973  # We use sed instead of cat because bash on DJGPP gets confused if
15974  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15975  # text mode, it properly converts lines to CR/LF.  This bash problem
15976  # is reportedly fixed, but why not run on old versions too?
15977  sed '$q' "$ltmain" >> "$cfgfile" \
15978     || (rm -f "$cfgfile"; exit 1)
15979
15980   mv -f "$cfgfile" "$ofile" ||
15981    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15982  chmod +x "$ofile"
15983
15984 ;;
15985
15986  esac
15987done # for ac_tag
15988
15989
15990as_fn_exit 0
15991_ACEOF
15992ac_clean_files=$ac_clean_files_save
15993
15994test $ac_write_fail = 0 ||
15995  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15996
15997
15998# configure is writing to config.log, and then calls config.status.
15999# config.status does its own redirection, appending to config.log.
16000# Unfortunately, on DOS this fails, as config.log is still kept open
16001# by configure, so config.status won't be able to write to it; its
16002# output is simply discarded.  So we exec the FD to /dev/null,
16003# effectively closing config.log, so it can be properly (re)opened and
16004# appended to by config.status.  When coming back to configure, we
16005# need to make the FD available again.
16006if test "$no_create" != yes; then
16007  ac_cs_success=:
16008  ac_config_status_args=
16009  test "$silent" = yes &&
16010    ac_config_status_args="$ac_config_status_args --quiet"
16011  exec 5>/dev/null
16012  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16013  exec 5>>config.log
16014  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16015  # would make configure fail if this is the last instruction.
16016  $ac_cs_success || as_fn_exit 1
16017fi
16018if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16019  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16020$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16021fi
16022
16023
16024if test "x$enable_debug" = "xyes"; then
16025   mode=debug
16026else
16027   mode=release
16028fi
16029
16030echo
16031echo "*** $PACKAGE $VERSION has been successfully configured ***"
16032echo
16033echo "Type 'make' to complete the compilation ($mode mode) and"
16034echo "then 'make install' as root to install."
16035echo
16036echo "A set of examples found in the 'examples' directory will"
16037echo "also be built. See 'examples/README' to see a list of them."
16038echo
16039echo "If you want to run the test suite, type 'make check' (Check"
16040echo "Unit testing framework needed)."
16041echo
16042echo "If you have doxygen installed, type 'make doc' to generate"
16043echo "the documentation."
16044echo
16045echo "Run './configure --help' to see all available options."
16046echo
16047